Class: Fog::ContainerInfra::OpenStack::ClusterTemplates
Instance Attribute Summary
#response
Instance Method Summary
collapse
#destroy, #find_by_id, #load_response, #summary
Instance Method Details
#all ⇒ Object
11
12
13
|
# File 'lib/fog/container_infra/openstack/models/cluster_templates.rb', line 11
def all
load_response(service.list_cluster_templates, 'clustertemplates')
end
|
#get(cluster_template_uuid_or_name) ⇒ Object
15
16
17
18
19
20
|
# File 'lib/fog/container_infra/openstack/models/cluster_templates.rb', line 15
def get(cluster_template_uuid_or_name)
resource = service.get_cluster_template(cluster_template_uuid_or_name).body
new(resource)
rescue Fog::ContainerInfra::OpenStack::NotFound
nil
end
|