Sha256: 3f84cdbf4f60f5fe6976648dbd11dd316f5956de2bdb476ceba1f549fe80d218

Contents?: true

Size: 1.46 KB

Versions: 18

Compression:

Stored size: 1.46 KB

Contents

module Fog
  module DNS
    class Google < Fog::Service
      autoload :Mock, File.expand_path("../google/mock", __FILE__)
      autoload :Real, File.expand_path("../google/real", __FILE__)

      requires :google_project
      recognizes(
        :app_name,
        :app_version,
        :google_auth,
        :google_client,
        :google_client_email,
        :google_client_options,
        :google_key_location,
        :google_key_string,
        :google_json_key_location,
        :google_json_key_string
      )

      GOOGLE_DNS_API_VERSION     = "v1".freeze
      GOOGLE_DNS_BASE_URL        = "https://www.googleapis.com/dns/".freeze
      GOOGLE_DNS_API_SCOPE_URLS  = %w(https://www.googleapis.com/auth/ndev.clouddns.readwrite).freeze

      ##
      # MODELS
      model_path "fog/dns/google/models"

      # Zone
      model :zone
      collection :zones

      # Record
      model :record
      collection :records

      # Change
      model :change
      collection :changes

      # Project
      model :project
      collection :projects

      ##
      # REQUESTS
      request_path "fog/dns/google/requests"

      # Zone
      request :create_managed_zone
      request :delete_managed_zone
      request :get_managed_zone
      request :list_managed_zones

      # Record
      request :list_resource_record_sets

      # Change
      request :create_change
      request :get_change
      request :list_changes

      # Project
      request :get_project
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fog-google-1.8.2 lib/fog/dns/google.rb
fog-google-1.8.1 lib/fog/dns/google.rb
fog-google-1.8.0 lib/fog/dns/google.rb
fog-google-1.7.1 lib/fog/dns/google.rb
fog-google-1.7.0 lib/fog/dns/google.rb
fog-google-1.6.0 lib/fog/dns/google.rb
fog-google-1.5.0 lib/fog/dns/google.rb
fog-google-1.4.0 lib/fog/dns/google.rb
fog-google-1.3.3 lib/fog/dns/google.rb
fog-google-1.3.2 lib/fog/dns/google.rb
fog-google-1.3.1 lib/fog/dns/google.rb
fog-google-1.3.0 lib/fog/dns/google.rb
fog-google-1.2.2 lib/fog/dns/google.rb
fog-google-1.2.1 lib/fog/dns/google.rb
fog-google-1.2.0 lib/fog/dns/google.rb
fog-google-1.1.0 lib/fog/dns/google.rb
fog-google-1.0.1 lib/fog/dns/google.rb
fog-google-1.0.0 lib/fog/dns/google.rb