Sha256: 3553b7b1bebe064af110d24559664bbb08f1c8ed6ebbb06dfad3aaa0c2664d41
Contents?: true
Size: 864 Bytes
Versions: 4
Compression:
Stored size: 864 Bytes
Contents
require 'fog/core/collection' require 'fog/azurerm/models/dns/zone' module Fog module DNS class AzureRM # This class is giving implementation of # all/get for Zones. class Zones < Fog::Collection model Fog::DNS::AzureRM::Zone def all zones = [] service.list_zones.each do |z| zones << Fog::DNS::AzureRM::Zone.parse(z) end load(zones) end def get(resource_group, name) zone = service.get_zone(resource_group, name) zone_obj = Fog::DNS::AzureRM::Zone.new(service: service) zone_obj.merge_attributes(Fog::DNS::AzureRM::Zone.parse(zone)) end def check_for_zone(resource_group, name) service.check_for_zone(resource_group, name) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems