diff --git a/api/swagger.yml b/api/swagger.yml
index c01acb17ee2..c941675019f 100644
--- a/api/swagger.yml
+++ b/api/swagger.yml
@@ -1729,6 +1729,77 @@ components:
type: object
items:
$ref: "#/components/schemas/ExternalPrincipalSettings"
+
+ PullRequestBasic:
+ type: object
+ properties:
+ status:
+ type: string
+ enum: [ open, closed, merged ]
+ title:
+ type: string
+ description:
+ type: string
+
+ PullRequest:
+ type: object
+ required:
+ - id
+ - status
+ - creation_date
+ - title
+ - author
+ - description
+ - source_branch
+ - destination_branch
+ allOf:
+ - $ref: '#/components/schemas/PullRequestBasic'
+ properties:
+ id:
+ type: string
+ creation_date:
+ type: integer
+ format: int64
+ author:
+ type: string
+ source_branch:
+ type: string
+ destination_branch:
+ type: string
+ commit_id:
+ type: string
+ description: the commit id of merged PRs
+
+ PullRequestsList:
+ type: object
+ required:
+ - pagination
+ - results
+ properties:
+ pagination:
+ $ref: "#/components/schemas/Pagination"
+ results:
+ type: array
+ items:
+ $ref: "#/components/schemas/PullRequest"
+
+ PullRequestCreation:
+ type: object
+ required:
+ - title
+ - description
+ - source_branch
+ - destination_branch
+ properties:
+ title:
+ type: string
+ description:
+ type: string
+ source_branch:
+ type: string
+ destination_branch:
+ type: string
+
paths:
/setup_comm_prefs:
post:
@@ -5582,6 +5653,159 @@ paths:
description: too many requests
default:
$ref: "#/components/responses/ServerError"
+
+ /repositories/{repository}/pulls:
+ parameters:
+ - in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ get:
+ tags:
+ - pulls
+ - experimental
+ operationId: listPullRequests
+ summary: list pull requests
+ parameters:
+ - $ref: "#/components/parameters/PaginationPrefix"
+ - $ref: "#/components/parameters/PaginationAfter"
+ - $ref: "#/components/parameters/PaginationAmount"
+ - in: query
+ name: state
+ schema:
+ type: string
+ enum: [ open, closed, all ]
+ default: all
+ description: filter pull requests by state
+ responses:
+ 200:
+ description: list of pull requests
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/PullRequestsList"
+ 401:
+ $ref: "#/components/responses/Unauthorized"
+ 404:
+ $ref: "#/components/responses/NotFound"
+ 420:
+ description: too many requests
+ default:
+ $ref: "#/components/responses/ServerError"
+ post:
+ tags:
+ - pulls
+ - experimental
+ operationId: createPullRequest
+ summary: create pull request
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/PullRequestCreation"
+ responses:
+ 201:
+ description: pull request id
+ content:
+ text/html:
+ schema:
+ type: string
+ 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"
+ 420:
+ description: too many requests
+ default:
+ $ref: "#/components/responses/ServerError"
+
+ /repositories/{repository}/pulls/{pull_request}:
+ parameters:
+ - in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ - in: path
+ name: pull_request
+ required: true
+ description: pull request id
+ schema:
+ type: string
+ get:
+ tags:
+ - pulls
+ - experimental
+ operationId: getPullRequest
+ summary: get pull request
+ responses:
+ 200:
+ description: pull request
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/PullRequest"
+ 401:
+ $ref: "#/components/responses/Unauthorized"
+ 404:
+ $ref: "#/components/responses/NotFound"
+ 420:
+ description: too many requests
+ default:
+ $ref: "#/components/responses/ServerError"
+ delete:
+ tags:
+ - pulls
+ - experimental
+ operationId: deletePullRequest
+ summary: delete pull request
+ responses:
+ 204:
+ description: pull request deleted successfully
+ 401:
+ $ref: "#/components/responses/Unauthorized"
+ 403:
+ $ref: "#/components/responses/Forbidden"
+ 404:
+ $ref: "#/components/responses/NotFound"
+ 420:
+ description: too many requests
+ default:
+ $ref: "#/components/responses/ServerError"
+ patch:
+ tags:
+ - pulls
+ - experimental
+ operationId: updatePullRequest
+ summary: update pull request
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/PullRequestBasic"
+ responses:
+ 204:
+ description: pull request deleted successfully
+ 401:
+ $ref: "#/components/responses/Unauthorized"
+ 403:
+ $ref: "#/components/responses/Forbidden"
+ 404:
+ $ref: "#/components/responses/NotFound"
+ 420:
+ description: too many requests
+ default:
+ $ref: "#/components/responses/ServerError"
+
/healthcheck:
get:
operationId: healthCheck
diff --git a/clients/java-legacy/.openapi-generator/FILES b/clients/java-legacy/.openapi-generator/FILES
index 02a4661c9b7..8e60cdd4624 100644
--- a/clients/java-legacy/.openapi-generator/FILES
+++ b/clients/java-legacy/.openapi-generator/FILES
@@ -83,6 +83,11 @@ docs/PolicyList.md
docs/PrepareGCUncommittedRequest.md
docs/PrepareGCUncommittedResponse.md
docs/PresignMultipartUpload.md
+docs/PullRequest.md
+docs/PullRequestBasic.md
+docs/PullRequestCreation.md
+docs/PullRequestsList.md
+docs/PullsApi.md
docs/RangeMetadata.md
docs/Ref.md
docs/RefList.md
@@ -152,6 +157,7 @@ src/main/java/io/lakefs/clients/api/ObjectsApi.java
src/main/java/io/lakefs/clients/api/Pair.java
src/main/java/io/lakefs/clients/api/ProgressRequestBody.java
src/main/java/io/lakefs/clients/api/ProgressResponseBody.java
+src/main/java/io/lakefs/clients/api/PullsApi.java
src/main/java/io/lakefs/clients/api/RefsApi.java
src/main/java/io/lakefs/clients/api/RepositoriesApi.java
src/main/java/io/lakefs/clients/api/ServerConfiguration.java
@@ -229,6 +235,10 @@ src/main/java/io/lakefs/clients/api/model/PolicyList.java
src/main/java/io/lakefs/clients/api/model/PrepareGCUncommittedRequest.java
src/main/java/io/lakefs/clients/api/model/PrepareGCUncommittedResponse.java
src/main/java/io/lakefs/clients/api/model/PresignMultipartUpload.java
+src/main/java/io/lakefs/clients/api/model/PullRequest.java
+src/main/java/io/lakefs/clients/api/model/PullRequestBasic.java
+src/main/java/io/lakefs/clients/api/model/PullRequestCreation.java
+src/main/java/io/lakefs/clients/api/model/PullRequestsList.java
src/main/java/io/lakefs/clients/api/model/RangeMetadata.java
src/main/java/io/lakefs/clients/api/model/Ref.java
src/main/java/io/lakefs/clients/api/model/RefList.java
@@ -275,6 +285,7 @@ src/test/java/io/lakefs/clients/api/ImportApiTest.java
src/test/java/io/lakefs/clients/api/InternalApiTest.java
src/test/java/io/lakefs/clients/api/MetadataApiTest.java
src/test/java/io/lakefs/clients/api/ObjectsApiTest.java
+src/test/java/io/lakefs/clients/api/PullsApiTest.java
src/test/java/io/lakefs/clients/api/RefsApiTest.java
src/test/java/io/lakefs/clients/api/RepositoriesApiTest.java
src/test/java/io/lakefs/clients/api/StagingApiTest.java
@@ -345,6 +356,10 @@ src/test/java/io/lakefs/clients/api/model/PolicyTest.java
src/test/java/io/lakefs/clients/api/model/PrepareGCUncommittedRequestTest.java
src/test/java/io/lakefs/clients/api/model/PrepareGCUncommittedResponseTest.java
src/test/java/io/lakefs/clients/api/model/PresignMultipartUploadTest.java
+src/test/java/io/lakefs/clients/api/model/PullRequestBasicTest.java
+src/test/java/io/lakefs/clients/api/model/PullRequestCreationTest.java
+src/test/java/io/lakefs/clients/api/model/PullRequestTest.java
+src/test/java/io/lakefs/clients/api/model/PullRequestsListTest.java
src/test/java/io/lakefs/clients/api/model/RangeMetadataTest.java
src/test/java/io/lakefs/clients/api/model/RefListTest.java
src/test/java/io/lakefs/clients/api/model/RefTest.java
diff --git a/clients/java-legacy/README.md b/clients/java-legacy/README.md
index 302ea2993e1..63d45187320 100644
--- a/clients/java-legacy/README.md
+++ b/clients/java-legacy/README.md
@@ -189,13 +189,18 @@ Class | Method | HTTP request | Description
*ExperimentalApi* | [**abortPresignMultipartUpload**](docs/ExperimentalApi.md#abortPresignMultipartUpload) | **DELETE** /repositories/{repository}/branches/{branch}/staging/pmpu/{uploadId} | Abort a presign multipart upload
*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
*ExperimentalApi* | [**createUserExternalPrincipal**](docs/ExperimentalApi.md#createUserExternalPrincipal) | **POST** /auth/users/{userId}/external/principals | attach external principal to user
+*ExperimentalApi* | [**deletePullRequest**](docs/ExperimentalApi.md#deletePullRequest) | **DELETE** /repositories/{repository}/pulls/{pull_request} | delete pull request
*ExperimentalApi* | [**deleteUserExternalPrincipal**](docs/ExperimentalApi.md#deleteUserExternalPrincipal) | **DELETE** /auth/users/{userId}/external/principals | delete external principal from user
*ExperimentalApi* | [**externalPrincipalLogin**](docs/ExperimentalApi.md#externalPrincipalLogin) | **POST** /auth/external/principal/login | perform a login using an external authenticator
*ExperimentalApi* | [**getExternalPrincipal**](docs/ExperimentalApi.md#getExternalPrincipal) | **GET** /auth/external/principals | describe external principal by id
+*ExperimentalApi* | [**getPullRequest**](docs/ExperimentalApi.md#getPullRequest) | **GET** /repositories/{repository}/pulls/{pull_request} | get pull request
*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* | [**stsLogin**](docs/ExperimentalApi.md#stsLogin) | **POST** /sts/login | perform a login with STS
+*ExperimentalApi* | [**updatePullRequest**](docs/ExperimentalApi.md#updatePullRequest) | **PATCH** /repositories/{repository}/pulls/{pull_request} | update pull request
*ExternalApi* | [**createUserExternalPrincipal**](docs/ExternalApi.md#createUserExternalPrincipal) | **POST** /auth/users/{userId}/external/principals | attach external principal to user
*ExternalApi* | [**deleteUserExternalPrincipal**](docs/ExternalApi.md#deleteUserExternalPrincipal) | **DELETE** /auth/users/{userId}/external/principals | delete external principal from user
*ExternalApi* | [**externalPrincipalLogin**](docs/ExternalApi.md#externalPrincipalLogin) | **POST** /auth/external/principal/login | perform a login using an external authenticator
@@ -244,6 +249,11 @@ Class | Method | HTTP request | Description
*ObjectsApi* | [**listObjects**](docs/ObjectsApi.md#listObjects) | **GET** /repositories/{repository}/refs/{ref}/objects/ls | list objects under a given prefix
*ObjectsApi* | [**statObject**](docs/ObjectsApi.md#statObject) | **GET** /repositories/{repository}/refs/{ref}/objects/stat | get object metadata
*ObjectsApi* | [**uploadObject**](docs/ObjectsApi.md#uploadObject) | **POST** /repositories/{repository}/branches/{branch}/objects |
+*PullsApi* | [**createPullRequest**](docs/PullsApi.md#createPullRequest) | **POST** /repositories/{repository}/pulls | create pull request
+*PullsApi* | [**deletePullRequest**](docs/PullsApi.md#deletePullRequest) | **DELETE** /repositories/{repository}/pulls/{pull_request} | delete pull request
+*PullsApi* | [**getPullRequest**](docs/PullsApi.md#getPullRequest) | **GET** /repositories/{repository}/pulls/{pull_request} | get pull request
+*PullsApi* | [**listPullRequests**](docs/PullsApi.md#listPullRequests) | **GET** /repositories/{repository}/pulls | list pull requests
+*PullsApi* | [**updatePullRequest**](docs/PullsApi.md#updatePullRequest) | **PATCH** /repositories/{repository}/pulls/{pull_request} | update pull request
*RefsApi* | [**diffRefs**](docs/RefsApi.md#diffRefs) | **GET** /repositories/{repository}/refs/{leftRef}/diff/{rightRef} | diff references
*RefsApi* | [**findMergeBase**](docs/RefsApi.md#findMergeBase) | **GET** /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch} | find the merge base for 2 references
*RefsApi* | [**logCommits**](docs/RefsApi.md#logCommits) | **GET** /repositories/{repository}/refs/{ref}/commits | get commit log from ref. If both objects and prefixes are empty, return all commits.
@@ -338,6 +348,10 @@ Class | Method | HTTP request | Description
- [PrepareGCUncommittedRequest](docs/PrepareGCUncommittedRequest.md)
- [PrepareGCUncommittedResponse](docs/PrepareGCUncommittedResponse.md)
- [PresignMultipartUpload](docs/PresignMultipartUpload.md)
+ - [PullRequest](docs/PullRequest.md)
+ - [PullRequestBasic](docs/PullRequestBasic.md)
+ - [PullRequestCreation](docs/PullRequestCreation.md)
+ - [PullRequestsList](docs/PullRequestsList.md)
- [RangeMetadata](docs/RangeMetadata.md)
- [Ref](docs/Ref.md)
- [RefList](docs/RefList.md)
diff --git a/clients/java-legacy/api/openapi.yaml b/clients/java-legacy/api/openapi.yaml
index d73bd1e6465..227fe8eab9f 100644
--- a/clients/java-legacy/api/openapi.yaml
+++ b/clients/java-legacy/api/openapi.yaml
@@ -6758,6 +6758,318 @@ paths:
- internal
x-contentType: application/json
x-accepts: application/json
+ /repositories/{repository}/pulls:
+ get:
+ operationId: listPullRequests
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: return items prefixed with this value
+ explode: true
+ in: query
+ name: prefix
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: return items after this value
+ explode: true
+ in: query
+ name: after
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: how many items to return
+ explode: true
+ in: query
+ name: amount
+ required: false
+ schema:
+ default: 100
+ maximum: 1000
+ minimum: -1
+ type: integer
+ style: form
+ - explode: true
+ in: query
+ name: state
+ required: false
+ schema:
+ default: all
+ description: filter pull requests by state
+ enum:
+ - open
+ - closed
+ - all
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PullRequestsList'
+ description: list of pull requests
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Unauthorized
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Resource Not Found
+ "420":
+ description: too many requests
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: list pull requests
+ tags:
+ - pulls
+ - experimental
+ x-accepts: application/json
+ post:
+ operationId: createPullRequest
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PullRequestCreation'
+ required: true
+ responses:
+ "201":
+ content:
+ text/html:
+ schema:
+ type: string
+ description: pull request id
+ "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
+ "420":
+ description: too many requests
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: create pull request
+ tags:
+ - pulls
+ - experimental
+ x-contentType: application/json
+ x-accepts: application/json
+ /repositories/{repository}/pulls/{pull_request}:
+ delete:
+ operationId: deletePullRequest
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: pull request id
+ explode: false
+ in: path
+ name: pull_request
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "204":
+ description: pull request deleted successfully
+ "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
+ "420":
+ description: too many requests
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: delete pull request
+ tags:
+ - pulls
+ - experimental
+ x-accepts: application/json
+ get:
+ operationId: getPullRequest
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: pull request id
+ explode: false
+ in: path
+ name: pull_request
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PullRequest'
+ description: pull request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Unauthorized
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Resource Not Found
+ "420":
+ description: too many requests
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: get pull request
+ tags:
+ - pulls
+ - experimental
+ x-accepts: application/json
+ patch:
+ operationId: updatePullRequest
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: pull request id
+ explode: false
+ in: path
+ name: pull_request
+ required: true
+ schema:
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PullRequestBasic'
+ required: true
+ responses:
+ "204":
+ description: pull request deleted successfully
+ "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
+ "420":
+ description: too many requests
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: update pull request
+ tags:
+ - pulls
+ - experimental
+ x-contentType: application/json
+ x-accepts: application/json
/healthcheck:
get:
description: check that the API server is up and running
@@ -9273,6 +9585,110 @@ components:
- id
- user_id
type: object
+ PullRequestBasic:
+ example:
+ description: description
+ title: title
+ status: open
+ properties:
+ status:
+ enum:
+ - open
+ - closed
+ - merged
+ type: string
+ title:
+ type: string
+ description:
+ type: string
+ type: object
+ PullRequest:
+ allOf:
+ - $ref: '#/components/schemas/PullRequestBasic'
+ example:
+ author: author
+ destination_branch: destination_branch
+ id: id
+ creation_date: 0
+ commit_id: commit_id
+ source_branch: source_branch
+ properties:
+ id:
+ type: string
+ creation_date:
+ format: int64
+ type: integer
+ author:
+ type: string
+ source_branch:
+ type: string
+ destination_branch:
+ type: string
+ commit_id:
+ description: the commit id of merged PRs
+ type: string
+ required:
+ - author
+ - creation_date
+ - description
+ - destination_branch
+ - id
+ - source_branch
+ - status
+ - title
+ type: object
+ PullRequestsList:
+ example:
+ pagination:
+ max_per_page: 0
+ has_more: true
+ next_offset: next_offset
+ results: 0
+ results:
+ - author: author
+ destination_branch: destination_branch
+ id: id
+ creation_date: 0
+ commit_id: commit_id
+ source_branch: source_branch
+ - author: author
+ destination_branch: destination_branch
+ id: id
+ creation_date: 0
+ commit_id: commit_id
+ source_branch: source_branch
+ properties:
+ pagination:
+ $ref: '#/components/schemas/Pagination'
+ results:
+ items:
+ $ref: '#/components/schemas/PullRequest'
+ type: array
+ required:
+ - pagination
+ - results
+ type: object
+ PullRequestCreation:
+ example:
+ destination_branch: destination_branch
+ description: description
+ title: title
+ source_branch: source_branch
+ properties:
+ title:
+ type: string
+ description:
+ type: string
+ source_branch:
+ type: string
+ destination_branch:
+ type: string
+ required:
+ - description
+ - destination_branch
+ - source_branch
+ - title
+ type: object
inline_object:
properties:
content:
diff --git a/clients/java-legacy/docs/ExperimentalApi.md b/clients/java-legacy/docs/ExperimentalApi.md
index 251f557b7b3..f6b1af07225 100644
--- a/clients/java-legacy/docs/ExperimentalApi.md
+++ b/clients/java-legacy/docs/ExperimentalApi.md
@@ -7,13 +7,18 @@ Method | HTTP request | Description
[**abortPresignMultipartUpload**](ExperimentalApi.md#abortPresignMultipartUpload) | **DELETE** /repositories/{repository}/branches/{branch}/staging/pmpu/{uploadId} | Abort a presign multipart upload
[**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
[**createUserExternalPrincipal**](ExperimentalApi.md#createUserExternalPrincipal) | **POST** /auth/users/{userId}/external/principals | attach external principal to user
+[**deletePullRequest**](ExperimentalApi.md#deletePullRequest) | **DELETE** /repositories/{repository}/pulls/{pull_request} | delete pull request
[**deleteUserExternalPrincipal**](ExperimentalApi.md#deleteUserExternalPrincipal) | **DELETE** /auth/users/{userId}/external/principals | delete external principal from user
[**externalPrincipalLogin**](ExperimentalApi.md#externalPrincipalLogin) | **POST** /auth/external/principal/login | perform a login using an external authenticator
[**getExternalPrincipal**](ExperimentalApi.md#getExternalPrincipal) | **GET** /auth/external/principals | describe external principal by id
+[**getPullRequest**](ExperimentalApi.md#getPullRequest) | **GET** /repositories/{repository}/pulls/{pull_request} | get pull request
[**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
[**stsLogin**](ExperimentalApi.md#stsLogin) | **POST** /sts/login | perform a login with STS
+[**updatePullRequest**](ExperimentalApi.md#updatePullRequest) | **PATCH** /repositories/{repository}/pulls/{pull_request} | update pull request
@@ -323,6 +328,103 @@ Name | Type | Description | Notes
**420** | too many requests | - |
**0** | Internal Server Error | - |
+
+# **createPullRequest**
+> String createPullRequest(repository, pullRequestCreation)
+
+create pull request
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.api.ApiClient;
+import io.lakefs.clients.api.ApiException;
+import io.lakefs.clients.api.Configuration;
+import io.lakefs.clients.api.auth.*;
+import io.lakefs.clients.api.models.*;
+import io.lakefs.clients.api.ExperimentalApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost/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 HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER 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");
+
+ ExperimentalApi apiInstance = new ExperimentalApi(defaultClient);
+ String repository = "repository_example"; // String |
+ PullRequestCreation pullRequestCreation = new PullRequestCreation(); // PullRequestCreation |
+ try {
+ String result = apiInstance.createPullRequest(repository, pullRequestCreation);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#createPullRequest");
+ 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**| |
+ **pullRequestCreation** | [**PullRequestCreation**](PullRequestCreation.md)| |
+
+### Return type
+
+**String**
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [jwt_token](../README.md#jwt_token), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: text/html, application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | pull request id | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**409** | Resource Conflicts With Target | - |
+**420** | too many requests | - |
+**0** | Internal Server Error | - |
+
# **createUserExternalPrincipal**
> createUserExternalPrincipal(userId, principalId, externalPrincipalCreation)
@@ -419,6 +521,100 @@ null (empty response body)
**420** | too many requests | - |
**0** | Internal Server Error | - |
+
+# **deletePullRequest**
+> deletePullRequest(repository, pullRequest)
+
+delete pull request
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.api.ApiClient;
+import io.lakefs.clients.api.ApiException;
+import io.lakefs.clients.api.Configuration;
+import io.lakefs.clients.api.auth.*;
+import io.lakefs.clients.api.models.*;
+import io.lakefs.clients.api.ExperimentalApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost/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 HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER 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");
+
+ ExperimentalApi apiInstance = new ExperimentalApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String pullRequest = "pullRequest_example"; // String | pull request id
+ try {
+ apiInstance.deletePullRequest(repository, pullRequest);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#deletePullRequest");
+ 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**| |
+ **pullRequest** | **String**| pull request id |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [jwt_token](../README.md#jwt_token), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | pull request deleted successfully | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**420** | too many requests | - |
+**0** | Internal Server Error | - |
+
# **deleteUserExternalPrincipal**
> deleteUserExternalPrincipal(userId, principalId)
@@ -670,6 +866,100 @@ Name | Type | Description | Notes
**420** | too many requests | - |
**0** | Internal Server Error | - |
+
+# **getPullRequest**
+> PullRequest getPullRequest(repository, pullRequest)
+
+get pull request
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.api.ApiClient;
+import io.lakefs.clients.api.ApiException;
+import io.lakefs.clients.api.Configuration;
+import io.lakefs.clients.api.auth.*;
+import io.lakefs.clients.api.models.*;
+import io.lakefs.clients.api.ExperimentalApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost/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 HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER 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");
+
+ ExperimentalApi apiInstance = new ExperimentalApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String pullRequest = "pullRequest_example"; // String | pull request id
+ try {
+ PullRequest result = apiInstance.getPullRequest(repository, pullRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#getPullRequest");
+ 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**| |
+ **pullRequest** | **String**| pull request id |
+
+### Return type
+
+[**PullRequest**](PullRequest.md)
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [jwt_token](../README.md#jwt_token), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | pull request | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**420** | too many requests | - |
+**0** | Internal Server Error | - |
+
# **hardResetBranch**
> hardResetBranch(repository, branch, ref, force)
@@ -771,6 +1061,106 @@ null (empty response body)
**420** | too many requests | - |
**0** | Internal Server Error | - |
+
+# **listPullRequests**
+> PullRequestsList listPullRequests(repository, prefix, after, amount, state)
+
+list pull requests
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.api.ApiClient;
+import io.lakefs.clients.api.ApiException;
+import io.lakefs.clients.api.Configuration;
+import io.lakefs.clients.api.auth.*;
+import io.lakefs.clients.api.models.*;
+import io.lakefs.clients.api.ExperimentalApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost/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 HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER 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");
+
+ ExperimentalApi apiInstance = new ExperimentalApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String prefix = "prefix_example"; // String | return items prefixed with this value
+ String after = "after_example"; // String | return items after this value
+ Integer amount = 100; // Integer | how many items to return
+ String state = "open"; // String |
+ try {
+ PullRequestsList result = apiInstance.listPullRequests(repository, prefix, after, amount, state);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#listPullRequests");
+ 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**| |
+ **prefix** | **String**| return items prefixed with this value | [optional]
+ **after** | **String**| return items after this value | [optional]
+ **amount** | **Integer**| how many items to return | [optional] [default to 100]
+ **state** | **String**| | [optional] [default to all] [enum: open, closed, all]
+
+### Return type
+
+[**PullRequestsList**](PullRequestsList.md)
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [jwt_token](../README.md#jwt_token), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | list of pull requests | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**420** | too many requests | - |
+**0** | Internal Server Error | - |
+
# **listUserExternalPrincipals**
> ExternalPrincipalList listUserExternalPrincipals(userId, prefix, after, amount)
@@ -932,3 +1322,99 @@ No authorization required
**420** | too many requests | - |
**0** | Internal Server Error | - |
+
+# **updatePullRequest**
+> updatePullRequest(repository, pullRequest, pullRequestBasic)
+
+update pull request
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.api.ApiClient;
+import io.lakefs.clients.api.ApiException;
+import io.lakefs.clients.api.Configuration;
+import io.lakefs.clients.api.auth.*;
+import io.lakefs.clients.api.models.*;
+import io.lakefs.clients.api.ExperimentalApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost/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 HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER 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");
+
+ ExperimentalApi apiInstance = new ExperimentalApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String pullRequest = "pullRequest_example"; // String | pull request id
+ PullRequestBasic pullRequestBasic = new PullRequestBasic(); // PullRequestBasic |
+ try {
+ apiInstance.updatePullRequest(repository, pullRequest, pullRequestBasic);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#updatePullRequest");
+ 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**| |
+ **pullRequest** | **String**| pull request id |
+ **pullRequestBasic** | [**PullRequestBasic**](PullRequestBasic.md)| |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [jwt_token](../README.md#jwt_token), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | pull request deleted successfully | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**420** | too many requests | - |
+**0** | Internal Server Error | - |
+
diff --git a/clients/java-legacy/docs/PullRequest.md b/clients/java-legacy/docs/PullRequest.md
new file mode 100644
index 00000000000..49ff6f9f75a
--- /dev/null
+++ b/clients/java-legacy/docs/PullRequest.md
@@ -0,0 +1,31 @@
+
+
+# PullRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | |
+**creationDate** | **Long** | |
+**author** | **String** | |
+**sourceBranch** | **String** | |
+**destinationBranch** | **String** | |
+**commitId** | **String** | the commit id of merged PRs | [optional]
+**status** | [**StatusEnum**](#StatusEnum) | |
+**title** | **String** | |
+**description** | **String** | |
+
+
+
+## Enum: StatusEnum
+
+Name | Value
+---- | -----
+OPEN | "open"
+CLOSED | "closed"
+MERGED | "merged"
+
+
+
diff --git a/clients/java-legacy/docs/PullRequestBasic.md b/clients/java-legacy/docs/PullRequestBasic.md
new file mode 100644
index 00000000000..7597aa560b4
--- /dev/null
+++ b/clients/java-legacy/docs/PullRequestBasic.md
@@ -0,0 +1,25 @@
+
+
+# PullRequestBasic
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**status** | [**StatusEnum**](#StatusEnum) | | [optional]
+**title** | **String** | | [optional]
+**description** | **String** | | [optional]
+
+
+
+## Enum: StatusEnum
+
+Name | Value
+---- | -----
+OPEN | "open"
+CLOSED | "closed"
+MERGED | "merged"
+
+
+
diff --git a/clients/java-legacy/docs/PullRequestCreation.md b/clients/java-legacy/docs/PullRequestCreation.md
new file mode 100644
index 00000000000..f5e41a272cd
--- /dev/null
+++ b/clients/java-legacy/docs/PullRequestCreation.md
@@ -0,0 +1,16 @@
+
+
+# PullRequestCreation
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**title** | **String** | |
+**description** | **String** | |
+**sourceBranch** | **String** | |
+**destinationBranch** | **String** | |
+
+
+
diff --git a/clients/java-legacy/docs/PullRequestsList.md b/clients/java-legacy/docs/PullRequestsList.md
new file mode 100644
index 00000000000..caa6e819683
--- /dev/null
+++ b/clients/java-legacy/docs/PullRequestsList.md
@@ -0,0 +1,14 @@
+
+
+# PullRequestsList
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pagination** | [**Pagination**](Pagination.md) | |
+**results** | [**List<PullRequest>**](PullRequest.md) | |
+
+
+
diff --git a/clients/java-legacy/docs/PullsApi.md b/clients/java-legacy/docs/PullsApi.md
new file mode 100644
index 00000000000..f08423af8da
--- /dev/null
+++ b/clients/java-legacy/docs/PullsApi.md
@@ -0,0 +1,494 @@
+# PullsApi
+
+All URIs are relative to *http://localhost/api/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**createPullRequest**](PullsApi.md#createPullRequest) | **POST** /repositories/{repository}/pulls | create pull request
+[**deletePullRequest**](PullsApi.md#deletePullRequest) | **DELETE** /repositories/{repository}/pulls/{pull_request} | delete pull request
+[**getPullRequest**](PullsApi.md#getPullRequest) | **GET** /repositories/{repository}/pulls/{pull_request} | get pull request
+[**listPullRequests**](PullsApi.md#listPullRequests) | **GET** /repositories/{repository}/pulls | list pull requests
+[**updatePullRequest**](PullsApi.md#updatePullRequest) | **PATCH** /repositories/{repository}/pulls/{pull_request} | update pull request
+
+
+
+# **createPullRequest**
+> String createPullRequest(repository, pullRequestCreation)
+
+create pull request
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.api.ApiClient;
+import io.lakefs.clients.api.ApiException;
+import io.lakefs.clients.api.Configuration;
+import io.lakefs.clients.api.auth.*;
+import io.lakefs.clients.api.models.*;
+import io.lakefs.clients.api.PullsApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost/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 HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER 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");
+
+ PullsApi apiInstance = new PullsApi(defaultClient);
+ String repository = "repository_example"; // String |
+ PullRequestCreation pullRequestCreation = new PullRequestCreation(); // PullRequestCreation |
+ try {
+ String result = apiInstance.createPullRequest(repository, pullRequestCreation);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PullsApi#createPullRequest");
+ 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**| |
+ **pullRequestCreation** | [**PullRequestCreation**](PullRequestCreation.md)| |
+
+### Return type
+
+**String**
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [jwt_token](../README.md#jwt_token), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: text/html, application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | pull request id | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**409** | Resource Conflicts With Target | - |
+**420** | too many requests | - |
+**0** | Internal Server Error | - |
+
+
+# **deletePullRequest**
+> deletePullRequest(repository, pullRequest)
+
+delete pull request
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.api.ApiClient;
+import io.lakefs.clients.api.ApiException;
+import io.lakefs.clients.api.Configuration;
+import io.lakefs.clients.api.auth.*;
+import io.lakefs.clients.api.models.*;
+import io.lakefs.clients.api.PullsApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost/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 HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER 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");
+
+ PullsApi apiInstance = new PullsApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String pullRequest = "pullRequest_example"; // String | pull request id
+ try {
+ apiInstance.deletePullRequest(repository, pullRequest);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PullsApi#deletePullRequest");
+ 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**| |
+ **pullRequest** | **String**| pull request id |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [jwt_token](../README.md#jwt_token), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | pull request deleted successfully | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**420** | too many requests | - |
+**0** | Internal Server Error | - |
+
+
+# **getPullRequest**
+> PullRequest getPullRequest(repository, pullRequest)
+
+get pull request
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.api.ApiClient;
+import io.lakefs.clients.api.ApiException;
+import io.lakefs.clients.api.Configuration;
+import io.lakefs.clients.api.auth.*;
+import io.lakefs.clients.api.models.*;
+import io.lakefs.clients.api.PullsApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost/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 HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER 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");
+
+ PullsApi apiInstance = new PullsApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String pullRequest = "pullRequest_example"; // String | pull request id
+ try {
+ PullRequest result = apiInstance.getPullRequest(repository, pullRequest);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PullsApi#getPullRequest");
+ 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**| |
+ **pullRequest** | **String**| pull request id |
+
+### Return type
+
+[**PullRequest**](PullRequest.md)
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [jwt_token](../README.md#jwt_token), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | pull request | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**420** | too many requests | - |
+**0** | Internal Server Error | - |
+
+
+# **listPullRequests**
+> PullRequestsList listPullRequests(repository, prefix, after, amount, state)
+
+list pull requests
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.api.ApiClient;
+import io.lakefs.clients.api.ApiException;
+import io.lakefs.clients.api.Configuration;
+import io.lakefs.clients.api.auth.*;
+import io.lakefs.clients.api.models.*;
+import io.lakefs.clients.api.PullsApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost/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 HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER 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");
+
+ PullsApi apiInstance = new PullsApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String prefix = "prefix_example"; // String | return items prefixed with this value
+ String after = "after_example"; // String | return items after this value
+ Integer amount = 100; // Integer | how many items to return
+ String state = "open"; // String |
+ try {
+ PullRequestsList result = apiInstance.listPullRequests(repository, prefix, after, amount, state);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PullsApi#listPullRequests");
+ 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**| |
+ **prefix** | **String**| return items prefixed with this value | [optional]
+ **after** | **String**| return items after this value | [optional]
+ **amount** | **Integer**| how many items to return | [optional] [default to 100]
+ **state** | **String**| | [optional] [default to all] [enum: open, closed, all]
+
+### Return type
+
+[**PullRequestsList**](PullRequestsList.md)
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [jwt_token](../README.md#jwt_token), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | list of pull requests | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**420** | too many requests | - |
+**0** | Internal Server Error | - |
+
+
+# **updatePullRequest**
+> updatePullRequest(repository, pullRequest, pullRequestBasic)
+
+update pull request
+
+### Example
+```java
+// Import classes:
+import io.lakefs.clients.api.ApiClient;
+import io.lakefs.clients.api.ApiException;
+import io.lakefs.clients.api.Configuration;
+import io.lakefs.clients.api.auth.*;
+import io.lakefs.clients.api.models.*;
+import io.lakefs.clients.api.PullsApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://localhost/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 HTTP bearer authorization: jwt_token
+ HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
+ jwt_token.setBearerToken("BEARER 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");
+
+ PullsApi apiInstance = new PullsApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String pullRequest = "pullRequest_example"; // String | pull request id
+ PullRequestBasic pullRequestBasic = new PullRequestBasic(); // PullRequestBasic |
+ try {
+ apiInstance.updatePullRequest(repository, pullRequest, pullRequestBasic);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PullsApi#updatePullRequest");
+ 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**| |
+ **pullRequest** | **String**| pull request id |
+ **pullRequestBasic** | [**PullRequestBasic**](PullRequestBasic.md)| |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [jwt_token](../README.md#jwt_token), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | pull request deleted successfully | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**420** | too many requests | - |
+**0** | Internal Server Error | - |
+
diff --git a/clients/java-legacy/src/main/java/io/lakefs/clients/api/ExperimentalApi.java b/clients/java-legacy/src/main/java/io/lakefs/clients/api/ExperimentalApi.java
index af8b8656512..5c2df9402d6 100644
--- a/clients/java-legacy/src/main/java/io/lakefs/clients/api/ExperimentalApi.java
+++ b/clients/java-legacy/src/main/java/io/lakefs/clients/api/ExperimentalApi.java
@@ -37,6 +37,10 @@
import io.lakefs.clients.api.model.ExternalPrincipalList;
import io.lakefs.clients.api.model.ObjectStats;
import io.lakefs.clients.api.model.PresignMultipartUpload;
+import io.lakefs.clients.api.model.PullRequest;
+import io.lakefs.clients.api.model.PullRequestBasic;
+import io.lakefs.clients.api.model.PullRequestCreation;
+import io.lakefs.clients.api.model.PullRequestsList;
import io.lakefs.clients.api.model.StagingLocation;
import io.lakefs.clients.api.model.StsAuthRequest;
@@ -566,6 +570,155 @@ public okhttp3.Call createPresignMultipartUploadAsync(String repository, String
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
+ /**
+ * Build call for createPullRequest
+ * @param repository (required)
+ * @param pullRequestCreation (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 201 | pull request id | - |
+ 400 | Validation Error | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 409 | Resource Conflicts With Target | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call createPullRequestCall(String repository, PullRequestCreation pullRequestCreation, final ApiCallback _callback) throws ApiException {
+ Object localVarPostBody = pullRequestCreation;
+
+ // create path and map variables
+ String localVarPath = "/repositories/{repository}/pulls"
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "text/html", "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
+ return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call 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 'pullRequestCreation' is set
+ if (pullRequestCreation == null) {
+ throw new ApiException("Missing the required parameter 'pullRequestCreation' when calling createPullRequest(Async)");
+ }
+
+
+ okhttp3.Call localVarCall = createPullRequestCall(repository, pullRequestCreation, _callback);
+ return localVarCall;
+
+ }
+
+ /**
+ * create pull request
+ *
+ * @param repository (required)
+ * @param pullRequestCreation (required)
+ * @return String
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 201 | pull request id | - |
+ 400 | Validation Error | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 409 | Resource Conflicts With Target | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public String createPullRequest(String repository, PullRequestCreation pullRequestCreation) throws ApiException {
+ ApiResponse localVarResp = createPullRequestWithHttpInfo(repository, pullRequestCreation);
+ return localVarResp.getData();
+ }
+
+ /**
+ * create pull request
+ *
+ * @param repository (required)
+ * @param pullRequestCreation (required)
+ * @return ApiResponse<String>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 201 | pull request id | - |
+ 400 | Validation Error | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 409 | Resource Conflicts With Target | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public 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);
+ }
+
+ /**
+ * create pull request (asynchronously)
+ *
+ * @param repository (required)
+ * @param pullRequestCreation (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 201 | pull request id | - |
+ 400 | Validation Error | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 409 | Resource Conflicts With Target | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call createPullRequestAsync(String repository, PullRequestCreation pullRequestCreation, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = createPullRequestValidateBeforeCall(repository, pullRequestCreation, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
/**
* Build call for createUserExternalPrincipal
* @param userId (required)
@@ -711,6 +864,144 @@ public okhttp3.Call createUserExternalPrincipalAsync(String userId, String princ
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
+ /**
+ * Build call for deletePullRequest
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call deletePullRequestCall(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repositories/{repository}/pulls/{pull_request}"
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "pull_request" + "\\}", localVarApiClient.escapeString(pullRequest.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
+ return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call deletePullRequestValidateBeforeCall(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 deletePullRequest(Async)");
+ }
+
+ // verify the required parameter 'pullRequest' is set
+ if (pullRequest == null) {
+ throw new ApiException("Missing the required parameter 'pullRequest' when calling deletePullRequest(Async)");
+ }
+
+
+ okhttp3.Call localVarCall = deletePullRequestCall(repository, pullRequest, _callback);
+ return localVarCall;
+
+ }
+
+ /**
+ * delete pull request
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public void deletePullRequest(String repository, String pullRequest) throws ApiException {
+ deletePullRequestWithHttpInfo(repository, pullRequest);
+ }
+
+ /**
+ * delete pull request
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public ApiResponse deletePullRequestWithHttpInfo(String repository, String pullRequest) throws ApiException {
+ okhttp3.Call localVarCall = deletePullRequestValidateBeforeCall(repository, pullRequest, null);
+ return localVarApiClient.execute(localVarCall);
+ }
+
+ /**
+ * delete pull request (asynchronously)
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call deletePullRequestAsync(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = deletePullRequestValidateBeforeCall(repository, pullRequest, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
+ return localVarCall;
+ }
/**
* Build call for deleteUserExternalPrincipal
* @param userId (required)
@@ -1110,33 +1401,29 @@ public okhttp3.Call getExternalPrincipalAsync(String principalId, final ApiCallb
return localVarCall;
}
/**
- * Build call for hardResetBranch
+ * Build call for getPullRequest
* @param repository (required)
- * @param branch (required)
- * @param ref After reset, branch will point at this reference. (required)
- * @param force (optional, default to false)
+ * @param pullRequest pull request id (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code | Description | Response Headers |
- 204 | reset successful | - |
- 400 | Bad Request | - |
+ 200 | pull request | - |
401 | Unauthorized | - |
- 403 | Forbidden | - |
404 | Resource Not Found | - |
420 | too many requests | - |
0 | Internal Server Error | - |
*/
- public okhttp3.Call hardResetBranchCall(String repository, String branch, String ref, Boolean force, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getPullRequestCall(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/repositories/{repository}/branches/{branch}/hard_reset"
+ String localVarPath = "/repositories/{repository}/pulls/{pull_request}"
.replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
- .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "pull_request" + "\\}", localVarApiClient.escapeString(pullRequest.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1144,14 +1431,6 @@ public okhttp3.Call hardResetBranchCall(String repository, String branch, String
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"
};
@@ -1167,36 +1446,186 @@ public okhttp3.Call hardResetBranchCall(String repository, String branch, String
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
- return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(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 {
+ 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 hardResetBranch(Async)");
- }
-
- // verify the required parameter 'branch' is set
- if (branch == null) {
- throw new ApiException("Missing the required parameter 'branch' when calling hardResetBranch(Async)");
+ throw new ApiException("Missing the required parameter 'repository' when calling getPullRequest(Async)");
}
- // verify the required parameter 'ref' is set
- if (ref == null) {
- throw new ApiException("Missing the required parameter 'ref' when calling hardResetBranch(Async)");
+ // verify the required parameter 'pullRequest' is set
+ if (pullRequest == null) {
+ throw new ApiException("Missing the required parameter 'pullRequest' when calling getPullRequest(Async)");
}
- okhttp3.Call localVarCall = hardResetBranchCall(repository, branch, ref, force, _callback);
+ okhttp3.Call localVarCall = getPullRequestCall(repository, pullRequest, _callback);
return localVarCall;
}
/**
- * hard reset branch
- * Relocate branch to refer to ref. Branch must not contain uncommitted data.
+ * get pull request
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @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 |
+ 200 | pull request | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public PullRequest getPullRequest(String repository, String pullRequest) throws ApiException {
+ ApiResponse localVarResp = getPullRequestWithHttpInfo(repository, pullRequest);
+ return localVarResp.getData();
+ }
+
+ /**
+ * get pull request
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @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 |
+ 200 | pull request | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public 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);
+ }
+
+ /**
+ * get pull request (asynchronously)
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | pull request | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call getPullRequestAsync(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = getPullRequestValidateBeforeCall(repository, pullRequest, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+ /**
+ * Build call for hardResetBranch
+ * @param repository (required)
+ * @param branch (required)
+ * @param ref After reset, branch will point at this reference. (required)
+ * @param force (optional, default to false)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | reset successful | - |
+ 400 | Bad Request | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call hardResetBranchCall(String repository, String branch, String ref, Boolean force, final ApiCallback _callback) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repositories/{repository}/branches/{branch}/hard_reset"
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (ref != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("ref", ref));
+ }
+
+ if (force != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force));
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
+ return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call 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)");
+ }
+
+
+ okhttp3.Call localVarCall = hardResetBranchCall(repository, branch, ref, force, _callback);
+ return localVarCall;
+
+ }
+
+ /**
+ * hard reset branch
+ * Relocate branch to refer to ref. Branch must not contain uncommitted data.
* @param repository (required)
* @param branch (required)
* @param ref After reset, branch will point at this reference. (required)
@@ -1272,6 +1701,166 @@ public okhttp3.Call hardResetBranchAsync(String repository, String branch, Strin
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
+ /**
+ * Build call for listPullRequests
+ * @param repository (required)
+ * @param prefix return items prefixed with this value (optional)
+ * @param after return items after this value (optional)
+ * @param amount how many items to return (optional, default to 100)
+ * @param state (optional, default to all)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | list of pull requests | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call listPullRequestsCall(String repository, String prefix, String after, Integer amount, String state, final ApiCallback _callback) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repositories/{repository}/pulls"
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (prefix != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("prefix", prefix));
+ }
+
+ if (after != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("after", after));
+ }
+
+ if (amount != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("amount", amount));
+ }
+
+ if (state != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("state", state));
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
+ return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call listPullRequestsValidateBeforeCall(String repository, String prefix, String after, Integer amount, String state, 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 listPullRequests(Async)");
+ }
+
+
+ okhttp3.Call localVarCall = listPullRequestsCall(repository, prefix, after, amount, state, _callback);
+ return localVarCall;
+
+ }
+
+ /**
+ * list pull requests
+ *
+ * @param repository (required)
+ * @param prefix return items prefixed with this value (optional)
+ * @param after return items after this value (optional)
+ * @param amount how many items to return (optional, default to 100)
+ * @param state (optional, default to all)
+ * @return PullRequestsList
+ * @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 | list of pull requests | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public PullRequestsList listPullRequests(String repository, String prefix, String after, Integer amount, String state) throws ApiException {
+ ApiResponse localVarResp = listPullRequestsWithHttpInfo(repository, prefix, after, amount, state);
+ return localVarResp.getData();
+ }
+
+ /**
+ * list pull requests
+ *
+ * @param repository (required)
+ * @param prefix return items prefixed with this value (optional)
+ * @param after return items after this value (optional)
+ * @param amount how many items to return (optional, default to 100)
+ * @param state (optional, default to all)
+ * @return ApiResponse<PullRequestsList>
+ * @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 | list of pull requests | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public ApiResponse listPullRequestsWithHttpInfo(String repository, String prefix, String after, Integer amount, String state) throws ApiException {
+ okhttp3.Call localVarCall = listPullRequestsValidateBeforeCall(repository, prefix, after, amount, state, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * list pull requests (asynchronously)
+ *
+ * @param repository (required)
+ * @param prefix return items prefixed with this value (optional)
+ * @param after return items after this value (optional)
+ * @param amount how many items to return (optional, default to 100)
+ * @param state (optional, default to all)
+ * @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 | list of pull requests | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call listPullRequestsAsync(String repository, String prefix, String after, Integer amount, String state, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = listPullRequestsValidateBeforeCall(repository, prefix, after, amount, state, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
/**
* Build call for listUserExternalPrincipals
* @param userId (required)
@@ -1547,4 +2136,151 @@ public okhttp3.Call stsLoginAsync(StsAuthRequest stsAuthRequest, final ApiCallba
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
+ /**
+ * Build call for updatePullRequest
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param pullRequestBasic (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call updatePullRequestCall(String repository, String pullRequest, PullRequestBasic pullRequestBasic, final ApiCallback _callback) throws ApiException {
+ Object localVarPostBody = pullRequestBasic;
+
+ // create path and map variables
+ String localVarPath = "/repositories/{repository}/pulls/{pull_request}"
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "pull_request" + "\\}", localVarApiClient.escapeString(pullRequest.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
+ return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call updatePullRequestValidateBeforeCall(String repository, String pullRequest, PullRequestBasic pullRequestBasic, 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 updatePullRequest(Async)");
+ }
+
+ // verify the required parameter 'pullRequest' is set
+ if (pullRequest == null) {
+ throw new ApiException("Missing the required parameter 'pullRequest' when calling updatePullRequest(Async)");
+ }
+
+ // verify the required parameter 'pullRequestBasic' is set
+ if (pullRequestBasic == null) {
+ throw new ApiException("Missing the required parameter 'pullRequestBasic' when calling updatePullRequest(Async)");
+ }
+
+
+ okhttp3.Call localVarCall = updatePullRequestCall(repository, pullRequest, pullRequestBasic, _callback);
+ return localVarCall;
+
+ }
+
+ /**
+ * update pull request
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param pullRequestBasic (required)
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public void updatePullRequest(String repository, String pullRequest, PullRequestBasic pullRequestBasic) throws ApiException {
+ updatePullRequestWithHttpInfo(repository, pullRequest, pullRequestBasic);
+ }
+
+ /**
+ * update pull request
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param pullRequestBasic (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public ApiResponse updatePullRequestWithHttpInfo(String repository, String pullRequest, PullRequestBasic pullRequestBasic) throws ApiException {
+ okhttp3.Call localVarCall = updatePullRequestValidateBeforeCall(repository, pullRequest, pullRequestBasic, null);
+ return localVarApiClient.execute(localVarCall);
+ }
+
+ /**
+ * update pull request (asynchronously)
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param pullRequestBasic (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call updatePullRequestAsync(String repository, String pullRequest, PullRequestBasic pullRequestBasic, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = updatePullRequestValidateBeforeCall(repository, pullRequest, pullRequestBasic, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
+ return localVarCall;
+ }
}
diff --git a/clients/java-legacy/src/main/java/io/lakefs/clients/api/PullsApi.java b/clients/java-legacy/src/main/java/io/lakefs/clients/api/PullsApi.java
new file mode 100644
index 00000000000..bdf8102dd6e
--- /dev/null
+++ b/clients/java-legacy/src/main/java/io/lakefs/clients/api/PullsApi.java
@@ -0,0 +1,793 @@
+/*
+ * lakeFS API
+ * lakeFS HTTP API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package io.lakefs.clients.api;
+
+import io.lakefs.clients.api.ApiCallback;
+import io.lakefs.clients.api.ApiClient;
+import io.lakefs.clients.api.ApiException;
+import io.lakefs.clients.api.ApiResponse;
+import io.lakefs.clients.api.Configuration;
+import io.lakefs.clients.api.Pair;
+import io.lakefs.clients.api.ProgressRequestBody;
+import io.lakefs.clients.api.ProgressResponseBody;
+
+import com.google.gson.reflect.TypeToken;
+
+import java.io.IOException;
+
+
+import io.lakefs.clients.api.model.Error;
+import io.lakefs.clients.api.model.PullRequest;
+import io.lakefs.clients.api.model.PullRequestBasic;
+import io.lakefs.clients.api.model.PullRequestCreation;
+import io.lakefs.clients.api.model.PullRequestsList;
+
+import java.lang.reflect.Type;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class PullsApi {
+ private ApiClient localVarApiClient;
+
+ public PullsApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public PullsApi(ApiClient apiClient) {
+ this.localVarApiClient = apiClient;
+ }
+
+ public ApiClient getApiClient() {
+ return localVarApiClient;
+ }
+
+ public void setApiClient(ApiClient apiClient) {
+ this.localVarApiClient = apiClient;
+ }
+
+ /**
+ * Build call for createPullRequest
+ * @param repository (required)
+ * @param pullRequestCreation (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 201 | pull request id | - |
+ 400 | Validation Error | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 409 | Resource Conflicts With Target | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call createPullRequestCall(String repository, PullRequestCreation pullRequestCreation, final ApiCallback _callback) throws ApiException {
+ Object localVarPostBody = pullRequestCreation;
+
+ // create path and map variables
+ String localVarPath = "/repositories/{repository}/pulls"
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "text/html", "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
+ return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call 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 'pullRequestCreation' is set
+ if (pullRequestCreation == null) {
+ throw new ApiException("Missing the required parameter 'pullRequestCreation' when calling createPullRequest(Async)");
+ }
+
+
+ okhttp3.Call localVarCall = createPullRequestCall(repository, pullRequestCreation, _callback);
+ return localVarCall;
+
+ }
+
+ /**
+ * create pull request
+ *
+ * @param repository (required)
+ * @param pullRequestCreation (required)
+ * @return String
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 201 | pull request id | - |
+ 400 | Validation Error | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 409 | Resource Conflicts With Target | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public String createPullRequest(String repository, PullRequestCreation pullRequestCreation) throws ApiException {
+ ApiResponse localVarResp = createPullRequestWithHttpInfo(repository, pullRequestCreation);
+ return localVarResp.getData();
+ }
+
+ /**
+ * create pull request
+ *
+ * @param repository (required)
+ * @param pullRequestCreation (required)
+ * @return ApiResponse<String>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 201 | pull request id | - |
+ 400 | Validation Error | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 409 | Resource Conflicts With Target | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public 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);
+ }
+
+ /**
+ * create pull request (asynchronously)
+ *
+ * @param repository (required)
+ * @param pullRequestCreation (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 201 | pull request id | - |
+ 400 | Validation Error | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 409 | Resource Conflicts With Target | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call createPullRequestAsync(String repository, PullRequestCreation pullRequestCreation, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = createPullRequestValidateBeforeCall(repository, pullRequestCreation, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+ /**
+ * Build call for deletePullRequest
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call deletePullRequestCall(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repositories/{repository}/pulls/{pull_request}"
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "pull_request" + "\\}", localVarApiClient.escapeString(pullRequest.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
+ return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call deletePullRequestValidateBeforeCall(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 deletePullRequest(Async)");
+ }
+
+ // verify the required parameter 'pullRequest' is set
+ if (pullRequest == null) {
+ throw new ApiException("Missing the required parameter 'pullRequest' when calling deletePullRequest(Async)");
+ }
+
+
+ okhttp3.Call localVarCall = deletePullRequestCall(repository, pullRequest, _callback);
+ return localVarCall;
+
+ }
+
+ /**
+ * delete pull request
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public void deletePullRequest(String repository, String pullRequest) throws ApiException {
+ deletePullRequestWithHttpInfo(repository, pullRequest);
+ }
+
+ /**
+ * delete pull request
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public ApiResponse deletePullRequestWithHttpInfo(String repository, String pullRequest) throws ApiException {
+ okhttp3.Call localVarCall = deletePullRequestValidateBeforeCall(repository, pullRequest, null);
+ return localVarApiClient.execute(localVarCall);
+ }
+
+ /**
+ * delete pull request (asynchronously)
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call deletePullRequestAsync(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = deletePullRequestValidateBeforeCall(repository, pullRequest, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
+ return localVarCall;
+ }
+ /**
+ * Build call for getPullRequest
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | pull request | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call getPullRequestCall(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repositories/{repository}/pulls/{pull_request}"
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "pull_request" + "\\}", localVarApiClient.escapeString(pullRequest.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
+ return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call 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)");
+ }
+
+
+ okhttp3.Call localVarCall = getPullRequestCall(repository, pullRequest, _callback);
+ return localVarCall;
+
+ }
+
+ /**
+ * get pull request
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @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 |
+ 200 | pull request | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public PullRequest getPullRequest(String repository, String pullRequest) throws ApiException {
+ ApiResponse localVarResp = getPullRequestWithHttpInfo(repository, pullRequest);
+ return localVarResp.getData();
+ }
+
+ /**
+ * get pull request
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @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 |
+ 200 | pull request | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public 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);
+ }
+
+ /**
+ * get pull request (asynchronously)
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | pull request | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call getPullRequestAsync(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = getPullRequestValidateBeforeCall(repository, pullRequest, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+ /**
+ * Build call for listPullRequests
+ * @param repository (required)
+ * @param prefix return items prefixed with this value (optional)
+ * @param after return items after this value (optional)
+ * @param amount how many items to return (optional, default to 100)
+ * @param state (optional, default to all)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | list of pull requests | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call listPullRequestsCall(String repository, String prefix, String after, Integer amount, String state, final ApiCallback _callback) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repositories/{repository}/pulls"
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (prefix != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("prefix", prefix));
+ }
+
+ if (after != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("after", after));
+ }
+
+ if (amount != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("amount", amount));
+ }
+
+ if (state != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("state", state));
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
+ return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call listPullRequestsValidateBeforeCall(String repository, String prefix, String after, Integer amount, String state, 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 listPullRequests(Async)");
+ }
+
+
+ okhttp3.Call localVarCall = listPullRequestsCall(repository, prefix, after, amount, state, _callback);
+ return localVarCall;
+
+ }
+
+ /**
+ * list pull requests
+ *
+ * @param repository (required)
+ * @param prefix return items prefixed with this value (optional)
+ * @param after return items after this value (optional)
+ * @param amount how many items to return (optional, default to 100)
+ * @param state (optional, default to all)
+ * @return PullRequestsList
+ * @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 | list of pull requests | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public PullRequestsList listPullRequests(String repository, String prefix, String after, Integer amount, String state) throws ApiException {
+ ApiResponse localVarResp = listPullRequestsWithHttpInfo(repository, prefix, after, amount, state);
+ return localVarResp.getData();
+ }
+
+ /**
+ * list pull requests
+ *
+ * @param repository (required)
+ * @param prefix return items prefixed with this value (optional)
+ * @param after return items after this value (optional)
+ * @param amount how many items to return (optional, default to 100)
+ * @param state (optional, default to all)
+ * @return ApiResponse<PullRequestsList>
+ * @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 | list of pull requests | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public ApiResponse listPullRequestsWithHttpInfo(String repository, String prefix, String after, Integer amount, String state) throws ApiException {
+ okhttp3.Call localVarCall = listPullRequestsValidateBeforeCall(repository, prefix, after, amount, state, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * list pull requests (asynchronously)
+ *
+ * @param repository (required)
+ * @param prefix return items prefixed with this value (optional)
+ * @param after return items after this value (optional)
+ * @param amount how many items to return (optional, default to 100)
+ * @param state (optional, default to all)
+ * @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 | list of pull requests | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call listPullRequestsAsync(String repository, String prefix, String after, Integer amount, String state, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = listPullRequestsValidateBeforeCall(repository, prefix, after, amount, state, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+ /**
+ * Build call for updatePullRequest
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param pullRequestBasic (required)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call updatePullRequestCall(String repository, String pullRequest, PullRequestBasic pullRequestBasic, final ApiCallback _callback) throws ApiException {
+ Object localVarPostBody = pullRequestBasic;
+
+ // create path and map variables
+ String localVarPath = "/repositories/{repository}/pulls/{pull_request}"
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "pull_request" + "\\}", localVarApiClient.escapeString(pullRequest.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
+ return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call updatePullRequestValidateBeforeCall(String repository, String pullRequest, PullRequestBasic pullRequestBasic, 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 updatePullRequest(Async)");
+ }
+
+ // verify the required parameter 'pullRequest' is set
+ if (pullRequest == null) {
+ throw new ApiException("Missing the required parameter 'pullRequest' when calling updatePullRequest(Async)");
+ }
+
+ // verify the required parameter 'pullRequestBasic' is set
+ if (pullRequestBasic == null) {
+ throw new ApiException("Missing the required parameter 'pullRequestBasic' when calling updatePullRequest(Async)");
+ }
+
+
+ okhttp3.Call localVarCall = updatePullRequestCall(repository, pullRequest, pullRequestBasic, _callback);
+ return localVarCall;
+
+ }
+
+ /**
+ * update pull request
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param pullRequestBasic (required)
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public void updatePullRequest(String repository, String pullRequest, PullRequestBasic pullRequestBasic) throws ApiException {
+ updatePullRequestWithHttpInfo(repository, pullRequest, pullRequestBasic);
+ }
+
+ /**
+ * update pull request
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param pullRequestBasic (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public ApiResponse updatePullRequestWithHttpInfo(String repository, String pullRequest, PullRequestBasic pullRequestBasic) throws ApiException {
+ okhttp3.Call localVarCall = updatePullRequestValidateBeforeCall(repository, pullRequest, pullRequestBasic, null);
+ return localVarApiClient.execute(localVarCall);
+ }
+
+ /**
+ * update pull request (asynchronously)
+ *
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @param pullRequestBasic (required)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | pull request deleted successfully | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call updatePullRequestAsync(String repository, String pullRequest, PullRequestBasic pullRequestBasic, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = updatePullRequestValidateBeforeCall(repository, pullRequest, pullRequestBasic, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
+ return localVarCall;
+ }
+}
diff --git a/clients/java-legacy/src/main/java/io/lakefs/clients/api/model/PullRequest.java b/clients/java-legacy/src/main/java/io/lakefs/clients/api/model/PullRequest.java
new file mode 100644
index 00000000000..99cd121e590
--- /dev/null
+++ b/clients/java-legacy/src/main/java/io/lakefs/clients/api/model/PullRequest.java
@@ -0,0 +1,380 @@
+/*
+ * lakeFS API
+ * lakeFS HTTP API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package io.lakefs.clients.api.model;
+
+import java.util.Objects;
+import java.util.Arrays;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.lakefs.clients.api.model.PullRequestBasic;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+
+/**
+ * PullRequest
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class PullRequest {
+ public static final String SERIALIZED_NAME_ID = "id";
+ @SerializedName(SERIALIZED_NAME_ID)
+ private String id;
+
+ public static final String SERIALIZED_NAME_CREATION_DATE = "creation_date";
+ @SerializedName(SERIALIZED_NAME_CREATION_DATE)
+ private Long creationDate;
+
+ public static final String SERIALIZED_NAME_AUTHOR = "author";
+ @SerializedName(SERIALIZED_NAME_AUTHOR)
+ private String author;
+
+ public static final String SERIALIZED_NAME_SOURCE_BRANCH = "source_branch";
+ @SerializedName(SERIALIZED_NAME_SOURCE_BRANCH)
+ private String sourceBranch;
+
+ public static final String SERIALIZED_NAME_DESTINATION_BRANCH = "destination_branch";
+ @SerializedName(SERIALIZED_NAME_DESTINATION_BRANCH)
+ private String destinationBranch;
+
+ public static final String SERIALIZED_NAME_COMMIT_ID = "commit_id";
+ @SerializedName(SERIALIZED_NAME_COMMIT_ID)
+ private String commitId;
+
+ /**
+ * Gets or Sets status
+ */
+ @JsonAdapter(StatusEnum.Adapter.class)
+ public enum StatusEnum {
+ OPEN("open"),
+
+ CLOSED("closed"),
+
+ MERGED("merged");
+
+ private String value;
+
+ StatusEnum(String value) {
+ this.value = value;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ @Override
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ public static StatusEnum fromValue(String value) {
+ for (StatusEnum b : StatusEnum.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ }
+
+ public static class Adapter extends TypeAdapter {
+ @Override
+ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException {
+ jsonWriter.value(enumeration.getValue());
+ }
+
+ @Override
+ public StatusEnum read(final JsonReader jsonReader) throws IOException {
+ String value = jsonReader.nextString();
+ return StatusEnum.fromValue(value);
+ }
+ }
+ }
+
+ public static final String SERIALIZED_NAME_STATUS = "status";
+ @SerializedName(SERIALIZED_NAME_STATUS)
+ private StatusEnum status;
+
+ public static final String SERIALIZED_NAME_TITLE = "title";
+ @SerializedName(SERIALIZED_NAME_TITLE)
+ private String title;
+
+ public static final String SERIALIZED_NAME_DESCRIPTION = "description";
+ @SerializedName(SERIALIZED_NAME_DESCRIPTION)
+ private String description;
+
+
+ public PullRequest id(String id) {
+
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get id
+ * @return id
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public String getId() {
+ return id;
+ }
+
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+
+ public PullRequest creationDate(Long creationDate) {
+
+ this.creationDate = creationDate;
+ return this;
+ }
+
+ /**
+ * Get creationDate
+ * @return creationDate
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public Long getCreationDate() {
+ return creationDate;
+ }
+
+
+ public void setCreationDate(Long creationDate) {
+ this.creationDate = creationDate;
+ }
+
+
+ public PullRequest author(String author) {
+
+ this.author = author;
+ return this;
+ }
+
+ /**
+ * Get author
+ * @return author
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public String getAuthor() {
+ return author;
+ }
+
+
+ public void setAuthor(String author) {
+ this.author = author;
+ }
+
+
+ public PullRequest sourceBranch(String sourceBranch) {
+
+ this.sourceBranch = sourceBranch;
+ return this;
+ }
+
+ /**
+ * Get sourceBranch
+ * @return sourceBranch
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public String getSourceBranch() {
+ return sourceBranch;
+ }
+
+
+ public void setSourceBranch(String sourceBranch) {
+ this.sourceBranch = sourceBranch;
+ }
+
+
+ public PullRequest destinationBranch(String destinationBranch) {
+
+ this.destinationBranch = destinationBranch;
+ return this;
+ }
+
+ /**
+ * Get destinationBranch
+ * @return destinationBranch
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public String getDestinationBranch() {
+ return destinationBranch;
+ }
+
+
+ public void setDestinationBranch(String destinationBranch) {
+ this.destinationBranch = destinationBranch;
+ }
+
+
+ public PullRequest commitId(String commitId) {
+
+ this.commitId = commitId;
+ return this;
+ }
+
+ /**
+ * the commit id of merged PRs
+ * @return commitId
+ **/
+ @javax.annotation.Nullable
+ @ApiModelProperty(value = "the commit id of merged PRs")
+
+ public String getCommitId() {
+ return commitId;
+ }
+
+
+ public void setCommitId(String commitId) {
+ this.commitId = commitId;
+ }
+
+
+ public PullRequest status(StatusEnum status) {
+
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get status
+ * @return status
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public StatusEnum getStatus() {
+ return status;
+ }
+
+
+ public void setStatus(StatusEnum status) {
+ this.status = status;
+ }
+
+
+ public PullRequest title(String title) {
+
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * Get title
+ * @return title
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public String getTitle() {
+ return title;
+ }
+
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+
+ public PullRequest description(String description) {
+
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get description
+ * @return description
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public String getDescription() {
+ return description;
+ }
+
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ PullRequest pullRequest = (PullRequest) o;
+ return Objects.equals(this.id, pullRequest.id) &&
+ Objects.equals(this.creationDate, pullRequest.creationDate) &&
+ Objects.equals(this.author, pullRequest.author) &&
+ Objects.equals(this.sourceBranch, pullRequest.sourceBranch) &&
+ Objects.equals(this.destinationBranch, pullRequest.destinationBranch) &&
+ Objects.equals(this.commitId, pullRequest.commitId) &&
+ Objects.equals(this.status, pullRequest.status) &&
+ Objects.equals(this.title, pullRequest.title) &&
+ Objects.equals(this.description, pullRequest.description);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, creationDate, author, sourceBranch, destinationBranch, commitId, status, title, description);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class PullRequest {\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n");
+ sb.append(" author: ").append(toIndentedString(author)).append("\n");
+ sb.append(" sourceBranch: ").append(toIndentedString(sourceBranch)).append("\n");
+ sb.append(" destinationBranch: ").append(toIndentedString(destinationBranch)).append("\n");
+ sb.append(" commitId: ").append(toIndentedString(commitId)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/clients/java-legacy/src/main/java/io/lakefs/clients/api/model/PullRequestBasic.java b/clients/java-legacy/src/main/java/io/lakefs/clients/api/model/PullRequestBasic.java
new file mode 100644
index 00000000000..f4d1038da3f
--- /dev/null
+++ b/clients/java-legacy/src/main/java/io/lakefs/clients/api/model/PullRequestBasic.java
@@ -0,0 +1,205 @@
+/*
+ * lakeFS API
+ * lakeFS HTTP API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package io.lakefs.clients.api.model;
+
+import java.util.Objects;
+import java.util.Arrays;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+
+/**
+ * PullRequestBasic
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class PullRequestBasic {
+ /**
+ * Gets or Sets status
+ */
+ @JsonAdapter(StatusEnum.Adapter.class)
+ public enum StatusEnum {
+ OPEN("open"),
+
+ CLOSED("closed"),
+
+ MERGED("merged");
+
+ private String value;
+
+ StatusEnum(String value) {
+ this.value = value;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ @Override
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ public static StatusEnum fromValue(String value) {
+ for (StatusEnum b : StatusEnum.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ }
+
+ public static class Adapter extends TypeAdapter {
+ @Override
+ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException {
+ jsonWriter.value(enumeration.getValue());
+ }
+
+ @Override
+ public StatusEnum read(final JsonReader jsonReader) throws IOException {
+ String value = jsonReader.nextString();
+ return StatusEnum.fromValue(value);
+ }
+ }
+ }
+
+ public static final String SERIALIZED_NAME_STATUS = "status";
+ @SerializedName(SERIALIZED_NAME_STATUS)
+ private StatusEnum status;
+
+ public static final String SERIALIZED_NAME_TITLE = "title";
+ @SerializedName(SERIALIZED_NAME_TITLE)
+ private String title;
+
+ public static final String SERIALIZED_NAME_DESCRIPTION = "description";
+ @SerializedName(SERIALIZED_NAME_DESCRIPTION)
+ private String description;
+
+
+ public PullRequestBasic status(StatusEnum status) {
+
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get status
+ * @return status
+ **/
+ @javax.annotation.Nullable
+ @ApiModelProperty(value = "")
+
+ public StatusEnum getStatus() {
+ return status;
+ }
+
+
+ public void setStatus(StatusEnum status) {
+ this.status = status;
+ }
+
+
+ public PullRequestBasic title(String title) {
+
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * Get title
+ * @return title
+ **/
+ @javax.annotation.Nullable
+ @ApiModelProperty(value = "")
+
+ public String getTitle() {
+ return title;
+ }
+
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+
+ public PullRequestBasic description(String description) {
+
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get description
+ * @return description
+ **/
+ @javax.annotation.Nullable
+ @ApiModelProperty(value = "")
+
+ public String getDescription() {
+ return description;
+ }
+
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ PullRequestBasic pullRequestBasic = (PullRequestBasic) o;
+ return Objects.equals(this.status, pullRequestBasic.status) &&
+ Objects.equals(this.title, pullRequestBasic.title) &&
+ Objects.equals(this.description, pullRequestBasic.description);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(status, title, description);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class PullRequestBasic {\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/clients/java-legacy/src/main/java/io/lakefs/clients/api/model/PullRequestCreation.java b/clients/java-legacy/src/main/java/io/lakefs/clients/api/model/PullRequestCreation.java
new file mode 100644
index 00000000000..b2419892cb8
--- /dev/null
+++ b/clients/java-legacy/src/main/java/io/lakefs/clients/api/model/PullRequestCreation.java
@@ -0,0 +1,185 @@
+/*
+ * lakeFS API
+ * lakeFS HTTP API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package io.lakefs.clients.api.model;
+
+import java.util.Objects;
+import java.util.Arrays;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+
+/**
+ * PullRequestCreation
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class PullRequestCreation {
+ public static final String SERIALIZED_NAME_TITLE = "title";
+ @SerializedName(SERIALIZED_NAME_TITLE)
+ private String title;
+
+ public static final String SERIALIZED_NAME_DESCRIPTION = "description";
+ @SerializedName(SERIALIZED_NAME_DESCRIPTION)
+ private String description;
+
+ public static final String SERIALIZED_NAME_SOURCE_BRANCH = "source_branch";
+ @SerializedName(SERIALIZED_NAME_SOURCE_BRANCH)
+ private String sourceBranch;
+
+ public static final String SERIALIZED_NAME_DESTINATION_BRANCH = "destination_branch";
+ @SerializedName(SERIALIZED_NAME_DESTINATION_BRANCH)
+ private String destinationBranch;
+
+
+ public PullRequestCreation title(String title) {
+
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * Get title
+ * @return title
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public String getTitle() {
+ return title;
+ }
+
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+
+ public PullRequestCreation description(String description) {
+
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get description
+ * @return description
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public String getDescription() {
+ return description;
+ }
+
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+
+ public PullRequestCreation sourceBranch(String sourceBranch) {
+
+ this.sourceBranch = sourceBranch;
+ return this;
+ }
+
+ /**
+ * Get sourceBranch
+ * @return sourceBranch
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public String getSourceBranch() {
+ return sourceBranch;
+ }
+
+
+ public void setSourceBranch(String sourceBranch) {
+ this.sourceBranch = sourceBranch;
+ }
+
+
+ public PullRequestCreation destinationBranch(String destinationBranch) {
+
+ this.destinationBranch = destinationBranch;
+ return this;
+ }
+
+ /**
+ * Get destinationBranch
+ * @return destinationBranch
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public String getDestinationBranch() {
+ return destinationBranch;
+ }
+
+
+ public void setDestinationBranch(String destinationBranch) {
+ this.destinationBranch = destinationBranch;
+ }
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ PullRequestCreation pullRequestCreation = (PullRequestCreation) o;
+ return Objects.equals(this.title, pullRequestCreation.title) &&
+ Objects.equals(this.description, pullRequestCreation.description) &&
+ Objects.equals(this.sourceBranch, pullRequestCreation.sourceBranch) &&
+ Objects.equals(this.destinationBranch, pullRequestCreation.destinationBranch);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(title, description, sourceBranch, destinationBranch);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class PullRequestCreation {\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" sourceBranch: ").append(toIndentedString(sourceBranch)).append("\n");
+ sb.append(" destinationBranch: ").append(toIndentedString(destinationBranch)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/clients/java-legacy/src/main/java/io/lakefs/clients/api/model/PullRequestsList.java b/clients/java-legacy/src/main/java/io/lakefs/clients/api/model/PullRequestsList.java
new file mode 100644
index 00000000000..e09480b16ad
--- /dev/null
+++ b/clients/java-legacy/src/main/java/io/lakefs/clients/api/model/PullRequestsList.java
@@ -0,0 +1,136 @@
+/*
+ * lakeFS API
+ * lakeFS HTTP API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package io.lakefs.clients.api.model;
+
+import java.util.Objects;
+import java.util.Arrays;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.lakefs.clients.api.model.Pagination;
+import io.lakefs.clients.api.model.PullRequest;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * PullRequestsList
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class PullRequestsList {
+ public static final String SERIALIZED_NAME_PAGINATION = "pagination";
+ @SerializedName(SERIALIZED_NAME_PAGINATION)
+ private Pagination pagination;
+
+ public static final String SERIALIZED_NAME_RESULTS = "results";
+ @SerializedName(SERIALIZED_NAME_RESULTS)
+ private List results = new ArrayList();
+
+
+ public PullRequestsList pagination(Pagination pagination) {
+
+ this.pagination = pagination;
+ return this;
+ }
+
+ /**
+ * Get pagination
+ * @return pagination
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public Pagination getPagination() {
+ return pagination;
+ }
+
+
+ public void setPagination(Pagination pagination) {
+ this.pagination = pagination;
+ }
+
+
+ public PullRequestsList results(List results) {
+
+ this.results = results;
+ return this;
+ }
+
+ public PullRequestsList addResultsItem(PullRequest resultsItem) {
+ this.results.add(resultsItem);
+ return this;
+ }
+
+ /**
+ * Get results
+ * @return results
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(required = true, value = "")
+
+ public List getResults() {
+ return results;
+ }
+
+
+ public void setResults(List results) {
+ this.results = results;
+ }
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ PullRequestsList pullRequestsList = (PullRequestsList) o;
+ return Objects.equals(this.pagination, pullRequestsList.pagination) &&
+ Objects.equals(this.results, pullRequestsList.results);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(pagination, results);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class PullRequestsList {\n");
+ sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
+ sb.append(" results: ").append(toIndentedString(results)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/clients/java-legacy/src/test/java/io/lakefs/clients/api/ExperimentalApiTest.java b/clients/java-legacy/src/test/java/io/lakefs/clients/api/ExperimentalApiTest.java
index 7de9cabd387..adafec2f22b 100644
--- a/clients/java-legacy/src/test/java/io/lakefs/clients/api/ExperimentalApiTest.java
+++ b/clients/java-legacy/src/test/java/io/lakefs/clients/api/ExperimentalApiTest.java
@@ -24,6 +24,10 @@
import io.lakefs.clients.api.model.ExternalPrincipalList;
import io.lakefs.clients.api.model.ObjectStats;
import io.lakefs.clients.api.model.PresignMultipartUpload;
+import io.lakefs.clients.api.model.PullRequest;
+import io.lakefs.clients.api.model.PullRequestBasic;
+import io.lakefs.clients.api.model.PullRequestCreation;
+import io.lakefs.clients.api.model.PullRequestsList;
import io.lakefs.clients.api.model.StagingLocation;
import io.lakefs.clients.api.model.StsAuthRequest;
import org.junit.Test;
@@ -99,6 +103,22 @@ public void createPresignMultipartUploadTest() throws ApiException {
// TODO: test validations
}
+ /**
+ * create pull request
+ *
+ *
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void createPullRequestTest() throws ApiException {
+ String repository = null;
+ PullRequestCreation pullRequestCreation = null;
+ String response = api.createPullRequest(repository, pullRequestCreation);
+ // TODO: test validations
+ }
+
/**
* attach external principal to user
*
@@ -116,6 +136,22 @@ public void createUserExternalPrincipalTest() throws ApiException {
// TODO: test validations
}
+ /**
+ * delete pull request
+ *
+ *
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void deletePullRequestTest() throws ApiException {
+ String repository = null;
+ String pullRequest = null;
+ api.deletePullRequest(repository, pullRequest);
+ // TODO: test validations
+ }
+
/**
* delete external principal from user
*
@@ -162,6 +198,22 @@ public void getExternalPrincipalTest() throws ApiException {
// TODO: test validations
}
+ /**
+ * get pull request
+ *
+ *
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void getPullRequestTest() throws ApiException {
+ String repository = null;
+ String pullRequest = null;
+ PullRequest response = api.getPullRequest(repository, pullRequest);
+ // TODO: test validations
+ }
+
/**
* hard reset branch
*
@@ -180,6 +232,25 @@ public void hardResetBranchTest() throws ApiException {
// TODO: test validations
}
+ /**
+ * list pull requests
+ *
+ *
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void listPullRequestsTest() throws ApiException {
+ String repository = null;
+ String prefix = null;
+ String after = null;
+ Integer amount = null;
+ String state = null;
+ PullRequestsList response = api.listPullRequests(repository, prefix, after, amount, state);
+ // TODO: test validations
+ }
+
/**
* list user external policies attached to a user
*
@@ -213,4 +284,21 @@ public void stsLoginTest() throws ApiException {
// TODO: test validations
}
+ /**
+ * update pull request
+ *
+ *
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void updatePullRequestTest() throws ApiException {
+ String repository = null;
+ String pullRequest = null;
+ PullRequestBasic pullRequestBasic = null;
+ api.updatePullRequest(repository, pullRequest, pullRequestBasic);
+ // TODO: test validations
+ }
+
}
diff --git a/clients/java-legacy/src/test/java/io/lakefs/clients/api/PullsApiTest.java b/clients/java-legacy/src/test/java/io/lakefs/clients/api/PullsApiTest.java
new file mode 100644
index 00000000000..10efd2a8dd6
--- /dev/null
+++ b/clients/java-legacy/src/test/java/io/lakefs/clients/api/PullsApiTest.java
@@ -0,0 +1,123 @@
+/*
+ * lakeFS API
+ * lakeFS HTTP API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package io.lakefs.clients.api;
+
+import io.lakefs.clients.api.ApiException;
+import io.lakefs.clients.api.model.Error;
+import io.lakefs.clients.api.model.PullRequest;
+import io.lakefs.clients.api.model.PullRequestBasic;
+import io.lakefs.clients.api.model.PullRequestCreation;
+import io.lakefs.clients.api.model.PullRequestsList;
+import org.junit.Test;
+import org.junit.Ignore;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * API tests for PullsApi
+ */
+@Ignore
+public class PullsApiTest {
+
+ private final PullsApi api = new PullsApi();
+
+
+ /**
+ * create pull request
+ *
+ *
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void createPullRequestTest() throws ApiException {
+ String repository = null;
+ PullRequestCreation pullRequestCreation = null;
+ String response = api.createPullRequest(repository, pullRequestCreation);
+ // TODO: test validations
+ }
+
+ /**
+ * delete pull request
+ *
+ *
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void deletePullRequestTest() throws ApiException {
+ String repository = null;
+ String pullRequest = null;
+ api.deletePullRequest(repository, pullRequest);
+ // TODO: test validations
+ }
+
+ /**
+ * get pull request
+ *
+ *
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void getPullRequestTest() throws ApiException {
+ String repository = null;
+ String pullRequest = null;
+ PullRequest response = api.getPullRequest(repository, pullRequest);
+ // TODO: test validations
+ }
+
+ /**
+ * list pull requests
+ *
+ *
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void listPullRequestsTest() throws ApiException {
+ String repository = null;
+ String prefix = null;
+ String after = null;
+ Integer amount = null;
+ String state = null;
+ PullRequestsList response = api.listPullRequests(repository, prefix, after, amount, state);
+ // TODO: test validations
+ }
+
+ /**
+ * update pull request
+ *
+ *
+ *
+ * @throws ApiException
+ * if the Api call fails
+ */
+ @Test
+ public void updatePullRequestTest() throws ApiException {
+ String repository = null;
+ String pullRequest = null;
+ PullRequestBasic pullRequestBasic = null;
+ api.updatePullRequest(repository, pullRequest, pullRequestBasic);
+ // TODO: test validations
+ }
+
+}
diff --git a/clients/java-legacy/src/test/java/io/lakefs/clients/api/model/PullRequestBasicTest.java b/clients/java-legacy/src/test/java/io/lakefs/clients/api/model/PullRequestBasicTest.java
new file mode 100644
index 00000000000..39609a09c2c
--- /dev/null
+++ b/clients/java-legacy/src/test/java/io/lakefs/clients/api/model/PullRequestBasicTest.java
@@ -0,0 +1,67 @@
+/*
+ * lakeFS API
+ * lakeFS HTTP API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package io.lakefs.clients.api.model;
+
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import org.junit.Assert;
+import org.junit.Ignore;
+import org.junit.Test;
+
+
+/**
+ * Model tests for PullRequestBasic
+ */
+public class PullRequestBasicTest {
+ private final PullRequestBasic model = new PullRequestBasic();
+
+ /**
+ * Model tests for PullRequestBasic
+ */
+ @Test
+ public void testPullRequestBasic() {
+ // TODO: test PullRequestBasic
+ }
+
+ /**
+ * Test the property 'status'
+ */
+ @Test
+ public void statusTest() {
+ // TODO: test status
+ }
+
+ /**
+ * Test the property 'title'
+ */
+ @Test
+ public void titleTest() {
+ // TODO: test title
+ }
+
+ /**
+ * Test the property 'description'
+ */
+ @Test
+ public void descriptionTest() {
+ // TODO: test description
+ }
+
+}
diff --git a/clients/java-legacy/src/test/java/io/lakefs/clients/api/model/PullRequestCreationTest.java b/clients/java-legacy/src/test/java/io/lakefs/clients/api/model/PullRequestCreationTest.java
new file mode 100644
index 00000000000..8fc46b7ed98
--- /dev/null
+++ b/clients/java-legacy/src/test/java/io/lakefs/clients/api/model/PullRequestCreationTest.java
@@ -0,0 +1,75 @@
+/*
+ * lakeFS API
+ * lakeFS HTTP API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package io.lakefs.clients.api.model;
+
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import org.junit.Assert;
+import org.junit.Ignore;
+import org.junit.Test;
+
+
+/**
+ * Model tests for PullRequestCreation
+ */
+public class PullRequestCreationTest {
+ private final PullRequestCreation model = new PullRequestCreation();
+
+ /**
+ * Model tests for PullRequestCreation
+ */
+ @Test
+ public void testPullRequestCreation() {
+ // TODO: test PullRequestCreation
+ }
+
+ /**
+ * Test the property 'title'
+ */
+ @Test
+ public void titleTest() {
+ // TODO: test title
+ }
+
+ /**
+ * Test the property 'description'
+ */
+ @Test
+ public void descriptionTest() {
+ // TODO: test description
+ }
+
+ /**
+ * Test the property 'sourceBranch'
+ */
+ @Test
+ public void sourceBranchTest() {
+ // TODO: test sourceBranch
+ }
+
+ /**
+ * Test the property 'destinationBranch'
+ */
+ @Test
+ public void destinationBranchTest() {
+ // TODO: test destinationBranch
+ }
+
+}
diff --git a/clients/java-legacy/src/test/java/io/lakefs/clients/api/model/PullRequestTest.java b/clients/java-legacy/src/test/java/io/lakefs/clients/api/model/PullRequestTest.java
new file mode 100644
index 00000000000..ae56d899e21
--- /dev/null
+++ b/clients/java-legacy/src/test/java/io/lakefs/clients/api/model/PullRequestTest.java
@@ -0,0 +1,68 @@
+/*
+ * lakeFS API
+ * lakeFS HTTP API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package io.lakefs.clients.api.model;
+
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.lakefs.clients.api.model.PullRequestBasic;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import org.junit.Assert;
+import org.junit.Ignore;
+import org.junit.Test;
+
+
+/**
+ * Model tests for PullRequest
+ */
+public class PullRequestTest {
+ private final PullRequest model = new PullRequest();
+
+ /**
+ * Model tests for PullRequest
+ */
+ @Test
+ public void testPullRequest() {
+ // TODO: test PullRequest
+ }
+
+ /**
+ * Test the property 'status'
+ */
+ @Test
+ public void statusTest() {
+ // TODO: test status
+ }
+
+ /**
+ * Test the property 'title'
+ */
+ @Test
+ public void titleTest() {
+ // TODO: test title
+ }
+
+ /**
+ * Test the property 'description'
+ */
+ @Test
+ public void descriptionTest() {
+ // TODO: test description
+ }
+
+}
diff --git a/clients/java-legacy/src/test/java/io/lakefs/clients/api/model/PullRequestsListTest.java b/clients/java-legacy/src/test/java/io/lakefs/clients/api/model/PullRequestsListTest.java
new file mode 100644
index 00000000000..bd2f89e4763
--- /dev/null
+++ b/clients/java-legacy/src/test/java/io/lakefs/clients/api/model/PullRequestsListTest.java
@@ -0,0 +1,63 @@
+/*
+ * lakeFS API
+ * lakeFS HTTP API
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package io.lakefs.clients.api.model;
+
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.lakefs.clients.api.model.Pagination;
+import io.lakefs.clients.api.model.PullRequest;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.Assert;
+import org.junit.Ignore;
+import org.junit.Test;
+
+
+/**
+ * Model tests for PullRequestsList
+ */
+public class PullRequestsListTest {
+ private final PullRequestsList model = new PullRequestsList();
+
+ /**
+ * Model tests for PullRequestsList
+ */
+ @Test
+ public void testPullRequestsList() {
+ // TODO: test PullRequestsList
+ }
+
+ /**
+ * Test the property 'pagination'
+ */
+ @Test
+ public void paginationTest() {
+ // TODO: test pagination
+ }
+
+ /**
+ * Test the property 'results'
+ */
+ @Test
+ public void resultsTest() {
+ // TODO: test results
+ }
+
+}
diff --git a/clients/java/README.md b/clients/java/README.md
index 805e4947aec..61e0b576bc3 100644
--- a/clients/java/README.md
+++ b/clients/java/README.md
@@ -197,13 +197,18 @@ Class | Method | HTTP request | Description
*ExperimentalApi* | [**abortPresignMultipartUpload**](docs/ExperimentalApi.md#abortPresignMultipartUpload) | **DELETE** /repositories/{repository}/branches/{branch}/staging/pmpu/{uploadId} | Abort a presign multipart upload
*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
*ExperimentalApi* | [**createUserExternalPrincipal**](docs/ExperimentalApi.md#createUserExternalPrincipal) | **POST** /auth/users/{userId}/external/principals | attach external principal to user
+*ExperimentalApi* | [**deletePullRequest**](docs/ExperimentalApi.md#deletePullRequest) | **DELETE** /repositories/{repository}/pulls/{pull_request} | delete pull request
*ExperimentalApi* | [**deleteUserExternalPrincipal**](docs/ExperimentalApi.md#deleteUserExternalPrincipal) | **DELETE** /auth/users/{userId}/external/principals | delete external principal from user
*ExperimentalApi* | [**externalPrincipalLogin**](docs/ExperimentalApi.md#externalPrincipalLogin) | **POST** /auth/external/principal/login | perform a login using an external authenticator
*ExperimentalApi* | [**getExternalPrincipal**](docs/ExperimentalApi.md#getExternalPrincipal) | **GET** /auth/external/principals | describe external principal by id
+*ExperimentalApi* | [**getPullRequest**](docs/ExperimentalApi.md#getPullRequest) | **GET** /repositories/{repository}/pulls/{pull_request} | get pull request
*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* | [**stsLogin**](docs/ExperimentalApi.md#stsLogin) | **POST** /sts/login | perform a login with STS
+*ExperimentalApi* | [**updatePullRequest**](docs/ExperimentalApi.md#updatePullRequest) | **PATCH** /repositories/{repository}/pulls/{pull_request} | update pull request
*ExternalApi* | [**createUserExternalPrincipal**](docs/ExternalApi.md#createUserExternalPrincipal) | **POST** /auth/users/{userId}/external/principals | attach external principal to user
*ExternalApi* | [**deleteUserExternalPrincipal**](docs/ExternalApi.md#deleteUserExternalPrincipal) | **DELETE** /auth/users/{userId}/external/principals | delete external principal from user
*ExternalApi* | [**externalPrincipalLogin**](docs/ExternalApi.md#externalPrincipalLogin) | **POST** /auth/external/principal/login | perform a login using an external authenticator
@@ -252,6 +257,11 @@ Class | Method | HTTP request | Description
*ObjectsApi* | [**listObjects**](docs/ObjectsApi.md#listObjects) | **GET** /repositories/{repository}/refs/{ref}/objects/ls | list objects under a given prefix
*ObjectsApi* | [**statObject**](docs/ObjectsApi.md#statObject) | **GET** /repositories/{repository}/refs/{ref}/objects/stat | get object metadata
*ObjectsApi* | [**uploadObject**](docs/ObjectsApi.md#uploadObject) | **POST** /repositories/{repository}/branches/{branch}/objects |
+*PullsApi* | [**createPullRequest**](docs/PullsApi.md#createPullRequest) | **POST** /repositories/{repository}/pulls | create pull request
+*PullsApi* | [**deletePullRequest**](docs/PullsApi.md#deletePullRequest) | **DELETE** /repositories/{repository}/pulls/{pull_request} | delete pull request
+*PullsApi* | [**getPullRequest**](docs/PullsApi.md#getPullRequest) | **GET** /repositories/{repository}/pulls/{pull_request} | get pull request
+*PullsApi* | [**listPullRequests**](docs/PullsApi.md#listPullRequests) | **GET** /repositories/{repository}/pulls | list pull requests
+*PullsApi* | [**updatePullRequest**](docs/PullsApi.md#updatePullRequest) | **PATCH** /repositories/{repository}/pulls/{pull_request} | update pull request
*RefsApi* | [**diffRefs**](docs/RefsApi.md#diffRefs) | **GET** /repositories/{repository}/refs/{leftRef}/diff/{rightRef} | diff references
*RefsApi* | [**findMergeBase**](docs/RefsApi.md#findMergeBase) | **GET** /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch} | find the merge base for 2 references
*RefsApi* | [**logCommits**](docs/RefsApi.md#logCommits) | **GET** /repositories/{repository}/refs/{ref}/commits | get commit log from ref. If both objects and prefixes are empty, return all commits.
@@ -345,6 +355,10 @@ Class | Method | HTTP request | Description
- [PrepareGCUncommittedRequest](docs/PrepareGCUncommittedRequest.md)
- [PrepareGCUncommittedResponse](docs/PrepareGCUncommittedResponse.md)
- [PresignMultipartUpload](docs/PresignMultipartUpload.md)
+ - [PullRequest](docs/PullRequest.md)
+ - [PullRequestBasic](docs/PullRequestBasic.md)
+ - [PullRequestCreation](docs/PullRequestCreation.md)
+ - [PullRequestsList](docs/PullRequestsList.md)
- [RangeMetadata](docs/RangeMetadata.md)
- [Ref](docs/Ref.md)
- [RefList](docs/RefList.md)
diff --git a/clients/java/api/openapi.yaml b/clients/java/api/openapi.yaml
index a58b3ef5514..5b5d46cc2ae 100644
--- a/clients/java/api/openapi.yaml
+++ b/clients/java/api/openapi.yaml
@@ -6747,6 +6747,318 @@ paths:
- internal
x-content-type: application/json
x-accepts: application/json
+ /repositories/{repository}/pulls:
+ get:
+ operationId: listPullRequests
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: return items prefixed with this value
+ explode: true
+ in: query
+ name: prefix
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: return items after this value
+ explode: true
+ in: query
+ name: after
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: how many items to return
+ explode: true
+ in: query
+ name: amount
+ required: false
+ schema:
+ default: 100
+ maximum: 1000
+ minimum: -1
+ type: integer
+ style: form
+ - explode: true
+ in: query
+ name: state
+ required: false
+ schema:
+ default: all
+ description: filter pull requests by state
+ enum:
+ - open
+ - closed
+ - all
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PullRequestsList'
+ description: list of pull requests
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Unauthorized
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Resource Not Found
+ "420":
+ description: too many requests
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: list pull requests
+ tags:
+ - pulls
+ - experimental
+ x-accepts: application/json
+ post:
+ operationId: createPullRequest
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PullRequestCreation'
+ required: true
+ responses:
+ "201":
+ content:
+ text/html:
+ schema:
+ type: string
+ description: pull request id
+ "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
+ "420":
+ description: too many requests
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: create pull request
+ tags:
+ - pulls
+ - experimental
+ x-content-type: application/json
+ x-accepts: application/json
+ /repositories/{repository}/pulls/{pull_request}:
+ delete:
+ operationId: deletePullRequest
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: pull request id
+ explode: false
+ in: path
+ name: pull_request
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "204":
+ description: pull request deleted successfully
+ "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
+ "420":
+ description: too many requests
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: delete pull request
+ tags:
+ - pulls
+ - experimental
+ x-accepts: application/json
+ get:
+ operationId: getPullRequest
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: pull request id
+ explode: false
+ in: path
+ name: pull_request
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PullRequest'
+ description: pull request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Unauthorized
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Resource Not Found
+ "420":
+ description: too many requests
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: get pull request
+ tags:
+ - pulls
+ - experimental
+ x-accepts: application/json
+ patch:
+ operationId: updatePullRequest
+ parameters:
+ - explode: false
+ in: path
+ name: repository
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: pull request id
+ explode: false
+ in: path
+ name: pull_request
+ required: true
+ schema:
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PullRequestBasic'
+ required: true
+ responses:
+ "204":
+ description: pull request deleted successfully
+ "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
+ "420":
+ description: too many requests
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ description: Internal Server Error
+ summary: update pull request
+ tags:
+ - pulls
+ - experimental
+ x-content-type: application/json
+ x-accepts: application/json
/healthcheck:
get:
description: check that the API server is up and running
@@ -9248,6 +9560,110 @@ components:
- id
- user_id
type: object
+ PullRequestBasic:
+ example:
+ description: description
+ title: title
+ status: open
+ properties:
+ status:
+ enum:
+ - open
+ - closed
+ - merged
+ type: string
+ title:
+ type: string
+ description:
+ type: string
+ type: object
+ PullRequest:
+ allOf:
+ - $ref: '#/components/schemas/PullRequestBasic'
+ example:
+ author: author
+ destination_branch: destination_branch
+ id: id
+ creation_date: 0
+ commit_id: commit_id
+ source_branch: source_branch
+ properties:
+ id:
+ type: string
+ creation_date:
+ format: int64
+ type: integer
+ author:
+ type: string
+ source_branch:
+ type: string
+ destination_branch:
+ type: string
+ commit_id:
+ description: the commit id of merged PRs
+ type: string
+ required:
+ - author
+ - creation_date
+ - description
+ - destination_branch
+ - id
+ - source_branch
+ - status
+ - title
+ type: object
+ PullRequestsList:
+ example:
+ pagination:
+ max_per_page: 0
+ has_more: true
+ next_offset: next_offset
+ results: 0
+ results:
+ - author: author
+ destination_branch: destination_branch
+ id: id
+ creation_date: 0
+ commit_id: commit_id
+ source_branch: source_branch
+ - author: author
+ destination_branch: destination_branch
+ id: id
+ creation_date: 0
+ commit_id: commit_id
+ source_branch: source_branch
+ properties:
+ pagination:
+ $ref: '#/components/schemas/Pagination'
+ results:
+ items:
+ $ref: '#/components/schemas/PullRequest'
+ type: array
+ required:
+ - pagination
+ - results
+ type: object
+ PullRequestCreation:
+ example:
+ destination_branch: destination_branch
+ description: description
+ title: title
+ source_branch: source_branch
+ properties:
+ title:
+ type: string
+ description:
+ type: string
+ source_branch:
+ type: string
+ destination_branch:
+ type: string
+ required:
+ - description
+ - destination_branch
+ - source_branch
+ - title
+ type: object
uploadObject_request:
properties:
content:
diff --git a/clients/java/docs/ExperimentalApi.md b/clients/java/docs/ExperimentalApi.md
index fa6c9338b82..3fdde7644bb 100644
--- a/clients/java/docs/ExperimentalApi.md
+++ b/clients/java/docs/ExperimentalApi.md
@@ -7,13 +7,18 @@ All URIs are relative to */api/v1*
| [**abortPresignMultipartUpload**](ExperimentalApi.md#abortPresignMultipartUpload) | **DELETE** /repositories/{repository}/branches/{branch}/staging/pmpu/{uploadId} | Abort a presign multipart upload |
| [**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 |
| [**createUserExternalPrincipal**](ExperimentalApi.md#createUserExternalPrincipal) | **POST** /auth/users/{userId}/external/principals | attach external principal to user |
+| [**deletePullRequest**](ExperimentalApi.md#deletePullRequest) | **DELETE** /repositories/{repository}/pulls/{pull_request} | delete pull request |
| [**deleteUserExternalPrincipal**](ExperimentalApi.md#deleteUserExternalPrincipal) | **DELETE** /auth/users/{userId}/external/principals | delete external principal from user |
| [**externalPrincipalLogin**](ExperimentalApi.md#externalPrincipalLogin) | **POST** /auth/external/principal/login | perform a login using an external authenticator |
| [**getExternalPrincipal**](ExperimentalApi.md#getExternalPrincipal) | **GET** /auth/external/principals | describe external principal by id |
+| [**getPullRequest**](ExperimentalApi.md#getPullRequest) | **GET** /repositories/{repository}/pulls/{pull_request} | get pull request |
| [**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 |
| [**stsLogin**](ExperimentalApi.md#stsLogin) | **POST** /sts/login | perform a login with STS |
+| [**updatePullRequest**](ExperimentalApi.md#updatePullRequest) | **PATCH** /repositories/{repository}/pulls/{pull_request} | update pull request |
@@ -329,6 +334,104 @@ public class Example {
| **420** | too many requests | - |
| **0** | Internal Server Error | - |
+
+# **createPullRequest**
+> String createPullRequest(repository, pullRequestCreation).execute();
+
+create pull request
+
+### 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 |
+ PullRequestCreation pullRequestCreation = new PullRequestCreation(); // PullRequestCreation |
+ try {
+ String result = apiInstance.createPullRequest(repository, pullRequestCreation)
+ .execute();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#createPullRequest");
+ 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**| | |
+| **pullRequestCreation** | [**PullRequestCreation**](PullRequestCreation.md)| | |
+
+### Return type
+
+**String**
+
+### 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**: text/html, application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **201** | pull request id | - |
+| **400** | Validation Error | - |
+| **401** | Unauthorized | - |
+| **403** | Forbidden | - |
+| **404** | Resource Not Found | - |
+| **409** | Resource Conflicts With Target | - |
+| **420** | too many requests | - |
+| **0** | Internal Server Error | - |
+
# **createUserExternalPrincipal**
> createUserExternalPrincipal(userId, principalId).externalPrincipalCreation(externalPrincipalCreation).execute();
@@ -427,6 +530,101 @@ null (empty response body)
| **420** | too many requests | - |
| **0** | Internal Server Error | - |
+
+# **deletePullRequest**
+> deletePullRequest(repository, pullRequest).execute();
+
+delete pull request
+
+### 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 pullRequest = "pullRequest_example"; // String | pull request id
+ try {
+ apiInstance.deletePullRequest(repository, pullRequest)
+ .execute();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#deletePullRequest");
+ 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**| | |
+| **pullRequest** | **String**| pull request id | |
+
+### Return type
+
+null (empty response body)
+
+### 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 |
+|-------------|-------------|------------------|
+| **204** | pull request deleted successfully | - |
+| **401** | Unauthorized | - |
+| **403** | Forbidden | - |
+| **404** | Resource Not Found | - |
+| **420** | too many requests | - |
+| **0** | Internal Server Error | - |
+
# **deleteUserExternalPrincipal**
> deleteUserExternalPrincipal(userId, principalId).execute();
@@ -682,6 +880,101 @@ public class Example {
| **420** | too many requests | - |
| **0** | Internal Server Error | - |
+
+# **getPullRequest**
+> PullRequest getPullRequest(repository, pullRequest).execute();
+
+get pull request
+
+### 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 pullRequest = "pullRequest_example"; // String | pull request id
+ try {
+ PullRequest result = apiInstance.getPullRequest(repository, pullRequest)
+ .execute();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#getPullRequest");
+ 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**| | |
+| **pullRequest** | **String**| pull request id | |
+
+### Return type
+
+[**PullRequest**](PullRequest.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** | pull request | - |
+| **401** | Unauthorized | - |
+| **404** | Resource Not Found | - |
+| **420** | too many requests | - |
+| **0** | Internal Server Error | - |
+
# **hardResetBranch**
> hardResetBranch(repository, branch, ref).force(force).execute();
@@ -785,6 +1078,111 @@ null (empty response body)
| **420** | too many requests | - |
| **0** | Internal Server Error | - |
+
+# **listPullRequests**
+> PullRequestsList listPullRequests(repository).prefix(prefix).after(after).amount(amount).state(state).execute();
+
+list pull requests
+
+### 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 prefix = "prefix_example"; // String | return items prefixed with this value
+ String after = "after_example"; // String | return items after this value
+ Integer amount = 100; // Integer | how many items to return
+ String state = "open"; // String |
+ try {
+ PullRequestsList result = apiInstance.listPullRequests(repository)
+ .prefix(prefix)
+ .after(after)
+ .amount(amount)
+ .state(state)
+ .execute();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#listPullRequests");
+ 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**| | |
+| **prefix** | **String**| return items prefixed with this value | [optional] |
+| **after** | **String**| return items after this value | [optional] |
+| **amount** | **Integer**| how many items to return | [optional] [default to 100] |
+| **state** | **String**| | [optional] [default to all] [enum: open, closed, all] |
+
+### Return type
+
+[**PullRequestsList**](PullRequestsList.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** | list of pull requests | - |
+| **401** | Unauthorized | - |
+| **404** | Resource Not Found | - |
+| **420** | too many requests | - |
+| **0** | Internal Server Error | - |
+
# **listUserExternalPrincipals**
> ExternalPrincipalList listUserExternalPrincipals(userId).prefix(prefix).after(after).amount(amount).execute();
@@ -951,3 +1349,100 @@ No authorization required
| **420** | too many requests | - |
| **0** | Internal Server Error | - |
+
+# **updatePullRequest**
+> updatePullRequest(repository, pullRequest, pullRequestBasic).execute();
+
+update pull request
+
+### 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 pullRequest = "pullRequest_example"; // String | pull request id
+ PullRequestBasic pullRequestBasic = new PullRequestBasic(); // PullRequestBasic |
+ try {
+ apiInstance.updatePullRequest(repository, pullRequest, pullRequestBasic)
+ .execute();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ExperimentalApi#updatePullRequest");
+ 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**| | |
+| **pullRequest** | **String**| pull request id | |
+| **pullRequestBasic** | [**PullRequestBasic**](PullRequestBasic.md)| | |
+
+### Return type
+
+null (empty response body)
+
+### 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 |
+|-------------|-------------|------------------|
+| **204** | pull request deleted successfully | - |
+| **401** | Unauthorized | - |
+| **403** | Forbidden | - |
+| **404** | Resource Not Found | - |
+| **420** | too many requests | - |
+| **0** | Internal Server Error | - |
+
diff --git a/clients/java/docs/PullRequest.md b/clients/java/docs/PullRequest.md
new file mode 100644
index 00000000000..0101c7424cf
--- /dev/null
+++ b/clients/java/docs/PullRequest.md
@@ -0,0 +1,31 @@
+
+
+# PullRequest
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**id** | **String** | | |
+|**creationDate** | **Long** | | |
+|**author** | **String** | | |
+|**sourceBranch** | **String** | | |
+|**destinationBranch** | **String** | | |
+|**commitId** | **String** | the commit id of merged PRs | [optional] |
+|**status** | [**StatusEnum**](#StatusEnum) | | |
+|**title** | **String** | | |
+|**description** | **String** | | |
+
+
+
+## Enum: StatusEnum
+
+| Name | Value |
+|---- | -----|
+| OPEN | "open" |
+| CLOSED | "closed" |
+| MERGED | "merged" |
+
+
+
diff --git a/clients/java/docs/PullRequestBasic.md b/clients/java/docs/PullRequestBasic.md
new file mode 100644
index 00000000000..5d9a706a71a
--- /dev/null
+++ b/clients/java/docs/PullRequestBasic.md
@@ -0,0 +1,25 @@
+
+
+# PullRequestBasic
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**status** | [**StatusEnum**](#StatusEnum) | | [optional] |
+|**title** | **String** | | [optional] |
+|**description** | **String** | | [optional] |
+
+
+
+## Enum: StatusEnum
+
+| Name | Value |
+|---- | -----|
+| OPEN | "open" |
+| CLOSED | "closed" |
+| MERGED | "merged" |
+
+
+
diff --git a/clients/java/docs/PullRequestCreation.md b/clients/java/docs/PullRequestCreation.md
new file mode 100644
index 00000000000..17c6907544b
--- /dev/null
+++ b/clients/java/docs/PullRequestCreation.md
@@ -0,0 +1,16 @@
+
+
+# PullRequestCreation
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**title** | **String** | | |
+|**description** | **String** | | |
+|**sourceBranch** | **String** | | |
+|**destinationBranch** | **String** | | |
+
+
+
diff --git a/clients/java/docs/PullRequestsList.md b/clients/java/docs/PullRequestsList.md
new file mode 100644
index 00000000000..87798d4bdac
--- /dev/null
+++ b/clients/java/docs/PullRequestsList.md
@@ -0,0 +1,14 @@
+
+
+# PullRequestsList
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**pagination** | [**Pagination**](Pagination.md) | | |
+|**results** | [**List<PullRequest>**](PullRequest.md) | | |
+
+
+
diff --git a/clients/java/docs/PullsApi.md b/clients/java/docs/PullsApi.md
new file mode 100644
index 00000000000..6f24e7fa7ec
--- /dev/null
+++ b/clients/java/docs/PullsApi.md
@@ -0,0 +1,503 @@
+# PullsApi
+
+All URIs are relative to */api/v1*
+
+| Method | HTTP request | Description |
+|------------- | ------------- | -------------|
+| [**createPullRequest**](PullsApi.md#createPullRequest) | **POST** /repositories/{repository}/pulls | create pull request |
+| [**deletePullRequest**](PullsApi.md#deletePullRequest) | **DELETE** /repositories/{repository}/pulls/{pull_request} | delete pull request |
+| [**getPullRequest**](PullsApi.md#getPullRequest) | **GET** /repositories/{repository}/pulls/{pull_request} | get pull request |
+| [**listPullRequests**](PullsApi.md#listPullRequests) | **GET** /repositories/{repository}/pulls | list pull requests |
+| [**updatePullRequest**](PullsApi.md#updatePullRequest) | **PATCH** /repositories/{repository}/pulls/{pull_request} | update pull request |
+
+
+
+# **createPullRequest**
+> String createPullRequest(repository, pullRequestCreation).execute();
+
+create pull request
+
+### 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.PullsApi;
+
+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");
+
+ PullsApi apiInstance = new PullsApi(defaultClient);
+ String repository = "repository_example"; // String |
+ PullRequestCreation pullRequestCreation = new PullRequestCreation(); // PullRequestCreation |
+ try {
+ String result = apiInstance.createPullRequest(repository, pullRequestCreation)
+ .execute();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PullsApi#createPullRequest");
+ 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**| | |
+| **pullRequestCreation** | [**PullRequestCreation**](PullRequestCreation.md)| | |
+
+### Return type
+
+**String**
+
+### 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**: text/html, application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **201** | pull request id | - |
+| **400** | Validation Error | - |
+| **401** | Unauthorized | - |
+| **403** | Forbidden | - |
+| **404** | Resource Not Found | - |
+| **409** | Resource Conflicts With Target | - |
+| **420** | too many requests | - |
+| **0** | Internal Server Error | - |
+
+
+# **deletePullRequest**
+> deletePullRequest(repository, pullRequest).execute();
+
+delete pull request
+
+### 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.PullsApi;
+
+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");
+
+ PullsApi apiInstance = new PullsApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String pullRequest = "pullRequest_example"; // String | pull request id
+ try {
+ apiInstance.deletePullRequest(repository, pullRequest)
+ .execute();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PullsApi#deletePullRequest");
+ 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**| | |
+| **pullRequest** | **String**| pull request id | |
+
+### Return type
+
+null (empty response body)
+
+### 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 |
+|-------------|-------------|------------------|
+| **204** | pull request deleted successfully | - |
+| **401** | Unauthorized | - |
+| **403** | Forbidden | - |
+| **404** | Resource Not Found | - |
+| **420** | too many requests | - |
+| **0** | Internal Server Error | - |
+
+
+# **getPullRequest**
+> PullRequest getPullRequest(repository, pullRequest).execute();
+
+get pull request
+
+### 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.PullsApi;
+
+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");
+
+ PullsApi apiInstance = new PullsApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String pullRequest = "pullRequest_example"; // String | pull request id
+ try {
+ PullRequest result = apiInstance.getPullRequest(repository, pullRequest)
+ .execute();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PullsApi#getPullRequest");
+ 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**| | |
+| **pullRequest** | **String**| pull request id | |
+
+### Return type
+
+[**PullRequest**](PullRequest.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** | pull request | - |
+| **401** | Unauthorized | - |
+| **404** | Resource Not Found | - |
+| **420** | too many requests | - |
+| **0** | Internal Server Error | - |
+
+
+# **listPullRequests**
+> PullRequestsList listPullRequests(repository).prefix(prefix).after(after).amount(amount).state(state).execute();
+
+list pull requests
+
+### 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.PullsApi;
+
+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");
+
+ PullsApi apiInstance = new PullsApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String prefix = "prefix_example"; // String | return items prefixed with this value
+ String after = "after_example"; // String | return items after this value
+ Integer amount = 100; // Integer | how many items to return
+ String state = "open"; // String |
+ try {
+ PullRequestsList result = apiInstance.listPullRequests(repository)
+ .prefix(prefix)
+ .after(after)
+ .amount(amount)
+ .state(state)
+ .execute();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PullsApi#listPullRequests");
+ 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**| | |
+| **prefix** | **String**| return items prefixed with this value | [optional] |
+| **after** | **String**| return items after this value | [optional] |
+| **amount** | **Integer**| how many items to return | [optional] [default to 100] |
+| **state** | **String**| | [optional] [default to all] [enum: open, closed, all] |
+
+### Return type
+
+[**PullRequestsList**](PullRequestsList.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** | list of pull requests | - |
+| **401** | Unauthorized | - |
+| **404** | Resource Not Found | - |
+| **420** | too many requests | - |
+| **0** | Internal Server Error | - |
+
+
+# **updatePullRequest**
+> updatePullRequest(repository, pullRequest, pullRequestBasic).execute();
+
+update pull request
+
+### 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.PullsApi;
+
+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");
+
+ PullsApi apiInstance = new PullsApi(defaultClient);
+ String repository = "repository_example"; // String |
+ String pullRequest = "pullRequest_example"; // String | pull request id
+ PullRequestBasic pullRequestBasic = new PullRequestBasic(); // PullRequestBasic |
+ try {
+ apiInstance.updatePullRequest(repository, pullRequest, pullRequestBasic)
+ .execute();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling PullsApi#updatePullRequest");
+ 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**| | |
+| **pullRequest** | **String**| pull request id | |
+| **pullRequestBasic** | [**PullRequestBasic**](PullRequestBasic.md)| | |
+
+### Return type
+
+null (empty response body)
+
+### 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 |
+|-------------|-------------|------------------|
+| **204** | pull request deleted successfully | - |
+| **401** | Unauthorized | - |
+| **403** | Forbidden | - |
+| **404** | Resource Not Found | - |
+| **420** | 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 bd2b171ed2c..aff5bf85374 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
@@ -37,6 +37,10 @@
import io.lakefs.clients.sdk.model.ExternalPrincipalList;
import io.lakefs.clients.sdk.model.ObjectStats;
import io.lakefs.clients.sdk.model.PresignMultipartUpload;
+import io.lakefs.clients.sdk.model.PullRequest;
+import io.lakefs.clients.sdk.model.PullRequestBasic;
+import io.lakefs.clients.sdk.model.PullRequestCreation;
+import io.lakefs.clients.sdk.model.PullRequestsList;
import io.lakefs.clients.sdk.model.StagingLocation;
import io.lakefs.clients.sdk.model.StsAuthRequest;
@@ -735,7 +739,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call
public APIcreatePresignMultipartUploadRequest createPresignMultipartUpload(String repository, String branch, String path) {
return new APIcreatePresignMultipartUploadRequest(repository, branch, path);
}
- private okhttp3.Call createUserExternalPrincipalCall(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation, 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[] { };
@@ -749,11 +753,11 @@ private okhttp3.Call createUserExternalPrincipalCall(String userId, String princ
basePath = null;
}
- Object localVarPostBody = externalPrincipalCreation;
+ 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();
@@ -761,11 +765,8 @@ 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));
- }
-
final String[] localVarAccepts = {
+ "text/html",
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
@@ -786,64 +787,57 @@ 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 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 createUserExternalPrincipal(Async)");
+ // verify the required parameter 'pullRequestCreation' is set
+ if (pullRequestCreation == null) {
+ throw new ApiException("Missing the required parameter 'pullRequestCreation' when calling createPullRequest(Async)");
}
- return createUserExternalPrincipalCall(userId, principalId, externalPrincipalCreation, _callback);
+ return createPullRequestCall(repository, pullRequestCreation, _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 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 createUserExternalPrincipalAsync(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call createPullRequestAsync(String repository, PullRequestCreation pullRequestCreation, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = createUserExternalPrincipalValidateBeforeCall(userId, principalId, externalPrincipalCreation, _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 APIcreateUserExternalPrincipalRequest {
- private final String userId;
- private final String principalId;
- private ExternalPrincipalCreation externalPrincipalCreation;
-
- private APIcreateUserExternalPrincipalRequest(String userId, String principalId) {
- this.userId = userId;
- this.principalId = principalId;
- }
+ public class APIcreatePullRequestRequest {
+ private final String repository;
+ private final PullRequestCreation pullRequestCreation;
- /**
- * Set externalPrincipalCreation
- * @param externalPrincipalCreation (optional)
- * @return APIcreateUserExternalPrincipalRequest
- */
- public APIcreateUserExternalPrincipalRequest externalPrincipalCreation(ExternalPrincipalCreation externalPrincipalCreation) {
- this.externalPrincipalCreation = externalPrincipalCreation;
- return this;
+ private APIcreatePullRequestRequest(String repository, PullRequestCreation pullRequestCreation) {
+ this.repository = repository;
+ this.pullRequestCreation = pullRequestCreation;
}
/**
- * Build call for createUserExternalPrincipal
+ * 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 | external principal attached successfully | - |
+ 201 | pull request id | - |
+ 400 | Validation Error | - |
401 | Unauthorized | - |
+ 403 | Forbidden | - |
404 | Resource Not Found | - |
409 | Resource Conflicts With Target | - |
420 | too many requests | - |
@@ -851,88 +845,98 @@ public APIcreateUserExternalPrincipalRequest externalPrincipalCreation(ExternalP
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return createUserExternalPrincipalCall(userId, principalId, externalPrincipalCreation, _callback);
+ return createPullRequestCall(repository, pullRequestCreation, _callback);
}
/**
- * Execute createUserExternalPrincipal request
+ * Execute createPullRequest request
+ * @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code | Description | Response Headers |
- 201 | external principal attached successfully | - |
+ 201 | pull request id | - |
+ 400 | Validation Error | - |
401 | Unauthorized | - |
+ 403 | Forbidden | - |
404 | Resource Not Found | - |
409 | Resource Conflicts With Target | - |
420 | too many requests | - |
0 | Internal Server Error | - |
*/
- public void execute() throws ApiException {
- createUserExternalPrincipalWithHttpInfo(userId, principalId, externalPrincipalCreation);
+ public String execute() throws ApiException {
+ ApiResponse localVarResp = createPullRequestWithHttpInfo(repository, pullRequestCreation);
+ return localVarResp.getData();
}
/**
- * Execute createUserExternalPrincipal request with HTTP info returned
- * @return ApiResponse<Void>
+ * Execute createPullRequest request with HTTP info returned
+ * @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code | Description | Response Headers |
- 201 | external principal attached successfully | - |
+ 201 | pull request id | - |
+ 400 | Validation Error | - |
401 | Unauthorized | - |
+ 403 | Forbidden | - |
404 | Resource Not Found | - |
409 | Resource Conflicts With Target | - |
420 | too many requests | - |
0 | Internal Server Error | - |
*/
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return createUserExternalPrincipalWithHttpInfo(userId, principalId, externalPrincipalCreation);
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return createPullRequestWithHttpInfo(repository, pullRequestCreation);
}
/**
- * Execute createUserExternalPrincipal 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 |
- 201 | external principal attached successfully | - |
+ 201 | pull request id | - |
+ 400 | Validation Error | - |
401 | Unauthorized | - |
+ 403 | Forbidden | - |
404 | Resource Not Found | - |
409 | Resource Conflicts With Target | - |
420 | 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 createPullRequestAsync(repository, pullRequestCreation, _callback);
}
}
/**
- * attach external principal to user
+ * create pull request
*
- * @param userId (required)
- * @param principalId (required)
- * @return APIcreateUserExternalPrincipalRequest
+ * @param repository (required)
+ * @param pullRequestCreation (required)
+ * @return APIcreatePullRequestRequest
* @http.response.details
Status Code | Description | Response Headers |
- 201 | external principal attached successfully | - |
+ 201 | pull request id | - |
+ 400 | Validation Error | - |
401 | Unauthorized | - |
+ 403 | Forbidden | - |
404 | Resource Not Found | - |
409 | Resource Conflicts With Target | - |
420 | too many requests | - |
0 | Internal Server Error | - |
*/
- public APIcreateUserExternalPrincipalRequest createUserExternalPrincipal(String userId, String principalId) {
- return new APIcreateUserExternalPrincipalRequest(userId, principalId);
+ public APIcreatePullRequestRequest createPullRequest(String repository, PullRequestCreation pullRequestCreation) {
+ return new APIcreatePullRequestRequest(repository, pullRequestCreation);
}
- private okhttp3.Call deleteUserExternalPrincipalCall(String userId, String principalId, 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[] { };
@@ -946,7 +950,7 @@ private okhttp3.Call deleteUserExternalPrincipalCall(String userId, String princ
basePath = null;
}
- Object localVarPostBody = null;
+ Object localVarPostBody = externalPrincipalCreation;
// create path and map variables
String localVarPath = "/auth/users/{userId}/external/principals"
@@ -971,6 +975,7 @@ private okhttp3.Call deleteUserExternalPrincipalCall(String userId, String princ
}
final String[] localVarContentTypes = {
+ "application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -978,141 +983,157 @@ 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 {
+ 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 deleteUserExternalPrincipal(Async)");
+ 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 deleteUserExternalPrincipal(Async)");
+ throw new ApiException("Missing the required parameter 'principalId' when calling createUserExternalPrincipal(Async)");
}
- return deleteUserExternalPrincipalCall(userId, principalId, _callback);
+ return createUserExternalPrincipalCall(userId, principalId, externalPrincipalCreation, _callback);
}
- private ApiResponse deleteUserExternalPrincipalWithHttpInfo(String userId, String principalId) throws ApiException {
- okhttp3.Call localVarCall = deleteUserExternalPrincipalValidateBeforeCall(userId, principalId, null);
+ 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 deleteUserExternalPrincipalAsync(String userId, String principalId, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call createUserExternalPrincipalAsync(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = deleteUserExternalPrincipalValidateBeforeCall(userId, principalId, _callback);
+ okhttp3.Call localVarCall = createUserExternalPrincipalValidateBeforeCall(userId, principalId, externalPrincipalCreation, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
- public class APIdeleteUserExternalPrincipalRequest {
+ public class APIcreateUserExternalPrincipalRequest {
private final String userId;
private final String principalId;
+ private ExternalPrincipalCreation externalPrincipalCreation;
- private APIdeleteUserExternalPrincipalRequest(String userId, String principalId) {
+ private APIcreateUserExternalPrincipalRequest(String userId, String principalId) {
this.userId = userId;
this.principalId = principalId;
}
/**
- * Build call for deleteUserExternalPrincipal
+ * Set externalPrincipalCreation
+ * @param externalPrincipalCreation (optional)
+ * @return APIcreateUserExternalPrincipalRequest
+ */
+ public APIcreateUserExternalPrincipalRequest externalPrincipalCreation(ExternalPrincipalCreation externalPrincipalCreation) {
+ this.externalPrincipalCreation = externalPrincipalCreation;
+ return this;
+ }
+
+ /**
+ * 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 |
- 204 | external principal detached successfully | - |
+ 201 | external principal attached successfully | - |
401 | Unauthorized | - |
404 | Resource Not Found | - |
+ 409 | Resource Conflicts With Target | - |
420 | too many requests | - |
0 | Internal Server Error | - |
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return deleteUserExternalPrincipalCall(userId, principalId, _callback);
+ return createUserExternalPrincipalCall(userId, principalId, externalPrincipalCreation, _callback);
}
/**
- * Execute deleteUserExternalPrincipal request
+ * 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 |
- 204 | external principal detached successfully | - |
+ 201 | external principal attached successfully | - |
401 | Unauthorized | - |
404 | Resource Not Found | - |
+ 409 | Resource Conflicts With Target | - |
420 | too many requests | - |
0 | Internal Server Error | - |
*/
public void execute() throws ApiException {
- deleteUserExternalPrincipalWithHttpInfo(userId, principalId);
+ createUserExternalPrincipalWithHttpInfo(userId, principalId, externalPrincipalCreation);
}
/**
- * Execute deleteUserExternalPrincipal request with HTTP info returned
+ * 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 |
- 204 | external principal detached successfully | - |
+ 201 | external principal attached successfully | - |
401 | Unauthorized | - |
404 | Resource Not Found | - |
+ 409 | Resource Conflicts With Target | - |
420 | too many requests | - |
0 | Internal Server Error | - |
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
- return deleteUserExternalPrincipalWithHttpInfo(userId, principalId);
+ return createUserExternalPrincipalWithHttpInfo(userId, principalId, externalPrincipalCreation);
}
/**
- * Execute deleteUserExternalPrincipal 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 |
- 204 | external principal detached successfully | - |
+ 201 | external principal attached successfully | - |
401 | Unauthorized | - |
404 | Resource Not Found | - |
+ 409 | Resource Conflicts With Target | - |
420 | too many requests | - |
0 | Internal Server Error | - |
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
- return deleteUserExternalPrincipalAsync(userId, principalId, _callback);
+ return createUserExternalPrincipalAsync(userId, principalId, externalPrincipalCreation, _callback);
}
}
/**
- * delete external principal from user
+ * attach external principal to user
*
* @param userId (required)
* @param principalId (required)
- * @return APIdeleteUserExternalPrincipalRequest
+ * @return APIcreateUserExternalPrincipalRequest
* @http.response.details
Status Code | Description | Response Headers |
- 204 | external principal detached successfully | - |
+ 201 | external principal attached successfully | - |
401 | Unauthorized | - |
404 | Resource Not Found | - |
+ 409 | Resource Conflicts With Target | - |
420 | too many requests | - |
0 | Internal Server Error | - |
*/
- public APIdeleteUserExternalPrincipalRequest deleteUserExternalPrincipal(String userId, String principalId) {
- return new APIdeleteUserExternalPrincipalRequest(userId, principalId);
+ public APIcreateUserExternalPrincipalRequest createUserExternalPrincipal(String userId, String principalId) {
+ return new APIcreateUserExternalPrincipalRequest(userId, principalId);
}
- private okhttp3.Call externalPrincipalLoginCall(ExternalLoginInformation externalLoginInformation, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call deletePullRequestCall(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -1126,10 +1147,12 @@ private okhttp3.Call externalPrincipalLoginCall(ExternalLoginInformation externa
basePath = null;
}
- Object localVarPostBody = externalLoginInformation;
+ Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/auth/external/principal/login";
+ 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();
@@ -1146,64 +1169,63 @@ private okhttp3.Call externalPrincipalLoginCall(ExternalLoginInformation externa
}
final String[] localVarContentTypes = {
- "application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
- String[] localVarAuthNames = new String[] { };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call externalPrincipalLoginValidateBeforeCall(ExternalLoginInformation externalLoginInformation, final ApiCallback _callback) throws ApiException {
- return externalPrincipalLoginCall(externalLoginInformation, _callback);
+ private okhttp3.Call deletePullRequestValidateBeforeCall(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 deletePullRequest(Async)");
+ }
+
+ // verify the required parameter 'pullRequest' is set
+ if (pullRequest == null) {
+ throw new ApiException("Missing the required parameter 'pullRequest' when calling deletePullRequest(Async)");
+ }
+
+ return deletePullRequestCall(repository, pullRequest, _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 deletePullRequestWithHttpInfo(String repository, String pullRequest) throws ApiException {
+ okhttp3.Call localVarCall = deletePullRequestValidateBeforeCall(repository, pullRequest, null);
+ return localVarApiClient.execute(localVarCall);
}
- private okhttp3.Call externalPrincipalLoginAsync(ExternalLoginInformation externalLoginInformation, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call deletePullRequestAsync(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = externalPrincipalLoginValidateBeforeCall(externalLoginInformation, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
- localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ okhttp3.Call localVarCall = deletePullRequestValidateBeforeCall(repository, pullRequest, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
- public class APIexternalPrincipalLoginRequest {
- private ExternalLoginInformation externalLoginInformation;
-
- private APIexternalPrincipalLoginRequest() {
- }
+ public class APIdeletePullRequestRequest {
+ private final String repository;
+ private final String pullRequest;
- /**
- * Set externalLoginInformation
- * @param externalLoginInformation (optional)
- * @return APIexternalPrincipalLoginRequest
- */
- public APIexternalPrincipalLoginRequest externalLoginInformation(ExternalLoginInformation externalLoginInformation) {
- this.externalLoginInformation = externalLoginInformation;
- return this;
+ private APIdeletePullRequestRequest(String repository, String pullRequest) {
+ this.repository = repository;
+ this.pullRequest = pullRequest;
}
/**
- * Build call for externalPrincipalLogin
+ * Build call for deletePullRequest
* @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 | - |
- 400 | Bad Request | - |
+ 204 | pull request deleted successfully | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Resource Not Found | - |
@@ -1212,18 +1234,16 @@ public APIexternalPrincipalLoginRequest externalLoginInformation(ExternalLoginIn
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
- return externalPrincipalLoginCall(externalLoginInformation, _callback);
+ return deletePullRequestCall(repository, pullRequest, _callback);
}
/**
- * Execute externalPrincipalLogin request
- * @return AuthenticationToken
+ * Execute deletePullRequest 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 | - |
- 400 | Bad Request | - |
+ 204 | pull request deleted successfully | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Resource Not Found | - |
@@ -1231,20 +1251,18 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
0 | Internal Server Error | - |
*/
- public AuthenticationToken execute() throws ApiException {
- ApiResponse localVarResp = externalPrincipalLoginWithHttpInfo(externalLoginInformation);
- return localVarResp.getData();
+ public void execute() throws ApiException {
+ deletePullRequestWithHttpInfo(repository, pullRequest);
}
/**
- * Execute externalPrincipalLogin request with HTTP info returned
- * @return ApiResponse<AuthenticationToken>
+ * Execute deletePullRequest 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 | - |
- 400 | Bad Request | - |
+ 204 | pull request deleted successfully | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Resource Not Found | - |
@@ -1252,20 +1270,19 @@ public AuthenticationToken execute() throws ApiException {
0 | Internal Server Error | - |
*/
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return externalPrincipalLoginWithHttpInfo(externalLoginInformation);
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return deletePullRequestWithHttpInfo(repository, pullRequest);
}
/**
- * Execute externalPrincipalLogin request (asynchronously)
+ * Execute deletePullRequest 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 | - |
- 400 | Bad Request | - |
+ 204 | pull request deleted successfully | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Resource Not Found | - |
@@ -1273,20 +1290,21 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio
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 deletePullRequestAsync(repository, pullRequest, _callback);
}
}
/**
- * perform a login using an external authenticator
+ * delete pull request
*
- * @return APIexternalPrincipalLoginRequest
+ * @param repository (required)
+ * @param pullRequest pull request id (required)
+ * @return APIdeletePullRequestRequest
* @http.response.details
Status Code | Description | Response Headers |
- 200 | successful external login | - |
- 400 | Bad Request | - |
+ 204 | pull request deleted successfully | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Resource Not Found | - |
@@ -1294,10 +1312,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac
0 | Internal Server Error | - |
*/
- public APIexternalPrincipalLoginRequest externalPrincipalLogin() {
- return new APIexternalPrincipalLoginRequest();
+ public APIdeletePullRequestRequest deletePullRequest(String repository, String pullRequest) {
+ return new APIdeletePullRequestRequest(repository, pullRequest);
}
- 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[] { };
@@ -1314,7 +1332,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();
@@ -1342,51 +1361,595 @@ 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);
+ okhttp3.Call localVarCall = deleteUserExternalPrincipalValidateBeforeCall(userId, principalId, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
+ return localVarCall;
+ }
+
+ public class APIdeleteUserExternalPrincipalRequest {
+ private final String userId;
+ private final String principalId;
+
+ private APIdeleteUserExternalPrincipalRequest(String userId, String principalId) {
+ this.userId = userId;
+ this.principalId = principalId;
+ }
+
+ /**
+ * 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 |
+ 204 | external principal detached successfully | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
+ return deleteUserExternalPrincipalCall(userId, principalId, _callback);
+ }
+
+ /**
+ * 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 |
+ 204 | external principal detached successfully | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public void execute() throws ApiException {
+ deleteUserExternalPrincipalWithHttpInfo(userId, principalId);
+ }
+
+ /**
+ * 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 |
+ 204 | external principal detached successfully | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return deleteUserExternalPrincipalWithHttpInfo(userId, principalId);
+ }
+
+ /**
+ * 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 |
+ 204 | external principal detached successfully | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return deleteUserExternalPrincipalAsync(userId, principalId, _callback);
+ }
+ }
+
+ /**
+ * delete external principal from user
+ *
+ * @param userId (required)
+ * @param principalId (required)
+ * @return APIdeleteUserExternalPrincipalRequest
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 204 | external principal detached successfully | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public APIdeleteUserExternalPrincipalRequest deleteUserExternalPrincipal(String userId, String principalId) {
+ return new APIdeleteUserExternalPrincipalRequest(userId, principalId);
+ }
+ private okhttp3.Call externalPrincipalLoginCall(ExternalLoginInformation externalLoginInformation, 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 = externalLoginInformation;
+
+ // create path and map variables
+ String localVarPath = "/auth/external/principal/login";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] { };
+ 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 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 externalPrincipalLoginAsync(ExternalLoginInformation externalLoginInformation, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = externalPrincipalLoginValidateBeforeCall(externalLoginInformation, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ public class APIexternalPrincipalLoginRequest {
+ private ExternalLoginInformation externalLoginInformation;
+
+ private APIexternalPrincipalLoginRequest() {
+ }
+
+ /**
+ * 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 | successful external login | - |
+ 400 | Bad Request | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
+ return externalPrincipalLoginCall(externalLoginInformation, _callback);
+ }
+
+ /**
+ * 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 | successful external login | - |
+ 400 | Bad Request | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public AuthenticationToken execute() throws ApiException {
+ ApiResponse localVarResp = externalPrincipalLoginWithHttpInfo(externalLoginInformation);
+ return localVarResp.getData();
+ }
+
+ /**
+ * 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 | successful external login | - |
+ 400 | Bad Request | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return externalPrincipalLoginWithHttpInfo(externalLoginInformation);
+ }
+
+ /**
+ * 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 | successful external login | - |
+ 400 | Bad Request | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return externalPrincipalLoginAsync(externalLoginInformation, _callback);
+ }
+ }
+
+ /**
+ * perform a login using an external authenticator
+ *
+ * @return APIexternalPrincipalLoginRequest
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful external login | - |
+ 400 | Bad Request | - |
+ 401 | Unauthorized | - |
+ 403 | Forbidden | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public APIexternalPrincipalLoginRequest externalPrincipalLogin() {
+ return new APIexternalPrincipalLoginRequest();
+ }
+ private okhttp3.Call getExternalPrincipalCall(String principalId, 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/external/principals";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (principalId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("principalId", principalId));
+ }
+
+ 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[] { "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 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 getExternalPrincipalCall(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 okhttp3.Call getExternalPrincipalAsync(String principalId, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = getExternalPrincipalValidateBeforeCall(principalId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
- public class APIgetExternalPrincipalRequest {
- private final String principalId;
+ public class APIgetExternalPrincipalRequest {
+ private final String principalId;
+
+ private APIgetExternalPrincipalRequest(String principalId) {
+ this.principalId = principalId;
+ }
+
+ /**
+ * 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 | external principal | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
+ return getExternalPrincipalCall(principalId, _callback);
+ }
+
+ /**
+ * 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 | external principal | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public ExternalPrincipal execute() throws ApiException {
+ ApiResponse localVarResp = getExternalPrincipalWithHttpInfo(principalId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * 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 | external principal | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public ApiResponse executeWithHttpInfo() throws ApiException {
+ return getExternalPrincipalWithHttpInfo(principalId);
+ }
+
+ /**
+ * 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 | external principal | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
+ return getExternalPrincipalAsync(principalId, _callback);
+ }
+ }
+
+ /**
+ * describe external principal by id
+ *
+ * @param principalId (required)
+ * @return APIgetExternalPrincipalRequest
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | external principal | - |
+ 401 | Unauthorized | - |
+ 404 | Resource Not Found | - |
+ 420 | too many requests | - |
+ 0 | Internal Server Error | - |
+
+ */
+ public APIgetExternalPrincipalRequest getExternalPrincipal(String principalId) {
+ return new APIgetExternalPrincipalRequest(principalId);
+ }
+ private okhttp3.Call getPullRequestCall(String repository, String pullRequest, 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 = "/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();
+ 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[] { "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 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 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 getPullRequestAsync(String repository, String pullRequest, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = getPullRequestValidateBeforeCall(repository, pullRequest, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ public class APIgetPullRequestRequest {
+ private final String repository;
+ private final String pullRequest;
- private APIgetExternalPrincipalRequest(String principalId) {
- this.principalId = principalId;
+ private APIgetPullRequestRequest(String repository, String pullRequest) {
+ this.repository = repository;
+ this.pullRequest = pullRequest;
}
/**
- * Build call for getExternalPrincipal
+ * 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