Class RetentionApi


  • public class RetentionApi
    extends Object
    • Constructor Detail

      • RetentionApi

        public RetentionApi()
      • RetentionApi

        public RetentionApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • deleteGarbageCollectionRulesCall

        public okhttp3.Call deleteGarbageCollectionRulesCall​(String repository,
                                                             ApiCallback _callback)
                                                      throws ApiException
        Build call for deleteGarbageCollectionRules
        Parameters:
        repository - (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 deleted garbage collection rules successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • deleteGarbageCollectionRules

        public void deleteGarbageCollectionRules​(String repository)
                                          throws ApiException
        Parameters:
        repository - (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 deleted garbage collection rules successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • deleteGarbageCollectionRulesWithHttpInfo

        public ApiResponse<Void> deleteGarbageCollectionRulesWithHttpInfo​(String repository)
                                                                   throws ApiException
        Parameters:
        repository - (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 deleted garbage collection rules successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • deleteGarbageCollectionRulesAsync

        public okhttp3.Call deleteGarbageCollectionRulesAsync​(String repository,
                                                              ApiCallback<Void> _callback)
                                                       throws ApiException
        (asynchronously)
        Parameters:
        repository - (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 deleted garbage collection rules successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getGarbageCollectionRulesCall

        public okhttp3.Call getGarbageCollectionRulesCall​(String repository,
                                                          ApiCallback _callback)
                                                   throws ApiException
        Build call for getGarbageCollectionRules
        Parameters:
        repository - (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 gc rule list -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getGarbageCollectionRules

        public GarbageCollectionRules getGarbageCollectionRules​(String repository)
                                                         throws ApiException
        Parameters:
        repository - (required)
        Returns:
        GarbageCollectionRules
        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 gc rule list -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getGarbageCollectionRulesWithHttpInfo

        public ApiResponse<GarbageCollectionRules> getGarbageCollectionRulesWithHttpInfo​(String repository)
                                                                                  throws ApiException
        Parameters:
        repository - (required)
        Returns:
        ApiResponse<GarbageCollectionRules>
        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 gc rule list -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getGarbageCollectionRulesAsync

        public okhttp3.Call getGarbageCollectionRulesAsync​(String repository,
                                                           ApiCallback<GarbageCollectionRules> _callback)
                                                    throws ApiException
        (asynchronously)
        Parameters:
        repository - (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 gc rule list -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • prepareGarbageCollectionCommitsCall

        public okhttp3.Call prepareGarbageCollectionCommitsCall​(String repository,
                                                                GarbageCollectionPrepareRequest garbageCollectionPrepareRequest,
                                                                ApiCallback _callback)
                                                         throws ApiException
        Build call for prepareGarbageCollectionCommits
        Parameters:
        repository - (required)
        garbageCollectionPrepareRequest - (optional)
        _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 paths to commit dataset -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • prepareGarbageCollectionCommits

        public GarbageCollectionPrepareResponse prepareGarbageCollectionCommits​(String repository,
                                                                                GarbageCollectionPrepareRequest garbageCollectionPrepareRequest)
                                                                         throws ApiException
        save lists of active and expired commits for garbage collection
        Parameters:
        repository - (required)
        garbageCollectionPrepareRequest - (optional)
        Returns:
        GarbageCollectionPrepareResponse
        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 paths to commit dataset -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • prepareGarbageCollectionCommitsWithHttpInfo

        public ApiResponse<GarbageCollectionPrepareResponse> prepareGarbageCollectionCommitsWithHttpInfo​(String repository,
                                                                                                         GarbageCollectionPrepareRequest garbageCollectionPrepareRequest)
                                                                                                  throws ApiException
        save lists of active and expired commits for garbage collection
        Parameters:
        repository - (required)
        garbageCollectionPrepareRequest - (optional)
        Returns:
        ApiResponse<GarbageCollectionPrepareResponse>
        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 paths to commit dataset -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • prepareGarbageCollectionCommitsAsync

        public okhttp3.Call prepareGarbageCollectionCommitsAsync​(String repository,
                                                                 GarbageCollectionPrepareRequest garbageCollectionPrepareRequest,
                                                                 ApiCallback<GarbageCollectionPrepareResponse> _callback)
                                                          throws ApiException
        save lists of active and expired commits for garbage collection (asynchronously)
        Parameters:
        repository - (required)
        garbageCollectionPrepareRequest - (optional)
        _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 paths to commit dataset -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • prepareGarbageCollectionUncommittedCall

        public okhttp3.Call prepareGarbageCollectionUncommittedCall​(String repository,
                                                                    PrepareGCUncommittedRequest prepareGCUncommittedRequest,
                                                                    ApiCallback _callback)
                                                             throws ApiException
        Build call for prepareGarbageCollectionUncommitted
        Parameters:
        repository - (required)
        prepareGCUncommittedRequest - (optional)
        _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 paths to commit dataset -
        400 Validation Error -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • prepareGarbageCollectionUncommitted

        public PrepareGCUncommittedResponse prepareGarbageCollectionUncommitted​(String repository,
                                                                                PrepareGCUncommittedRequest prepareGCUncommittedRequest)
                                                                         throws ApiException
        save repository uncommitted metadata for garbage collection
        Parameters:
        repository - (required)
        prepareGCUncommittedRequest - (optional)
        Returns:
        PrepareGCUncommittedResponse
        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 paths to commit dataset -
        400 Validation Error -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • prepareGarbageCollectionUncommittedWithHttpInfo

        public ApiResponse<PrepareGCUncommittedResponse> prepareGarbageCollectionUncommittedWithHttpInfo​(String repository,
                                                                                                         PrepareGCUncommittedRequest prepareGCUncommittedRequest)
                                                                                                  throws ApiException
        save repository uncommitted metadata for garbage collection
        Parameters:
        repository - (required)
        prepareGCUncommittedRequest - (optional)
        Returns:
        ApiResponse<PrepareGCUncommittedResponse>
        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 paths to commit dataset -
        400 Validation Error -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • prepareGarbageCollectionUncommittedAsync

        public okhttp3.Call prepareGarbageCollectionUncommittedAsync​(String repository,
                                                                     PrepareGCUncommittedRequest prepareGCUncommittedRequest,
                                                                     ApiCallback<PrepareGCUncommittedResponse> _callback)
                                                              throws ApiException
        save repository uncommitted metadata for garbage collection (asynchronously)
        Parameters:
        repository - (required)
        prepareGCUncommittedRequest - (optional)
        _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 paths to commit dataset -
        400 Validation Error -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • setGarbageCollectionRulesCall

        public okhttp3.Call setGarbageCollectionRulesCall​(String repository,
                                                          GarbageCollectionRules garbageCollectionRules,
                                                          ApiCallback _callback)
                                                   throws ApiException
        Build call for setGarbageCollectionRules
        Parameters:
        repository - (required)
        garbageCollectionRules - (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 set garbage collection rules successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • setGarbageCollectionRules

        public void setGarbageCollectionRules​(String repository,
                                              GarbageCollectionRules garbageCollectionRules)
                                       throws ApiException
        Parameters:
        repository - (required)
        garbageCollectionRules - (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 set garbage collection rules successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • setGarbageCollectionRulesWithHttpInfo

        public ApiResponse<Void> setGarbageCollectionRulesWithHttpInfo​(String repository,
                                                                       GarbageCollectionRules garbageCollectionRules)
                                                                throws ApiException
        Parameters:
        repository - (required)
        garbageCollectionRules - (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 set garbage collection rules successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • setGarbageCollectionRulesAsync

        public okhttp3.Call setGarbageCollectionRulesAsync​(String repository,
                                                           GarbageCollectionRules garbageCollectionRules,
                                                           ApiCallback<Void> _callback)
                                                    throws ApiException
        (asynchronously)
        Parameters:
        repository - (required)
        garbageCollectionRules - (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 set garbage collection rules successfully -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -