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 and Description |
|---|
DEFAULT
Allow the node and corresponding instances to retain default maintenance behavior.
|
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.
|
RESTART_IN_PLACE
Instances in this group will restart on the same node when maintenance has completed.
|
UNDEFINED_MAINTENANCE_POLICY
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_VALUE
Allow the node and corresponding instances to retain default maintenance behavior.
|
static int |
MAINTENANCE_POLICY_UNSPECIFIED_VALUE
MAINTENANCE_POLICY_UNSPECIFIED = 72964182; |
static int |
MIGRATE_WITHIN_NODE_GROUP_VALUE
When maintenance must be done on a node, the instances on that node will be moved to other nodes in the group.
|
static int |
RESTART_IN_PLACE_VALUE
Instances in this group will restart on the same node when maintenance has completed.
|
static int |
UNDEFINED_MAINTENANCE_POLICY_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static NodeGroup.MaintenancePolicy |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<NodeGroup.MaintenancePolicy> |
internalGetValueMap() |
static NodeGroup.MaintenancePolicy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static NodeGroup.MaintenancePolicy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static NodeGroup.MaintenancePolicy |
valueOf(String name)
Returns 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.
|
public static final NodeGroup.MaintenancePolicy UNDEFINED_MAINTENANCE_POLICY
A value indicating that the enum field is not set.
UNDEFINED_MAINTENANCE_POLICY = 0;public static final NodeGroup.MaintenancePolicy DEFAULT
Allow the node and corresponding instances to retain default maintenance behavior.
DEFAULT = 115302945;public static final NodeGroup.MaintenancePolicy MAINTENANCE_POLICY_UNSPECIFIED
MAINTENANCE_POLICY_UNSPECIFIED = 72964182;public static final NodeGroup.MaintenancePolicy 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;public static final NodeGroup.MaintenancePolicy 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;public static final NodeGroup.MaintenancePolicy UNRECOGNIZED
public static final int UNDEFINED_MAINTENANCE_POLICY_VALUE
A value indicating that the enum field is not set.
UNDEFINED_MAINTENANCE_POLICY = 0;public static final int DEFAULT_VALUE
Allow the node and corresponding instances to retain default maintenance behavior.
DEFAULT = 115302945;public static final int MAINTENANCE_POLICY_UNSPECIFIED_VALUE
MAINTENANCE_POLICY_UNSPECIFIED = 72964182;public static final int MIGRATE_WITHIN_NODE_GROUP_VALUE
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;public static final int RESTART_IN_PLACE_VALUE
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;public static NodeGroup.MaintenancePolicy[] values()
for (NodeGroup.MaintenancePolicy c : NodeGroup.MaintenancePolicy.values()) System.out.println(c);
public static NodeGroup.MaintenancePolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static NodeGroup.MaintenancePolicy valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static NodeGroup.MaintenancePolicy forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<NodeGroup.MaintenancePolicy> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static NodeGroup.MaintenancePolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.