Struct google_api_proto::google::container::v1beta1::host_maintenance_policy::OpportunisticMaintenanceStrategy
source · pub struct OpportunisticMaintenanceStrategy {
pub node_idle_time_window: Option<Duration>,
pub maintenance_availability_window: Option<Duration>,
pub min_nodes_per_pool: Option<i64>,
}
Expand description
Strategy that will trigger maintenance on behalf of the customer.
Fields§
§node_idle_time_window: Option<Duration>
The amount of time that a node can remain idle (no customer owned workloads running), before triggering maintenance.
maintenance_availability_window: Option<Duration>
The window of time that opportunistic maintenance can run. Example: A
setting of 14 days implies that opportunistic maintenance can only be ran
in the 2 weeks leading up to the scheduled maintenance date. Setting 28
days allows opportunistic maintenance to run at any time in the scheduled
maintenance window (all PERIODIC
maintenance is set 28 days in
advance).
min_nodes_per_pool: Option<i64>
The minimum nodes required to be available in a pool. Blocks maintenance if it would cause the number of running nodes to dip below this value.
Implementations§
source§impl OpportunisticMaintenanceStrategy
impl OpportunisticMaintenanceStrategy
sourcepub fn min_nodes_per_pool(&self) -> i64
pub fn min_nodes_per_pool(&self) -> i64
Returns the value of min_nodes_per_pool
, or the default value if min_nodes_per_pool
is unset.
Trait Implementations§
source§impl Clone for OpportunisticMaintenanceStrategy
impl Clone for OpportunisticMaintenanceStrategy
source§fn clone(&self) -> OpportunisticMaintenanceStrategy
fn clone(&self) -> OpportunisticMaintenanceStrategy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for OpportunisticMaintenanceStrategy
impl Message for OpportunisticMaintenanceStrategy
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 OpportunisticMaintenanceStrategy
impl PartialEq for OpportunisticMaintenanceStrategy
source§fn eq(&self, other: &OpportunisticMaintenanceStrategy) -> bool
fn eq(&self, other: &OpportunisticMaintenanceStrategy) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for OpportunisticMaintenanceStrategy
impl StructuralPartialEq for OpportunisticMaintenanceStrategy
Auto Trait Implementations§
impl Freeze for OpportunisticMaintenanceStrategy
impl RefUnwindSafe for OpportunisticMaintenanceStrategy
impl Send for OpportunisticMaintenanceStrategy
impl Sync for OpportunisticMaintenanceStrategy
impl Unpin for OpportunisticMaintenanceStrategy
impl UnwindSafe for OpportunisticMaintenanceStrategy
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