Freigeben über


CosmosAsyncPermission Class

  • java.lang.Object
    • com.azure.cosmos.CosmosAsyncPermission

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<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.

Methods inherited from java.lang.Object

Method Details

delete

public Mono 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 the Mono will error.

Parameters:

options - the request options.

Returns:

an Mono containing the single resource response for the deleted permission or an error.

getId

public String getId()

Get the id of the CosmosAsyncPermission

Returns:

the id of the CosmosAsyncPermission

read

public Mono read(CosmosPermissionRequestOptions 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 the Mono 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 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 the Mono 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.

Applies to