ManagedClusterAadProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterAadProfile

Implements

public final class ManagedClusterAadProfile
implements JsonSerializable<ManagedClusterAadProfile>

AADProfile specifies attributes for Azure Active Directory integration. For more details see [managed AAD on AKS](https://docs.microsoft.com/azure/aks/managed-aad).

Constructor Summary

Constructor Description
ManagedClusterAadProfile()

Creates an instance of ManagedClusterAadProfile class.

Method Summary

Modifier and Type Method and Description
List<String> adminGroupObjectIDs()

Get the adminGroupObjectIDs property: The list of AAD group object IDs that will have admin role of the cluster.

String clientAppId()

Get the clientAppId property: (DEPRECATED) The client AAD application ID.

Boolean enableAzureRbac()

Get the enableAzureRbac property: Whether to enable Azure RBAC for Kubernetes authorization.

static ManagedClusterAadProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAadProfile from the JsonReader.

Boolean managed()

Get the managed property: Whether to enable managed AAD.

String serverAppId()

Get the serverAppId property: (DEPRECATED) The server AAD application ID.

String serverAppSecret()

Get the serverAppSecret property: (DEPRECATED) The server AAD application secret.

String tenantId()

Get the tenantId property: The AAD tenant ID to use for authentication.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterAadProfile withAdminGroupObjectIDs(List<String> adminGroupObjectIDs)

Set the adminGroupObjectIDs property: The list of AAD group object IDs that will have admin role of the cluster.

ManagedClusterAadProfile withClientAppId(String clientAppId)

Set the clientAppId property: (DEPRECATED) The client AAD application ID.

ManagedClusterAadProfile withEnableAzureRbac(Boolean enableAzureRbac)

Set the enableAzureRbac property: Whether to enable Azure RBAC for Kubernetes authorization.

ManagedClusterAadProfile withManaged(Boolean managed)

Set the managed property: Whether to enable managed AAD.

ManagedClusterAadProfile withServerAppId(String serverAppId)

Set the serverAppId property: (DEPRECATED) The server AAD application ID.

ManagedClusterAadProfile withServerAppSecret(String serverAppSecret)

Set the serverAppSecret property: (DEPRECATED) The server AAD application secret.

ManagedClusterAadProfile withTenantId(String tenantId)

Set the tenantId property: The AAD tenant ID to use for authentication.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterAadProfile

public ManagedClusterAadProfile()

Creates an instance of ManagedClusterAadProfile class.

Method Details

adminGroupObjectIDs

public List adminGroupObjectIDs()

Get the adminGroupObjectIDs property: The list of AAD group object IDs that will have admin role of the cluster.

Returns:

the adminGroupObjectIDs value.

clientAppId

public String clientAppId()

Get the clientAppId property: (DEPRECATED) The client AAD application ID. Learn more at https://aka.ms/aks/aad-legacy.

Returns:

the clientAppId value.

enableAzureRbac

public Boolean enableAzureRbac()

Get the enableAzureRbac property: Whether to enable Azure RBAC for Kubernetes authorization.

Returns:

the enableAzureRbac value.

fromJson

public static ManagedClusterAadProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAadProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedClusterAadProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ManagedClusterAadProfile.

managed

public Boolean managed()

Get the managed property: Whether to enable managed AAD.

Returns:

the managed value.

serverAppId

public String serverAppId()

Get the serverAppId property: (DEPRECATED) The server AAD application ID. Learn more at https://aka.ms/aks/aad-legacy.

Returns:

the serverAppId value.

serverAppSecret

public String serverAppSecret()

Get the serverAppSecret property: (DEPRECATED) The server AAD application secret. Learn more at https://aka.ms/aks/aad-legacy.

Returns:

the serverAppSecret value.

tenantId

public String tenantId()

Get the tenantId property: The AAD tenant ID to use for authentication. If not specified, will use the tenant of the deployment subscription.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdminGroupObjectIDs

public ManagedClusterAadProfile withAdminGroupObjectIDs(List adminGroupObjectIDs)

Set the adminGroupObjectIDs property: The list of AAD group object IDs that will have admin role of the cluster.

Parameters:

adminGroupObjectIDs - the adminGroupObjectIDs value to set.

Returns:

the ManagedClusterAadProfile object itself.

withClientAppId

public ManagedClusterAadProfile withClientAppId(String clientAppId)

Set the clientAppId property: (DEPRECATED) The client AAD application ID. Learn more at https://aka.ms/aks/aad-legacy.

Parameters:

clientAppId - the clientAppId value to set.

Returns:

the ManagedClusterAadProfile object itself.

withEnableAzureRbac

public ManagedClusterAadProfile withEnableAzureRbac(Boolean enableAzureRbac)

Set the enableAzureRbac property: Whether to enable Azure RBAC for Kubernetes authorization.

Parameters:

enableAzureRbac - the enableAzureRbac value to set.

Returns:

the ManagedClusterAadProfile object itself.

withManaged

public ManagedClusterAadProfile withManaged(Boolean managed)

Set the managed property: Whether to enable managed AAD.

Parameters:

managed - the managed value to set.

Returns:

the ManagedClusterAadProfile object itself.

withServerAppId

public ManagedClusterAadProfile withServerAppId(String serverAppId)

Set the serverAppId property: (DEPRECATED) The server AAD application ID. Learn more at https://aka.ms/aks/aad-legacy.

Parameters:

serverAppId - the serverAppId value to set.

Returns:

the ManagedClusterAadProfile object itself.

withServerAppSecret

public ManagedClusterAadProfile withServerAppSecret(String serverAppSecret)

Set the serverAppSecret property: (DEPRECATED) The server AAD application secret. Learn more at https://aka.ms/aks/aad-legacy.

Parameters:

serverAppSecret - the serverAppSecret value to set.

Returns:

the ManagedClusterAadProfile object itself.

withTenantId

public ManagedClusterAadProfile withTenantId(String tenantId)

Set the tenantId property: The AAD tenant ID to use for authentication. If not specified, will use the tenant of the deployment subscription.

Parameters:

tenantId - the tenantId value to set.

Returns:

the ManagedClusterAadProfile object itself.

Applies to