#[non_exhaustive]pub struct StatefulPolicyPreservedState {
pub disks: HashMap<String, StatefulPolicyPreservedStateDiskDevice>,
pub external_i_ps: HashMap<String, StatefulPolicyPreservedStateNetworkIp>,
pub internal_i_ps: HashMap<String, StatefulPolicyPreservedStateNetworkIp>,
/* private fields */
}Available on crate features
instance-group-managers or region-instance-group-managers only.Expand description
Configuration of preserved resources.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.disks: HashMap<String, StatefulPolicyPreservedStateDiskDevice>Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.
external_i_ps: HashMap<String, StatefulPolicyPreservedStateNetworkIp>External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.
internal_i_ps: HashMap<String, StatefulPolicyPreservedStateNetworkIp>Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.
Implementations§
Source§impl StatefulPolicyPreservedState
impl StatefulPolicyPreservedState
pub fn new() -> Self
Sourcepub fn set_disks<T, K, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = (K, V)>,
K: Into<String>,
V: Into<StatefulPolicyPreservedStateDiskDevice>,
pub fn set_disks<T, K, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = (K, V)>,
K: Into<String>,
V: Into<StatefulPolicyPreservedStateDiskDevice>,
Sets the value of disks.
§Example
ⓘ
use google_cloud_compute_v1::model::StatefulPolicyPreservedStateDiskDevice;
let x = StatefulPolicyPreservedState::new().set_disks([
("key0", StatefulPolicyPreservedStateDiskDevice::default()/* use setters */),
("key1", StatefulPolicyPreservedStateDiskDevice::default()/* use (different) setters */),
]);Sourcepub fn set_external_i_ps<T, K, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = (K, V)>,
K: Into<String>,
V: Into<StatefulPolicyPreservedStateNetworkIp>,
pub fn set_external_i_ps<T, K, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = (K, V)>,
K: Into<String>,
V: Into<StatefulPolicyPreservedStateNetworkIp>,
Sets the value of external_i_ps.
§Example
ⓘ
use google_cloud_compute_v1::model::StatefulPolicyPreservedStateNetworkIp;
let x = StatefulPolicyPreservedState::new().set_external_i_ps([
("key0", StatefulPolicyPreservedStateNetworkIp::default()/* use setters */),
("key1", StatefulPolicyPreservedStateNetworkIp::default()/* use (different) setters */),
]);Sourcepub fn set_internal_i_ps<T, K, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = (K, V)>,
K: Into<String>,
V: Into<StatefulPolicyPreservedStateNetworkIp>,
pub fn set_internal_i_ps<T, K, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = (K, V)>,
K: Into<String>,
V: Into<StatefulPolicyPreservedStateNetworkIp>,
Sets the value of internal_i_ps.
§Example
ⓘ
use google_cloud_compute_v1::model::StatefulPolicyPreservedStateNetworkIp;
let x = StatefulPolicyPreservedState::new().set_internal_i_ps([
("key0", StatefulPolicyPreservedStateNetworkIp::default()/* use setters */),
("key1", StatefulPolicyPreservedStateNetworkIp::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for StatefulPolicyPreservedState
impl Clone for StatefulPolicyPreservedState
Source§fn clone(&self) -> StatefulPolicyPreservedState
fn clone(&self) -> StatefulPolicyPreservedState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatefulPolicyPreservedState
impl Debug for StatefulPolicyPreservedState
Source§impl Default for StatefulPolicyPreservedState
impl Default for StatefulPolicyPreservedState
Source§fn default() -> StatefulPolicyPreservedState
fn default() -> StatefulPolicyPreservedState
Returns the “default value” for a type. Read more
Source§impl PartialEq for StatefulPolicyPreservedState
impl PartialEq for StatefulPolicyPreservedState
Source§fn eq(&self, other: &StatefulPolicyPreservedState) -> bool
fn eq(&self, other: &StatefulPolicyPreservedState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StatefulPolicyPreservedState
Auto Trait Implementations§
impl Freeze for StatefulPolicyPreservedState
impl RefUnwindSafe for StatefulPolicyPreservedState
impl Send for StatefulPolicyPreservedState
impl Sync for StatefulPolicyPreservedState
impl Unpin for StatefulPolicyPreservedState
impl UnwindSafe for StatefulPolicyPreservedState
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
Mutably borrows from an owned value. Read more