Class: Fog::OpenStack::ContainerInfra::Certificates

Inherits:
Fog::OpenStack::Collection show all
Defined in:
lib/fog/openstack/container_infra/models/certificates.rb

Instance Attribute Summary

Attributes inherited from Fog::OpenStack::Collection

#response

Instance Method Summary collapse

Methods inherited from Fog::OpenStack::Collection

#all, #destroy, #find_by_id, #load_response, #summary

Instance Method Details

#create(bay_uuid) ⇒ Object



11
12
13
14
# File 'lib/fog/openstack/container_infra/models/certificates.rb', line 11

def create(bay_uuid)
  resource = service.create_certificate(bay_uuid).body
  new(resource)
end

#get(bay_uuid) ⇒ Object



16
17
18
19
20
21
# File 'lib/fog/openstack/container_infra/models/certificates.rb', line 16

def get(bay_uuid)
  resource = service.get_certificate(bay_uuid).body
  new(resource)
rescue Fog::OpenStack::ContainerInfra::NotFound
  nil
end