Class: Azure::CloudServiceManagement::RoleInstance

Inherits:
Object
  • Object
show all
Defined in:
lib/azure/cloud_service_management/role_instance.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ RoleInstance

Returns a new instance of RoleInstance.

Yields:

  • (_self)

Yield Parameters:



19
20
21
# File 'lib/azure/cloud_service_management/role_instance.rb', line 19

def initialize
  yield self if block_given?
end

Instance Attribute Details

#instance_endpointsObject

Returns the value of attribute instance_endpoints.



31
32
33
# File 'lib/azure/cloud_service_management/role_instance.rb', line 31

def instance_endpoints
  @instance_endpoints
end

#instance_fault_domainObject

Returns the value of attribute instance_fault_domain.



27
28
29
# File 'lib/azure/cloud_service_management/role_instance.rb', line 27

def instance_fault_domain
  @instance_fault_domain
end

#instance_nameObject

Returns the value of attribute instance_name.



24
25
26
# File 'lib/azure/cloud_service_management/role_instance.rb', line 24

def instance_name
  @instance_name
end

#instance_sizeObject

Returns the value of attribute instance_size.



28
29
30
# File 'lib/azure/cloud_service_management/role_instance.rb', line 28

def instance_size
  @instance_size
end

#instance_state_detailsObject

Returns the value of attribute instance_state_details.



29
30
31
# File 'lib/azure/cloud_service_management/role_instance.rb', line 29

def instance_state_details
  @instance_state_details
end

#instance_statusObject

Returns the value of attribute instance_status.



25
26
27
# File 'lib/azure/cloud_service_management/role_instance.rb', line 25

def instance_status
  @instance_status
end

#instance_upgrade_domainObject

Returns the value of attribute instance_upgrade_domain.



26
27
28
# File 'lib/azure/cloud_service_management/role_instance.rb', line 26

def instance_upgrade_domain
  @instance_upgrade_domain
end

#ip_addressObject

Returns the value of attribute ip_address.



30
31
32
# File 'lib/azure/cloud_service_management/role_instance.rb', line 30

def ip_address
  @ip_address
end

#power_stateObject

Returns the value of attribute power_state.



32
33
34
# File 'lib/azure/cloud_service_management/role_instance.rb', line 32

def power_state
  @power_state
end

#role_nameObject

Returns the value of attribute role_name.



23
24
25
# File 'lib/azure/cloud_service_management/role_instance.rb', line 23

def role_name
  @role_name
end

Instance Method Details

#is_runningObject



34
35
36
# File 'lib/azure/cloud_service_management/role_instance.rb', line 34

def is_running
  return !instance_status.nil? && instance_status.casecmp("readyrole") == 0
end