Package io.unitycatalog.client.api
Class CatalogsApi
java.lang.Object
io.unitycatalog.client.api.CatalogsApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.5.0")
public class CatalogsApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCatalog(CreateCatalog createCatalog) Create a catalog Creates a new catalog instance.createCatalogWithHttpInfo(CreateCatalog createCatalog) Create a catalog Creates a new catalog instance.deleteCatalog(String name, Boolean force) Delete a catalog Deletes the catalog that matches the supplied name.deleteCatalogWithHttpInfo(String name, Boolean force) Delete a catalog Deletes the catalog that matches the supplied name.protected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response) getCatalog(String name) Get a catalog Gets the specified catalog.getCatalogWithHttpInfo(String name) Get a catalog Gets the specified catalog.listCatalogs(String pageToken, Integer maxResults) List catalogs Lists the available catalogs.listCatalogsWithHttpInfo(String pageToken, Integer maxResults) List catalogs Lists the available catalogs.updateCatalog(String name, UpdateCatalog updateCatalog) Update a catalog Updates the catalog that matches the supplied name.updateCatalogWithHttpInfo(String name, UpdateCatalog updateCatalog) Update a catalog Updates the catalog that matches the supplied name.
-
Constructor Details
-
CatalogsApi
public CatalogsApi() -
CatalogsApi
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException - Throws:
IOException
-
createCatalog
Create a catalog Creates a new catalog instance.- Parameters:
createCatalog- (optional)- Returns:
- CatalogInfo
- Throws:
ApiException- if fails to make API call
-
createCatalogWithHttpInfo
public ApiResponse<CatalogInfo> createCatalogWithHttpInfo(CreateCatalog createCatalog) throws ApiException Create a catalog Creates a new catalog instance.- Parameters:
createCatalog- (optional)- Returns:
- ApiResponse<CatalogInfo>
- Throws:
ApiException- if fails to make API call
-
deleteCatalog
Delete a catalog Deletes the catalog that matches the supplied name.- Parameters:
name- The name of the catalog. (required)force- Force deletion even if the catalog is not empty. (optional)- Returns:
- Object
- Throws:
ApiException- if fails to make API call
-
deleteCatalogWithHttpInfo
public ApiResponse<Object> deleteCatalogWithHttpInfo(String name, Boolean force) throws ApiException Delete a catalog Deletes the catalog that matches the supplied name.- Parameters:
name- The name of the catalog. (required)force- Force deletion even if the catalog is not empty. (optional)- Returns:
- ApiResponse<Object>
- Throws:
ApiException- if fails to make API call
-
getCatalog
Get a catalog Gets the specified catalog.- Parameters:
name- The name of the catalog. (required)- Returns:
- CatalogInfo
- Throws:
ApiException- if fails to make API call
-
getCatalogWithHttpInfo
Get a catalog Gets the specified catalog.- Parameters:
name- The name of the catalog. (required)- Returns:
- ApiResponse<CatalogInfo>
- Throws:
ApiException- if fails to make API call
-
listCatalogs
List catalogs Lists the available catalogs. There is no guarantee of a specific ordering of the elements in the list.- Parameters:
pageToken- Opaque pagination token to go to next page based on previous query. (optional)maxResults- Maximum number of catalogs 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)- Returns:
- ListCatalogsResponse
- Throws:
ApiException- if fails to make API call
-
listCatalogsWithHttpInfo
public ApiResponse<ListCatalogsResponse> listCatalogsWithHttpInfo(String pageToken, Integer maxResults) throws ApiException List catalogs Lists the available catalogs. There is no guarantee of a specific ordering of the elements in the list.- Parameters:
pageToken- Opaque pagination token to go to next page based on previous query. (optional)maxResults- Maximum number of catalogs 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)- Returns:
- ApiResponse<ListCatalogsResponse>
- Throws:
ApiException- if fails to make API call
-
updateCatalog
Update a catalog Updates the catalog that matches the supplied name.- Parameters:
name- The name of the catalog. (required)updateCatalog- (optional)- Returns:
- CatalogInfo
- Throws:
ApiException- if fails to make API call
-
updateCatalogWithHttpInfo
public ApiResponse<CatalogInfo> updateCatalogWithHttpInfo(String name, UpdateCatalog updateCatalog) throws ApiException Update a catalog Updates the catalog that matches the supplied name.- Parameters:
name- The name of the catalog. (required)updateCatalog- (optional)- Returns:
- ApiResponse<CatalogInfo>
- Throws:
ApiException- if fails to make API call
-