Sha256: a3ed94829adbe34866815821f03e62a2a8291f5fdf2fac6aee913c8e128aa784

Contents?: true

Size: 769 Bytes

Versions: 46

Compression:

Stored size: 769 Bytes

Contents

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_fog = Fog::DNS::AzureRM::Zone.new(service: service)
          zone_fog.merge_attributes(Fog::DNS::AzureRM::Zone.parse(zone))
        end

        def check_zone_exists(resource_group, name)
          service.check_zone_exists(resource_group, name)
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/models/dns/zones.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/models/dns/zones.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/models/dns/zones.rb
far-gem-0.5.6 lib/fog/azurerm/models/dns/zones.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/models/dns/zones.rb
far-gem-0.5.5 lib/fog/azurerm/models/dns/zones.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/models/dns/zones.rb
far-gem-0.5.4 lib/fog/azurerm/models/dns/zones.rb
far-gem-0.5.3 lib/fog/azurerm/models/dns/zones.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/models/dns/zones.rb
far-gem-0.5.2 lib/fog/azurerm/models/dns/zones.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/models/dns/zones.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/models/dns/zones.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/models/dns/zones.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/models/dns/zones.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/models/dns/zones.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/models/dns/zones.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/models/dns/zones.rb
far-gem-0.5.1 lib/fog/azurerm/models/dns/zones.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/models/dns/zones.rb