Class KeyVaultRoleAssignmentProperties
java.lang.Object
com.azure.security.keyvault.administration.models.KeyVaultRoleAssignmentProperties
A class that defines a role assignment's properties.
-
Constructor Summary
ConstructorsConstructorDescriptionKeyVaultRoleAssignmentProperties(String roleDefinitionId, String principalId, KeyVaultRoleScope scope) Creates a newrole assignment propertiesobject with the specified details. -
Method Summary
Modifier and TypeMethodDescriptionGet the principal ID assigned to the role.Get therole definitionID used in therole assignment.getScope()Get therole assignmentscope.
-
Constructor Details
-
KeyVaultRoleAssignmentProperties
public KeyVaultRoleAssignmentProperties(String roleDefinitionId, String principalId, KeyVaultRoleScope scope) Creates a newrole assignment propertiesobject with the specified details.- Parameters:
roleDefinitionId- Therole definitionID used in therole assignment.principalId- The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group.*scope- Thescopeof thisrole assignment.
-
-
Method Details
-
getRoleDefinitionId
Get therole definitionID used in therole assignment.- Returns:
- The
role definitionID.
-
getPrincipalId
Get the principal ID assigned to the role.- Returns:
- The principal ID.
-
getScope
Get therole assignmentscope.- Returns:
- The
role assignmentscope.
-