module Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Paths

Path helper methods for the BigtableTableAdmin API.

Public Instance Methods

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

Create a fully-qualified Backup resource string.

The resource will be in the following format:

`projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`

@param project [String] @param instance [String] @param cluster [String] @param backup [String]

@return [::String]

# File lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb, line 41
def backup_path project:, instance:, cluster:, backup:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
  raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/"

  "projects/#{project}/instances/#{instance}/clusters/#{cluster}/backups/#{backup}"
end
cluster_path(project:, instance:, cluster: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Cluster resource string.

The resource will be in the following format:

`projects/{project}/instances/{instance}/clusters/{cluster}`

@param project [String] @param instance [String] @param cluster [String]

@return [::String]

# File lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb, line 61
def cluster_path project:, instance:, cluster:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"

  "projects/#{project}/instances/#{instance}/clusters/#{cluster}"
end
crypto_key_version_path(project:, location:, key_ring:, crypto_key:, crypto_key_version: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified CryptoKeyVersion resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`

@param project [String] @param location [String] @param key_ring [String] @param crypto_key [String] @param crypto_key_version [String]

@return [::String]

# File lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb, line 82
def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
  raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"

  "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
end
instance_path(project:, instance: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Instance resource string.

The resource will be in the following format:

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

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

@return [::String]

# File lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb, line 102
def instance_path project:, instance:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/instances/#{instance}"
end
snapshot_path(project:, instance:, cluster:, snapshot: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Snapshot resource string.

The resource will be in the following format:

`projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`

@param project [String] @param instance [String] @param cluster [String] @param snapshot [String]

@return [::String]

# File lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb, line 121
def snapshot_path project:, instance:, cluster:, snapshot:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
  raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/"

  "projects/#{project}/instances/#{instance}/clusters/#{cluster}/snapshots/#{snapshot}"
end
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/admin/v2/bigtable_table_admin/paths.rb, line 141
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