Class: Fog::Identity::OpenStack::V3::Domain
Instance Attribute Summary
#project
Instance Method Summary
collapse
#initialize, #save
Instance Method Details
#create ⇒ Object
32
33
34
35
36
37
|
# File 'lib/fog/openstack/models/identity_v3/domain.rb', line 32
def create
requires :name
merge_attributes(
service.create_domain(attributes).body['domain'])
self
end
|
#destroy ⇒ Object
19
20
21
22
23
|
# File 'lib/fog/openstack/models/identity_v3/domain.rb', line 19
def destroy
requires :id
service.delete_domain(self.id)
true
end
|
#to_s ⇒ Object
15
16
17
|
# File 'lib/fog/openstack/models/identity_v3/domain.rb', line 15
def to_s
self.name
end
|
#update(attr = nil) ⇒ Object
25
26
27
28
29
30
|
# File 'lib/fog/openstack/models/identity_v3/domain.rb', line 25
def update(attr = nil)
requires :id, :name
merge_attributes(
service.update_domain(self.id, attr || attributes).body['domain'])
self
end
|