Class: Google::Cloud::Bigtable::Credentials

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

Overview

Credentials

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

Examples:

require "google/cloud/bigtable"

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

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

bigtable.project_id #=> "my-project"