#[non_exhaustive]pub struct BackupVault {Show 14 fields
pub name: String,
pub state: State,
pub create_time: Option<Timestamp>,
pub description: String,
pub labels: HashMap<String, String>,
pub backup_vault_type: BackupVaultType,
pub source_region: String,
pub backup_region: String,
pub source_backup_vault: String,
pub destination_backup_vault: String,
pub backup_retention_policy: Option<BackupRetentionPolicy>,
pub kms_config: String,
pub encryption_state: EncryptionState,
pub backups_crypto_key_version: String,
/* private fields */
}Expand description
A NetApp BackupVault.
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.name: StringIdentifier. The resource name of the backup vault.
Format:
projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}.
state: StateOutput only. The backup vault state.
create_time: Option<Timestamp>Output only. Create time of the backup vault.
description: StringDescription of the backup vault.
labels: HashMap<String, String>Resource labels to represent user provided metadata.
backup_vault_type: BackupVaultTypeOptional. Type of backup vault to be created. Default is IN_REGION.
source_region: StringOutput only. Region in which the backup vault is created.
Format: projects/{project_id}/locations/{location}
backup_region: StringOptional. Region where the backups are stored.
Format: projects/{project_id}/locations/{location}
source_backup_vault: StringOutput only. Name of the Backup vault created in source region.
Format:
projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}
destination_backup_vault: StringOutput only. Name of the Backup vault created in backup region.
Format:
projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}
backup_retention_policy: Option<BackupRetentionPolicy>Optional. Backup retention policy defining the retention of backups.
kms_config: StringOptional. Specifies the Key Management System (KMS) configuration to be
used for backup encryption. Format:
projects/{project}/locations/{location}/kmsConfigs/{kms_config}
encryption_state: EncryptionStateOutput only. Field indicating encryption state of CMEK backups.
backups_crypto_key_version: StringOutput only. The crypto key version used to encrypt the backup vault.
Format:
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
Implementations§
Source§impl BackupVault
impl BackupVault
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = BackupVault::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = BackupVault::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = BackupVault::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_backup_vault_type<T: Into<BackupVaultType>>(self, v: T) -> Self
pub fn set_backup_vault_type<T: Into<BackupVaultType>>(self, v: T) -> Self
Sets the value of backup_vault_type.
§Example
use google_cloud_netapp_v1::model::backup_vault::BackupVaultType;
let x0 = BackupVault::new().set_backup_vault_type(BackupVaultType::InRegion);
let x1 = BackupVault::new().set_backup_vault_type(BackupVaultType::CrossRegion);Sourcepub fn set_source_region<T: Into<String>>(self, v: T) -> Self
pub fn set_source_region<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_backup_region<T: Into<String>>(self, v: T) -> Self
pub fn set_backup_region<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_source_backup_vault<T: Into<String>>(self, v: T) -> Self
pub fn set_source_backup_vault<T: Into<String>>(self, v: T) -> Self
Sets the value of source_backup_vault.
§Example
let x = BackupVault::new().set_source_backup_vault(format!("projects/{project_id}/locations/{location_id}/backupVaults/{backup_vault_id}"));Sourcepub fn set_destination_backup_vault<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_backup_vault<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_backup_vault.
§Example
let x = BackupVault::new().set_destination_backup_vault(format!("projects/{project_id}/locations/{location_id}/backupVaults/{backup_vault_id}"));Sourcepub fn set_backup_retention_policy<T>(self, v: T) -> Selfwhere
T: Into<BackupRetentionPolicy>,
pub fn set_backup_retention_policy<T>(self, v: T) -> Selfwhere
T: Into<BackupRetentionPolicy>,
Sets the value of backup_retention_policy.
§Example
use google_cloud_netapp_v1::model::backup_vault::BackupRetentionPolicy;
let x = BackupVault::new().set_backup_retention_policy(BackupRetentionPolicy::default()/* use setters */);Sourcepub fn set_or_clear_backup_retention_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<BackupRetentionPolicy>,
pub fn set_or_clear_backup_retention_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<BackupRetentionPolicy>,
Sets or clears the value of backup_retention_policy.
§Example
use google_cloud_netapp_v1::model::backup_vault::BackupRetentionPolicy;
let x = BackupVault::new().set_or_clear_backup_retention_policy(Some(BackupRetentionPolicy::default()/* use setters */));
let x = BackupVault::new().set_or_clear_backup_retention_policy(None::<BackupRetentionPolicy>);Sourcepub fn set_kms_config<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_config<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_config.
§Example
let x = BackupVault::new().set_kms_config(format!("projects/{project_id}/locations/{location_id}/kmsConfigs/{kms_config_id}"));Sourcepub fn set_encryption_state<T: Into<EncryptionState>>(self, v: T) -> Self
pub fn set_encryption_state<T: Into<EncryptionState>>(self, v: T) -> Self
Sets the value of encryption_state.
§Example
use google_cloud_netapp_v1::model::backup_vault::EncryptionState;
let x0 = BackupVault::new().set_encryption_state(EncryptionState::Pending);
let x1 = BackupVault::new().set_encryption_state(EncryptionState::Completed);
let x2 = BackupVault::new().set_encryption_state(EncryptionState::InProgress);Sourcepub fn set_backups_crypto_key_version<T: Into<String>>(self, v: T) -> Self
pub fn set_backups_crypto_key_version<T: Into<String>>(self, v: T) -> Self
Sets the value of backups_crypto_key_version.
§Example
let x = BackupVault::new().set_backups_crypto_key_version("example");Trait Implementations§
Source§impl Clone for BackupVault
impl Clone for BackupVault
Source§fn clone(&self) -> BackupVault
fn clone(&self) -> BackupVault
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BackupVault
impl Debug for BackupVault
Source§impl Default for BackupVault
impl Default for BackupVault
Source§fn default() -> BackupVault
fn default() -> BackupVault
Source§impl Message for BackupVault
impl Message for BackupVault
Source§impl PartialEq for BackupVault
impl PartialEq for BackupVault
impl StructuralPartialEq for BackupVault
Auto Trait Implementations§
impl Freeze for BackupVault
impl RefUnwindSafe for BackupVault
impl Send for BackupVault
impl Sync for BackupVault
impl Unpin for BackupVault
impl UnsafeUnpin for BackupVault
impl UnwindSafe for BackupVault
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request