module Google::Cloud::Bigtable::V2::Bigtable::Paths

Path helper methods for the Bigtable API.

Public Instance Methods

table_path(project:, instance:, table: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Table resource string.

The resource will be in the following format:

`projects/{project}/instances/{instance}/tables/{table}`

@param project [String] @param instance [String] @param table [String]

@return [::String]

# 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