Class ModelVersionsApi

java.lang.Object
io.unitycatalog.client.api.ModelVersionsApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.5.0") public class ModelVersionsApi extends Object
  • Constructor Details

    • ModelVersionsApi

      public ModelVersionsApi()
    • ModelVersionsApi

      public ModelVersionsApi(ApiClient apiClient)
  • Method Details

    • getApiException

      protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException
      Throws:
      IOException
    • createModelVersion

      public ModelVersionInfo createModelVersion(CreateModelVersion createModelVersion) throws ApiException
      Create a model version. Creates a new model version instance.
      Parameters:
      createModelVersion - (optional)
      Returns:
      ModelVersionInfo
      Throws:
      ApiException - if fails to make API call
    • createModelVersionWithHttpInfo

      public ApiResponse<ModelVersionInfo> createModelVersionWithHttpInfo(CreateModelVersion createModelVersion) throws ApiException
      Create a model version. Creates a new model version instance.
      Parameters:
      createModelVersion - (optional)
      Returns:
      ApiResponse<ModelVersionInfo>
      Throws:
      ApiException - if fails to make API call
    • deleteModelVersion

      public Object deleteModelVersion(String fullName, Long version) throws ApiException
      Delete a model version Deletes the specified model version.
      Parameters:
      fullName - Full name of the model. (required)
      version - Version number of the model version. (required)
      Returns:
      Object
      Throws:
      ApiException - if fails to make API call
    • deleteModelVersionWithHttpInfo

      public ApiResponse<Object> deleteModelVersionWithHttpInfo(String fullName, Long version) throws ApiException
      Delete a model version Deletes the specified model version.
      Parameters:
      fullName - Full name of the model. (required)
      version - Version number of the model version. (required)
      Returns:
      ApiResponse<Object>
      Throws:
      ApiException - if fails to make API call
    • finalizeModelVersion

      public ModelVersionInfo finalizeModelVersion(String fullName, Long version, FinalizeModelVersion finalizeModelVersion) throws ApiException
      Finalize a model version Finalizes the status of the specified model version.
      Parameters:
      fullName - Full name of the model. (required)
      version - Version number of the model version. (required)
      finalizeModelVersion - (optional)
      Returns:
      ModelVersionInfo
      Throws:
      ApiException - if fails to make API call
    • finalizeModelVersionWithHttpInfo

      public ApiResponse<ModelVersionInfo> finalizeModelVersionWithHttpInfo(String fullName, Long version, FinalizeModelVersion finalizeModelVersion) throws ApiException
      Finalize a model version Finalizes the status of the specified model version.
      Parameters:
      fullName - Full name of the model. (required)
      version - Version number of the model version. (required)
      finalizeModelVersion - (optional)
      Returns:
      ApiResponse<ModelVersionInfo>
      Throws:
      ApiException - if fails to make API call
    • getModelVersion

      public ModelVersionInfo getModelVersion(String fullName, Long version) throws ApiException
      Get a model version Gets a specific model version for a specific model.
      Parameters:
      fullName - Full name of the model. (required)
      version - Version number of the model version. (required)
      Returns:
      ModelVersionInfo
      Throws:
      ApiException - if fails to make API call
    • getModelVersionWithHttpInfo

      public ApiResponse<ModelVersionInfo> getModelVersionWithHttpInfo(String fullName, Long version) throws ApiException
      Get a model version Gets a specific model version for a specific model.
      Parameters:
      fullName - Full name of the model. (required)
      version - Version number of the model version. (required)
      Returns:
      ApiResponse<ModelVersionInfo>
      Throws:
      ApiException - if fails to make API call
    • listModelVersions

      public ListModelVersionsResponse listModelVersions(String fullName, Integer maxResults, String pageToken) throws ApiException
      List model versions of the specified registered model. Gets the paginated list of all available model versions under the specified registered model. There is no guarantee of a specific ordering of the elements in the array.
      Parameters:
      fullName - Full name of the registered model. (required)
      maxResults - Maximum number of model versions 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 token to send for the next page of results (pagination). (optional)
      Returns:
      ListModelVersionsResponse
      Throws:
      ApiException - if fails to make API call
    • listModelVersionsWithHttpInfo

      public ApiResponse<ListModelVersionsResponse> listModelVersionsWithHttpInfo(String fullName, Integer maxResults, String pageToken) throws ApiException
      List model versions of the specified registered model. Gets the paginated list of all available model versions under the specified registered model. There is no guarantee of a specific ordering of the elements in the array.
      Parameters:
      fullName - Full name of the registered model. (required)
      maxResults - Maximum number of model versions 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 token to send for the next page of results (pagination). (optional)
      Returns:
      ApiResponse<ListModelVersionsResponse>
      Throws:
      ApiException - if fails to make API call
    • updateModelVersion

      public ModelVersionInfo updateModelVersion(String fullName, Long version, UpdateModelVersion updateModelVersion) throws ApiException
      Update a model version Updates the specified model version.
      Parameters:
      fullName - Full name of the model. (required)
      version - Version number of the model version. (required)
      updateModelVersion - (optional)
      Returns:
      ModelVersionInfo
      Throws:
      ApiException - if fails to make API call
    • updateModelVersionWithHttpInfo

      public ApiResponse<ModelVersionInfo> updateModelVersionWithHttpInfo(String fullName, Long version, UpdateModelVersion updateModelVersion) throws ApiException
      Update a model version Updates the specified model version.
      Parameters:
      fullName - Full name of the model. (required)
      version - Version number of the model version. (required)
      updateModelVersion - (optional)
      Returns:
      ApiResponse<ModelVersionInfo>
      Throws:
      ApiException - if fails to make API call