Class: Azure::CloudServiceManagement::RoleInstance
- Inherits:
-
Object
- Object
- Azure::CloudServiceManagement::RoleInstance
- Defined in:
- lib/azure/cloud_service_management/role_instance.rb
Instance Attribute Summary collapse
-
#instance_endpoints ⇒ Object
Returns the value of attribute instance_endpoints.
-
#instance_fault_domain ⇒ Object
Returns the value of attribute instance_fault_domain.
-
#instance_name ⇒ Object
Returns the value of attribute instance_name.
-
#instance_size ⇒ Object
Returns the value of attribute instance_size.
-
#instance_state_details ⇒ Object
Returns the value of attribute instance_state_details.
-
#instance_status ⇒ Object
Returns the value of attribute instance_status.
-
#instance_upgrade_domain ⇒ Object
Returns the value of attribute instance_upgrade_domain.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#power_state ⇒ Object
Returns the value of attribute power_state.
-
#role_name ⇒ Object
Returns the value of attribute role_name.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ RoleInstance
constructor
A new instance of RoleInstance.
- #is_running ⇒ Object
Constructor Details
#initialize {|_self| ... } ⇒ RoleInstance
Returns a new instance of RoleInstance.
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_endpoints ⇒ Object
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_domain ⇒ Object
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_name ⇒ Object
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_size ⇒ Object
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_details ⇒ Object
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_status ⇒ Object
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_domain ⇒ Object
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_address ⇒ Object
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_state ⇒ Object
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_name ⇒ Object
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_running ⇒ Object
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 |