public class CosmosDatabase extends CosmosResource
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<CosmosContainerResponse> |
createContainer(CosmosContainerSettings containerSettings)
Creates a document container.
|
reactor.core.publisher.Mono<CosmosContainerResponse> |
createContainer(CosmosContainerSettings containerSettings,
CosmosContainerRequestOptions options)
Creates a document container.
|
reactor.core.publisher.Mono<CosmosContainerResponse> |
createContainer(String id,
String partitionKeyPath)
Creates a document container.
|
reactor.core.publisher.Mono<CosmosContainerResponse> |
createContainerIfNotExists(CosmosContainerSettings containerSettings)
Creates a document container if it does not exist on the service.
|
reactor.core.publisher.Mono<CosmosContainerResponse> |
createContainerIfNotExists(String id,
String partitionKeyPath)
Creates a document container if it does not exist on the service.
|
reactor.core.publisher.Mono<CosmosDatabaseResponse> |
delete()
Deletes a database.
|
reactor.core.publisher.Mono<CosmosDatabaseResponse> |
delete(CosmosRequestOptions options)
Deletes a database.
|
CosmosContainer |
getContainer(String id)
Gets a CosmosContainer object without making a service call
|
protected String |
getParentLink() |
protected String |
getURIPathSegment() |
reactor.core.publisher.Flux<FeedResponse<CosmosContainerSettings>> |
listContainers()
Reads all cosmos containers.
|
reactor.core.publisher.Flux<FeedResponse<CosmosContainerSettings>> |
listContainers(FeedOptions options)
Reads all cosmos containers.
|
reactor.core.publisher.Flux<FeedResponse<CosmosContainerSettings>> |
queryContainers(SqlQuerySpec querySpec,
FeedOptions options)
Query for cosmos containers in a cosmos database.
|
reactor.core.publisher.Flux<FeedResponse<CosmosContainerSettings>> |
queryContainers(String query,
FeedOptions options)
Query for cosmos containers in a cosmos database.
|
reactor.core.publisher.Mono<CosmosDatabaseResponse> |
read()
Reads a database.
|
reactor.core.publisher.Mono<CosmosDatabaseResponse> |
read(CosmosDatabaseRequestOptions options)
Reads a database.
|
getId, setId, validateResourcepublic reactor.core.publisher.Mono<CosmosDatabaseResponse> read()
Mono upon successful completion will contain a single cosmos database respone with the read database.
In case of failure the Mono will error.Mono containing the single cosmos database respone with the read database or an error.public reactor.core.publisher.Mono<CosmosDatabaseResponse> read(CosmosDatabaseRequestOptions options)
Mono upon successful completion will contain a cosmos cosmos database respone with the read database.
In case of failure the Mono will error.options - the request options.Mono containing the single cosmos database response with the read database or an error.public reactor.core.publisher.Mono<CosmosDatabaseResponse> delete()
Mono upon successful completion will contain a cosmos database response with the deleted database.
In case of failure the Mono will error.Mono containing the single cosmos database responsepublic reactor.core.publisher.Mono<CosmosDatabaseResponse> delete(CosmosRequestOptions options)
Mono upon successful completion will contain a cosmos database response with the deleted database.
In case of failure the Mono will error.Mono containing the single cosmos database responsepublic reactor.core.publisher.Mono<CosmosContainerResponse> createContainer(CosmosContainerSettings containerSettings)
Mono upon successful completion will contain a cosmos container response with the created
collection.
In case of failure the Mono will error.containerSettings - the container settings.Flux containing the single cosmos container response with the created container or an error.public reactor.core.publisher.Mono<CosmosContainerResponse> createContainer(CosmosContainerSettings containerSettings, CosmosContainerRequestOptions options)
Mono upon successful completion will contain a cosmos container response with the created
collection.
In case of failure the Mono will error.containerSettings - the containerSettings.options - the cosmos container request optionsFlux containing the cosmos container response with the created container or an error.public reactor.core.publisher.Mono<CosmosContainerResponse> createContainer(String id, String partitionKeyPath)
Mono upon successful completion will contain a cosmos container response with the created
collection.
In case of failure the Mono will error.id - the cosmos container idpartitionKeyPath - the partition key pathFlux containing the cosmos container response with the created container or an error.public reactor.core.publisher.Mono<CosmosContainerResponse> createContainerIfNotExists(CosmosContainerSettings containerSettings)
Mono upon successful completion will contain a cosmos container response with the created
or existing collection.
In case of failure the Mono will error.Mono containing the cosmos container response with the created or existing container or
an error.public reactor.core.publisher.Mono<CosmosContainerResponse> createContainerIfNotExists(String id, String partitionKeyPath)
Mono upon successful completion will contain a cosmos container response with the created
collection.
In case of failure the Mono will error.id - the cosmos container idpartitionKeyPath - the partition key pathFlux containing the cosmos container response with the created container or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosContainerSettings>> listContainers(FeedOptions options)
Flux will contain one or several feed response of the read containers.
In case of failure the Flux will error.options - FeedOptionsFlux containing one or several feed response pages of read containers or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosContainerSettings>> listContainers()
Flux will contain one or several feed response of the read containers.
In case of failure the Flux will error.Flux containing one or several feed response pages of read containers or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosContainerSettings>> queryContainers(String query, FeedOptions options)
Flux will contain one or several feed response of the obtained containers.
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 containers or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosContainerSettings>> queryContainers(SqlQuerySpec querySpec, FeedOptions options)
Flux will contain one or several feed response of the obtained containers.
In case of failure the Flux will error.querySpec - the SQL query specification.options - the feed options.Flux containing one or several feed response pages of the obtained containers or an error.public CosmosContainer getContainer(String id)
id - id of the containerprotected String getURIPathSegment()
getURIPathSegment in class CosmosResourceprotected String getParentLink()
getParentLink in class CosmosResourceCopyright © 2019. All rights reserved.