Class Operation (2.17.3)

Operation(mapping=None, *, ignore_unknown_fields=False, **kwargs)

This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.

Attributes

NameDescription
name str
The server-assigned ID for the operation.
zone str
The name of the Google Compute Engine zone __ in which the operation is taking place. This field is deprecated, use location instead.
operation_type google.cloud.container_v1.types.Operation.Type
The operation type.
status google.cloud.container_v1.types.Operation.Status
The current status of the operation.
detail str
Detailed operation progress, if available.
status_message str
Output only. If an error has occurred, a textual description of the error. Deprecated. Use the field error instead.
self_link str
Server-defined URL for the resource.
target_link str
Server-defined URL for the target of the operation.
location str
[Output only] The name of the Google Compute Engine zone __ or region __ in which the cluster resides.
start_time str
[Output only] The time the operation started, in RFC3339 __ text format.
end_time str
[Output only] The time the operation completed, in RFC3339 __ text format.
progress google.cloud.container_v1.types.OperationProgress
Output only. [Output only] Progress information for an operation.
cluster_conditions MutableSequence[google.cloud.container_v1.types.StatusCondition]
Which conditions caused the current cluster state. Deprecated. Use field error instead.
nodepool_conditions MutableSequence[google.cloud.container_v1.types.StatusCondition]
Which conditions caused the current node pool state. Deprecated. Use field error instead.
error google.rpc.status_pb2.Status
The error result of the operation in case of failure.

Classes

Status

Status(value)

Current status of the operation.

Values: STATUS_UNSPECIFIED (0): Not set. PENDING (1): The operation has been created. RUNNING (2): The operation is currently running. DONE (3): The operation is done, either cancelled or completed. ABORTING (4): The operation is aborting.

Type

Type(value)

Operation type.

Values: TYPE_UNSPECIFIED (0): Not set. CREATE_CLUSTER (1): Cluster create. DELETE_CLUSTER (2): Cluster delete. UPGRADE_MASTER (3): A master upgrade. UPGRADE_NODES (4): A node upgrade. REPAIR_CLUSTER (5): Cluster repair. UPDATE_CLUSTER (6): Cluster update. CREATE_NODE_POOL (7): Node pool create. DELETE_NODE_POOL (8): Node pool delete. SET_NODE_POOL_MANAGEMENT (9): Set node pool management. AUTO_REPAIR_NODES (10): Automatic node pool repair. AUTO_UPGRADE_NODES (11): Automatic node upgrade. SET_LABELS (12): Set labels. SET_MASTER_AUTH (13): Set/generate master auth materials SET_NODE_POOL_SIZE (14): Set node pool size. SET_NETWORK_POLICY (15): Updates network policy for a cluster. SET_MAINTENANCE_POLICY (16): Set the maintenance policy.