Package com.azure.cosmos
Class CosmosAsyncPermission
java.lang.Object
com.azure.cosmos.CosmosAsyncPermission
Has methods to operate on a per-User Permission to access a specific resource
-
Method Summary
Modifier and TypeMethodDescriptiondelete
(CosmosPermissionRequestOptions options) Deletes a permission.getId()
Get the id of theCosmosAsyncPermission
read
(CosmosPermissionRequestOptions options) Reads a permission.replace
(CosmosPermissionProperties permissionProperties, CosmosPermissionRequestOptions options) Replaces a permission.
-
Method Details
-
getId
Get the id of theCosmosAsyncPermission
- Returns:
- the id of the
CosmosAsyncPermission
-
read
Reads a permission.After subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response with the read permission. In case of failure theMono
will error.- Parameters:
options
- the request options.- Returns:
- an
Mono
containing the single resource response with the read permission or an error.
-
replace
public Mono<CosmosPermissionResponse> replace(CosmosPermissionProperties permissionProperties, CosmosPermissionRequestOptions options) Replaces a permission.After subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response with the replaced permission. In case of failure theMono
will error.- Parameters:
permissionProperties
- the permission properties to use.options
- the request options.- Returns:
- an
Mono
containing the single resource response with the replaced permission or an error.
-
delete
Deletes a permission.After subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response for the deleted permission. In case of failure theMono
will error.- Parameters:
options
- the request options.- Returns:
- an
Mono
containing the single resource response for the deleted permission or an error.
-