Package io.lakefs.clients.api
Class RefsApi
- java.lang.Object
-
- io.lakefs.clients.api.RefsApi
-
public class RefsApi extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiffListdiffRefs(String repository, String leftRef, String rightRef, String after, Integer amount, String prefix, String delimiter, String type, String diffType)diff referencesokhttp3.CalldiffRefsAsync(String repository, String leftRef, String rightRef, String after, Integer amount, String prefix, String delimiter, String type, String diffType, ApiCallback<DiffList> _callback)diff references (asynchronously)okhttp3.CalldiffRefsCall(String repository, String leftRef, String rightRef, String after, Integer amount, String prefix, String delimiter, String type, String diffType, ApiCallback _callback)Build call for diffRefsApiResponse<DiffList>diffRefsWithHttpInfo(String repository, String leftRef, String rightRef, String after, Integer amount, String prefix, String delimiter, String type, String diffType)diff referencesRefsDumpdumpRefs(String repository)Dump repository refs (tags, commits, branches) to object storeokhttp3.CalldumpRefsAsync(String repository, ApiCallback<RefsDump> _callback)Dump repository refs (tags, commits, branches) to object store (asynchronously)okhttp3.CalldumpRefsCall(String repository, ApiCallback _callback)Build call for dumpRefsApiResponse<RefsDump>dumpRefsWithHttpInfo(String repository)Dump repository refs (tags, commits, branches) to object storeApiClientgetApiClient()CommitListlogCommits(String repository, String ref, String after, Integer amount, List<String> objects, List<String> prefixes)get commit log from ref.okhttp3.CalllogCommitsAsync(String repository, String ref, String after, Integer amount, List<String> objects, List<String> prefixes, ApiCallback<CommitList> _callback)get commit log from ref.okhttp3.CalllogCommitsCall(String repository, String ref, String after, Integer amount, List<String> objects, List<String> prefixes, ApiCallback _callback)Build call for logCommitsApiResponse<CommitList>logCommitsWithHttpInfo(String repository, String ref, String after, Integer amount, List<String> objects, List<String> prefixes)get commit log from ref.MergeResultmergeIntoBranch(String repository, String sourceRef, String destinationBranch, Merge merge)merge referencesokhttp3.CallmergeIntoBranchAsync(String repository, String sourceRef, String destinationBranch, Merge merge, ApiCallback<MergeResult> _callback)merge references (asynchronously)okhttp3.CallmergeIntoBranchCall(String repository, String sourceRef, String destinationBranch, Merge merge, ApiCallback _callback)Build call for mergeIntoBranchApiResponse<MergeResult>mergeIntoBranchWithHttpInfo(String repository, String sourceRef, String destinationBranch, Merge merge)merge referencesvoidrestoreRefs(String repository, RefsDump refsDump)Restore repository refs (tags, commits, branches) from object storeokhttp3.CallrestoreRefsAsync(String repository, RefsDump refsDump, ApiCallback<Void> _callback)Restore repository refs (tags, commits, branches) from object store (asynchronously)okhttp3.CallrestoreRefsCall(String repository, RefsDump refsDump, ApiCallback _callback)Build call for restoreRefsApiResponse<Void>restoreRefsWithHttpInfo(String repository, RefsDump refsDump)Restore repository refs (tags, commits, branches) from object storevoidsetApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
RefsApi
public RefsApi()
-
RefsApi
public RefsApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
diffRefsCall
public okhttp3.Call diffRefsCall(String repository, String leftRef, String rightRef, String after, Integer amount, String prefix, String delimiter, String type, String diffType, ApiCallback _callback) throws ApiException
Build call for diffRefs- Parameters:
repository- (required)leftRef- a reference (could be either a branch or a commit ID) (required)rightRef- a reference (could be either a branch or a commit ID) to compare against (required)after- return items after this value (optional)amount- how many items to return (optional, default to 100)prefix- return items prefixed with this value (optional)delimiter- delimiter used to group common prefixes by (optional)type- (optional)diffType- (optional, default to three_dot)_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 diff between refs - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
diffRefs
public DiffList diffRefs(String repository, String leftRef, String rightRef, String after, Integer amount, String prefix, String delimiter, String type, String diffType) throws ApiException
diff references- Parameters:
repository- (required)leftRef- a reference (could be either a branch or a commit ID) (required)rightRef- a reference (could be either a branch or a commit ID) to compare against (required)after- return items after this value (optional)amount- how many items to return (optional, default to 100)prefix- return items prefixed with this value (optional)delimiter- delimiter used to group common prefixes by (optional)type- (optional)diffType- (optional, default to three_dot)- Returns:
- DiffList
- 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 diff between refs - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
diffRefsWithHttpInfo
public ApiResponse<DiffList> diffRefsWithHttpInfo(String repository, String leftRef, String rightRef, String after, Integer amount, String prefix, String delimiter, String type, String diffType) throws ApiException
diff references- Parameters:
repository- (required)leftRef- a reference (could be either a branch or a commit ID) (required)rightRef- a reference (could be either a branch or a commit ID) to compare against (required)after- return items after this value (optional)amount- how many items to return (optional, default to 100)prefix- return items prefixed with this value (optional)delimiter- delimiter used to group common prefixes by (optional)type- (optional)diffType- (optional, default to three_dot)- Returns:
- ApiResponse<DiffList>
- 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 diff between refs - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
diffRefsAsync
public okhttp3.Call diffRefsAsync(String repository, String leftRef, String rightRef, String after, Integer amount, String prefix, String delimiter, String type, String diffType, ApiCallback<DiffList> _callback) throws ApiException
diff references (asynchronously)- Parameters:
repository- (required)leftRef- a reference (could be either a branch or a commit ID) (required)rightRef- a reference (could be either a branch or a commit ID) to compare against (required)after- return items after this value (optional)amount- how many items to return (optional, default to 100)prefix- return items prefixed with this value (optional)delimiter- delimiter used to group common prefixes by (optional)type- (optional)diffType- (optional, default to three_dot)_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 diff between refs - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
dumpRefsCall
public okhttp3.Call dumpRefsCall(String repository, ApiCallback _callback) throws ApiException
Build call for dumpRefs- 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 201 refs dump - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
dumpRefs
public RefsDump dumpRefs(String repository) throws ApiException
Dump repository refs (tags, commits, branches) to object store- Parameters:
repository- (required)- Returns:
- 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 - 0 Internal Server Error -
-
dumpRefsWithHttpInfo
public ApiResponse<RefsDump> dumpRefsWithHttpInfo(String repository) throws ApiException
Dump repository refs (tags, commits, branches) to object store- Parameters:
repository- (required)- Returns:
- 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 - 0 Internal Server Error -
-
dumpRefsAsync
public okhttp3.Call dumpRefsAsync(String repository, ApiCallback<RefsDump> _callback) throws ApiException
Dump repository refs (tags, commits, branches) to 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 201 refs dump - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
logCommitsCall
public okhttp3.Call logCommitsCall(String repository, String ref, String after, Integer amount, List<String> objects, List<String> prefixes, ApiCallback _callback) throws ApiException
Build call for logCommits- Parameters:
repository- (required)ref- (required)after- return items after this value (optional)amount- how many items to return (optional, default to 100)objects- list of paths, each element is a path of a specific object (optional)prefixes- list of paths, each element is a path of a prefix (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 200 commit log - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
logCommits
public CommitList logCommits(String repository, String ref, String after, Integer amount, List<String> objects, List<String> prefixes) throws ApiException
get commit log from ref. If both objects and prefixes are empty, return all commits.- Parameters:
repository- (required)ref- (required)after- return items after this value (optional)amount- how many items to return (optional, default to 100)objects- list of paths, each element is a path of a specific object (optional)prefixes- list of paths, each element is a path of a prefix (optional)- Returns:
- CommitList
- 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 commit log - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
logCommitsWithHttpInfo
public ApiResponse<CommitList> logCommitsWithHttpInfo(String repository, String ref, String after, Integer amount, List<String> objects, List<String> prefixes) throws ApiException
get commit log from ref. If both objects and prefixes are empty, return all commits.- Parameters:
repository- (required)ref- (required)after- return items after this value (optional)amount- how many items to return (optional, default to 100)objects- list of paths, each element is a path of a specific object (optional)prefixes- list of paths, each element is a path of a prefix (optional)- Returns:
- ApiResponse<CommitList>
- 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 commit log - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
logCommitsAsync
public okhttp3.Call logCommitsAsync(String repository, String ref, String after, Integer amount, List<String> objects, List<String> prefixes, ApiCallback<CommitList> _callback) throws ApiException
get commit log from ref. If both objects and prefixes are empty, return all commits. (asynchronously)- Parameters:
repository- (required)ref- (required)after- return items after this value (optional)amount- how many items to return (optional, default to 100)objects- list of paths, each element is a path of a specific object (optional)prefixes- list of paths, each element is a path of a prefix (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 200 commit log - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
mergeIntoBranchCall
public okhttp3.Call mergeIntoBranchCall(String repository, String sourceRef, String destinationBranch, Merge merge, ApiCallback _callback) throws ApiException
Build call for mergeIntoBranch- Parameters:
repository- (required)sourceRef- source ref (required)destinationBranch- destination branch name (required)merge- (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 200 merge completed - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 409 conflict - 412 precondition failed (e.g. a pre-merge hook returned a failure) - 0 Internal Server Error -
-
mergeIntoBranch
public MergeResult mergeIntoBranch(String repository, String sourceRef, String destinationBranch, Merge merge) throws ApiException
merge references- Parameters:
repository- (required)sourceRef- source ref (required)destinationBranch- destination branch name (required)merge- (optional)- Returns:
- MergeResult
- 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 merge completed - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 409 conflict - 412 precondition failed (e.g. a pre-merge hook returned a failure) - 0 Internal Server Error -
-
mergeIntoBranchWithHttpInfo
public ApiResponse<MergeResult> mergeIntoBranchWithHttpInfo(String repository, String sourceRef, String destinationBranch, Merge merge) throws ApiException
merge references- Parameters:
repository- (required)sourceRef- source ref (required)destinationBranch- destination branch name (required)merge- (optional)- Returns:
- ApiResponse<MergeResult>
- 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 merge completed - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 409 conflict - 412 precondition failed (e.g. a pre-merge hook returned a failure) - 0 Internal Server Error -
-
mergeIntoBranchAsync
public okhttp3.Call mergeIntoBranchAsync(String repository, String sourceRef, String destinationBranch, Merge merge, ApiCallback<MergeResult> _callback) throws ApiException
merge references (asynchronously)- Parameters:
repository- (required)sourceRef- source ref (required)destinationBranch- destination branch name (required)merge- (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 200 merge completed - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 409 conflict - 412 precondition failed (e.g. a pre-merge hook returned a failure) - 0 Internal Server Error -
-
restoreRefsCall
public okhttp3.Call restoreRefsCall(String repository, RefsDump refsDump, ApiCallback _callback) throws ApiException
Build call for restoreRefs- 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 200 refs successfully loaded - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
restoreRefs
public void restoreRefs(String repository, RefsDump refsDump) throws ApiException
Restore repository refs (tags, commits, branches) from object store- Parameters:
repository- (required)refsDump- (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 refs successfully loaded - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
restoreRefsWithHttpInfo
public ApiResponse<Void> restoreRefsWithHttpInfo(String repository, RefsDump refsDump) throws ApiException
Restore repository refs (tags, commits, branches) from object store- Parameters:
repository- (required)refsDump- (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 200 refs successfully loaded - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
restoreRefsAsync
public okhttp3.Call restoreRefsAsync(String repository, RefsDump refsDump, ApiCallback<Void> _callback) throws ApiException
Restore repository refs (tags, commits, branches) from 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 200 refs successfully loaded - 400 Validation Error - 401 Unauthorized - 404 Resource Not Found - 0 Internal Server Error -
-
-