Class: Fog::OpenStack::Orchestration::Resource

Inherits:
Model
  • Object
show all
Includes:
Reflectable
Defined in:
lib/fog/openstack/orchestration/models/resource.rb

Constant Summary

Constants included from Reflectable

Fog::OpenStack::Orchestration::Reflectable::REFLECTION_REGEX

Instance Attribute Summary

Attributes inherited from Model

#project

Instance Method Summary collapse

Methods included from Reflectable

#resource, #stack

Methods inherited from Model

#create, #destroy, #initialize, #save, #update

Constructor Details

This class inherits a constructor from Fog::OpenStack::Model

Instance Method Details

#events(options = {}) ⇒ Object



16
17
18
# File 'lib/fog/openstack/orchestration/models/resource.rb', line 16

def events(options = {})
  @events ||= service.events.all(self, options)
end

#metadataObject



20
21
22
# File 'lib/fog/openstack/orchestration/models/resource.rb', line 20

def 
  @metadata ||= service.(stack, resource_name).body['metadata']
end

#templateObject



24
25
26
# File 'lib/fog/openstack/orchestration/models/resource.rb', line 24

def template
  @template ||= service.templates.get(self)
end