module Fog module DNS class AzureRM # This class is giving implementation of # all/get for Zones. class Zones < Fog::Collection model Zone def all zones = [] service.list_zones.each do |z| zones << Zone.parse(z) end load(zones) end def get(resource_group, name) zone = service.get_zone(resource_group, name) zone_obj = Zone.new(service: service) zone_obj.merge_attributes(Zone.parse(zone)) end def check_for_zone(resource_group, name) service.check_for_zone(resource_group, name) end end end end end