Class: Fog::DNS::AzureRM::RecordSets
- Inherits:
-
Collection
- Object
- Collection
- Fog::DNS::AzureRM::RecordSets
- Defined in:
- lib/fog/azurerm/models/dns/record_sets.rb
Overview
This class is giving implementation of all/get for RecordSets.
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/azurerm/models/dns/record_sets.rb', line 16 def all requires :resource_group requires :zone_name record_sets = [] service.list_record_sets(resource_group, zone_name).each do |r| record_sets << Fog::DNS::AzureRM::RecordSet.parse(r) end load(record_sets) end |
#get(resource_group, name, zone_name, record_type) ⇒ Object
26 27 28 29 30 |
# File 'lib/fog/azurerm/models/dns/record_sets.rb', line 26 def get(resource_group, name, zone_name, record_type) record_set = service.get_record_set(resource_group, name, zone_name, record_type) record_set_obj = Fog::DNS::AzureRM::RecordSet.new(service: service) record_set_obj.merge_attributes(Fog::DNS::AzureRM::RecordSet.parse(record_set)) end |