Package io.unitycatalog.client.api
Class VolumesApi
java.lang.Object
io.unitycatalog.client.api.VolumesApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.5.0")
public class VolumesApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateVolume(CreateVolumeRequestContent createVolumeRequestContent) Create a Volume Creates a new volume.createVolumeWithHttpInfo(CreateVolumeRequestContent createVolumeRequestContent) Create a Volume Creates a new volume.deleteVolume(String name) Delete a Volume Deletes a volume from the specified parent catalog and schema.Delete a Volume Deletes a volume from the specified parent catalog and schema.protected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response) Get a Volume Gets a volume for a specific catalog and schema.getVolumeWithHttpInfo(String name) Get a Volume Gets a volume for a specific catalog and schema.listVolumes(String catalogName, String schemaName, Integer maxResults, String pageToken) List Volumes Gets an array of available volumes under the parent catalog and schema.listVolumesWithHttpInfo(String catalogName, String schemaName, Integer maxResults, String pageToken) List Volumes Gets an array of available volumes under the parent catalog and schema.updateVolume(String name, UpdateVolumeRequestContent updateVolumeRequestContent) Update a Volume Updates the specified volume under the specified parent catalog and schema.updateVolumeWithHttpInfo(String name, UpdateVolumeRequestContent updateVolumeRequestContent) Update a Volume Updates the specified volume under the specified parent catalog and schema.
-
Constructor Details
-
VolumesApi
public VolumesApi() -
VolumesApi
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException - Throws:
IOException
-
createVolume
public VolumeInfo createVolume(CreateVolumeRequestContent createVolumeRequestContent) throws ApiException Create a Volume Creates a new volume.- Parameters:
createVolumeRequestContent- (required)- Returns:
- VolumeInfo
- Throws:
ApiException- if fails to make API call
-
createVolumeWithHttpInfo
public ApiResponse<VolumeInfo> createVolumeWithHttpInfo(CreateVolumeRequestContent createVolumeRequestContent) throws ApiException Create a Volume Creates a new volume.- Parameters:
createVolumeRequestContent- (required)- Returns:
- ApiResponse<VolumeInfo>
- Throws:
ApiException- if fails to make API call
-
deleteVolume
Delete a Volume Deletes a volume from the specified parent catalog and schema.- Parameters:
name- The three-level (fully qualified) name of the volume (required)- Returns:
- Object
- Throws:
ApiException- if fails to make API call
-
deleteVolumeWithHttpInfo
Delete a Volume Deletes a volume from the specified parent catalog and schema.- Parameters:
name- The three-level (fully qualified) name of the volume (required)- Returns:
- ApiResponse<Object>
- Throws:
ApiException- if fails to make API call
-
getVolume
Get a Volume Gets a volume for a specific catalog and schema.- Parameters:
name- The three-level (fully qualified) name of the volume (required)- Returns:
- VolumeInfo
- Throws:
ApiException- if fails to make API call
-
getVolumeWithHttpInfo
Get a Volume Gets a volume for a specific catalog and schema.- Parameters:
name- The three-level (fully qualified) name of the volume (required)- Returns:
- ApiResponse<VolumeInfo>
- Throws:
ApiException- if fails to make API call
-
listVolumes
public ListVolumesResponseContent listVolumes(String catalogName, String schemaName, Integer maxResults, String pageToken) throws ApiException List Volumes Gets an array of available volumes under the parent catalog and schema. There is no guarantee of a specific ordering of the elements in the array.- Parameters:
catalogName- The identifier of the catalog (required)schemaName- The identifier of the schema (required)maxResults- Maximum number of volumes to return (page length). If not set, the page length is set to a server configured value. - 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; Note: this parameter controls only the maximum number of volumes to return. The actual number of volumes returned in a page may be smaller than this value, including 0, even if there are more pages. (optional)pageToken- Opaque token returned by a previous request. It must be included in the request to retrieve the next page of results (pagination). (optional)- Returns:
- ListVolumesResponseContent
- Throws:
ApiException- if fails to make API call
-
listVolumesWithHttpInfo
public ApiResponse<ListVolumesResponseContent> listVolumesWithHttpInfo(String catalogName, String schemaName, Integer maxResults, String pageToken) throws ApiException List Volumes Gets an array of available volumes under the parent catalog and schema. There is no guarantee of a specific ordering of the elements in the array.- Parameters:
catalogName- The identifier of the catalog (required)schemaName- The identifier of the schema (required)maxResults- Maximum number of volumes to return (page length). If not set, the page length is set to a server configured value. - 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; Note: this parameter controls only the maximum number of volumes to return. The actual number of volumes returned in a page may be smaller than this value, including 0, even if there are more pages. (optional)pageToken- Opaque token returned by a previous request. It must be included in the request to retrieve the next page of results (pagination). (optional)- Returns:
- ApiResponse<ListVolumesResponseContent>
- Throws:
ApiException- if fails to make API call
-
updateVolume
public VolumeInfo updateVolume(String name, UpdateVolumeRequestContent updateVolumeRequestContent) throws ApiException Update a Volume Updates the specified volume under the specified parent catalog and schema. Currently only the name or the comment of the volume could be updated.- Parameters:
name- The three-level (fully qualified) name of the volume (required)updateVolumeRequestContent- (optional)- Returns:
- VolumeInfo
- Throws:
ApiException- if fails to make API call
-
updateVolumeWithHttpInfo
public ApiResponse<VolumeInfo> updateVolumeWithHttpInfo(String name, UpdateVolumeRequestContent updateVolumeRequestContent) throws ApiException Update a Volume Updates the specified volume under the specified parent catalog and schema. Currently only the name or the comment of the volume could be updated.- Parameters:
name- The three-level (fully qualified) name of the volume (required)updateVolumeRequestContent- (optional)- Returns:
- ApiResponse<VolumeInfo>
- Throws:
ApiException- if fails to make API call
-