Class: Fog::Orchestration::OpenStack::Resource
- Inherits:
-
Fog::OpenStack::Model
- Object
- Model
- Fog::OpenStack::Model
- Fog::Orchestration::OpenStack::Resource
- Includes:
- Reflectable
- Defined in:
- lib/fog/openstack/models/orchestration/resource.rb
Constant Summary
Constants included from Reflectable
Fog::Orchestration::OpenStack::Reflectable::REFLECTION_REGEX
Instance Attribute Summary
Attributes inherited from Fog::OpenStack::Model
Instance Method Summary collapse
Methods included from Reflectable
Methods inherited from Fog::OpenStack::Model
#create, #destroy, #initialize, #save, #update
Constructor Details
This class inherits a constructor from Fog::OpenStack::Model
Instance Method Details
#events(options = {}) ⇒ Object
17 18 19 |
# File 'lib/fog/openstack/models/orchestration/resource.rb', line 17 def events(={}) @events ||= service.events.all(self, ) end |
#metadata ⇒ Object
21 22 23 |
# File 'lib/fog/openstack/models/orchestration/resource.rb', line 21 def @metadata ||= service.(stack, self.resource_name).body['metadata'] end |
#template ⇒ Object
25 26 27 |
# File 'lib/fog/openstack/models/orchestration/resource.rb', line 25 def template @template ||= service.templates.get(self) end |