Sha256: d1d89f68f4f04ebe523e012d499c5631d0f3585e4fb88531f15b439fdfb5d482
Contents?: true
Size: 754 Bytes
Versions: 3
Compression:
Stored size: 754 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, identity) all.find { |f| f.name == identity && f.resource_group == resource_group } end def check_for_zone(resource_group, name) service.check_for_zone(resource_group, name) 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/zones.rb |
fog-azure-rm-0.0.3 | lib/fog/azurerm/models/dns/zones.rb |
fog-azure-rm-0.0.2 | lib/fog/azurerm/models/dns/zones.rb |