google-cloud-debugger - Class Google::Cloud::Debugger::Credentials (v0.42.2)

Reference documentation and code samples for the google-cloud-debugger class Google::Cloud::Debugger::Credentials.

Credentials

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

Inherits

  • Google::Cloud::Debugger::V2::Debugger::Credentials

Example

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"