Class: Bosh::Director::DeploymentPlan::DesiredInstance

Inherits:
Struct
  • Object
show all
Defined in:
lib/bosh/director/deployment_plan/desired_instance.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#azObject

Returns the value of attribute az

Returns:

  • (Object)

    the current value of az



4
5
6
# File 'lib/bosh/director/deployment_plan/desired_instance.rb', line 4

def az
  @az
end

#deploymentObject

Returns the value of attribute deployment

Returns:

  • (Object)

    the current value of deployment



4
5
6
# File 'lib/bosh/director/deployment_plan/desired_instance.rb', line 4

def deployment
  @deployment
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



4
5
6
# File 'lib/bosh/director/deployment_plan/desired_instance.rb', line 4

def index
  @index
end

#jobObject

Returns the value of attribute job

Returns:

  • (Object)

    the current value of job



4
5
6
# File 'lib/bosh/director/deployment_plan/desired_instance.rb', line 4

def job
  @job
end

Instance Method Details

#availability_zoneObject



9
10
11
# File 'lib/bosh/director/deployment_plan/desired_instance.rb', line 9

def availability_zone
  self.az.name unless self.az.nil?
end

#inspectObject



5
6
7
# File 'lib/bosh/director/deployment_plan/desired_instance.rb', line 5

def inspect
  "<DesiredInstance az=#{self.az ? self.az.name : nil} index=#{self.index}>"
end