Enum NodeGroup.MaintenancePolicy (1.61.0)

public enum NodeGroup.MaintenancePolicy extends Enum<NodeGroup.MaintenancePolicy> implements 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

Implements

ProtocolMessageEnum

Static Fields

Name Description
DEFAULT

Allow the node and corresponding instances to retain default maintenance behavior.

DEFAULT = 115302945;

DEFAULT_VALUE

Allow the node and corresponding instances to retain default maintenance behavior.

DEFAULT = 115302945;

MAINTENANCE_POLICY_UNSPECIFIED

MAINTENANCE_POLICY_UNSPECIFIED = 72964182;

MAINTENANCE_POLICY_UNSPECIFIED_VALUE

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;

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;

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;

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;

UNDEFINED_MAINTENANCE_POLICY

A value indicating that the enum field is not set.

UNDEFINED_MAINTENANCE_POLICY = 0;

UNDEFINED_MAINTENANCE_POLICY_VALUE

A value indicating that the enum field is not set.

UNDEFINED_MAINTENANCE_POLICY = 0;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()