CosmosAsyncPermission Class
- java.
lang. Object - com.
azure. cosmos. CosmosAsyncPermission
- com.
public class CosmosAsyncPermission
Has methods to operate on a per-User Permission to access a specific resource
Method Summary
Modifier and Type | Method and Description |
---|---|
Mono<Cosmos |
delete(CosmosPermissionRequestOptions options)
Deletes a permission. |
String |
getId()
Get the id of the CosmosAsyncPermission |
Mono<Cosmos |
read(CosmosPermissionRequestOptions options)
Reads a permission. |
Mono<Cosmos |
replace(CosmosPermissionProperties permissionProperties, CosmosPermissionRequestOptions options)
Replaces a permission. |
Methods inherited from java.lang.Object
Method Details
delete
public Mono
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 the Mono will error.
Parameters:
Returns:
getId
public String getId()
Get the id of the CosmosAsyncPermission
Returns:
read
public Mono
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 the Mono will error.
Parameters:
Returns:
replace
public Mono
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 the Mono will error.
Parameters:
Returns:
Applies to
Azure SDK for Java