Package com.google.cloud.compute.v1
Enum NodeGroup.MaintenancePolicy
- java.lang.Object
-
- java.lang.Enum<NodeGroup.MaintenancePolicy>
-
- com.google.cloud.compute.v1.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 enumgoogle.cloud.compute.v1.NodeGroup.MaintenancePolicy
-
-
Enum Constant Summary
Enum Constants Enum Constant 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
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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(int value)
Deprecated.static NodeGroup.MaintenancePolicy
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.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.
-
-
-
Enum Constant Detail
-
UNDEFINED_MAINTENANCE_POLICY
public static final NodeGroup.MaintenancePolicy UNDEFINED_MAINTENANCE_POLICY
A value indicating that the enum field is not set.
UNDEFINED_MAINTENANCE_POLICY = 0;
-
DEFAULT
public static final NodeGroup.MaintenancePolicy DEFAULT
Allow the node and corresponding instances to retain default maintenance behavior.
DEFAULT = 115302945;
-
MAINTENANCE_POLICY_UNSPECIFIED
public static final NodeGroup.MaintenancePolicy MAINTENANCE_POLICY_UNSPECIFIED
MAINTENANCE_POLICY_UNSPECIFIED = 72964182;
-
MIGRATE_WITHIN_NODE_GROUP
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;
-
RESTART_IN_PLACE
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;
-
UNRECOGNIZED
public static final NodeGroup.MaintenancePolicy UNRECOGNIZED
-
-
Field Detail
-
UNDEFINED_MAINTENANCE_POLICY_VALUE
public static final int UNDEFINED_MAINTENANCE_POLICY_VALUE
A value indicating that the enum field is not set.
UNDEFINED_MAINTENANCE_POLICY = 0;
- See Also:
- Constant Field Values
-
DEFAULT_VALUE
public static final int DEFAULT_VALUE
Allow the node and corresponding instances to retain default maintenance behavior.
DEFAULT = 115302945;
- See Also:
- Constant Field Values
-
MAINTENANCE_POLICY_UNSPECIFIED_VALUE
public static final int MAINTENANCE_POLICY_UNSPECIFIED_VALUE
MAINTENANCE_POLICY_UNSPECIFIED = 72964182;
- See Also:
- Constant Field Values
-
MIGRATE_WITHIN_NODE_GROUP_VALUE
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;
- See Also:
- Constant Field Values
-
RESTART_IN_PLACE_VALUE
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;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static NodeGroup.MaintenancePolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NodeGroup.MaintenancePolicy c : NodeGroup.MaintenancePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodeGroup.MaintenancePolicy valueOf(String name)
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static NodeGroup.MaintenancePolicy valueOf(int value)
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
public static NodeGroup.MaintenancePolicy forNumber(int value)
- 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:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final 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
-
-