public class CosmosAsyncUser extends Object
public String getId()
CosmosAsyncUser
CosmosAsyncUser
public reactor.core.publisher.Mono<CosmosAsyncUserResponse> read()
Mono
containing the single resource response with the read user or an error.public reactor.core.publisher.Mono<CosmosAsyncUserResponse> replace(CosmosUserProperties userSettings)
userSettings
- the user properties to useMono
containing the single resource response with the replaced user or an error.public reactor.core.publisher.Mono<CosmosAsyncUserResponse> delete()
Mono
containing the single resource response with the deleted user or an error.public reactor.core.publisher.Mono<CosmosAsyncPermissionResponse> createPermission(CosmosPermissionProperties permissionSettings, 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.
permissionSettings
- the permission properties to create.options
- the request options.Mono
containing the single resource response with the created permission or an error.public reactor.core.publisher.Mono<CosmosAsyncPermissionResponse> upsertPermission(CosmosPermissionProperties permissionSettings, 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.
permissionSettings
- the permission properties to upsert.options
- the request options.Mono
containing the single resource response with the upserted permission or an error.public CosmosContinuablePagedFlux<CosmosPermissionProperties> readAllPermissions(FeedOptions options)
After subscription the operation will be performed.
The CosmosContinuablePagedFlux
will contain one or several feed response pages of the read permissions.
In case of failure the CosmosContinuablePagedFlux
will error.
options
- the feed options.CosmosContinuablePagedFlux
containing one or several feed response pages of the read permissions or an error.public CosmosContinuablePagedFlux<CosmosPermissionProperties> queryPermissions(String query)
After subscription the operation will be performed.
The CosmosContinuablePagedFlux
will contain one or several feed response pages of the obtained permissions.
In case of failure the CosmosContinuablePagedFlux
will error.
query
- the query.CosmosContinuablePagedFlux
containing one or several feed response pages of the obtained permissions or an error.public CosmosContinuablePagedFlux<CosmosPermissionProperties> queryPermissions(String query, FeedOptions options)
After subscription the operation will be performed.
The CosmosContinuablePagedFlux
will contain one or several feed response pages of the obtained permissions.
In case of failure the CosmosContinuablePagedFlux
will error.
query
- the query.options
- the feed options.CosmosContinuablePagedFlux
containing one or several feed response pages of the obtained permissions or an error.public CosmosAsyncPermission getPermission(String id)
id
- the idpublic CosmosAsyncDatabase getDatabase()
Copyright © 2020 Microsoft Corporation. All rights reserved.