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 enum google.cloud.compute.v1.NodeGroup.MaintenancePolicy
  • Enum Constant Details

    • 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 Details

    • 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:
    • DEFAULT_VALUE

      public static final int DEFAULT_VALUE
       Allow 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_VALUE
      MAINTENANCE_POLICY_UNSPECIFIED = 72964182;
      See Also:
    • 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:
    • 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:
  • Method Details

    • values

      public static NodeGroup.MaintenancePolicy[] 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

      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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 name
      NullPointerException - 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 interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null