Package com.google.cloud.compute.v1
Enum NodeGroup.MaintenancePolicy
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<NodeGroup.MaintenancePolicy>
- Enclosing class:
- NodeGroup
public static enum NodeGroup.MaintenancePolicy
extends Enum<NodeGroup.MaintenancePolicy>
implements com.google.protobuf.ProtocolMessageEnum
Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies.Protobuf enum
google.cloud.compute.v1.NodeGroup.MaintenancePolicy-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow the node and corresponding instances to retain default maintenance behavior.MAINTENANCE_POLICY_UNSPECIFIED = 72964182;When maintenance must be done on a node, the instances on that node will be moved to other nodes in the group.Instances in this group will restart on the same node when maintenance has completed.A value indicating that the enum field is not set. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAllow the node and corresponding instances to retain default maintenance behavior.static final intMAINTENANCE_POLICY_UNSPECIFIED = 72964182;static final intWhen maintenance must be done on a node, the instances on that node will be moved to other nodes in the group.static final intInstances in this group will restart on the same node when maintenance has completed.static final intA value indicating that the enum field is not set. -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeGroup.MaintenancePolicyforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<NodeGroup.MaintenancePolicy>static NodeGroup.MaintenancePolicyvalueOf(int value) Deprecated.static NodeGroup.MaintenancePolicyvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static NodeGroup.MaintenancePolicyReturns the enum constant of this type with the specified name.static NodeGroup.MaintenancePolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED_MAINTENANCE_POLICY
A value indicating that the enum field is not set.
UNDEFINED_MAINTENANCE_POLICY = 0; -
DEFAULT
Allow the node and corresponding instances to retain default maintenance behavior.
DEFAULT = 115302945; -
MAINTENANCE_POLICY_UNSPECIFIED
MAINTENANCE_POLICY_UNSPECIFIED = 72964182; -
MIGRATE_WITHIN_NODE_GROUP
When maintenance must be done on a node, the instances on that node will be moved to other nodes in the group. Instances with onHostMaintenance = MIGRATE will live migrate to their destinations while instances with onHostMaintenance = TERMINATE will terminate and then restart on their destination nodes if automaticRestart = true.
MIGRATE_WITHIN_NODE_GROUP = 153483394; -
RESTART_IN_PLACE
Instances in this group will restart on the same node when maintenance has completed. Instances must have onHostMaintenance = TERMINATE, and they will only restart if automaticRestart = true.
RESTART_IN_PLACE = 228647325; -
UNRECOGNIZED
-
-
Field Details
-
UNDEFINED_MAINTENANCE_POLICY_VALUE
public static final int UNDEFINED_MAINTENANCE_POLICY_VALUEA value indicating that the enum field is not set.
UNDEFINED_MAINTENANCE_POLICY = 0;- See Also:
-
DEFAULT_VALUE
public static final int DEFAULT_VALUEAllow the node and corresponding instances to retain default maintenance behavior.
DEFAULT = 115302945;- See Also:
-
MAINTENANCE_POLICY_UNSPECIFIED_VALUE
public static final int MAINTENANCE_POLICY_UNSPECIFIED_VALUEMAINTENANCE_POLICY_UNSPECIFIED = 72964182;- See Also:
-
MIGRATE_WITHIN_NODE_GROUP_VALUE
public static final int MIGRATE_WITHIN_NODE_GROUP_VALUEWhen maintenance must be done on a node, the instances on that node will be moved to other nodes in the group. Instances with onHostMaintenance = MIGRATE will live migrate to their destinations while instances with onHostMaintenance = TERMINATE will terminate and then restart on their destination nodes if automaticRestart = true.
MIGRATE_WITHIN_NODE_GROUP = 153483394;- See Also:
-
RESTART_IN_PLACE_VALUE
public static final int RESTART_IN_PLACE_VALUEInstances in this group will restart on the same node when maintenance has completed. Instances must have onHostMaintenance = TERMINATE, and they will only restart if automaticRestart = true.
RESTART_IN_PLACE = 228647325;- 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
public static com.google.protobuf.Internal.EnumLiteMap<NodeGroup.MaintenancePolicy> 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
public static NodeGroup.MaintenancePolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) 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
-