Package com.azure.data.cosmos
Class CosmosUserDefinedFunction
- java.lang.Object
-
- com.azure.data.cosmos.CosmosUserDefinedFunction
-
public class CosmosUserDefinedFunction extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<CosmosResponse>
delete()
Deletes a cosmos user defined function.String
id()
Get the id of theCosmosUserDefinedFunction
Mono<CosmosUserDefinedFunctionResponse>
read()
Read a user defined function.Mono<CosmosUserDefinedFunctionResponse>
replace(CosmosUserDefinedFunctionProperties udfSettings)
Replaces a cosmos user defined function.
-
-
-
Method Detail
-
id
public String id()
Get the id of theCosmosUserDefinedFunction
- Returns:
- the id of the
CosmosUserDefinedFunction
-
read
public Mono<CosmosUserDefinedFunctionResponse> read()
Read a user defined function.After subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response for the read user defined function. In case of failure theMono
will error.- Returns:
- an
Mono
containing the single resource response for the read user defined function or an error.
-
replace
public Mono<CosmosUserDefinedFunctionResponse> replace(CosmosUserDefinedFunctionProperties udfSettings)
Replaces a cosmos user defined function.After subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response with the replaced user defined function. In case of failure theMono
will error.- Parameters:
udfSettings
- the cosmos user defined function properties.- Returns:
- an
Mono
containing the single resource response with the replaced cosmos user defined function or an error.
-
delete
public Mono<CosmosResponse> delete()
Deletes a cosmos user defined function.After subscription the operation will be performed. The
Mono
upon successful completion will contain a single resource response for the deleted user defined function. In case of failure theMono
will error.- Returns:
- an
Mono
containing the single resource response for the deleted cosmos user defined function or an error.
-
-