Package com.azure.data.cosmos
Class CosmosPermission
- java.lang.Object
-
- com.azure.data.cosmos.CosmosPermission
-
public class CosmosPermission extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<CosmosPermissionResponse>
delete(CosmosPermissionRequestOptions options)
Deletes a permission.String
id()
Get the id of theCosmosPermission
Mono<CosmosPermissionResponse>
read(com.azure.data.cosmos.internal.RequestOptions options)
Reads a permission.Mono<CosmosPermissionResponse>
replace(CosmosPermissionProperties permissionSettings, com.azure.data.cosmos.internal.RequestOptions options)
Replaces a permission.
-
-
-
Method Detail
-
id
public String id()
Get the id of theCosmosPermission
- Returns:
- the id of the
CosmosPermission
-
read
public Mono<CosmosPermissionResponse> read(com.azure.data.cosmos.internal.RequestOptions options)
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 permissionSettings, com.azure.data.cosmos.internal.RequestOptions 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:
permissionSettings
- 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
public Mono<CosmosPermissionResponse> delete(CosmosPermissionRequestOptions options)
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.
-
-