Class: Fog::Compute::Brightbox::ApiClient
Instance Method Summary
collapse
#collection_name, #resource_name
Instance Method Details
#destroy ⇒ Object
25
26
27
28
29
|
# File 'lib/fog/brightbox/models/compute/api_client.rb', line 25
def destroy
requires :identity
service.destroy_api_client(identity)
true
end
|
#reset_secret ⇒ Object
31
32
33
34
35
|
# File 'lib/fog/brightbox/models/compute/api_client.rb', line 31
def reset_secret
requires :identity
service.reset_secret_api_client(identity)
true
end
|
#save ⇒ Object
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/fog/brightbox/models/compute/api_client.rb', line 14
def save
raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted?
options = {
:name => name,
:description => description
}.delete_if { |k, v| v.nil? || v == "" }
data = service.create_api_client(options)
merge_attributes(data)
true
end
|