OSSku Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. containerservice. models. OSSku
- com.
- com.
public final class OSSku
extends ExpandableStringEnum<OSSku>
Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final OSSku |
AZURE_LINUX
Static value Azure |
static final OSSku |
CBLMARINER
Static value CBLMariner for OSSku. |
static final OSSku |
UBUNTU
Static value Ubuntu for OSSku. |
static final OSSku |
WINDOWS2019
Static value Windows2019 for OSSku. |
static final OSSku |
WINDOWS2022
Static value Windows2022 for OSSku. |
Constructor Summary
Constructor | Description |
---|---|
OSSku() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of OSSku value. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static OSSku |
fromString(String name)
Creates or finds a OSSku from its string representation. |
static Collection<OSSku> |
values()
Gets known OSSku values. |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
AZURE_LINUX
public static final OSSku AZURE_LINUX
Static value AzureLinux for OSSku.
CBLMARINER
public static final OSSku CBLMARINER
Static value CBLMariner for OSSku.
UBUNTU
public static final OSSku UBUNTU
Static value Ubuntu for OSSku.
WINDOWS2019
public static final OSSku WINDOWS2019
Static value Windows2019 for OSSku.
WINDOWS2022
public static final OSSku WINDOWS2022
Static value Windows2022 for OSSku.
Constructor Details
OSSku
@Deprecated
public OSSku()
Deprecated
Creates a new instance of OSSku value.
Method Details
fromString
public static OSSku fromString(String name)
Creates or finds a OSSku from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known OSSku values.
Returns:
Applies to
Azure SDK for Java