Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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