Enum google_api_proto::google::container::v1beta1::host_maintenance_policy::MaintenanceInterval
source · #[repr(i32)]pub enum MaintenanceInterval {
Unspecified = 0,
AsNeeded = 1,
Periodic = 2,
}
Expand description
Allows selecting how infrastructure upgrades should be applied to the cluster or node pool.
Variants§
Unspecified = 0
The maintenance interval is not explicitly specified.
AsNeeded = 1
Nodes are eligible to receive infrastructure and hypervisor updates as they become available. This may result in more maintenance operations (live migrations or terminations) for the node than the PERIODIC option.
Periodic = 2
Nodes receive infrastructure and hypervisor updates on a periodic basis, minimizing the number of maintenance operations (live migrations or terminations) on an individual VM. This may mean underlying VMs will take longer to receive an update than if it was configured for AS_NEEDED. Security updates will still be applied as soon as they are available.
Implementations§
source§impl MaintenanceInterval
impl MaintenanceInterval
sourcepub fn from_i32(value: i32) -> Option<MaintenanceInterval>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<MaintenanceInterval>
Converts an i32
to a MaintenanceInterval
, or None
if value
is not a valid variant.
source§impl MaintenanceInterval
impl MaintenanceInterval
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 MaintenanceInterval
impl Clone for MaintenanceInterval
source§fn clone(&self) -> MaintenanceInterval
fn clone(&self) -> MaintenanceInterval
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MaintenanceInterval
impl Debug for MaintenanceInterval
source§impl Default for MaintenanceInterval
impl Default for MaintenanceInterval
source§fn default() -> MaintenanceInterval
fn default() -> MaintenanceInterval
source§impl From<MaintenanceInterval> for i32
impl From<MaintenanceInterval> for i32
source§fn from(value: MaintenanceInterval) -> i32
fn from(value: MaintenanceInterval) -> i32
source§impl Hash for MaintenanceInterval
impl Hash for MaintenanceInterval
source§impl Ord for MaintenanceInterval
impl Ord for MaintenanceInterval
source§fn cmp(&self, other: &MaintenanceInterval) -> Ordering
fn cmp(&self, other: &MaintenanceInterval) -> 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 MaintenanceInterval
impl PartialEq for MaintenanceInterval
source§fn eq(&self, other: &MaintenanceInterval) -> bool
fn eq(&self, other: &MaintenanceInterval) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MaintenanceInterval
impl PartialOrd for MaintenanceInterval
source§fn partial_cmp(&self, other: &MaintenanceInterval) -> Option<Ordering>
fn partial_cmp(&self, other: &MaintenanceInterval) -> 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 MaintenanceInterval
impl TryFrom<i32> for MaintenanceInterval
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<MaintenanceInterval, UnknownEnumValue>
fn try_from(value: i32) -> Result<MaintenanceInterval, UnknownEnumValue>
impl Copy for MaintenanceInterval
impl Eq for MaintenanceInterval
impl StructuralPartialEq for MaintenanceInterval
Auto Trait Implementations§
impl Freeze for MaintenanceInterval
impl RefUnwindSafe for MaintenanceInterval
impl Send for MaintenanceInterval
impl Sync for MaintenanceInterval
impl Unpin for MaintenanceInterval
impl UnwindSafe for MaintenanceInterval
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