public class CosmosScripts extends Object
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<CosmosStoredProcedureResponse> |
createStoredProcedure(CosmosStoredProcedureProperties properties)
Creates a cosmos stored procedure.
|
reactor.core.publisher.Mono<CosmosStoredProcedureResponse> |
createStoredProcedure(CosmosStoredProcedureProperties properties,
CosmosStoredProcedureRequestOptions options)
Creates a cosmos stored procedure.
|
reactor.core.publisher.Mono<CosmosTriggerResponse> |
createTrigger(CosmosTriggerProperties properties)
Creates a Cosmos trigger.
|
reactor.core.publisher.Mono<CosmosUserDefinedFunctionResponse> |
createUserDefinedFunction(CosmosUserDefinedFunctionProperties properties)
Creates a cosmos user defined function.
|
CosmosStoredProcedure |
getStoredProcedure(String id)
Gets a CosmosStoredProcedure object without making a service call
|
CosmosTrigger |
getTrigger(String id)
Gets a CosmosTrigger object without making a service call
|
CosmosUserDefinedFunction |
getUserDefinedFunction(String id)
Gets a CosmosUserDefinedFunction object without making a service call
|
reactor.core.publisher.Flux<FeedResponse<CosmosStoredProcedureProperties>> |
queryStoredProcedures(SqlQuerySpec querySpec,
FeedOptions options)
Query for stored procedures in a container.
|
reactor.core.publisher.Flux<FeedResponse<CosmosStoredProcedureProperties>> |
queryStoredProcedures(String query,
FeedOptions options)
Query for stored procedures in a container.
|
reactor.core.publisher.Flux<FeedResponse<CosmosTriggerProperties>> |
queryTriggers(SqlQuerySpec querySpec,
FeedOptions options)
Query for triggers in the container
After subscription the operation will be performed.
|
reactor.core.publisher.Flux<FeedResponse<CosmosTriggerProperties>> |
queryTriggers(String query,
FeedOptions options)
Query for triggers in the container
After subscription the operation will be performed.
|
reactor.core.publisher.Flux<FeedResponse<CosmosUserDefinedFunctionProperties>> |
queryUserDefinedFunctions(SqlQuerySpec querySpec,
FeedOptions options)
Query for user defined functions in the container.
|
reactor.core.publisher.Flux<FeedResponse<CosmosUserDefinedFunctionProperties>> |
queryUserDefinedFunctions(String query,
FeedOptions options)
Query for user defined functions in the container.
|
reactor.core.publisher.Flux<FeedResponse<CosmosStoredProcedureProperties>> |
readAllStoredProcedures(FeedOptions options)
Reads all cosmos stored procedures in a container.
|
reactor.core.publisher.Flux<FeedResponse<CosmosTriggerProperties>> |
readAllTriggers(FeedOptions options)
Reads all triggers in a container
After subscription the operation will be performed.
|
reactor.core.publisher.Flux<FeedResponse<CosmosUserDefinedFunctionProperties>> |
readAllUserDefinedFunctions(FeedOptions options)
Reads all cosmos user defined functions in the container
After subscription the operation will be performed.
|
public reactor.core.publisher.Mono<CosmosStoredProcedureResponse> createStoredProcedure(CosmosStoredProcedureProperties properties)
Mono
upon successful completion will contain a single cosmos stored procedure response with the
created cosmos stored procedure.
In case of failure the Mono
will error.properties
- the cosmos stored procedure properties.Mono
containing the single cosmos stored procedure resource response or an error.public reactor.core.publisher.Mono<CosmosStoredProcedureResponse> createStoredProcedure(CosmosStoredProcedureProperties properties, CosmosStoredProcedureRequestOptions options)
Mono
upon successful completion will contain a single cosmos stored procedure response with the
created cosmos stored procedure.
In case of failure the Mono
will error.properties
- the cosmos stored procedure properties.options
- the stored procedure request options.Mono
containing the single cosmos stored procedure resource response or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosStoredProcedureProperties>> readAllStoredProcedures(FeedOptions options)
Flux
will contain one or several feed response pages of the read cosmos stored procedure properties.
In case of failure the Flux
will error.options
- the feed options.Flux
containing one or several feed response pages of the read cosmos stored procedures
properties or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosStoredProcedureProperties>> queryStoredProcedures(String query, FeedOptions options)
Flux
will contain one or several feed response pages of the obtained stored procedures.
In case of failure the Flux
will error.query
- the the query.options
- the feed options.Flux
containing one or several feed response pages of the obtained stored procedures or
an error.public reactor.core.publisher.Flux<FeedResponse<CosmosStoredProcedureProperties>> queryStoredProcedures(SqlQuerySpec querySpec, FeedOptions options)
Flux
will contain one or several feed response pages of the obtained stored procedures.
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 stored procedures or
an error.public CosmosStoredProcedure getStoredProcedure(String id)
id
- id of the stored procedurepublic reactor.core.publisher.Mono<CosmosUserDefinedFunctionResponse> createUserDefinedFunction(CosmosUserDefinedFunctionProperties properties)
Mono
upon successful completion will contain a single cosmos user defined function response.
In case of failure the Mono
will error.properties
- the cosmos user defined function propertiesMono
containing the single resource response with the created user defined function or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosUserDefinedFunctionProperties>> readAllUserDefinedFunctions(FeedOptions options)
Flux
will contain one or several feed response pages of the read user defined functions.
In case of failure the Flux
will error.options
- the feed options.Flux
containing one or several feed response pages of the read user defined functions or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosUserDefinedFunctionProperties>> queryUserDefinedFunctions(String query, FeedOptions options)
Flux
will contain one or several feed response pages of the obtained user defined functions.
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 user defined functions or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosUserDefinedFunctionProperties>> queryUserDefinedFunctions(SqlQuerySpec querySpec, FeedOptions options)
Flux
will contain one or several feed response pages of the obtained user defined functions.
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 user defined functions or an error.public CosmosUserDefinedFunction getUserDefinedFunction(String id)
id
- id of the user defined functionpublic reactor.core.publisher.Mono<CosmosTriggerResponse> createTrigger(CosmosTriggerProperties properties)
Mono
upon successful completion will contain a cosmos trigger response
In case of failure the Mono
will error.properties
- the cosmos trigger propertiesMono
containing the single resource response with the created trigger or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosTriggerProperties>> readAllTriggers(FeedOptions options)
Flux
will contain one or several feed response pages of the read cosmos trigger properties.
In case of failure the Flux
will error.options
- the feed options.Flux
containing one or several feed response pages of the read cosmos rigger properties or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosTriggerProperties>> queryTriggers(String query, FeedOptions options)
Flux
will contain one or several feed response pages of the obtained triggers.
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 triggers or an error.public reactor.core.publisher.Flux<FeedResponse<CosmosTriggerProperties>> queryTriggers(SqlQuerySpec querySpec, FeedOptions options)
Flux
will contain one or several feed response pages of the obtained triggers.
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 triggers or an error.public CosmosTrigger getTrigger(String id)
id
- id of the cosmos triggerCopyright © 2019. All rights reserved.