Package com.google.container.v1
Enum Operation.Type
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Operation.Type>
- Enclosing class:
- Operation
public static enum Operation.Type
extends Enum<Operation.Type>
implements com.google.protobuf.ProtocolMessageEnum
Operation type categorizes the operation.Protobuf enum
google.container.v1.Operation.Type-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA problem has been detected with nodes and [they are being repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair).Deprecated.The cluster is being created.A node pool is being created.The cluster is being deleted.The node pool is being deleted.Fleet features of GKE Enterprise are being upgraded.A problem has been detected with the control plane and is being repaired.The control plane is being resized.Deprecated.Deprecated.Deprecated.Deprecated.The node pool's [manamagent][google.container.v1.NodePool.management] field is being updated.The node pool is being resized.Not set.The cluster is being updated.The [cluster version][google.container.v1.ClusterUpdate.desired_master_version] is being updated.A node pool is being updated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA problem has been detected with nodes and [they are being repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair).static final intDeprecated.static final intThe cluster is being created.static final intA node pool is being created.static final intThe cluster is being deleted.static final intThe node pool is being deleted.static final intFleet features of GKE Enterprise are being upgraded.static final intA problem has been detected with the control plane and is being repaired.static final intThe control plane is being resized.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intThe node pool's [manamagent][google.container.v1.NodePool.management] field is being updated.static final intThe node pool is being resized.static final intNot set.static final intThe cluster is being updated.static final intThe [cluster version][google.container.v1.ClusterUpdate.desired_master_version] is being updated.static final intA node pool is being updated. -
Method Summary
Modifier and TypeMethodDescriptionstatic Operation.TypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Operation.Type>static Operation.TypevalueOf(int value) Deprecated.static Operation.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Operation.TypeReturns the enum constant of this type with the specified name.static Operation.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TYPE_UNSPECIFIED
Not set.
TYPE_UNSPECIFIED = 0; -
CREATE_CLUSTER
The cluster is being created. The cluster should be assumed to be unusable until the operation finishes. In the event of the operation failing, the cluster will enter the [ERROR state][google.container.v1.Cluster.Status.ERROR] and eventually be deleted.
CREATE_CLUSTER = 1; -
DELETE_CLUSTER
The cluster is being deleted. The cluster should be assumed to be unusable as soon as this operation starts. In the event of the operation failing, the cluster will enter the [ERROR state][google.container.v1.Cluster.Status.ERROR] and the deletion will be automatically retried until completed.
DELETE_CLUSTER = 2; -
UPGRADE_MASTER
The [cluster version][google.container.v1.ClusterUpdate.desired_master_version] is being updated. Note that this includes "upgrades" to the same version, which are simply a recreation. This also includes [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically). For more details, see [documentation on cluster upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades).
UPGRADE_MASTER = 3; -
UPGRADE_NODES
A node pool is being updated. Despite calling this an "upgrade", this includes most forms of updates to node pools. This also includes [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades). This operation sets the [progress][google.container.v1.Operation.progress] field and may be [canceled][google.container.v1.ClusterManager.CancelOperation]. The upgrade strategy depends on [node pool configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies). The nodes are generally still usable during this operation.
UPGRADE_NODES = 4; -
REPAIR_CLUSTER
A problem has been detected with the control plane and is being repaired. This operation type is initiated by GKE. For more details, see [documentation on repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
REPAIR_CLUSTER = 5; -
UPDATE_CLUSTER
The cluster is being updated. This is a broad category of operations and includes operations that only change metadata as well as those that must recreate the entire cluster. If the control plane must be recreated, this will cause temporary downtime for zonal clusters. Some features require recreating the nodes as well. Those will be recreated as separate operations and the update may not be completely functional until the node pools recreations finish. Node recreations will generally follow [maintenance policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions). Some GKE-initiated operations use this type. This includes certain types of auto-upgrades and incident mitigations.
UPDATE_CLUSTER = 6; -
CREATE_NODE_POOL
A node pool is being created. The node pool should be assumed to be unusable until this operation finishes. In the event of an error, the node pool may be partially created. If enabled, [node autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning) may have automatically initiated such operations.
CREATE_NODE_POOL = 7; -
DELETE_NODE_POOL
The node pool is being deleted. The node pool should be assumed to be unusable as soon as this operation starts.
DELETE_NODE_POOL = 8; -
SET_NODE_POOL_MANAGEMENT
The node pool's [manamagent][google.container.v1.NodePool.management] field is being updated. These operations only update metadata and may be concurrent with most other operations.
SET_NODE_POOL_MANAGEMENT = 9; -
AUTO_REPAIR_NODES
A problem has been detected with nodes and [they are being repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair). This operation type is initiated by GKE, typically automatically. This operation may be concurrent with other operations and there may be multiple repairs occurring on the same node pool.
AUTO_REPAIR_NODES = 10; -
AUTO_UPGRADE_NODES
Deprecated.Unused. Automatic node upgrade uses [UPGRADE_NODES][google.container.v1.Operation.Type.UPGRADE_NODES].
AUTO_UPGRADE_NODES = 11 [deprecated = true]; -
SET_LABELS
Deprecated.Unused. Updating labels uses [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
SET_LABELS = 12 [deprecated = true]; -
SET_MASTER_AUTH
Deprecated.Unused. Updating master auth uses [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
SET_MASTER_AUTH = 13 [deprecated = true]; -
SET_NODE_POOL_SIZE
The node pool is being resized. With the exception of resizing to or from size zero, the node pool is generally usable during this operation.
SET_NODE_POOL_SIZE = 14; -
SET_NETWORK_POLICY
Deprecated.Unused. Updating network policy uses [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
SET_NETWORK_POLICY = 15 [deprecated = true]; -
SET_MAINTENANCE_POLICY
Deprecated.Unused. Updating maintenance policy uses [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
SET_MAINTENANCE_POLICY = 16 [deprecated = true]; -
RESIZE_CLUSTER
The control plane is being resized. This operation type is initiated by GKE. These operations are often performed preemptively to ensure that the control plane has sufficient resources and is not typically an indication of issues. For more details, see [documentation on resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
RESIZE_CLUSTER = 18; -
FLEET_FEATURE_UPGRADE
Fleet features of GKE Enterprise are being upgraded. The cluster should be assumed to be blocked for other upgrades until the operation finishes.
FLEET_FEATURE_UPGRADE = 19; -
UNRECOGNIZED
-
-
Field Details
-
TYPE_UNSPECIFIED_VALUE
public static final int TYPE_UNSPECIFIED_VALUENot set.
TYPE_UNSPECIFIED = 0;- See Also:
-
CREATE_CLUSTER_VALUE
public static final int CREATE_CLUSTER_VALUEThe cluster is being created. The cluster should be assumed to be unusable until the operation finishes. In the event of the operation failing, the cluster will enter the [ERROR state][google.container.v1.Cluster.Status.ERROR] and eventually be deleted.
CREATE_CLUSTER = 1;- See Also:
-
DELETE_CLUSTER_VALUE
public static final int DELETE_CLUSTER_VALUEThe cluster is being deleted. The cluster should be assumed to be unusable as soon as this operation starts. In the event of the operation failing, the cluster will enter the [ERROR state][google.container.v1.Cluster.Status.ERROR] and the deletion will be automatically retried until completed.
DELETE_CLUSTER = 2;- See Also:
-
UPGRADE_MASTER_VALUE
public static final int UPGRADE_MASTER_VALUEThe [cluster version][google.container.v1.ClusterUpdate.desired_master_version] is being updated. Note that this includes "upgrades" to the same version, which are simply a recreation. This also includes [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically). For more details, see [documentation on cluster upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades).
UPGRADE_MASTER = 3;- See Also:
-
UPGRADE_NODES_VALUE
public static final int UPGRADE_NODES_VALUEA node pool is being updated. Despite calling this an "upgrade", this includes most forms of updates to node pools. This also includes [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades). This operation sets the [progress][google.container.v1.Operation.progress] field and may be [canceled][google.container.v1.ClusterManager.CancelOperation]. The upgrade strategy depends on [node pool configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies). The nodes are generally still usable during this operation.
UPGRADE_NODES = 4;- See Also:
-
REPAIR_CLUSTER_VALUE
public static final int REPAIR_CLUSTER_VALUEA problem has been detected with the control plane and is being repaired. This operation type is initiated by GKE. For more details, see [documentation on repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
REPAIR_CLUSTER = 5;- See Also:
-
UPDATE_CLUSTER_VALUE
public static final int UPDATE_CLUSTER_VALUEThe cluster is being updated. This is a broad category of operations and includes operations that only change metadata as well as those that must recreate the entire cluster. If the control plane must be recreated, this will cause temporary downtime for zonal clusters. Some features require recreating the nodes as well. Those will be recreated as separate operations and the update may not be completely functional until the node pools recreations finish. Node recreations will generally follow [maintenance policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions). Some GKE-initiated operations use this type. This includes certain types of auto-upgrades and incident mitigations.
UPDATE_CLUSTER = 6;- See Also:
-
CREATE_NODE_POOL_VALUE
public static final int CREATE_NODE_POOL_VALUEA node pool is being created. The node pool should be assumed to be unusable until this operation finishes. In the event of an error, the node pool may be partially created. If enabled, [node autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning) may have automatically initiated such operations.
CREATE_NODE_POOL = 7;- See Also:
-
DELETE_NODE_POOL_VALUE
public static final int DELETE_NODE_POOL_VALUEThe node pool is being deleted. The node pool should be assumed to be unusable as soon as this operation starts.
DELETE_NODE_POOL = 8;- See Also:
-
SET_NODE_POOL_MANAGEMENT_VALUE
public static final int SET_NODE_POOL_MANAGEMENT_VALUEThe node pool's [manamagent][google.container.v1.NodePool.management] field is being updated. These operations only update metadata and may be concurrent with most other operations.
SET_NODE_POOL_MANAGEMENT = 9;- See Also:
-
AUTO_REPAIR_NODES_VALUE
public static final int AUTO_REPAIR_NODES_VALUEA problem has been detected with nodes and [they are being repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair). This operation type is initiated by GKE, typically automatically. This operation may be concurrent with other operations and there may be multiple repairs occurring on the same node pool.
AUTO_REPAIR_NODES = 10;- See Also:
-
AUTO_UPGRADE_NODES_VALUE
Deprecated.Unused. Automatic node upgrade uses [UPGRADE_NODES][google.container.v1.Operation.Type.UPGRADE_NODES].
AUTO_UPGRADE_NODES = 11 [deprecated = true];- See Also:
-
SET_LABELS_VALUE
Deprecated.Unused. Updating labels uses [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
SET_LABELS = 12 [deprecated = true];- See Also:
-
SET_MASTER_AUTH_VALUE
Deprecated.Unused. Updating master auth uses [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
SET_MASTER_AUTH = 13 [deprecated = true];- See Also:
-
SET_NODE_POOL_SIZE_VALUE
public static final int SET_NODE_POOL_SIZE_VALUEThe node pool is being resized. With the exception of resizing to or from size zero, the node pool is generally usable during this operation.
SET_NODE_POOL_SIZE = 14;- See Also:
-
SET_NETWORK_POLICY_VALUE
Deprecated.Unused. Updating network policy uses [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
SET_NETWORK_POLICY = 15 [deprecated = true];- See Also:
-
SET_MAINTENANCE_POLICY_VALUE
Deprecated.Unused. Updating maintenance policy uses [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
SET_MAINTENANCE_POLICY = 16 [deprecated = true];- See Also:
-
RESIZE_CLUSTER_VALUE
public static final int RESIZE_CLUSTER_VALUEThe control plane is being resized. This operation type is initiated by GKE. These operations are often performed preemptively to ensure that the control plane has sufficient resources and is not typically an indication of issues. For more details, see [documentation on resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
RESIZE_CLUSTER = 18;- See Also:
-
FLEET_FEATURE_UPGRADE_VALUE
public static final int FLEET_FEATURE_UPGRADE_VALUEFleet features of GKE Enterprise are being upgraded. The cluster should be assumed to be blocked for other upgrades until the operation finishes.
FLEET_FEATURE_UPGRADE = 19;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-