Class: Fog::DNS::OpenStack::V2::ZoneTransferRequests
- Inherits:
-
OpenStack::Collection
- Object
- Collection
- OpenStack::Collection
- Fog::DNS::OpenStack::V2::ZoneTransferRequests
- Defined in:
- lib/fog/dns/openstack/v2/models/zone_transfer_requests.rb
Instance Attribute Summary
Attributes inherited from OpenStack::Collection
Instance Method Summary collapse
Methods inherited from OpenStack::Collection
Instance Method Details
#all(options = {}) ⇒ Object
11 12 13 |
# File 'lib/fog/dns/openstack/v2/models/zone_transfer_requests.rb', line 11 def all( = {}) load_response(service.list_zone_transfer_requests(), 'transfer_requests') end |
#destroy(id) ⇒ Object
22 23 24 25 |
# File 'lib/fog/dns/openstack/v2/models/zone_transfer_requests.rb', line 22 def destroy(id) zone = find_by_id(id) zone.destroy end |
#find_by_id(id) ⇒ Object Also known as: get
15 16 17 18 |
# File 'lib/fog/dns/openstack/v2/models/zone_transfer_requests.rb', line 15 def find_by_id(id) zone_transfer_request_hash = service.get_zone_transfer_request(id).body new(zone_transfer_request_hash.merge(:service => service)) end |