#[non_exhaustive]pub struct DiskAsyncReplication {
pub consistency_group_policy: Option<String>,
pub consistency_group_policy_id: Option<String>,
pub disk: Option<String>,
pub disk_id: Option<String>,
/* private fields */
}disks or region-disks only.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.consistency_group_policy: Option<String>Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.
consistency_group_policy_id: Option<String>Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.
disk: Option<String>The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values:
- https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk- projects/project/zones/zone/disks/disk
- zones/zone/disks/disk
disk_id: Option<String>Output only. [Output Only] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used.
Implementations§
Source§impl DiskAsyncReplication
impl DiskAsyncReplication
pub fn new() -> Self
Sourcepub fn set_consistency_group_policy<T>(self, v: T) -> Self
pub fn set_consistency_group_policy<T>(self, v: T) -> Self
Sets the value of consistency_group_policy.
§Example
let x = DiskAsyncReplication::new().set_consistency_group_policy("example");Sourcepub fn set_or_clear_consistency_group_policy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_consistency_group_policy<T>(self, v: Option<T>) -> Self
Sets or clears the value of consistency_group_policy.
§Example
let x = DiskAsyncReplication::new().set_or_clear_consistency_group_policy(Some("example"));
let x = DiskAsyncReplication::new().set_or_clear_consistency_group_policy(None::<String>);Sourcepub fn set_consistency_group_policy_id<T>(self, v: T) -> Self
pub fn set_consistency_group_policy_id<T>(self, v: T) -> Self
Sets the value of consistency_group_policy_id.
§Example
let x = DiskAsyncReplication::new().set_consistency_group_policy_id("example");Sourcepub fn set_or_clear_consistency_group_policy_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_consistency_group_policy_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of consistency_group_policy_id.
§Example
let x = DiskAsyncReplication::new().set_or_clear_consistency_group_policy_id(Some("example"));
let x = DiskAsyncReplication::new().set_or_clear_consistency_group_policy_id(None::<String>);Sourcepub fn set_or_clear_disk<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_disk<T>(self, v: Option<T>) -> Self
Sourcepub fn set_disk_id<T>(self, v: T) -> Self
pub fn set_disk_id<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for DiskAsyncReplication
impl Clone for DiskAsyncReplication
Source§fn clone(&self) -> DiskAsyncReplication
fn clone(&self) -> DiskAsyncReplication
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more