Skip to content

Commit df539e6

Browse files
feat(spanner): Add resource reference annotation to backup schedules (#2093)
* feat(spanner): add edition field to the instance proto PiperOrigin-RevId: 662226829 Source-Link: googleapis/googleapis@eb87f47 Source-Link: googleapis/googleapis-gen@0fb784e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGZiNzg0ZTgyNjdmMDkzMWQyNGYxNTJlYzVmNjZlODA5YzJhMmVmYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat(spanner): Add resource reference annotation to backup schedules docs(spanner): Add an example to filter backups based on schedule name PiperOrigin-RevId: 662402292 Source-Link: googleapis/googleapis@96facec Source-Link: googleapis/googleapis-gen@fe33f1c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmUzM2YxYzYxNDE1YWVmNGU3MGY0OTFkZmI4Nzg5YTY4ZThkOTA4MyJ9 * 🦉 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 d8d5f77 commit df539e6

10 files changed

+1850
-109
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ system-test/*key.json
1212
.DS_Store
1313
package-lock.json
1414
__pycache__
15-
.vscode

protos/google/spanner/admin/database/v1/backup.proto

+9-2
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,12 @@ message Backup {
184184
// the list of all backup schedule URIs that are associated with creating
185185
// this backup. If collapsing is not done, then this field captures the
186186
// single backup schedule URI associated with creating this backup.
187-
repeated string backup_schedules = 14
188-
[(google.api.field_behavior) = OUTPUT_ONLY];
187+
repeated string backup_schedules = 14 [
188+
(google.api.field_behavior) = OUTPUT_ONLY,
189+
(google.api.resource_reference) = {
190+
type: "spanner.googleapis.com/BackupSchedule"
191+
}
192+
];
189193

190194
// Output only. Populated only for backups in an incremental backup chain.
191195
// Backups share the same chain id if and only if they belong to the same
@@ -426,6 +430,7 @@ message ListBackupsRequest {
426430
// * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
427431
// * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
428432
// * `size_bytes`
433+
// * `backup_schedules`
429434
//
430435
// You can combine multiple expressions by enclosing each expression in
431436
// parentheses. By default, expressions are combined with AND logic, but
@@ -444,6 +449,8 @@ message ListBackupsRequest {
444449
// * `expire_time < \"2018-03-28T14:50:00Z\"`
445450
// - The backup `expire_time` is before 2018-03-28T14:50:00Z.
446451
// * `size_bytes > 10000000000` - The backup's size is greater than 10GB
452+
// * `backup_schedules:daily`
453+
// - The backup is created from a schedule with "daily" in its name.
447454
string filter = 2;
448455

449456
// Number of backups to be returned in the response. If 0 or

protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto

+203-62
Large diffs are not rendered by default.

protos/protos.d.ts

+338
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.js

+765
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.json

+80-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/v1/database_admin_client.ts

+9
Original file line numberDiff line numberDiff line change
@@ -3073,6 +3073,7 @@ export class DatabaseAdminClient {
30733073
* * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
30743074
* * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
30753075
* * `size_bytes`
3076+
* * `backup_schedules`
30763077
*
30773078
* You can combine multiple expressions by enclosing each expression in
30783079
* parentheses. By default, expressions are combined with AND logic, but
@@ -3091,6 +3092,8 @@ export class DatabaseAdminClient {
30913092
* * `expire_time < \"2018-03-28T14:50:00Z\"`
30923093
* - The backup `expire_time` is before 2018-03-28T14:50:00Z.
30933094
* * `size_bytes > 10000000000` - The backup's size is greater than 10GB
3095+
* * `backup_schedules:daily`
3096+
* - The backup is created from a schedule with "daily" in its name.
30943097
* @param {number} request.pageSize
30953098
* Number of backups to be returned in the response. If 0 or
30963099
* less, defaults to the server's maximum allowed page size.
@@ -3214,6 +3217,7 @@ export class DatabaseAdminClient {
32143217
* * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
32153218
* * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
32163219
* * `size_bytes`
3220+
* * `backup_schedules`
32173221
*
32183222
* You can combine multiple expressions by enclosing each expression in
32193223
* parentheses. By default, expressions are combined with AND logic, but
@@ -3232,6 +3236,8 @@ export class DatabaseAdminClient {
32323236
* * `expire_time < \"2018-03-28T14:50:00Z\"`
32333237
* - The backup `expire_time` is before 2018-03-28T14:50:00Z.
32343238
* * `size_bytes > 10000000000` - The backup's size is greater than 10GB
3239+
* * `backup_schedules:daily`
3240+
* - The backup is created from a schedule with "daily" in its name.
32353241
* @param {number} request.pageSize
32363242
* Number of backups to be returned in the response. If 0 or
32373243
* less, defaults to the server's maximum allowed page size.
@@ -3303,6 +3309,7 @@ export class DatabaseAdminClient {
33033309
* * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
33043310
* * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
33053311
* * `size_bytes`
3312+
* * `backup_schedules`
33063313
*
33073314
* You can combine multiple expressions by enclosing each expression in
33083315
* parentheses. By default, expressions are combined with AND logic, but
@@ -3321,6 +3328,8 @@ export class DatabaseAdminClient {
33213328
* * `expire_time < \"2018-03-28T14:50:00Z\"`
33223329
* - The backup `expire_time` is before 2018-03-28T14:50:00Z.
33233330
* * `size_bytes > 10000000000` - The backup's size is greater than 10GB
3331+
* * `backup_schedules:daily`
3332+
* - The backup is created from a schedule with "daily" in its name.
33243333
* @param {number} request.pageSize
33253334
* Number of backups to be returned in the response. If 0 or
33263335
* less, defaults to the server's maximum allowed page size.

0 commit comments

Comments
 (0)