Class: Fog::OpenStack::DNS::V2::ZoneTransferRequest
- Inherits:
-
Model
- Object
- Model
- Model
- Fog::OpenStack::DNS::V2::ZoneTransferRequest
show all
- Defined in:
- lib/fog/openstack/dns/v2/models/zone_transfer_request.rb
Instance Attribute Summary
Attributes inherited from Model
#project
Instance Method Summary
collapse
Methods inherited from Model
#create, #initialize
Instance Method Details
#destroy(options = {}) ⇒ Object
41
42
43
44
45
|
# File 'lib/fog/openstack/dns/v2/models/zone_transfer_request.rb', line 41
def destroy(options = {})
requires :id
service.delete_zone_transfer_request(id)
true
end
|
#save ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/fog/openstack/dns/v2/models/zone_transfer_request.rb', line 20
def save
if persisted?
update(description: description, target_project_id: target_project_id)
else
merge_attributes(ervice.create_zone_transfer_request(zone_id, {
:target_project_id => target_project_id,
:description => description,
:project_id => project_id
}))
end
true
end
|
#update(options = nil) ⇒ Object
33
34
35
36
37
38
39
|
# File 'lib/fog/openstack/dns/v2/models/zone_transfer_request.rb', line 33
def update(options = nil)
requires :id
merge_attributes(ervice.update_zone_transfer_request(id,options[:description],{
:target_project_id => options[:target_project_id]
}))
self
end
|