#[non_exhaustive]pub struct CreateBackupRequest {
pub parent: String,
pub backup_id: String,
pub backup: Option<Backup>,
pub encryption_config: Option<CreateBackupEncryptionConfig>,
}
Expand description
The request for CreateBackup.
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: String
Required. The name of the instance in which the backup will be
created. This must be the same instance that contains the database the
backup will be created from. The backup will be stored in the
location(s) specified in the instance configuration of this
instance. Values are of the form
projects/<project>/instances/<instance>
.
backup_id: String
Required. The id of the backup to be created. The backup_id
appended to
parent
forms the full backup name of the form
projects/<project>/instances/<instance>/backups/<backup_id>
.
backup: Option<Backup>
Required. The backup to create.
encryption_config: Option<CreateBackupEncryptionConfig>
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 database by default, namely
encryption_type
= USE_DATABASE_ENCRYPTION
.
Implementations§
Source§impl CreateBackupRequest
impl CreateBackupRequest
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_encryption_config<T: Into<Option<CreateBackupEncryptionConfig>>>(
self,
v: T,
) -> Self
pub fn set_encryption_config<T: Into<Option<CreateBackupEncryptionConfig>>>( self, v: T, ) -> Self
Sets the value of encryption_config.
Trait Implementations§
Source§impl Clone for CreateBackupRequest
impl Clone for CreateBackupRequest
Source§fn clone(&self) -> CreateBackupRequest
fn clone(&self) -> CreateBackupRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more