Package io.lakefs.clients.sdk
Class CommitsApi.APIcommitRequest
- java.lang.Object
-
- io.lakefs.clients.sdk.CommitsApi.APIcommitRequest
-
- Enclosing class:
- CommitsApi
public class CommitsApi.APIcommitRequest extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.CallbuildCall(ApiCallback _callback)Build call for commitCommitexecute()Execute commit requestokhttp3.CallexecuteAsync(ApiCallback<Commit> _callback)Execute commit request (asynchronously)ApiResponse<Commit>executeWithHttpInfo()Execute commit request with HTTP info returnedCommitsApi.APIcommitRequestsourceMetarange(String sourceMetarange)Set sourceMetarange
-
-
-
Method Detail
-
sourceMetarange
public CommitsApi.APIcommitRequest sourceMetarange(String sourceMetarange)
Set sourceMetarange- Parameters:
sourceMetarange- The source metarange to commit. Branch must not have uncommitted changes. (optional)- Returns:
- APIcommitRequest
-
buildCall
public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
Build call for commit- Parameters:
_callback- ApiCallback API callback- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 201 commit - 400 Validation Error - 401 Unauthorized - 403 Forbidden - 404 Resource Not Found - 412 Precondition Failed (e.g. a pre-commit hook returned a failure) - 420 too many requests - 0 Internal Server Error -
-
execute
public Commit execute() throws ApiException
Execute commit request- Returns:
- Commit
- 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 commit - 400 Validation Error - 401 Unauthorized - 403 Forbidden - 404 Resource Not Found - 412 Precondition Failed (e.g. a pre-commit hook returned a failure) - 420 too many requests - 0 Internal Server Error -
-
executeWithHttpInfo
public ApiResponse<Commit> executeWithHttpInfo() throws ApiException
Execute commit request with HTTP info returned- Returns:
- ApiResponse<Commit>
- 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 commit - 400 Validation Error - 401 Unauthorized - 403 Forbidden - 404 Resource Not Found - 412 Precondition Failed (e.g. a pre-commit hook returned a failure) - 420 too many requests - 0 Internal Server Error -
-
executeAsync
public okhttp3.Call executeAsync(ApiCallback<Commit> _callback) throws ApiException
Execute commit request (asynchronously)- Parameters:
_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 commit - 400 Validation Error - 401 Unauthorized - 403 Forbidden - 404 Resource Not Found - 412 Precondition Failed (e.g. a pre-commit hook returned a failure) - 420 too many requests - 0 Internal Server Error -
-
-