Class CosmosAsyncStoredProcedure
-
Method Summary
Modifier and TypeMethodDescriptiondelete()
Deletes a stored procedureDeletes a stored procedureexecute
(List<Object> procedureParams, CosmosStoredProcedureRequestOptions options) Executes a stored proceduregetId()
Get the id of theCosmosAsyncStoredProcedure
read()
Read a stored procedureread
(CosmosStoredProcedureRequestOptions options) Read a stored procedurereplace
(CosmosStoredProcedureProperties storedProcedureProperties) Replaces a stored procedure.replace
(CosmosStoredProcedureProperties storedProcedureProperties, CosmosStoredProcedureRequestOptions options) Replaces a stored procedure.
-
Method Details
-
getId
Get the id of theCosmosAsyncStoredProcedure
- Returns:
- the id of the
CosmosAsyncStoredProcedure
-
read
Read a stored procedureAfter subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response with the read stored procedure. In case of failure theMono
will error.- Returns:
- an
Mono
containing the single resource response with the read stored procedure or an error.
-
read
Read a stored procedureAfter subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response with the read stored procedure. In case of failure theMono
will error.- Parameters:
options
- the request options.- Returns:
- an
Mono
containing the single resource response with the read stored procedure or an error.
-
delete
Deletes a stored procedureAfter subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response for the deleted stored procedure. In case of failure theMono
will error.- Returns:
- an
Mono
containing the single resource response for the deleted stored procedure or an error.
-
delete
Deletes a stored procedureAfter subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response for the deleted stored procedure. In case of failure theMono
will error.- Parameters:
options
- the request options.- Returns:
- an
Mono
containing the single resource response for the deleted stored procedure or an error.
-
execute
public Mono<CosmosStoredProcedureResponse> execute(List<Object> procedureParams, CosmosStoredProcedureRequestOptions options) Executes a stored procedureAfter subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response with the stored procedure response. In case of failure theMono
will error.- Parameters:
procedureParams
- the list of procedure parameter values.options
- the request options.- Returns:
- an
Mono
containing the single resource response with the stored procedure response or an error.
-
replace
public Mono<CosmosStoredProcedureResponse> replace(CosmosStoredProcedureProperties storedProcedureProperties) Replaces a stored procedure.After subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response with the replaced stored procedure. In case of failure theMono
will error.- Parameters:
storedProcedureProperties
- the stored procedure properties- Returns:
- an
Mono
containing the single resource response with the replaced stored procedure or an error.
-
replace
public Mono<CosmosStoredProcedureResponse> replace(CosmosStoredProcedureProperties storedProcedureProperties, CosmosStoredProcedureRequestOptions options) Replaces a stored procedure.After subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response with the replaced stored procedure. In case of failure theMono
will error.- Parameters:
storedProcedureProperties
- the stored procedure properties.options
- the request options.- Returns:
- an
Mono
containing the single resource response with the replaced stored procedure or an error.
-