#[non_exhaustive]pub struct Operation {Show 15 fields
pub name: String,
pub zone: String,
pub operation_type: Type,
pub status: Status,
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>,
/* private fields */
}Expand description
This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The server-assigned ID for the operation.
zone: StringOutput 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: TypeOutput only. The operation type.
status: StatusOutput only. The current status of the operation.
detail: StringOutput only. Detailed operation progress, if available.
status_message: StringOutput only. If an error has occurred, a textual description of the error. Deprecated. Use the field error instead.
self_link: StringOutput only. Server-defined URI for the operation. Example:
<https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123>.
target_link: StringOutput 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: StringOutput only. The time the operation started, in RFC3339 text format.
end_time: StringOutput 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
pub fn new() -> Self
Sourcepub fn set_operation_type<T: Into<Type>>(self, v: T) -> Self
pub fn set_operation_type<T: Into<Type>>(self, v: T) -> Self
Sets the value of operation_type.
§Example
use google_cloud_container_v1::model::operation::Type;
let x0 = Operation::new().set_operation_type(Type::CreateCluster);
let x1 = Operation::new().set_operation_type(Type::DeleteCluster);
let x2 = Operation::new().set_operation_type(Type::UpgradeMaster);Sourcepub fn set_status<T: Into<Status>>(self, v: T) -> Self
pub fn set_status<T: Into<Status>>(self, v: T) -> Self
Sourcepub fn set_detail<T: Into<String>>(self, v: T) -> Self
pub fn set_detail<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_status_message<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_status_message<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_self_link<T: Into<String>>(self, v: T) -> Self
pub fn set_self_link<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_target_link<T: Into<String>>(self, v: T) -> Self
pub fn set_target_link<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_start_time<T: Into<String>>(self, v: T) -> Self
pub fn set_start_time<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_end_time<T: Into<String>>(self, v: T) -> Self
pub fn set_end_time<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_progress<T>(self, v: T) -> Selfwhere
T: Into<OperationProgress>,
pub fn set_progress<T>(self, v: T) -> Selfwhere
T: Into<OperationProgress>,
Sourcepub fn set_or_clear_progress<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationProgress>,
pub fn set_or_clear_progress<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationProgress>,
Sourcepub fn set_cluster_conditions<T, V>(self, v: T) -> Self
👎Deprecated
pub fn set_cluster_conditions<T, V>(self, v: T) -> Self
Sets the value of cluster_conditions.
§Example
use google_cloud_container_v1::model::StatusCondition;
let x = Operation::new()
.set_cluster_conditions([
StatusCondition::default()/* use setters */,
StatusCondition::default()/* use (different) setters */,
]);Sourcepub fn set_nodepool_conditions<T, V>(self, v: T) -> Self
👎Deprecated
pub fn set_nodepool_conditions<T, V>(self, v: T) -> Self
Sets the value of nodepool_conditions.
§Example
use google_cloud_container_v1::model::StatusCondition;
let x = Operation::new()
.set_nodepool_conditions([
StatusCondition::default()/* use setters */,
StatusCondition::default()/* use (different) setters */,
]);