Class ApiManagementServiceIdentity
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.ApiManagementServiceIdentity
-
public class ApiManagementServiceIdentity extends Object
Identity properties of the Api Management service resource.
-
-
Constructor Summary
Constructors Constructor Description ApiManagementServiceIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUID
principalId()
Get the principalId property: The principal id of the identity.UUID
tenantId()
Get the tenantId property: The client tenant id of the identity.ApimIdentityType
type()
Get the type property: The type of identity used for the resource.Map<String,UserIdentityProperties>
userAssignedIdentities()
Get the userAssignedIdentities property: The list of user identities associated with the resource.void
validate()
Validates the instance.ApiManagementServiceIdentity
withType(ApimIdentityType type)
Set the type property: The type of identity used for the resource.ApiManagementServiceIdentity
withUserAssignedIdentities(Map<String,UserIdentityProperties> userAssignedIdentities)
Set the userAssignedIdentities property: The list of user identities associated with the resource.
-
-
-
Method Detail
-
type
public ApimIdentityType type()
Get the type property: The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service.- Returns:
- the type value.
-
withType
public ApiManagementServiceIdentity withType(ApimIdentityType type)
Set the type property: The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service.- Parameters:
type
- the type value to set.- Returns:
- the ApiManagementServiceIdentity object itself.
-
principalId
public UUID principalId()
Get the principalId property: The principal id of the identity.- Returns:
- the principalId value.
-
tenantId
public UUID tenantId()
Get the tenantId property: The client tenant id of the identity.- Returns:
- the tenantId value.
-
userAssignedIdentities
public Map<String,UserIdentityProperties> userAssignedIdentities()
Get the userAssignedIdentities property: The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/ providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
public ApiManagementServiceIdentity withUserAssignedIdentities(Map<String,UserIdentityProperties> userAssignedIdentities)
Set the userAssignedIdentities property: The list of user identities associated with the resource. The user identity dictionary key references will 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 ApiManagementServiceIdentity object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-