Class CosmosPermission


  • public class CosmosPermission
    extends Object
    • Method Detail

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

        Parameters:
        options - the request options.
        Returns:
        an Mono containing the single resource response for the deleted permission or an error.