All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lakefs.clients.api.InternalApi Maven / Gradle / Ivy

There is a newer version: 1.34.0
Show newest version
/*
 * lakeFS API
 * lakeFS HTTP API
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package io.lakefs.clients.api;

import io.lakefs.clients.api.ApiCallback;
import io.lakefs.clients.api.ApiClient;
import io.lakefs.clients.api.ApiException;
import io.lakefs.clients.api.ApiResponse;
import io.lakefs.clients.api.Configuration;
import io.lakefs.clients.api.Pair;
import io.lakefs.clients.api.ProgressRequestBody;
import io.lakefs.clients.api.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import io.lakefs.clients.api.model.AuthCapabilities;
import io.lakefs.clients.api.model.BranchProtectionRule;
import io.lakefs.clients.api.model.CommPrefsInput;
import io.lakefs.clients.api.model.CommitRecordCreation;
import io.lakefs.clients.api.model.CredentialsWithSecret;
import io.lakefs.clients.api.model.Error;
import java.io.File;
import io.lakefs.clients.api.model.GarbageCollectionConfig;
import io.lakefs.clients.api.model.GarbageCollectionPrepareResponse;
import io.lakefs.clients.api.model.GarbageCollectionRules;
import io.lakefs.clients.api.model.InlineObject1;
import io.lakefs.clients.api.model.InstallationUsageReport;
import io.lakefs.clients.api.model.ObjectStageCreation;
import io.lakefs.clients.api.model.ObjectStats;
import io.lakefs.clients.api.model.PrepareGCUncommittedRequest;
import io.lakefs.clients.api.model.PrepareGCUncommittedResponse;
import io.lakefs.clients.api.model.RefsDump;
import io.lakefs.clients.api.model.RefsRestore;
import io.lakefs.clients.api.model.RepositoryMetadataKeys;
import io.lakefs.clients.api.model.RepositoryMetadataSet;
import io.lakefs.clients.api.model.Setup;
import io.lakefs.clients.api.model.SetupState;
import io.lakefs.clients.api.model.StatsEventsList;
import io.lakefs.clients.api.model.StorageConfig;
import io.lakefs.clients.api.model.StorageURI;
import io.lakefs.clients.api.model.VersionConfig;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class InternalApi {
    private ApiClient localVarApiClient;

    public InternalApi() {
        this(Configuration.getDefaultApiClient());
    }

    public InternalApi(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    /**
     * Build call for createBranchProtectionRulePreflight
     * @param repository  (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     
Status Code Description Response Headers
204 User has permissions to create a branch protection rule in this repository -
401 Unauthorized -
404 Resource Not Found -
409 Resource Conflicts With Target -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call createBranchProtectionRulePreflightCall(String repository, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/repositories/{repository}/branch_protection/set_allowed" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createBranchProtectionRulePreflightValidateBeforeCall(String repository, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling createBranchProtectionRulePreflight(Async)"); } okhttp3.Call localVarCall = createBranchProtectionRulePreflightCall(repository, _callback); return localVarCall; } /** * * * @param 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 User has permissions to create a branch protection rule in this repository -
401 Unauthorized -
404 Resource Not Found -
409 Resource Conflicts With Target -
420 too many requests -
0 Internal Server Error -
*/ public void createBranchProtectionRulePreflight(String repository) throws ApiException { createBranchProtectionRulePreflightWithHttpInfo(repository); } /** * * * @param repository (required) * @return 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 User has permissions to create a branch protection rule in this repository -
401 Unauthorized -
404 Resource Not Found -
409 Resource Conflicts With Target -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse createBranchProtectionRulePreflightWithHttpInfo(String repository) throws ApiException { okhttp3.Call localVarCall = createBranchProtectionRulePreflightValidateBeforeCall(repository, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * * @param repository (required) * @param _callback The callback to be executed when the API call finishes * @return 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 User has permissions to create a branch protection rule in this repository -
401 Unauthorized -
404 Resource Not Found -
409 Resource Conflicts With Target -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call createBranchProtectionRulePreflightAsync(String repository, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createBranchProtectionRulePreflightValidateBeforeCall(repository, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for createCommitRecord * @param repository (required) * @param commitRecordCreation (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 commit record created -
400 Validation Error -
401 Unauthorized -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call createCommitRecordCall(String repository, CommitRecordCreation commitRecordCreation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = commitRecordCreation; // create path and map variables String localVarPath = "/repositories/{repository}/commits" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createCommitRecordValidateBeforeCall(String repository, CommitRecordCreation commitRecordCreation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling createCommitRecord(Async)"); } // verify the required parameter 'commitRecordCreation' is set if (commitRecordCreation == null) { throw new ApiException("Missing the required parameter 'commitRecordCreation' when calling createCommitRecord(Async)"); } okhttp3.Call localVarCall = createCommitRecordCall(repository, commitRecordCreation, _callback); return localVarCall; } /** * create commit record * * @param repository (required) * @param commitRecordCreation (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 commit record created -
400 Validation Error -
401 Unauthorized -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public void createCommitRecord(String repository, CommitRecordCreation commitRecordCreation) throws ApiException { createCommitRecordWithHttpInfo(repository, commitRecordCreation); } /** * create commit record * * @param repository (required) * @param commitRecordCreation (required) * @return 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 commit record created -
400 Validation Error -
401 Unauthorized -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse createCommitRecordWithHttpInfo(String repository, CommitRecordCreation commitRecordCreation) throws ApiException { okhttp3.Call localVarCall = createCommitRecordValidateBeforeCall(repository, commitRecordCreation, null); return localVarApiClient.execute(localVarCall); } /** * create commit record (asynchronously) * * @param repository (required) * @param commitRecordCreation (required) * @param _callback The callback to be executed when the API call finishes * @return 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 commit record created -
400 Validation Error -
401 Unauthorized -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call createCommitRecordAsync(String repository, CommitRecordCreation commitRecordCreation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCommitRecordValidateBeforeCall(repository, commitRecordCreation, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for createSymlinkFile * @param repository (required) * @param branch (required) * @param location path to the table data (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 location created -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call createSymlinkFileCall(String repository, String branch, String location, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/repositories/{repository}/refs/{branch}/symlink" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())) .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (location != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("location", location)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createSymlinkFileValidateBeforeCall(String repository, String branch, String location, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling createSymlinkFile(Async)"); } // verify the required parameter 'branch' is set if (branch == null) { throw new ApiException("Missing the required parameter 'branch' when calling createSymlinkFile(Async)"); } okhttp3.Call localVarCall = createSymlinkFileCall(repository, branch, location, _callback); return localVarCall; } /** * creates symlink files corresponding to the given directory * * @param repository (required) * @param branch (required) * @param location path to the table data (optional) * @return StorageURI * @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 location created -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public StorageURI createSymlinkFile(String repository, String branch, String location) throws ApiException { ApiResponse localVarResp = createSymlinkFileWithHttpInfo(repository, branch, location); return localVarResp.getData(); } /** * creates symlink files corresponding to the given directory * * @param repository (required) * @param branch (required) * @param location path to the table data (optional) * @return ApiResponse<StorageURI> * @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 location created -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse createSymlinkFileWithHttpInfo(String repository, String branch, String location) throws ApiException { okhttp3.Call localVarCall = createSymlinkFileValidateBeforeCall(repository, branch, location, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * creates symlink files corresponding to the given directory (asynchronously) * * @param repository (required) * @param branch (required) * @param location path to the table data (optional) * @param _callback The callback to be executed when the API call finishes * @return 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 location created -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call createSymlinkFileAsync(String repository, String branch, String location, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createSymlinkFileValidateBeforeCall(repository, branch, location, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteRepositoryMetadata * @param repository (required) * @param repositoryMetadataKeys (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 repository metadata keys deleted successfully -
401 Unauthorized -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call deleteRepositoryMetadataCall(String repository, RepositoryMetadataKeys repositoryMetadataKeys, final ApiCallback _callback) throws ApiException { Object localVarPostBody = repositoryMetadataKeys; // create path and map variables String localVarPath = "/repositories/{repository}/metadata" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteRepositoryMetadataValidateBeforeCall(String repository, RepositoryMetadataKeys repositoryMetadataKeys, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling deleteRepositoryMetadata(Async)"); } // verify the required parameter 'repositoryMetadataKeys' is set if (repositoryMetadataKeys == null) { throw new ApiException("Missing the required parameter 'repositoryMetadataKeys' when calling deleteRepositoryMetadata(Async)"); } okhttp3.Call localVarCall = deleteRepositoryMetadataCall(repository, repositoryMetadataKeys, _callback); return localVarCall; } /** * delete repository metadata * Delete specified keys from the repository's metadata. * @param repository (required) * @param repositoryMetadataKeys (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 repository metadata keys deleted successfully -
401 Unauthorized -
420 too many requests -
0 Internal Server Error -
*/ public void deleteRepositoryMetadata(String repository, RepositoryMetadataKeys repositoryMetadataKeys) throws ApiException { deleteRepositoryMetadataWithHttpInfo(repository, repositoryMetadataKeys); } /** * delete repository metadata * Delete specified keys from the repository's metadata. * @param repository (required) * @param repositoryMetadataKeys (required) * @return 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 repository metadata keys deleted successfully -
401 Unauthorized -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse deleteRepositoryMetadataWithHttpInfo(String repository, RepositoryMetadataKeys repositoryMetadataKeys) throws ApiException { okhttp3.Call localVarCall = deleteRepositoryMetadataValidateBeforeCall(repository, repositoryMetadataKeys, null); return localVarApiClient.execute(localVarCall); } /** * delete repository metadata (asynchronously) * Delete specified keys from the repository's metadata. * @param repository (required) * @param repositoryMetadataKeys (required) * @param _callback The callback to be executed when the API call finishes * @return 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 repository metadata keys deleted successfully -
401 Unauthorized -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call deleteRepositoryMetadataAsync(String repository, RepositoryMetadataKeys repositoryMetadataKeys, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteRepositoryMetadataValidateBeforeCall(repository, repositoryMetadataKeys, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for dumpRefs * @param repository (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 refs dump -
400 Validation Error -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call dumpRefsCall(String repository, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/repositories/{repository}/refs/dump" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call dumpRefsValidateBeforeCall(String repository, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling dumpRefs(Async)"); } okhttp3.Call localVarCall = dumpRefsCall(repository, _callback); return localVarCall; } /** * Dump repository refs (tags, commits, branches) to object store Deprecated: a new API will introduce long running operations * * @param repository (required) * @return RefsDump * @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 refs dump -
400 Validation Error -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public RefsDump dumpRefs(String repository) throws ApiException { ApiResponse localVarResp = dumpRefsWithHttpInfo(repository); return localVarResp.getData(); } /** * Dump repository refs (tags, commits, branches) to object store Deprecated: a new API will introduce long running operations * * @param repository (required) * @return ApiResponse<RefsDump> * @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 refs dump -
400 Validation Error -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse dumpRefsWithHttpInfo(String repository) throws ApiException { okhttp3.Call localVarCall = dumpRefsValidateBeforeCall(repository, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Dump repository refs (tags, commits, branches) to object store Deprecated: a new API will introduce long running operations (asynchronously) * * @param repository (required) * @param _callback The callback to be executed when the API call finishes * @return 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 refs dump -
400 Validation Error -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call dumpRefsAsync(String repository, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = dumpRefsValidateBeforeCall(repository, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getAuthCapabilities * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 auth capabilities -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call getAuthCapabilitiesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/auth/capabilities"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAuthCapabilitiesValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAuthCapabilitiesCall(_callback); return localVarCall; } /** * list authentication capabilities supported * * @return AuthCapabilities * @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 auth capabilities -
420 too many requests -
0 Internal Server Error -
*/ public AuthCapabilities getAuthCapabilities() throws ApiException { ApiResponse localVarResp = getAuthCapabilitiesWithHttpInfo(); return localVarResp.getData(); } /** * list authentication capabilities supported * * @return ApiResponse<AuthCapabilities> * @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 auth capabilities -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse getAuthCapabilitiesWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getAuthCapabilitiesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * list authentication capabilities supported (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return 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 auth capabilities -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call getAuthCapabilitiesAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAuthCapabilitiesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getGarbageCollectionConfig * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 lakeFS garbage collection config -
401 Unauthorized -
*/ public okhttp3.Call getGarbageCollectionConfigCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/config/garbage-collection"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getGarbageCollectionConfigValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getGarbageCollectionConfigCall(_callback); return localVarCall; } /** * * get information of gc settings * @return GarbageCollectionConfig * @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 lakeFS garbage collection config -
401 Unauthorized -
*/ public GarbageCollectionConfig getGarbageCollectionConfig() throws ApiException { ApiResponse localVarResp = getGarbageCollectionConfigWithHttpInfo(); return localVarResp.getData(); } /** * * get information of gc settings * @return ApiResponse<GarbageCollectionConfig> * @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 lakeFS garbage collection config -
401 Unauthorized -
*/ public ApiResponse getGarbageCollectionConfigWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getGarbageCollectionConfigValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of gc settings * @param _callback The callback to be executed when the API call finishes * @return 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 lakeFS garbage collection config -
401 Unauthorized -
*/ public okhttp3.Call getGarbageCollectionConfigAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getGarbageCollectionConfigValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getLakeFSVersion * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 lakeFS version -
401 Unauthorized -
* @deprecated */ @Deprecated public okhttp3.Call getLakeFSVersionCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/config/version"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getLakeFSVersionValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLakeFSVersionCall(_callback); return localVarCall; } /** * * get version of lakeFS server * @return VersionConfig * @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 lakeFS version -
401 Unauthorized -
* @deprecated */ @Deprecated public VersionConfig getLakeFSVersion() throws ApiException { ApiResponse localVarResp = getLakeFSVersionWithHttpInfo(); return localVarResp.getData(); } /** * * get version of lakeFS server * @return ApiResponse<VersionConfig> * @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 lakeFS version -
401 Unauthorized -
* @deprecated */ @Deprecated public ApiResponse getLakeFSVersionWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getLakeFSVersionValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get version of lakeFS server * @param _callback The callback to be executed when the API call finishes * @return 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 lakeFS version -
401 Unauthorized -
* @deprecated */ @Deprecated public okhttp3.Call getLakeFSVersionAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLakeFSVersionValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getMetadataObject * @param repository (required) * @param objectId (required) * @param type (required) * @param presign (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 object content * Content-Length -
302 Redirect to a pre-signed URL for the object * Location - redirect to S3
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call getMetadataObjectCall(String repository, String objectId, String type, Boolean presign, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/repositories/{repository}/metadata/object/{type}/{object_id}" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())) .replaceAll("\\{" + "object_id" + "\\}", localVarApiClient.escapeString(objectId.toString())) .replaceAll("\\{" + "type" + "\\}", localVarApiClient.escapeString(type.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (presign != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("presign", presign)); } final String[] localVarAccepts = { "application/octet-stream", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getMetadataObjectValidateBeforeCall(String repository, String objectId, String type, Boolean presign, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling getMetadataObject(Async)"); } // verify the required parameter 'objectId' is set if (objectId == null) { throw new ApiException("Missing the required parameter 'objectId' when calling getMetadataObject(Async)"); } // verify the required parameter 'type' is set if (type == null) { throw new ApiException("Missing the required parameter 'type' when calling getMetadataObject(Async)"); } okhttp3.Call localVarCall = getMetadataObjectCall(repository, objectId, type, presign, _callback); return localVarCall; } /** * return a lakeFS metadata object by ID * * @param repository (required) * @param objectId (required) * @param type (required) * @param presign (optional) * @return File * @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 object content * Content-Length -
302 Redirect to a pre-signed URL for the object * Location - redirect to S3
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public File getMetadataObject(String repository, String objectId, String type, Boolean presign) throws ApiException { ApiResponse localVarResp = getMetadataObjectWithHttpInfo(repository, objectId, type, presign); return localVarResp.getData(); } /** * return a lakeFS metadata object by ID * * @param repository (required) * @param objectId (required) * @param type (required) * @param presign (optional) * @return ApiResponse<File> * @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 object content * Content-Length -
302 Redirect to a pre-signed URL for the object * Location - redirect to S3
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse getMetadataObjectWithHttpInfo(String repository, String objectId, String type, Boolean presign) throws ApiException { okhttp3.Call localVarCall = getMetadataObjectValidateBeforeCall(repository, objectId, type, presign, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * return a lakeFS metadata object by ID (asynchronously) * * @param repository (required) * @param objectId (required) * @param type (required) * @param presign (optional) * @param _callback The callback to be executed when the API call finishes * @return 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 object content * Content-Length -
302 Redirect to a pre-signed URL for the object * Location - redirect to S3
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call getMetadataObjectAsync(String repository, String objectId, String type, Boolean presign, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getMetadataObjectValidateBeforeCall(repository, objectId, type, presign, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getSetupState * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 lakeFS setup state -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call getSetupStateCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/setup_lakefs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getSetupStateValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSetupStateCall(_callback); return localVarCall; } /** * check if the lakeFS installation is already set up * * @return SetupState * @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 lakeFS setup state -
420 too many requests -
0 Internal Server Error -
*/ public SetupState getSetupState() throws ApiException { ApiResponse localVarResp = getSetupStateWithHttpInfo(); return localVarResp.getData(); } /** * check if the lakeFS installation is already set up * * @return ApiResponse<SetupState> * @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 lakeFS setup state -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse getSetupStateWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getSetupStateValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * check if the lakeFS installation is already set up (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return 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 lakeFS setup state -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call getSetupStateAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSetupStateValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getStorageConfig * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 lakeFS storage configuration -
401 Unauthorized -
* @deprecated */ @Deprecated public okhttp3.Call getStorageConfigCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/config/storage"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call getStorageConfigValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getStorageConfigCall(_callback); return localVarCall; } /** * * retrieve lakeFS storage configuration * @return StorageConfig * @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 lakeFS storage configuration -
401 Unauthorized -
* @deprecated */ @Deprecated public StorageConfig getStorageConfig() throws ApiException { ApiResponse localVarResp = getStorageConfigWithHttpInfo(); return localVarResp.getData(); } /** * * retrieve lakeFS storage configuration * @return ApiResponse<StorageConfig> * @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 lakeFS storage configuration -
401 Unauthorized -
* @deprecated */ @Deprecated public ApiResponse getStorageConfigWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getStorageConfigValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * retrieve lakeFS storage configuration * @param _callback The callback to be executed when the API call finishes * @return 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 lakeFS storage configuration -
401 Unauthorized -
* @deprecated */ @Deprecated public okhttp3.Call getStorageConfigAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getStorageConfigValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getUsageReportSummary * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Usage report -
400 Bad Request -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call getUsageReportSummaryCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/usage-report/summary"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/text" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getUsageReportSummaryValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUsageReportSummaryCall(_callback); return localVarCall; } /** * get usage report summary * * @return InstallationUsageReport * @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 Usage report -
400 Bad Request -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public InstallationUsageReport getUsageReportSummary() throws ApiException { ApiResponse localVarResp = getUsageReportSummaryWithHttpInfo(); return localVarResp.getData(); } /** * get usage report summary * * @return ApiResponse<InstallationUsageReport> * @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 Usage report -
400 Bad Request -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse getUsageReportSummaryWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getUsageReportSummaryValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * get usage report summary (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return 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 Usage report -
400 Bad Request -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call getUsageReportSummaryAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUsageReportSummaryValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for internalCreateBranchProtectionRule * @param repository (required) * @param branchProtectionRule (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 branch protection rule created successfully -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call internalCreateBranchProtectionRuleCall(String repository, BranchProtectionRule branchProtectionRule, final ApiCallback _callback) throws ApiException { Object localVarPostBody = branchProtectionRule; // create path and map variables String localVarPath = "/repositories/{repository}/branch_protection" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call internalCreateBranchProtectionRuleValidateBeforeCall(String repository, BranchProtectionRule branchProtectionRule, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling internalCreateBranchProtectionRule(Async)"); } // verify the required parameter 'branchProtectionRule' is set if (branchProtectionRule == null) { throw new ApiException("Missing the required parameter 'branchProtectionRule' when calling internalCreateBranchProtectionRule(Async)"); } okhttp3.Call localVarCall = internalCreateBranchProtectionRuleCall(repository, branchProtectionRule, _callback); return localVarCall; } /** * * * @param repository (required) * @param branchProtectionRule (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 branch protection rule created successfully -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public void internalCreateBranchProtectionRule(String repository, BranchProtectionRule branchProtectionRule) throws ApiException { internalCreateBranchProtectionRuleWithHttpInfo(repository, branchProtectionRule); } /** * * * @param repository (required) * @param branchProtectionRule (required) * @return 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 branch protection rule created successfully -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public ApiResponse internalCreateBranchProtectionRuleWithHttpInfo(String repository, BranchProtectionRule branchProtectionRule) throws ApiException { okhttp3.Call localVarCall = internalCreateBranchProtectionRuleValidateBeforeCall(repository, branchProtectionRule, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * * @param repository (required) * @param branchProtectionRule (required) * @param _callback The callback to be executed when the API call finishes * @return 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 branch protection rule created successfully -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call internalCreateBranchProtectionRuleAsync(String repository, BranchProtectionRule branchProtectionRule, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = internalCreateBranchProtectionRuleValidateBeforeCall(repository, branchProtectionRule, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for internalDeleteBranchProtectionRule * @param repository (required) * @param inlineObject1 (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 branch protection rule deleted successfully -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call internalDeleteBranchProtectionRuleCall(String repository, InlineObject1 inlineObject1, final ApiCallback _callback) throws ApiException { Object localVarPostBody = inlineObject1; // create path and map variables String localVarPath = "/repositories/{repository}/branch_protection" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call internalDeleteBranchProtectionRuleValidateBeforeCall(String repository, InlineObject1 inlineObject1, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling internalDeleteBranchProtectionRule(Async)"); } // verify the required parameter 'inlineObject1' is set if (inlineObject1 == null) { throw new ApiException("Missing the required parameter 'inlineObject1' when calling internalDeleteBranchProtectionRule(Async)"); } okhttp3.Call localVarCall = internalDeleteBranchProtectionRuleCall(repository, inlineObject1, _callback); return localVarCall; } /** * * * @param repository (required) * @param inlineObject1 (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 branch protection rule deleted successfully -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public void internalDeleteBranchProtectionRule(String repository, InlineObject1 inlineObject1) throws ApiException { internalDeleteBranchProtectionRuleWithHttpInfo(repository, inlineObject1); } /** * * * @param repository (required) * @param inlineObject1 (required) * @return 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 branch protection rule deleted successfully -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public ApiResponse internalDeleteBranchProtectionRuleWithHttpInfo(String repository, InlineObject1 inlineObject1) throws ApiException { okhttp3.Call localVarCall = internalDeleteBranchProtectionRuleValidateBeforeCall(repository, inlineObject1, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * * @param repository (required) * @param inlineObject1 (required) * @param _callback The callback to be executed when the API call finishes * @return 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 branch protection rule deleted successfully -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call internalDeleteBranchProtectionRuleAsync(String repository, InlineObject1 inlineObject1, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = internalDeleteBranchProtectionRuleValidateBeforeCall(repository, inlineObject1, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for internalDeleteGarbageCollectionRules * @param repository (required) * @param _callback Callback for upload/download progress * @return 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 -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call internalDeleteGarbageCollectionRulesCall(String repository, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/repositories/{repository}/gc/rules" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call internalDeleteGarbageCollectionRulesValidateBeforeCall(String repository, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling internalDeleteGarbageCollectionRules(Async)"); } okhttp3.Call localVarCall = internalDeleteGarbageCollectionRulesCall(repository, _callback); return localVarCall; } /** * * * @param 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 -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public void internalDeleteGarbageCollectionRules(String repository) throws ApiException { internalDeleteGarbageCollectionRulesWithHttpInfo(repository); } /** * * * @param repository (required) * @return 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 -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public ApiResponse internalDeleteGarbageCollectionRulesWithHttpInfo(String repository) throws ApiException { okhttp3.Call localVarCall = internalDeleteGarbageCollectionRulesValidateBeforeCall(repository, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * * @param repository (required) * @param _callback The callback to be executed when the API call finishes * @return 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 -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call internalDeleteGarbageCollectionRulesAsync(String repository, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = internalDeleteGarbageCollectionRulesValidateBeforeCall(repository, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for internalGetBranchProtectionRules * @param repository (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 branch protection rules -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call internalGetBranchProtectionRulesCall(String repository, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/repositories/{repository}/branch_protection" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call internalGetBranchProtectionRulesValidateBeforeCall(String repository, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling internalGetBranchProtectionRules(Async)"); } okhttp3.Call localVarCall = internalGetBranchProtectionRulesCall(repository, _callback); return localVarCall; } /** * get branch protection rules * * @param repository (required) * @return List<BranchProtectionRule> * @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 branch protection rules -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public List internalGetBranchProtectionRules(String repository) throws ApiException { ApiResponse> localVarResp = internalGetBranchProtectionRulesWithHttpInfo(repository); return localVarResp.getData(); } /** * get branch protection rules * * @param repository (required) * @return ApiResponse<List<BranchProtectionRule>> * @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 branch protection rules -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public ApiResponse> internalGetBranchProtectionRulesWithHttpInfo(String repository) throws ApiException { okhttp3.Call localVarCall = internalGetBranchProtectionRulesValidateBeforeCall(repository, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * get branch protection rules (asynchronously) * * @param repository (required) * @param _callback The callback to be executed when the API call finishes * @return 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 branch protection rules -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call internalGetBranchProtectionRulesAsync(String repository, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = internalGetBranchProtectionRulesValidateBeforeCall(repository, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for internalGetGarbageCollectionRules * @param repository (required) * @param _callback Callback for upload/download progress * @return 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 -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call internalGetGarbageCollectionRulesCall(String repository, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/repositories/{repository}/gc/rules" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call internalGetGarbageCollectionRulesValidateBeforeCall(String repository, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling internalGetGarbageCollectionRules(Async)"); } okhttp3.Call localVarCall = internalGetGarbageCollectionRulesCall(repository, _callback); return localVarCall; } /** * * * @param repository (required) * @return 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 -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public GarbageCollectionRules internalGetGarbageCollectionRules(String repository) throws ApiException { ApiResponse localVarResp = internalGetGarbageCollectionRulesWithHttpInfo(repository); return localVarResp.getData(); } /** * * * @param repository (required) * @return 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 -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public ApiResponse internalGetGarbageCollectionRulesWithHttpInfo(String repository) throws ApiException { okhttp3.Call localVarCall = internalGetGarbageCollectionRulesValidateBeforeCall(repository, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * * @param repository (required) * @param _callback The callback to be executed when the API call finishes * @return 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 -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call internalGetGarbageCollectionRulesAsync(String repository, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = internalGetGarbageCollectionRulesValidateBeforeCall(repository, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for internalSetGarbageCollectionRules * @param repository (required) * @param garbageCollectionRules (required) * @param _callback Callback for upload/download progress * @return 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 -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call internalSetGarbageCollectionRulesCall(String repository, GarbageCollectionRules garbageCollectionRules, final ApiCallback _callback) throws ApiException { Object localVarPostBody = garbageCollectionRules; // create path and map variables String localVarPath = "/repositories/{repository}/gc/rules" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call internalSetGarbageCollectionRulesValidateBeforeCall(String repository, GarbageCollectionRules garbageCollectionRules, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling internalSetGarbageCollectionRules(Async)"); } // verify the required parameter 'garbageCollectionRules' is set if (garbageCollectionRules == null) { throw new ApiException("Missing the required parameter 'garbageCollectionRules' when calling internalSetGarbageCollectionRules(Async)"); } okhttp3.Call localVarCall = internalSetGarbageCollectionRulesCall(repository, garbageCollectionRules, _callback); return localVarCall; } /** * * * @param repository (required) * @param 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 -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public void internalSetGarbageCollectionRules(String repository, GarbageCollectionRules garbageCollectionRules) throws ApiException { internalSetGarbageCollectionRulesWithHttpInfo(repository, garbageCollectionRules); } /** * * * @param repository (required) * @param garbageCollectionRules (required) * @return 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 -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public ApiResponse internalSetGarbageCollectionRulesWithHttpInfo(String repository, GarbageCollectionRules garbageCollectionRules) throws ApiException { okhttp3.Call localVarCall = internalSetGarbageCollectionRulesValidateBeforeCall(repository, garbageCollectionRules, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * * @param repository (required) * @param garbageCollectionRules (required) * @param _callback The callback to be executed when the API call finishes * @return 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 -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call internalSetGarbageCollectionRulesAsync(String repository, GarbageCollectionRules garbageCollectionRules, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = internalSetGarbageCollectionRulesValidateBeforeCall(repository, garbageCollectionRules, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for postStatsEvents * @param statsEventsList (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 reported successfully -
400 Bad Request -
401 Unauthorized -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call postStatsEventsCall(StatsEventsList statsEventsList, final ApiCallback _callback) throws ApiException { Object localVarPostBody = statsEventsList; // create path and map variables String localVarPath = "/statistics"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call postStatsEventsValidateBeforeCall(StatsEventsList statsEventsList, final ApiCallback _callback) throws ApiException { // verify the required parameter 'statsEventsList' is set if (statsEventsList == null) { throw new ApiException("Missing the required parameter 'statsEventsList' when calling postStatsEvents(Async)"); } okhttp3.Call localVarCall = postStatsEventsCall(statsEventsList, _callback); return localVarCall; } /** * post stats events, this endpoint is meant for internal use only * * @param statsEventsList (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 reported successfully -
400 Bad Request -
401 Unauthorized -
420 too many requests -
0 Internal Server Error -
*/ public void postStatsEvents(StatsEventsList statsEventsList) throws ApiException { postStatsEventsWithHttpInfo(statsEventsList); } /** * post stats events, this endpoint is meant for internal use only * * @param statsEventsList (required) * @return 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 reported successfully -
400 Bad Request -
401 Unauthorized -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse postStatsEventsWithHttpInfo(StatsEventsList statsEventsList) throws ApiException { okhttp3.Call localVarCall = postStatsEventsValidateBeforeCall(statsEventsList, null); return localVarApiClient.execute(localVarCall); } /** * post stats events, this endpoint is meant for internal use only (asynchronously) * * @param statsEventsList (required) * @param _callback The callback to be executed when the API call finishes * @return 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 reported successfully -
400 Bad Request -
401 Unauthorized -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call postStatsEventsAsync(StatsEventsList statsEventsList, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postStatsEventsValidateBeforeCall(statsEventsList, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for prepareGarbageCollectionCommits * @param repository (required) * @param _callback Callback for upload/download progress * @return 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 -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call prepareGarbageCollectionCommitsCall(String repository, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/repositories/{repository}/gc/prepare_commits" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call prepareGarbageCollectionCommitsValidateBeforeCall(String repository, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling prepareGarbageCollectionCommits(Async)"); } okhttp3.Call localVarCall = prepareGarbageCollectionCommitsCall(repository, _callback); return localVarCall; } /** * save lists of active commits for garbage collection * * @param repository (required) * @return 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 -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public GarbageCollectionPrepareResponse prepareGarbageCollectionCommits(String repository) throws ApiException { ApiResponse localVarResp = prepareGarbageCollectionCommitsWithHttpInfo(repository); return localVarResp.getData(); } /** * save lists of active commits for garbage collection * * @param repository (required) * @return 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 -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse prepareGarbageCollectionCommitsWithHttpInfo(String repository) throws ApiException { okhttp3.Call localVarCall = prepareGarbageCollectionCommitsValidateBeforeCall(repository, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * save lists of active commits for garbage collection (asynchronously) * * @param repository (required) * @param _callback The callback to be executed when the API call finishes * @return 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 -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call prepareGarbageCollectionCommitsAsync(String repository, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = prepareGarbageCollectionCommitsValidateBeforeCall(repository, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for prepareGarbageCollectionUncommitted * @param repository (required) * @param prepareGCUncommittedRequest (optional) * @param _callback Callback for upload/download progress * @return 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 -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call prepareGarbageCollectionUncommittedCall(String repository, PrepareGCUncommittedRequest prepareGCUncommittedRequest, final ApiCallback _callback) throws ApiException { Object localVarPostBody = prepareGCUncommittedRequest; // create path and map variables String localVarPath = "/repositories/{repository}/gc/prepare_uncommited" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call prepareGarbageCollectionUncommittedValidateBeforeCall(String repository, PrepareGCUncommittedRequest prepareGCUncommittedRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling prepareGarbageCollectionUncommitted(Async)"); } okhttp3.Call localVarCall = prepareGarbageCollectionUncommittedCall(repository, prepareGCUncommittedRequest, _callback); return localVarCall; } /** * save repository uncommitted metadata for garbage collection * * @param repository (required) * @param prepareGCUncommittedRequest (optional) * @return 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 -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public PrepareGCUncommittedResponse prepareGarbageCollectionUncommitted(String repository, PrepareGCUncommittedRequest prepareGCUncommittedRequest) throws ApiException { ApiResponse localVarResp = prepareGarbageCollectionUncommittedWithHttpInfo(repository, prepareGCUncommittedRequest); return localVarResp.getData(); } /** * save repository uncommitted metadata for garbage collection * * @param repository (required) * @param prepareGCUncommittedRequest (optional) * @return 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 -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse prepareGarbageCollectionUncommittedWithHttpInfo(String repository, PrepareGCUncommittedRequest prepareGCUncommittedRequest) throws ApiException { okhttp3.Call localVarCall = prepareGarbageCollectionUncommittedValidateBeforeCall(repository, prepareGCUncommittedRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * save repository uncommitted metadata for garbage collection (asynchronously) * * @param repository (required) * @param prepareGCUncommittedRequest (optional) * @param _callback The callback to be executed when the API call finishes * @return 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 -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call prepareGarbageCollectionUncommittedAsync(String repository, PrepareGCUncommittedRequest prepareGCUncommittedRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = prepareGarbageCollectionUncommittedValidateBeforeCall(repository, prepareGCUncommittedRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for restoreRefs * @param repository (required) * @param refsRestore (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 refs successfully loaded -
400 Validation Error -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call restoreRefsCall(String repository, RefsRestore refsRestore, final ApiCallback _callback) throws ApiException { Object localVarPostBody = refsRestore; // create path and map variables String localVarPath = "/repositories/{repository}/refs/restore" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call restoreRefsValidateBeforeCall(String repository, RefsRestore refsRestore, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling restoreRefs(Async)"); } // verify the required parameter 'refsRestore' is set if (refsRestore == null) { throw new ApiException("Missing the required parameter 'refsRestore' when calling restoreRefs(Async)"); } okhttp3.Call localVarCall = restoreRefsCall(repository, refsRestore, _callback); return localVarCall; } /** * Restore repository refs (tags, commits, branches) from object store. Deprecated: a new API will introduce long running operations * * @param repository (required) * @param refsRestore (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
200 refs successfully loaded -
400 Validation Error -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public void restoreRefs(String repository, RefsRestore refsRestore) throws ApiException { restoreRefsWithHttpInfo(repository, refsRestore); } /** * Restore repository refs (tags, commits, branches) from object store. Deprecated: a new API will introduce long running operations * * @param repository (required) * @param refsRestore (required) * @return 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
200 refs successfully loaded -
400 Validation Error -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse restoreRefsWithHttpInfo(String repository, RefsRestore refsRestore) throws ApiException { okhttp3.Call localVarCall = restoreRefsValidateBeforeCall(repository, refsRestore, null); return localVarApiClient.execute(localVarCall); } /** * Restore repository refs (tags, commits, branches) from object store. Deprecated: a new API will introduce long running operations (asynchronously) * * @param repository (required) * @param refsRestore (required) * @param _callback The callback to be executed when the API call finishes * @return 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 refs successfully loaded -
400 Validation Error -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call restoreRefsAsync(String repository, RefsRestore refsRestore, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = restoreRefsValidateBeforeCall(repository, refsRestore, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for setGarbageCollectionRulesPreflight * @param repository (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 User has permissions to set garbage collection rules on this repository -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call setGarbageCollectionRulesPreflightCall(String repository, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/repositories/{repository}/gc/rules/set_allowed" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call setGarbageCollectionRulesPreflightValidateBeforeCall(String repository, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling setGarbageCollectionRulesPreflight(Async)"); } okhttp3.Call localVarCall = setGarbageCollectionRulesPreflightCall(repository, _callback); return localVarCall; } /** * * * @param 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 User has permissions to set garbage collection rules on this repository -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public void setGarbageCollectionRulesPreflight(String repository) throws ApiException { setGarbageCollectionRulesPreflightWithHttpInfo(repository); } /** * * * @param repository (required) * @return 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 User has permissions to set garbage collection rules on this repository -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse setGarbageCollectionRulesPreflightWithHttpInfo(String repository) throws ApiException { okhttp3.Call localVarCall = setGarbageCollectionRulesPreflightValidateBeforeCall(repository, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * * @param repository (required) * @param _callback The callback to be executed when the API call finishes * @return 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 User has permissions to set garbage collection rules on this repository -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call setGarbageCollectionRulesPreflightAsync(String repository, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = setGarbageCollectionRulesPreflightValidateBeforeCall(repository, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for setRepositoryMetadata * @param repository (required) * @param repositoryMetadataSet (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 repository metadata set successfully -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call setRepositoryMetadataCall(String repository, RepositoryMetadataSet repositoryMetadataSet, final ApiCallback _callback) throws ApiException { Object localVarPostBody = repositoryMetadataSet; // create path and map variables String localVarPath = "/repositories/{repository}/metadata" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call setRepositoryMetadataValidateBeforeCall(String repository, RepositoryMetadataSet repositoryMetadataSet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling setRepositoryMetadata(Async)"); } // verify the required parameter 'repositoryMetadataSet' is set if (repositoryMetadataSet == null) { throw new ApiException("Missing the required parameter 'repositoryMetadataSet' when calling setRepositoryMetadata(Async)"); } okhttp3.Call localVarCall = setRepositoryMetadataCall(repository, repositoryMetadataSet, _callback); return localVarCall; } /** * set repository metadata * Set repository metadata. This will only add or update the provided keys, and will not remove any existing keys. * @param repository (required) * @param repositoryMetadataSet (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 repository metadata set successfully -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public void setRepositoryMetadata(String repository, RepositoryMetadataSet repositoryMetadataSet) throws ApiException { setRepositoryMetadataWithHttpInfo(repository, repositoryMetadataSet); } /** * set repository metadata * Set repository metadata. This will only add or update the provided keys, and will not remove any existing keys. * @param repository (required) * @param repositoryMetadataSet (required) * @return 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 repository metadata set successfully -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse setRepositoryMetadataWithHttpInfo(String repository, RepositoryMetadataSet repositoryMetadataSet) throws ApiException { okhttp3.Call localVarCall = setRepositoryMetadataValidateBeforeCall(repository, repositoryMetadataSet, null); return localVarApiClient.execute(localVarCall); } /** * set repository metadata (asynchronously) * Set repository metadata. This will only add or update the provided keys, and will not remove any existing keys. * @param repository (required) * @param repositoryMetadataSet (required) * @param _callback The callback to be executed when the API call finishes * @return 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 repository metadata set successfully -
401 Unauthorized -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call setRepositoryMetadataAsync(String repository, RepositoryMetadataSet repositoryMetadataSet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = setRepositoryMetadataValidateBeforeCall(repository, repositoryMetadataSet, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for setup * @param setup (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 user created successfully -
400 Bad Request -
409 setup was already called -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call setupCall(Setup setup, final ApiCallback _callback) throws ApiException { Object localVarPostBody = setup; // create path and map variables String localVarPath = "/setup_lakefs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call setupValidateBeforeCall(Setup setup, final ApiCallback _callback) throws ApiException { // verify the required parameter 'setup' is set if (setup == null) { throw new ApiException("Missing the required parameter 'setup' when calling setup(Async)"); } okhttp3.Call localVarCall = setupCall(setup, _callback); return localVarCall; } /** * setup lakeFS and create a first user * * @param setup (required) * @return CredentialsWithSecret * @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 user created successfully -
400 Bad Request -
409 setup was already called -
420 too many requests -
0 Internal Server Error -
*/ public CredentialsWithSecret setup(Setup setup) throws ApiException { ApiResponse localVarResp = setupWithHttpInfo(setup); return localVarResp.getData(); } /** * setup lakeFS and create a first user * * @param setup (required) * @return ApiResponse<CredentialsWithSecret> * @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 user created successfully -
400 Bad Request -
409 setup was already called -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse setupWithHttpInfo(Setup setup) throws ApiException { okhttp3.Call localVarCall = setupValidateBeforeCall(setup, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * setup lakeFS and create a first user (asynchronously) * * @param setup (required) * @param _callback The callback to be executed when the API call finishes * @return 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 user created successfully -
400 Bad Request -
409 setup was already called -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call setupAsync(Setup setup, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = setupValidateBeforeCall(setup, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for setupCommPrefs * @param commPrefsInput (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 communication preferences saved successfully -
409 setup was already completed -
412 wrong setup state for this operation -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call setupCommPrefsCall(CommPrefsInput commPrefsInput, final ApiCallback _callback) throws ApiException { Object localVarPostBody = commPrefsInput; // create path and map variables String localVarPath = "/setup_comm_prefs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call setupCommPrefsValidateBeforeCall(CommPrefsInput commPrefsInput, final ApiCallback _callback) throws ApiException { // verify the required parameter 'commPrefsInput' is set if (commPrefsInput == null) { throw new ApiException("Missing the required parameter 'commPrefsInput' when calling setupCommPrefs(Async)"); } okhttp3.Call localVarCall = setupCommPrefsCall(commPrefsInput, _callback); return localVarCall; } /** * setup communications preferences * * @param commPrefsInput (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
200 communication preferences saved successfully -
409 setup was already completed -
412 wrong setup state for this operation -
420 too many requests -
0 Internal Server Error -
*/ public void setupCommPrefs(CommPrefsInput commPrefsInput) throws ApiException { setupCommPrefsWithHttpInfo(commPrefsInput); } /** * setup communications preferences * * @param commPrefsInput (required) * @return 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
200 communication preferences saved successfully -
409 setup was already completed -
412 wrong setup state for this operation -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse setupCommPrefsWithHttpInfo(CommPrefsInput commPrefsInput) throws ApiException { okhttp3.Call localVarCall = setupCommPrefsValidateBeforeCall(commPrefsInput, null); return localVarApiClient.execute(localVarCall); } /** * setup communications preferences (asynchronously) * * @param commPrefsInput (required) * @param _callback The callback to be executed when the API call finishes * @return 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 communication preferences saved successfully -
409 setup was already completed -
412 wrong setup state for this operation -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call setupCommPrefsAsync(CommPrefsInput commPrefsInput, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = setupCommPrefsValidateBeforeCall(commPrefsInput, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for stageObject * @param repository (required) * @param branch (required) * @param path relative to the branch (required) * @param objectStageCreation (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 object metadata -
400 Validation Error -
401 Unauthorized -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call stageObjectCall(String repository, String branch, String path, ObjectStageCreation objectStageCreation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = objectStageCreation; // create path and map variables String localVarPath = "/repositories/{repository}/branches/{branch}/objects" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())) .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @Deprecated @SuppressWarnings("rawtypes") private okhttp3.Call stageObjectValidateBeforeCall(String repository, String branch, String path, ObjectStageCreation objectStageCreation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling stageObject(Async)"); } // verify the required parameter 'branch' is set if (branch == null) { throw new ApiException("Missing the required parameter 'branch' when calling stageObject(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling stageObject(Async)"); } // verify the required parameter 'objectStageCreation' is set if (objectStageCreation == null) { throw new ApiException("Missing the required parameter 'objectStageCreation' when calling stageObject(Async)"); } okhttp3.Call localVarCall = stageObjectCall(repository, branch, path, objectStageCreation, _callback); return localVarCall; } /** * stage an object's metadata for the given branch * * @param repository (required) * @param branch (required) * @param path relative to the branch (required) * @param objectStageCreation (required) * @return ObjectStats * @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 object metadata -
400 Validation Error -
401 Unauthorized -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public ObjectStats stageObject(String repository, String branch, String path, ObjectStageCreation objectStageCreation) throws ApiException { ApiResponse localVarResp = stageObjectWithHttpInfo(repository, branch, path, objectStageCreation); return localVarResp.getData(); } /** * stage an object's metadata for the given branch * * @param repository (required) * @param branch (required) * @param path relative to the branch (required) * @param objectStageCreation (required) * @return ApiResponse<ObjectStats> * @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 object metadata -
400 Validation Error -
401 Unauthorized -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public ApiResponse stageObjectWithHttpInfo(String repository, String branch, String path, ObjectStageCreation objectStageCreation) throws ApiException { okhttp3.Call localVarCall = stageObjectValidateBeforeCall(repository, branch, path, objectStageCreation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * stage an object's metadata for the given branch (asynchronously) * * @param repository (required) * @param branch (required) * @param path relative to the branch (required) * @param objectStageCreation (required) * @param _callback The callback to be executed when the API call finishes * @return 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 object metadata -
400 Validation Error -
401 Unauthorized -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
* @deprecated */ @Deprecated public okhttp3.Call stageObjectAsync(String repository, String branch, String path, ObjectStageCreation objectStageCreation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = stageObjectValidateBeforeCall(repository, branch, path, objectStageCreation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for uploadObjectPreflight * @param repository (required) * @param branch (required) * @param path relative to the branch (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 User has permissions to upload this object. This does not guarantee that the upload will be successful or even possible. It indicates only the permission at the time of calling this endpoint -
401 Unauthorized -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call uploadObjectPreflightCall(String repository, String branch, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/repositories/{repository}/branches/{branch}/objects/stage_allowed" .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString())) .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (path != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call uploadObjectPreflightValidateBeforeCall(String repository, String branch, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'repository' is set if (repository == null) { throw new ApiException("Missing the required parameter 'repository' when calling uploadObjectPreflight(Async)"); } // verify the required parameter 'branch' is set if (branch == null) { throw new ApiException("Missing the required parameter 'branch' when calling uploadObjectPreflight(Async)"); } // verify the required parameter 'path' is set if (path == null) { throw new ApiException("Missing the required parameter 'path' when calling uploadObjectPreflight(Async)"); } okhttp3.Call localVarCall = uploadObjectPreflightCall(repository, branch, path, _callback); return localVarCall; } /** * * * @param repository (required) * @param branch (required) * @param path relative to the branch (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 User has permissions to upload this object. This does not guarantee that the upload will be successful or even possible. It indicates only the permission at the time of calling this endpoint -
401 Unauthorized -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public void uploadObjectPreflight(String repository, String branch, String path) throws ApiException { uploadObjectPreflightWithHttpInfo(repository, branch, path); } /** * * * @param repository (required) * @param branch (required) * @param path relative to the branch (required) * @return 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 User has permissions to upload this object. This does not guarantee that the upload will be successful or even possible. It indicates only the permission at the time of calling this endpoint -
401 Unauthorized -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public ApiResponse uploadObjectPreflightWithHttpInfo(String repository, String branch, String path) throws ApiException { okhttp3.Call localVarCall = uploadObjectPreflightValidateBeforeCall(repository, branch, path, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * * @param repository (required) * @param branch (required) * @param path relative to the branch (required) * @param _callback The callback to be executed when the API call finishes * @return 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 User has permissions to upload this object. This does not guarantee that the upload will be successful or even possible. It indicates only the permission at the time of calling this endpoint -
401 Unauthorized -
403 Forbidden -
404 Resource Not Found -
420 too many requests -
0 Internal Server Error -
*/ public okhttp3.Call uploadObjectPreflightAsync(String repository, String branch, String path, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadObjectPreflightValidateBeforeCall(repository, branch, path, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy