|
|
|
@ -61,6 +61,12 @@ message Backup { |
|
|
|
|
type: "spanner.googleapis.com/Database" |
|
|
|
|
}]; |
|
|
|
|
|
|
|
|
|
// The backup will contain an externally consistent copy of the database at |
|
|
|
|
// the timestamp specified by `version_time`. If `version_time` is not |
|
|
|
|
// specified, the system will set `version_time` to the `create_time` of the |
|
|
|
|
// backup. |
|
|
|
|
google.protobuf.Timestamp version_time = 9; |
|
|
|
|
|
|
|
|
|
// Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] |
|
|
|
|
// operation. The expiration time of the backup, with microseconds |
|
|
|
|
// granularity that must be at least 6 hours and at most 366 days |
|
|
|
@ -84,10 +90,9 @@ message Backup { |
|
|
|
|
// `projects/<project>/instances/<instance>`. |
|
|
|
|
string name = 1; |
|
|
|
|
|
|
|
|
|
// Output only. The backup will contain an externally consistent |
|
|
|
|
// copy of the database at the timestamp specified by |
|
|
|
|
// `create_time`. `create_time` is approximately the time the |
|
|
|
|
// [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received. |
|
|
|
|
// Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] |
|
|
|
|
// request is received. If the request does not specify `version_time`, the |
|
|
|
|
// `version_time` of the backup will be equivalent to the `create_time`. |
|
|
|
|
google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
|
|
|
|
|
// Output only. Size of the backup in bytes. |
|
|
|
@ -134,10 +139,14 @@ message CreateBackupRequest { |
|
|
|
|
// [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]. |
|
|
|
|
message CreateBackupMetadata { |
|
|
|
|
// The name of the backup being created. |
|
|
|
|
string name = 1; |
|
|
|
|
string name = 1 [(google.api.resource_reference) = { |
|
|
|
|
type: "spanner.googleapis.com/Backup" |
|
|
|
|
}]; |
|
|
|
|
|
|
|
|
|
// The name of the database the backup is created from. |
|
|
|
|
string database = 2; |
|
|
|
|
string database = 2 [(google.api.resource_reference) = { |
|
|
|
|
type: "spanner.googleapis.com/Database" |
|
|
|
|
}]; |
|
|
|
|
|
|
|
|
|
// The progress of the |
|
|
|
|
// [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. |
|
|
|
@ -311,9 +320,9 @@ message ListBackupOperationsRequest { |
|
|
|
|
// * `done:true` - The operation is complete. |
|
|
|
|
// * `metadata.database:prod` - The database the backup was taken from has |
|
|
|
|
// a name containing the string "prod". |
|
|
|
|
// * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` <br/> |
|
|
|
|
// `(metadata.name:howl) AND` <br/> |
|
|
|
|
// `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` <br/> |
|
|
|
|
// * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ |
|
|
|
|
// `(metadata.name:howl) AND` \ |
|
|
|
|
// `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \ |
|
|
|
|
// `(error:*)` - Returns operations where: |
|
|
|
|
// * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]. |
|
|
|
|
// * The backup name contains the string "howl". |
|
|
|
@ -355,12 +364,23 @@ message ListBackupOperationsResponse { |
|
|
|
|
// Information about a backup. |
|
|
|
|
message BackupInfo { |
|
|
|
|
// Name of the backup. |
|
|
|
|
string backup = 1; |
|
|
|
|
string backup = 1 [(google.api.resource_reference) = { |
|
|
|
|
type: "spanner.googleapis.com/Backup" |
|
|
|
|
}]; |
|
|
|
|
|
|
|
|
|
// The backup contains an externally consistent copy of `source_database` at |
|
|
|
|
// the timestamp specified by `create_time`. |
|
|
|
|
// the timestamp specified by `version_time`. If the |
|
|
|
|
// [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify |
|
|
|
|
// `version_time`, the `version_time` of the backup is equivalent to the |
|
|
|
|
// `create_time`. |
|
|
|
|
google.protobuf.Timestamp version_time = 4; |
|
|
|
|
|
|
|
|
|
// The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was |
|
|
|
|
// received. |
|
|
|
|
google.protobuf.Timestamp create_time = 2; |
|
|
|
|
|
|
|
|
|
// Name of the database the backup was created from. |
|
|
|
|
string source_database = 3; |
|
|
|
|
string source_database = 3 [(google.api.resource_reference) = { |
|
|
|
|
type: "spanner.googleapis.com/Database" |
|
|
|
|
}]; |
|
|
|
|
} |
|
|
|
|