Enum google_api_proto::google::cloud::compute::v1::instance_group_manager_instance_lifecycle_policy::DefaultActionOnFailure
source · #[repr(i32)]pub enum DefaultActionOnFailure {
UndefinedDefaultActionOnFailure = 0,
DoNothing = 451_307_513,
Repair = 266_277_773,
}
Expand description
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.
Variants§
UndefinedDefaultActionOnFailure = 0
A value indicating that the enum field is not set.
DoNothing = 451_307_513
MIG does not repair a failed or an unhealthy VM.
Repair = 266_277_773
(Default) MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG.
Implementations§
source§impl DefaultActionOnFailure
impl DefaultActionOnFailure
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of DefaultActionOnFailure
.
sourcepub fn from_i32(value: i32) -> Option<DefaultActionOnFailure>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<DefaultActionOnFailure>
Converts an i32
to a DefaultActionOnFailure
, or None
if value
is not a valid variant.
source§impl DefaultActionOnFailure
impl DefaultActionOnFailure
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for DefaultActionOnFailure
impl Clone for DefaultActionOnFailure
source§fn clone(&self) -> DefaultActionOnFailure
fn clone(&self) -> DefaultActionOnFailure
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DefaultActionOnFailure
impl Debug for DefaultActionOnFailure
source§impl Default for DefaultActionOnFailure
impl Default for DefaultActionOnFailure
source§fn default() -> DefaultActionOnFailure
fn default() -> DefaultActionOnFailure
source§impl From<DefaultActionOnFailure> for i32
impl From<DefaultActionOnFailure> for i32
source§fn from(value: DefaultActionOnFailure) -> i32
fn from(value: DefaultActionOnFailure) -> i32
source§impl Hash for DefaultActionOnFailure
impl Hash for DefaultActionOnFailure
source§impl Ord for DefaultActionOnFailure
impl Ord for DefaultActionOnFailure
source§fn cmp(&self, other: &DefaultActionOnFailure) -> Ordering
fn cmp(&self, other: &DefaultActionOnFailure) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for DefaultActionOnFailure
impl PartialEq for DefaultActionOnFailure
source§fn eq(&self, other: &DefaultActionOnFailure) -> bool
fn eq(&self, other: &DefaultActionOnFailure) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DefaultActionOnFailure
impl PartialOrd for DefaultActionOnFailure
source§fn partial_cmp(&self, other: &DefaultActionOnFailure) -> Option<Ordering>
fn partial_cmp(&self, other: &DefaultActionOnFailure) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for DefaultActionOnFailure
impl TryFrom<i32> for DefaultActionOnFailure
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<DefaultActionOnFailure, DecodeError>
fn try_from(value: i32) -> Result<DefaultActionOnFailure, DecodeError>
impl Copy for DefaultActionOnFailure
impl Eq for DefaultActionOnFailure
impl StructuralPartialEq for DefaultActionOnFailure
Auto Trait Implementations§
impl Freeze for DefaultActionOnFailure
impl RefUnwindSafe for DefaultActionOnFailure
impl Send for DefaultActionOnFailure
impl Sync for DefaultActionOnFailure
impl Unpin for DefaultActionOnFailure
impl UnwindSafe for DefaultActionOnFailure
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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