@@ -61,6 +61,12 @@ message Backup {
6161 type : "spanner.googleapis.com/Database"
6262 }];
6363
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+
6470 // Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
6571 // operation. The expiration time of the backup, with microseconds
6672 // granularity that must be at least 6 hours and at most 366 days
@@ -84,10 +90,9 @@ message Backup {
8490 // `projects/<project>/instances/<instance>`.
8591 string name = 1 ;
8692
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`.
9196 google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior ) = OUTPUT_ONLY ];
9297
9398 // Output only. Size of the backup in bytes.
@@ -134,10 +139,14 @@ message CreateBackupRequest {
134139// [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup].
135140message CreateBackupMetadata {
136141 // 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+ }];
138145
139146 // 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+ }];
141150
142151 // The progress of the
143152 // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
@@ -311,9 +320,9 @@ message ListBackupOperationsRequest {
311320 // * `done:true` - The operation is complete.
312321 // * `metadata.database:prod` - The database the backup was taken from has
313322 // 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` \
317326 // `(error:*)` - Returns operations where:
318327 // * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
319328 // * The backup name contains the string "howl".
@@ -355,12 +364,23 @@ message ListBackupOperationsResponse {
355364// Information about a backup.
356365message BackupInfo {
357366 // Name of the backup.
358- string backup = 1 ;
367+ string backup = 1 [(google.api.resource_reference ) = {
368+ type : "spanner.googleapis.com/Backup"
369+ }];
359370
360371 // 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.
362380 google.protobuf.Timestamp create_time = 2 ;
363381
364382 // 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+ }];
366386}
0 commit comments