Class KeyVaultRoleAssignmentProperties
java.lang.Object
com.azure.security.keyvault.administration.models.KeyVaultRoleAssignmentProperties
A class that defines a role assignment's properties.
-
Constructor Summary
ConstructorDescriptionKeyVaultRoleAssignmentProperties
(String roleDefinitionId, String principalId, KeyVaultRoleScope scope) Creates a newrole assignment properties
object with the specified details. -
Method Summary
Modifier and TypeMethodDescriptionGet the principal ID assigned to the role.Get therole definition
ID used in therole assignment
.getScope()
Get therole assignment
scope
.
-
Constructor Details
-
KeyVaultRoleAssignmentProperties
public KeyVaultRoleAssignmentProperties(String roleDefinitionId, String principalId, KeyVaultRoleScope scope) Creates a newrole assignment properties
object with the specified details.- Parameters:
roleDefinitionId
- Therole definition
ID 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
- Thescope
of thisrole assignment
.
-
-
Method Details
-
getRoleDefinitionId
Get therole definition
ID used in therole assignment
.- Returns:
- The
role definition
ID.
-
getPrincipalId
Get the principal ID assigned to the role.- Returns:
- The principal ID.
-
getScope
Get therole assignment
scope
.- Returns:
- The
role assignment
scope
.
-