ManagedClusterWindowsProfile Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. ManagedClusterWindowsProfile
- com.
Implements
public final class ManagedClusterWindowsProfile
implements JsonSerializable<ManagedClusterWindowsProfile>
Profile for Windows VMs in the managed cluster.
Constructor Summary
Constructor | Description |
---|---|
ManagedClusterWindowsProfile() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
adminPassword()
Get the admin |
String |
adminUsername()
Get the admin |
Boolean |
enableCsiProxy()
Get the enable |
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
Windows |
gmsaProfile()
Get the gmsa |
License |
licenseType()
Get the license |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Managed |
withAdminPassword(String adminPassword)
Set the admin |
Managed |
withAdminUsername(String adminUsername)
Set the admin |
Managed |
withEnableCsiProxy(Boolean enableCsiProxy)
Set the enable |
Managed |
withGmsaProfile(WindowsGmsaProfile gmsaProfile)
Set the gmsa |
Managed |
withLicenseType(LicenseType licenseType)
Set the license |
Methods inherited from java.lang.Object
Constructor Details
ManagedClusterWindowsProfile
public ManagedClusterWindowsProfile()
Creates an instance of ManagedClusterWindowsProfile class.
Method Details
adminPassword
public String adminPassword()
Get the adminPassword property: Specifies the password of the administrator account.
**Minimum-length:** 8 characters
**Max-length:** 123 characters
**Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\W_])
**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!".
Returns:
adminUsername
public String adminUsername()
Get the adminUsername property: Specifies the name of the administrator account.
**Restriction:** Cannot end in "."
**Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".
**Minimum-length:** 1 character
**Max-length:** 20 characters.
Returns:
enableCsiProxy
public Boolean enableCsiProxy()
Get the enableCsiProxy property: For more details on CSI proxy, see the [CSI proxy GitHub repo](https://github.com/kubernetes-csi/csi-proxy).
Returns:
fromJson
public static ManagedClusterWindowsProfile fromJson(JsonReader jsonReader)
Reads an instance of ManagedClusterWindowsProfile from the JsonReader.
Parameters:
Returns:
Throws:
gmsaProfile
public WindowsGmsaProfile gmsaProfile()
Get the gmsaProfile property: The Windows gMSA Profile in the Managed Cluster.
Returns:
licenseType
public LicenseType licenseType()
Get the licenseType property: The license type to use for Windows VMs. See [Azure Hybrid User Benefits](https://azure.microsoft.com/pricing/hybrid-benefit/faq/) for more details.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAdminPassword
public ManagedClusterWindowsProfile withAdminPassword(String adminPassword)
Set the adminPassword property: Specifies the password of the administrator account.
**Minimum-length:** 8 characters
**Max-length:** 123 characters
**Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\W_])
**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!".
Parameters:
Returns:
withAdminUsername
public ManagedClusterWindowsProfile withAdminUsername(String adminUsername)
Set the adminUsername property: Specifies the name of the administrator account.
**Restriction:** Cannot end in "."
**Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".
**Minimum-length:** 1 character
**Max-length:** 20 characters.
Parameters:
Returns:
withEnableCsiProxy
public ManagedClusterWindowsProfile withEnableCsiProxy(Boolean enableCsiProxy)
Set the enableCsiProxy property: For more details on CSI proxy, see the [CSI proxy GitHub repo](https://github.com/kubernetes-csi/csi-proxy).
Parameters:
Returns:
withGmsaProfile
public ManagedClusterWindowsProfile withGmsaProfile(WindowsGmsaProfile gmsaProfile)
Set the gmsaProfile property: The Windows gMSA Profile in the Managed Cluster.
Parameters:
Returns:
withLicenseType
public ManagedClusterWindowsProfile withLicenseType(LicenseType licenseType)
Set the licenseType property: The license type to use for Windows VMs. See [Azure Hybrid User Benefits](https://azure.microsoft.com/pricing/hybrid-benefit/faq/) for more details.
Parameters:
Returns:
Applies to
Azure SDK for Java