Interface FunctionServiceAsync
-
- All Implemented Interfaces:
public interface FunctionServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceFunctionServiceAsync.WithRawResponseA view of FunctionServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract FunctionServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
create
CompletableFuture<Function> create(FunctionCreateParams params)
Create a new function. If there is an existing function in the project with the same slug as the one specified in the request, will return the existing function unmodified
-
create
abstract CompletableFuture<Function> create(FunctionCreateParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<Function> retrieve(FunctionRetrieveParams params)
Get a function object by its id
-
retrieve
abstract CompletableFuture<Function> retrieve(FunctionRetrieveParams params, RequestOptions requestOptions)
-
update
CompletableFuture<Function> update(FunctionUpdateParams params)
Partially update a function object. Specify the fields to update in the payload. Any object-type fields will be deep-merged with existing content. Currently we do not support removing fields or setting them to null.
-
update
abstract CompletableFuture<Function> update(FunctionUpdateParams params, RequestOptions requestOptions)
-
list
CompletableFuture<FunctionListPageAsync> list()
List out all functions. The functions are sorted by creation date, with the most recently-created functions coming first
-
list
abstract CompletableFuture<FunctionListPageAsync> list(FunctionListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<FunctionListPageAsync> list(FunctionListParams params)
-
list
CompletableFuture<FunctionListPageAsync> list(RequestOptions requestOptions)
-
delete
CompletableFuture<Function> delete(FunctionDeleteParams params)
Delete a function object by its id
-
delete
abstract CompletableFuture<Function> delete(FunctionDeleteParams params, RequestOptions requestOptions)
-
invoke
CompletableFuture<Optional<FunctionInvokeResponse>> invoke(FunctionInvokeParams params)
Invoke a function.
-
invoke
abstract CompletableFuture<Optional<FunctionInvokeResponse>> invoke(FunctionInvokeParams params, RequestOptions requestOptions)
-
replace
CompletableFuture<Function> replace(FunctionReplaceParams params)
Create or replace function. If there is an existing function in the project with the same slug as the one specified in the request, will replace the existing function with the provided fields
-
replace
abstract CompletableFuture<Function> replace(FunctionReplaceParams params, RequestOptions requestOptions)
-
-
-
-