public class CosmosUser extends Object
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<CosmosPermissionResponse> |
createPermission(CosmosPermissionProperties permissionSettings,
CosmosPermissionRequestOptions options)
Creates a permission.
|
reactor.core.publisher.Mono<CosmosUserResponse> |
delete()
Delete a cosmos user
|
CosmosDatabase |
getDatabase()
Gets the parent Database
|
CosmosPermission |
getPermission(String id)
Get cosmos permission without making a call to backend
|
String |
id()
Get the id of the
CosmosUser |
reactor.core.publisher.Flux<FeedResponse<CosmosPermissionProperties>> |
queryPermissions(String query)
Query for permissions.
|
reactor.core.publisher.Flux<FeedResponse<CosmosPermissionProperties>> |
queryPermissions(String query,
FeedOptions options)
Query for permissions.
|
reactor.core.publisher.Mono<CosmosUserResponse> |
read()
Reads a cosmos user
|
reactor.core.publisher.Flux<FeedResponse<CosmosPermissionProperties>> |
readAllPermissions(FeedOptions options)
Reads all permissions.
|
reactor.core.publisher.Mono<CosmosUserResponse> |
replace(CosmosUserProperties userSettings)
REPLACE a cosmos user
|
reactor.core.publisher.Mono<CosmosPermissionResponse> |
upsertPermission(CosmosPermissionProperties permissionSettings,
CosmosPermissionRequestOptions options)
Upserts a permission.
|
public String id()
CosmosUser
CosmosUser
public reactor.core.publisher.Mono<CosmosUserResponse> read()
Mono
containing the single resource response with the read user or an error.public reactor.core.publisher.Mono<CosmosUserResponse> 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<CosmosUserResponse> delete()
Mono
containing the single resource response with the deleted user or an error.public reactor.core.publisher.Mono<CosmosPermissionResponse> 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<CosmosPermissionResponse> 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 reactor.core.publisher.Flux<FeedResponse<CosmosPermissionProperties>> readAllPermissions(FeedOptions options)
After subscription the operation will be performed.
The Flux
will contain one or several feed response pages of the read permissions.
In case of failure the Flux
will error.
options
- the feed options.Flux
containing one or several feed response pages of the read permissions or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosPermissionProperties>> queryPermissions(String query)
After subscription the operation will be performed.
The Flux
will contain one or several feed response pages of the obtained permissions.
In case of failure the Flux
will error.
query
- the query.Flux
containing one or several feed response pages of the obtained permissions or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosPermissionProperties>> queryPermissions(String query, FeedOptions options)
After subscription the operation will be performed.
The Flux
will contain one or several feed response pages of the obtained permissions.
In case of failure the Flux
will error.
query
- the query.options
- the feed options.Flux
containing one or several feed response pages of the obtained permissions or an error.public CosmosPermission getPermission(String id)
id
- the idpublic CosmosDatabase getDatabase()
Copyright © 2019. All rights reserved.