pub struct Operation {
pub name: String,
pub zone: String,
pub operation_type: i32,
pub status: i32,
pub detail: String,
pub status_message: String,
pub self_link: String,
pub target_link: String,
pub location: String,
pub start_time: String,
pub end_time: String,
}
Expand description
This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Fields§
§name: String
The server-assigned ID for the operation.
zone: String
The name of the Google Compute Engine zone in which the operation is taking place. This field is deprecated, use location instead.
operation_type: i32
The operation type.
status: i32
The current status of the operation.
detail: String
Detailed operation progress, if available.
status_message: String
If an error has occurred, a textual description of the error.
self_link: String
Server-defined URL for the resource.
target_link: String
Server-defined URL for the target of the operation.
location: String
§start_time: String
[Output only] The time the operation started, in RFC3339 text format.
end_time: String
[Output only] The time the operation completed, in RFC3339 text format.
Implementations§
source§impl Operation
impl Operation
sourcepub fn operation_type(&self) -> Type
pub fn operation_type(&self) -> Type
Returns the enum value of operation_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_operation_type(&mut self, value: Type)
pub fn set_operation_type(&mut self, value: Type)
Sets operation_type
to the provided enum value.
sourcepub fn status(&self) -> Status
pub fn status(&self) -> Status
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: Status)
pub fn set_status(&mut self, value: Status)
Sets status
to the provided enum value.
Trait Implementations§
source§impl Message for Operation
impl Message for Operation
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 Operation
impl PartialEq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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