Class: Fog::OpenStack::Identity::V3::ApplicationCredential
- Inherits:
-
Model
- Object
- Model
- Model
- Fog::OpenStack::Identity::V3::ApplicationCredential
show all
- Defined in:
- lib/fog/openstack/identity/v3/models/application_credential.rb
Class Attribute Summary collapse
Attributes inherited from Model
#project
Instance Method Summary
collapse
Methods inherited from Model
#initialize, #save, #update
Class Attribute Details
.cache ⇒ Object
Returns the value of attribute cache.
18
19
20
|
# File 'lib/fog/openstack/identity/v3/models/application_credential.rb', line 18
def cache
@cache
end
|
Instance Method Details
#create ⇒ Object
33
34
35
36
37
38
|
# File 'lib/fog/openstack/identity/v3/models/application_credential.rb', line 33
def create
merge_attributes(
service.create_application_credentials(attributes).body['application_credential']
)
self
end
|
#destroy ⇒ Object
27
28
29
30
31
|
# File 'lib/fog/openstack/identity/v3/models/application_credential.rb', line 27
def destroy
requires :id
service.delete_application_credentials(id, user_id)
true
end
|
#to_s ⇒ Object
23
24
25
|
# File 'lib/fog/openstack/identity/v3/models/application_credential.rb', line 23
def to_s
id.to_s
end
|