Class: Google::Cloud::ErrorReporting::Credentials

Inherits:
V1beta1::Credentials show all
Defined in:
lib/google/cloud/error_reporting/credentials.rb

Overview

Credentials

Represents the authentication and authorization used to connect to the Stackdriver Error Reporting service.

Examples:

require "google/cloud/error_reporting"

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

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

error_reporting.project_id #=> "my-project"

Constant Summary

Constants inherited from V1beta1::Credentials

V1beta1::Credentials::DEFAULT_PATHS, V1beta1::Credentials::JSON_ENV_VARS, V1beta1::Credentials::PATH_ENV_VARS, V1beta1::Credentials::SCOPE