Firestore in Datastore mode API - Class Google::Cloud::Datastore::Credentials (v2.13.1)

Reference documentation and code samples for the Firestore in Datastore mode API class Google::Cloud::Datastore::Credentials.

Credentials

Represents the authentication and authorization used to connect to the Datastore API.

Inherits

  • Google::Cloud::Datastore::V1::Datastore::Credentials

Example

require "google/cloud/datastore" keyfile = "/path/to/keyfile.json" creds = Google::Cloud::Datastore::Credentials.new keyfile datastore = Google::Cloud::Datastore.new(  project_id: "my-todo-project",  credentials: creds ) datastore.project_id #=> "my-todo-project"