Sha256: 86358e658b56ed9052042f388acb80f067344df3f89867a8dc3274ffb02daee4

Contents?: true

Size: 715 Bytes

Versions: 14

Compression:

Stored size: 715 Bytes

Contents

module Fog
  module DNS
    class Google
      ##
      # Enumerates Managed Zones that have been created but not yet deleted.
      #
      # @see hhttps://developers.google.com/cloud-dns/api/v1/managedZones/list
      class Real
        def list_managed_zones
          api_method = @dns.managed_zones.list
          parameters = {
            "project" => @project
          }

          request(api_method, parameters)
        end
      end

      class Mock
        def list_managed_zones
          body = {
            "kind" => 'dns#managedZonesListResponse',
            "managedZones" => data[:managed_zones].values
          }

          build_excon_response(body)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/dns/google/requests/list_managed_zones.rb
fog-google-0.5.5 lib/fog/dns/google/requests/list_managed_zones.rb
fog-google-0.5.4 lib/fog/dns/google/requests/list_managed_zones.rb
fog-google-0.5.3 lib/fog/dns/google/requests/list_managed_zones.rb
fog-google-0.5.2 lib/fog/dns/google/requests/list_managed_zones.rb
fog-google-0.5.1 lib/fog/dns/google/requests/list_managed_zones.rb
fog-google-0.5.0 lib/fog/dns/google/requests/list_managed_zones.rb
fog-google-0.4.2 lib/fog/dns/google/requests/list_managed_zones.rb
fog-google-0.4.1 lib/fog/dns/google/requests/list_managed_zones.rb
fog-google-0.4.0 lib/fog/dns/google/requests/list_managed_zones.rb
fog-google-0.3.2 lib/fog/dns/google/requests/list_managed_zones.rb
fog-google-0.3.1 lib/fog/dns/google/requests/list_managed_zones.rb
fog-google-0.3.0 lib/fog/dns/google/requests/list_managed_zones.rb
fog-google-0.2.0 lib/fog/dns/google/requests/list_managed_zones.rb