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

Inherits:
V1::Firestore::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"