public class CosmosAsyncPermission extends Object
Modifier and Type | Method and Description |
---|---|
Mono<CosmosPermissionResponse> |
delete(CosmosPermissionRequestOptions options)
Deletes a permission.
|
String |
getId()
Get the id of the
CosmosAsyncPermission |
Mono<CosmosPermissionResponse> |
read(CosmosPermissionRequestOptions options)
Reads a permission.
|
Mono<CosmosPermissionResponse> |
replace(CosmosPermissionProperties permissionProperties,
CosmosPermissionRequestOptions options)
Replaces a permission.
|
public String getId()
CosmosAsyncPermission
CosmosAsyncPermission
public Mono<CosmosPermissionResponse> read(CosmosPermissionRequestOptions options)
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.
options
- the request options.Mono
containing the single resource response with the read permission or an error.public Mono<CosmosPermissionResponse> replace(CosmosPermissionProperties permissionProperties, CosmosPermissionRequestOptions options)
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.
permissionProperties
- the permission properties to use.options
- the request options.Mono
containing the single resource response with the replaced permission or an error.public Mono<CosmosPermissionResponse> delete(CosmosPermissionRequestOptions options)
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.
options
- the request options.Mono
containing the single resource response for the deleted permission or an error.Copyright © 2021 Microsoft Corporation. All rights reserved.