Class: Google::Cloud::Firestore::Credentials

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

Overview

Credentials

Represents the authentication and authorization used to connect to the Firestore service.

Examples:

require "google/cloud/firestore"

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

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

firestore.project_id #=> "my-project"

Constant Summary

Constants inherited from V1::Credentials

V1::Credentials::DEFAULT_PATHS, V1::Credentials::JSON_ENV_VARS, V1::Credentials::PATH_ENV_VARS, V1::Credentials::SCOPE