@@ -61,6 +61,12 @@ message Backup {
61
61
type : "spanner.googleapis.com/Database"
62
62
}];
63
63
64
+ // The backup will contain an externally consistent copy of the database at
65
+ // the timestamp specified by `version_time`. If `version_time` is not
66
+ // specified, the system will set `version_time` to the `create_time` of the
67
+ // backup.
68
+ google.protobuf.Timestamp version_time = 9 ;
69
+
64
70
// Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
65
71
// operation. The expiration time of the backup, with microseconds
66
72
// granularity that must be at least 6 hours and at most 366 days
@@ -84,10 +90,9 @@ message Backup {
84
90
// `projects/<project>/instances/<instance>`.
85
91
string name = 1 ;
86
92
87
- // Output only. The backup will contain an externally consistent
88
- // copy of the database at the timestamp specified by
89
- // `create_time`. `create_time` is approximately the time the
90
- // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received.
93
+ // Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
94
+ // request is received. If the request does not specify `version_time`, the
95
+ // `version_time` of the backup will be equivalent to the `create_time`.
91
96
google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior ) = OUTPUT_ONLY ];
92
97
93
98
// Output only. Size of the backup in bytes.
@@ -134,10 +139,14 @@ message CreateBackupRequest {
134
139
// [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup].
135
140
message CreateBackupMetadata {
136
141
// The name of the backup being created.
137
- string name = 1 ;
142
+ string name = 1 [(google.api.resource_reference ) = {
143
+ type : "spanner.googleapis.com/Backup"
144
+ }];
138
145
139
146
// The name of the database the backup is created from.
140
- string database = 2 ;
147
+ string database = 2 [(google.api.resource_reference ) = {
148
+ type : "spanner.googleapis.com/Database"
149
+ }];
141
150
142
151
// The progress of the
143
152
// [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
@@ -311,9 +320,9 @@ message ListBackupOperationsRequest {
311
320
// * `done:true` - The operation is complete.
312
321
// * `metadata.database:prod` - The database the backup was taken from has
313
322
// a name containing the string "prod".
314
- // * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` <br/>
315
- // `(metadata.name:howl) AND` <br/>
316
- // `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` <br/>
323
+ // * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
324
+ // `(metadata.name:howl) AND` \
325
+ // `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
317
326
// `(error:*)` - Returns operations where:
318
327
// * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
319
328
// * The backup name contains the string "howl".
@@ -355,12 +364,23 @@ message ListBackupOperationsResponse {
355
364
// Information about a backup.
356
365
message BackupInfo {
357
366
// Name of the backup.
358
- string backup = 1 ;
367
+ string backup = 1 [(google.api.resource_reference ) = {
368
+ type : "spanner.googleapis.com/Backup"
369
+ }];
359
370
360
371
// The backup contains an externally consistent copy of `source_database` at
361
- // the timestamp specified by `create_time`.
372
+ // the timestamp specified by `version_time`. If the
373
+ // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
374
+ // `version_time`, the `version_time` of the backup is equivalent to the
375
+ // `create_time`.
376
+ google.protobuf.Timestamp version_time = 4 ;
377
+
378
+ // The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
379
+ // received.
362
380
google.protobuf.Timestamp create_time = 2 ;
363
381
364
382
// Name of the database the backup was created from.
365
- string source_database = 3 ;
383
+ string source_database = 3 [(google.api.resource_reference ) = {
384
+ type : "spanner.googleapis.com/Database"
385
+ }];
366
386
}
0 commit comments