Sha256: 5b519502b6e22539a92922f4bc1ab22ad48a48d1f13dbfdb887ceed8530b2839

Contents?: true

Size: 1.34 KB

Versions: 9

Compression:

Stored size: 1.34 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_client_email, :google_key_location, :google_key_string,
                 :google_client, :google_json_key_location, :google_json_key_string

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

      ##
      # 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

9 entries across 9 versions & 1 rubygems

Version Path
fog-google-0.5.2 lib/fog/dns/google.rb
fog-google-0.5.1 lib/fog/dns/google.rb
fog-google-0.5.0 lib/fog/dns/google.rb
fog-google-0.4.2 lib/fog/dns/google.rb
fog-google-0.4.1 lib/fog/dns/google.rb
fog-google-0.4.0 lib/fog/dns/google.rb
fog-google-0.3.2 lib/fog/dns/google.rb
fog-google-0.3.1 lib/fog/dns/google.rb
fog-google-0.3.0 lib/fog/dns/google.rb