Sha256: 4a9e80d9523927ffdf9e1c0dd44b4c369d6160120e5745b41bb2a7c3ff4f583d

Contents?: true

Size: 726 Bytes

Versions: 7

Compression:

Stored size: 726 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' => self.data[:managed_zones].values,
          }

          build_excon_response(body)
        end
      end
    end
  end
end

Version data entries

7 entries across 5 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/lib/fog/google/requests/dns/list_managed_zones.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/lib/fog/google/requests/dns/list_managed_zones.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/lib/fog/google/requests/dns/list_managed_zones.rb
fog-google-0.1.3 lib/fog/google/requests/dns/list_managed_zones.rb
fog-google-0.1.2 lib/fog/google/requests/dns/list_managed_zones.rb
fog-google-0.1.1 lib/fog/google/requests/dns/list_managed_zones.rb
fog-google-0.1.0 lib/fog/google/requests/dns/list_managed_zones.rb