Enum google_api_proto::google::cloud::compute::v1::update_instance_request::MostDisruptiveAllowedAction
source · #[repr(i32)]pub enum MostDisruptiveAllowedAction {
UndefinedMostDisruptiveAllowedAction = 0,
}
Expand description
Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART. Additional supported values which may be not listed in the enum directly due to technical reasons: INVALID NO_EFFECT REFRESH RESTART
Variants§
UndefinedMostDisruptiveAllowedAction = 0
A value indicating that the enum field is not set.
Implementations§
source§impl MostDisruptiveAllowedAction
impl MostDisruptiveAllowedAction
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of MostDisruptiveAllowedAction
.
sourcepub fn from_i32(value: i32) -> Option<MostDisruptiveAllowedAction>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<MostDisruptiveAllowedAction>
Converts an i32
to a MostDisruptiveAllowedAction
, or None
if value
is not a valid variant.
source§impl MostDisruptiveAllowedAction
impl MostDisruptiveAllowedAction
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 MostDisruptiveAllowedAction
impl Clone for MostDisruptiveAllowedAction
source§fn clone(&self) -> MostDisruptiveAllowedAction
fn clone(&self) -> MostDisruptiveAllowedAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MostDisruptiveAllowedAction
impl Debug for MostDisruptiveAllowedAction
source§impl Default for MostDisruptiveAllowedAction
impl Default for MostDisruptiveAllowedAction
source§fn default() -> MostDisruptiveAllowedAction
fn default() -> MostDisruptiveAllowedAction
source§impl From<MostDisruptiveAllowedAction> for i32
impl From<MostDisruptiveAllowedAction> for i32
source§fn from(value: MostDisruptiveAllowedAction) -> i32
fn from(value: MostDisruptiveAllowedAction) -> i32
source§impl Hash for MostDisruptiveAllowedAction
impl Hash for MostDisruptiveAllowedAction
source§impl Ord for MostDisruptiveAllowedAction
impl Ord for MostDisruptiveAllowedAction
source§fn cmp(&self, other: &MostDisruptiveAllowedAction) -> Ordering
fn cmp(&self, other: &MostDisruptiveAllowedAction) -> 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 MostDisruptiveAllowedAction
impl PartialEq for MostDisruptiveAllowedAction
source§fn eq(&self, other: &MostDisruptiveAllowedAction) -> bool
fn eq(&self, other: &MostDisruptiveAllowedAction) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MostDisruptiveAllowedAction
impl PartialOrd for MostDisruptiveAllowedAction
source§fn partial_cmp(&self, other: &MostDisruptiveAllowedAction) -> Option<Ordering>
fn partial_cmp(&self, other: &MostDisruptiveAllowedAction) -> 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 MostDisruptiveAllowedAction
impl TryFrom<i32> for MostDisruptiveAllowedAction
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<MostDisruptiveAllowedAction, UnknownEnumValue>
fn try_from(value: i32) -> Result<MostDisruptiveAllowedAction, UnknownEnumValue>
impl Copy for MostDisruptiveAllowedAction
impl Eq for MostDisruptiveAllowedAction
impl StructuralPartialEq for MostDisruptiveAllowedAction
Auto Trait Implementations§
impl Freeze for MostDisruptiveAllowedAction
impl RefUnwindSafe for MostDisruptiveAllowedAction
impl Send for MostDisruptiveAllowedAction
impl Sync for MostDisruptiveAllowedAction
impl Unpin for MostDisruptiveAllowedAction
impl UnwindSafe for MostDisruptiveAllowedAction
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