Class: Fog::KeyManager::OpenStack::Secret
Instance Attribute Summary
#project
Instance Method Summary
collapse
#initialize, #save, #update
Instance Method Details
#create ⇒ Object
38
39
40
41
|
# File 'lib/fog/key_manager/openstack/models/secret.rb', line 38
def create
merge_attributes(service.create_secret(attributes).body)
self
end
|
#destroy ⇒ Object
43
44
45
46
47
|
# File 'lib/fog/key_manager/openstack/models/secret.rb', line 43
def destroy
requires :secret_ref
service.delete_secret(uuid)
true
end
|
#uuid ⇒ Object
32
33
34
35
36
|
# File 'lib/fog/key_manager/openstack/models/secret.rb', line 32
def uuid
URI(self.secret_ref).path.split('/').last
rescue
nil
end
|