Interface FunctionService
-
- All Implemented Interfaces:
public interface FunctionService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceFunctionService.WithRawResponseA view of FunctionService that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract FunctionService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
create
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 Function create(FunctionCreateParams params, RequestOptions requestOptions)
-
retrieve
Function retrieve(FunctionRetrieveParams params)
Get a function object by its id
-
retrieve
abstract Function retrieve(FunctionRetrieveParams params, RequestOptions requestOptions)
-
update
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 Function update(FunctionUpdateParams params, RequestOptions requestOptions)
-
list
FunctionListPage list()
List out all functions. The functions are sorted by creation date, with the most recently-created functions coming first
-
list
abstract FunctionListPage list(FunctionListParams params, RequestOptions requestOptions)
-
list
FunctionListPage list(FunctionListParams params)
-
list
FunctionListPage list(RequestOptions requestOptions)
-
delete
Function delete(FunctionDeleteParams params)
Delete a function object by its id
-
delete
abstract Function delete(FunctionDeleteParams params, RequestOptions requestOptions)
-
invoke
Optional<FunctionInvokeResponse> invoke(FunctionInvokeParams params)
Invoke a function.
-
invoke
abstract Optional<FunctionInvokeResponse> invoke(FunctionInvokeParams params, RequestOptions requestOptions)
-
replace
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 Function replace(FunctionReplaceParams params, RequestOptions requestOptions)
-
-
-
-