Sha256: 254f002116d2b32b0694dc14b3820ad80ea5e7f1a84ba60e24d8e3fb18d7db65

Contents?: true

Size: 777 Bytes

Versions: 21

Compression:

Stored size: 777 Bytes

Contents

module Fog
  module Compute
    class Google
      class Real
        include Fog::Google::Shared

        attr_accessor :client
        attr_reader :compute, :extra_global_projects, :exclude_projects

        def initialize(options)
          shared_initialize(options[:google_project], GOOGLE_COMPUTE_API_VERSION, GOOGLE_COMPUTE_BASE_URL)
          options[:google_api_scope_url] = GOOGLE_COMPUTE_API_SCOPE_URLS.join(" ")

          initialize_google_client(options)
          @compute = ::Google::Apis::ComputeV1::ComputeService.new
          apply_client_options(@compute, options)

          @extra_global_projects = options[:google_extra_global_projects] || []
          @exclude_projects = options[:google_exclude_projects] || []
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
fog-google-1.24.1 lib/fog/compute/google/real.rb
fog-google-1.24.0 lib/fog/compute/google/real.rb
fog-google-1.23.0 lib/fog/compute/google/real.rb
fog-google-1.22.0 lib/fog/compute/google/real.rb
fog-google-1.21.1 lib/fog/compute/google/real.rb
fog-google-1.21.0 lib/fog/compute/google/real.rb
fog-google-1.20.0 lib/fog/compute/google/real.rb
fog-google-1.19.0 lib/fog/compute/google/real.rb
fog-google-1.18.0 lib/fog/compute/google/real.rb
fog-google-1.17.0 lib/fog/compute/google/real.rb
fog-google-1.16.1 lib/fog/compute/google/real.rb
fog-google-1.16.0 lib/fog/compute/google/real.rb
fog-google-1.15.0 lib/fog/compute/google/real.rb
fog-google-1.14.0 lib/fog/compute/google/real.rb
gitlab-fog-google-1.14.0 lib/fog/compute/google/real.rb
fog-google-1.13.0 lib/fog/compute/google/real.rb
gitlab-fog-google-1.13.0 lib/fog/compute/google/real.rb
fog-google-1.12.1 lib/fog/compute/google/real.rb
fog-google-1.12.0 lib/fog/compute/google/real.rb
fog-google-1.11.0 lib/fog/compute/google/real.rb