Class: Fog::KeyManager::HuaweiCloud::Secrets
Instance Attribute Summary
#response
Instance Method Summary
collapse
#destroy, #find_by_id, #load_response, #summary
Instance Method Details
#all(options = {}) ⇒ Object
10
11
12
|
# File 'lib/fog/key_manager/huaweicloud/models/secrets.rb', line 10
def all(options = {})
load_response(service.list_secrets(options), 'secrets')
end
|
#get(secret_ref) ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/fog/key_manager/huaweicloud/models/secrets.rb', line 14
def get(secret_ref)
if secret = service.get_secret(secret_ref).body
new(secret)
end
rescue Fog::Compute::HuaweiCloud::NotFound
nil
end
|