Skip to content

Commit 1185fe5

Browse files
Google APIscopybara-github
authored andcommitted
feat(spanner): Add instance partitions field in backup proto
PiperOrigin-RevId: 726160420
1 parent 25989cb commit 1185fe5

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,13 @@ message Backup {
207207
// retained by the backup system.
208208
google.protobuf.Timestamp oldest_version_time = 18
209209
[(google.api.field_behavior) = OUTPUT_ONLY];
210+
211+
// Output only. The instance partition(s) storing the backup.
212+
//
213+
// This is the same as the list of the instance partition(s) that the database
214+
// had footprint in at the backup's `version_time`.
215+
repeated BackupInstancePartition instance_partitions = 19
216+
[(google.api.field_behavior) = OUTPUT_ONLY];
210217
}
211218

212219
// The request for
@@ -755,3 +762,12 @@ message FullBackupSpec {}
755762
// successive incremental backups. The first backup created for an
756763
// incremental backup chain is always a full backup.
757764
message IncrementalBackupSpec {}
765+
766+
// Instance partition information for the backup.
767+
message BackupInstancePartition {
768+
// A unique identifier for the instance partition. Values are of the form
769+
// `projects/<project>/instances/<instance>/instancePartitions/<instance_partition_id>`
770+
string instance_partition = 1 [(google.api.resource_reference) = {
771+
type: "spanner.googleapis.com/InstancePartition"
772+
}];
773+
}

google/spanner/admin/database/v1/spanner_database_admin.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ option (google.api.resource_definition) = {
4242
type: "spanner.googleapis.com/Instance"
4343
pattern: "projects/{project}/instances/{instance}"
4444
};
45+
option (google.api.resource_definition) = {
46+
type: "spanner.googleapis.com/InstancePartition"
47+
pattern: "projects/{project}/instances/{instance}/instancePartitions/{instance_partition}"
48+
};
4549

4650
// Cloud Spanner Database Admin API
4751
//

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy