Struct google_api_proto::google::cloud::compute::v1::InstanceGroupManagerInstanceLifecyclePolicy
source · pub struct InstanceGroupManagerInstanceLifecyclePolicy {
pub default_action_on_failure: Option<String>,
pub force_update_on_repair: Option<String>,
}
Expand description
Fields§
§default_action_on_failure: Option<String>
The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. Check the DefaultActionOnFailure enum for the list of possible values.
force_update_on_repair: Option<String>
A bit indicating whether to forcefully apply the group’s latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group’s update policy. - YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.
Implementations§
source§impl InstanceGroupManagerInstanceLifecyclePolicy
impl InstanceGroupManagerInstanceLifecyclePolicy
sourcepub fn default_action_on_failure(&self) -> &str
pub fn default_action_on_failure(&self) -> &str
Returns the value of default_action_on_failure
, or the default value if default_action_on_failure
is unset.
sourcepub fn force_update_on_repair(&self) -> &str
pub fn force_update_on_repair(&self) -> &str
Returns the value of force_update_on_repair
, or the default value if force_update_on_repair
is unset.
Trait Implementations§
source§impl Clone for InstanceGroupManagerInstanceLifecyclePolicy
impl Clone for InstanceGroupManagerInstanceLifecyclePolicy
source§fn clone(&self) -> InstanceGroupManagerInstanceLifecyclePolicy
fn clone(&self) -> InstanceGroupManagerInstanceLifecyclePolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for InstanceGroupManagerInstanceLifecyclePolicy
impl Message for InstanceGroupManagerInstanceLifecyclePolicy
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for InstanceGroupManagerInstanceLifecyclePolicy
impl PartialEq for InstanceGroupManagerInstanceLifecyclePolicy
source§fn eq(&self, other: &InstanceGroupManagerInstanceLifecyclePolicy) -> bool
fn eq(&self, other: &InstanceGroupManagerInstanceLifecyclePolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceGroupManagerInstanceLifecyclePolicy
Auto Trait Implementations§
impl Freeze for InstanceGroupManagerInstanceLifecyclePolicy
impl RefUnwindSafe for InstanceGroupManagerInstanceLifecyclePolicy
impl Send for InstanceGroupManagerInstanceLifecyclePolicy
impl Sync for InstanceGroupManagerInstanceLifecyclePolicy
impl Unpin for InstanceGroupManagerInstanceLifecyclePolicy
impl UnwindSafe for InstanceGroupManagerInstanceLifecyclePolicy
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request