Class: Google::Cloud::Debugger::Credentials

Inherits:
V2::Credentials
  • Object
show all
Defined in:
lib/google/cloud/debugger/credentials.rb

Overview

Credentials

Represents the authentication and authorization used to connect to the Stackdriver Debugger service.

Examples:

require "google/cloud/debugger"

keyfile = "/path/to/keyfile.json"
creds = Google::Cloud::Debugger::Credentials.new keyfile

debugger = Google::Cloud::Debugger.new(
  project_id: "my-project",
  credentials: creds
)

debugger.project_id #=> "my-project"

Constant Summary collapse

SCOPE =
(Google::Cloud::Debugger::V2::Credentials::SCOPE +
Google::Cloud::Logging::Credentials::SCOPE).uniq.freeze

Constants inherited from V2::Credentials

V2::Credentials::DEFAULT_PATHS, V2::Credentials::JSON_ENV_VARS, V2::Credentials::PATH_ENV_VARS