Module: Google::Cloud
- Defined in:
- lib/google-cloud-bigtable.rb,
lib/google/cloud/bigtable.rb,
lib/google/cloud/bigtable/v2.rb,
lib/google/cloud/bigtable/row.rb,
lib/google/cloud/bigtable/admin.rb,
lib/google/cloud/bigtable/table.rb,
lib/google/cloud/bigtable/backup.rb,
lib/google/cloud/bigtable/errors.rb,
lib/google/cloud/bigtable/policy.rb,
lib/google/cloud/bigtable/status.rb,
lib/google/cloud/bigtable/cluster.rb,
lib/google/cloud/bigtable/convert.rb,
lib/google/cloud/bigtable/gc_rule.rb,
lib/google/cloud/bigtable/project.rb,
lib/google/cloud/bigtable/service.rb,
lib/google/cloud/bigtable/version.rb,
lib/google/cloud/bigtable/admin/v2.rb,
lib/google/cloud/bigtable/instance.rb,
lib/google/cloud/bigtable/row_range.rb,
lib/google/cloud/bigtable/backup/job.rb,
lib/google/cloud/bigtable/row_filter.rb,
lib/google/cloud/bigtable/table/list.rb,
lib/google/cloud/bigtable/app_profile.rb,
lib/google/cloud/bigtable/backup/list.rb,
lib/google/cloud/bigtable/cluster/job.rb,
lib/google/cloud/bigtable/credentials.rb,
lib/google/cloud/bigtable/rows_reader.rb,
lib/google/cloud/bigtable/value_range.rb,
lib/google/cloud/bigtable/cluster/list.rb,
lib/google/cloud/bigtable/column_range.rb,
lib/google/cloud/bigtable/instance/job.rb,
lib/google/cloud/bigtable/rows_mutator.rb,
lib/google/cloud/bigtable/column_family.rb,
lib/google/cloud/bigtable/instance/list.rb,
lib/google/cloud/bigtable/mutation_entry.rb,
lib/google/cloud/bigtable/routing_policy.rb,
lib/google/cloud/bigtable/sample_row_key.rb,
lib/google/cloud/bigtable/v2/credentials.rb,
lib/google/cloud/bigtable/app_profile/job.rb,
lib/google/cloud/bigtable/chunk_processor.rb,
lib/google/cloud/bigtable/longrunning_job.rb,
lib/google/cloud/bigtable/read_operations.rb,
lib/google/cloud/bigtable/app_profile/list.rb,
lib/google/cloud/bigtable/admin/credentials.rb,
lib/google/cloud/bigtable/column_family_map.rb,
lib/google/cloud/bigtable/table/restore_job.rb,
lib/google/cloud/bigtable/v2/bigtable_client.rb,
lib/google/cloud/bigtable/mutation_operations.rb,
lib/google/cloud/bigtable/table/cluster_state.rb,
lib/google/cloud/bigtable/admin/v2/credentials.rb,
lib/google/cloud/bigtable/instance/cluster_map.rb,
lib/google/cloud/bigtable/read_modify_write_rule.rb,
lib/google/cloud/bigtable/row_filter/chain_filter.rb,
lib/google/cloud/bigtable/row_filter/simple_filter.rb,
lib/google/cloud/bigtable/row_filter/condition_filter.rb,
lib/google/cloud/bigtable/row_filter/interleave_filter.rb,
lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb,
lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb
Defined Under Namespace
Modules: Bigtable
Class Method Summary collapse
-
.bigtable(project_id: nil, credentials: nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Bigtable::Project
Creates a Cloud Bigtable client instance for data, table admin and instance admin operations.
Instance Method Summary collapse
-
#bigtable(scope: nil, timeout: nil, credentials: nil, client_config: nil) ⇒ Google::Cloud::Bigtable::Project
Creates a new object for connecting to the Cloud Bigtable service.
Class Method Details
.bigtable(project_id: nil, credentials: nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Bigtable::Project
Creates a Cloud Bigtable client instance for data, table admin and instance admin operations.
125 126 127 128 129 130 131 132 133 134 |
# File 'lib/google-cloud-bigtable.rb', line 125 def self.bigtable project_id: nil, credentials: nil, scope: nil, timeout: nil, client_config: nil require "google/cloud/bigtable" Google::Cloud::Bigtable.new( project_id: project_id, credentials: credentials, scope: scope, timeout: timeout, client_config: client_config ) end |
Instance Method Details
#bigtable(scope: nil, timeout: nil, credentials: nil, client_config: 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.
72 73 74 75 76 77 78 79 80 |
# File 'lib/google-cloud-bigtable.rb', line 72 def bigtable scope: nil, timeout: nil, credentials: nil, client_config: nil Google::Cloud.bigtable( project_id: @project, credentials: (credentials || @keyfile), scope: scope, timeout: (timeout || @timeout), client_config: client_config ) end |