Class: Fog::ContainerInfra::OpenStack::BayModels
Instance Attribute Summary
#response
Instance Method Summary
collapse
#destroy, #find_by_id, #load_response, #summary
Instance Method Details
#all ⇒ Object
10
11
12
|
# File 'lib/fog/container_infra/openstack/models/bay_models.rb', line 10
def all
load_response(service.list_bay_models, 'baymodels')
end
|
#get(bay_model_uuid_or_name) ⇒ Object
14
15
16
17
18
19
|
# File 'lib/fog/container_infra/openstack/models/bay_models.rb', line 14
def get(bay_model_uuid_or_name)
resource = service.get_bay_model(bay_model_uuid_or_name).body
new(resource)
rescue Fog::ContainerInfra::OpenStack::NotFound
nil
end
|