Class CosmosAsyncPermission

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

public class CosmosAsyncPermission extends Object
Has methods to operate on a per-User Permission to access a specific resource
  • Method Details

    • getId

      public String getId()
      Get the id of the CosmosAsyncPermission
      Returns:
      the id of the CosmosAsyncPermission
    • read

      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

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

      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.