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

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

Overview

Credentials

Represents the authentication and authorization used to connect to the 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"