public class CosmosAsyncScripts extends Object
public Mono<CosmosStoredProcedureResponse> 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 Mono<CosmosStoredProcedureResponse> 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 CosmosPagedFlux<CosmosStoredProcedureProperties> readAllStoredProcedures()
After subscription the operation will be performed.
The CosmosPagedFlux
will contain one or several feed response pages of the read cosmos stored
procedure properties.
In case of failure the CosmosPagedFlux
will error.
CosmosPagedFlux
containing one or several feed response pages of the read cosmos stored
procedures
properties or an error.public CosmosPagedFlux<CosmosStoredProcedureProperties> queryStoredProcedures(String query, CosmosQueryRequestOptions options)
After subscription the operation will be performed.
The CosmosPagedFlux
will contain one or several feed response pages of the obtained stored procedures.
In case of failure the CosmosPagedFlux
will error.
query
- the the query.options
- the query request options.CosmosPagedFlux
containing one or several feed response pages of the obtained stored
procedures or
an error.public CosmosPagedFlux<CosmosStoredProcedureProperties> queryStoredProcedures(SqlQuerySpec querySpec, CosmosQueryRequestOptions options)
After subscription the operation will be performed.
The CosmosPagedFlux
will contain one or several feed response pages of the obtained stored procedures.
In case of failure the CosmosPagedFlux
will error.
querySpec
- the SQL query specification.options
- the query request options.CosmosPagedFlux
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 Mono<CosmosUserDefinedFunctionResponse> 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 CosmosPagedFlux<CosmosUserDefinedFunctionProperties> readAllUserDefinedFunctions()
After subscription the operation will be performed.
The CosmosPagedFlux
will contain one or several feed response pages of the read user defined functions.
In case of failure the CosmosPagedFlux
will error.
CosmosPagedFlux
containing one or several feed response pages of the read user defined
functions or an
error.public CosmosPagedFlux<CosmosUserDefinedFunctionProperties> queryUserDefinedFunctions(String query, CosmosQueryRequestOptions options)
After subscription the operation will be performed.
The CosmosPagedFlux
will contain one or several feed response pages of the obtained user defined
functions.
In case of failure the CosmosPagedFlux
will error.
query
- the query.options
- the query request options.CosmosPagedFlux
containing one or several feed response pages of the obtained user defined
functions
or an error.public CosmosPagedFlux<CosmosUserDefinedFunctionProperties> queryUserDefinedFunctions(SqlQuerySpec querySpec, CosmosQueryRequestOptions options)
After subscription the operation will be performed.
The CosmosPagedFlux
will contain one or several feed response pages of the obtained user defined
functions.
In case of failure the CosmosPagedFlux
will error.
querySpec
- the SQL query specification.options
- the query request options.CosmosPagedFlux
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 Mono<CosmosTriggerResponse> 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 CosmosPagedFlux<CosmosTriggerProperties> readAllTriggers()
After subscription the operation will be performed.
The CosmosPagedFlux
will contain one or several feed response pages of the read cosmos trigger
properties.
In case of failure the CosmosPagedFlux
will error.
CosmosPagedFlux
containing one or several feed response pages of the read cosmos rigger
properties or
an error.public CosmosPagedFlux<CosmosTriggerProperties> queryTriggers(String query, CosmosQueryRequestOptions options)
After subscription the operation will be performed.
The CosmosPagedFlux
will contain one or several feed response pages of the obtained triggers.
In case of failure the CosmosPagedFlux
will error.
query
- the query.options
- the query request options.CosmosPagedFlux
containing one or several feed response pages of the obtained triggers or an
error.public CosmosPagedFlux<CosmosTriggerProperties> queryTriggers(SqlQuerySpec querySpec, CosmosQueryRequestOptions options)
After subscription the operation will be performed.
The CosmosPagedFlux
will contain one or several feed response pages of the obtained triggers.
In case of failure the CosmosPagedFlux
will error.
querySpec
- the SQL query specification.options
- the query request options.CosmosPagedFlux
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 © 2021 Microsoft Corporation. All rights reserved.