public final class RoleAssignmentsAsyncClient extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
Mono<com.azure.core.http.rest.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.
|
Mono<RoleAssignmentDetails> |
createRoleAssignment(String roleAssignmentId,
UUID roleId,
UUID principalId,
String scope)
Create role assignment.
|
Mono<RoleAssignmentDetails> |
createRoleAssignment(String roleAssignmentId,
UUID roleId,
UUID principalId,
String scope,
String principalType)
Create role assignment.
|
Mono<com.azure.core.http.rest.Response<RoleAssignmentDetails>> |
createRoleAssignmentWithResponse(String roleAssignmentId,
UUID roleId,
UUID principalId,
String scope,
String principalType)
Create role assignment.
|
Mono<Void> |
deleteRoleAssignmentById(String roleAssignmentId)
Delete role assignment by role assignment Id.
|
Mono<Void> |
deleteRoleAssignmentById(String roleAssignmentId,
String scope)
Delete role assignment by role assignment Id.
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteRoleAssignmentByIdWithResponse(String roleAssignmentId,
String scope)
Delete role assignment by role assignment Id.
|
Mono<RoleAssignmentDetails> |
getRoleAssignmentById(String roleAssignmentId)
Get role assignment by role assignment Id.
|
Mono<com.azure.core.http.rest.Response<RoleAssignmentDetails>> |
getRoleAssignmentByIdWithResponse(String roleAssignmentId)
Get role assignment by role assignment Id.
|
Mono<RoleAssignmentDetailsList> |
listRoleAssignments()
List role assignments.
|
Mono<RoleAssignmentDetailsList> |
listRoleAssignments(String roleId,
String principalId,
String scope,
String continuationToken)
List role assignments.
|
Mono<RoleAssignmentsListRoleAssignmentsResponse> |
listRoleAssignmentsWithResponse(String roleId,
String principalId,
String scope,
String continuationToken)
List role assignments.
|
public Mono<com.azure.core.http.rest.Response<CheckPrincipalAccessResponse>> checkPrincipalAccessWithResponse(SubjectInfo subject, List<RequiredAction> actions, String scope)
subject
- Subject details.actions
- List of actions.scope
- Scope at which the check access is done.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.public Mono<CheckPrincipalAccessResponse> checkPrincipalAccess(SubjectInfo subject, List<RequiredAction> actions, String scope)
subject
- Subject details.actions
- List of actions.scope
- Scope at which the check access is done.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.public Mono<RoleAssignmentsListRoleAssignmentsResponse> listRoleAssignmentsWithResponse(String roleId, String principalId, String scope, String continuationToken)
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.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.public Mono<RoleAssignmentDetailsList> listRoleAssignments(String roleId, String principalId, String scope, String continuationToken)
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.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.public Mono<RoleAssignmentDetailsList> listRoleAssignments()
ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Mono<com.azure.core.http.rest.Response<RoleAssignmentDetails>> createRoleAssignmentWithResponse(String roleAssignmentId, UUID roleId, UUID principalId, String scope, String principalType)
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.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.public Mono<RoleAssignmentDetails> createRoleAssignment(String roleAssignmentId, UUID roleId, UUID principalId, String scope, String principalType)
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.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.public Mono<RoleAssignmentDetails> createRoleAssignment(String roleAssignmentId, UUID roleId, UUID principalId, String scope)
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.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.public Mono<com.azure.core.http.rest.Response<RoleAssignmentDetails>> getRoleAssignmentByIdWithResponse(String roleAssignmentId)
roleAssignmentId
- The ID of the role assignment.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.public Mono<RoleAssignmentDetails> getRoleAssignmentById(String roleAssignmentId)
roleAssignmentId
- The ID of the role assignment.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.public Mono<com.azure.core.http.rest.Response<Void>> deleteRoleAssignmentByIdWithResponse(String roleAssignmentId, String scope)
roleAssignmentId
- The ID of the role assignment.scope
- Scope of the Synapse Built-in Role.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.public Mono<Void> deleteRoleAssignmentById(String roleAssignmentId, String scope)
roleAssignmentId
- The ID of the role assignment.scope
- Scope of the Synapse Built-in Role.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.public Mono<Void> deleteRoleAssignmentById(String roleAssignmentId)
roleAssignmentId
- The ID of the role assignment.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.Copyright © 2021 Microsoft Corporation. All rights reserved.