diff --git a/api/swagger.yml b/api/swagger.yml
index 56f17ab4cb6..4d32d245bc1 100644
--- a/api/swagger.yml
+++ b/api/swagger.yml
@@ -1581,6 +1581,46 @@ components:
- completed
- update_time
+ AsyncTaskStatus:
+ type: object
+ properties:
+ task_id:
+ type: string
+ description: the id of the async task
+ completed:
+ type: boolean
+ description: true if the task has completed (either successfully or with an error)
+ update_time:
+ type: string
+ format: date-time
+ description: last time the task status was updated
+ error:
+ $ref: "#/components/schemas/Error"
+ status_code:
+ type: integer
+ format: int32
+ description: an http status code that correlates with the underlying error if exists
+ required:
+ - task_id
+ - completed
+ - update_time
+
+ MergeAsyncStatus:
+ allOf:
+ - $ref: "#/components/schemas/AsyncTaskStatus"
+ - type: object
+ properties:
+ result:
+ $ref: "#/components/schemas/MergeResult"
+
+ CommitAsyncStatus:
+ allOf:
+ - $ref: "#/components/schemas/AsyncTaskStatus"
+ - type: object
+ properties:
+ result:
+ $ref: "#/components/schemas/Commit"
+
PrepareGCUncommittedRequest:
type: object
properties:
@@ -4237,13 +4277,110 @@ paths:
409:
$ref: "#/components/responses/Conflict"
412:
- description: Precondition Failed (e.g. a pre-commit hook returned a failure)
+ $ref: "#/components/responses/PreconditionFailed"
+ 429:
+ description: too many requests
+ default:
+ $ref: "#/components/responses/ServerError"
+
+ /repositories/{repository}/branches/{branch}/commits/async:
+ parameters:
+ - in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ - in: path
+ name: branch
+ required: true
+ schema:
+ type: string
+ post:
+ parameters:
+ - in: query
+ name: source_metarange
+ required: false
+ description: The source metarange to commit. Branch must not have uncommitted changes.
+ schema:
+ type: string
+ tags:
+ - experimental
+ operationId: commitAsync
+ summary: create commit asynchronously
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/CommitCreation"
+ responses:
+ 202:
+ description: commit task started
content:
application/json:
schema:
- $ref: "#/components/schemas/Error"
+ $ref: "#/components/schemas/TaskCreation"
+ 400:
+ $ref: "#/components/responses/ValidationError"
+ 401:
+ $ref: "#/components/responses/Unauthorized"
+ 403:
+ $ref: "#/components/responses/Forbidden"
+ 404:
+ $ref: "#/components/responses/NotFound"
+ 429:
+ description: too many requests
+ 501:
+ $ref: "#/components/responses/NotImplemented"
+ default:
+ $ref: "#/components/responses/ServerError"
+
+ /repositories/{repository}/branches/{branch}/commits/async/{id}/status:
+ parameters:
+ - in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ - in: path
+ name: branch
+ required: true
+ schema:
+ type: string
+ - in: path
+ name: id
+ required: true
+ description: Unique identifier of the commit async task
+ schema:
+ type: string
+ get:
+ tags:
+ - experimental
+ operationId: commitAsyncStatus
+ summary: get status of async commit operation
+ responses:
+ 200:
+ description: commit task status
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/CommitAsyncStatus"
+ 400:
+ $ref: "#/components/responses/ValidationError"
+ 401:
+ $ref: "#/components/responses/Unauthorized"
+ 403:
+ $ref: "#/components/responses/Forbidden"
+ 404:
+ $ref: "#/components/responses/NotFound"
+ 409:
+ $ref: "#/components/responses/Conflict"
+ 412:
+ $ref: "#/components/responses/PreconditionFailed"
429:
description: too many requests
+ 501:
+ $ref: "#/components/responses/NotImplemented"
default:
$ref: "#/components/responses/ServerError"
@@ -4596,6 +4733,113 @@ paths:
default:
$ref: "#/components/responses/ServerError"
+ /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch}/async:
+ parameters:
+ - in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ - in: path
+ name: sourceRef
+ required: true
+ schema:
+ type: string
+ description: source ref
+ - in: path
+ name: destinationBranch
+ required: true
+ schema:
+ type: string
+ description: destination branch name
+ post:
+ tags:
+ - experimental
+ operationId: mergeIntoBranchAsync
+ summary: merge references asynchronously
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/Merge"
+ responses:
+ 202:
+ description: merge task started
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/TaskCreation"
+ 400:
+ $ref: "#/components/responses/ValidationError"
+ 401:
+ $ref: "#/components/responses/Unauthorized"
+ 403:
+ $ref: "#/components/responses/Forbidden"
+ 404:
+ $ref: "#/components/responses/NotFound"
+ 429:
+ description: too many requests
+ 501:
+ $ref: "#/components/responses/NotImplemented"
+ default:
+ $ref: "#/components/responses/ServerError"
+
+ /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch}/async/{id}/status:
+ parameters:
+ - in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ - in: path
+ name: sourceRef
+ required: true
+ schema:
+ type: string
+ description: source ref
+ - in: path
+ name: destinationBranch
+ required: true
+ schema:
+ type: string
+ description: destination branch name
+ - in: path
+ name: id
+ required: true
+ description: Unique identifier of the merge async task
+ schema:
+ type: string
+ get:
+ tags:
+ - experimental
+ operationId: mergeIntoBranchAsyncStatus
+ summary: get status of async merge operation
+ responses:
+ 200:
+ description: merge task status
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/MergeAsyncStatus"
+ 400:
+ $ref: "#/components/responses/ValidationError"
+ 401:
+ $ref: "#/components/responses/Unauthorized"
+ 403:
+ $ref: "#/components/responses/Forbidden"
+ 404:
+ $ref: "#/components/responses/NotFound"
+ 409:
+ $ref: "#/components/responses/Conflict"
+ 412:
+ $ref: "#/components/responses/PreconditionFailed"
+ 429:
+ description: too many requests
+ 501:
+ $ref: "#/components/responses/NotImplemented"
+ default:
+ $ref: "#/components/responses/ServerError"
+
/repositories/{repository}/branches/{branch}/diff:
parameters:
- $ref: "#/components/parameters/PaginationAfter"
@@ -6701,7 +6945,7 @@ paths:
schema:
$ref: "#/components/schemas/MergeResult"
412:
- description: precondition failed (e.g. a pre-merge hook returned a failure)
+ description: precondition failed
content:
application/json:
schema:
diff --git a/clients/java/README.md b/clients/java/README.md
index ce4572f595b..91e702992c7 100644
--- a/clients/java/README.md
+++ b/clients/java/README.md
@@ -199,6 +199,8 @@ Class | Method | HTTP request | Description
*CommitsApi* | [**getCommit**](docs/CommitsApi.md#getCommit) | **GET** /repositories/{repository}/commits/{commitId} | get commit
*ConfigApi* | [**getConfig**](docs/ConfigApi.md#getConfig) | **GET** /config |
*ExperimentalApi* | [**abortPresignMultipartUpload**](docs/ExperimentalApi.md#abortPresignMultipartUpload) | **DELETE** /repositories/{repository}/branches/{branch}/staging/pmpu/{uploadId} | Abort a presign multipart upload
+*ExperimentalApi* | [**commitAsync**](docs/ExperimentalApi.md#commitAsync) | **POST** /repositories/{repository}/branches/{branch}/commits/async | create commit asynchronously
+*ExperimentalApi* | [**commitAsyncStatus**](docs/ExperimentalApi.md#commitAsyncStatus) | **GET** /repositories/{repository}/branches/{branch}/commits/async/{id}/status | get status of async commit operation
*ExperimentalApi* | [**completePresignMultipartUpload**](docs/ExperimentalApi.md#completePresignMultipartUpload) | **PUT** /repositories/{repository}/branches/{branch}/staging/pmpu/{uploadId} | Complete a presign multipart upload request
*ExperimentalApi* | [**createPresignMultipartUpload**](docs/ExperimentalApi.md#createPresignMultipartUpload) | **POST** /repositories/{repository}/branches/{branch}/staging/pmpu | Initiate a multipart upload
*ExperimentalApi* | [**createPullRequest**](docs/ExperimentalApi.md#createPullRequest) | **POST** /repositories/{repository}/pulls | create pull request
@@ -213,6 +215,8 @@ Class | Method | HTTP request | Description
*ExperimentalApi* | [**hardResetBranch**](docs/ExperimentalApi.md#hardResetBranch) | **PUT** /repositories/{repository}/branches/{branch}/hard_reset | hard reset branch
*ExperimentalApi* | [**listPullRequests**](docs/ExperimentalApi.md#listPullRequests) | **GET** /repositories/{repository}/pulls | list pull requests
*ExperimentalApi* | [**listUserExternalPrincipals**](docs/ExperimentalApi.md#listUserExternalPrincipals) | **GET** /auth/users/{userId}/external/principals/ls | list user external policies attached to a user
+*ExperimentalApi* | [**mergeIntoBranchAsync**](docs/ExperimentalApi.md#mergeIntoBranchAsync) | **POST** /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch}/async | merge references asynchronously
+*ExperimentalApi* | [**mergeIntoBranchAsyncStatus**](docs/ExperimentalApi.md#mergeIntoBranchAsyncStatus) | **GET** /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch}/async/{id}/status | get status of async merge operation
*ExperimentalApi* | [**mergePullRequest**](docs/ExperimentalApi.md#mergePullRequest) | **PUT** /repositories/{repository}/pulls/{pull_request}/merge | merge pull request
*ExperimentalApi* | [**releaseTokenToMailbox**](docs/ExperimentalApi.md#releaseTokenToMailbox) | **GET** /auth/get-token/release-token/{loginRequestToken} | release a token for the current (authenticated) user to the mailbox of this login request.
*ExperimentalApi* | [**stsLogin**](docs/ExperimentalApi.md#stsLogin) | **POST** /sts/login | perform a login with STS
@@ -312,6 +316,7 @@ Class | Method | HTTP request | Description
- [AccessKeyCredentials](docs/AccessKeyCredentials.md)
- [ActionRun](docs/ActionRun.md)
- [ActionRunList](docs/ActionRunList.md)
+ - [AsyncTaskStatus](docs/AsyncTaskStatus.md)
- [AuthCapabilities](docs/AuthCapabilities.md)
- [AuthenticationToken](docs/AuthenticationToken.md)
- [BranchCreation](docs/BranchCreation.md)
@@ -319,6 +324,7 @@ Class | Method | HTTP request | Description
- [CherryPickCreation](docs/CherryPickCreation.md)
- [CommPrefsInput](docs/CommPrefsInput.md)
- [Commit](docs/Commit.md)
+ - [CommitAsyncStatus](docs/CommitAsyncStatus.md)
- [CommitCreation](docs/CommitCreation.md)
- [CommitList](docs/CommitList.md)
- [CommitOverrides](docs/CommitOverrides.md)
@@ -364,6 +370,7 @@ Class | Method | HTTP request | Description
- [LoginConfig](docs/LoginConfig.md)
- [LoginInformation](docs/LoginInformation.md)
- [Merge](docs/Merge.md)
+ - [MergeAsyncStatus](docs/MergeAsyncStatus.md)
- [MergeResult](docs/MergeResult.md)
- [MetaRangeCreation](docs/MetaRangeCreation.md)
- [MetaRangeCreationResponse](docs/MetaRangeCreationResponse.md)
diff --git a/clients/java/api/openapi.yaml b/clients/java/api/openapi.yaml
index 1a1429db0de..39b3e27d999 100644
--- a/clients/java/api/openapi.yaml
+++ b/clients/java/api/openapi.yaml
@@ -3891,7 +3891,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
- description: Precondition Failed (e.g. a pre-commit hook returned a failure)
+ description: Precondition Failed
"429":
description: too many requests
default:
@@ -3905,6 +3905,176 @@ paths:
- commits
x-content-type: application/json
x-accepts: application/json
+ /repositories/{repository}/branches/{branch}/commits/async:
+ post:
+ operationId: commitAsync
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ - explode: false
+ in: path
+ name: branch
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: The source metarange to commit. Branch must not have uncommitted
+ changes.
+ explode: true
+ in: query
+ name: source_metarange
+ required: false
+ schema:
+ type: string
+ style: form
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CommitCreation'
+ required: true
+ responses:
+ "202":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TaskCreation'
+ description: commit task started
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Validation Error
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Resource Not Found
+ "429":
+ description: too many requests
+ "501":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Not Implemented
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: create commit asynchronously
+ tags:
+ - experimental
+ x-content-type: application/json
+ x-accepts: application/json
+ /repositories/{repository}/branches/{branch}/commits/async/{id}/status:
+ get:
+ operationId: commitAsyncStatus
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ - explode: false
+ in: path
+ name: branch
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Unique identifier of the commit async task
+ explode: false
+ in: path
+ name: id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CommitAsyncStatus'
+ description: commit task status
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Validation Error
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Resource Not Found
+ "409":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Resource Conflicts With Target
+ "412":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Precondition Failed
+ "429":
+ description: too many requests
+ "501":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Not Implemented
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: get status of async commit operation
+ tags:
+ - experimental
+ x-accepts: application/json
/repositories/{repository}/commits:
post:
operationId: CreateCommitRecord
@@ -4516,6 +4686,184 @@ paths:
- refs
x-content-type: application/json
x-accepts: application/json
+ /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch}/async:
+ post:
+ operationId: mergeIntoBranchAsync
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: source ref
+ explode: false
+ in: path
+ name: sourceRef
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: destination branch name
+ explode: false
+ in: path
+ name: destinationBranch
+ required: true
+ schema:
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Merge'
+ responses:
+ "202":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TaskCreation'
+ description: merge task started
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Validation Error
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Resource Not Found
+ "429":
+ description: too many requests
+ "501":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Not Implemented
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: merge references asynchronously
+ tags:
+ - experimental
+ x-content-type: application/json
+ x-accepts: application/json
+ /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch}/async/{id}/status:
+ get:
+ operationId: mergeIntoBranchAsyncStatus
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: source ref
+ explode: false
+ in: path
+ name: sourceRef
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: destination branch name
+ explode: false
+ in: path
+ name: destinationBranch
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Unique identifier of the merge async task
+ explode: false
+ in: path
+ name: id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/MergeAsyncStatus'
+ description: merge task status
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Validation Error
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Forbidden
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Resource Not Found
+ "409":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Resource Conflicts With Target
+ "412":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Precondition Failed
+ "429":
+ description: too many requests
+ "501":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Not Implemented
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: get status of async merge operation
+ tags:
+ - experimental
+ x-accepts: application/json
/repositories/{repository}/branches/{branch}/diff:
get:
operationId: diffBranch
@@ -8188,7 +8536,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
- description: precondition failed (e.g. a pre-merge hook returned a failure)
+ description: precondition failed
"429":
description: too many requests
default:
@@ -10772,6 +11120,45 @@ components:
- task_id
- update_time
type: object
+ AsyncTaskStatus:
+ properties:
+ task_id:
+ description: the id of the async task
+ type: string
+ completed:
+ description: true if the task has completed (either successfully or with
+ an error)
+ type: boolean
+ update_time:
+ description: last time the task status was updated
+ format: date-time
+ type: string
+ error:
+ $ref: '#/components/schemas/Error'
+ status_code:
+ description: an http status code that correlates with the underlying error
+ if exists
+ format: int32
+ type: integer
+ required:
+ - completed
+ - task_id
+ - update_time
+ type: object
+ MergeAsyncStatus:
+ allOf:
+ - $ref: '#/components/schemas/AsyncTaskStatus'
+ - properties:
+ result:
+ $ref: '#/components/schemas/MergeResult'
+ type: object
+ CommitAsyncStatus:
+ allOf:
+ - $ref: '#/components/schemas/AsyncTaskStatus'
+ - properties:
+ result:
+ $ref: '#/components/schemas/Commit'
+ type: object
PrepareGCUncommittedRequest:
example:
continuation_token: continuation_token
diff --git a/clients/java/docs/AsyncTaskStatus.md b/clients/java/docs/AsyncTaskStatus.md
new file mode 100644
index 00000000000..8abb243619f
--- /dev/null
+++ b/clients/java/docs/AsyncTaskStatus.md
@@ -0,0 +1,17 @@
+
+
+# AsyncTaskStatus
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**taskId** | **String** | the id of the async task | |
+|**completed** | **Boolean** | true if the task has completed (either successfully or with an error) | |
+|**updateTime** | **OffsetDateTime** | last time the task status was updated | |
+|**error** | [**Error**](Error.md) | | [optional] |
+|**statusCode** | **Integer** | an http status code that correlates with the underlying error if exists | [optional] |
+
+
+
diff --git a/clients/java/docs/CommitAsyncStatus.md b/clients/java/docs/CommitAsyncStatus.md
new file mode 100644
index 00000000000..30da7bf93ec
--- /dev/null
+++ b/clients/java/docs/CommitAsyncStatus.md
@@ -0,0 +1,18 @@
+
+
+# CommitAsyncStatus
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**taskId** | **String** | the id of the async task | |
+|**completed** | **Boolean** | true if the task has completed (either successfully or with an error) | |
+|**updateTime** | **OffsetDateTime** | last time the task status was updated | |
+|**error** | [**Error**](Error.md) | | [optional] |
+|**statusCode** | **Integer** | an http status code that correlates with the underlying error if exists | [optional] |
+|**result** | [**Commit**](Commit.md) | | [optional] |
+
+
+
diff --git a/clients/java/docs/CommitsApi.md b/clients/java/docs/CommitsApi.md
index cd73fec72df..470766a472b 100644
--- a/clients/java/docs/CommitsApi.md
+++ b/clients/java/docs/CommitsApi.md
@@ -108,7 +108,7 @@ public class Example {
| **403** | Forbidden | - |
| **404** | Resource Not Found | - |
| **409** | Resource Conflicts With Target | - |
-| **412** | Precondition Failed (e.g. a pre-commit hook returned a failure) | - |
+| **412** | Precondition Failed | - |
| **429** | too many requests | - |
| **0** | Internal Server Error | - |
diff --git a/clients/java/docs/ExperimentalApi.md b/clients/java/docs/ExperimentalApi.md
index f58792f2444..08a8924bc16 100644
--- a/clients/java/docs/ExperimentalApi.md
+++ b/clients/java/docs/ExperimentalApi.md
@@ -5,6 +5,8 @@ All URIs are relative to */api/v1*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**abortPresignMultipartUpload**](ExperimentalApi.md#abortPresignMultipartUpload) | **DELETE** /repositories/{repository}/branches/{branch}/staging/pmpu/{uploadId} | Abort a presign multipart upload |
+| [**commitAsync**](ExperimentalApi.md#commitAsync) | **POST** /repositories/{repository}/branches/{branch}/commits/async | create commit asynchronously |
+| [**commitAsyncStatus**](ExperimentalApi.md#commitAsyncStatus) | **GET** /repositories/{repository}/branches/{branch}/commits/async/{id}/status | get status of async commit operation |
| [**completePresignMultipartUpload**](ExperimentalApi.md#completePresignMultipartUpload) | **PUT** /repositories/{repository}/branches/{branch}/staging/pmpu/{uploadId} | Complete a presign multipart upload request |
| [**createPresignMultipartUpload**](ExperimentalApi.md#createPresignMultipartUpload) | **POST** /repositories/{repository}/branches/{branch}/staging/pmpu | Initiate a multipart upload |
| [**createPullRequest**](ExperimentalApi.md#createPullRequest) | **POST** /repositories/{repository}/pulls | create pull request |
@@ -19,6 +21,8 @@ All URIs are relative to */api/v1*
| [**hardResetBranch**](ExperimentalApi.md#hardResetBranch) | **PUT** /repositories/{repository}/branches/{branch}/hard_reset | hard reset branch |
| [**listPullRequests**](ExperimentalApi.md#listPullRequests) | **GET** /repositories/{repository}/pulls | list pull requests |
| [**listUserExternalPrincipals**](ExperimentalApi.md#listUserExternalPrincipals) | **GET** /auth/users/{userId}/external/principals/ls | list user external policies attached to a user |
+| [**mergeIntoBranchAsync**](ExperimentalApi.md#mergeIntoBranchAsync) | **POST** /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch}/async | merge references asynchronously |
+| [**mergeIntoBranchAsyncStatus**](ExperimentalApi.md#mergeIntoBranchAsyncStatus) | **GET** /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch}/async/{id}/status | get status of async merge operation |
| [**mergePullRequest**](ExperimentalApi.md#mergePullRequest) | **PUT** /repositories/{repository}/pulls/{pull_request}/merge | merge pull request |
| [**releaseTokenToMailbox**](ExperimentalApi.md#releaseTokenToMailbox) | **GET** /auth/get-token/release-token/{loginRequestToken} | release a token for the current (authenticated) user to the mailbox of this login request. |
| [**stsLogin**](ExperimentalApi.md#stsLogin) | **POST** /sts/login | perform a login with STS |
@@ -132,6 +136,211 @@ null (empty response body)
| **429** | too many requests | - |
| **0** | Internal Server Error | - |
+
+# **commitAsync**
+> TaskCreation commitAsync(repository, branch, commitCreation).sourceMetarange(sourceMetarange).execute();
+
+create commit asynchronously
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.sdk.ApiClient;
+import io.lakefs.clients.sdk.ApiException;
+import io.lakefs.clients.sdk.Configuration;
+import io.lakefs.clients.sdk.auth.*;
+import io.lakefs.clients.sdk.models.*;
+import io.lakefs.clients.sdk.ExperimentalApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("/api/v1");
+
+ // Configure HTTP basic authorization: basic_auth
+ HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
+ basic_auth.setUsername("YOUR USERNAME");
+ basic_auth.setPassword("YOUR PASSWORD");
+
+ // Configure API key authorization: cookie_auth
+ ApiKeyAuth cookie_auth = (ApiKeyAuth) defaultClient.getAuthentication("cookie_auth");
+ cookie_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //cookie_auth.setApiKeyPrefix("Token");
+
+ // Configure API key authorization: oidc_auth
+ ApiKeyAuth oidc_auth = (ApiKeyAuth) defaultClient.getAuthentication("oidc_auth");
+ oidc_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //oidc_auth.setApiKeyPrefix("Token");
+
+ // Configure API key authorization: saml_auth
+ ApiKeyAuth saml_auth = (ApiKeyAuth) defaultClient.getAuthentication("saml_auth");
+ saml_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //saml_auth.setApiKeyPrefix("Token");
+
+ // Configure HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER TOKEN");
+
+ ExperimentalApi apiInstance = new ExperimentalApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String branch = "branch_example"; // String |
+ CommitCreation commitCreation = new CommitCreation(); // CommitCreation |
+ String sourceMetarange = "sourceMetarange_example"; // String | The source metarange to commit. Branch must not have uncommitted changes.
+ try {
+ TaskCreation result = apiInstance.commitAsync(repository, branch, commitCreation)
+ .sourceMetarange(sourceMetarange)
+ .execute();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#commitAsync");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **repository** | **String**| | |
+| **branch** | **String**| | |
+| **commitCreation** | [**CommitCreation**](CommitCreation.md)| | |
+| **sourceMetarange** | **String**| The source metarange to commit. Branch must not have uncommitted changes. | [optional] |
+
+### Return type
+
+[**TaskCreation**](TaskCreation.md)
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth), [jwt_token](../README.md#jwt_token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **202** | commit task started | - |
+| **400** | Validation Error | - |
+| **401** | Unauthorized | - |
+| **403** | Forbidden | - |
+| **404** | Resource Not Found | - |
+| **429** | too many requests | - |
+| **501** | Not Implemented | - |
+| **0** | Internal Server Error | - |
+
+
+# **commitAsyncStatus**
+> CommitAsyncStatus commitAsyncStatus(repository, branch, id).execute();
+
+get status of async commit operation
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.sdk.ApiClient;
+import io.lakefs.clients.sdk.ApiException;
+import io.lakefs.clients.sdk.Configuration;
+import io.lakefs.clients.sdk.auth.*;
+import io.lakefs.clients.sdk.models.*;
+import io.lakefs.clients.sdk.ExperimentalApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("/api/v1");
+
+ // Configure HTTP basic authorization: basic_auth
+ HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
+ basic_auth.setUsername("YOUR USERNAME");
+ basic_auth.setPassword("YOUR PASSWORD");
+
+ // Configure API key authorization: cookie_auth
+ ApiKeyAuth cookie_auth = (ApiKeyAuth) defaultClient.getAuthentication("cookie_auth");
+ cookie_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //cookie_auth.setApiKeyPrefix("Token");
+
+ // Configure API key authorization: oidc_auth
+ ApiKeyAuth oidc_auth = (ApiKeyAuth) defaultClient.getAuthentication("oidc_auth");
+ oidc_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //oidc_auth.setApiKeyPrefix("Token");
+
+ // Configure API key authorization: saml_auth
+ ApiKeyAuth saml_auth = (ApiKeyAuth) defaultClient.getAuthentication("saml_auth");
+ saml_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //saml_auth.setApiKeyPrefix("Token");
+
+ // Configure HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER TOKEN");
+
+ ExperimentalApi apiInstance = new ExperimentalApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String branch = "branch_example"; // String |
+ String id = "id_example"; // String | Unique identifier of the commit async task
+ try {
+ CommitAsyncStatus result = apiInstance.commitAsyncStatus(repository, branch, id)
+ .execute();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#commitAsyncStatus");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **repository** | **String**| | |
+| **branch** | **String**| | |
+| **id** | **String**| Unique identifier of the commit async task | |
+
+### Return type
+
+[**CommitAsyncStatus**](CommitAsyncStatus.md)
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth), [jwt_token](../README.md#jwt_token)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | commit task status | - |
+| **400** | Validation Error | - |
+| **401** | Unauthorized | - |
+| **403** | Forbidden | - |
+| **404** | Resource Not Found | - |
+| **409** | Resource Conflicts With Target | - |
+| **412** | Precondition Failed | - |
+| **429** | too many requests | - |
+| **501** | Not Implemented | - |
+| **0** | Internal Server Error | - |
+
# **completePresignMultipartUpload**
> ObjectStats completePresignMultipartUpload(repository, branch, uploadId, path).completePresignMultipartUpload(completePresignMultipartUpload).execute();
@@ -1421,6 +1630,213 @@ public class Example {
| **429** | too many requests | - |
| **0** | Internal Server Error | - |
+
+# **mergeIntoBranchAsync**
+> TaskCreation mergeIntoBranchAsync(repository, sourceRef, destinationBranch).merge(merge).execute();
+
+merge references asynchronously
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.sdk.ApiClient;
+import io.lakefs.clients.sdk.ApiException;
+import io.lakefs.clients.sdk.Configuration;
+import io.lakefs.clients.sdk.auth.*;
+import io.lakefs.clients.sdk.models.*;
+import io.lakefs.clients.sdk.ExperimentalApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("/api/v1");
+
+ // Configure HTTP basic authorization: basic_auth
+ HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
+ basic_auth.setUsername("YOUR USERNAME");
+ basic_auth.setPassword("YOUR PASSWORD");
+
+ // Configure API key authorization: cookie_auth
+ ApiKeyAuth cookie_auth = (ApiKeyAuth) defaultClient.getAuthentication("cookie_auth");
+ cookie_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //cookie_auth.setApiKeyPrefix("Token");
+
+ // Configure API key authorization: oidc_auth
+ ApiKeyAuth oidc_auth = (ApiKeyAuth) defaultClient.getAuthentication("oidc_auth");
+ oidc_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //oidc_auth.setApiKeyPrefix("Token");
+
+ // Configure API key authorization: saml_auth
+ ApiKeyAuth saml_auth = (ApiKeyAuth) defaultClient.getAuthentication("saml_auth");
+ saml_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //saml_auth.setApiKeyPrefix("Token");
+
+ // Configure HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER TOKEN");
+
+ ExperimentalApi apiInstance = new ExperimentalApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String sourceRef = "sourceRef_example"; // String | source ref
+ String destinationBranch = "destinationBranch_example"; // String | destination branch name
+ Merge merge = new Merge(); // Merge |
+ try {
+ TaskCreation result = apiInstance.mergeIntoBranchAsync(repository, sourceRef, destinationBranch)
+ .merge(merge)
+ .execute();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#mergeIntoBranchAsync");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **repository** | **String**| | |
+| **sourceRef** | **String**| source ref | |
+| **destinationBranch** | **String**| destination branch name | |
+| **merge** | [**Merge**](Merge.md)| | [optional] |
+
+### Return type
+
+[**TaskCreation**](TaskCreation.md)
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth), [jwt_token](../README.md#jwt_token)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **202** | merge task started | - |
+| **400** | Validation Error | - |
+| **401** | Unauthorized | - |
+| **403** | Forbidden | - |
+| **404** | Resource Not Found | - |
+| **429** | too many requests | - |
+| **501** | Not Implemented | - |
+| **0** | Internal Server Error | - |
+
+
+# **mergeIntoBranchAsyncStatus**
+> MergeAsyncStatus mergeIntoBranchAsyncStatus(repository, sourceRef, destinationBranch, id).execute();
+
+get status of async merge operation
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.sdk.ApiClient;
+import io.lakefs.clients.sdk.ApiException;
+import io.lakefs.clients.sdk.Configuration;
+import io.lakefs.clients.sdk.auth.*;
+import io.lakefs.clients.sdk.models.*;
+import io.lakefs.clients.sdk.ExperimentalApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("/api/v1");
+
+ // Configure HTTP basic authorization: basic_auth
+ HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
+ basic_auth.setUsername("YOUR USERNAME");
+ basic_auth.setPassword("YOUR PASSWORD");
+
+ // Configure API key authorization: cookie_auth
+ ApiKeyAuth cookie_auth = (ApiKeyAuth) defaultClient.getAuthentication("cookie_auth");
+ cookie_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //cookie_auth.setApiKeyPrefix("Token");
+
+ // Configure API key authorization: oidc_auth
+ ApiKeyAuth oidc_auth = (ApiKeyAuth) defaultClient.getAuthentication("oidc_auth");
+ oidc_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //oidc_auth.setApiKeyPrefix("Token");
+
+ // Configure API key authorization: saml_auth
+ ApiKeyAuth saml_auth = (ApiKeyAuth) defaultClient.getAuthentication("saml_auth");
+ saml_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //saml_auth.setApiKeyPrefix("Token");
+
+ // Configure HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER TOKEN");
+
+ ExperimentalApi apiInstance = new ExperimentalApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String sourceRef = "sourceRef_example"; // String | source ref
+ String destinationBranch = "destinationBranch_example"; // String | destination branch name
+ String id = "id_example"; // String | Unique identifier of the merge async task
+ try {
+ MergeAsyncStatus result = apiInstance.mergeIntoBranchAsyncStatus(repository, sourceRef, destinationBranch, id)
+ .execute();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#mergeIntoBranchAsyncStatus");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **repository** | **String**| | |
+| **sourceRef** | **String**| source ref | |
+| **destinationBranch** | **String**| destination branch name | |
+| **id** | **String**| Unique identifier of the merge async task | |
+
+### Return type
+
+[**MergeAsyncStatus**](MergeAsyncStatus.md)
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth), [jwt_token](../README.md#jwt_token)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | merge task status | - |
+| **400** | Validation Error | - |
+| **401** | Unauthorized | - |
+| **403** | Forbidden | - |
+| **404** | Resource Not Found | - |
+| **409** | Resource Conflicts With Target | - |
+| **412** | Precondition Failed | - |
+| **429** | too many requests | - |
+| **501** | Not Implemented | - |
+| **0** | Internal Server Error | - |
+
# **mergePullRequest**
> MergeResult mergePullRequest(repository, pullRequest).execute();
@@ -1516,7 +1932,7 @@ public class Example {
| **403** | Forbidden | - |
| **404** | Resource Not Found | - |
| **409** | Conflict Deprecated: content schema will return Error format and not an empty MergeResult | - |
-| **412** | precondition failed (e.g. a pre-merge hook returned a failure) | - |
+| **412** | precondition failed | - |
| **429** | too many requests | - |
| **0** | Internal Server Error | - |
diff --git a/clients/java/docs/MergeAsyncStatus.md b/clients/java/docs/MergeAsyncStatus.md
new file mode 100644
index 00000000000..1b98be628a4
--- /dev/null
+++ b/clients/java/docs/MergeAsyncStatus.md
@@ -0,0 +1,18 @@
+
+
+# MergeAsyncStatus
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**taskId** | **String** | the id of the async task | |
+|**completed** | **Boolean** | true if the task has completed (either successfully or with an error) | |
+|**updateTime** | **OffsetDateTime** | last time the task status was updated | |
+|**error** | [**Error**](Error.md) | | [optional] |
+|**statusCode** | **Integer** | an http status code that correlates with the underlying error if exists | [optional] |
+|**result** | [**MergeResult**](MergeResult.md) | | [optional] |
+
+
+
diff --git a/clients/java/docs/PullsApi.md b/clients/java/docs/PullsApi.md
index b0580e55bc4..cc95817b1d1 100644
--- a/clients/java/docs/PullsApi.md
+++ b/clients/java/docs/PullsApi.md
@@ -406,7 +406,7 @@ public class Example {
| **403** | Forbidden | - |
| **404** | Resource Not Found | - |
| **409** | Conflict Deprecated: content schema will return Error format and not an empty MergeResult | - |
-| **412** | precondition failed (e.g. a pre-merge hook returned a failure) | - |
+| **412** | precondition failed | - |
| **429** | too many requests | - |
| **0** | Internal Server Error | - |
diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/CommitsApi.java b/clients/java/src/main/java/io/lakefs/clients/sdk/CommitsApi.java
index 9ba183e8f09..4941e21af41 100644
--- a/clients/java/src/main/java/io/lakefs/clients/sdk/CommitsApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/sdk/CommitsApi.java
@@ -197,7 +197,7 @@ public APIcommitRequest sourceMetarange(String sourceMetarange) {
| 403 | Forbidden | - |
| 404 | Resource Not Found | - |
| 409 | Resource Conflicts With Target | - |
- | 412 | Precondition Failed (e.g. a pre-commit hook returned a failure) | - |
+ | 412 | Precondition Failed | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
@@ -219,7 +219,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
| 403 | Forbidden | - |
| 404 | Resource Not Found | - |
| 409 | Resource Conflicts With Target | - |
- | 412 | Precondition Failed (e.g. a pre-commit hook returned a failure) | - |
+ | 412 | Precondition Failed | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
@@ -242,7 +242,7 @@ public Commit execute() throws ApiException {
| 403 | Forbidden | - |
| 404 | Resource Not Found | - |
| 409 | Resource Conflicts With Target | - |
- | 412 | Precondition Failed (e.g. a pre-commit hook returned a failure) | - |
+ | 412 | Precondition Failed | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
@@ -265,7 +265,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
| 403 | Forbidden | - |
| 404 | Resource Not Found | - |
| 409 | Resource Conflicts With Target | - |
- | 412 | Precondition Failed (e.g. a pre-commit hook returned a failure) | - |
+ | 412 | Precondition Failed | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
@@ -291,7 +291,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api
| 403 | Forbidden | - |
| 404 | Resource Not Found | - |
| 409 | Resource Conflicts With Target | - |
- | 412 | Precondition Failed (e.g. a pre-commit hook returned a failure) | - |
+ | 412 | Precondition Failed | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/ExperimentalApi.java b/clients/java/src/main/java/io/lakefs/clients/sdk/ExperimentalApi.java
index e2dc7eebe1e..1ca633f882a 100644
--- a/clients/java/src/main/java/io/lakefs/clients/sdk/ExperimentalApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/sdk/ExperimentalApi.java
@@ -29,6 +29,8 @@
import io.lakefs.clients.sdk.model.AbortPresignMultipartUpload;
import io.lakefs.clients.sdk.model.AuthenticationToken;
+import io.lakefs.clients.sdk.model.CommitAsyncStatus;
+import io.lakefs.clients.sdk.model.CommitCreation;
import io.lakefs.clients.sdk.model.CompletePresignMultipartUpload;
import io.lakefs.clients.sdk.model.Error;
import io.lakefs.clients.sdk.model.ExternalLoginInformation;
@@ -36,6 +38,8 @@
import io.lakefs.clients.sdk.model.ExternalPrincipalCreation;
import io.lakefs.clients.sdk.model.ExternalPrincipalList;
import io.lakefs.clients.sdk.model.License;
+import io.lakefs.clients.sdk.model.Merge;
+import io.lakefs.clients.sdk.model.MergeAsyncStatus;
import io.lakefs.clients.sdk.model.MergeResult;
import io.lakefs.clients.sdk.model.ObjectStats;
import io.lakefs.clients.sdk.model.PresignMultipartUpload;
@@ -46,6 +50,7 @@
import io.lakefs.clients.sdk.model.PullRequestsList;
import io.lakefs.clients.sdk.model.StagingLocation;
import io.lakefs.clients.sdk.model.StsAuthRequest;
+import io.lakefs.clients.sdk.model.TaskCreation;
import io.lakefs.clients.sdk.model.UpdateObjectUserMetadata;
import io.lakefs.clients.sdk.model.UploadPartCopyFrom;
import io.lakefs.clients.sdk.model.UploadPartFrom;
@@ -309,7 +314,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiEx
public APIabortPresignMultipartUploadRequest abortPresignMultipartUpload(String repository, String branch, String uploadId, String path) {
return new APIabortPresignMultipartUploadRequest(repository, branch, uploadId, path);
}
- private okhttp3.Call completePresignMultipartUploadCall(String repository, String branch, String uploadId, String path, CompletePresignMultipartUpload completePresignMultipartUpload, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call commitAsyncCall(String repository, String branch, CommitCreation commitCreation, String sourceMetarange, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -323,13 +328,12 @@ private okhttp3.Call completePresignMultipartUploadCall(String repository, Strin
basePath = null;
}
- Object localVarPostBody = completePresignMultipartUpload;
+ Object localVarPostBody = commitCreation;
// create path and map variables
- String localVarPath = "/repositories/{repository}/branches/{branch}/staging/pmpu/{uploadId}"
+ String localVarPath = "/repositories/{repository}/branches/{branch}/commits/async"
.replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()))
- .replace("{" + "uploadId" + "}", localVarApiClient.escapeString(uploadId.toString()));
+ .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -337,8 +341,8 @@ private okhttp3.Call completePresignMultipartUploadCall(String repository, Strin
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
- if (path != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
+ if (sourceMetarange != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("source_metarange", sourceMetarange));
}
final String[] localVarAccepts = {
@@ -358,182 +362,179 @@ private okhttp3.Call completePresignMultipartUploadCall(String repository, Strin
}
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call completePresignMultipartUploadValidateBeforeCall(String repository, String branch, String uploadId, String path, CompletePresignMultipartUpload completePresignMultipartUpload, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call commitAsyncValidateBeforeCall(String repository, String branch, CommitCreation commitCreation, String sourceMetarange, 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 completePresignMultipartUpload(Async)");
+ throw new ApiException("Missing the required parameter 'repository' when calling commitAsync(Async)");
}
// verify the required parameter 'branch' is set
if (branch == null) {
- throw new ApiException("Missing the required parameter 'branch' when calling completePresignMultipartUpload(Async)");
- }
-
- // verify the required parameter 'uploadId' is set
- if (uploadId == null) {
- throw new ApiException("Missing the required parameter 'uploadId' when calling completePresignMultipartUpload(Async)");
+ throw new ApiException("Missing the required parameter 'branch' when calling commitAsync(Async)");
}
- // verify the required parameter 'path' is set
- if (path == null) {
- throw new ApiException("Missing the required parameter 'path' when calling completePresignMultipartUpload(Async)");
+ // verify the required parameter 'commitCreation' is set
+ if (commitCreation == null) {
+ throw new ApiException("Missing the required parameter 'commitCreation' when calling commitAsync(Async)");
}
- return completePresignMultipartUploadCall(repository, branch, uploadId, path, completePresignMultipartUpload, _callback);
+ return commitAsyncCall(repository, branch, commitCreation, sourceMetarange, _callback);
}
- private ApiResponse completePresignMultipartUploadWithHttpInfo(String repository, String branch, String uploadId, String path, CompletePresignMultipartUpload completePresignMultipartUpload) throws ApiException {
- okhttp3.Call localVarCall = completePresignMultipartUploadValidateBeforeCall(repository, branch, uploadId, path, completePresignMultipartUpload, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ private ApiResponse commitAsyncWithHttpInfo(String repository, String branch, CommitCreation commitCreation, String sourceMetarange) throws ApiException {
+ okhttp3.Call localVarCall = commitAsyncValidateBeforeCall(repository, branch, commitCreation, sourceMetarange, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
- private okhttp3.Call completePresignMultipartUploadAsync(String repository, String branch, String uploadId, String path, CompletePresignMultipartUpload completePresignMultipartUpload, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call commitAsyncAsync(String repository, String branch, CommitCreation commitCreation, String sourceMetarange, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = completePresignMultipartUploadValidateBeforeCall(repository, branch, uploadId, path, completePresignMultipartUpload, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ okhttp3.Call localVarCall = commitAsyncValidateBeforeCall(repository, branch, commitCreation, sourceMetarange, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
- public class APIcompletePresignMultipartUploadRequest {
+ public class APIcommitAsyncRequest {
private final String repository;
private final String branch;
- private final String uploadId;
- private final String path;
- private CompletePresignMultipartUpload completePresignMultipartUpload;
+ private final CommitCreation commitCreation;
+ private String sourceMetarange;
- private APIcompletePresignMultipartUploadRequest(String repository, String branch, String uploadId, String path) {
+ private APIcommitAsyncRequest(String repository, String branch, CommitCreation commitCreation) {
this.repository = repository;
this.branch = branch;
- this.uploadId = uploadId;
- this.path = path;
+ this.commitCreation = commitCreation;
}
/**
- * Set completePresignMultipartUpload
- * @param completePresignMultipartUpload (optional)
- * @return APIcompletePresignMultipartUploadRequest
+ * Set sourceMetarange
+ * @param sourceMetarange The source metarange to commit. Branch must not have uncommitted changes. (optional)
+ * @return APIcommitAsyncRequest
*/
- public APIcompletePresignMultipartUploadRequest completePresignMultipartUpload(CompletePresignMultipartUpload completePresignMultipartUpload) {
- this.completePresignMultipartUpload = completePresignMultipartUpload;
+ public APIcommitAsyncRequest sourceMetarange(String sourceMetarange) {
+ this.sourceMetarange = sourceMetarange;
return this;
}
/**
- * Build call for completePresignMultipartUpload
+ * Build call for commitAsync
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | Presign multipart upload completed | - |
- | 400 | Bad Request | - |
+ | 202 | commit task started | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
- | 409 | conflict with a commit, try here | - |
| 429 | too many requests | - |
+ | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return completePresignMultipartUploadCall(repository, branch, uploadId, path, completePresignMultipartUpload, _callback);
+ return commitAsyncCall(repository, branch, commitCreation, sourceMetarange, _callback);
}
/**
- * Execute completePresignMultipartUpload request
- * @return ObjectStats
+ * Execute commitAsync request
+ * @return TaskCreation
* @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 | Presign multipart upload completed | - |
- | 400 | Bad Request | - |
+ | 202 | commit task started | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
- | 409 | conflict with a commit, try here | - |
| 429 | too many requests | - |
+ | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public ObjectStats execute() throws ApiException {
- ApiResponse localVarResp = completePresignMultipartUploadWithHttpInfo(repository, branch, uploadId, path, completePresignMultipartUpload);
+ public TaskCreation execute() throws ApiException {
+ ApiResponse localVarResp = commitAsyncWithHttpInfo(repository, branch, commitCreation, sourceMetarange);
return localVarResp.getData();
}
/**
- * Execute completePresignMultipartUpload request with HTTP info returned
- * @return ApiResponse<ObjectStats>
+ * Execute commitAsync request with HTTP info returned
+ * @return ApiResponse<TaskCreation>
* @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 | Presign multipart upload completed | - |
- | 400 | Bad Request | - |
+ | 202 | commit task started | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
- | 409 | conflict with a commit, try here | - |
| 429 | too many requests | - |
+ | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return completePresignMultipartUploadWithHttpInfo(repository, branch, uploadId, path, completePresignMultipartUpload);
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return commitAsyncWithHttpInfo(repository, branch, commitCreation, sourceMetarange);
}
/**
- * Execute completePresignMultipartUpload request (asynchronously)
+ * Execute commitAsync request (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 | Presign multipart upload completed | - |
- | 400 | Bad Request | - |
+ | 202 | commit task started | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
- | 409 | conflict with a commit, try here | - |
| 429 | too many requests | - |
+ | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
- return completePresignMultipartUploadAsync(repository, branch, uploadId, path, completePresignMultipartUpload, _callback);
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return commitAsyncAsync(repository, branch, commitCreation, sourceMetarange, _callback);
}
}
/**
- * Complete a presign multipart upload request
- * Completes a presign multipart upload by assembling the uploaded parts.
+ * create commit asynchronously
+ *
* @param repository (required)
* @param branch (required)
- * @param uploadId (required)
- * @param path relative to the branch (required)
- * @return APIcompletePresignMultipartUploadRequest
+ * @param commitCreation (required)
+ * @return APIcommitAsyncRequest
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | Presign multipart upload completed | - |
- | 400 | Bad Request | - |
+ | 202 | commit task started | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
- | 409 | conflict with a commit, try here | - |
| 429 | too many requests | - |
+ | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public APIcompletePresignMultipartUploadRequest completePresignMultipartUpload(String repository, String branch, String uploadId, String path) {
- return new APIcompletePresignMultipartUploadRequest(repository, branch, uploadId, path);
+ public APIcommitAsyncRequest commitAsync(String repository, String branch, CommitCreation commitCreation) {
+ return new APIcommitAsyncRequest(repository, branch, commitCreation);
}
- private okhttp3.Call createPresignMultipartUploadCall(String repository, String branch, String path, Integer parts, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call commitAsyncStatusCall(String repository, String branch, String id, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -550,9 +551,10 @@ private okhttp3.Call createPresignMultipartUploadCall(String repository, String
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/repositories/{repository}/branches/{branch}/staging/pmpu"
+ String localVarPath = "/repositories/{repository}/branches/{branch}/commits/async/{id}/status"
.replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()))
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -560,14 +562,6 @@ private okhttp3.Call createPresignMultipartUploadCall(String repository, String
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
- if (path != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
- }
-
- if (parts != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("parts", parts));
- }
-
final String[] localVarAccepts = {
"application/json"
};
@@ -584,169 +578,178 @@ private okhttp3.Call createPresignMultipartUploadCall(String repository, String
}
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call createPresignMultipartUploadValidateBeforeCall(String repository, String branch, String path, Integer parts, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call commitAsyncStatusValidateBeforeCall(String repository, String branch, String id, 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 createPresignMultipartUpload(Async)");
+ throw new ApiException("Missing the required parameter 'repository' when calling commitAsyncStatus(Async)");
}
// verify the required parameter 'branch' is set
if (branch == null) {
- throw new ApiException("Missing the required parameter 'branch' when calling createPresignMultipartUpload(Async)");
+ throw new ApiException("Missing the required parameter 'branch' when calling commitAsyncStatus(Async)");
}
- // verify the required parameter 'path' is set
- if (path == null) {
- throw new ApiException("Missing the required parameter 'path' when calling createPresignMultipartUpload(Async)");
+ // verify the required parameter 'id' is set
+ if (id == null) {
+ throw new ApiException("Missing the required parameter 'id' when calling commitAsyncStatus(Async)");
}
- return createPresignMultipartUploadCall(repository, branch, path, parts, _callback);
+ return commitAsyncStatusCall(repository, branch, id, _callback);
}
- private ApiResponse createPresignMultipartUploadWithHttpInfo(String repository, String branch, String path, Integer parts) throws ApiException {
- okhttp3.Call localVarCall = createPresignMultipartUploadValidateBeforeCall(repository, branch, path, parts, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ private ApiResponse commitAsyncStatusWithHttpInfo(String repository, String branch, String id) throws ApiException {
+ okhttp3.Call localVarCall = commitAsyncStatusValidateBeforeCall(repository, branch, id, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
- private okhttp3.Call createPresignMultipartUploadAsync(String repository, String branch, String path, Integer parts, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call commitAsyncStatusAsync(String repository, String branch, String id, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = createPresignMultipartUploadValidateBeforeCall(repository, branch, path, parts, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ okhttp3.Call localVarCall = commitAsyncStatusValidateBeforeCall(repository, branch, id, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
- public class APIcreatePresignMultipartUploadRequest {
+ public class APIcommitAsyncStatusRequest {
private final String repository;
private final String branch;
- private final String path;
- private Integer parts;
+ private final String id;
- private APIcreatePresignMultipartUploadRequest(String repository, String branch, String path) {
+ private APIcommitAsyncStatusRequest(String repository, String branch, String id) {
this.repository = repository;
this.branch = branch;
- this.path = path;
- }
-
- /**
- * Set parts
- * @param parts number of presigned URL parts required to upload (optional)
- * @return APIcreatePresignMultipartUploadRequest
- */
- public APIcreatePresignMultipartUploadRequest parts(Integer parts) {
- this.parts = parts;
- return this;
+ this.id = id;
}
/**
- * Build call for createPresignMultipartUpload
+ * Build call for commitAsyncStatus
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
| Status Code | Description | Response Headers |
- | 201 | Presign multipart upload initiated | - |
- | 400 | Bad Request | - |
+ | 200 | commit task status | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
+ | 412 | Precondition Failed | - |
| 429 | too many requests | - |
+ | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return createPresignMultipartUploadCall(repository, branch, path, parts, _callback);
+ return commitAsyncStatusCall(repository, branch, id, _callback);
}
/**
- * Execute createPresignMultipartUpload request
- * @return PresignMultipartUpload
+ * Execute commitAsyncStatus request
+ * @return CommitAsyncStatus
* @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 | Presign multipart upload initiated | - |
- | 400 | Bad Request | - |
+ | 200 | commit task status | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
+ | 412 | Precondition Failed | - |
| 429 | too many requests | - |
+ | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public PresignMultipartUpload execute() throws ApiException {
- ApiResponse localVarResp = createPresignMultipartUploadWithHttpInfo(repository, branch, path, parts);
+ public CommitAsyncStatus execute() throws ApiException {
+ ApiResponse localVarResp = commitAsyncStatusWithHttpInfo(repository, branch, id);
return localVarResp.getData();
}
/**
- * Execute createPresignMultipartUpload request with HTTP info returned
- * @return ApiResponse<PresignMultipartUpload>
+ * Execute commitAsyncStatus request with HTTP info returned
+ * @return ApiResponse<CommitAsyncStatus>
* @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 | Presign multipart upload initiated | - |
- | 400 | Bad Request | - |
+ | 200 | commit task status | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
+ | 412 | Precondition Failed | - |
| 429 | too many requests | - |
+ | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return createPresignMultipartUploadWithHttpInfo(repository, branch, path, parts);
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return commitAsyncStatusWithHttpInfo(repository, branch, id);
}
/**
- * Execute createPresignMultipartUpload request (asynchronously)
+ * Execute commitAsyncStatus request (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 |
- | 201 | Presign multipart upload initiated | - |
- | 400 | Bad Request | - |
+ | 200 | commit task status | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
+ | 412 | Precondition Failed | - |
| 429 | too many requests | - |
+ | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
- return createPresignMultipartUploadAsync(repository, branch, path, parts, _callback);
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return commitAsyncStatusAsync(repository, branch, id, _callback);
}
}
/**
- * Initiate a multipart upload
- * Initiates a multipart upload and returns an upload ID with presigned URLs for each part (optional). Part numbers starts with 1. Each part except the last one has minimum size depends on the underlying blockstore implementation. For example working with S3 blockstore, minimum size is 5MB (excluding the last part).
+ * get status of async commit operation
+ *
* @param repository (required)
* @param branch (required)
- * @param path relative to the branch (required)
- * @return APIcreatePresignMultipartUploadRequest
+ * @param id Unique identifier of the commit async task (required)
+ * @return APIcommitAsyncStatusRequest
* @http.response.details
| Status Code | Description | Response Headers |
- | 201 | Presign multipart upload initiated | - |
- | 400 | Bad Request | - |
+ | 200 | commit task status | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
+ | 412 | Precondition Failed | - |
| 429 | too many requests | - |
+ | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public APIcreatePresignMultipartUploadRequest createPresignMultipartUpload(String repository, String branch, String path) {
- return new APIcreatePresignMultipartUploadRequest(repository, branch, path);
+ public APIcommitAsyncStatusRequest commitAsyncStatus(String repository, String branch, String id) {
+ return new APIcommitAsyncStatusRequest(repository, branch, id);
}
- private okhttp3.Call createPullRequestCall(String repository, PullRequestCreation pullRequestCreation, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call completePresignMultipartUploadCall(String repository, String branch, String uploadId, String path, CompletePresignMultipartUpload completePresignMultipartUpload, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -760,11 +763,13 @@ private okhttp3.Call createPullRequestCall(String repository, PullRequestCreatio
basePath = null;
}
- Object localVarPostBody = pullRequestCreation;
+ Object localVarPostBody = completePresignMultipartUpload;
// create path and map variables
- String localVarPath = "/repositories/{repository}/pulls"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()));
+ String localVarPath = "/repositories/{repository}/branches/{branch}/staging/pmpu/{uploadId}"
+ .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
+ .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()))
+ .replace("{" + "uploadId" + "}", localVarApiClient.escapeString(uploadId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -772,6 +777,10 @@ private okhttp3.Call createPullRequestCall(String repository, PullRequestCreatio
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
+ if (path != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
+ }
+
final String[] localVarAccepts = {
"application/json"
};
@@ -789,160 +798,182 @@ private okhttp3.Call createPullRequestCall(String repository, PullRequestCreatio
}
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call createPullRequestValidateBeforeCall(String repository, PullRequestCreation pullRequestCreation, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call completePresignMultipartUploadValidateBeforeCall(String repository, String branch, String uploadId, String path, CompletePresignMultipartUpload completePresignMultipartUpload, 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 createPullRequest(Async)");
+ throw new ApiException("Missing the required parameter 'repository' when calling completePresignMultipartUpload(Async)");
}
- // verify the required parameter 'pullRequestCreation' is set
- if (pullRequestCreation == null) {
- throw new ApiException("Missing the required parameter 'pullRequestCreation' when calling createPullRequest(Async)");
+ // verify the required parameter 'branch' is set
+ if (branch == null) {
+ throw new ApiException("Missing the required parameter 'branch' when calling completePresignMultipartUpload(Async)");
}
- return createPullRequestCall(repository, pullRequestCreation, _callback);
+ // verify the required parameter 'uploadId' is set
+ if (uploadId == null) {
+ throw new ApiException("Missing the required parameter 'uploadId' when calling completePresignMultipartUpload(Async)");
+ }
+
+ // verify the required parameter 'path' is set
+ if (path == null) {
+ throw new ApiException("Missing the required parameter 'path' when calling completePresignMultipartUpload(Async)");
+ }
+
+ return completePresignMultipartUploadCall(repository, branch, uploadId, path, completePresignMultipartUpload, _callback);
}
- private ApiResponse createPullRequestWithHttpInfo(String repository, PullRequestCreation pullRequestCreation) throws ApiException {
- okhttp3.Call localVarCall = createPullRequestValidateBeforeCall(repository, pullRequestCreation, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ private ApiResponse completePresignMultipartUploadWithHttpInfo(String repository, String branch, String uploadId, String path, CompletePresignMultipartUpload completePresignMultipartUpload) throws ApiException {
+ okhttp3.Call localVarCall = completePresignMultipartUploadValidateBeforeCall(repository, branch, uploadId, path, completePresignMultipartUpload, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
- private okhttp3.Call createPullRequestAsync(String repository, PullRequestCreation pullRequestCreation, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call completePresignMultipartUploadAsync(String repository, String branch, String uploadId, String path, CompletePresignMultipartUpload completePresignMultipartUpload, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = createPullRequestValidateBeforeCall(repository, pullRequestCreation, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ okhttp3.Call localVarCall = completePresignMultipartUploadValidateBeforeCall(repository, branch, uploadId, path, completePresignMultipartUpload, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
- public class APIcreatePullRequestRequest {
+ public class APIcompletePresignMultipartUploadRequest {
private final String repository;
- private final PullRequestCreation pullRequestCreation;
+ private final String branch;
+ private final String uploadId;
+ private final String path;
+ private CompletePresignMultipartUpload completePresignMultipartUpload;
- private APIcreatePullRequestRequest(String repository, PullRequestCreation pullRequestCreation) {
+ private APIcompletePresignMultipartUploadRequest(String repository, String branch, String uploadId, String path) {
this.repository = repository;
- this.pullRequestCreation = pullRequestCreation;
+ this.branch = branch;
+ this.uploadId = uploadId;
+ this.path = path;
}
/**
- * Build call for createPullRequest
- * @param _callback ApiCallback API callback
- * @return Call to execute
- * @throws ApiException If fail to serialize the request body object
- * @http.response.details
-
- | Status Code | Description | Response Headers |
- | 201 | pull request created | - |
- | 400 | Validation Error | - |
- | 401 | Unauthorized | - |
- | 403 | Forbidden | - |
+ * Set completePresignMultipartUpload
+ * @param completePresignMultipartUpload (optional)
+ * @return APIcompletePresignMultipartUploadRequest
+ */
+ public APIcompletePresignMultipartUploadRequest completePresignMultipartUpload(CompletePresignMultipartUpload completePresignMultipartUpload) {
+ this.completePresignMultipartUpload = completePresignMultipartUpload;
+ return this;
+ }
+
+ /**
+ * Build call for completePresignMultipartUpload
+ * @param _callback ApiCallback API callback
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ | Status Code | Description | Response Headers |
+ | 200 | Presign multipart upload completed | - |
+ | 400 | Bad Request | - |
+ | 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
- | 409 | Resource Conflicts With Target | - |
+ | 409 | conflict with a commit, try here | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return createPullRequestCall(repository, pullRequestCreation, _callback);
+ return completePresignMultipartUploadCall(repository, branch, uploadId, path, completePresignMultipartUpload, _callback);
}
/**
- * Execute createPullRequest request
- * @return PullRequestCreationResponse
+ * Execute completePresignMultipartUpload request
+ * @return ObjectStats
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
| Status Code | Description | Response Headers |
- | 201 | pull request created | - |
- | 400 | Validation Error | - |
+ | 200 | Presign multipart upload completed | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
- | 409 | Resource Conflicts With Target | - |
+ | 409 | conflict with a commit, try here | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public PullRequestCreationResponse execute() throws ApiException {
- ApiResponse localVarResp = createPullRequestWithHttpInfo(repository, pullRequestCreation);
+ public ObjectStats execute() throws ApiException {
+ ApiResponse localVarResp = completePresignMultipartUploadWithHttpInfo(repository, branch, uploadId, path, completePresignMultipartUpload);
return localVarResp.getData();
}
/**
- * Execute createPullRequest request with HTTP info returned
- * @return ApiResponse<PullRequestCreationResponse>
+ * Execute completePresignMultipartUpload request with HTTP info returned
+ * @return ApiResponse<ObjectStats>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
| Status Code | Description | Response Headers |
- | 201 | pull request created | - |
- | 400 | Validation Error | - |
+ | 200 | Presign multipart upload completed | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
- | 409 | Resource Conflicts With Target | - |
+ | 409 | conflict with a commit, try here | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return createPullRequestWithHttpInfo(repository, pullRequestCreation);
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return completePresignMultipartUploadWithHttpInfo(repository, branch, uploadId, path, completePresignMultipartUpload);
}
/**
- * Execute createPullRequest request (asynchronously)
+ * Execute completePresignMultipartUpload request (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 |
- | 201 | pull request created | - |
- | 400 | Validation Error | - |
+ | 200 | Presign multipart upload completed | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
- | 409 | Resource Conflicts With Target | - |
+ | 409 | conflict with a commit, try here | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
- return createPullRequestAsync(repository, pullRequestCreation, _callback);
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return completePresignMultipartUploadAsync(repository, branch, uploadId, path, completePresignMultipartUpload, _callback);
}
}
/**
- * create pull request
- *
+ * Complete a presign multipart upload request
+ * Completes a presign multipart upload by assembling the uploaded parts.
* @param repository (required)
- * @param pullRequestCreation (required)
- * @return APIcreatePullRequestRequest
+ * @param branch (required)
+ * @param uploadId (required)
+ * @param path relative to the branch (required)
+ * @return APIcompletePresignMultipartUploadRequest
* @http.response.details
| Status Code | Description | Response Headers |
- | 201 | pull request created | - |
- | 400 | Validation Error | - |
+ | 200 | Presign multipart upload completed | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
- | 409 | Resource Conflicts With Target | - |
+ | 409 | conflict with a commit, try here | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public APIcreatePullRequestRequest createPullRequest(String repository, PullRequestCreation pullRequestCreation) {
- return new APIcreatePullRequestRequest(repository, pullRequestCreation);
+ public APIcompletePresignMultipartUploadRequest completePresignMultipartUpload(String repository, String branch, String uploadId, String path) {
+ return new APIcompletePresignMultipartUploadRequest(repository, branch, uploadId, path);
}
- private okhttp3.Call createUserExternalPrincipalCall(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call createPresignMultipartUploadCall(String repository, String branch, String path, Integer parts, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -956,11 +987,12 @@ private okhttp3.Call createUserExternalPrincipalCall(String userId, String princ
basePath = null;
}
- Object localVarPostBody = externalPrincipalCreation;
+ Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/auth/users/{userId}/external/principals"
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()));
+ String localVarPath = "/repositories/{repository}/branches/{branch}/staging/pmpu"
+ .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
+ .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -968,8 +1000,12 @@ private okhttp3.Call createUserExternalPrincipalCall(String userId, String princ
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
- if (principalId != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("principalId", principalId));
+ if (path != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
+ }
+
+ if (parts != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("parts", parts));
}
final String[] localVarAccepts = {
@@ -981,7 +1017,6 @@ private okhttp3.Call createUserExternalPrincipalCall(String userId, String princ
}
final String[] localVarContentTypes = {
- "application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -993,158 +1028,165 @@ private okhttp3.Call createUserExternalPrincipalCall(String userId, String princ
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call createUserExternalPrincipalValidateBeforeCall(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation, final ApiCallback _callback) throws ApiException {
- // verify the required parameter 'userId' is set
- if (userId == null) {
- throw new ApiException("Missing the required parameter 'userId' when calling createUserExternalPrincipal(Async)");
+ private okhttp3.Call createPresignMultipartUploadValidateBeforeCall(String repository, String branch, String path, Integer parts, 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 createPresignMultipartUpload(Async)");
}
- // verify the required parameter 'principalId' is set
- if (principalId == null) {
- throw new ApiException("Missing the required parameter 'principalId' when calling createUserExternalPrincipal(Async)");
+ // verify the required parameter 'branch' is set
+ if (branch == null) {
+ throw new ApiException("Missing the required parameter 'branch' when calling createPresignMultipartUpload(Async)");
}
- return createUserExternalPrincipalCall(userId, principalId, externalPrincipalCreation, _callback);
+ // verify the required parameter 'path' is set
+ if (path == null) {
+ throw new ApiException("Missing the required parameter 'path' when calling createPresignMultipartUpload(Async)");
+ }
+
+ return createPresignMultipartUploadCall(repository, branch, path, parts, _callback);
}
- private ApiResponse createUserExternalPrincipalWithHttpInfo(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation) throws ApiException {
- okhttp3.Call localVarCall = createUserExternalPrincipalValidateBeforeCall(userId, principalId, externalPrincipalCreation, null);
- return localVarApiClient.execute(localVarCall);
+ private ApiResponse createPresignMultipartUploadWithHttpInfo(String repository, String branch, String path, Integer parts) throws ApiException {
+ okhttp3.Call localVarCall = createPresignMultipartUploadValidateBeforeCall(repository, branch, path, parts, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
}
- private okhttp3.Call createUserExternalPrincipalAsync(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call createPresignMultipartUploadAsync(String repository, String branch, String path, Integer parts, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = createUserExternalPrincipalValidateBeforeCall(userId, principalId, externalPrincipalCreation, _callback);
- localVarApiClient.executeAsync(localVarCall, _callback);
+ okhttp3.Call localVarCall = createPresignMultipartUploadValidateBeforeCall(repository, branch, path, parts, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
- public class APIcreateUserExternalPrincipalRequest {
- private final String userId;
- private final String principalId;
- private ExternalPrincipalCreation externalPrincipalCreation;
+ public class APIcreatePresignMultipartUploadRequest {
+ private final String repository;
+ private final String branch;
+ private final String path;
+ private Integer parts;
- private APIcreateUserExternalPrincipalRequest(String userId, String principalId) {
- this.userId = userId;
- this.principalId = principalId;
+ private APIcreatePresignMultipartUploadRequest(String repository, String branch, String path) {
+ this.repository = repository;
+ this.branch = branch;
+ this.path = path;
}
/**
- * Set externalPrincipalCreation
- * @param externalPrincipalCreation (optional)
- * @return APIcreateUserExternalPrincipalRequest
+ * Set parts
+ * @param parts number of presigned URL parts required to upload (optional)
+ * @return APIcreatePresignMultipartUploadRequest
*/
- public APIcreateUserExternalPrincipalRequest externalPrincipalCreation(ExternalPrincipalCreation externalPrincipalCreation) {
- this.externalPrincipalCreation = externalPrincipalCreation;
+ public APIcreatePresignMultipartUploadRequest parts(Integer parts) {
+ this.parts = parts;
return this;
}
/**
- * Build call for createUserExternalPrincipal
+ * Build call for createPresignMultipartUpload
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
| Status Code | Description | Response Headers |
- | 201 | external principal attached successfully | - |
+ | 201 | Presign multipart upload initiated | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
- | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return createUserExternalPrincipalCall(userId, principalId, externalPrincipalCreation, _callback);
+ return createPresignMultipartUploadCall(repository, branch, path, parts, _callback);
}
/**
- * Execute createUserExternalPrincipal request
+ * Execute createPresignMultipartUpload request
+ * @return PresignMultipartUpload
* @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 | external principal attached successfully | - |
+ | 201 | Presign multipart upload initiated | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
- | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public void execute() throws ApiException {
- createUserExternalPrincipalWithHttpInfo(userId, principalId, externalPrincipalCreation);
+ public PresignMultipartUpload execute() throws ApiException {
+ ApiResponse localVarResp = createPresignMultipartUploadWithHttpInfo(repository, branch, path, parts);
+ return localVarResp.getData();
}
/**
- * Execute createUserExternalPrincipal request with HTTP info returned
- * @return ApiResponse<Void>
+ * Execute createPresignMultipartUpload request with HTTP info returned
+ * @return ApiResponse<PresignMultipartUpload>
* @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 | external principal attached successfully | - |
+ | 201 | Presign multipart upload initiated | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
- | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return createUserExternalPrincipalWithHttpInfo(userId, principalId, externalPrincipalCreation);
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return createPresignMultipartUploadWithHttpInfo(repository, branch, path, parts);
}
/**
- * Execute createUserExternalPrincipal request (asynchronously)
+ * Execute createPresignMultipartUpload request (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 |
- | 201 | external principal attached successfully | - |
+ | 201 | Presign multipart upload initiated | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
- | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
- return createUserExternalPrincipalAsync(userId, principalId, externalPrincipalCreation, _callback);
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return createPresignMultipartUploadAsync(repository, branch, path, parts, _callback);
}
}
/**
- * attach external principal to user
- *
- * @param userId (required)
- * @param principalId (required)
- * @return APIcreateUserExternalPrincipalRequest
+ * Initiate a multipart upload
+ * Initiates a multipart upload and returns an upload ID with presigned URLs for each part (optional). Part numbers starts with 1. Each part except the last one has minimum size depends on the underlying blockstore implementation. For example working with S3 blockstore, minimum size is 5MB (excluding the last part).
+ * @param repository (required)
+ * @param branch (required)
+ * @param path relative to the branch (required)
+ * @return APIcreatePresignMultipartUploadRequest
* @http.response.details
| Status Code | Description | Response Headers |
- | 201 | external principal attached successfully | - |
+ | 201 | Presign multipart upload initiated | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
- | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public APIcreateUserExternalPrincipalRequest createUserExternalPrincipal(String userId, String principalId) {
- return new APIcreateUserExternalPrincipalRequest(userId, principalId);
+ public APIcreatePresignMultipartUploadRequest createPresignMultipartUpload(String repository, String branch, String path) {
+ return new APIcreatePresignMultipartUploadRequest(repository, branch, path);
}
- private okhttp3.Call deleteUserExternalPrincipalCall(String userId, String principalId, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call createPullRequestCall(String repository, PullRequestCreation pullRequestCreation, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1158,11 +1200,11 @@ private okhttp3.Call deleteUserExternalPrincipalCall(String userId, String princ
basePath = null;
}
- Object localVarPostBody = null;
+ Object localVarPostBody = pullRequestCreation;
// create path and map variables
- String localVarPath = "/auth/users/{userId}/external/principals"
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()));
+ String localVarPath = "/repositories/{repository}/pulls"
+ .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1170,10 +1212,6 @@ private okhttp3.Call deleteUserExternalPrincipalCall(String userId, String princ
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
- if (principalId != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("principalId", principalId));
- }
-
final String[] localVarAccepts = {
"application/json"
};
@@ -1183,6 +1221,7 @@ private okhttp3.Call deleteUserExternalPrincipalCall(String userId, String princ
}
final String[] localVarContentTypes = {
+ "application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1190,146 +1229,160 @@ private okhttp3.Call deleteUserExternalPrincipalCall(String userId, String princ
}
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call deleteUserExternalPrincipalValidateBeforeCall(String userId, String principalId, final ApiCallback _callback) throws ApiException {
- // verify the required parameter 'userId' is set
- if (userId == null) {
- throw new ApiException("Missing the required parameter 'userId' when calling deleteUserExternalPrincipal(Async)");
+ private okhttp3.Call createPullRequestValidateBeforeCall(String repository, PullRequestCreation pullRequestCreation, 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 createPullRequest(Async)");
}
- // verify the required parameter 'principalId' is set
- if (principalId == null) {
- throw new ApiException("Missing the required parameter 'principalId' when calling deleteUserExternalPrincipal(Async)");
+ // verify the required parameter 'pullRequestCreation' is set
+ if (pullRequestCreation == null) {
+ throw new ApiException("Missing the required parameter 'pullRequestCreation' when calling createPullRequest(Async)");
}
- return deleteUserExternalPrincipalCall(userId, principalId, _callback);
+ return createPullRequestCall(repository, pullRequestCreation, _callback);
}
- private ApiResponse deleteUserExternalPrincipalWithHttpInfo(String userId, String principalId) throws ApiException {
- okhttp3.Call localVarCall = deleteUserExternalPrincipalValidateBeforeCall(userId, principalId, null);
- return localVarApiClient.execute(localVarCall);
+ private ApiResponse createPullRequestWithHttpInfo(String repository, PullRequestCreation pullRequestCreation) throws ApiException {
+ okhttp3.Call localVarCall = createPullRequestValidateBeforeCall(repository, pullRequestCreation, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
}
- private okhttp3.Call deleteUserExternalPrincipalAsync(String userId, String principalId, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call createPullRequestAsync(String repository, PullRequestCreation pullRequestCreation, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = deleteUserExternalPrincipalValidateBeforeCall(userId, principalId, _callback);
- localVarApiClient.executeAsync(localVarCall, _callback);
+ okhttp3.Call localVarCall = createPullRequestValidateBeforeCall(repository, pullRequestCreation, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
- public class APIdeleteUserExternalPrincipalRequest {
- private final String userId;
- private final String principalId;
+ public class APIcreatePullRequestRequest {
+ private final String repository;
+ private final PullRequestCreation pullRequestCreation;
- private APIdeleteUserExternalPrincipalRequest(String userId, String principalId) {
- this.userId = userId;
- this.principalId = principalId;
+ private APIcreatePullRequestRequest(String repository, PullRequestCreation pullRequestCreation) {
+ this.repository = repository;
+ this.pullRequestCreation = pullRequestCreation;
}
/**
- * Build call for deleteUserExternalPrincipal
+ * Build call for createPullRequest
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
| Status Code | Description | Response Headers |
- | 204 | external principal detached successfully | - |
- | 400 | Bad Request | - |
+ | 201 | pull request created | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return deleteUserExternalPrincipalCall(userId, principalId, _callback);
+ return createPullRequestCall(repository, pullRequestCreation, _callback);
}
/**
- * Execute deleteUserExternalPrincipal request
+ * Execute createPullRequest request
+ * @return PullRequestCreationResponse
* @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 | external principal detached successfully | - |
- | 400 | Bad Request | - |
+ | 201 | pull request created | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public void execute() throws ApiException {
- deleteUserExternalPrincipalWithHttpInfo(userId, principalId);
+ public PullRequestCreationResponse execute() throws ApiException {
+ ApiResponse localVarResp = createPullRequestWithHttpInfo(repository, pullRequestCreation);
+ return localVarResp.getData();
}
/**
- * Execute deleteUserExternalPrincipal request with HTTP info returned
- * @return ApiResponse<Void>
+ * Execute createPullRequest request with HTTP info returned
+ * @return ApiResponse<PullRequestCreationResponse>
* @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 | external principal detached successfully | - |
- | 400 | Bad Request | - |
+ | 201 | pull request created | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return deleteUserExternalPrincipalWithHttpInfo(userId, principalId);
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return createPullRequestWithHttpInfo(repository, pullRequestCreation);
}
/**
- * Execute deleteUserExternalPrincipal request (asynchronously)
+ * Execute createPullRequest request (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 |
- | 204 | external principal detached successfully | - |
- | 400 | Bad Request | - |
+ | 201 | pull request created | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
- return deleteUserExternalPrincipalAsync(userId, principalId, _callback);
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return createPullRequestAsync(repository, pullRequestCreation, _callback);
}
}
/**
- * delete external principal from user
+ * create pull request
*
- * @param userId (required)
- * @param principalId (required)
- * @return APIdeleteUserExternalPrincipalRequest
+ * @param repository (required)
+ * @param pullRequestCreation (required)
+ * @return APIcreatePullRequestRequest
* @http.response.details
| Status Code | Description | Response Headers |
- | 204 | external principal detached successfully | - |
- | 400 | Bad Request | - |
+ | 201 | pull request created | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public APIdeleteUserExternalPrincipalRequest deleteUserExternalPrincipal(String userId, String principalId) {
- return new APIdeleteUserExternalPrincipalRequest(userId, principalId);
+ public APIcreatePullRequestRequest createPullRequest(String repository, PullRequestCreation pullRequestCreation) {
+ return new APIcreatePullRequestRequest(repository, pullRequestCreation);
}
- private okhttp3.Call externalPrincipalLoginCall(ExternalLoginInformation externalLoginInformation, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call createUserExternalPrincipalCall(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1343,10 +1396,11 @@ private okhttp3.Call externalPrincipalLoginCall(ExternalLoginInformation externa
basePath = null;
}
- Object localVarPostBody = externalLoginInformation;
+ Object localVarPostBody = externalPrincipalCreation;
// create path and map variables
- String localVarPath = "/auth/external/principal/login";
+ String localVarPath = "/auth/users/{userId}/external/principals"
+ .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1354,6 +1408,10 @@ private okhttp3.Call externalPrincipalLoginCall(ExternalLoginInformation externa
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
+ if (principalId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("principalId", principalId));
+ }
+
final String[] localVarAccepts = {
"application/json"
};
@@ -1370,151 +1428,163 @@ private okhttp3.Call externalPrincipalLoginCall(ExternalLoginInformation externa
localVarHeaderParams.put("Content-Type", localVarContentType);
}
- String[] localVarAuthNames = new String[] { };
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call externalPrincipalLoginValidateBeforeCall(ExternalLoginInformation externalLoginInformation, final ApiCallback _callback) throws ApiException {
- return externalPrincipalLoginCall(externalLoginInformation, _callback);
+ private okhttp3.Call createUserExternalPrincipalValidateBeforeCall(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'userId' is set
+ if (userId == null) {
+ throw new ApiException("Missing the required parameter 'userId' when calling createUserExternalPrincipal(Async)");
+ }
+
+ // verify the required parameter 'principalId' is set
+ if (principalId == null) {
+ throw new ApiException("Missing the required parameter 'principalId' when calling createUserExternalPrincipal(Async)");
+ }
+
+ return createUserExternalPrincipalCall(userId, principalId, externalPrincipalCreation, _callback);
}
- private ApiResponse externalPrincipalLoginWithHttpInfo(ExternalLoginInformation externalLoginInformation) throws ApiException {
- okhttp3.Call localVarCall = externalPrincipalLoginValidateBeforeCall(externalLoginInformation, null);
- Type localVarReturnType = new TypeToken(){}.getType();
- return localVarApiClient.execute(localVarCall, localVarReturnType);
+ private ApiResponse createUserExternalPrincipalWithHttpInfo(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation) throws ApiException {
+ okhttp3.Call localVarCall = createUserExternalPrincipalValidateBeforeCall(userId, principalId, externalPrincipalCreation, null);
+ return localVarApiClient.execute(localVarCall);
}
- private okhttp3.Call externalPrincipalLoginAsync(ExternalLoginInformation externalLoginInformation, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call createUserExternalPrincipalAsync(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = externalPrincipalLoginValidateBeforeCall(externalLoginInformation, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
- localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ okhttp3.Call localVarCall = createUserExternalPrincipalValidateBeforeCall(userId, principalId, externalPrincipalCreation, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
- public class APIexternalPrincipalLoginRequest {
- private ExternalLoginInformation externalLoginInformation;
+ public class APIcreateUserExternalPrincipalRequest {
+ private final String userId;
+ private final String principalId;
+ private ExternalPrincipalCreation externalPrincipalCreation;
- private APIexternalPrincipalLoginRequest() {
+ private APIcreateUserExternalPrincipalRequest(String userId, String principalId) {
+ this.userId = userId;
+ this.principalId = principalId;
}
/**
- * Set externalLoginInformation
- * @param externalLoginInformation (optional)
- * @return APIexternalPrincipalLoginRequest
+ * Set externalPrincipalCreation
+ * @param externalPrincipalCreation (optional)
+ * @return APIcreateUserExternalPrincipalRequest
*/
- public APIexternalPrincipalLoginRequest externalLoginInformation(ExternalLoginInformation externalLoginInformation) {
- this.externalLoginInformation = externalLoginInformation;
+ public APIcreateUserExternalPrincipalRequest externalPrincipalCreation(ExternalPrincipalCreation externalPrincipalCreation) {
+ this.externalPrincipalCreation = externalPrincipalCreation;
return this;
}
/**
- * Build call for externalPrincipalLogin
+ * Build call for createUserExternalPrincipal
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | successful external login | - |
+ | 201 | external principal attached successfully | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return externalPrincipalLoginCall(externalLoginInformation, _callback);
+ return createUserExternalPrincipalCall(userId, principalId, externalPrincipalCreation, _callback);
}
/**
- * Execute externalPrincipalLogin request
- * @return AuthenticationToken
+ * Execute createUserExternalPrincipal request
* @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 | successful external login | - |
+ | 201 | external principal attached successfully | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public AuthenticationToken execute() throws ApiException {
- ApiResponse localVarResp = externalPrincipalLoginWithHttpInfo(externalLoginInformation);
- return localVarResp.getData();
+ public void execute() throws ApiException {
+ createUserExternalPrincipalWithHttpInfo(userId, principalId, externalPrincipalCreation);
}
/**
- * Execute externalPrincipalLogin request with HTTP info returned
- * @return ApiResponse<AuthenticationToken>
+ * Execute createUserExternalPrincipal request with HTTP info returned
+ * @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | successful external login | - |
+ | 201 | external principal attached successfully | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return externalPrincipalLoginWithHttpInfo(externalLoginInformation);
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return createUserExternalPrincipalWithHttpInfo(userId, principalId, externalPrincipalCreation);
}
/**
- * Execute externalPrincipalLogin request (asynchronously)
+ * Execute createUserExternalPrincipal request (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 | successful external login | - |
+ | 201 | external principal attached successfully | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
- return externalPrincipalLoginAsync(externalLoginInformation, _callback);
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return createUserExternalPrincipalAsync(userId, principalId, externalPrincipalCreation, _callback);
}
}
/**
- * perform a login using an external authenticator
+ * attach external principal to user
*
- * @return APIexternalPrincipalLoginRequest
+ * @param userId (required)
+ * @param principalId (required)
+ * @return APIcreateUserExternalPrincipalRequest
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | successful external login | - |
+ | 201 | external principal attached successfully | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 403 | Forbidden | - |
| 404 | Resource Not Found | - |
+ | 409 | Resource Conflicts With Target | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public APIexternalPrincipalLoginRequest externalPrincipalLogin() {
- return new APIexternalPrincipalLoginRequest();
+ public APIcreateUserExternalPrincipalRequest createUserExternalPrincipal(String userId, String principalId) {
+ return new APIcreateUserExternalPrincipalRequest(userId, principalId);
}
- private okhttp3.Call getExternalPrincipalCall(String principalId, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call deleteUserExternalPrincipalCall(String userId, String principalId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1531,7 +1601,8 @@ private okhttp3.Call getExternalPrincipalCall(String principalId, final ApiCallb
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/auth/external/principals";
+ String localVarPath = "/auth/users/{userId}/external/principals"
+ .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1559,51 +1630,56 @@ private okhttp3.Call getExternalPrincipalCall(String principalId, final ApiCallb
}
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getExternalPrincipalValidateBeforeCall(String principalId, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call deleteUserExternalPrincipalValidateBeforeCall(String userId, String principalId, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'userId' is set
+ if (userId == null) {
+ throw new ApiException("Missing the required parameter 'userId' when calling deleteUserExternalPrincipal(Async)");
+ }
+
// verify the required parameter 'principalId' is set
if (principalId == null) {
- throw new ApiException("Missing the required parameter 'principalId' when calling getExternalPrincipal(Async)");
+ throw new ApiException("Missing the required parameter 'principalId' when calling deleteUserExternalPrincipal(Async)");
}
- return getExternalPrincipalCall(principalId, _callback);
+ return deleteUserExternalPrincipalCall(userId, principalId, _callback);
}
- private ApiResponse getExternalPrincipalWithHttpInfo(String principalId) throws ApiException {
- okhttp3.Call localVarCall = getExternalPrincipalValidateBeforeCall(principalId, null);
- Type localVarReturnType = new TypeToken(){}.getType();
- return localVarApiClient.execute(localVarCall, localVarReturnType);
+ private ApiResponse deleteUserExternalPrincipalWithHttpInfo(String userId, String principalId) throws ApiException {
+ okhttp3.Call localVarCall = deleteUserExternalPrincipalValidateBeforeCall(userId, principalId, null);
+ return localVarApiClient.execute(localVarCall);
}
- private okhttp3.Call getExternalPrincipalAsync(String principalId, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call deleteUserExternalPrincipalAsync(String userId, String principalId, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = getExternalPrincipalValidateBeforeCall(principalId, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
- localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ okhttp3.Call localVarCall = deleteUserExternalPrincipalValidateBeforeCall(userId, principalId, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
- public class APIgetExternalPrincipalRequest {
+ public class APIdeleteUserExternalPrincipalRequest {
+ private final String userId;
private final String principalId;
- private APIgetExternalPrincipalRequest(String principalId) {
+ private APIdeleteUserExternalPrincipalRequest(String userId, String principalId) {
+ this.userId = userId;
this.principalId = principalId;
}
/**
- * Build call for getExternalPrincipal
+ * Build call for deleteUserExternalPrincipal
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | external principal | - |
+ | 204 | external principal detached successfully | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
@@ -1612,17 +1688,16 @@ private APIgetExternalPrincipalRequest(String principalId) {
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return getExternalPrincipalCall(principalId, _callback);
+ return deleteUserExternalPrincipalCall(userId, principalId, _callback);
}
/**
- * Execute getExternalPrincipal request
- * @return ExternalPrincipal
+ * Execute deleteUserExternalPrincipal request
* @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 | external principal | - |
+ | 204 | external principal detached successfully | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
@@ -1630,19 +1705,18 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
| 0 | Internal Server Error | - |
*/
- public ExternalPrincipal execute() throws ApiException {
- ApiResponse localVarResp = getExternalPrincipalWithHttpInfo(principalId);
- return localVarResp.getData();
+ public void execute() throws ApiException {
+ deleteUserExternalPrincipalWithHttpInfo(userId, principalId);
}
/**
- * Execute getExternalPrincipal request with HTTP info returned
- * @return ApiResponse<ExternalPrincipal>
+ * Execute deleteUserExternalPrincipal request with HTTP info returned
+ * @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | external principal | - |
+ | 204 | external principal detached successfully | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
@@ -1650,19 +1724,19 @@ public ExternalPrincipal execute() throws ApiException {
| 0 | Internal Server Error | - |
*/
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return getExternalPrincipalWithHttpInfo(principalId);
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return deleteUserExternalPrincipalWithHttpInfo(userId, principalId);
}
/**
- * Execute getExternalPrincipal request (asynchronously)
+ * Execute deleteUserExternalPrincipal request (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 | external principal | - |
+ | 204 | external principal detached successfully | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
@@ -1670,20 +1744,21 @@ public ApiResponse executeWithHttpInfo() throws ApiException
| 0 | Internal Server Error | - |
*/
- public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
- return getExternalPrincipalAsync(principalId, _callback);
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return deleteUserExternalPrincipalAsync(userId, principalId, _callback);
}
}
/**
- * describe external principal by id
+ * delete external principal from user
*
+ * @param userId (required)
* @param principalId (required)
- * @return APIgetExternalPrincipalRequest
+ * @return APIdeleteUserExternalPrincipalRequest
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | external principal | - |
+ | 204 | external principal detached successfully | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
@@ -1691,10 +1766,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback)
| 0 | Internal Server Error | - |
*/
- public APIgetExternalPrincipalRequest getExternalPrincipal(String principalId) {
- return new APIgetExternalPrincipalRequest(principalId);
+ public APIdeleteUserExternalPrincipalRequest deleteUserExternalPrincipal(String userId, String principalId) {
+ return new APIdeleteUserExternalPrincipalRequest(userId, principalId);
}
- private okhttp3.Call getLicenseCall(final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call externalPrincipalLoginCall(ExternalLoginInformation externalLoginInformation, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1708,10 +1783,10 @@ private okhttp3.Call getLicenseCall(final ApiCallback _callback) throws ApiExcep
basePath = null;
}
- Object localVarPostBody = null;
+ Object localVarPostBody = externalLoginInformation;
// create path and map variables
- String localVarPath = "/license";
+ String localVarPath = "/auth/external/principal/login";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1728,131 +1803,158 @@ private okhttp3.Call getLicenseCall(final ApiCallback _callback) throws ApiExcep
}
final String[] localVarContentTypes = {
+ "application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getLicenseValidateBeforeCall(final ApiCallback _callback) throws ApiException {
- return getLicenseCall(_callback);
+ private okhttp3.Call externalPrincipalLoginValidateBeforeCall(ExternalLoginInformation externalLoginInformation, final ApiCallback _callback) throws ApiException {
+ return externalPrincipalLoginCall(externalLoginInformation, _callback);
}
- private ApiResponse getLicenseWithHttpInfo() throws ApiException {
- okhttp3.Call localVarCall = getLicenseValidateBeforeCall(null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ private ApiResponse externalPrincipalLoginWithHttpInfo(ExternalLoginInformation externalLoginInformation) throws ApiException {
+ okhttp3.Call localVarCall = externalPrincipalLoginValidateBeforeCall(externalLoginInformation, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
- private okhttp3.Call getLicenseAsync(final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call externalPrincipalLoginAsync(ExternalLoginInformation externalLoginInformation, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = getLicenseValidateBeforeCall(_callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ okhttp3.Call localVarCall = externalPrincipalLoginValidateBeforeCall(externalLoginInformation, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
- public class APIgetLicenseRequest {
+ public class APIexternalPrincipalLoginRequest {
+ private ExternalLoginInformation externalLoginInformation;
- private APIgetLicenseRequest() {
+ private APIexternalPrincipalLoginRequest() {
}
/**
- * Build call for getLicense
+ * Set externalLoginInformation
+ * @param externalLoginInformation (optional)
+ * @return APIexternalPrincipalLoginRequest
+ */
+ public APIexternalPrincipalLoginRequest externalLoginInformation(ExternalLoginInformation externalLoginInformation) {
+ this.externalLoginInformation = externalLoginInformation;
+ return this;
+ }
+
+ /**
+ * Build call for externalPrincipalLogin
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | lakeFS configuration | - |
+ | 200 | successful external login | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 501 | Not Implemented | - |
+ | 403 | Forbidden | - |
+ | 404 | Resource Not Found | - |
+ | 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return getLicenseCall(_callback);
+ return externalPrincipalLoginCall(externalLoginInformation, _callback);
}
/**
- * Execute getLicense request
- * @return License
+ * Execute externalPrincipalLogin request
+ * @return AuthenticationToken
* @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 configuration | - |
+ | 200 | successful external login | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 501 | Not Implemented | - |
+ | 403 | Forbidden | - |
+ | 404 | Resource Not Found | - |
+ | 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public License execute() throws ApiException {
- ApiResponse localVarResp = getLicenseWithHttpInfo();
+ public AuthenticationToken execute() throws ApiException {
+ ApiResponse localVarResp = externalPrincipalLoginWithHttpInfo(externalLoginInformation);
return localVarResp.getData();
}
/**
- * Execute getLicense request with HTTP info returned
- * @return ApiResponse<License>
+ * Execute externalPrincipalLogin request with HTTP info returned
+ * @return ApiResponse<AuthenticationToken>
* @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 configuration | - |
+ | 200 | successful external login | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 501 | Not Implemented | - |
+ | 403 | Forbidden | - |
+ | 404 | Resource Not Found | - |
+ | 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return getLicenseWithHttpInfo();
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return externalPrincipalLoginWithHttpInfo(externalLoginInformation);
}
/**
- * Execute getLicense request (asynchronously)
+ * Execute externalPrincipalLogin request (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 configuration | - |
+ | 200 | successful external login | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 501 | Not Implemented | - |
+ | 403 | Forbidden | - |
+ | 404 | Resource Not Found | - |
+ | 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
- return getLicenseAsync(_callback);
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return externalPrincipalLoginAsync(externalLoginInformation, _callback);
}
}
/**
+ * perform a login using an external authenticator
*
- * retrieve lakeFS license information
- * @return APIgetLicenseRequest
+ * @return APIexternalPrincipalLoginRequest
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | lakeFS configuration | - |
+ | 200 | successful external login | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
- | 501 | Not Implemented | - |
+ | 403 | Forbidden | - |
+ | 404 | Resource Not Found | - |
+ | 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public APIgetLicenseRequest getLicense() {
- return new APIgetLicenseRequest();
+ public APIexternalPrincipalLoginRequest externalPrincipalLogin() {
+ return new APIexternalPrincipalLoginRequest();
}
- private okhttp3.Call getPullRequestCall(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call getExternalPrincipalCall(String principalId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1869,9 +1971,7 @@ private okhttp3.Call getPullRequestCall(String repository, String pullRequest, f
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/repositories/{repository}/pulls/{pull_request}"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "pull_request" + "}", localVarApiClient.escapeString(pullRequest.toString()));
+ String localVarPath = "/auth/external/principals";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1879,6 +1979,10 @@ private okhttp3.Call getPullRequestCall(String repository, String pullRequest, f
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
+ if (principalId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("principalId", principalId));
+ }
+
final String[] localVarAccepts = {
"application/json"
};
@@ -1899,55 +2003,48 @@ private okhttp3.Call getPullRequestCall(String repository, String pullRequest, f
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getPullRequestValidateBeforeCall(String repository, String pullRequest, 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 getPullRequest(Async)");
- }
-
- // verify the required parameter 'pullRequest' is set
- if (pullRequest == null) {
- throw new ApiException("Missing the required parameter 'pullRequest' when calling getPullRequest(Async)");
+ private okhttp3.Call getExternalPrincipalValidateBeforeCall(String principalId, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'principalId' is set
+ if (principalId == null) {
+ throw new ApiException("Missing the required parameter 'principalId' when calling getExternalPrincipal(Async)");
}
- return getPullRequestCall(repository, pullRequest, _callback);
+ return getExternalPrincipalCall(principalId, _callback);
}
- private ApiResponse getPullRequestWithHttpInfo(String repository, String pullRequest) throws ApiException {
- okhttp3.Call localVarCall = getPullRequestValidateBeforeCall(repository, pullRequest, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ private ApiResponse getExternalPrincipalWithHttpInfo(String principalId) throws ApiException {
+ okhttp3.Call localVarCall = getExternalPrincipalValidateBeforeCall(principalId, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
- private okhttp3.Call getPullRequestAsync(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call getExternalPrincipalAsync(String principalId, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = getPullRequestValidateBeforeCall(repository, pullRequest, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ okhttp3.Call localVarCall = getExternalPrincipalValidateBeforeCall(principalId, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
- public class APIgetPullRequestRequest {
- private final String repository;
- private final String pullRequest;
+ public class APIgetExternalPrincipalRequest {
+ private final String principalId;
- private APIgetPullRequestRequest(String repository, String pullRequest) {
- this.repository = repository;
- this.pullRequest = pullRequest;
+ private APIgetExternalPrincipalRequest(String principalId) {
+ this.principalId = principalId;
}
/**
- * Build call for getPullRequest
+ * Build call for getExternalPrincipal
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | pull request | - |
- | 400 | Validation Error | - |
+ | 200 | external principal | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
| 429 | too many requests | - |
@@ -1955,90 +2052,89 @@ private APIgetPullRequestRequest(String repository, String pullRequest) {
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return getPullRequestCall(repository, pullRequest, _callback);
+ return getExternalPrincipalCall(principalId, _callback);
}
/**
- * Execute getPullRequest request
- * @return PullRequest
+ * Execute getExternalPrincipal request
+ * @return ExternalPrincipal
* @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 | pull request | - |
- | 400 | Validation Error | - |
+ | 200 | external principal | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public PullRequest execute() throws ApiException {
- ApiResponse localVarResp = getPullRequestWithHttpInfo(repository, pullRequest);
+ public ExternalPrincipal execute() throws ApiException {
+ ApiResponse localVarResp = getExternalPrincipalWithHttpInfo(principalId);
return localVarResp.getData();
}
/**
- * Execute getPullRequest request with HTTP info returned
- * @return ApiResponse<PullRequest>
+ * Execute getExternalPrincipal request with HTTP info returned
+ * @return ApiResponse<ExternalPrincipal>
* @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 | pull request | - |
- | 400 | Validation Error | - |
+ | 200 | external principal | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return getPullRequestWithHttpInfo(repository, pullRequest);
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return getExternalPrincipalWithHttpInfo(principalId);
}
/**
- * Execute getPullRequest request (asynchronously)
+ * Execute getExternalPrincipal request (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 | pull request | - |
- | 400 | Validation Error | - |
+ | 200 | external principal | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
- return getPullRequestAsync(repository, pullRequest, _callback);
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return getExternalPrincipalAsync(principalId, _callback);
}
}
/**
- * get pull request
+ * describe external principal by id
*
- * @param repository (required)
- * @param pullRequest pull request id (required)
- * @return APIgetPullRequestRequest
+ * @param principalId (required)
+ * @return APIgetExternalPrincipalRequest
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | pull request | - |
- | 400 | Validation Error | - |
+ | 200 | external principal | - |
+ | 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Resource Not Found | - |
| 429 | too many requests | - |
| 0 | Internal Server Error | - |
*/
- public APIgetPullRequestRequest getPullRequest(String repository, String pullRequest) {
- return new APIgetPullRequestRequest(repository, pullRequest);
+ public APIgetExternalPrincipalRequest getExternalPrincipal(String principalId) {
+ return new APIgetExternalPrincipalRequest(principalId);
}
- private okhttp3.Call getTokenFromMailboxCall(String mailbox, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call getLicenseCall(final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -2055,8 +2151,7 @@ private okhttp3.Call getTokenFromMailboxCall(String mailbox, final ApiCallback _
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/auth/get-token/mailboxes/{mailbox}"
- .replace("{" + "mailbox" + "}", localVarApiClient.escapeString(mailbox.toString()));
+ String localVarPath = "/license";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -2079,148 +2174,125 @@ private okhttp3.Call getTokenFromMailboxCall(String mailbox, final ApiCallback _
localVarHeaderParams.put("Content-Type", localVarContentType);
}
- String[] localVarAuthNames = new String[] { };
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getTokenFromMailboxValidateBeforeCall(String mailbox, final ApiCallback _callback) throws ApiException {
- // verify the required parameter 'mailbox' is set
- if (mailbox == null) {
- throw new ApiException("Missing the required parameter 'mailbox' when calling getTokenFromMailbox(Async)");
- }
-
- return getTokenFromMailboxCall(mailbox, _callback);
+ private okhttp3.Call getLicenseValidateBeforeCall(final ApiCallback _callback) throws ApiException {
+ return getLicenseCall(_callback);
}
- private ApiResponse getTokenFromMailboxWithHttpInfo(String mailbox) throws ApiException {
- okhttp3.Call localVarCall = getTokenFromMailboxValidateBeforeCall(mailbox, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ private ApiResponse getLicenseWithHttpInfo() throws ApiException {
+ okhttp3.Call localVarCall = getLicenseValidateBeforeCall(null);
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
- private okhttp3.Call getTokenFromMailboxAsync(String mailbox, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call getLicenseAsync(final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = getTokenFromMailboxValidateBeforeCall(mailbox, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ okhttp3.Call localVarCall = getLicenseValidateBeforeCall(_callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
- public class APIgetTokenFromMailboxRequest {
- private final String mailbox;
+ public class APIgetLicenseRequest {
- private APIgetTokenFromMailboxRequest(String mailbox) {
- this.mailbox = mailbox;
+ private APIgetLicenseRequest() {
}
/**
- * Build call for getTokenFromMailbox
+ * Build call for getLicense
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | user successfully logged in | - |
- | 400 | Bad Request | - |
+ | 200 | lakeFS configuration | - |
| 401 | Unauthorized | - |
- | 404 | Resource Not Found | - |
- | 429 | too many requests | - |
| 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return getTokenFromMailboxCall(mailbox, _callback);
+ return getLicenseCall(_callback);
}
/**
- * Execute getTokenFromMailbox request
- * @return AuthenticationToken
+ * Execute getLicense request
+ * @return License
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | user successfully logged in | - |
- | 400 | Bad Request | - |
+ | 200 | lakeFS configuration | - |
| 401 | Unauthorized | - |
- | 404 | Resource Not Found | - |
- | 429 | too many requests | - |
| 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public AuthenticationToken execute() throws ApiException {
- ApiResponse localVarResp = getTokenFromMailboxWithHttpInfo(mailbox);
+ public License execute() throws ApiException {
+ ApiResponse localVarResp = getLicenseWithHttpInfo();
return localVarResp.getData();
}
/**
- * Execute getTokenFromMailbox request with HTTP info returned
- * @return ApiResponse<AuthenticationToken>
+ * Execute getLicense request with HTTP info returned
+ * @return ApiResponse<License>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | user successfully logged in | - |
- | 400 | Bad Request | - |
+ | 200 | lakeFS configuration | - |
| 401 | Unauthorized | - |
- | 404 | Resource Not Found | - |
- | 429 | too many requests | - |
| 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return getTokenFromMailboxWithHttpInfo(mailbox);
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return getLicenseWithHttpInfo();
}
/**
- * Execute getTokenFromMailbox request (asynchronously)
+ * Execute getLicense request (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 | user successfully logged in | - |
- | 400 | Bad Request | - |
+ | 200 | lakeFS configuration | - |
| 401 | Unauthorized | - |
- | 404 | Resource Not Found | - |
- | 429 | too many requests | - |
| 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
- return getTokenFromMailboxAsync(mailbox, _callback);
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return getLicenseAsync(_callback);
}
}
/**
- * receive the token after user has authenticated on redirect URL.
*
- * @param mailbox mailbox returned by getTokenRedirect (required)
- * @return APIgetTokenFromMailboxRequest
+ * retrieve lakeFS license information
+ * @return APIgetLicenseRequest
* @http.response.details
| Status Code | Description | Response Headers |
- | 200 | user successfully logged in | - |
- | 400 | Bad Request | - |
+ | 200 | lakeFS configuration | - |
| 401 | Unauthorized | - |
- | 404 | Resource Not Found | - |
- | 429 | too many requests | - |
| 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public APIgetTokenFromMailboxRequest getTokenFromMailbox(String mailbox) {
- return new APIgetTokenFromMailboxRequest(mailbox);
+ public APIgetLicenseRequest getLicense() {
+ return new APIgetLicenseRequest();
}
- private okhttp3.Call getTokenRedirectCall(final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call getPullRequestCall(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -2237,7 +2309,9 @@ private okhttp3.Call getTokenRedirectCall(final ApiCallback _callback) throws Ap
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/auth/get-token/start";
+ String localVarPath = "/repositories/{repository}/pulls/{pull_request}"
+ .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
+ .replace("{" + "pull_request" + "}", localVarApiClient.escapeString(pullRequest.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -2260,130 +2334,151 @@ private okhttp3.Call getTokenRedirectCall(final ApiCallback _callback) throws Ap
localVarHeaderParams.put("Content-Type", localVarContentType);
}
- String[] localVarAuthNames = new String[] { };
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getTokenRedirectValidateBeforeCall(final ApiCallback _callback) throws ApiException {
- return getTokenRedirectCall(_callback);
+ private okhttp3.Call getPullRequestValidateBeforeCall(String repository, String pullRequest, 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 getPullRequest(Async)");
+ }
+
+ // verify the required parameter 'pullRequest' is set
+ if (pullRequest == null) {
+ throw new ApiException("Missing the required parameter 'pullRequest' when calling getPullRequest(Async)");
+ }
+
+ return getPullRequestCall(repository, pullRequest, _callback);
}
- private ApiResponse getTokenRedirectWithHttpInfo() throws ApiException {
- okhttp3.Call localVarCall = getTokenRedirectValidateBeforeCall(null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ private ApiResponse getPullRequestWithHttpInfo(String repository, String pullRequest) throws ApiException {
+ okhttp3.Call localVarCall = getPullRequestValidateBeforeCall(repository, pullRequest, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
- private okhttp3.Call getTokenRedirectAsync(final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call getPullRequestAsync(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = getTokenRedirectValidateBeforeCall(_callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ okhttp3.Call localVarCall = getPullRequestValidateBeforeCall(repository, pullRequest, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
- public class APIgetTokenRedirectRequest {
+ public class APIgetPullRequestRequest {
+ private final String repository;
+ private final String pullRequest;
- private APIgetTokenRedirectRequest() {
+ private APIgetPullRequestRequest(String repository, String pullRequest) {
+ this.repository = repository;
+ this.pullRequest = pullRequest;
}
/**
- * Build call for getTokenRedirect
+ * Build call for getPullRequest
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
| Status Code | Description | Response Headers |
- | 303 | login on this page, await results on the mailbox URL | * Location - redirect to S3 * X-LakeFS-Mailbox - GET the token from this mailbox. Keep the mailbox SECRET! |
+ | 200 | pull request | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 404 | Resource Not Found | - |
| 429 | too many requests | - |
- | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return getTokenRedirectCall(_callback);
+ return getPullRequestCall(repository, pullRequest, _callback);
}
/**
- * Execute getTokenRedirect request
- * @return Error
+ * Execute getPullRequest request
+ * @return PullRequest
* @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 |
- | 303 | login on this page, await results on the mailbox URL | * Location - redirect to S3 * X-LakeFS-Mailbox - GET the token from this mailbox. Keep the mailbox SECRET! |
+ | 200 | pull request | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 404 | Resource Not Found | - |
| 429 | too many requests | - |
- | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public Error execute() throws ApiException {
- ApiResponse localVarResp = getTokenRedirectWithHttpInfo();
+ public PullRequest execute() throws ApiException {
+ ApiResponse localVarResp = getPullRequestWithHttpInfo(repository, pullRequest);
return localVarResp.getData();
}
/**
- * Execute getTokenRedirect request with HTTP info returned
- * @return ApiResponse<Error>
+ * Execute getPullRequest request with HTTP info returned
+ * @return ApiResponse<PullRequest>
* @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 |
- | 303 | login on this page, await results on the mailbox URL | * Location - redirect to S3 * X-LakeFS-Mailbox - GET the token from this mailbox. Keep the mailbox SECRET! |
+ | 200 | pull request | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 404 | Resource Not Found | - |
| 429 | too many requests | - |
- | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return getTokenRedirectWithHttpInfo();
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return getPullRequestWithHttpInfo(repository, pullRequest);
}
/**
- * Execute getTokenRedirect request (asynchronously)
+ * Execute getPullRequest request (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 |
- | 303 | login on this page, await results on the mailbox URL | * Location - redirect to S3 * X-LakeFS-Mailbox - GET the token from this mailbox. Keep the mailbox SECRET! |
+ | 200 | pull request | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 404 | Resource Not Found | - |
| 429 | too many requests | - |
- | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
- return getTokenRedirectAsync(_callback);
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return getPullRequestAsync(repository, pullRequest, _callback);
}
}
/**
- * start acquiring a token by logging in on a browser
+ * get pull request
*
- * @return APIgetTokenRedirectRequest
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @return APIgetPullRequestRequest
* @http.response.details
| Status Code | Description | Response Headers |
- | 303 | login on this page, await results on the mailbox URL | * Location - redirect to S3 * X-LakeFS-Mailbox - GET the token from this mailbox. Keep the mailbox SECRET! |
+ | 200 | pull request | - |
+ | 400 | Validation Error | - |
| 401 | Unauthorized | - |
+ | 404 | Resource Not Found | - |
| 429 | too many requests | - |
- | 501 | Not Implemented | - |
| 0 | Internal Server Error | - |
*/
- public APIgetTokenRedirectRequest getTokenRedirect() {
- return new APIgetTokenRedirectRequest();
+ public APIgetPullRequestRequest getPullRequest(String repository, String pullRequest) {
+ return new APIgetPullRequestRequest(repository, pullRequest);
}
- private okhttp3.Call hardResetBranchCall(String repository, String branch, String ref, Boolean force, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call getTokenFromMailboxCall(String mailbox, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -2400,9 +2495,8 @@ private okhttp3.Call hardResetBranchCall(String repository, String branch, Strin
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/repositories/{repository}/branches/{branch}/hard_reset"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ String localVarPath = "/auth/get-token/mailboxes/{mailbox}"
+ .replace("{" + "mailbox" + "}", localVarApiClient.escapeString(mailbox.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -2410,14 +2504,6 @@ private okhttp3.Call hardResetBranchCall(String repository, String branch, Strin
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
- if (ref != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("ref", ref));
- }
-
- if (force != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force));
- }
-
final String[] localVarAccepts = {
"application/json"
};
@@ -2433,171 +2519,984 @@ private okhttp3.Call hardResetBranchCall(String repository, String branch, Strin
localVarHeaderParams.put("Content-Type", localVarContentType);
}
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { };
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call hardResetBranchValidateBeforeCall(String repository, String branch, String ref, Boolean force, 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 hardResetBranch(Async)");
- }
-
- // verify the required parameter 'branch' is set
- if (branch == null) {
- throw new ApiException("Missing the required parameter 'branch' when calling hardResetBranch(Async)");
- }
-
- // verify the required parameter 'ref' is set
- if (ref == null) {
- throw new ApiException("Missing the required parameter 'ref' when calling hardResetBranch(Async)");
+ private okhttp3.Call getTokenFromMailboxValidateBeforeCall(String mailbox, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'mailbox' is set
+ if (mailbox == null) {
+ throw new ApiException("Missing the required parameter 'mailbox' when calling getTokenFromMailbox(Async)");
}
- return hardResetBranchCall(repository, branch, ref, force, _callback);
+ return getTokenFromMailboxCall(mailbox, _callback);
}
- private ApiResponse hardResetBranchWithHttpInfo(String repository, String branch, String ref, Boolean force) throws ApiException {
- okhttp3.Call localVarCall = hardResetBranchValidateBeforeCall(repository, branch, ref, force, null);
- return localVarApiClient.execute(localVarCall);
+ private ApiResponse getTokenFromMailboxWithHttpInfo(String mailbox) throws ApiException {
+ okhttp3.Call localVarCall = getTokenFromMailboxValidateBeforeCall(mailbox, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
}
- private okhttp3.Call hardResetBranchAsync(String repository, String branch, String ref, Boolean force, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call getTokenFromMailboxAsync(String mailbox, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = hardResetBranchValidateBeforeCall(repository, branch, ref, force, _callback);
- localVarApiClient.executeAsync(localVarCall, _callback);
+ okhttp3.Call localVarCall = getTokenFromMailboxValidateBeforeCall(mailbox, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
- public class APIhardResetBranchRequest {
- private final String repository;
- private final String branch;
- private final String ref;
- private Boolean force;
+ public class APIgetTokenFromMailboxRequest {
+ private final String mailbox;
- private APIhardResetBranchRequest(String repository, String branch, String ref) {
- this.repository = repository;
- this.branch = branch;
+ private APIgetTokenFromMailboxRequest(String mailbox) {
+ this.mailbox = mailbox;
+ }
+
+ /**
+ * Build call for getTokenFromMailbox
+ * @param _callback ApiCallback API callback
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ | Status Code | Description | Response Headers |
+ | 200 | user successfully logged in | - |
+ | 400 | Bad Request | - |
+ | 401 | Unauthorized | - |
+ | 404 | Resource Not Found | - |
+ | 429 | too many requests | - |
+ | 501 | Not Implemented | - |
+ | 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
+ return getTokenFromMailboxCall(mailbox, _callback);
+ }
+
+ /**
+ * Execute getTokenFromMailbox request
+ * @return AuthenticationToken
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ | Status Code | Description | Response Headers |
+ | 200 | user successfully logged in | - |
+ | 400 | Bad Request | - |
+ | 401 | Unauthorized | - |
+ | 404 | Resource Not Found | - |
+ | 429 | too many requests | - |
+ | 501 | Not Implemented | - |
+ | 0 | Internal Server Error | - |
+
+ */
+ public AuthenticationToken execute() throws ApiException {
+ ApiResponse localVarResp = getTokenFromMailboxWithHttpInfo(mailbox);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Execute getTokenFromMailbox request with HTTP info returned
+ * @return ApiResponse<AuthenticationToken>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ | Status Code | Description | Response Headers |
+ | 200 | user successfully logged in | - |
+ | 400 | Bad Request | - |
+ | 401 | Unauthorized | - |
+ | 404 | Resource Not Found | - |
+ | 429 | too many requests | - |
+ | 501 | Not Implemented | - |
+ | 0 | Internal Server Error | - |
+
+ */
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return getTokenFromMailboxWithHttpInfo(mailbox);
+ }
+
+ /**
+ * Execute getTokenFromMailbox request (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 | user successfully logged in | - |
+ | 400 | Bad Request | - |
+ | 401 | Unauthorized | - |
+ | 404 | Resource Not Found | - |
+ | 429 | too many requests | - |
+ | 501 | Not Implemented | - |
+ | 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return getTokenFromMailboxAsync(mailbox, _callback);
+ }
+ }
+
+ /**
+ * receive the token after user has authenticated on redirect URL.
+ *
+ * @param mailbox mailbox returned by getTokenRedirect (required)
+ * @return APIgetTokenFromMailboxRequest
+ * @http.response.details
+
+ | Status Code | Description | Response Headers |
+ | 200 | user successfully logged in | - |
+ | 400 | Bad Request | - |
+ | 401 | Unauthorized | - |
+ | 404 | Resource Not Found | - |
+ | 429 | too many requests | - |
+ | 501 | Not Implemented | - |
+ | 0 | Internal Server Error | - |
+
+ */
+ public APIgetTokenFromMailboxRequest getTokenFromMailbox(String mailbox) {
+ return new APIgetTokenFromMailboxRequest(mailbox);
+ }
+ private okhttp3.Call getTokenRedirectCall(final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/auth/get-token/start";
+
+ 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);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] { };
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call getTokenRedirectValidateBeforeCall(final ApiCallback _callback) throws ApiException {
+ return getTokenRedirectCall(_callback);
+
+ }
+
+
+ private ApiResponse getTokenRedirectWithHttpInfo() throws ApiException {
+ okhttp3.Call localVarCall = getTokenRedirectValidateBeforeCall(null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ private okhttp3.Call getTokenRedirectAsync(final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = getTokenRedirectValidateBeforeCall(_callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ public class APIgetTokenRedirectRequest {
+
+ private APIgetTokenRedirectRequest() {
+ }
+
+ /**
+ * Build call for getTokenRedirect
+ * @param _callback ApiCallback API callback
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ | Status Code | Description | Response Headers |
+ | 303 | login on this page, await results on the mailbox URL | * Location - redirect to S3 * X-LakeFS-Mailbox - GET the token from this mailbox. Keep the mailbox SECRET! |
+ | 401 | Unauthorized | - |
+ | 429 | too many requests | - |
+ | 501 | Not Implemented | - |
+ | 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
+ return getTokenRedirectCall(_callback);
+ }
+
+ /**
+ * Execute getTokenRedirect request
+ * @return Error
+ * @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 |
+ | 303 | login on this page, await results on the mailbox URL | * Location - redirect to S3 * X-LakeFS-Mailbox - GET the token from this mailbox. Keep the mailbox SECRET! |
+ | 401 | Unauthorized | - |
+ | 429 | too many requests | - |
+ | 501 | Not Implemented | - |
+ | 0 | Internal Server Error | - |
+
+ */
+ public Error execute() throws ApiException {
+ ApiResponse localVarResp = getTokenRedirectWithHttpInfo();
+ return localVarResp.getData();
+ }
+
+ /**
+ * Execute getTokenRedirect request with HTTP info returned
+ * @return ApiResponse<Error>
+ * @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 |
+ | 303 | login on this page, await results on the mailbox URL | * Location - redirect to S3 |