Class: OpsmanagerClient::Client::Internals::JobPartition

Inherits:
Object
  • Object
show all
Defined in:
lib/opsmanager_client/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_referenceObject (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

#guidObject (readonly)

Returns the value of attribute guid.



43
44
45
# File 'lib/opsmanager_client/client.rb', line 43

def guid
  @guid
end

#installation_nameObject (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_countObject (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