Sha256: ff0a89ae8216e2c24d68c6ac7fd63ac0776ea6d309edd2dabea56781dac228d9
Contents?: true
Size: 871 Bytes
Versions: 3
Compression:
Stored size: 871 Bytes
Contents
require 'fog/core/collection' require 'fog/azurerm/models/dns/record_set' 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 Fog::DNS::AzureRM::RecordSet 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 def get(identity, type) all.find { |f| f.name == identity && f.type == "Microsoft.Network/dnszones/#{type}" } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.4 | lib/fog/azurerm/models/dns/record_sets.rb |
fog-azure-rm-0.0.3 | lib/fog/azurerm/models/dns/record_sets.rb |
fog-azure-rm-0.0.2 | lib/fog/azurerm/models/dns/record_sets.rb |