Class: Google::Cloud::Logging::Credentials

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

Overview

Credentials

Represents the authentication and authorization used to connect to the Stackdriver Logging API.

Examples:

require "google/cloud/logging"

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

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

logging.project_id #=> "my-project"

Constant Summary

Constants inherited from V2::Credentials

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