public class CosmosAsyncScripts extends Object
public reactor.core.publisher.Mono<CosmosAsyncStoredProcedureResponse> createStoredProcedure(CosmosStoredProcedureProperties properties)
After subscription the operation will be performed.
The 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<CosmosAsyncStoredProcedureResponse> createStoredProcedure(CosmosStoredProcedureProperties properties, CosmosStoredProcedureRequestOptions options)
After subscription the operation will be performed.
The 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 CosmosContinuablePagedFlux<CosmosStoredProcedureProperties> readAllStoredProcedures(FeedOptions options)
After subscription the operation will be performed.
The CosmosContinuablePagedFlux
will contain one or several feed response pages of the read cosmos stored procedure properties.
In case of failure the CosmosContinuablePagedFlux
will error.
options
- the feed options.CosmosContinuablePagedFlux
containing one or several feed response pages of the read cosmos stored procedures
properties or an error.public CosmosContinuablePagedFlux<CosmosStoredProcedureProperties> queryStoredProcedures(String query, FeedOptions options)
After subscription the operation will be performed.
The CosmosContinuablePagedFlux
will contain one or several feed response pages of the obtained stored procedures.
In case of failure the CosmosContinuablePagedFlux
will error.
query
- the the query.options
- the feed options.CosmosContinuablePagedFlux
containing one or several feed response pages of the obtained stored procedures or
an error.public CosmosContinuablePagedFlux<CosmosStoredProcedureProperties> queryStoredProcedures(SqlQuerySpec querySpec, FeedOptions options)
After subscription the operation will be performed.
The CosmosContinuablePagedFlux
will contain one or several feed response pages of the obtained stored procedures.
In case of failure the CosmosContinuablePagedFlux
will error.
querySpec
- the SQL query specification.options
- the feed options.CosmosContinuablePagedFlux
containing one or several feed response pages of the obtained stored procedures or
an error.public CosmosAsyncStoredProcedure getStoredProcedure(String id)
id
- id of the stored procedurepublic reactor.core.publisher.Mono<CosmosAsyncUserDefinedFunctionResponse> createUserDefinedFunction(CosmosUserDefinedFunctionProperties properties)
After subscription the operation will be performed.
The 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 CosmosContinuablePagedFlux<CosmosUserDefinedFunctionProperties> readAllUserDefinedFunctions(FeedOptions options)
After subscription the operation will be performed.
The CosmosContinuablePagedFlux
will contain one or several feed response pages of the read user defined functions.
In case of failure the CosmosContinuablePagedFlux
will error.
options
- the feed options.CosmosContinuablePagedFlux
containing one or several feed response pages of the read user defined functions or an
error.public CosmosContinuablePagedFlux<CosmosUserDefinedFunctionProperties> queryUserDefinedFunctions(String query, FeedOptions options)
After subscription the operation will be performed.
The CosmosContinuablePagedFlux
will contain one or several feed response pages of the obtained user defined functions.
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 user defined functions
or an error.public CosmosContinuablePagedFlux<CosmosUserDefinedFunctionProperties> queryUserDefinedFunctions(SqlQuerySpec querySpec, FeedOptions options)
After subscription the operation will be performed.
The CosmosContinuablePagedFlux
will contain one or several feed response pages of the obtained user defined functions.
In case of failure the CosmosContinuablePagedFlux
will error.
querySpec
- the SQL query specification.options
- the feed options.CosmosContinuablePagedFlux
containing one or several feed response pages of the obtained user defined functions
or an error.public CosmosAsyncUserDefinedFunction getUserDefinedFunction(String id)
id
- id of the user defined functionpublic reactor.core.publisher.Mono<CosmosAsyncTriggerResponse> createTrigger(CosmosTriggerProperties properties)
After subscription the operation will be performed.
The 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 CosmosContinuablePagedFlux<CosmosTriggerProperties> readAllTriggers(FeedOptions options)
After subscription the operation will be performed.
The CosmosContinuablePagedFlux
will contain one or several feed response pages of the read cosmos trigger properties.
In case of failure the CosmosContinuablePagedFlux
will error.
options
- the feed options.CosmosContinuablePagedFlux
containing one or several feed response pages of the read cosmos rigger properties or
an error.public CosmosContinuablePagedFlux<CosmosTriggerProperties> queryTriggers(String query, FeedOptions options)
After subscription the operation will be performed.
The CosmosContinuablePagedFlux
will contain one or several feed response pages of the obtained triggers.
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 triggers or an error.public CosmosContinuablePagedFlux<CosmosTriggerProperties> queryTriggers(SqlQuerySpec querySpec, FeedOptions options)
After subscription the operation will be performed.
The CosmosContinuablePagedFlux
will contain one or several feed response pages of the obtained triggers.
In case of failure the CosmosContinuablePagedFlux
will error.
querySpec
- the SQL query specification.options
- the feed options.CosmosContinuablePagedFlux
containing one or several feed response pages of the obtained triggers or an error.public CosmosAsyncTrigger getTrigger(String id)
id
- id of the cosmos triggerCopyright © 2020 Microsoft Corporation. All rights reserved.