Sha256: 2115852be8b580baaa103db8f8958d83251a8c4f1597e7101dd1741f69b1ed11
Contents?: true
Size: 894 Bytes
Versions: 1
Compression:
Stored size: 894 Bytes
Contents
module Fog module DNS class AzureRM # This class is giving implementation of # all/get for RecordSets. class RecordSets < Fog::Collection attribute :resource_group attribute :zone_name attribute :type model RecordSet def all requires :resource_group, :zone_name record_sets = [] service.list_record_sets(resource_group, zone_name).each do |r| record_sets << RecordSet.parse(r) end load(record_sets) end 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 = RecordSet.new(service: service) record_set_obj.merge_attributes(RecordSet.parse(record_set)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.1.0 | lib/fog/azurerm/models/dns/record_sets.rb |