CosmosAsyncScripts Class
- java.
lang. Object - com.
azure. cosmos. CosmosAsyncScripts
- com.
public class CosmosAsyncScripts
The type Cosmos async scripts. This contains async methods to operate on cosmos scripts like UDFs, StoredProcedures and Triggers
Method Summary
Methods inherited from java.lang.Object
Method Details
createStoredProcedure
public Mono
Creates a cosmos stored procedure.
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.
Parameters:
Returns:
createStoredProcedure
public Mono
Creates a cosmos stored procedure.
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.
Parameters:
Returns:
createTrigger
public Mono
Creates a Cosmos trigger.
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.
Parameters:
Returns:
createUserDefinedFunction
public Mono
Creates a cosmos user defined function.
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.
Parameters:
Returns:
getStoredProcedure
public CosmosAsyncStoredProcedure getStoredProcedure(String id)
Gets a CosmosAsyncStoredProcedure object without making a service call
Parameters:
Returns:
getTrigger
public CosmosAsyncTrigger getTrigger(String id)
Gets a CosmosAsyncTrigger object without making a service call
Parameters:
Returns:
getUserDefinedFunction
public CosmosAsyncUserDefinedFunction getUserDefinedFunction(String id)
Gets a CosmosAsyncUserDefinedFunction object without making a service call
Parameters:
Returns:
queryStoredProcedures
public CosmosPagedFlux
Query for stored procedures in a container.
After subscription the operation will be performed. The CosmosPagedFlux<T> will contain one or several feed response pages of the obtained stored procedures. In case of failure the CosmosPagedFlux<T> will error.
Parameters:
Returns:
queryStoredProcedures
public CosmosPagedFlux
Query for stored procedures in a container.
After subscription the operation will be performed. The CosmosPagedFlux<T> will contain one or several feed response pages of the obtained stored procedures. In case of failure the CosmosPagedFlux<T> will error.
Parameters:
Returns:
queryTriggers
public CosmosPagedFlux
Query for triggers in the container
After subscription the operation will be performed. The CosmosPagedFlux<T> will contain one or several feed response pages of the obtained triggers. In case of failure the CosmosPagedFlux<T> will error.
Parameters:
Returns:
queryTriggers
public CosmosPagedFlux
Query for triggers in the container
After subscription the operation will be performed. The CosmosPagedFlux<T> will contain one or several feed response pages of the obtained triggers. In case of failure the CosmosPagedFlux<T> will error.
Parameters:
Returns:
queryUserDefinedFunctions
public CosmosPagedFlux
Query for user defined functions in the container.
After subscription the operation will be performed. The CosmosPagedFlux<T> will contain one or several feed response pages of the obtained user defined functions. In case of failure the CosmosPagedFlux<T> will error.
Parameters:
Returns:
queryUserDefinedFunctions
public CosmosPagedFlux
Query for user defined functions in the container.
After subscription the operation will be performed. The CosmosPagedFlux<T> will contain one or several feed response pages of the obtained user defined functions. In case of failure the CosmosPagedFlux<T> will error.
Parameters:
Returns:
readAllStoredProcedures
public CosmosPagedFlux
Reads all cosmos stored procedures in a container.
After subscription the operation will be performed. The CosmosPagedFlux<T> will contain one or several feed response pages of the read cosmos stored procedure properties. In case of failure the CosmosPagedFlux<T> will error.
Returns:
readAllTriggers
public CosmosPagedFlux
Reads all triggers in a container
After subscription the operation will be performed. The CosmosPagedFlux<T> will contain one or several feed response pages of the read cosmos trigger properties. In case of failure the CosmosPagedFlux<T> will error.
Returns:
readAllUserDefinedFunctions
public CosmosPagedFlux
Reads all cosmos user defined functions in the container
After subscription the operation will be performed. The CosmosPagedFlux<T> will contain one or several feed response pages of the read user defined functions. In case of failure the CosmosPagedFlux<T> will error.
Returns:
Applies to
Azure SDK for Java