#[non_exhaustive]pub struct InstanceGroupManagerStatus {
pub all_instances_config: Option<InstanceGroupManagerStatusAllInstancesConfig>,
pub autoscaler: Option<String>,
pub is_stable: Option<bool>,
pub stateful: Option<InstanceGroupManagerStatusStateful>,
pub version_target: Option<InstanceGroupManagerStatusVersionTarget>,
/* private fields */
}instance-group-managers or region-instance-group-managers 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.all_instances_config: Option<InstanceGroupManagerStatusAllInstancesConfig>Output only. [Output only] Status of all-instances configuration on the group.
autoscaler: Option<String>Output only. [Output Only] The URL of theAutoscaler that targets this instance group manager.
is_stable: Option<bool>Output only. [Output Only] A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
stateful: Option<InstanceGroupManagerStatusStateful>Output only. [Output Only] Stateful status of the given Instance Group Manager.
version_target: Option<InstanceGroupManagerStatusVersionTarget>Output only. [Output Only] A status of consistency of Instances’ versions with their target version specified by version field on Instance Group Manager.
Implementations§
Source§impl InstanceGroupManagerStatus
impl InstanceGroupManagerStatus
pub fn new() -> Self
Sourcepub fn set_all_instances_config<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerStatusAllInstancesConfig>,
pub fn set_all_instances_config<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerStatusAllInstancesConfig>,
Sets the value of all_instances_config.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerStatusAllInstancesConfig;
let x = InstanceGroupManagerStatus::new().set_all_instances_config(InstanceGroupManagerStatusAllInstancesConfig::default()/* use setters */);Sourcepub fn set_or_clear_all_instances_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerStatusAllInstancesConfig>,
pub fn set_or_clear_all_instances_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerStatusAllInstancesConfig>,
Sets or clears the value of all_instances_config.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerStatusAllInstancesConfig;
let x = InstanceGroupManagerStatus::new().set_or_clear_all_instances_config(Some(InstanceGroupManagerStatusAllInstancesConfig::default()/* use setters */));
let x = InstanceGroupManagerStatus::new().set_or_clear_all_instances_config(None::<InstanceGroupManagerStatusAllInstancesConfig>);Sourcepub fn set_autoscaler<T>(self, v: T) -> Self
pub fn set_autoscaler<T>(self, v: T) -> Self
Sets the value of autoscaler.
§Example
let x = InstanceGroupManagerStatus::new().set_autoscaler("example");Sourcepub fn set_or_clear_autoscaler<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_autoscaler<T>(self, v: Option<T>) -> Self
Sets or clears the value of autoscaler.
§Example
let x = InstanceGroupManagerStatus::new().set_or_clear_autoscaler(Some("example"));
let x = InstanceGroupManagerStatus::new().set_or_clear_autoscaler(None::<String>);Sourcepub fn set_is_stable<T>(self, v: T) -> Self
pub fn set_is_stable<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_is_stable<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_is_stable<T>(self, v: Option<T>) -> Self
Sourcepub fn set_stateful<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerStatusStateful>,
pub fn set_stateful<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerStatusStateful>,
Sourcepub fn set_or_clear_stateful<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerStatusStateful>,
pub fn set_or_clear_stateful<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerStatusStateful>,
Sets or clears the value of stateful.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerStatusStateful;
let x = InstanceGroupManagerStatus::new().set_or_clear_stateful(Some(InstanceGroupManagerStatusStateful::default()/* use setters */));
let x = InstanceGroupManagerStatus::new().set_or_clear_stateful(None::<InstanceGroupManagerStatusStateful>);Sourcepub fn set_version_target<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerStatusVersionTarget>,
pub fn set_version_target<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerStatusVersionTarget>,
Sets the value of version_target.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerStatusVersionTarget;
let x = InstanceGroupManagerStatus::new().set_version_target(InstanceGroupManagerStatusVersionTarget::default()/* use setters */);Sourcepub fn set_or_clear_version_target<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerStatusVersionTarget>,
pub fn set_or_clear_version_target<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerStatusVersionTarget>,
Sets or clears the value of version_target.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerStatusVersionTarget;
let x = InstanceGroupManagerStatus::new().set_or_clear_version_target(Some(InstanceGroupManagerStatusVersionTarget::default()/* use setters */));
let x = InstanceGroupManagerStatus::new().set_or_clear_version_target(None::<InstanceGroupManagerStatusVersionTarget>);Trait Implementations§
Source§impl Clone for InstanceGroupManagerStatus
impl Clone for InstanceGroupManagerStatus
Source§fn clone(&self) -> InstanceGroupManagerStatus
fn clone(&self) -> InstanceGroupManagerStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more