#[non_exhaustive]pub struct CopyBackupRequest {
pub parent: String,
pub backup_id: String,
pub source_backup: String,
pub expire_time: Option<Timestamp>,
pub encryption_config: Option<CopyBackupEncryptionConfig>,
/* private fields */
}Expand description
The request for CopyBackup.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The name of the destination instance that will contain the backup
copy. Values are of the form: projects/<project>/instances/<instance>.
backup_id: StringRequired. The id of the backup copy.
The backup_id appended to parent forms the full backup_uri of the form
projects/<project>/instances/<instance>/backups/<backup>.
source_backup: StringRequired. The source backup to be copied.
The source backup needs to be in READY state for it to be copied.
Once CopyBackup is in progress, the source backup cannot be deleted or
cleaned up on expiration until CopyBackup is finished.
Values are of the form:
projects/<project>/instances/<instance>/backups/<backup>.
expire_time: Option<Timestamp>Required. The expiration time of the backup in microsecond granularity.
The expiration time must be at least 6 hours and at most 366 days
from the create_time of the source backup. Once the expire_time has
passed, the backup is eligible to be automatically deleted by Cloud Spanner
to free the resources used by the backup.
encryption_config: Option<CopyBackupEncryptionConfig>Optional. The encryption configuration used to encrypt the backup. If this
field is not specified, the backup will use the same encryption
configuration as the source backup by default, namely
encryption_type
= USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION.
Implementations§
Source§impl CopyBackupRequest
impl CopyBackupRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_backup_id<T: Into<String>>(self, v: T) -> Self
pub fn set_backup_id<T: Into<String>>(self, v: T) -> Self
Sets the value of backup_id.
Sourcepub fn set_source_backup<T: Into<String>>(self, v: T) -> Self
pub fn set_source_backup<T: Into<String>>(self, v: T) -> Self
Sets the value of source_backup.
Sourcepub fn set_expire_time<T>(self, v: T) -> Self
pub fn set_expire_time<T>(self, v: T) -> Self
Sets the value of expire_time.
Sourcepub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of expire_time.
Sourcepub fn set_encryption_config<T>(self, v: T) -> Selfwhere
T: Into<CopyBackupEncryptionConfig>,
pub fn set_encryption_config<T>(self, v: T) -> Selfwhere
T: Into<CopyBackupEncryptionConfig>,
Sets the value of encryption_config.
Sourcepub fn set_or_clear_encryption_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CopyBackupEncryptionConfig>,
pub fn set_or_clear_encryption_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CopyBackupEncryptionConfig>,
Sets or clears the value of encryption_config.
Trait Implementations§
Source§impl Clone for CopyBackupRequest
impl Clone for CopyBackupRequest
Source§fn clone(&self) -> CopyBackupRequest
fn clone(&self) -> CopyBackupRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more