public class CosmosAsyncUser extends Object
public String getId()
CosmosAsyncUserCosmosAsyncUserpublic Mono<CosmosUserResponse> read()
Mono containing the single resource response with the read user or an error.public Mono<CosmosUserResponse> replace(CosmosUserProperties userProperties)
userProperties - the user properties to useMono containing the single resource response with the replaced user or an error.public Mono<CosmosUserResponse> delete()
Mono containing the single resource response with the deleted user or an error.public Mono<CosmosPermissionResponse> createPermission(CosmosPermissionProperties permissionProperties, CosmosPermissionRequestOptions options)
After subscription the operation will be performed.
The Mono upon successful completion will contain a single resource response with the created permission.
In case of failure the Mono will error.
permissionProperties - the permission properties to create.options - the request options.Mono containing the single resource response with the created permission or an error.public Mono<CosmosPermissionResponse> upsertPermission(CosmosPermissionProperties permissionProperties, CosmosPermissionRequestOptions options)
After subscription the operation will be performed.
The Mono upon successful completion will contain a single resource response with the upserted permission.
In case of failure the Mono will error.
permissionProperties - the permission properties to upsert.options - the request options.Mono containing the single resource response with the upserted permission or an error.public CosmosPagedFlux<CosmosPermissionProperties> readAllPermissions()
After subscription the operation will be performed.
The CosmosPagedFlux will contain one or several feed response pages of the read permissions.
In case of failure the CosmosPagedFlux will error.
CosmosPagedFlux containing one or several feed response pages of the read permissions or an
error.public CosmosPagedFlux<CosmosPermissionProperties> queryPermissions(String query)
After subscription the operation will be performed.
The CosmosPagedFlux will contain one or several feed response pages of the obtained permissions.
In case of failure the CosmosPagedFlux will error.
query - the query.CosmosPagedFlux containing one or several feed response pages of the obtained permissions or
an error.public CosmosPagedFlux<CosmosPermissionProperties> queryPermissions(String query, CosmosQueryRequestOptions options)
After subscription the operation will be performed.
The CosmosPagedFlux will contain one or several feed response pages of the obtained permissions.
In case of failure the CosmosPagedFlux will error.
query - the query.options - the query request options.CosmosPagedFlux containing one or several feed response pages of the obtained permissions or
an error.public CosmosAsyncPermission getPermission(String id)
id - the idCopyright © 2020 Microsoft Corporation. All rights reserved.