Sha256: 5fee2fdc8a34a4ac2b2303ebe794685ee4ec0fcfd18eeffa0692b5a18248ad5a

Contents?: true

Size: 1.15 KB

Versions: 14

Compression:

Stored size: 1.15 KB

Contents

module Fog
  module DNS
    class Google
      ##
      # Fetches the representation of an existing Project. Use this method to look up the limits on the number of
      # resources that are associated with your project.
      #
      # @see https://developers.google.com/cloud-dns/api/v1beta1/projects/get
      class Real
        def get_project(identity)
          api_method = @dns.projects.get
          parameters = {
            :project => identity,
          }

          request(api_method, parameters)
        end
      end

      class Mock
        def get_project(identity)
          body = {
            'kind' => 'dns#project',
            'number' => Fog::Mock.random_numbers(12).to_s,
            'id' => identity,
            'quota' => {
              'kind' => 'dns#quota',
              'managedZones' => 100,
              'rrsetsPerManagedZone' => 10000,
              'rrsetAdditionsPerChange' => 100,
              'rrsetDeletionsPerChange'=>100,
              'totalRrdataSizePerChange' => 10000,
              'resourceRecordsPerRrset' => 20,
            }
          }

          build_excon_response(body)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
fog-google-0.0.9 lib/fog/google/requests/dns/get_project.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-google-0.0.7/lib/fog/google/requests/dns/get_project.rb
fog-google-0.0.7 lib/fog/google/requests/dns/get_project.rb
fog-google-0.0.6 lib/fog/google/requests/dns/get_project.rb
fog-google-0.0.5 lib/fog/google/requests/dns/get_project.rb
fog-google-0.0.4 lib/fog/google/requests/dns/get_project.rb
fog-google-0.0.3 lib/fog/google/requests/dns/get_project.rb
fog-google-0.0.2 lib/fog/google/requests/dns/get_project.rb
fog-1.29.0 lib/fog/google/requests/dns/get_project.rb
fog-1.28.0 lib/fog/google/requests/dns/get_project.rb
fog-1.27.0 lib/fog/google/requests/dns/get_project.rb
fog-1.26.0 lib/fog/google/requests/dns/get_project.rb
fog-1.25.0 lib/fog/google/requests/dns/get_project.rb
nsidc-fog-1.24.1 lib/fog/google/requests/dns/get_project.rb