Package io.unitycatalog.client.api
Class FunctionsApi
java.lang.Object
io.unitycatalog.client.api.FunctionsApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.5.0")
public class FunctionsApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFunction(CreateFunctionRequest createFunctionRequest) Create a function.createFunctionWithHttpInfo(CreateFunctionRequest createFunctionRequest) Create a function.deleteFunction(String name) Delete a function Deletes the function that matches the supplied name.Delete a function Deletes the function that matches the supplied name.protected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response) getFunction(String name) Get a function Gets a function from within a parent catalog and schema.Get a function Gets a function from within a parent catalog and schema.listFunctions(String catalogName, String schemaName, Integer maxResults, String pageToken) List functions List functions within the specified parent catalog and schema.listFunctionsWithHttpInfo(String catalogName, String schemaName, Integer maxResults, String pageToken) List functions List functions within the specified parent catalog and schema.
-
Constructor Details
-
FunctionsApi
public FunctionsApi() -
FunctionsApi
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException - Throws:
IOException
-
createFunction
Create a function. WARNING: This API is experimental and will change in future versions. Creates a new function instance. WARNING: This API is experimental and will change in future versions.- Parameters:
createFunctionRequest- (optional)- Returns:
- FunctionInfo
- Throws:
ApiException- if fails to make API call
-
createFunctionWithHttpInfo
public ApiResponse<FunctionInfo> createFunctionWithHttpInfo(CreateFunctionRequest createFunctionRequest) throws ApiException Create a function. WARNING: This API is experimental and will change in future versions. Creates a new function instance. WARNING: This API is experimental and will change in future versions.- Parameters:
createFunctionRequest- (optional)- Returns:
- ApiResponse<FunctionInfo>
- Throws:
ApiException- if fails to make API call
-
deleteFunction
Delete a function Deletes the function that matches the supplied name.- Parameters:
name- The fully-qualified name of the function (of the form __catalog_name__.__schema_name__.__function__name__). (required)- Returns:
- Object
- Throws:
ApiException- if fails to make API call
-
deleteFunctionWithHttpInfo
Delete a function Deletes the function that matches the supplied name.- Parameters:
name- The fully-qualified name of the function (of the form __catalog_name__.__schema_name__.__function__name__). (required)- Returns:
- ApiResponse<Object>
- Throws:
ApiException- if fails to make API call
-
getFunction
Get a function Gets a function from within a parent catalog and schema.- Parameters:
name- The fully-qualified name of the function (of the form __catalog_name__.__schema_name__.__function__name__). (required)- Returns:
- FunctionInfo
- Throws:
ApiException- if fails to make API call
-
getFunctionWithHttpInfo
Get a function Gets a function from within a parent catalog and schema.- Parameters:
name- The fully-qualified name of the function (of the form __catalog_name__.__schema_name__.__function__name__). (required)- Returns:
- ApiResponse<FunctionInfo>
- Throws:
ApiException- if fails to make API call
-
listFunctions
public ListFunctionsResponse listFunctions(String catalogName, String schemaName, Integer maxResults, String pageToken) throws ApiException List functions List functions within the specified parent catalog and schema. There is no guarantee of a specific ordering of the elements in the array.- Parameters:
catalogName- Name of parent catalog for functions of interest. (required)schemaName- Parent schema of functions. (required)maxResults- Maximum number of functions to return. - when set to a value greater than 0, the page length is the minimum of this value and a server configured value; - when set to 0, the page length is set to a server configured value; - when set to a value less than 0, an invalid parameter error is returned; (optional)pageToken- Opaque pagination token to go to next page based on previous query. (optional)- Returns:
- ListFunctionsResponse
- Throws:
ApiException- if fails to make API call
-
listFunctionsWithHttpInfo
public ApiResponse<ListFunctionsResponse> listFunctionsWithHttpInfo(String catalogName, String schemaName, Integer maxResults, String pageToken) throws ApiException List functions List functions within the specified parent catalog and schema. There is no guarantee of a specific ordering of the elements in the array.- Parameters:
catalogName- Name of parent catalog for functions of interest. (required)schemaName- Parent schema of functions. (required)maxResults- Maximum number of functions to return. - when set to a value greater than 0, the page length is the minimum of this value and a server configured value; - when set to 0, the page length is set to a server configured value; - when set to a value less than 0, an invalid parameter error is returned; (optional)pageToken- Opaque pagination token to go to next page based on previous query. (optional)- Returns:
- ApiResponse<ListFunctionsResponse>
- Throws:
ApiException- if fails to make API call
-