pub struct Operation {Show 15 fields
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,
pub progress: Option<OperationProgress>,
pub cluster_conditions: Vec<StatusCondition>,
pub nodepool_conditions: Vec<StatusCondition>,
pub error: Option<Status>,
}
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
Output only. The server-assigned ID for the operation.
zone: String
Output only. 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
Output only. The operation type.
status: i32
Output only. The current status of the operation.
detail: String
Output only. Detailed operation progress, if available.
status_message: String
Output only. If an error has occurred, a textual description of the error. Deprecated. Use the field error instead.
self_link: String
Output only. Server-defined URI for the operation. Example:
<https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123
.>
target_link: String
Output only. Server-defined URI for the target of the operation. The format of this is a URI to the resource being modified (such as a cluster, node pool, or node). For node pool repairs, there may be multiple nodes being repaired, but only one will be the target.
Examples:
§
<https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster
>
§
<https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np
>
<https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node
>
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.
progress: Option<OperationProgress>
Output only. Progress information for an operation.
cluster_conditions: Vec<StatusCondition>
Which conditions caused the current cluster state. Deprecated. Use field error instead.
nodepool_conditions: Vec<StatusCondition>
Which conditions caused the current node pool state. Deprecated. Use field error instead.
error: Option<Status>
The error result of the operation in case of failure.
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