Skip to content

Commit 3e6d0f1

Browse files
feat: [Bigtable] add locations field to AutomatedBackupPolicy (#9041)
* feat: add locations field to AutomatedBackupPolicy docs: A comment for field `retention_period` in message `.google.bigtable.admin.v2.Table` is changed docs: A comment for field `frequency` in message `.google.bigtable.admin.v2.Table` is changed PiperOrigin-RevId: 888234464 Source-Link: googleapis/googleapis@5993bc6 Source-Link: googleapis/googleapis-gen@773a76b Copy-Tag: eyJwIjoiQmlndGFibGUvLk93bEJvdC55YW1sIiwiaCI6Ijc3M2E3NmIyMzNhMGEyYjhiYTE2NTEyOTU3OTQ0MWNlZGI2OGYxNTcifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent d241351 commit 3e6d0f1

4 files changed

Lines changed: 89 additions & 20 deletions

File tree

Bigtable/metadata/Admin/V2/Table.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Bigtable/src/Admin/V2/Client/BigtableTableAdminClient.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,23 @@ public static function instanceName(string $project, string $instance): string
343343
]);
344344
}
345345

346+
/**
347+
* Formats a string containing the fully-qualified path to represent a location
348+
* resource.
349+
*
350+
* @param string $project
351+
* @param string $location
352+
*
353+
* @return string The formatted location resource.
354+
*/
355+
public static function locationName(string $project, string $location): string
356+
{
357+
return self::getPathTemplate('location')->render([
358+
'project' => $project,
359+
'location' => $location,
360+
]);
361+
}
362+
346363
/**
347364
* Formats a string containing the fully-qualified path to represent a
348365
* schema_bundle resource.
@@ -413,6 +430,7 @@ public static function tableName(string $project, string $instance, string $tabl
413430
* - cluster: projects/{project}/instances/{instance}/clusters/{cluster}
414431
* - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
415432
* - instance: projects/{project}/instances/{instance}
433+
* - location: projects/{project}/locations/{location}
416434
* - schemaBundle: projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}
417435
* - snapshot: projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}
418436
* - table: projects/{project}/instances/{instance}/tables/{table}

0 commit comments

Comments
 (0)