#[non_exhaustive]pub struct BackupDisasterRecovery {
pub backup_template: String,
pub policies: Vec<String>,
pub host: String,
pub applications: Vec<String>,
pub storage_pool: String,
pub policy_options: Vec<String>,
pub profile: String,
pub appliance: String,
pub backup_type: String,
pub backup_create_time: Option<Timestamp>,
/* private fields */
}Expand description
Information related to Google Cloud Backup and DR Service findings.
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.backup_template: StringThe name of a Backup and DR template which comprises one or more backup
policies. See the Backup and DR
documentation
for more information. For example, snap-ov.
policies: Vec<String>The names of Backup and DR policies that are associated with a template
and that define when to run a backup, how frequently to run a backup, and
how long to retain the backup image. For example, onvaults.
host: StringThe name of a Backup and DR host, which is managed by the backup and
recovery appliance and known to the management console. The host can be of
type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file
system, etc.), vCenter, or an ESX server. See the Backup and DR
documentation on
hosts
for more information. For example, centos7-01.
applications: Vec<String>The names of Backup and DR applications. An application is a VM, database,
or file system on a managed host monitored by a backup and recovery
appliance. For example, centos7-01-vol00, centos7-01-vol01,
centos7-01-vol02.
storage_pool: StringThe name of the Backup and DR storage pool that the backup and recovery
appliance is storing data in. The storage pool could be of type Cloud,
Primary, Snapshot, or OnVault. See the Backup and DR documentation on
storage
pools.
For example, DiskPoolOne.
policy_options: Vec<String>The names of Backup and DR advanced policy options of a policy applying to
an application. See the Backup and DR documentation on policy
options.
For example, skipofflineappsincongrp, nounmap.
profile: StringThe name of the Backup and DR resource profile that specifies the storage
media for backups of application and VM data. See the Backup and DR
documentation on
profiles.
For example, GCP.
appliance: StringThe name of the Backup and DR appliance that captures, moves, and manages
the lifecycle of backup data. For example, backup-server-57137.
backup_type: StringThe backup type of the Backup and DR image.
For example, Snapshot, Remote Snapshot, OnVault.
backup_create_time: Option<Timestamp>The timestamp at which the Backup and DR backup was created.
Implementations§
Source§impl BackupDisasterRecovery
impl BackupDisasterRecovery
pub fn new() -> Self
Sourcepub fn set_backup_template<T: Into<String>>(self, v: T) -> Self
pub fn set_backup_template<T: Into<String>>(self, v: T) -> Self
Sets the value of backup_template.
§Example
let x = BackupDisasterRecovery::new().set_backup_template("example");Sourcepub fn set_policies<T, V>(self, v: T) -> Self
pub fn set_policies<T, V>(self, v: T) -> Self
Sourcepub fn set_applications<T, V>(self, v: T) -> Self
pub fn set_applications<T, V>(self, v: T) -> Self
Sets the value of applications.
§Example
let x = BackupDisasterRecovery::new().set_applications(["a", "b", "c"]);Sourcepub fn set_storage_pool<T: Into<String>>(self, v: T) -> Self
pub fn set_storage_pool<T: Into<String>>(self, v: T) -> Self
Sets the value of storage_pool.
§Example
let x = BackupDisasterRecovery::new().set_storage_pool("example");Sourcepub fn set_policy_options<T, V>(self, v: T) -> Self
pub fn set_policy_options<T, V>(self, v: T) -> Self
Sets the value of policy_options.
§Example
let x = BackupDisasterRecovery::new().set_policy_options(["a", "b", "c"]);Sourcepub fn set_profile<T: Into<String>>(self, v: T) -> Self
pub fn set_profile<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_appliance<T: Into<String>>(self, v: T) -> Self
pub fn set_appliance<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_backup_type<T: Into<String>>(self, v: T) -> Self
pub fn set_backup_type<T: Into<String>>(self, v: T) -> Self
Sets the value of backup_type.
§Example
let x = BackupDisasterRecovery::new().set_backup_type("example");Sourcepub fn set_backup_create_time<T>(self, v: T) -> Self
pub fn set_backup_create_time<T>(self, v: T) -> Self
Sets the value of backup_create_time.
§Example
use wkt::Timestamp;
let x = BackupDisasterRecovery::new().set_backup_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_backup_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_backup_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of backup_create_time.
§Example
use wkt::Timestamp;
let x = BackupDisasterRecovery::new().set_or_clear_backup_create_time(Some(Timestamp::default()/* use setters */));
let x = BackupDisasterRecovery::new().set_or_clear_backup_create_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for BackupDisasterRecovery
impl Clone for BackupDisasterRecovery
Source§fn clone(&self) -> BackupDisasterRecovery
fn clone(&self) -> BackupDisasterRecovery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more