Class: Fog::DNS::AzureRM::Zone
- Inherits:
-
Model
- Object
- Model
- Fog::DNS::AzureRM::Zone
- Defined in:
- lib/fog/azurerm/models/dns/zone.rb
Overview
This class is giving implementation of create/save and delete/destroy for Zone.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.parse(zone) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/fog/azurerm/models/dns/zone.rb', line 17 def self.parse(zone) hash = {} hash['id'] = zone['id'] hash['name'] = zone['name'] hash['resource_group'] = zone['id'].split('/')[4] hash['location'] = zone['location'] hash['type'] = zone['type'] hash['tags'] = zone['tags'] hash['etag'] = zone['etag'] hash['number_of_record_sets'] = zone['properties']['numberOfRecordSets'] hash['max_number_of_recordsets'] = zone['properties']['maxNumberOfRecordSets'] hash end |
Instance Method Details
#destroy ⇒ Object
38 39 40 |
# File 'lib/fog/azurerm/models/dns/zone.rb', line 38 def destroy service.delete_zone(resource_group, name) end |