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

Inherits:
V1beta1::Credentials 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 V1beta1::Credentials

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