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

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

Instance Attribute Summary

Attributes inherited from OpenStack::Collection

#response

Instance Method Summary collapse

Methods inherited from OpenStack::Collection

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

Instance Method Details

#create(bay_uuid) ⇒ Object



11
12
13
14
# File 'lib/fog/container_infra/openstack/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/container_infra/openstack/models/certificates.rb', line 16

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