Class: Fog::Orchestration::OpenStack::Resource
- Inherits:
-
Model
- Object
- Model
- Fog::Orchestration::OpenStack::Resource
show all
- Includes:
- Reflectable
- Defined in:
- lib/fog/openstack/models/orchestration/resource.rb
Constant Summary
Constants included
from Reflectable
Fog::Orchestration::OpenStack::Reflectable::REFLECTION_REGEX
Instance Method Summary
collapse
#resource, #stack
Instance Method Details
#events(options = {}) ⇒ Object
17
18
19
|
# File 'lib/fog/openstack/models/orchestration/resource.rb', line 17
def events(options={})
@events ||= service.events.all(self, options)
end
|
21
22
23
|
# File 'lib/fog/openstack/models/orchestration/resource.rb', line 21
def metadata
@metadata ||= service.show_resource_metadata(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
|