Class: Apcera::InstanceManager
- Inherits:
-
BaseObject
- Object
- BaseObject
- Apcera::InstanceManager
- Defined in:
- lib/apcera/models/instance_manager.rb
Instance Attribute Summary collapse
-
#datacenter ⇒ Object
Returns the value of attribute datacenter.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#num_instances ⇒ Object
Returns the value of attribute num_instances.
-
#resources_provisioned ⇒ Object
Returns the value of attribute resources_provisioned.
-
#resources_total ⇒ Object
Returns the value of attribute resources_total.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#system_tags ⇒ Object
Returns the value of attribute system_tags.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ InstanceManager
constructor
A new instance of InstanceManager.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ InstanceManager
Returns a new instance of InstanceManager.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/apcera/models/instance_manager.rb', line 55 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'ResourcesProvisioned'] self.resources_provisioned = attributes[:'ResourcesProvisioned'] end if attributes[:'ResourcesTotal'] self.resources_total = attributes[:'ResourcesTotal'] end if attributes[:'datacenter'] self.datacenter = attributes[:'datacenter'] end if attributes[:'hostname'] self.hostname = attributes[:'hostname'] end if attributes[:'num_instances'] self.num_instances = attributes[:'num_instances'] end if attributes[:'start_time'] self.start_time = attributes[:'start_time'] end if attributes[:'system_tags'] if (value = attributes[:'system_tags']).is_a?(Array) self. = value end end if attributes[:'tags'] if (value = attributes[:'tags']).is_a?(Array) self. = value end end if attributes[:'uuid'] self.uuid = attributes[:'uuid'] end end |
Instance Attribute Details
#datacenter ⇒ Object
Returns the value of attribute datacenter.
4 5 6 |
# File 'lib/apcera/models/instance_manager.rb', line 4 def datacenter @datacenter end |
#hostname ⇒ Object
Returns the value of attribute hostname.
4 5 6 |
# File 'lib/apcera/models/instance_manager.rb', line 4 def hostname @hostname end |
#num_instances ⇒ Object
Returns the value of attribute num_instances.
4 5 6 |
# File 'lib/apcera/models/instance_manager.rb', line 4 def num_instances @num_instances end |
#resources_provisioned ⇒ Object
Returns the value of attribute resources_provisioned.
4 5 6 |
# File 'lib/apcera/models/instance_manager.rb', line 4 def resources_provisioned @resources_provisioned end |
#resources_total ⇒ Object
Returns the value of attribute resources_total.
4 5 6 |
# File 'lib/apcera/models/instance_manager.rb', line 4 def resources_total @resources_total end |
#start_time ⇒ Object
Returns the value of attribute start_time.
4 5 6 |
# File 'lib/apcera/models/instance_manager.rb', line 4 def start_time @start_time end |
#system_tags ⇒ Object
Returns the value of attribute system_tags.
4 5 6 |
# File 'lib/apcera/models/instance_manager.rb', line 4 def @system_tags end |
#tags ⇒ Object
Returns the value of attribute tags.
4 5 6 |
# File 'lib/apcera/models/instance_manager.rb', line 4 def @tags end |
#uuid ⇒ Object
Returns the value of attribute uuid.
4 5 6 |
# File 'lib/apcera/models/instance_manager.rb', line 4 def uuid @uuid end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/apcera/models/instance_manager.rb', line 6 def self.attribute_map { # :'resources_provisioned' => :'ResourcesProvisioned', # :'resources_total' => :'ResourcesTotal', # :'datacenter' => :'datacenter', # Instance manager's host name. :'hostname' => :'hostname', # The number of instances being managed by the instance manager. :'num_instances' => :'num_instances', # Date and time that instance manager was started. :'start_time' => :'start_time', # System tags assigned to the instance manager. :'system_tags' => :'system_tags', # Tags assigned to the instance manager. :'tags' => :'tags', # Instance manager's unique identifier. :'uuid' => :'uuid' } end |
.swagger_types ⇒ Object
attribute type
40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/apcera/models/instance_manager.rb', line 40 def self.swagger_types { :'resources_provisioned' => :'Resource', :'resources_total' => :'Resource', :'datacenter' => :'String', :'hostname' => :'String', :'num_instances' => :'Integer', :'start_time' => :'String', :'system_tags' => :'Array<String>', :'tags' => :'Array<String>', :'uuid' => :'String' } end |