Class ManagedClusterIdentity
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterIdentity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterIdentity>
public final class ManagedClusterIdentity
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterIdentity>
Identity for the managed cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterIdentity class. -
Method Summary
Modifier and TypeMethodDescriptionGet the delegatedResources property: The delegated identity resources assigned to this managed cluster.static ManagedClusterIdentityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterIdentity from the JsonReader.Get the principalId property: The principal id of the system assigned identity which is used by master components.tenantId()Get the tenantId property: The tenant id of the system assigned identity which is used by master components.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: For more information see [use managed identities in AKS](https://docs.microsoft.com/azure/aks/use-managed-identity).Get the userAssignedIdentities property: The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.voidvalidate()Validates the instance.withDelegatedResources(Map<String, DelegatedResource> delegatedResources) Set the delegatedResources property: The delegated identity resources assigned to this managed cluster.withType(ResourceIdentityType type) Set the type property: For more information see [use managed identities in AKS](https://docs.microsoft.com/azure/aks/use-managed-identity).withUserAssignedIdentities(Map<String, ManagedServiceIdentityUserAssignedIdentitiesValue> userAssignedIdentities) Set the userAssignedIdentities property: The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedClusterIdentity
public ManagedClusterIdentity()Creates an instance of ManagedClusterIdentity class.
-
-
Method Details
-
principalId
Get the principalId property: The principal id of the system assigned identity which is used by master components.- Returns:
- the principalId value.
-
tenantId
Get the tenantId property: The tenant id of the system assigned identity which is used by master components.- Returns:
- the tenantId value.
-
type
Get the type property: For more information see [use managed identities in AKS](https://docs.microsoft.com/azure/aks/use-managed-identity).- Returns:
- the type value.
-
withType
Set the type property: For more information see [use managed identities in AKS](https://docs.microsoft.com/azure/aks/use-managed-identity).- Parameters:
type- the type value to set.- Returns:
- the ManagedClusterIdentity object itself.
-
delegatedResources
Get the delegatedResources property: The delegated identity resources assigned to this managed cluster. This can only be set by another Azure Resource Provider, and managed cluster only accept one delegated identity resource. Internal use only.- Returns:
- the delegatedResources value.
-
withDelegatedResources
public ManagedClusterIdentity withDelegatedResources(Map<String, DelegatedResource> delegatedResources) Set the delegatedResources property: The delegated identity resources assigned to this managed cluster. This can only be set by another Azure Resource Provider, and managed cluster only accept one delegated identity resource. Internal use only.- Parameters:
delegatedResources- the delegatedResources value to set.- Returns:
- the ManagedClusterIdentity object itself.
-
userAssignedIdentities
Get the userAssignedIdentities property: The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
public ManagedClusterIdentity withUserAssignedIdentities(Map<String, ManagedServiceIdentityUserAssignedIdentitiesValue> userAssignedIdentities) Set the userAssignedIdentities property: The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.- Parameters:
userAssignedIdentities- the userAssignedIdentities value to set.- Returns:
- the ManagedClusterIdentity object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedClusterIdentity>- Throws:
IOException
-
fromJson
public static ManagedClusterIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterIdentity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterIdentity 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 ManagedClusterIdentity.
-