#[non_exhaustive]pub struct InstanceGroupManagerAllInstancesConfig {
pub properties: Option<InstancePropertiesPatch>,
/* private fields */
}Available on crate features
instance-group-managers or region-instance-group-managers only.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.properties: Option<InstancePropertiesPatch>Properties to set on all instances in the group.
You can add or modify properties using theinstanceGroupManagers.patch orregionInstanceGroupManagers.patch. After settingallInstancesConfig on the group, you must update the group’s instances to apply the configuration. To apply the configuration, set the group’s updatePolicy.type field to use proactive updates or use the applyUpdatesToInstances method.
Implementations§
Source§impl InstanceGroupManagerAllInstancesConfig
impl InstanceGroupManagerAllInstancesConfig
pub fn new() -> Self
Sourcepub fn set_properties<T>(self, v: T) -> Selfwhere
T: Into<InstancePropertiesPatch>,
pub fn set_properties<T>(self, v: T) -> Selfwhere
T: Into<InstancePropertiesPatch>,
Sets the value of properties.
§Example
ⓘ
use google_cloud_compute_v1::model::InstancePropertiesPatch;
let x = InstanceGroupManagerAllInstancesConfig::new().set_properties(InstancePropertiesPatch::default()/* use setters */);Sourcepub fn set_or_clear_properties<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstancePropertiesPatch>,
pub fn set_or_clear_properties<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstancePropertiesPatch>,
Sets or clears the value of properties.
§Example
ⓘ
use google_cloud_compute_v1::model::InstancePropertiesPatch;
let x = InstanceGroupManagerAllInstancesConfig::new().set_or_clear_properties(Some(InstancePropertiesPatch::default()/* use setters */));
let x = InstanceGroupManagerAllInstancesConfig::new().set_or_clear_properties(None::<InstancePropertiesPatch>);Trait Implementations§
Source§impl Clone for InstanceGroupManagerAllInstancesConfig
impl Clone for InstanceGroupManagerAllInstancesConfig
Source§fn clone(&self) -> InstanceGroupManagerAllInstancesConfig
fn clone(&self) -> InstanceGroupManagerAllInstancesConfig
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 Default for InstanceGroupManagerAllInstancesConfig
impl Default for InstanceGroupManagerAllInstancesConfig
Source§fn default() -> InstanceGroupManagerAllInstancesConfig
fn default() -> InstanceGroupManagerAllInstancesConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstanceGroupManagerAllInstancesConfig
impl PartialEq for InstanceGroupManagerAllInstancesConfig
Source§fn eq(&self, other: &InstanceGroupManagerAllInstancesConfig) -> bool
fn eq(&self, other: &InstanceGroupManagerAllInstancesConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstanceGroupManagerAllInstancesConfig
Auto Trait Implementations§
impl Freeze for InstanceGroupManagerAllInstancesConfig
impl RefUnwindSafe for InstanceGroupManagerAllInstancesConfig
impl Send for InstanceGroupManagerAllInstancesConfig
impl Sync for InstanceGroupManagerAllInstancesConfig
impl Unpin for InstanceGroupManagerAllInstancesConfig
impl UnwindSafe for InstanceGroupManagerAllInstancesConfig
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