Cloud Bigtable API - Class Google::Cloud::Bigtable::Credentials (v2.10.2)

Reference documentation and code samples for the Cloud Bigtable API class Google::Cloud::Bigtable::Credentials.

Credentials

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

Inherits

  • Google::Cloud::Bigtable::V2::Bigtable::Credentials

Example

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"