Class RoleAssignmentsAsyncClient
java.lang.Object
com.azure.analytics.synapse.accesscontrol.RoleAssignmentsAsyncClient
Initializes a new instance of the asynchronous AccessControlClient type.
-
Method Summary
Modifier and TypeMethodDescriptioncheckPrincipalAccess
(SubjectInfo subject, List<RequiredAction> actions, String scope) Check if the given principalId has access to perform list of actions at a given scope.checkPrincipalAccessWithResponse
(SubjectInfo subject, List<RequiredAction> actions, String scope) Check if the given principalId has access to perform list of actions at a given scope.createRoleAssignment
(String roleAssignmentId, UUID roleId, UUID principalId, String scope) Create role assignment.createRoleAssignment
(String roleAssignmentId, UUID roleId, UUID principalId, String scope, String principalType) Create role assignment.createRoleAssignmentWithResponse
(String roleAssignmentId, UUID roleId, UUID principalId, String scope, String principalType) Create role assignment.deleteRoleAssignmentById
(String roleAssignmentId) Delete role assignment by role assignment Id.deleteRoleAssignmentById
(String roleAssignmentId, String scope) Delete role assignment by role assignment Id.deleteRoleAssignmentByIdWithResponse
(String roleAssignmentId, String scope) Delete role assignment by role assignment Id.getRoleAssignmentById
(String roleAssignmentId) Get role assignment by role assignment Id.getRoleAssignmentByIdWithResponse
(String roleAssignmentId) Get role assignment by role assignment Id.List role assignments.listRoleAssignments
(String roleId, String principalId, String scope, String continuationToken) List role assignments.listRoleAssignmentsWithResponse
(String roleId, String principalId, String scope, String continuationToken) List role assignments.
-
Method Details
-
checkPrincipalAccessWithResponse
public Mono<Response<CheckPrincipalAccessResponse>> checkPrincipalAccessWithResponse(SubjectInfo subject, List<RequiredAction> actions, String scope) Check if the given principalId has access to perform list of actions at a given scope.- Parameters:
subject
- Subject details.actions
- List of actions.scope
- Scope at which the check access is done.- Returns:
- check access response details.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
checkPrincipalAccess
public Mono<CheckPrincipalAccessResponse> checkPrincipalAccess(SubjectInfo subject, List<RequiredAction> actions, String scope) Check if the given principalId has access to perform list of actions at a given scope.- Parameters:
subject
- Subject details.actions
- List of actions.scope
- Scope at which the check access is done.- Returns:
- check access response details.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listRoleAssignmentsWithResponse
public Mono<RoleAssignmentsListRoleAssignmentsResponse> listRoleAssignmentsWithResponse(String roleId, String principalId, String scope, String continuationToken) List role assignments.- Parameters:
roleId
- Synapse Built-In Role Id.principalId
- Object ID of the AAD principal or security-group.scope
- Scope of the Synapse Built-in Role.continuationToken
- Continuation token.- Returns:
- role Assignment response details.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listRoleAssignments
public Mono<RoleAssignmentDetailsList> listRoleAssignments(String roleId, String principalId, String scope, String continuationToken) List role assignments.- Parameters:
roleId
- Synapse Built-In Role Id.principalId
- Object ID of the AAD principal or security-group.scope
- Scope of the Synapse Built-in Role.continuationToken
- Continuation token.- Returns:
- role Assignment response details.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listRoleAssignments
List role assignments.- Returns:
- role Assignment response details.
- Throws:
ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createRoleAssignmentWithResponse
public Mono<Response<RoleAssignmentDetails>> createRoleAssignmentWithResponse(String roleAssignmentId, UUID roleId, UUID principalId, String scope, String principalType) Create role assignment.- Parameters:
roleAssignmentId
- The ID of the role assignment.roleId
- Role ID of the Synapse Built-In Role.principalId
- Object ID of the AAD principal or security-group.scope
- Scope at which the role assignment is created.principalType
- Type of the principal Id: User, Group or ServicePrincipal.- Returns:
- role Assignment response details.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createRoleAssignment
public Mono<RoleAssignmentDetails> createRoleAssignment(String roleAssignmentId, UUID roleId, UUID principalId, String scope, String principalType) Create role assignment.- Parameters:
roleAssignmentId
- The ID of the role assignment.roleId
- Role ID of the Synapse Built-In Role.principalId
- Object ID of the AAD principal or security-group.scope
- Scope at which the role assignment is created.principalType
- Type of the principal Id: User, Group or ServicePrincipal.- Returns:
- role Assignment response details.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createRoleAssignment
public Mono<RoleAssignmentDetails> createRoleAssignment(String roleAssignmentId, UUID roleId, UUID principalId, String scope) Create role assignment.- Parameters:
roleAssignmentId
- The ID of the role assignment.roleId
- Role ID of the Synapse Built-In Role.principalId
- Object ID of the AAD principal or security-group.scope
- Scope at which the role assignment is created.- Returns:
- role Assignment response details.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getRoleAssignmentByIdWithResponse
public Mono<Response<RoleAssignmentDetails>> getRoleAssignmentByIdWithResponse(String roleAssignmentId) Get role assignment by role assignment Id.- Parameters:
roleAssignmentId
- The ID of the role assignment.- Returns:
- role assignment by role assignment Id.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getRoleAssignmentById
Get role assignment by role assignment Id.- Parameters:
roleAssignmentId
- The ID of the role assignment.- Returns:
- role assignment by role assignment Id.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteRoleAssignmentByIdWithResponse
public Mono<Response<Void>> deleteRoleAssignmentByIdWithResponse(String roleAssignmentId, String scope) Delete role assignment by role assignment Id.- Parameters:
roleAssignmentId
- The ID of the role assignment.scope
- Scope of the Synapse Built-in Role.- Returns:
- the completion.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteRoleAssignmentById
Delete role assignment by role assignment Id.- Parameters:
roleAssignmentId
- The ID of the role assignment.scope
- Scope of the Synapse Built-in Role.- Returns:
- the completion.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteRoleAssignmentById
Delete role assignment by role assignment Id.- Parameters:
roleAssignmentId
- The ID of the role assignment.- Returns:
- the completion.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-