Module: Google::Cloud::Bigtable::V2::Bigtable::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/cloud/bigtable/v2/bigtable/paths.rb
Overview
Path helper methods for the Bigtable API.
Instance Method Summary collapse
-
#table_path(project:, instance:, table:) ⇒ ::String
Create a fully-qualified Table resource string.
Instance Method Details
#table_path(project:, instance:, table:) ⇒ ::String
Create a fully-qualified Table resource string.
The resource will be in the following format:
projects/{project}/instances/{instance}/tables/{table}
39 40 41 42 43 44 |
# File 'lib/google/cloud/bigtable/v2/bigtable/paths.rb', line 39 def table_path project:, instance:, table: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" "projects/#{project}/instances/#{instance}/tables/#{table}" end |