Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Bigtable/metadata/Admin/V2/Table.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions Bigtable/src/Admin/V2/Client/BigtableTableAdminClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,23 @@ public static function instanceName(string $project, string $instance): string
]);
}

/**
* Formats a string containing the fully-qualified path to represent a location
* resource.
*
* @param string $project
* @param string $location
*
* @return string The formatted location resource.
*/
public static function locationName(string $project, string $location): string
{
return self::getPathTemplate('location')->render([
'project' => $project,
'location' => $location,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* schema_bundle resource.
Expand Down Expand Up @@ -413,6 +430,7 @@ public static function tableName(string $project, string $instance, string $tabl
* - cluster: projects/{project}/instances/{instance}/clusters/{cluster}
* - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
* - instance: projects/{project}/instances/{instance}
* - location: projects/{project}/locations/{location}
* - schemaBundle: projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}
* - snapshot: projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}
* - table: projects/{project}/instances/{instance}/tables/{table}
Expand Down
Loading
Loading