google-cloud-bigtable - Module Google::Cloud (v2.6.5)

Stay organized with collections Save and categorize content based on your preferences.

Reference documentation and code samples for the google-cloud-bigtable module Google::Cloud.

Methods

.bigtable

def self.bigtable(project_id: nil, credentials: nil, scope: nil, timeout: nil) -> Google::Cloud::Bigtable::Project

Creates a Cloud Bigtable client instance for data, table admin and instance admin operations.

Parameters
  • project_id (String) (defaults to: nil) — Project identifier for the Bigtable service you are connecting to. If not present, the default project for the credentials is used.
  • credentials (Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc) (defaults to: nil) — The means for authenticating requests made by the client. This parameter can be one of the following types. Google::Auth::Credentials uses the properties of its represented keyfile for authenticating requests made by this client. String will be treated as the path to the keyfile to use to construct credentials for this client. Hash will be treated as the contents of a keyfile to use to construct credentials for this client. GRPC::Core::Channel will be used to make calls through. GRPC::Core::ChannelCredentials will be used to set up the gRPC client. The channel credentials should already be composed with a GRPC::Core::CallCredentials object. Proc will be used as an updater_proc for the gRPC channel. The proc transforms the metadata for requests, generally, to give OAuth credentials.
  • scope (Array<String>) (defaults to: nil) — The OAuth 2.0 scopes controlling the set of resources and operations that the connection can access. See Using OAuth 2.0 to Access Google APIs. The OAuth scopes for this service. This parameter is ignored if an updater_proc is supplied.
  • timeout (Integer) (defaults to: nil) — The default timeout, in seconds, for calls made through this client.
Example
require "google/cloud/bigtable"

bigtable = Google::Cloud.bigtable

#bigtable

def bigtable(scope: nil, timeout: nil, credentials: nil) -> Google::Cloud::Bigtable::Project

Creates a new object for connecting to the Cloud Bigtable service.

For more information on connecting to Google Cloud Platform, see the Authentication Guide.

Parameters
  • scope (Array<String>) (defaults to: nil) — The OAuth 2.0 scopes controlling the set of resources and operations that the connection can access. See Using OAuth 2.0 to Access Google APIs. The OAuth scopes for this service. This parameter is ignored if an updater_proc is supplied.
  • timeout (Integer) (defaults to: nil) — The default timeout, in seconds, for calls made through this client.
  • credentials (Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc) (defaults to: nil) — Provides the means for authenticating requests made by the client. This parameter can be one of the following types. Google::Auth::Credentials uses the properties of its represented keyfile for authenticating requests made by this client. String will be treated as the path to the keyfile to use to construct credentials for this client. Hash will be treated as the contents of a keyfile to use to construct credentials for this client. GRPC::Core::Channel will be used to make calls through. GRPC::Core::ChannelCredentials will be used to set up the gRPC client. The channel credentials should already be composed with a GRPC::Core::CallCredentials object. Proc will be used as an updater_proc for the gRPC channel. The proc transforms the metadata for requests, generally, to give OAuth credentials.
Example
require "google/cloud/bigtable"

gcloud  = Google::Cloud.new

bigtable = gcloud.bigtable