你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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

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