Struct google_api_proto::google::cloud::edgecontainer::v1::cluster::MaintenanceEvent
source · pub struct MaintenanceEvent {
pub uuid: String,
pub target_version: String,
pub operation: String,
pub type: i32,
pub schedule: i32,
pub state: i32,
pub create_time: Option<Timestamp>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
}
Expand description
A Maintenance Event is an operation that could cause temporary disruptions to the cluster workloads, including Google-driven or user-initiated cluster upgrades, user-initiated cluster configuration changes that require restarting nodes, etc.
Fields§
§uuid: String
Output only. UUID of the maintenance event.
target_version: String
Output only. The target version of the cluster.
operation: String
Output only. The operation for running the maintenance event. Specified in the format projects//locations//operations/*. If the maintenance event is split into multiple operations (e.g. due to maintenance windows), the latest one is recorded.
type: i32
Output only. The type of the maintenance event.
schedule: i32
Output only. The schedule of the maintenance event.
state: i32
Output only. The state of the maintenance event.
create_time: Option<Timestamp>
Output only. The time when the maintenance event request was created.
start_time: Option<Timestamp>
Output only. The time when the maintenance event started.
end_time: Option<Timestamp>
Output only. The time when the maintenance event ended, either successfully or not. If the maintenance event is split into multiple maintenance windows, end_time is only updated when the whole flow ends.
update_time: Option<Timestamp>
Output only. The time when the maintenance event message was updated.
Implementations§
source§impl MaintenanceEvent
impl MaintenanceEvent
sourcepub fn type(&self) -> Type
pub fn type(&self) -> Type
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn schedule(&self) -> Schedule
pub fn schedule(&self) -> Schedule
Returns the enum value of schedule
, or the default if the field is set to an invalid enum value.
sourcepub fn set_schedule(&mut self, value: Schedule)
pub fn set_schedule(&mut self, value: Schedule)
Sets schedule
to the provided enum value.
Trait Implementations§
source§impl Clone for MaintenanceEvent
impl Clone for MaintenanceEvent
source§fn clone(&self) -> MaintenanceEvent
fn clone(&self) -> MaintenanceEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MaintenanceEvent
impl Debug for MaintenanceEvent
source§impl Default for MaintenanceEvent
impl Default for MaintenanceEvent
source§impl Message for MaintenanceEvent
impl Message for MaintenanceEvent
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 MaintenanceEvent
impl PartialEq for MaintenanceEvent
source§fn eq(&self, other: &MaintenanceEvent) -> bool
fn eq(&self, other: &MaintenanceEvent) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MaintenanceEvent
Auto Trait Implementations§
impl Freeze for MaintenanceEvent
impl RefUnwindSafe for MaintenanceEvent
impl Send for MaintenanceEvent
impl Sync for MaintenanceEvent
impl Unpin for MaintenanceEvent
impl UnwindSafe for MaintenanceEvent
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