Sha256: ba561af1e69f3ed59ebc5de6b3b825a8ec2013b6fbb4e6b139c69575f6e45766

Contents?: true

Size: 688 Bytes

Versions: 5

Compression:

Stored size: 688 Bytes

Contents

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

        attr_accessor :client
        attr_reader :compute, :extra_global_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] || []
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-google-1.9.1 lib/fog/compute/google/real.rb
fog-google-1.9.0 lib/fog/compute/google/real.rb
fog-google-1.8.2 lib/fog/compute/google/real.rb
fog-google-1.8.1 lib/fog/compute/google/real.rb
fog-google-1.8.0 lib/fog/compute/google/real.rb