Class: OpsmanagerClient::Client::Internals::JobPartition
- Inherits:
-
Object
- Object
- OpsmanagerClient::Client::Internals::JobPartition
- Defined in:
- lib/opsmanager_client/client.rb
Instance Attribute Summary collapse
-
#availability_zone_reference ⇒ Object
readonly
Returns the value of attribute availability_zone_reference.
-
#guid ⇒ Object
readonly
Returns the value of attribute guid.
-
#installation_name ⇒ Object
readonly
Returns the value of attribute installation_name.
-
#instance_count ⇒ Object
readonly
Returns the value of attribute instance_count.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ JobPartition
constructor
A new instance of JobPartition.
Constructor Details
#initialize(opts = {}) ⇒ JobPartition
Returns a new instance of JobPartition.
36 37 38 39 40 41 |
# File 'lib/opsmanager_client/client.rb', line 36 def initialize(opts={}) @guid = "#{opts.fetch('job_reference')}-partition-#{opts.fetch('availability_zone_reference')}" @installation_name = opts.fetch('installation_name') @instance_count = opts.fetch('instance_count') @availability_zone_reference = opts.fetch('availability_zone_reference') end |
Instance Attribute Details
#availability_zone_reference ⇒ Object (readonly)
Returns the value of attribute availability_zone_reference.
43 44 45 |
# File 'lib/opsmanager_client/client.rb', line 43 def availability_zone_reference @availability_zone_reference end |
#guid ⇒ Object (readonly)
Returns the value of attribute guid.
43 44 45 |
# File 'lib/opsmanager_client/client.rb', line 43 def guid @guid end |
#installation_name ⇒ Object (readonly)
Returns the value of attribute installation_name.
43 44 45 |
# File 'lib/opsmanager_client/client.rb', line 43 def installation_name @installation_name end |
#instance_count ⇒ Object (readonly)
Returns the value of attribute instance_count.
43 44 45 |
# File 'lib/opsmanager_client/client.rb', line 43 def instance_count @instance_count end |