Skip to content

Commit

Permalink
feat(spanner): Add resource reference annotation to backup schedules (#…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Aug 14, 2024
1 parent d8d5f77 commit df539e6
Show file tree
Hide file tree
Showing 10 changed files with 1,850 additions and 109 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ system-test/*key.json
.DS_Store
package-lock.json
__pycache__
.vscode
11 changes: 9 additions & 2 deletions protos/google/spanner/admin/database/v1/backup.proto
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,12 @@ message Backup {
// the list of all backup schedule URIs that are associated with creating
// this backup. If collapsing is not done, then this field captures the
// single backup schedule URI associated with creating this backup.
repeated string backup_schedules = 14
[(google.api.field_behavior) = OUTPUT_ONLY];
repeated string backup_schedules = 14 [
(google.api.field_behavior) = OUTPUT_ONLY,
(google.api.resource_reference) = {
type: "spanner.googleapis.com/BackupSchedule"
}
];

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

// Number of backups to be returned in the response. If 0 or
Expand Down
265 changes: 203 additions & 62 deletions protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto

Large diffs are not rendered by default.

338 changes: 338 additions & 0 deletions protos/protos.d.ts

Large diffs are not rendered by default.

765 changes: 765 additions & 0 deletions protos/protos.js

Large diffs are not rendered by default.

81 changes: 80 additions & 1 deletion protos/protos.json

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

9 changes: 9 additions & 0 deletions src/v1/database_admin_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3073,6 +3073,7 @@ export class DatabaseAdminClient {
* * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
* * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
* * `size_bytes`
* * `backup_schedules`
*
* You can combine multiple expressions by enclosing each expression in
* parentheses. By default, expressions are combined with AND logic, but
Expand All @@ -3091,6 +3092,8 @@ export class DatabaseAdminClient {
* * `expire_time < \"2018-03-28T14:50:00Z\"`
* - The backup `expire_time` is before 2018-03-28T14:50:00Z.
* * `size_bytes > 10000000000` - The backup's size is greater than 10GB
* * `backup_schedules:daily`
* - The backup is created from a schedule with "daily" in its name.
* @param {number} request.pageSize
* Number of backups to be returned in the response. If 0 or
* less, defaults to the server's maximum allowed page size.
Expand Down Expand Up @@ -3214,6 +3217,7 @@ export class DatabaseAdminClient {
* * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
* * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
* * `size_bytes`
* * `backup_schedules`
*
* You can combine multiple expressions by enclosing each expression in
* parentheses. By default, expressions are combined with AND logic, but
Expand All @@ -3232,6 +3236,8 @@ export class DatabaseAdminClient {
* * `expire_time < \"2018-03-28T14:50:00Z\"`
* - The backup `expire_time` is before 2018-03-28T14:50:00Z.
* * `size_bytes > 10000000000` - The backup's size is greater than 10GB
* * `backup_schedules:daily`
* - The backup is created from a schedule with "daily" in its name.
* @param {number} request.pageSize
* Number of backups to be returned in the response. If 0 or
* less, defaults to the server's maximum allowed page size.
Expand Down Expand Up @@ -3303,6 +3309,7 @@ export class DatabaseAdminClient {
* * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
* * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
* * `size_bytes`
* * `backup_schedules`
*
* You can combine multiple expressions by enclosing each expression in
* parentheses. By default, expressions are combined with AND logic, but
Expand All @@ -3321,6 +3328,8 @@ export class DatabaseAdminClient {
* * `expire_time < \"2018-03-28T14:50:00Z\"`
* - The backup `expire_time` is before 2018-03-28T14:50:00Z.
* * `size_bytes > 10000000000` - The backup's size is greater than 10GB
* * `backup_schedules:daily`
* - The backup is created from a schedule with "daily" in its name.
* @param {number} request.pageSize
* Number of backups to be returned in the response. If 0 or
* less, defaults to the server's maximum allowed page size.
Expand Down
Loading

0 comments on commit df539e6

Please sign in to comment.