Package io.lakefs.clients.api
Class RepositoriesApi
- java.lang.Object
-
- io.lakefs.clients.api.RepositoriesApi
-
public class RepositoriesApi extends Object
-
-
Constructor Summary
Constructors Constructor Description RepositoriesApi()RepositoriesApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositorycreateRepository(RepositoryCreation repositoryCreation, Boolean bare)create repositoryokhttp3.CallcreateRepositoryAsync(RepositoryCreation repositoryCreation, Boolean bare, ApiCallback<Repository> _callback)create repository (asynchronously)okhttp3.CallcreateRepositoryCall(RepositoryCreation repositoryCreation, Boolean bare, ApiCallback _callback)Build call for createRepositoryApiResponse<Repository>createRepositoryWithHttpInfo(RepositoryCreation repositoryCreation, Boolean bare)create repositoryvoiddeleteGCRules(String repository)okhttp3.CalldeleteGCRulesAsync(String repository, ApiCallback<Void> _callback)(asynchronously)okhttp3.CalldeleteGCRulesCall(String repository, ApiCallback _callback)Build call for deleteGCRulesApiResponse<Void>deleteGCRulesWithHttpInfo(String repository)voiddeleteRepository(String repository)delete repositoryokhttp3.CalldeleteRepositoryAsync(String repository, ApiCallback<Void> _callback)delete repository (asynchronously)okhttp3.CalldeleteRepositoryCall(String repository, ApiCallback _callback)Build call for deleteRepositoryApiResponse<Void>deleteRepositoryWithHttpInfo(String repository)delete repositoryRepositoryDumpStatusdumpStatus(String repository, String taskId)Status of a repository dump taskokhttp3.CalldumpStatusAsync(String repository, String taskId, ApiCallback<RepositoryDumpStatus> _callback)Status of a repository dump task (asynchronously)okhttp3.CalldumpStatusCall(String repository, String taskId, ApiCallback _callback)Build call for dumpStatusApiResponse<RepositoryDumpStatus>dumpStatusWithHttpInfo(String repository, String taskId)Status of a repository dump taskTaskInfodumpSubmit(String repository)Backup the repository metadata (tags, commits, branches) and save the backup to the object store.okhttp3.CalldumpSubmitAsync(String repository, ApiCallback<TaskInfo> _callback)Backup the repository metadata (tags, commits, branches) and save the backup to the object store.okhttp3.CalldumpSubmitCall(String repository, ApiCallback _callback)Build call for dumpSubmitApiResponse<TaskInfo>dumpSubmitWithHttpInfo(String repository)Backup the repository metadata (tags, commits, branches) and save the backup to the object store.ApiClientgetApiClient()List<BranchProtectionRule>getBranchProtectionRules(String repository)get branch protection rulesokhttp3.CallgetBranchProtectionRulesAsync(String repository, ApiCallback<List<BranchProtectionRule>> _callback)get branch protection rules (asynchronously)okhttp3.CallgetBranchProtectionRulesCall(String repository, ApiCallback _callback)Build call for getBranchProtectionRulesApiResponse<List<BranchProtectionRule>>getBranchProtectionRulesWithHttpInfo(String repository)get branch protection rulesGarbageCollectionRulesgetGCRules(String repository)get repository GC rulesokhttp3.CallgetGCRulesAsync(String repository, ApiCallback<GarbageCollectionRules> _callback)get repository GC rules (asynchronously)okhttp3.CallgetGCRulesCall(String repository, ApiCallback _callback)Build call for getGCRulesApiResponse<GarbageCollectionRules>getGCRulesWithHttpInfo(String repository)get repository GC rulesRepositorygetRepository(String repository)get repositoryokhttp3.CallgetRepositoryAsync(String repository, ApiCallback<Repository> _callback)get repository (asynchronously)okhttp3.CallgetRepositoryCall(String repository, ApiCallback _callback)Build call for getRepositoryMap<String,String>getRepositoryMetadata(String repository)get repository metadataokhttp3.CallgetRepositoryMetadataAsync(String repository, ApiCallback<Map<String,String>> _callback)get repository metadata (asynchronously)okhttp3.CallgetRepositoryMetadataCall(String repository, ApiCallback _callback)Build call for getRepositoryMetadataApiResponse<Map<String,String>>getRepositoryMetadataWithHttpInfo(String repository)get repository metadataApiResponse<Repository>getRepositoryWithHttpInfo(String repository)get repositoryRepositoryListlistRepositories(String prefix, String after, Integer amount)list repositoriesokhttp3.CalllistRepositoriesAsync(String prefix, String after, Integer amount, ApiCallback<RepositoryList> _callback)list repositories (asynchronously)okhttp3.CalllistRepositoriesCall(String prefix, String after, Integer amount, ApiCallback _callback)Build call for listRepositoriesApiResponse<RepositoryList>listRepositoriesWithHttpInfo(String prefix, String after, Integer amount)list repositoriesRepositoryRestoreStatusrestoreStatus(String repository, String taskId)Status of a restore requestokhttp3.CallrestoreStatusAsync(String repository, String taskId, ApiCallback<RepositoryRestoreStatus> _callback)Status of a restore request (asynchronously)okhttp3.CallrestoreStatusCall(String repository, String taskId, ApiCallback _callback)Build call for restoreStatusApiResponse<RepositoryRestoreStatus>restoreStatusWithHttpInfo(String repository, String taskId)Status of a restore requestTaskInforestoreSubmit(String repository, RefsDump refsDump)Restore repository from a dump in the object storeokhttp3.CallrestoreSubmitAsync(String repository, RefsDump refsDump, ApiCallback<TaskInfo> _callback)Restore repository from a dump in the object store (asynchronously)okhttp3.CallrestoreSubmitCall(String repository, RefsDump refsDump, ApiCallback _callback)Build call for restoreSubmitApiResponse<TaskInfo>restoreSubmitWithHttpInfo(String repository, RefsDump refsDump)Restore repository from a dump in the object storevoidsetApiClient(ApiClient apiClient)voidsetBranchProtectionRules(String repository, List<BranchProtectionRule> branchProtectionRule, String ifMatch)okhttp3.CallsetBranchProtectionRulesAsync(String repository, List<BranchProtectionRule> branchProtectionRule, String ifMatch, ApiCallback<Void> _callback)(asynchronously)okhttp3.CallsetBranchProtectionRulesCall(String repository, List<BranchProtectionRule> branchProtectionRule, String ifMatch, ApiCallback _callback)Build call for setBranchProtectionRulesApiResponse<Void>setBranchProtectionRulesWithHttpInfo(String repository, List<BranchProtectionRule> branchProtectionRule, String ifMatch)voidsetGCRules(String repository, GarbageCollectionRules garbageCollectionRules)okhttp3.CallsetGCRulesAsync(String repository, GarbageCollectionRules garbageCollectionRules, ApiCallback<Void> _callback)(asynchronously)okhttp3.CallsetGCRulesCall(String repository, GarbageCollectionRules garbageCollectionRules, ApiCallback _callback)Build call for setGCRulesApiResponse<Void>setGCRulesWithHttpInfo(String repository, GarbageCollectionRules garbageCollectionRules)
-
-
-
Constructor Detail
-
RepositoriesApi
public RepositoriesApi()
-
RepositoriesApi
public RepositoriesApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
createRepositoryCall
public okhttp3.Call createRepositoryCall(RepositoryCreation repositoryCreation, Boolean bare, ApiCallback _callback) throws ApiException
Build call for createRepository- Parameters:
repositoryCreation- (required)bare- If true, create a bare repository with no initial commit and branch (optional, default to false)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 201 repository - 400 Validation Error - 401 Unauthorized - 409 Resource Conflicts With Target - 420 too many requests - 0 Internal Server Error -
-
createRepository
public Repository createRepository(RepositoryCreation repositoryCreation, Boolean bare) throws ApiException
create repository- Parameters:
repositoryCreation- (required)bare- If true, create a bare repository with no initial commit and branch (optional, default to false)- Returns:
- Repository
- 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 repository - 400 Validation Error - 401 Unauthorized - 409 Resource Conflicts With Target - 420 too many requests - 0 Internal Server Error -
-
createRepositoryWithHttpInfo
public ApiResponse<Repository> createRepositoryWithHttpInfo(RepositoryCreation repositoryCreation, Boolean bare) throws ApiException
create repository- Parameters:
repositoryCreation- (required)bare- If true, create a bare repository with no initial commit and branch (optional, default to false)- Returns:
- ApiResponse<Repository>
- 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 repository - 400 Validation Error - 401 Unauthorized - 409 Resource Conflicts With Target - 420 too many requests - 0 Internal Server Error -
-
createRepositoryAsync
public okhttp3.Call createRepositoryAsync(RepositoryCreation repositoryCreation, Boolean bare, ApiCallback<Repository> _callback) throws ApiException
create repository (asynchronously)- Parameters:
repositoryCreation- (required)bare- If true, create a bare repository with no initial commit and branch (optional, default to false)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 201 repository - 400 Validation Error - 401 Unauthorized - 409 Resource Conflicts With Target - 420 too many requests - 0 Internal Server Error -
-
deleteGCRulesCall
public okhttp3.Call deleteGCRulesCall(String repository, ApiCallback _callback) throws ApiException
Build call for deleteGCRules- Parameters:
repository- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 204 deleted garbage collection rules successfully - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
deleteGCRules
public void deleteGCRules(String repository) throws ApiException
- Parameters:
repository- (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 204 deleted garbage collection rules successfully - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
deleteGCRulesWithHttpInfo
public ApiResponse<Void> deleteGCRulesWithHttpInfo(String repository) throws ApiException
- Parameters:
repository- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 204 deleted garbage collection rules successfully - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
deleteGCRulesAsync
public okhttp3.Call deleteGCRulesAsync(String repository, ApiCallback<Void> _callback) throws ApiException
(asynchronously)- Parameters:
repository- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 204 deleted garbage collection rules successfully - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
deleteRepositoryCall
public okhttp3.Call deleteRepositoryCall(String repository, ApiCallback _callback) throws ApiException
Build call for deleteRepository- Parameters:
repository- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 204 repository deleted successfully - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
deleteRepository
public void deleteRepository(String repository) throws ApiException
delete repository- Parameters:
repository- (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 204 repository deleted successfully - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
deleteRepositoryWithHttpInfo
public ApiResponse<Void> deleteRepositoryWithHttpInfo(String repository) throws ApiException
delete repository- Parameters:
repository- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 204 repository deleted successfully - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
deleteRepositoryAsync
public okhttp3.Call deleteRepositoryAsync(String repository, ApiCallback<Void> _callback) throws ApiException
delete repository (asynchronously)- Parameters:
repository- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 204 repository deleted successfully - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
dumpStatusCall
public okhttp3.Call dumpStatusCall(String repository, String taskId, ApiCallback _callback) throws ApiException
Build call for dumpStatus- Parameters:
repository- (required)taskId- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 dump task status - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
dumpStatus
public RepositoryDumpStatus dumpStatus(String repository, String taskId) throws ApiException
Status of a repository dump task- Parameters:
repository- (required)taskId- (required)- Returns:
- RepositoryDumpStatus
- 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 dump task status - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
dumpStatusWithHttpInfo
public ApiResponse<RepositoryDumpStatus> dumpStatusWithHttpInfo(String repository, String taskId) throws ApiException
Status of a repository dump task- Parameters:
repository- (required)taskId- (required)- Returns:
- ApiResponse<RepositoryDumpStatus>
- 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 dump task status - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
dumpStatusAsync
public okhttp3.Call dumpStatusAsync(String repository, String taskId, ApiCallback<RepositoryDumpStatus> _callback) throws ApiException
Status of a repository dump task (asynchronously)- Parameters:
repository- (required)taskId- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 dump task status - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
dumpSubmitCall
public okhttp3.Call dumpSubmitCall(String repository, ApiCallback _callback) throws ApiException
Build call for dumpSubmit- Parameters:
repository- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 202 dump task information - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
dumpSubmit
public TaskInfo dumpSubmit(String repository) throws ApiException
Backup the repository metadata (tags, commits, branches) and save the backup to the object store.- Parameters:
repository- (required)- Returns:
- TaskInfo
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 202 dump task information - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
dumpSubmitWithHttpInfo
public ApiResponse<TaskInfo> dumpSubmitWithHttpInfo(String repository) throws ApiException
Backup the repository metadata (tags, commits, branches) and save the backup to the object store.- Parameters:
repository- (required)- Returns:
- ApiResponse<TaskInfo>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 202 dump task information - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
dumpSubmitAsync
public okhttp3.Call dumpSubmitAsync(String repository, ApiCallback<TaskInfo> _callback) throws ApiException
Backup the repository metadata (tags, commits, branches) and save the backup to the object store. (asynchronously)- Parameters:
repository- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 202 dump task information - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
getBranchProtectionRulesCall
public okhttp3.Call getBranchProtectionRulesCall(String repository, ApiCallback _callback) throws ApiException
Build call for getBranchProtectionRules- Parameters:
repository- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 branch protection rules * ETag -
401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getBranchProtectionRules
public List<BranchProtectionRule> getBranchProtectionRules(String repository) throws ApiException
get branch protection rules- Parameters:
repository- (required)- Returns:
- 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 * ETag -
401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getBranchProtectionRulesWithHttpInfo
public ApiResponse<List<BranchProtectionRule>> getBranchProtectionRulesWithHttpInfo(String repository) throws ApiException
get branch protection rules- Parameters:
repository- (required)- Returns:
- 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 * ETag -
401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getBranchProtectionRulesAsync
public okhttp3.Call getBranchProtectionRulesAsync(String repository, ApiCallback<List<BranchProtectionRule>> _callback) throws ApiException
get branch protection rules (asynchronously)- Parameters:
repository- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 branch protection rules * ETag -
401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getGCRulesCall
public okhttp3.Call getGCRulesCall(String repository, ApiCallback _callback) throws ApiException
Build call for getGCRules- Parameters:
repository- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 repository GC rules - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getGCRules
public GarbageCollectionRules getGCRules(String repository) throws ApiException
get repository GC rules- Parameters:
repository- (required)- Returns:
- GarbageCollectionRules
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 repository GC rules - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getGCRulesWithHttpInfo
public ApiResponse<GarbageCollectionRules> getGCRulesWithHttpInfo(String repository) throws ApiException
get repository GC rules- Parameters:
repository- (required)- Returns:
- ApiResponse<GarbageCollectionRules>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 repository GC rules - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getGCRulesAsync
public okhttp3.Call getGCRulesAsync(String repository, ApiCallback<GarbageCollectionRules> _callback) throws ApiException
get repository GC rules (asynchronously)- Parameters:
repository- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 repository GC rules - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getRepositoryCall
public okhttp3.Call getRepositoryCall(String repository, ApiCallback _callback) throws ApiException
Build call for getRepository- Parameters:
repository- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 repository - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getRepository
public Repository getRepository(String repository) throws ApiException
get repository- Parameters:
repository- (required)- Returns:
- Repository
- 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 repository - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getRepositoryWithHttpInfo
public ApiResponse<Repository> getRepositoryWithHttpInfo(String repository) throws ApiException
get repository- Parameters:
repository- (required)- Returns:
- ApiResponse<Repository>
- 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 repository - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getRepositoryAsync
public okhttp3.Call getRepositoryAsync(String repository, ApiCallback<Repository> _callback) throws ApiException
get repository (asynchronously)- Parameters:
repository- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 repository - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getRepositoryMetadataCall
public okhttp3.Call getRepositoryMetadataCall(String repository, ApiCallback _callback) throws ApiException
Build call for getRepositoryMetadata- Parameters:
repository- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 repository metadata - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getRepositoryMetadata
public Map<String,String> getRepositoryMetadata(String repository) throws ApiException
get repository metadata- Parameters:
repository- (required)- Returns:
- Map<String, String>
- 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 repository metadata - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getRepositoryMetadataWithHttpInfo
public ApiResponse<Map<String,String>> getRepositoryMetadataWithHttpInfo(String repository) throws ApiException
get repository metadata- Parameters:
repository- (required)- Returns:
- ApiResponse<Map<String, String>>
- 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 repository metadata - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
getRepositoryMetadataAsync
public okhttp3.Call getRepositoryMetadataAsync(String repository, ApiCallback<Map<String,String>> _callback) throws ApiException
get repository metadata (asynchronously)- Parameters:
repository- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 repository metadata - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
listRepositoriesCall
public okhttp3.Call listRepositoriesCall(String prefix, String after, Integer amount, ApiCallback _callback) throws ApiException
Build call for listRepositories- Parameters:
prefix- return items prefixed with this value (optional)after- return items after this value (optional)amount- how many items to return (optional, default to 100)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 repository list - 401 Unauthorized - 420 too many requests - 0 Internal Server Error -
-
listRepositories
public RepositoryList listRepositories(String prefix, String after, Integer amount) throws ApiException
list repositories- Parameters:
prefix- return items prefixed with this value (optional)after- return items after this value (optional)amount- how many items to return (optional, default to 100)- Returns:
- RepositoryList
- 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 repository list - 401 Unauthorized - 420 too many requests - 0 Internal Server Error -
-
listRepositoriesWithHttpInfo
public ApiResponse<RepositoryList> listRepositoriesWithHttpInfo(String prefix, String after, Integer amount) throws ApiException
list repositories- Parameters:
prefix- return items prefixed with this value (optional)after- return items after this value (optional)amount- how many items to return (optional, default to 100)- Returns:
- ApiResponse<RepositoryList>
- 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 repository list - 401 Unauthorized - 420 too many requests - 0 Internal Server Error -
-
listRepositoriesAsync
public okhttp3.Call listRepositoriesAsync(String prefix, String after, Integer amount, ApiCallback<RepositoryList> _callback) throws ApiException
list repositories (asynchronously)- Parameters:
prefix- return items prefixed with this value (optional)after- return items after this value (optional)amount- how many items to return (optional, default to 100)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 repository list - 401 Unauthorized - 420 too many requests - 0 Internal Server Error -
-
restoreStatusCall
public okhttp3.Call restoreStatusCall(String repository, String taskId, ApiCallback _callback) throws ApiException
Build call for restoreStatus- Parameters:
repository- (required)taskId- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 restore task status - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
restoreStatus
public RepositoryRestoreStatus restoreStatus(String repository, String taskId) throws ApiException
Status of a restore request- Parameters:
repository- (required)taskId- (required)- Returns:
- RepositoryRestoreStatus
- 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 restore task status - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
restoreStatusWithHttpInfo
public ApiResponse<RepositoryRestoreStatus> restoreStatusWithHttpInfo(String repository, String taskId) throws ApiException
Status of a restore request- Parameters:
repository- (required)taskId- (required)- Returns:
- ApiResponse<RepositoryRestoreStatus>
- 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 restore task status - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
restoreStatusAsync
public okhttp3.Call restoreStatusAsync(String repository, String taskId, ApiCallback<RepositoryRestoreStatus> _callback) throws ApiException
Status of a restore request (asynchronously)- Parameters:
repository- (required)taskId- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 restore task status - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
restoreSubmitCall
public okhttp3.Call restoreSubmitCall(String repository, RefsDump refsDump, ApiCallback _callback) throws ApiException
Build call for restoreSubmit- Parameters:
repository- (required)refsDump- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 202 restore task created - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
restoreSubmit
public TaskInfo restoreSubmit(String repository, RefsDump refsDump) throws ApiException
Restore repository from a dump in the object store- Parameters:
repository- (required)refsDump- (required)- Returns:
- TaskInfo
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 202 restore task created - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
restoreSubmitWithHttpInfo
public ApiResponse<TaskInfo> restoreSubmitWithHttpInfo(String repository, RefsDump refsDump) throws ApiException
Restore repository from a dump in the object store- Parameters:
repository- (required)refsDump- (required)- Returns:
- ApiResponse<TaskInfo>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 202 restore task created - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
restoreSubmitAsync
public okhttp3.Call restoreSubmitAsync(String repository, RefsDump refsDump, ApiCallback<TaskInfo> _callback) throws ApiException
Restore repository from a dump in the object store (asynchronously)- Parameters:
repository- (required)refsDump- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 202 restore task created - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
setBranchProtectionRulesCall
public okhttp3.Call setBranchProtectionRulesCall(String repository, List<BranchProtectionRule> branchProtectionRule, String ifMatch, ApiCallback _callback) throws ApiException
Build call for setBranchProtectionRules- Parameters:
repository- (required)branchProtectionRule- (required)ifMatch- if provided, the branch protection rules will be updated only if the current ETag match the provided value (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 204 branch protection rule created successfully - 400 Bad Request - 401 Unauthorized - 404 Resource Not Found - 412 Precondition Failed - 420 too many requests - 0 Internal Server Error -
-
setBranchProtectionRules
public void setBranchProtectionRules(String repository, List<BranchProtectionRule> branchProtectionRule, String ifMatch) throws ApiException
- Parameters:
repository- (required)branchProtectionRule- (required)ifMatch- if provided, the branch protection rules will be updated only if the current ETag match the provided value (optional)- 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 - 400 Bad Request - 401 Unauthorized - 404 Resource Not Found - 412 Precondition Failed - 420 too many requests - 0 Internal Server Error -
-
setBranchProtectionRulesWithHttpInfo
public ApiResponse<Void> setBranchProtectionRulesWithHttpInfo(String repository, List<BranchProtectionRule> branchProtectionRule, String ifMatch) throws ApiException
- Parameters:
repository- (required)branchProtectionRule- (required)ifMatch- if provided, the branch protection rules will be updated only if the current ETag match the provided value (optional)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 204 branch protection rule created successfully - 400 Bad Request - 401 Unauthorized - 404 Resource Not Found - 412 Precondition Failed - 420 too many requests - 0 Internal Server Error -
-
setBranchProtectionRulesAsync
public okhttp3.Call setBranchProtectionRulesAsync(String repository, List<BranchProtectionRule> branchProtectionRule, String ifMatch, ApiCallback<Void> _callback) throws ApiException
(asynchronously)- Parameters:
repository- (required)branchProtectionRule- (required)ifMatch- if provided, the branch protection rules will be updated only if the current ETag match the provided value (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 204 branch protection rule created successfully - 400 Bad Request - 401 Unauthorized - 404 Resource Not Found - 412 Precondition Failed - 420 too many requests - 0 Internal Server Error -
-
setGCRulesCall
public okhttp3.Call setGCRulesCall(String repository, GarbageCollectionRules garbageCollectionRules, ApiCallback _callback) throws ApiException
Build call for setGCRules- Parameters:
repository- (required)garbageCollectionRules- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 204 set garbage collection rules successfully - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
setGCRules
public void setGCRules(String repository, GarbageCollectionRules garbageCollectionRules) throws ApiException
- Parameters:
repository- (required)garbageCollectionRules- (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 204 set garbage collection rules successfully - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
setGCRulesWithHttpInfo
public ApiResponse<Void> setGCRulesWithHttpInfo(String repository, GarbageCollectionRules garbageCollectionRules) throws ApiException
- Parameters:
repository- (required)garbageCollectionRules- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 204 set garbage collection rules successfully - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
setGCRulesAsync
public okhttp3.Call setGCRulesAsync(String repository, GarbageCollectionRules garbageCollectionRules, ApiCallback<Void> _callback) throws ApiException
(asynchronously)- Parameters:
repository- (required)garbageCollectionRules- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 204 set garbage collection rules successfully - 401 Unauthorized - 404 Resource Not Found - 420 too many requests - 0 Internal Server Error -
-
-