Class ScaleSetEvictionPolicy
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ScaleSetEvictionPolicy>
com.azure.resourcemanager.containerservice.models.ScaleSetEvictionPolicy
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class ScaleSetEvictionPolicy
extends com.azure.core.util.ExpandableStringEnum<ScaleSetEvictionPolicy>
The Virtual Machine Scale Set eviction policy. The eviction policy specifies what to do with the VM when it is
evicted. The default is Delete. For more information about eviction see [spot
VMs](https://docs.microsoft.com/azure/virtual-machines/spot-vms).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ScaleSetEvictionPolicyNodes in the underlying Scale Set of the node pool are set to the stopped-deallocated state upon eviction.static final ScaleSetEvictionPolicyNodes in the underlying Scale Set of the node pool are deleted when they're evicted. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScaleSetEvictionPolicyfromString(String name) Creates or finds a ScaleSetEvictionPolicy from its string representation.static Collection<ScaleSetEvictionPolicy> values()Gets known ScaleSetEvictionPolicy values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
DELETE
Nodes in the underlying Scale Set of the node pool are deleted when they're evicted. -
DEALLOCATE
Nodes in the underlying Scale Set of the node pool are set to the stopped-deallocated state upon eviction. Nodes in the stopped-deallocated state count against your compute quota and can cause issues with cluster scaling or upgrading.
-
-
Constructor Details
-
ScaleSetEvictionPolicy
Deprecated.Use thefromString(String)factory method.Creates a new instance of ScaleSetEvictionPolicy value.
-
-
Method Details
-
fromString
Creates or finds a ScaleSetEvictionPolicy from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ScaleSetEvictionPolicy.
-
values
Gets known ScaleSetEvictionPolicy values.- Returns:
- known ScaleSetEvictionPolicy values.
-
fromString(String)factory method.