Class ImportApi


  • public class ImportApi
    extends Object
    • Constructor Detail

      • ImportApi

        public ImportApi()
      • ImportApi

        public ImportApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • createMetaRangeCall

        public okhttp3.Call createMetaRangeCall​(String repository,
                                                MetaRangeCreation metaRangeCreation,
                                                ApiCallback _callback)
                                         throws ApiException
        Build call for createMetaRange
        Parameters:
        repository - (required)
        metaRangeCreation - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        201 metarange metadata -
        400 Validation Error -
        401 Unauthorized -
        403 Forbidden -
        404 Resource Not Found -
        0 Internal Server Error -
      • createMetaRange

        public MetaRangeCreationResponse createMetaRange​(String repository,
                                                         MetaRangeCreation metaRangeCreation)
                                                  throws ApiException
        create a lakeFS metarange file from the given ranges
        Parameters:
        repository - (required)
        metaRangeCreation - (required)
        Returns:
        MetaRangeCreationResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        201 metarange metadata -
        400 Validation Error -
        401 Unauthorized -
        403 Forbidden -
        404 Resource Not Found -
        0 Internal Server Error -
      • createMetaRangeWithHttpInfo

        public ApiResponse<MetaRangeCreationResponse> createMetaRangeWithHttpInfo​(String repository,
                                                                                  MetaRangeCreation metaRangeCreation)
                                                                           throws ApiException
        create a lakeFS metarange file from the given ranges
        Parameters:
        repository - (required)
        metaRangeCreation - (required)
        Returns:
        ApiResponse<MetaRangeCreationResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        201 metarange metadata -
        400 Validation Error -
        401 Unauthorized -
        403 Forbidden -
        404 Resource Not Found -
        0 Internal Server Error -
      • createMetaRangeAsync

        public okhttp3.Call createMetaRangeAsync​(String repository,
                                                 MetaRangeCreation metaRangeCreation,
                                                 ApiCallback<MetaRangeCreationResponse> _callback)
                                          throws ApiException
        create a lakeFS metarange file from the given ranges (asynchronously)
        Parameters:
        repository - (required)
        metaRangeCreation - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
        Http Response Details:
        Status Code Description Response Headers
        201 metarange metadata -
        400 Validation Error -
        401 Unauthorized -
        403 Forbidden -
        404 Resource Not Found -
        0 Internal Server Error -
      • importCancelCall

        public okhttp3.Call importCancelCall​(String repository,
                                             String branch,
                                             String id,
                                             ApiCallback _callback)
                                      throws ApiException
        Build call for importCancel
        Parameters:
        repository - (required)
        branch - (required)
        id - Unique identifier of the import process (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        204 import canceled successfully -
        401 Unauthorized -
        403 Forbidden -
        404 Resource Not Found -
        409 Resource Conflicts With Target -
        0 Internal Server Error -
      • importCancel

        public void importCancel​(String repository,
                                 String branch,
                                 String id)
                          throws ApiException
        cancel ongoing import
        Parameters:
        repository - (required)
        branch - (required)
        id - Unique identifier of the import process (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        204 import canceled successfully -
        401 Unauthorized -
        403 Forbidden -
        404 Resource Not Found -
        409 Resource Conflicts With Target -
        0 Internal Server Error -
      • importCancelWithHttpInfo

        public ApiResponse<Void> importCancelWithHttpInfo​(String repository,
                                                          String branch,
                                                          String id)
                                                   throws ApiException
        cancel ongoing import
        Parameters:
        repository - (required)
        branch - (required)
        id - Unique identifier of the import process (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        204 import canceled successfully -
        401 Unauthorized -
        403 Forbidden -
        404 Resource Not Found -
        409 Resource Conflicts With Target -
        0 Internal Server Error -
      • importCancelAsync

        public okhttp3.Call importCancelAsync​(String repository,
                                              String branch,
                                              String id,
                                              ApiCallback<Void> _callback)
                                       throws ApiException
        cancel ongoing import (asynchronously)
        Parameters:
        repository - (required)
        branch - (required)
        id - Unique identifier of the import process (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
        Http Response Details:
        Status Code Description Response Headers
        204 import canceled successfully -
        401 Unauthorized -
        403 Forbidden -
        404 Resource Not Found -
        409 Resource Conflicts With Target -
        0 Internal Server Error -
      • importStartCall

        public okhttp3.Call importStartCall​(String repository,
                                            String branch,
                                            ImportCreation importCreation,
                                            ApiCallback _callback)
                                     throws ApiException
        Build call for importStart
        Parameters:
        repository - (required)
        branch - (required)
        importCreation - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        202 Import started -
        400 Validation Error -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • importStart

        public ImportCreationResponse importStart​(String repository,
                                                  String branch,
                                                  ImportCreation importCreation)
                                           throws ApiException
        import data from object store
        Parameters:
        repository - (required)
        branch - (required)
        importCreation - (required)
        Returns:
        ImportCreationResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        202 Import started -
        400 Validation Error -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • importStartWithHttpInfo

        public ApiResponse<ImportCreationResponse> importStartWithHttpInfo​(String repository,
                                                                           String branch,
                                                                           ImportCreation importCreation)
                                                                    throws ApiException
        import data from object store
        Parameters:
        repository - (required)
        branch - (required)
        importCreation - (required)
        Returns:
        ApiResponse<ImportCreationResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        202 Import started -
        400 Validation Error -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • importStartAsync

        public okhttp3.Call importStartAsync​(String repository,
                                             String branch,
                                             ImportCreation importCreation,
                                             ApiCallback<ImportCreationResponse> _callback)
                                      throws ApiException
        import data from object store (asynchronously)
        Parameters:
        repository - (required)
        branch - (required)
        importCreation - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
        Http Response Details:
        Status Code Description Response Headers
        202 Import started -
        400 Validation Error -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • importStatusCall

        public okhttp3.Call importStatusCall​(String repository,
                                             String branch,
                                             String id,
                                             ApiCallback _callback)
                                      throws ApiException
        Build call for importStatus
        Parameters:
        repository - (required)
        branch - (required)
        id - Unique identifier of the import process (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        200 import status -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • importStatus

        public ImportStatusResp importStatus​(String repository,
                                             String branch,
                                             String id)
                                      throws ApiException
        get import status
        Parameters:
        repository - (required)
        branch - (required)
        id - Unique identifier of the import process (required)
        Returns:
        ImportStatusResp
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 import status -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • importStatusWithHttpInfo

        public ApiResponse<ImportStatusResp> importStatusWithHttpInfo​(String repository,
                                                                      String branch,
                                                                      String id)
                                                               throws ApiException
        get import status
        Parameters:
        repository - (required)
        branch - (required)
        id - Unique identifier of the import process (required)
        Returns:
        ApiResponse<ImportStatusResp>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 import status -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • importStatusAsync

        public okhttp3.Call importStatusAsync​(String repository,
                                              String branch,
                                              String id,
                                              ApiCallback<ImportStatusResp> _callback)
                                       throws ApiException
        get import status (asynchronously)
        Parameters:
        repository - (required)
        branch - (required)
        id - Unique identifier of the import process (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
        Http Response Details:
        Status Code Description Response Headers
        200 import status -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • ingestRangeCall

        public okhttp3.Call ingestRangeCall​(String repository,
                                            StageRangeCreation stageRangeCreation,
                                            ApiCallback _callback)
                                     throws ApiException
        Build call for ingestRange
        Parameters:
        repository - (required)
        stageRangeCreation - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        201 range metadata -
        400 Validation Error -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • ingestRange

        public IngestRangeCreationResponse ingestRange​(String repository,
                                                       StageRangeCreation stageRangeCreation)
                                                throws ApiException
        create a lakeFS range file from the source uri
        Parameters:
        repository - (required)
        stageRangeCreation - (required)
        Returns:
        IngestRangeCreationResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        201 range metadata -
        400 Validation Error -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • ingestRangeWithHttpInfo

        public ApiResponse<IngestRangeCreationResponse> ingestRangeWithHttpInfo​(String repository,
                                                                                StageRangeCreation stageRangeCreation)
                                                                         throws ApiException
        create a lakeFS range file from the source uri
        Parameters:
        repository - (required)
        stageRangeCreation - (required)
        Returns:
        ApiResponse<IngestRangeCreationResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        201 range metadata -
        400 Validation Error -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • ingestRangeAsync

        public okhttp3.Call ingestRangeAsync​(String repository,
                                             StageRangeCreation stageRangeCreation,
                                             ApiCallback<IngestRangeCreationResponse> _callback)
                                      throws ApiException
        create a lakeFS range file from the source uri (asynchronously)
        Parameters:
        repository - (required)
        stageRangeCreation - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
        Http Response Details:
        Status Code Description Response Headers
        201 range metadata -
        400 Validation Error -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -