diff --git a/Makefile b/Makefile
index 914f14e1181..579e643ea59 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ PROTOC=$(DOCKER) run --rm -v $(shell pwd):/mnt $(PROTOC_IMAGE)
CLIENT_JARS_BUCKET="s3://treeverse-clients-us-east/"
# https://openapi-generator.tech
-OPENAPI_GENERATOR_IMAGE=openapitools/openapi-generator-cli:v6.4.0
+OPENAPI_GENERATOR_IMAGE=openapitools/openapi-generator-cli:v5.3.0
OPENAPI_GENERATOR=$(DOCKER) run --user $(UID_GID) --rm -v $(shell pwd):/mnt $(OPENAPI_GENERATOR_IMAGE)
ifndef PACKAGE_VERSION
diff --git a/clients/java/.github/workflows/maven.yml b/clients/java/.github/workflows/maven.yml
deleted file mode 100644
index 7d4d66b64c2..00000000000
--- a/clients/java/.github/workflows/maven.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
-# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
-#
-# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech)
-
-name: Java CI with Maven
-
-on:
- push:
- branches: [ main, master ]
- pull_request:
- branches: [ main, master ]
-
-jobs:
- build:
- name: Build lakeFS API
- runs-on: ubuntu-latest
- strategy:
- matrix:
- java: [ '8' ]
- steps:
- - uses: actions/checkout@v2
- - name: Set up JDK
- uses: actions/setup-java@v2
- with:
- java-version: ${{ matrix.java }}
- distribution: 'temurin'
- cache: maven
- - name: Build with Maven
- run: mvn -B package --no-transfer-progress --file pom.xml
diff --git a/clients/java/.openapi-generator/VERSION b/clients/java/.openapi-generator/VERSION
index c0be8a7992a..e230c8396d1 100644
--- a/clients/java/.openapi-generator/VERSION
+++ b/clients/java/.openapi-generator/VERSION
@@ -1 +1 @@
-6.4.0
\ No newline at end of file
+5.3.0
\ No newline at end of file
diff --git a/clients/java/README.md b/clients/java/README.md
index f7047150788..d98ca9a00c7 100644
--- a/clients/java/README.md
+++ b/clients/java/README.md
@@ -12,8 +12,8 @@ lakeFS HTTP API
## Requirements
Building the API client library requires:
-1. Java 1.8+
-2. Maven (3.8.3+)/Gradle (7.2+)
+1. Java 1.7+
+2. Maven/Gradle
## Installation
@@ -49,14 +49,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:
```groovy
- repositories {
- mavenCentral() // Needed if the 'api-client' jar has been published to maven central.
- mavenLocal() // Needed if the 'api-client' jar has been published to the local maven repo.
- }
-
- dependencies {
- implementation "io.lakefs:api-client:0.1.0-SNAPSHOT"
- }
+compile "io.lakefs:api-client:0.1.0-SNAPSHOT"
```
### Others
@@ -89,7 +82,7 @@ import io.lakefs.clients.api.ActionsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -102,6 +95,10 @@ public class Example {
// 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");
@@ -114,10 +111,6 @@ public class Example {
// 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");
-
ActionsApi apiInstance = new ActionsApi(defaultClient);
String repository = "repository_example"; // String |
String runId = "runId_example"; // String |
@@ -138,7 +131,7 @@ public class Example {
## Documentation for API Endpoints
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
@@ -259,7 +252,6 @@ Class | Method | HTTP request | Description
- [CredentialsList](docs/CredentialsList.md)
- [CredentialsWithSecret](docs/CredentialsWithSecret.md)
- [CurrentUser](docs/CurrentUser.md)
- - [DeleteBranchProtectionRuleRequest](docs/DeleteBranchProtectionRuleRequest.md)
- [Diff](docs/Diff.md)
- [DiffList](docs/DiffList.md)
- [Error](docs/Error.md)
@@ -277,6 +269,7 @@ Class | Method | HTTP request | Description
- [HookRunList](docs/HookRunList.md)
- [ImportPagination](docs/ImportPagination.md)
- [IngestRangeCreationResponse](docs/IngestRangeCreationResponse.md)
+ - [InlineObject1](docs/InlineObject1.md)
- [LoginConfig](docs/LoginConfig.md)
- [LoginInformation](docs/LoginInformation.md)
- [Merge](docs/Merge.md)
@@ -334,16 +327,16 @@ Authentication schemes defined for the API:
- **Type**: HTTP basic authentication
-### jwt_token
-
-- **Type**: HTTP basic authentication
-
### cookie_auth
- **Type**: API key
- **API key parameter name**: internal_auth_session
- **Location**:
+### jwt_token
+
+- **Type**: HTTP basic authentication
+
### oidc_auth
- **Type**: API key
diff --git a/clients/java/api/openapi.yaml b/clients/java/api/openapi.yaml
index 884f9dfe5eb..84ff4531f48 100644
--- a/clients/java/api/openapi.yaml
+++ b/clients/java/api/openapi.yaml
@@ -54,7 +54,7 @@ paths:
summary: setup communications preferences
tags:
- config
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/setup_lakefs:
get:
@@ -114,7 +114,7 @@ paths:
summary: setup lakeFS and create a first user
tags:
- config
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/user:
get:
@@ -168,7 +168,7 @@ paths:
summary: perform a login
tags:
- auth
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/auth/password:
post:
@@ -199,7 +199,7 @@ paths:
summary: Update user password by reset_password token
tags:
- auth
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/auth/password/forgot:
post:
@@ -229,7 +229,7 @@ paths:
summary: forgot password request initiates the password reset process
tags:
- auth
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/auth/capabilities:
get:
@@ -347,7 +347,7 @@ paths:
summary: create user
tags:
- auth
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/auth/users/{userId}:
delete:
@@ -513,7 +513,7 @@ paths:
summary: create group
tags:
- auth
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/auth/groups/{groupId}:
delete:
@@ -686,7 +686,7 @@ paths:
summary: create policy
tags:
- auth
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/auth/policies/{policyId}:
delete:
@@ -813,7 +813,7 @@ paths:
summary: update policy
tags:
- auth
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/auth/groups/{groupId}/members:
get:
@@ -1594,8 +1594,8 @@ paths:
post:
operationId: createRepository
parameters:
- - description: "If true, create a bare repository with no initial commit and\
- \ branch"
+ - description: If true, create a bare repository with no initial commit and
+ branch
explode: true
in: query
name: bare
@@ -1644,7 +1644,7 @@ paths:
summary: create repository
tags:
- repositories
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}:
delete:
@@ -1840,7 +1840,7 @@ paths:
schema:
$ref: '#/components/schemas/Error'
description: Internal Server Error
- summary: "Dump repository refs (tags, commits, branches) to object store"
+ summary: Dump repository refs (tags, commits, branches) to object store
tags:
- refs
x-accepts: application/json
@@ -1888,10 +1888,10 @@ paths:
schema:
$ref: '#/components/schemas/Error'
description: Internal Server Error
- summary: "Restore repository refs (tags, commits, branches) from object store"
+ summary: Restore repository refs (tags, commits, branches) from object store
tags:
- refs
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/tags:
get:
@@ -2016,7 +2016,7 @@ paths:
summary: create tag
tags:
- tags
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/tags/{tag}:
delete:
@@ -2230,7 +2230,7 @@ paths:
summary: create branch
tags:
- branches
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/refs/{ref}/commits:
get:
@@ -2269,7 +2269,7 @@ paths:
minimum: -1
type: integer
style: form
- - description: "list of paths, each element is a path of a specific object"
+ - description: list of paths, each element is a path of a specific object
explode: true
in: query
name: objects
@@ -2279,7 +2279,7 @@ paths:
type: string
type: array
style: form
- - description: "list of paths, each element is a path of a prefix"
+ - description: list of paths, each element is a path of a prefix
explode: true
in: query
name: prefixes
@@ -2323,8 +2323,8 @@ paths:
schema:
$ref: '#/components/schemas/Error'
description: Internal Server Error
- summary: "get commit log from ref. If both objects and prefixes are empty, return\
- \ all commits."
+ summary: get commit log from ref. If both objects and prefixes are empty, return
+ all commits.
tags:
- refs
x-accepts: application/json
@@ -2475,7 +2475,7 @@ paths:
summary: create commit
tags:
- commits
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/branches/{branch}:
delete:
@@ -2619,7 +2619,7 @@ paths:
summary: reset branch
tags:
- branches
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/branches/{branch}/revert:
post:
@@ -2681,7 +2681,7 @@ paths:
summary: revert
tags:
- branches
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/branches/{branch}/cherry-pick:
post:
@@ -2747,7 +2747,7 @@ paths:
summary: Replay the changes from the given commit on the branch
tags:
- branches
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch}:
get:
@@ -2896,7 +2896,7 @@ paths:
summary: merge references
tags:
- refs
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/branches/{branch}/diff:
get:
@@ -3164,7 +3164,7 @@ paths:
name: Range
required: false
schema:
- pattern: "^bytes=((\\d*-\\d*,? ?)+)$"
+ pattern: ^bytes=((\d*-\d*,? ?)+)$
type: string
style: simple
- explode: true
@@ -3216,7 +3216,7 @@ paths:
Content-Range:
explode: false
schema:
- pattern: "^bytes=((\\d*-\\d*,? ?)+)$"
+ pattern: ^bytes=((\d*-\d*,? ?)+)$
type: string
style: simple
Last-Modified:
@@ -3304,7 +3304,7 @@ paths:
name: Range
required: false
schema:
- pattern: "^bytes=((\\d*-\\d*,? ?)+)$"
+ pattern: ^bytes=((\d*-\d*,? ?)+)$
type: string
style: simple
responses:
@@ -3339,7 +3339,7 @@ paths:
Content-Range:
explode: false
schema:
- pattern: "^bytes=((\\d*-\\d*,? ?)+)$"
+ pattern: ^bytes=((\d*-\d*,? ?)+)$
type: string
style: simple
Last-Modified:
@@ -3498,7 +3498,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/StagingLocation'
- description: "conflict with a commit, try here"
+ description: conflict with a commit, try here
default:
content:
application/json:
@@ -3508,7 +3508,7 @@ paths:
summary: associate staging on this physical address with a path
tags:
- staging
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/branches/metaranges:
post:
@@ -3567,7 +3567,7 @@ paths:
summary: create a lakeFS metarange file from the given ranges
tags:
- import
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/branches/ranges:
post:
@@ -3620,7 +3620,7 @@ paths:
summary: create a lakeFS range file from the source uri
tags:
- import
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/branches/{branch}/objects:
delete:
@@ -3723,10 +3723,16 @@ paths:
type: string
style: simple
requestBody:
+ $ref: '#/components/requestBodies/inline_object'
content:
multipart/form-data:
schema:
- $ref: '#/components/schemas/uploadObject_request'
+ properties:
+ content:
+ description: Only a single file per upload which must be named "content".
+ format: binary
+ type: string
+ type: object
responses:
"201":
content:
@@ -3773,7 +3779,7 @@ paths:
tags:
- objects
x-validation-exclude-body: true
- x-content-type: multipart/form-data
+ x-contentType: multipart/form-data
x-accepts: application/json
put:
operationId: stageObject
@@ -3846,7 +3852,7 @@ paths:
summary: stage an object's metadata for the given branch
tags:
- objects
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/branches/{branch}/objects/delete:
post:
@@ -3906,7 +3912,7 @@ paths:
summary: delete objects. Missing objects will not return a NotFound error.
tags:
- objects
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/branches/{branch}/objects/copy:
post:
@@ -3975,7 +3981,7 @@ paths:
summary: create a copy of an object
tags:
- objects
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/refs/{ref}/objects/stat:
get:
@@ -4720,7 +4726,7 @@ paths:
description: Internal Server Error
tags:
- retention
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/gc/prepare_commits:
post:
@@ -4766,7 +4772,7 @@ paths:
summary: save lists of active and expired commits for garbage collection
tags:
- retention
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/gc/prepare_uncommited:
post:
@@ -4818,7 +4824,7 @@ paths:
summary: save repository uncommitted metadata for garbage collection
tags:
- retention
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/repositories/{repository}/branch_protection:
delete:
@@ -4832,10 +4838,16 @@ paths:
type: string
style: simple
requestBody:
+ $ref: '#/components/requestBodies/inline_object_1'
content:
application/json:
schema:
- $ref: '#/components/schemas/deleteBranchProtectionRule_request'
+ properties:
+ pattern:
+ type: string
+ required:
+ - pattern
+ type: object
required: true
responses:
"204":
@@ -4860,7 +4872,7 @@ paths:
description: Internal Server Error
tags:
- repositories
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
get:
operationId: getBranchProtectionRules
@@ -4942,7 +4954,7 @@ paths:
description: Internal Server Error
tags:
- repositories
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
/healthcheck:
get:
@@ -5099,10 +5111,10 @@ paths:
schema:
$ref: '#/components/schemas/Error'
description: Internal Server Error
- summary: "post stats events, this endpoint is meant for internal use only"
+ summary: post stats events, this endpoint is meant for internal use only
tags:
- statistics
- x-content-type: application/json
+ x-contentType: application/json
x-accepts: application/json
components:
parameters:
@@ -5145,6 +5157,18 @@ components:
schema:
type: string
style: form
+ requestBodies:
+ inline_object_1:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/inline_object_1'
+ required: true
+ inline_object:
+ content:
+ multipart/form-data:
+ schema:
+ $ref: '#/components/schemas/inline_object'
responses:
Unauthorized:
content:
@@ -5315,19 +5339,19 @@ components:
properties:
added:
deprecated: true
- description: "Deprecated: inaccurate and will be removed."
+ description: 'Deprecated: inaccurate and will be removed.'
type: integer
removed:
deprecated: true
- description: "Deprecated: inaccurate and will be removed."
+ description: 'Deprecated: inaccurate and will be removed.'
type: integer
changed:
deprecated: true
- description: "Deprecated: inaccurate and will be removed."
+ description: 'Deprecated: inaccurate and will be removed.'
type: integer
conflict:
deprecated: true
- description: "Deprecated: inaccurate and will be removed."
+ description: 'Deprecated: inaccurate and will be removed.'
type: integer
type: object
MergeResult:
@@ -5353,7 +5377,7 @@ components:
storage_namespace: s3://example-bucket/
properties:
name:
- pattern: "^[a-z0-9][a-z0-9-]{2,62}$"
+ pattern: ^[a-z0-9][a-z0-9-]{2,62}$
type: string
storage_namespace:
description: Filesystem URI to store the underlying data in (e.g. "s3://my-bucket/some/path/")
@@ -5475,7 +5499,7 @@ components:
description: path of the copied object relative to the ref
type: string
src_ref:
- description: "a reference, if empty uses the provided branch as ref"
+ description: a reference, if empty uses the provided branch as ref
type: string
required:
- src_path
@@ -5621,7 +5645,7 @@ components:
type: object
OtfDiffEntry:
example:
- operation_content: "{}"
+ operation_content: '{}'
operation_type: create
id: id
operation: operation
@@ -5654,12 +5678,12 @@ components:
example:
diff_type: created
results:
- - operation_content: "{}"
+ - operation_content: '{}'
operation_type: create
id: id
operation: operation
timestamp: 0
- - operation_content: "{}"
+ - operation_content: '{}'
operation_type: create
id: id
operation: operation
@@ -5700,11 +5724,11 @@ components:
parent_number: 0
properties:
ref:
- description: "the commit to revert, given by a ref"
+ description: the commit to revert, given by a ref
type: string
parent_number:
- description: "when reverting a merge commit, the parent number (starting\
- \ from 1) relative to which to perform the revert."
+ description: when reverting a merge commit, the parent number (starting
+ from 1) relative to which to perform the revert.
type: integer
required:
- parent_number
@@ -5716,7 +5740,7 @@ components:
parent_number: 0
properties:
ref:
- description: "the commit to cherry-pick, given by a ref"
+ description: the commit to cherry-pick, given by a ref
type: string
parent_number:
description: |
@@ -5841,10 +5865,10 @@ components:
type: string
type: object
strategy:
- description: "In case of a merge conflict, this option will force the merge\
- \ process to automatically favor changes from the dest branch ('dest-wins')\
- \ or from the source branch('source-wins'). In case no selection is made,\
- \ the merge process will fail in case of a conflict"
+ description: In case of a merge conflict, this option will force the merge
+ process to automatically favor changes from the dest branch ('dest-wins')
+ or from the source branch('source-wins'). In case no selection is made,
+ the merge process will fail in case of a conflict
type: string
type: object
BranchCreation:
@@ -5952,8 +5976,8 @@ components:
email: email
properties:
id:
- description: "a unique identifier for the user. In password-based authentication,\
- \ this is the email."
+ description: a unique identifier for the user. In password-based authentication,
+ this is the email.
type: string
creation_date:
description: Unix Epoch in seconds
@@ -5995,8 +6019,8 @@ components:
id: id
properties:
id:
- description: "a unique identifier for the user. In password-based authentication,\
- \ this is the email."
+ description: a unique identifier for the user. In password-based authentication,
+ this is the email.
type: string
invite_user:
type: boolean
@@ -6626,8 +6650,8 @@ components:
description: opaque staging token to use to link uploaded object
type: string
presigned_url:
- description: "if presign=true is passed in the request, this field will\
- \ contain a presigned URL to use when uploading"
+ description: if presign=true is passed in the request, this field will contain
+ a presigned URL to use when uploading
nullable: true
type: string
required:
@@ -6762,7 +6786,7 @@ components:
pattern: stable_*
properties:
pattern:
- description: "fnmatch pattern for the branch name, supporting * and ? wildcards"
+ description: fnmatch pattern for the branch name, supporting * and ? wildcards
example: stable_*
minLength: 1
type: string
@@ -6886,12 +6910,11 @@ components:
class: class
properties:
class:
- description: "stats event class (e.g. \"s3_gateway\", \"openapi_request\"\
- , \"experimental-feature\", \"ui-event\")"
+ description: stats event class (e.g. "s3_gateway", "openapi_request", "experimental-feature",
+ "ui-event")
type: string
name:
- description: "stats event name (e.g. \"put_object\", \"create_repository\"\
- , \"\")"
+ description: stats event name (e.g. "put_object", "create_repository", "")
type: string
count:
description: number of events of the class and name
@@ -6918,14 +6941,14 @@ components:
required:
- events
type: object
- uploadObject_request:
+ inline_object:
properties:
content:
description: Only a single file per upload which must be named "content".
format: binary
type: string
type: object
- deleteBranchProtectionRule_request:
+ inline_object_1:
properties:
pattern:
type: string
diff --git a/clients/java/build.gradle b/clients/java/build.gradle
index 577e6137442..ffef9fffd9a 100644
--- a/clients/java/build.gradle
+++ b/clients/java/build.gradle
@@ -1,7 +1,6 @@
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
-apply plugin: 'com.diffplug.spotless'
group = 'io.lakefs'
version = '0.1.0-SNAPSHOT'
@@ -12,8 +11,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.+'
- classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
- classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.11.0'
+ classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}
@@ -65,7 +63,7 @@ if(hasProperty('target') && target == 'android') {
task.from variant.javaCompile.destinationDir
task.destinationDir = project.file("${project.buildDir}/outputs/jar")
task.archiveName = "${project.name}-${variant.baseName}-${version}.jar"
- artifacts.add('archives', task)
+ artifacts.add('archives', task);
}
}
@@ -106,63 +104,20 @@ ext {
}
dependencies {
- implementation 'io.swagger:swagger-annotations:1.6.8'
+ implementation 'io.swagger:swagger-annotations:1.5.24'
implementation "com.google.code.findbugs:jsr305:3.0.2"
- implementation 'com.squareup.okhttp3:okhttp:4.10.0'
- implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'
- implementation 'com.google.code.gson:gson:2.9.1'
- implementation 'io.gsonfire:gson-fire:1.8.5'
- implementation 'javax.ws.rs:jsr311-api:1.1.1'
- implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1'
- implementation 'org.openapitools:jackson-databind-nullable:0.2.4'
- implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
+ implementation 'com.squareup.okhttp3:okhttp:4.9.1'
+ implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
+ implementation 'com.google.code.gson:gson:2.8.6'
+ implementation 'io.gsonfire:gson-fire:1.8.4'
+ implementation 'org.openapitools:jackson-databind-nullable:0.2.1'
+ implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
+ implementation 'org.threeten:threetenbp:1.4.3'
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
- testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
- testImplementation 'org.mockito:mockito-core:3.12.4'
- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
+ testImplementation 'junit:junit:4.13.1'
+ testImplementation 'org.mockito:mockito-core:3.11.2'
}
javadoc {
options.tags = [ "http.response.details:a:Http Response Details" ]
}
-
-// Use spotless plugin to automatically format code, remove unused import, etc
-// To apply changes directly to the file, run `gradlew spotlessApply`
-// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
-spotless {
- // comment out below to run spotless as part of the `check` task
- enforceCheck false
-
- format 'misc', {
- // define the files (e.g. '*.gradle', '*.md') to apply `misc` to
- target '.gitignore'
-
- // define the steps to apply to those files
- trimTrailingWhitespace()
- indentWithSpaces() // Takes an integer argument if you don't like 4
- endWithNewline()
- }
- java {
- // don't need to set target, it is inferred from java
-
- // apply a specific flavor of google-java-format
- googleJavaFormat('1.8').aosp().reflowLongStrings()
-
- removeUnusedImports()
- importOrder()
- }
-}
-
-test {
- // Enable JUnit 5 (Gradle 4.6+).
- useJUnitPlatform()
-
- // Always run tests, even when nothing changed.
- dependsOn 'cleanTest'
-
- // Show test results.
- testLogging {
- events "passed", "skipped", "failed"
- }
-
-}
diff --git a/clients/java/build.sbt b/clients/java/build.sbt
index 3a1946a4fc5..c2bb424c99d 100644
--- a/clients/java/build.sbt
+++ b/clients/java/build.sbt
@@ -9,20 +9,18 @@ lazy val root = (project in file(".")).
publishArtifact in (Compile, packageDoc) := false,
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
- "io.swagger" % "swagger-annotations" % "1.6.5",
- "com.squareup.okhttp3" % "okhttp" % "4.10.0",
- "com.squareup.okhttp3" % "logging-interceptor" % "4.10.0",
- "com.google.code.gson" % "gson" % "2.9.1",
- "org.apache.commons" % "commons-lang3" % "3.12.0",
- "javax.ws.rs" % "jsr311-api" % "1.1.1",
- "javax.ws.rs" % "javax.ws.rs-api" % "2.1.1",
- "org.openapitools" % "jackson-databind-nullable" % "0.2.4",
- "io.gsonfire" % "gson-fire" % "1.8.5" % "compile",
+ "io.swagger" % "swagger-annotations" % "1.5.24",
+ "com.squareup.okhttp3" % "okhttp" % "4.9.1",
+ "com.squareup.okhttp3" % "logging-interceptor" % "4.9.1",
+ "com.google.code.gson" % "gson" % "2.8.6",
+ "org.apache.commons" % "commons-lang3" % "3.10",
+ "org.openapitools" % "jackson-databind-nullable" % "0.2.1",
+ "org.threeten" % "threetenbp" % "1.4.3" % "compile",
+ "io.gsonfire" % "gson-fire" % "1.8.3" % "compile",
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
- "org.junit.jupiter" % "junit-jupiter-api" % "5.9.1" % "test",
- "com.novocode" % "junit-interface" % "0.10" % "test",
- "org.mockito" % "mockito-core" % "3.12.4" % "test"
+ "junit" % "junit" % "4.13.1" % "test",
+ "com.novocode" % "junit-interface" % "0.10" % "test"
)
)
diff --git a/clients/java/docs/AccessKeyCredentials.md b/clients/java/docs/AccessKeyCredentials.md
index 097e4db0c20..9cf893ec2e1 100644
--- a/clients/java/docs/AccessKeyCredentials.md
+++ b/clients/java/docs/AccessKeyCredentials.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**accessKeyId** | **String** | access key ID to set for user for use in integration testing. | |
-|**secretAccessKey** | **String** | secret access key to set for user for use in integration testing. | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**accessKeyId** | **String** | access key ID to set for user for use in integration testing. |
+**secretAccessKey** | **String** | secret access key to set for user for use in integration testing. |
diff --git a/clients/java/docs/ActionRun.md b/clients/java/docs/ActionRun.md
index 935b53e48e3..799b04a9449 100644
--- a/clients/java/docs/ActionRun.md
+++ b/clients/java/docs/ActionRun.md
@@ -5,24 +5,24 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**runId** | **String** | | |
-|**branch** | **String** | | |
-|**startTime** | **OffsetDateTime** | | |
-|**endTime** | **OffsetDateTime** | | [optional] |
-|**eventType** | **String** | | |
-|**status** | [**StatusEnum**](#StatusEnum) | | |
-|**commitId** | **String** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**runId** | **String** | |
+**branch** | **String** | |
+**startTime** | **OffsetDateTime** | |
+**endTime** | **OffsetDateTime** | | [optional]
+**eventType** | **String** | |
+**status** | [**StatusEnum**](#StatusEnum) | |
+**commitId** | **String** | |
## Enum: StatusEnum
-| Name | Value |
-|---- | -----|
-| FAILED | "failed" |
-| COMPLETED | "completed" |
+Name | Value
+---- | -----
+FAILED | "failed"
+COMPLETED | "completed"
diff --git a/clients/java/docs/ActionRunList.md b/clients/java/docs/ActionRunList.md
index 0a0f19c7dbc..6e284fd2f39 100644
--- a/clients/java/docs/ActionRunList.md
+++ b/clients/java/docs/ActionRunList.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**pagination** | [**Pagination**](Pagination.md) | | |
-|**results** | [**List<ActionRun>**](ActionRun.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pagination** | [**Pagination**](Pagination.md) | |
+**results** | [**List<ActionRun>**](ActionRun.md) | |
diff --git a/clients/java/docs/ActionsApi.md b/clients/java/docs/ActionsApi.md
index bc24e035505..605ec132a32 100644
--- a/clients/java/docs/ActionsApi.md
+++ b/clients/java/docs/ActionsApi.md
@@ -1,13 +1,13 @@
# ActionsApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**getRun**](ActionsApi.md#getRun) | **GET** /repositories/{repository}/actions/runs/{run_id} | get a run |
-| [**getRunHookOutput**](ActionsApi.md#getRunHookOutput) | **GET** /repositories/{repository}/actions/runs/{run_id}/hooks/{hook_run_id}/output | get run hook output |
-| [**listRepositoryRuns**](ActionsApi.md#listRepositoryRuns) | **GET** /repositories/{repository}/actions/runs | list runs |
-| [**listRunHooks**](ActionsApi.md#listRunHooks) | **GET** /repositories/{repository}/actions/runs/{run_id}/hooks | list run hooks |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**getRun**](ActionsApi.md#getRun) | **GET** /repositories/{repository}/actions/runs/{run_id} | get a run
+[**getRunHookOutput**](ActionsApi.md#getRunHookOutput) | **GET** /repositories/{repository}/actions/runs/{run_id}/hooks/{hook_run_id}/output | get run hook output
+[**listRepositoryRuns**](ActionsApi.md#listRepositoryRuns) | **GET** /repositories/{repository}/actions/runs | list runs
+[**listRunHooks**](ActionsApi.md#listRunHooks) | **GET** /repositories/{repository}/actions/runs/{run_id}/hooks | list run hooks
@@ -29,7 +29,7 @@ import io.lakefs.clients.api.ActionsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -42,6 +42,10 @@ public class Example {
// 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");
@@ -54,10 +58,6 @@ public class Example {
// 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");
-
ActionsApi apiInstance = new ActionsApi(defaultClient);
String repository = "repository_example"; // String |
String runId = "runId_example"; // String |
@@ -77,10 +77,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **runId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **runId** | **String**| |
### Return type
@@ -88,7 +88,7 @@ public class Example {
### 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)
+[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
@@ -98,10 +98,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | action run result | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | action run result | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **getRunHookOutput**
@@ -122,7 +122,7 @@ import io.lakefs.clients.api.ActionsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -135,6 +135,10 @@ public class Example {
// 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");
@@ -147,10 +151,6 @@ public class Example {
// 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");
-
ActionsApi apiInstance = new ActionsApi(defaultClient);
String repository = "repository_example"; // String |
String runId = "runId_example"; // String |
@@ -171,11 +171,11 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **runId** | **String**| | |
-| **hookRunId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **runId** | **String**| |
+ **hookRunId** | **String**| |
### Return type
@@ -183,7 +183,7 @@ public class Example {
### 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)
+[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
@@ -193,10 +193,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | run hook output | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | run hook output | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **listRepositoryRuns**
@@ -217,7 +217,7 @@ import io.lakefs.clients.api.ActionsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -230,6 +230,10 @@ public class Example {
// 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");
@@ -242,10 +246,6 @@ public class Example {
// 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");
-
ActionsApi apiInstance = new ActionsApi(defaultClient);
String repository = "repository_example"; // String |
String after = "after_example"; // String | return items after this value
@@ -268,13 +268,13 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **after** | **String**| return items after this value | [optional] |
-| **amount** | **Integer**| how many items to return | [optional] [default to 100] |
-| **branch** | **String**| | [optional] |
-| **commit** | **String**| | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **after** | **String**| return items after this value | [optional]
+ **amount** | **Integer**| how many items to return | [optional] [default to 100]
+ **branch** | **String**| | [optional]
+ **commit** | **String**| | [optional]
### Return type
@@ -282,7 +282,7 @@ public class Example {
### 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)
+[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
@@ -292,10 +292,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | list action runs | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | list action runs | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **listRunHooks**
@@ -316,7 +316,7 @@ import io.lakefs.clients.api.ActionsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -329,6 +329,10 @@ public class Example {
// 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");
@@ -341,10 +345,6 @@ public class Example {
// 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");
-
ActionsApi apiInstance = new ActionsApi(defaultClient);
String repository = "repository_example"; // String |
String runId = "runId_example"; // String |
@@ -366,12 +366,12 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **runId** | **String**| | |
-| **after** | **String**| return items after this value | [optional] |
-| **amount** | **Integer**| how many items to return | [optional] [default to 100] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **runId** | **String**| |
+ **after** | **String**| return items after this value | [optional]
+ **amount** | **Integer**| how many items to return | [optional] [default to 100]
### Return type
@@ -379,7 +379,7 @@ public class Example {
### 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)
+[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
@@ -389,8 +389,8 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | list specific run hooks | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | list specific run hooks | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/AuthApi.md b/clients/java/docs/AuthApi.md
index 2535d61f5ba..aa39b2e6833 100644
--- a/clients/java/docs/AuthApi.md
+++ b/clients/java/docs/AuthApi.md
@@ -1,41 +1,41 @@
# AuthApi
-All URIs are relative to */api/v1*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**addGroupMembership**](AuthApi.md#addGroupMembership) | **PUT** /auth/groups/{groupId}/members/{userId} | add group membership |
-| [**attachPolicyToGroup**](AuthApi.md#attachPolicyToGroup) | **PUT** /auth/groups/{groupId}/policies/{policyId} | attach policy to group |
-| [**attachPolicyToUser**](AuthApi.md#attachPolicyToUser) | **PUT** /auth/users/{userId}/policies/{policyId} | attach policy to user |
-| [**createCredentials**](AuthApi.md#createCredentials) | **POST** /auth/users/{userId}/credentials | create credentials |
-| [**createGroup**](AuthApi.md#createGroup) | **POST** /auth/groups | create group |
-| [**createPolicy**](AuthApi.md#createPolicy) | **POST** /auth/policies | create policy |
-| [**createUser**](AuthApi.md#createUser) | **POST** /auth/users | create user |
-| [**deleteCredentials**](AuthApi.md#deleteCredentials) | **DELETE** /auth/users/{userId}/credentials/{accessKeyId} | delete credentials |
-| [**deleteGroup**](AuthApi.md#deleteGroup) | **DELETE** /auth/groups/{groupId} | delete group |
-| [**deleteGroupMembership**](AuthApi.md#deleteGroupMembership) | **DELETE** /auth/groups/{groupId}/members/{userId} | delete group membership |
-| [**deletePolicy**](AuthApi.md#deletePolicy) | **DELETE** /auth/policies/{policyId} | delete policy |
-| [**deleteUser**](AuthApi.md#deleteUser) | **DELETE** /auth/users/{userId} | delete user |
-| [**detachPolicyFromGroup**](AuthApi.md#detachPolicyFromGroup) | **DELETE** /auth/groups/{groupId}/policies/{policyId} | detach policy from group |
-| [**detachPolicyFromUser**](AuthApi.md#detachPolicyFromUser) | **DELETE** /auth/users/{userId}/policies/{policyId} | detach policy from user |
-| [**forgotPassword**](AuthApi.md#forgotPassword) | **POST** /auth/password/forgot | forgot password request initiates the password reset process |
-| [**getAuthCapabilities**](AuthApi.md#getAuthCapabilities) | **GET** /auth/capabilities | list authentication capabilities supported |
-| [**getCredentials**](AuthApi.md#getCredentials) | **GET** /auth/users/{userId}/credentials/{accessKeyId} | get credentials |
-| [**getCurrentUser**](AuthApi.md#getCurrentUser) | **GET** /user | get current user |
-| [**getGroup**](AuthApi.md#getGroup) | **GET** /auth/groups/{groupId} | get group |
-| [**getPolicy**](AuthApi.md#getPolicy) | **GET** /auth/policies/{policyId} | get policy |
-| [**getUser**](AuthApi.md#getUser) | **GET** /auth/users/{userId} | get user |
-| [**listGroupMembers**](AuthApi.md#listGroupMembers) | **GET** /auth/groups/{groupId}/members | list group members |
-| [**listGroupPolicies**](AuthApi.md#listGroupPolicies) | **GET** /auth/groups/{groupId}/policies | list group policies |
-| [**listGroups**](AuthApi.md#listGroups) | **GET** /auth/groups | list groups |
-| [**listPolicies**](AuthApi.md#listPolicies) | **GET** /auth/policies | list policies |
-| [**listUserCredentials**](AuthApi.md#listUserCredentials) | **GET** /auth/users/{userId}/credentials | list user credentials |
-| [**listUserGroups**](AuthApi.md#listUserGroups) | **GET** /auth/users/{userId}/groups | list user groups |
-| [**listUserPolicies**](AuthApi.md#listUserPolicies) | **GET** /auth/users/{userId}/policies | list user policies |
-| [**listUsers**](AuthApi.md#listUsers) | **GET** /auth/users | list users |
-| [**login**](AuthApi.md#login) | **POST** /auth/login | perform a login |
-| [**updatePassword**](AuthApi.md#updatePassword) | **POST** /auth/password | Update user password by reset_password token |
-| [**updatePolicy**](AuthApi.md#updatePolicy) | **PUT** /auth/policies/{policyId} | update policy |
+All URIs are relative to *http://localhost/api/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**addGroupMembership**](AuthApi.md#addGroupMembership) | **PUT** /auth/groups/{groupId}/members/{userId} | add group membership
+[**attachPolicyToGroup**](AuthApi.md#attachPolicyToGroup) | **PUT** /auth/groups/{groupId}/policies/{policyId} | attach policy to group
+[**attachPolicyToUser**](AuthApi.md#attachPolicyToUser) | **PUT** /auth/users/{userId}/policies/{policyId} | attach policy to user
+[**createCredentials**](AuthApi.md#createCredentials) | **POST** /auth/users/{userId}/credentials | create credentials
+[**createGroup**](AuthApi.md#createGroup) | **POST** /auth/groups | create group
+[**createPolicy**](AuthApi.md#createPolicy) | **POST** /auth/policies | create policy
+[**createUser**](AuthApi.md#createUser) | **POST** /auth/users | create user
+[**deleteCredentials**](AuthApi.md#deleteCredentials) | **DELETE** /auth/users/{userId}/credentials/{accessKeyId} | delete credentials
+[**deleteGroup**](AuthApi.md#deleteGroup) | **DELETE** /auth/groups/{groupId} | delete group
+[**deleteGroupMembership**](AuthApi.md#deleteGroupMembership) | **DELETE** /auth/groups/{groupId}/members/{userId} | delete group membership
+[**deletePolicy**](AuthApi.md#deletePolicy) | **DELETE** /auth/policies/{policyId} | delete policy
+[**deleteUser**](AuthApi.md#deleteUser) | **DELETE** /auth/users/{userId} | delete user
+[**detachPolicyFromGroup**](AuthApi.md#detachPolicyFromGroup) | **DELETE** /auth/groups/{groupId}/policies/{policyId} | detach policy from group
+[**detachPolicyFromUser**](AuthApi.md#detachPolicyFromUser) | **DELETE** /auth/users/{userId}/policies/{policyId} | detach policy from user
+[**forgotPassword**](AuthApi.md#forgotPassword) | **POST** /auth/password/forgot | forgot password request initiates the password reset process
+[**getAuthCapabilities**](AuthApi.md#getAuthCapabilities) | **GET** /auth/capabilities | list authentication capabilities supported
+[**getCredentials**](AuthApi.md#getCredentials) | **GET** /auth/users/{userId}/credentials/{accessKeyId} | get credentials
+[**getCurrentUser**](AuthApi.md#getCurrentUser) | **GET** /user | get current user
+[**getGroup**](AuthApi.md#getGroup) | **GET** /auth/groups/{groupId} | get group
+[**getPolicy**](AuthApi.md#getPolicy) | **GET** /auth/policies/{policyId} | get policy
+[**getUser**](AuthApi.md#getUser) | **GET** /auth/users/{userId} | get user
+[**listGroupMembers**](AuthApi.md#listGroupMembers) | **GET** /auth/groups/{groupId}/members | list group members
+[**listGroupPolicies**](AuthApi.md#listGroupPolicies) | **GET** /auth/groups/{groupId}/policies | list group policies
+[**listGroups**](AuthApi.md#listGroups) | **GET** /auth/groups | list groups
+[**listPolicies**](AuthApi.md#listPolicies) | **GET** /auth/policies | list policies
+[**listUserCredentials**](AuthApi.md#listUserCredentials) | **GET** /auth/users/{userId}/credentials | list user credentials
+[**listUserGroups**](AuthApi.md#listUserGroups) | **GET** /auth/users/{userId}/groups | list user groups
+[**listUserPolicies**](AuthApi.md#listUserPolicies) | **GET** /auth/users/{userId}/policies | list user policies
+[**listUsers**](AuthApi.md#listUsers) | **GET** /auth/users | list users
+[**login**](AuthApi.md#login) | **POST** /auth/login | perform a login
+[**updatePassword**](AuthApi.md#updatePassword) | **POST** /auth/password | Update user password by reset_password token
+[**updatePolicy**](AuthApi.md#updatePolicy) | **PUT** /auth/policies/{policyId} | update policy
@@ -57,7 +57,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -70,6 +70,10 @@ public class Example {
// 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");
@@ -82,10 +86,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String groupId = "groupId_example"; // String |
String userId = "userId_example"; // String |
@@ -104,10 +104,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **groupId** | **String**| | |
-| **userId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **groupId** | **String**| |
+ **userId** | **String**| |
### Return type
@@ -115,7 +115,7 @@ 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)
+[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
@@ -125,10 +125,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | membership added successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**201** | membership added successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **attachPolicyToGroup**
@@ -149,7 +149,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -162,6 +162,10 @@ public class Example {
// 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");
@@ -174,10 +178,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String groupId = "groupId_example"; // String |
String policyId = "policyId_example"; // String |
@@ -196,10 +196,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **groupId** | **String**| | |
-| **policyId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **groupId** | **String**| |
+ **policyId** | **String**| |
### Return type
@@ -207,7 +207,7 @@ 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)
+[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
@@ -217,10 +217,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | policy attached successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**201** | policy attached successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **attachPolicyToUser**
@@ -241,7 +241,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -254,6 +254,10 @@ public class Example {
// 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");
@@ -266,10 +270,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String userId = "userId_example"; // String |
String policyId = "policyId_example"; // String |
@@ -288,10 +288,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **userId** | **String**| | |
-| **policyId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **userId** | **String**| |
+ **policyId** | **String**| |
### Return type
@@ -299,7 +299,7 @@ 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)
+[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
@@ -309,10 +309,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | policy attached successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**201** | policy attached successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **createCredentials**
@@ -333,7 +333,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -346,6 +346,10 @@ public class Example {
// 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");
@@ -358,10 +362,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String userId = "userId_example"; // String |
try {
@@ -380,9 +380,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **userId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **userId** | **String**| |
### Return type
@@ -390,7 +390,7 @@ public class Example {
### 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)
+[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
@@ -400,10 +400,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | credentials | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**201** | credentials | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **createGroup**
@@ -424,7 +424,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -437,6 +437,10 @@ public class Example {
// 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");
@@ -449,10 +453,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
GroupCreation groupCreation = new GroupCreation(); // GroupCreation |
try {
@@ -471,9 +471,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **groupCreation** | [**GroupCreation**](GroupCreation.md)| | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **groupCreation** | [**GroupCreation**](GroupCreation.md)| | [optional]
### Return type
@@ -481,7 +481,7 @@ public class Example {
### 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)
+[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
@@ -491,10 +491,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | group | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**201** | group | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **createPolicy**
@@ -515,7 +515,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -528,6 +528,10 @@ public class Example {
// 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");
@@ -540,10 +544,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
Policy policy = new Policy(); // Policy |
try {
@@ -562,9 +562,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **policy** | [**Policy**](Policy.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **policy** | [**Policy**](Policy.md)| |
### Return type
@@ -572,7 +572,7 @@ public class Example {
### 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)
+[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
@@ -582,11 +582,11 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | policy | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **409** | Resource Conflicts With Target | - |
-| **0** | Internal Server Error | - |
+**201** | policy | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**409** | Resource Conflicts With Target | - |
+**0** | Internal Server Error | - |
# **createUser**
@@ -607,7 +607,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -620,6 +620,10 @@ public class Example {
// 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");
@@ -632,10 +636,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
UserCreation userCreation = new UserCreation(); // UserCreation |
try {
@@ -654,9 +654,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **userCreation** | [**UserCreation**](UserCreation.md)| | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **userCreation** | [**UserCreation**](UserCreation.md)| | [optional]
### Return type
@@ -664,7 +664,7 @@ public class Example {
### 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)
+[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
@@ -674,11 +674,11 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | user | - |
-| **400** | validation error | - |
-| **401** | Unauthorized | - |
-| **409** | Resource Conflicts With Target | - |
-| **0** | Internal Server Error | - |
+**201** | user | - |
+**400** | validation error | - |
+**401** | Unauthorized | - |
+**409** | Resource Conflicts With Target | - |
+**0** | Internal Server Error | - |
# **deleteCredentials**
@@ -699,7 +699,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -712,6 +712,10 @@ public class Example {
// 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");
@@ -724,10 +728,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String userId = "userId_example"; // String |
String accessKeyId = "accessKeyId_example"; // String |
@@ -746,10 +746,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **userId** | **String**| | |
-| **accessKeyId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **userId** | **String**| |
+ **accessKeyId** | **String**| |
### Return type
@@ -757,7 +757,7 @@ 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)
+[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
@@ -767,10 +767,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | credentials deleted successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | credentials deleted successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **deleteGroup**
@@ -791,7 +791,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -804,6 +804,10 @@ public class Example {
// 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");
@@ -816,10 +820,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String groupId = "groupId_example"; // String |
try {
@@ -837,9 +837,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **groupId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **groupId** | **String**| |
### Return type
@@ -847,7 +847,7 @@ 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)
+[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
@@ -857,10 +857,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | group deleted successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | group deleted successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **deleteGroupMembership**
@@ -881,7 +881,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -894,6 +894,10 @@ public class Example {
// 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");
@@ -906,10 +910,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String groupId = "groupId_example"; // String |
String userId = "userId_example"; // String |
@@ -928,10 +928,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **groupId** | **String**| | |
-| **userId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **groupId** | **String**| |
+ **userId** | **String**| |
### Return type
@@ -939,7 +939,7 @@ 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)
+[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
@@ -949,10 +949,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | membership deleted successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | membership deleted successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **deletePolicy**
@@ -973,7 +973,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -986,6 +986,10 @@ public class Example {
// 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");
@@ -998,10 +1002,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String policyId = "policyId_example"; // String |
try {
@@ -1019,9 +1019,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **policyId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **policyId** | **String**| |
### Return type
@@ -1029,7 +1029,7 @@ 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)
+[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
@@ -1039,10 +1039,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | policy deleted successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | policy deleted successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **deleteUser**
@@ -1063,7 +1063,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -1076,6 +1076,10 @@ public class Example {
// 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");
@@ -1088,10 +1092,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String userId = "userId_example"; // String |
try {
@@ -1109,9 +1109,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **userId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **userId** | **String**| |
### Return type
@@ -1119,7 +1119,7 @@ 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)
+[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
@@ -1129,10 +1129,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | user deleted successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | user deleted successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **detachPolicyFromGroup**
@@ -1153,7 +1153,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -1166,6 +1166,10 @@ public class Example {
// 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");
@@ -1178,10 +1182,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String groupId = "groupId_example"; // String |
String policyId = "policyId_example"; // String |
@@ -1200,10 +1200,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **groupId** | **String**| | |
-| **policyId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **groupId** | **String**| |
+ **policyId** | **String**| |
### Return type
@@ -1211,7 +1211,7 @@ 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)
+[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
@@ -1221,10 +1221,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | policy detached successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | policy detached successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **detachPolicyFromUser**
@@ -1245,7 +1245,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -1258,6 +1258,10 @@ public class Example {
// 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");
@@ -1270,10 +1274,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String userId = "userId_example"; // String |
String policyId = "policyId_example"; // String |
@@ -1292,10 +1292,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **userId** | **String**| | |
-| **policyId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **userId** | **String**| |
+ **policyId** | **String**| |
### Return type
@@ -1303,7 +1303,7 @@ 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)
+[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
@@ -1313,10 +1313,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | policy detached successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | policy detached successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **forgotPassword**
@@ -1336,7 +1336,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
AuthApi apiInstance = new AuthApi(defaultClient);
ForgotPasswordRequest forgotPasswordRequest = new ForgotPasswordRequest(); // ForgotPasswordRequest |
@@ -1355,9 +1355,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **forgotPasswordRequest** | [**ForgotPasswordRequest**](ForgotPasswordRequest.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **forgotPasswordRequest** | [**ForgotPasswordRequest**](ForgotPasswordRequest.md)| |
### Return type
@@ -1375,9 +1375,9 @@ No authorization required
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | No content | - |
-| **400** | bad request | - |
-| **0** | Internal Server Error | - |
+**204** | No content | - |
+**400** | bad request | - |
+**0** | Internal Server Error | - |
# **getAuthCapabilities**
@@ -1397,7 +1397,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
AuthApi apiInstance = new AuthApi(defaultClient);
try {
@@ -1433,8 +1433,8 @@ No authorization required
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | auth capabilities | - |
-| **0** | Internal Server Error | - |
+**200** | auth capabilities | - |
+**0** | Internal Server Error | - |
# **getCredentials**
@@ -1455,7 +1455,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -1468,6 +1468,10 @@ public class Example {
// 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");
@@ -1480,10 +1484,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String userId = "userId_example"; // String |
String accessKeyId = "accessKeyId_example"; // String |
@@ -1503,10 +1503,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **userId** | **String**| | |
-| **accessKeyId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **userId** | **String**| |
+ **accessKeyId** | **String**| |
### Return type
@@ -1514,7 +1514,7 @@ public class Example {
### 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)
+[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
@@ -1524,10 +1524,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | credentials | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | credentials | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **getCurrentUser**
@@ -1548,7 +1548,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -1561,6 +1561,10 @@ public class Example {
// 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");
@@ -1573,10 +1577,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
try {
CurrentUser result = apiInstance.getCurrentUser();
@@ -1601,7 +1601,7 @@ This endpoint does not need any parameter.
### 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)
+[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
@@ -1611,7 +1611,7 @@ This endpoint does not need any parameter.
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | user | - |
+**200** | user | - |
# **getGroup**
@@ -1632,7 +1632,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -1645,6 +1645,10 @@ public class Example {
// 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");
@@ -1657,10 +1661,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String groupId = "groupId_example"; // String |
try {
@@ -1679,9 +1679,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **groupId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **groupId** | **String**| |
### Return type
@@ -1689,7 +1689,7 @@ public class Example {
### 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)
+[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
@@ -1699,10 +1699,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | group | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | group | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **getPolicy**
@@ -1723,7 +1723,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -1736,6 +1736,10 @@ public class Example {
// 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");
@@ -1748,10 +1752,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String policyId = "policyId_example"; // String |
try {
@@ -1770,9 +1770,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **policyId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **policyId** | **String**| |
### Return type
@@ -1780,7 +1780,7 @@ public class Example {
### 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)
+[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
@@ -1790,10 +1790,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | policy | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | policy | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **getUser**
@@ -1814,7 +1814,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -1827,6 +1827,10 @@ public class Example {
// 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");
@@ -1839,10 +1843,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String userId = "userId_example"; // String |
try {
@@ -1861,9 +1861,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **userId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **userId** | **String**| |
### Return type
@@ -1871,7 +1871,7 @@ public class Example {
### 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)
+[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
@@ -1881,10 +1881,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | user | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | user | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **listGroupMembers**
@@ -1905,7 +1905,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -1918,6 +1918,10 @@ public class Example {
// 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");
@@ -1930,10 +1934,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String groupId = "groupId_example"; // String |
String prefix = "prefix_example"; // String | return items prefixed with this value
@@ -1955,12 +1955,12 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **groupId** | **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] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **groupId** | **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]
### Return type
@@ -1968,7 +1968,7 @@ public class Example {
### 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)
+[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
@@ -1978,9 +1978,9 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | group memeber list | - |
-| **401** | Unauthorized | - |
-| **0** | Internal Server Error | - |
+**200** | group memeber list | - |
+**401** | Unauthorized | - |
+**0** | Internal Server Error | - |
# **listGroupPolicies**
@@ -2001,7 +2001,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -2014,6 +2014,10 @@ public class Example {
// 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");
@@ -2026,10 +2030,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String groupId = "groupId_example"; // String |
String prefix = "prefix_example"; // String | return items prefixed with this value
@@ -2051,12 +2051,12 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **groupId** | **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] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **groupId** | **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]
### Return type
@@ -2064,7 +2064,7 @@ public class Example {
### 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)
+[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
@@ -2074,10 +2074,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | policy list | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | policy list | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **listGroups**
@@ -2098,7 +2098,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -2111,6 +2111,10 @@ public class Example {
// 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");
@@ -2123,10 +2127,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String prefix = "prefix_example"; // String | return items prefixed with this value
String after = "after_example"; // String | return items after this value
@@ -2147,11 +2147,11 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **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] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **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]
### Return type
@@ -2159,7 +2159,7 @@ public class Example {
### 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)
+[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
@@ -2169,9 +2169,9 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | group list | - |
-| **401** | Unauthorized | - |
-| **0** | Internal Server Error | - |
+**200** | group list | - |
+**401** | Unauthorized | - |
+**0** | Internal Server Error | - |
# **listPolicies**
@@ -2192,7 +2192,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -2205,6 +2205,10 @@ public class Example {
// 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");
@@ -2217,10 +2221,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String prefix = "prefix_example"; // String | return items prefixed with this value
String after = "after_example"; // String | return items after this value
@@ -2241,11 +2241,11 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **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] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **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]
### Return type
@@ -2253,7 +2253,7 @@ public class Example {
### 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)
+[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
@@ -2263,9 +2263,9 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | policy list | - |
-| **401** | Unauthorized | - |
-| **0** | Internal Server Error | - |
+**200** | policy list | - |
+**401** | Unauthorized | - |
+**0** | Internal Server Error | - |
# **listUserCredentials**
@@ -2286,7 +2286,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -2299,6 +2299,10 @@ public class Example {
// 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");
@@ -2311,10 +2315,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String userId = "userId_example"; // String |
String prefix = "prefix_example"; // String | return items prefixed with this value
@@ -2336,12 +2336,12 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **userId** | **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] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **userId** | **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]
### Return type
@@ -2349,7 +2349,7 @@ public class Example {
### 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)
+[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
@@ -2359,10 +2359,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | credential list | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | credential list | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **listUserGroups**
@@ -2383,7 +2383,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -2396,6 +2396,10 @@ public class Example {
// 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");
@@ -2408,10 +2412,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String userId = "userId_example"; // String |
String prefix = "prefix_example"; // String | return items prefixed with this value
@@ -2433,12 +2433,12 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **userId** | **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] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **userId** | **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]
### Return type
@@ -2446,7 +2446,7 @@ public class Example {
### 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)
+[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
@@ -2456,10 +2456,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | group list | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | group list | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **listUserPolicies**
@@ -2480,7 +2480,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -2493,6 +2493,10 @@ public class Example {
// 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");
@@ -2505,10 +2509,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String userId = "userId_example"; // String |
String prefix = "prefix_example"; // String | return items prefixed with this value
@@ -2531,13 +2531,13 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **userId** | **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] |
-| **effective** | **Boolean**| will return all distinct policies attached to the user or any of its groups | [optional] [default to false] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **userId** | **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]
+ **effective** | **Boolean**| will return all distinct policies attached to the user or any of its groups | [optional] [default to false]
### Return type
@@ -2545,7 +2545,7 @@ public class Example {
### 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)
+[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
@@ -2555,10 +2555,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | policy list | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | policy list | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **listUsers**
@@ -2579,7 +2579,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -2592,6 +2592,10 @@ public class Example {
// 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");
@@ -2604,10 +2608,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String prefix = "prefix_example"; // String | return items prefixed with this value
String after = "after_example"; // String | return items after this value
@@ -2628,11 +2628,11 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **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] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **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]
### Return type
@@ -2640,7 +2640,7 @@ public class Example {
### 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)
+[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
@@ -2650,9 +2650,9 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | user list | - |
-| **401** | Unauthorized | - |
-| **0** | Internal Server Error | - |
+**200** | user list | - |
+**401** | Unauthorized | - |
+**0** | Internal Server Error | - |
# **login**
@@ -2672,7 +2672,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
AuthApi apiInstance = new AuthApi(defaultClient);
LoginInformation loginInformation = new LoginInformation(); // LoginInformation |
@@ -2692,9 +2692,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **loginInformation** | [**LoginInformation**](LoginInformation.md)| | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **loginInformation** | [**LoginInformation**](LoginInformation.md)| | [optional]
### Return type
@@ -2712,9 +2712,9 @@ No authorization required
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful login | * Set-Cookie -
|
-| **401** | Unauthorized | - |
-| **0** | Internal Server Error | - |
+**200** | successful login | * Set-Cookie -
|
+**401** | Unauthorized | - |
+**0** | Internal Server Error | - |
# **updatePassword**
@@ -2735,7 +2735,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure API key authorization: cookie_auth
ApiKeyAuth cookie_auth = (ApiKeyAuth) defaultClient.getAuthentication("cookie_auth");
@@ -2760,9 +2760,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **updatePasswordByToken** | [**UpdatePasswordByToken**](UpdatePasswordByToken.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **updatePasswordByToken** | [**UpdatePasswordByToken**](UpdatePasswordByToken.md)| |
### Return type
@@ -2780,9 +2780,9 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | successful reset | - |
-| **401** | Unauthorized | - |
-| **0** | Internal Server Error | - |
+**201** | successful reset | - |
+**401** | Unauthorized | - |
+**0** | Internal Server Error | - |
# **updatePolicy**
@@ -2803,7 +2803,7 @@ import io.lakefs.clients.api.AuthApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -2816,6 +2816,10 @@ public class Example {
// 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");
@@ -2828,10 +2832,6 @@ public class Example {
// 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");
-
AuthApi apiInstance = new AuthApi(defaultClient);
String policyId = "policyId_example"; // String |
Policy policy = new Policy(); // Policy |
@@ -2851,10 +2851,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **policyId** | **String**| | |
-| **policy** | [**Policy**](Policy.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **policyId** | **String**| |
+ **policy** | [**Policy**](Policy.md)| |
### Return type
@@ -2862,7 +2862,7 @@ public class Example {
### 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)
+[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
@@ -2872,9 +2872,9 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | policy | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | policy | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/AuthCapabilities.md b/clients/java/docs/AuthCapabilities.md
index a7be5b502c9..664d2ccb8fd 100644
--- a/clients/java/docs/AuthCapabilities.md
+++ b/clients/java/docs/AuthCapabilities.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**inviteUser** | **Boolean** | | [optional] |
-|**forgotPassword** | **Boolean** | | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**inviteUser** | **Boolean** | | [optional]
+**forgotPassword** | **Boolean** | | [optional]
diff --git a/clients/java/docs/AuthenticationToken.md b/clients/java/docs/AuthenticationToken.md
index 1adb437b3c9..826f4e3c6e5 100644
--- a/clients/java/docs/AuthenticationToken.md
+++ b/clients/java/docs/AuthenticationToken.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**token** | **String** | a JWT token that could be used to authenticate requests | |
-|**tokenExpiration** | **Long** | Unix Epoch in seconds | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**token** | **String** | a JWT token that could be used to authenticate requests |
+**tokenExpiration** | **Long** | Unix Epoch in seconds | [optional]
diff --git a/clients/java/docs/BranchCreation.md b/clients/java/docs/BranchCreation.md
index eb248dcc39b..7687d5a7422 100644
--- a/clients/java/docs/BranchCreation.md
+++ b/clients/java/docs/BranchCreation.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **String** | | |
-|**source** | **String** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | |
+**source** | **String** | |
diff --git a/clients/java/docs/BranchProtectionRule.md b/clients/java/docs/BranchProtectionRule.md
index c5d46a97549..28153739a93 100644
--- a/clients/java/docs/BranchProtectionRule.md
+++ b/clients/java/docs/BranchProtectionRule.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**pattern** | **String** | fnmatch pattern for the branch name, supporting * and ? wildcards | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pattern** | **String** | fnmatch pattern for the branch name, supporting * and ? wildcards |
diff --git a/clients/java/docs/BranchesApi.md b/clients/java/docs/BranchesApi.md
index d8a2739aa6f..ffbbde2ee2a 100644
--- a/clients/java/docs/BranchesApi.md
+++ b/clients/java/docs/BranchesApi.md
@@ -1,17 +1,17 @@
# BranchesApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**cherryPick**](BranchesApi.md#cherryPick) | **POST** /repositories/{repository}/branches/{branch}/cherry-pick | Replay the changes from the given commit on the branch |
-| [**createBranch**](BranchesApi.md#createBranch) | **POST** /repositories/{repository}/branches | create branch |
-| [**deleteBranch**](BranchesApi.md#deleteBranch) | **DELETE** /repositories/{repository}/branches/{branch} | delete branch |
-| [**diffBranch**](BranchesApi.md#diffBranch) | **GET** /repositories/{repository}/branches/{branch}/diff | diff branch |
-| [**getBranch**](BranchesApi.md#getBranch) | **GET** /repositories/{repository}/branches/{branch} | get branch |
-| [**listBranches**](BranchesApi.md#listBranches) | **GET** /repositories/{repository}/branches | list branches |
-| [**resetBranch**](BranchesApi.md#resetBranch) | **PUT** /repositories/{repository}/branches/{branch} | reset branch |
-| [**revertBranch**](BranchesApi.md#revertBranch) | **POST** /repositories/{repository}/branches/{branch}/revert | revert |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**cherryPick**](BranchesApi.md#cherryPick) | **POST** /repositories/{repository}/branches/{branch}/cherry-pick | Replay the changes from the given commit on the branch
+[**createBranch**](BranchesApi.md#createBranch) | **POST** /repositories/{repository}/branches | create branch
+[**deleteBranch**](BranchesApi.md#deleteBranch) | **DELETE** /repositories/{repository}/branches/{branch} | delete branch
+[**diffBranch**](BranchesApi.md#diffBranch) | **GET** /repositories/{repository}/branches/{branch}/diff | diff branch
+[**getBranch**](BranchesApi.md#getBranch) | **GET** /repositories/{repository}/branches/{branch} | get branch
+[**listBranches**](BranchesApi.md#listBranches) | **GET** /repositories/{repository}/branches | list branches
+[**resetBranch**](BranchesApi.md#resetBranch) | **PUT** /repositories/{repository}/branches/{branch} | reset branch
+[**revertBranch**](BranchesApi.md#revertBranch) | **POST** /repositories/{repository}/branches/{branch}/revert | revert
@@ -33,7 +33,7 @@ import io.lakefs.clients.api.BranchesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -46,6 +46,10 @@ public class Example {
// 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");
@@ -58,10 +62,6 @@ public class Example {
// 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");
-
BranchesApi apiInstance = new BranchesApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -82,11 +82,11 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
-| **cherryPickCreation** | [**CherryPickCreation**](CherryPickCreation.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
+ **cherryPickCreation** | [**CherryPickCreation**](CherryPickCreation.md)| |
### Return type
@@ -94,7 +94,7 @@ public class Example {
### 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)
+[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
@@ -104,12 +104,12 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | the cherry-pick commit | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **409** | Conflict Found | - |
-| **0** | Internal Server Error | - |
+**201** | the cherry-pick commit | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**409** | Conflict Found | - |
+**0** | Internal Server Error | - |
# **createBranch**
@@ -130,7 +130,7 @@ import io.lakefs.clients.api.BranchesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -143,6 +143,10 @@ public class Example {
// 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");
@@ -155,10 +159,6 @@ public class Example {
// 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");
-
BranchesApi apiInstance = new BranchesApi(defaultClient);
String repository = "repository_example"; // String |
BranchCreation branchCreation = new BranchCreation(); // BranchCreation |
@@ -178,10 +178,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branchCreation** | [**BranchCreation**](BranchCreation.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branchCreation** | [**BranchCreation**](BranchCreation.md)| |
### Return type
@@ -189,7 +189,7 @@ public class Example {
### 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)
+[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
@@ -199,12 +199,12 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | reference | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **409** | Resource Conflicts With Target | - |
-| **0** | Internal Server Error | - |
+**201** | reference | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**409** | Resource Conflicts With Target | - |
+**0** | Internal Server Error | - |
# **deleteBranch**
@@ -225,7 +225,7 @@ import io.lakefs.clients.api.BranchesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -238,6 +238,10 @@ public class Example {
// 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");
@@ -250,10 +254,6 @@ public class Example {
// 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");
-
BranchesApi apiInstance = new BranchesApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -272,10 +272,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
### Return type
@@ -283,7 +283,7 @@ 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)
+[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
@@ -293,11 +293,11 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | branch deleted successfully | - |
-| **401** | Unauthorized | - |
-| **403** | Forbidden | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | branch deleted successfully | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **diffBranch**
@@ -318,7 +318,7 @@ import io.lakefs.clients.api.BranchesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -331,6 +331,10 @@ public class Example {
// 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");
@@ -343,10 +347,6 @@ public class Example {
// 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");
-
BranchesApi apiInstance = new BranchesApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -370,14 +370,14 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
-| **after** | **String**| return items after this value | [optional] |
-| **amount** | **Integer**| how many items to return | [optional] [default to 100] |
-| **prefix** | **String**| return items prefixed with this value | [optional] |
-| **delimiter** | **String**| delimiter used to group common prefixes by | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
+ **after** | **String**| return items after this value | [optional]
+ **amount** | **Integer**| how many items to return | [optional] [default to 100]
+ **prefix** | **String**| return items prefixed with this value | [optional]
+ **delimiter** | **String**| delimiter used to group common prefixes by | [optional]
### Return type
@@ -385,7 +385,7 @@ public class Example {
### 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)
+[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
@@ -395,10 +395,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | diff of branch uncommitted changes | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | diff of branch uncommitted changes | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **getBranch**
@@ -419,7 +419,7 @@ import io.lakefs.clients.api.BranchesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -432,6 +432,10 @@ public class Example {
// 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");
@@ -444,10 +448,6 @@ public class Example {
// 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");
-
BranchesApi apiInstance = new BranchesApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -467,10 +467,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
### Return type
@@ -478,7 +478,7 @@ public class Example {
### 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)
+[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
@@ -488,10 +488,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | branch | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | branch | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **listBranches**
@@ -512,7 +512,7 @@ import io.lakefs.clients.api.BranchesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -525,6 +525,10 @@ public class Example {
// 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");
@@ -537,10 +541,6 @@ public class Example {
// 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");
-
BranchesApi apiInstance = new BranchesApi(defaultClient);
String repository = "repository_example"; // String |
String prefix = "prefix_example"; // String | return items prefixed with this value
@@ -562,12 +562,12 @@ public class Example {
### 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] |
+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]
### Return type
@@ -575,7 +575,7 @@ public class Example {
### 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)
+[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
@@ -585,10 +585,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | branch list | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | branch list | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **resetBranch**
@@ -609,7 +609,7 @@ import io.lakefs.clients.api.BranchesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -622,6 +622,10 @@ public class Example {
// 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");
@@ -634,10 +638,6 @@ public class Example {
// 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");
-
BranchesApi apiInstance = new BranchesApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -657,11 +657,11 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
-| **resetCreation** | [**ResetCreation**](ResetCreation.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
+ **resetCreation** | [**ResetCreation**](ResetCreation.md)| |
### Return type
@@ -669,7 +669,7 @@ 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)
+[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
@@ -679,10 +679,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | reset successful | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | reset successful | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **revertBranch**
@@ -703,7 +703,7 @@ import io.lakefs.clients.api.BranchesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -716,6 +716,10 @@ public class Example {
// 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");
@@ -728,10 +732,6 @@ public class Example {
// 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");
-
BranchesApi apiInstance = new BranchesApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -751,11 +751,11 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
-| **revertCreation** | [**RevertCreation**](RevertCreation.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
+ **revertCreation** | [**RevertCreation**](RevertCreation.md)| |
### Return type
@@ -763,7 +763,7 @@ 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)
+[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
@@ -773,10 +773,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | revert successful | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **409** | Conflict Found | - |
-| **0** | Internal Server Error | - |
+**204** | revert successful | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**409** | Conflict Found | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/CherryPickCreation.md b/clients/java/docs/CherryPickCreation.md
index 9f1300b6bbf..5792d3befed 100644
--- a/clients/java/docs/CherryPickCreation.md
+++ b/clients/java/docs/CherryPickCreation.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**ref** | **String** | the commit to cherry-pick, given by a ref | |
-|**parentNumber** | **Integer** | when cherry-picking a merge commit, the parent number (starting from 1) relative to which to perform the diff. The destination branch is parent 1, which is the default behaviour. | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ref** | **String** | the commit to cherry-pick, given by a ref |
+**parentNumber** | **Integer** | when cherry-picking a merge commit, the parent number (starting from 1) relative to which to perform the diff. The destination branch is parent 1, which is the default behaviour. | [optional]
diff --git a/clients/java/docs/CommPrefsInput.md b/clients/java/docs/CommPrefsInput.md
index db9e6b52bdb..1802f87fcde 100644
--- a/clients/java/docs/CommPrefsInput.md
+++ b/clients/java/docs/CommPrefsInput.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**email** | **String** | the provided email | [optional] |
-|**featureUpdates** | **Boolean** | was \"feature updates\" checked | |
-|**securityUpdates** | **Boolean** | was \"security updates\" checked | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**email** | **String** | the provided email | [optional]
+**featureUpdates** | **Boolean** | was \"feature updates\" checked |
+**securityUpdates** | **Boolean** | was \"security updates\" checked |
diff --git a/clients/java/docs/Commit.md b/clients/java/docs/Commit.md
index 79f0768a3ae..02ac970bd9c 100644
--- a/clients/java/docs/Commit.md
+++ b/clients/java/docs/Commit.md
@@ -5,15 +5,15 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **String** | | |
-|**parents** | **List<String>** | | |
-|**committer** | **String** | | |
-|**message** | **String** | | |
-|**creationDate** | **Long** | Unix Epoch in seconds | |
-|**metaRangeId** | **String** | | |
-|**metadata** | **Map<String, String>** | | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | |
+**parents** | **List<String>** | |
+**committer** | **String** | |
+**message** | **String** | |
+**creationDate** | **Long** | Unix Epoch in seconds |
+**metaRangeId** | **String** | |
+**metadata** | **Map<String, String>** | | [optional]
diff --git a/clients/java/docs/CommitCreation.md b/clients/java/docs/CommitCreation.md
index f55b6812a43..3556070dbd8 100644
--- a/clients/java/docs/CommitCreation.md
+++ b/clients/java/docs/CommitCreation.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**message** | **String** | | |
-|**metadata** | **Map<String, String>** | | [optional] |
-|**date** | **Long** | set date to override creation date in the commit (Unix Epoch in seconds) | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **String** | |
+**metadata** | **Map<String, String>** | | [optional]
+**date** | **Long** | set date to override creation date in the commit (Unix Epoch in seconds) | [optional]
diff --git a/clients/java/docs/CommitList.md b/clients/java/docs/CommitList.md
index ba8ebff8842..746bdbad057 100644
--- a/clients/java/docs/CommitList.md
+++ b/clients/java/docs/CommitList.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**pagination** | [**Pagination**](Pagination.md) | | |
-|**results** | [**List<Commit>**](Commit.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pagination** | [**Pagination**](Pagination.md) | |
+**results** | [**List<Commit>**](Commit.md) | |
diff --git a/clients/java/docs/CommitsApi.md b/clients/java/docs/CommitsApi.md
index e8d15a08af4..69798b80289 100644
--- a/clients/java/docs/CommitsApi.md
+++ b/clients/java/docs/CommitsApi.md
@@ -1,12 +1,12 @@
# CommitsApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**commit**](CommitsApi.md#commit) | **POST** /repositories/{repository}/branches/{branch}/commits | create commit |
-| [**getCommit**](CommitsApi.md#getCommit) | **GET** /repositories/{repository}/commits/{commitId} | get commit |
-| [**logBranchCommits**](CommitsApi.md#logBranchCommits) | **GET** /repositories/{repository}/branches/{branch}/commits | get commit log from branch. Deprecated: replaced by logCommits by passing branch name as ref |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**commit**](CommitsApi.md#commit) | **POST** /repositories/{repository}/branches/{branch}/commits | create commit
+[**getCommit**](CommitsApi.md#getCommit) | **GET** /repositories/{repository}/commits/{commitId} | get commit
+[**logBranchCommits**](CommitsApi.md#logBranchCommits) | **GET** /repositories/{repository}/branches/{branch}/commits | get commit log from branch. Deprecated: replaced by logCommits by passing branch name as ref
@@ -28,7 +28,7 @@ import io.lakefs.clients.api.CommitsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -41,6 +41,10 @@ public class Example {
// 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");
@@ -53,10 +57,6 @@ public class Example {
// 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");
-
CommitsApi apiInstance = new CommitsApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -78,12 +78,12 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
-| **commitCreation** | [**CommitCreation**](CommitCreation.md)| | |
-| **sourceMetarange** | **String**| The source metarange to commit. Branch must not have uncommitted changes. | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
+ **commitCreation** | [**CommitCreation**](CommitCreation.md)| |
+ **sourceMetarange** | **String**| The source metarange to commit. Branch must not have uncommitted changes. | [optional]
### Return type
@@ -91,7 +91,7 @@ public class Example {
### 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)
+[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
@@ -101,13 +101,13 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | commit | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **403** | Forbidden | - |
-| **404** | Resource Not Found | - |
-| **412** | Precondition Failed (e.g. a pre-commit hook returned a failure) | - |
-| **0** | Internal Server Error | - |
+**201** | commit | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**412** | Precondition Failed (e.g. a pre-commit hook returned a failure) | - |
+**0** | Internal Server Error | - |
# **getCommit**
@@ -128,7 +128,7 @@ import io.lakefs.clients.api.CommitsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -141,6 +141,10 @@ public class Example {
// 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");
@@ -153,10 +157,6 @@ public class Example {
// 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");
-
CommitsApi apiInstance = new CommitsApi(defaultClient);
String repository = "repository_example"; // String |
String commitId = "commitId_example"; // String |
@@ -176,10 +176,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **commitId** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **commitId** | **String**| |
### Return type
@@ -187,7 +187,7 @@ public class Example {
### 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)
+[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
@@ -197,10 +197,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | commit | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | commit | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **logBranchCommits**
@@ -221,7 +221,7 @@ import io.lakefs.clients.api.CommitsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -234,6 +234,10 @@ public class Example {
// 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");
@@ -246,10 +250,6 @@ public class Example {
// 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");
-
CommitsApi apiInstance = new CommitsApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -271,12 +271,12 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
-| **after** | **String**| return items after this value | [optional] |
-| **amount** | **Integer**| how many items to return | [optional] [default to 100] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
+ **after** | **String**| return items after this value | [optional]
+ **amount** | **Integer**| how many items to return | [optional] [default to 100]
### Return type
@@ -284,7 +284,7 @@ public class Example {
### 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)
+[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
@@ -294,8 +294,8 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | commit log | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | commit log | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/ConfigApi.md b/clients/java/docs/ConfigApi.md
index d12f4885cf6..47169d3ad5b 100644
--- a/clients/java/docs/ConfigApi.md
+++ b/clients/java/docs/ConfigApi.md
@@ -1,15 +1,15 @@
# ConfigApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**getGarbageCollectionConfig**](ConfigApi.md#getGarbageCollectionConfig) | **GET** /config/garbage-collection | |
-| [**getLakeFSVersion**](ConfigApi.md#getLakeFSVersion) | **GET** /config/version | |
-| [**getSetupState**](ConfigApi.md#getSetupState) | **GET** /setup_lakefs | check if the lakeFS installation is already set up |
-| [**getStorageConfig**](ConfigApi.md#getStorageConfig) | **GET** /config/storage | |
-| [**setup**](ConfigApi.md#setup) | **POST** /setup_lakefs | setup lakeFS and create a first user |
-| [**setupCommPrefs**](ConfigApi.md#setupCommPrefs) | **POST** /setup_comm_prefs | setup communications preferences |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**getGarbageCollectionConfig**](ConfigApi.md#getGarbageCollectionConfig) | **GET** /config/garbage-collection |
+[**getLakeFSVersion**](ConfigApi.md#getLakeFSVersion) | **GET** /config/version |
+[**getSetupState**](ConfigApi.md#getSetupState) | **GET** /setup_lakefs | check if the lakeFS installation is already set up
+[**getStorageConfig**](ConfigApi.md#getStorageConfig) | **GET** /config/storage |
+[**setup**](ConfigApi.md#setup) | **POST** /setup_lakefs | setup lakeFS and create a first user
+[**setupCommPrefs**](ConfigApi.md#setupCommPrefs) | **POST** /setup_comm_prefs | setup communications preferences
@@ -33,7 +33,7 @@ import io.lakefs.clients.api.ConfigApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -46,6 +46,10 @@ public class Example {
// 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");
@@ -58,10 +62,6 @@ public class Example {
// 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");
-
ConfigApi apiInstance = new ConfigApi(defaultClient);
try {
GarbageCollectionConfig result = apiInstance.getGarbageCollectionConfig();
@@ -86,7 +86,7 @@ This endpoint does not need any parameter.
### 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)
+[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
@@ -96,8 +96,8 @@ This endpoint does not need any parameter.
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | lakeFS garbage collection config | - |
-| **401** | Unauthorized | - |
+**200** | lakeFS garbage collection config | - |
+**401** | Unauthorized | - |
# **getLakeFSVersion**
@@ -120,7 +120,7 @@ import io.lakefs.clients.api.ConfigApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -133,6 +133,10 @@ public class Example {
// 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");
@@ -145,10 +149,6 @@ public class Example {
// 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");
-
ConfigApi apiInstance = new ConfigApi(defaultClient);
try {
VersionConfig result = apiInstance.getLakeFSVersion();
@@ -173,7 +173,7 @@ This endpoint does not need any parameter.
### 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)
+[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
@@ -183,8 +183,8 @@ This endpoint does not need any parameter.
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | lakeFS version | - |
-| **401** | Unauthorized | - |
+**200** | lakeFS version | - |
+**401** | Unauthorized | - |
# **getSetupState**
@@ -204,7 +204,7 @@ import io.lakefs.clients.api.ConfigApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
ConfigApi apiInstance = new ConfigApi(defaultClient);
try {
@@ -240,8 +240,8 @@ No authorization required
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | lakeFS setup state | - |
-| **0** | Internal Server Error | - |
+**200** | lakeFS setup state | - |
+**0** | Internal Server Error | - |
# **getStorageConfig**
@@ -264,7 +264,7 @@ import io.lakefs.clients.api.ConfigApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -277,6 +277,10 @@ public class Example {
// 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");
@@ -289,10 +293,6 @@ public class Example {
// 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");
-
ConfigApi apiInstance = new ConfigApi(defaultClient);
try {
StorageConfig result = apiInstance.getStorageConfig();
@@ -317,7 +317,7 @@ This endpoint does not need any parameter.
### 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)
+[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
@@ -327,8 +327,8 @@ This endpoint does not need any parameter.
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | lakeFS storage configuration | - |
-| **401** | Unauthorized | - |
+**200** | lakeFS storage configuration | - |
+**401** | Unauthorized | - |
# **setup**
@@ -348,7 +348,7 @@ import io.lakefs.clients.api.ConfigApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
ConfigApi apiInstance = new ConfigApi(defaultClient);
Setup setup = new Setup(); // Setup |
@@ -368,9 +368,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **setup** | [**Setup**](Setup.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **setup** | [**Setup**](Setup.md)| |
### Return type
@@ -388,10 +388,10 @@ No authorization required
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | user created successfully | - |
-| **400** | bad request | - |
-| **409** | setup was already called | - |
-| **0** | Internal Server Error | - |
+**200** | user created successfully | - |
+**400** | bad request | - |
+**409** | setup was already called | - |
+**0** | Internal Server Error | - |
# **setupCommPrefs**
@@ -411,7 +411,7 @@ import io.lakefs.clients.api.ConfigApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
ConfigApi apiInstance = new ConfigApi(defaultClient);
CommPrefsInput commPrefsInput = new CommPrefsInput(); // CommPrefsInput |
@@ -431,9 +431,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **commPrefsInput** | [**CommPrefsInput**](CommPrefsInput.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **commPrefsInput** | [**CommPrefsInput**](CommPrefsInput.md)| |
### Return type
@@ -451,8 +451,8 @@ No authorization required
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | communication preferences saved successfully | - |
-| **409** | setup was already completed | - |
-| **412** | wrong setup state for this operation | - |
-| **0** | Internal Server Error | - |
+**200** | communication preferences saved successfully | - |
+**409** | setup was already completed | - |
+**412** | wrong setup state for this operation | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/Credentials.md b/clients/java/docs/Credentials.md
index b70bdcb0f94..fe7e7c7cfbd 100644
--- a/clients/java/docs/Credentials.md
+++ b/clients/java/docs/Credentials.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**accessKeyId** | **String** | | |
-|**creationDate** | **Long** | Unix Epoch in seconds | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**accessKeyId** | **String** | |
+**creationDate** | **Long** | Unix Epoch in seconds |
diff --git a/clients/java/docs/CredentialsList.md b/clients/java/docs/CredentialsList.md
index 0b15a1e05c7..cf87d215c42 100644
--- a/clients/java/docs/CredentialsList.md
+++ b/clients/java/docs/CredentialsList.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**pagination** | [**Pagination**](Pagination.md) | | |
-|**results** | [**List<Credentials>**](Credentials.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pagination** | [**Pagination**](Pagination.md) | |
+**results** | [**List<Credentials>**](Credentials.md) | |
diff --git a/clients/java/docs/CredentialsWithSecret.md b/clients/java/docs/CredentialsWithSecret.md
index c1267688eee..82e9b89c207 100644
--- a/clients/java/docs/CredentialsWithSecret.md
+++ b/clients/java/docs/CredentialsWithSecret.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**accessKeyId** | **String** | | |
-|**secretAccessKey** | **String** | | |
-|**creationDate** | **Long** | Unix Epoch in seconds | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**accessKeyId** | **String** | |
+**secretAccessKey** | **String** | |
+**creationDate** | **Long** | Unix Epoch in seconds |
diff --git a/clients/java/docs/CurrentUser.md b/clients/java/docs/CurrentUser.md
index e4acbdd3209..0c0af81ddfe 100644
--- a/clients/java/docs/CurrentUser.md
+++ b/clients/java/docs/CurrentUser.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**user** | [**User**](User.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**user** | [**User**](User.md) | |
diff --git a/clients/java/docs/DeleteBranchProtectionRuleRequest.md b/clients/java/docs/DeleteBranchProtectionRuleRequest.md
deleted file mode 100644
index 66309d43385..00000000000
--- a/clients/java/docs/DeleteBranchProtectionRuleRequest.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-# DeleteBranchProtectionRuleRequest
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**pattern** | **String** | | |
-
-
-
diff --git a/clients/java/docs/Diff.md b/clients/java/docs/Diff.md
index 7307d49bd3b..640d51ba54f 100644
--- a/clients/java/docs/Diff.md
+++ b/clients/java/docs/Diff.md
@@ -5,33 +5,33 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**type** | [**TypeEnum**](#TypeEnum) | | |
-|**path** | **String** | | |
-|**pathType** | [**PathTypeEnum**](#PathTypeEnum) | | |
-|**sizeBytes** | **Long** | represents the size of the added/changed/deleted entry | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | [**TypeEnum**](#TypeEnum) | |
+**path** | **String** | |
+**pathType** | [**PathTypeEnum**](#PathTypeEnum) | |
+**sizeBytes** | **Long** | represents the size of the added/changed/deleted entry | [optional]
## Enum: TypeEnum
-| Name | Value |
-|---- | -----|
-| ADDED | "added" |
-| REMOVED | "removed" |
-| CHANGED | "changed" |
-| CONFLICT | "conflict" |
-| PREFIX_CHANGED | "prefix_changed" |
+Name | Value
+---- | -----
+ADDED | "added"
+REMOVED | "removed"
+CHANGED | "changed"
+CONFLICT | "conflict"
+PREFIX_CHANGED | "prefix_changed"
## Enum: PathTypeEnum
-| Name | Value |
-|---- | -----|
-| COMMON_PREFIX | "common_prefix" |
-| OBJECT | "object" |
+Name | Value
+---- | -----
+COMMON_PREFIX | "common_prefix"
+OBJECT | "object"
diff --git a/clients/java/docs/DiffList.md b/clients/java/docs/DiffList.md
index ca2790cb316..17f99dedfa2 100644
--- a/clients/java/docs/DiffList.md
+++ b/clients/java/docs/DiffList.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**pagination** | [**Pagination**](Pagination.md) | | |
-|**results** | [**List<Diff>**](Diff.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pagination** | [**Pagination**](Pagination.md) | |
+**results** | [**List<Diff>**](Diff.md) | |
diff --git a/clients/java/docs/Error.md b/clients/java/docs/Error.md
index 19e017d4da1..996ecb91cbc 100644
--- a/clients/java/docs/Error.md
+++ b/clients/java/docs/Error.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**message** | **String** | short message explaining the error | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **String** | short message explaining the error |
diff --git a/clients/java/docs/ExperimentalApi.md b/clients/java/docs/ExperimentalApi.md
index 087b24e4530..a1c7dc3e453 100644
--- a/clients/java/docs/ExperimentalApi.md
+++ b/clients/java/docs/ExperimentalApi.md
@@ -1,10 +1,10 @@
# ExperimentalApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**otfDiff**](ExperimentalApi.md#otfDiff) | **GET** /repositories/{repository}/otf/refs/{left_ref}/diff/{right_ref} | perform otf diff |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**otfDiff**](ExperimentalApi.md#otfDiff) | **GET** /repositories/{repository}/otf/refs/{left_ref}/diff/{right_ref} | perform otf diff
@@ -26,7 +26,7 @@ import io.lakefs.clients.api.ExperimentalApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -39,6 +39,10 @@ public class Example {
// 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");
@@ -51,10 +55,6 @@ public class Example {
// 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 leftRef = "leftRef_example"; // String |
@@ -77,13 +77,13 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **leftRef** | **String**| | |
-| **rightRef** | **String**| | |
-| **tablePath** | **String**| a path to the table location under the specified ref. | |
-| **type** | **String**| the type of otf | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **leftRef** | **String**| |
+ **rightRef** | **String**| |
+ **tablePath** | **String**| a path to the table location under the specified ref. |
+ **type** | **String**| the type of otf |
### Return type
@@ -91,7 +91,7 @@ public class Example {
### 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)
+[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
@@ -101,9 +101,9 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | diff list | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **412** | Precondition Failed | - |
-| **0** | Internal Server Error | - |
+**200** | diff list | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**412** | Precondition Failed | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/FindMergeBaseResult.md b/clients/java/docs/FindMergeBaseResult.md
index b265d13f6f9..227aeb19c3b 100644
--- a/clients/java/docs/FindMergeBaseResult.md
+++ b/clients/java/docs/FindMergeBaseResult.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**sourceCommitId** | **String** | The commit ID of the merge source | |
-|**destinationCommitId** | **String** | The commit ID of the merge destination | |
-|**baseCommitId** | **String** | The commit ID of the merge base | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**sourceCommitId** | **String** | The commit ID of the merge source |
+**destinationCommitId** | **String** | The commit ID of the merge destination |
+**baseCommitId** | **String** | The commit ID of the merge base |
diff --git a/clients/java/docs/ForgotPasswordRequest.md b/clients/java/docs/ForgotPasswordRequest.md
index 2d040fb84b6..075dbc408d0 100644
--- a/clients/java/docs/ForgotPasswordRequest.md
+++ b/clients/java/docs/ForgotPasswordRequest.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**email** | **String** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**email** | **String** | |
diff --git a/clients/java/docs/GarbageCollectionConfig.md b/clients/java/docs/GarbageCollectionConfig.md
index 478c69aef74..bca9ecf343c 100644
--- a/clients/java/docs/GarbageCollectionConfig.md
+++ b/clients/java/docs/GarbageCollectionConfig.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**gracePeriod** | **Integer** | Duration in seconds. Objects created in the recent grace_period will not be collected. | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**gracePeriod** | **Integer** | Duration in seconds. Objects created in the recent grace_period will not be collected. | [optional]
diff --git a/clients/java/docs/GarbageCollectionPrepareRequest.md b/clients/java/docs/GarbageCollectionPrepareRequest.md
index 671a6741752..2b1d232528f 100644
--- a/clients/java/docs/GarbageCollectionPrepareRequest.md
+++ b/clients/java/docs/GarbageCollectionPrepareRequest.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**previousRunId** | **String** | run id of a previous successful GC job | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**previousRunId** | **String** | run id of a previous successful GC job | [optional]
diff --git a/clients/java/docs/GarbageCollectionPrepareResponse.md b/clients/java/docs/GarbageCollectionPrepareResponse.md
index c7c59b98a1e..d0747fd6319 100644
--- a/clients/java/docs/GarbageCollectionPrepareResponse.md
+++ b/clients/java/docs/GarbageCollectionPrepareResponse.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**runId** | **String** | a unique identifier generated for this GC job | |
-|**gcCommitsLocation** | **String** | location of the resulting commits csv table (partitioned by run_id) | |
-|**gcAddressesLocation** | **String** | location to use for expired addresses parquet table (partitioned by run_id) | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**runId** | **String** | a unique identifier generated for this GC job |
+**gcCommitsLocation** | **String** | location of the resulting commits csv table (partitioned by run_id) |
+**gcAddressesLocation** | **String** | location to use for expired addresses parquet table (partitioned by run_id) |
diff --git a/clients/java/docs/GarbageCollectionRule.md b/clients/java/docs/GarbageCollectionRule.md
index 537149933be..8d71ee5936b 100644
--- a/clients/java/docs/GarbageCollectionRule.md
+++ b/clients/java/docs/GarbageCollectionRule.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**branchId** | **String** | | |
-|**retentionDays** | **Integer** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**branchId** | **String** | |
+**retentionDays** | **Integer** | |
diff --git a/clients/java/docs/GarbageCollectionRules.md b/clients/java/docs/GarbageCollectionRules.md
index 8f2ae001f53..47241dd588f 100644
--- a/clients/java/docs/GarbageCollectionRules.md
+++ b/clients/java/docs/GarbageCollectionRules.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**defaultRetentionDays** | **Integer** | | |
-|**branches** | [**List<GarbageCollectionRule>**](GarbageCollectionRule.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**defaultRetentionDays** | **Integer** | |
+**branches** | [**List<GarbageCollectionRule>**](GarbageCollectionRule.md) | |
diff --git a/clients/java/docs/Group.md b/clients/java/docs/Group.md
index 82d59ba511c..c3c0f61f329 100644
--- a/clients/java/docs/Group.md
+++ b/clients/java/docs/Group.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **String** | | |
-|**creationDate** | **Long** | Unix Epoch in seconds | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | |
+**creationDate** | **Long** | Unix Epoch in seconds |
diff --git a/clients/java/docs/GroupCreation.md b/clients/java/docs/GroupCreation.md
index 99f30ee35b4..aa708281470 100644
--- a/clients/java/docs/GroupCreation.md
+++ b/clients/java/docs/GroupCreation.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **String** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | |
diff --git a/clients/java/docs/GroupList.md b/clients/java/docs/GroupList.md
index e476e24854d..ec0135a5d27 100644
--- a/clients/java/docs/GroupList.md
+++ b/clients/java/docs/GroupList.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**pagination** | [**Pagination**](Pagination.md) | | |
-|**results** | [**List<Group>**](Group.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pagination** | [**Pagination**](Pagination.md) | |
+**results** | [**List<Group>**](Group.md) | |
diff --git a/clients/java/docs/HealthCheckApi.md b/clients/java/docs/HealthCheckApi.md
index b1064912da9..a2fb177f41f 100644
--- a/clients/java/docs/HealthCheckApi.md
+++ b/clients/java/docs/HealthCheckApi.md
@@ -1,10 +1,10 @@
# HealthCheckApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**healthCheck**](HealthCheckApi.md#healthCheck) | **GET** /healthcheck | |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**healthCheck**](HealthCheckApi.md#healthCheck) | **GET** /healthcheck |
@@ -27,7 +27,7 @@ import io.lakefs.clients.api.HealthCheckApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
HealthCheckApi apiInstance = new HealthCheckApi(defaultClient);
try {
@@ -62,5 +62,5 @@ No authorization required
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | NoContent | - |
+**204** | NoContent | - |
diff --git a/clients/java/docs/HookRun.md b/clients/java/docs/HookRun.md
index eb9fa727b7d..9f046a5a807 100644
--- a/clients/java/docs/HookRun.md
+++ b/clients/java/docs/HookRun.md
@@ -5,23 +5,23 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**hookRunId** | **String** | | |
-|**action** | **String** | | |
-|**hookId** | **String** | | |
-|**startTime** | **OffsetDateTime** | | |
-|**endTime** | **OffsetDateTime** | | [optional] |
-|**status** | [**StatusEnum**](#StatusEnum) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**hookRunId** | **String** | |
+**action** | **String** | |
+**hookId** | **String** | |
+**startTime** | **OffsetDateTime** | |
+**endTime** | **OffsetDateTime** | | [optional]
+**status** | [**StatusEnum**](#StatusEnum) | |
## Enum: StatusEnum
-| Name | Value |
-|---- | -----|
-| FAILED | "failed" |
-| COMPLETED | "completed" |
+Name | Value
+---- | -----
+FAILED | "failed"
+COMPLETED | "completed"
diff --git a/clients/java/docs/HookRunList.md b/clients/java/docs/HookRunList.md
index 26d17c92323..ee78cfec604 100644
--- a/clients/java/docs/HookRunList.md
+++ b/clients/java/docs/HookRunList.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**pagination** | [**Pagination**](Pagination.md) | | |
-|**results** | [**List<HookRun>**](HookRun.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pagination** | [**Pagination**](Pagination.md) | |
+**results** | [**List<HookRun>**](HookRun.md) | |
diff --git a/clients/java/docs/ImportApi.md b/clients/java/docs/ImportApi.md
index 8cc8e6065ef..3872f20c43d 100644
--- a/clients/java/docs/ImportApi.md
+++ b/clients/java/docs/ImportApi.md
@@ -1,11 +1,11 @@
# ImportApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**createMetaRange**](ImportApi.md#createMetaRange) | **POST** /repositories/{repository}/branches/metaranges | create a lakeFS metarange file from the given ranges |
-| [**ingestRange**](ImportApi.md#ingestRange) | **POST** /repositories/{repository}/branches/ranges | create a lakeFS range file from the source uri |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**createMetaRange**](ImportApi.md#createMetaRange) | **POST** /repositories/{repository}/branches/metaranges | create a lakeFS metarange file from the given ranges
+[**ingestRange**](ImportApi.md#ingestRange) | **POST** /repositories/{repository}/branches/ranges | create a lakeFS range file from the source uri
@@ -27,7 +27,7 @@ import io.lakefs.clients.api.ImportApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -40,6 +40,10 @@ public class Example {
// 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");
@@ -52,10 +56,6 @@ public class Example {
// 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");
-
ImportApi apiInstance = new ImportApi(defaultClient);
String repository = "repository_example"; // String |
MetaRangeCreation metaRangeCreation = new MetaRangeCreation(); // MetaRangeCreation |
@@ -75,10 +75,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **metaRangeCreation** | [**MetaRangeCreation**](MetaRangeCreation.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **metaRangeCreation** | [**MetaRangeCreation**](MetaRangeCreation.md)| |
### Return type
@@ -86,7 +86,7 @@ public class Example {
### 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)
+[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
@@ -96,12 +96,12 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | metarange metadata | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **403** | Forbidden | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**201** | metarange metadata | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **ingestRange**
@@ -122,7 +122,7 @@ import io.lakefs.clients.api.ImportApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -135,6 +135,10 @@ public class Example {
// 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");
@@ -147,10 +151,6 @@ public class Example {
// 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");
-
ImportApi apiInstance = new ImportApi(defaultClient);
String repository = "repository_example"; // String |
StageRangeCreation stageRangeCreation = new StageRangeCreation(); // StageRangeCreation |
@@ -170,10 +170,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **stageRangeCreation** | [**StageRangeCreation**](StageRangeCreation.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **stageRangeCreation** | [**StageRangeCreation**](StageRangeCreation.md)| |
### Return type
@@ -181,7 +181,7 @@ public class Example {
### 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)
+[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
@@ -191,9 +191,9 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | range metadata | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**201** | range metadata | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/ImportPagination.md b/clients/java/docs/ImportPagination.md
index 23b73336449..6599dc25ad8 100644
--- a/clients/java/docs/ImportPagination.md
+++ b/clients/java/docs/ImportPagination.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**hasMore** | **Boolean** | More keys to be ingested. | |
-|**continuationToken** | **String** | Opaque. Token used to import the next range. | [optional] |
-|**lastKey** | **String** | Last object store key that was ingested. | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**hasMore** | **Boolean** | More keys to be ingested. |
+**continuationToken** | **String** | Opaque. Token used to import the next range. | [optional]
+**lastKey** | **String** | Last object store key that was ingested. |
diff --git a/clients/java/docs/IngestRangeCreationResponse.md b/clients/java/docs/IngestRangeCreationResponse.md
index 883fe280be1..b55853a2f01 100644
--- a/clients/java/docs/IngestRangeCreationResponse.md
+++ b/clients/java/docs/IngestRangeCreationResponse.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**range** | [**RangeMetadata**](RangeMetadata.md) | | [optional] |
-|**pagination** | [**ImportPagination**](ImportPagination.md) | | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**range** | [**RangeMetadata**](RangeMetadata.md) | | [optional]
+**pagination** | [**ImportPagination**](ImportPagination.md) | | [optional]
diff --git a/clients/java/docs/InlineObject1.md b/clients/java/docs/InlineObject1.md
new file mode 100644
index 00000000000..c9050558572
--- /dev/null
+++ b/clients/java/docs/InlineObject1.md
@@ -0,0 +1,13 @@
+
+
+# InlineObject1
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pattern** | **String** | |
+
+
+
diff --git a/clients/java/docs/LoginConfig.md b/clients/java/docs/LoginConfig.md
index 6a9da45cdad..ee91a722819 100644
--- a/clients/java/docs/LoginConfig.md
+++ b/clients/java/docs/LoginConfig.md
@@ -5,24 +5,24 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**RBAC** | [**RBACEnum**](#RBACEnum) | RBAC will remain enabled on GUI if \"external\". That only works with an external auth service. | [optional] |
-|**loginUrl** | **String** | primary URL to use for login. | |
-|**loginFailedMessage** | **String** | message to display to users who fail to login; a full sentence that is rendered in HTML and may contain a link to a secondary login method | [optional] |
-|**fallbackLoginUrl** | **String** | secondary URL to offer users to use for login. | [optional] |
-|**fallbackLoginLabel** | **String** | label to place on fallback_login_url. | [optional] |
-|**loginCookieNames** | **List<String>** | cookie names used to store JWT | |
-|**logoutUrl** | **String** | URL to use for logging out. | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**RBAC** | [**RBACEnum**](#RBACEnum) | RBAC will remain enabled on GUI if \"external\". That only works with an external auth service. | [optional]
+**loginUrl** | **String** | primary URL to use for login. |
+**loginFailedMessage** | **String** | message to display to users who fail to login; a full sentence that is rendered in HTML and may contain a link to a secondary login method | [optional]
+**fallbackLoginUrl** | **String** | secondary URL to offer users to use for login. | [optional]
+**fallbackLoginLabel** | **String** | label to place on fallback_login_url. | [optional]
+**loginCookieNames** | **List<String>** | cookie names used to store JWT |
+**logoutUrl** | **String** | URL to use for logging out. |
## Enum: RBACEnum
-| Name | Value |
-|---- | -----|
-| SIMPLIFIED | "simplified" |
-| EXTERNAL | "external" |
+Name | Value
+---- | -----
+SIMPLIFIED | "simplified"
+EXTERNAL | "external"
diff --git a/clients/java/docs/LoginInformation.md b/clients/java/docs/LoginInformation.md
index c99261b2ec6..2e7005e504a 100644
--- a/clients/java/docs/LoginInformation.md
+++ b/clients/java/docs/LoginInformation.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**accessKeyId** | **String** | | |
-|**secretAccessKey** | **String** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**accessKeyId** | **String** | |
+**secretAccessKey** | **String** | |
diff --git a/clients/java/docs/Merge.md b/clients/java/docs/Merge.md
index e10a6da187b..7d295da0bbd 100644
--- a/clients/java/docs/Merge.md
+++ b/clients/java/docs/Merge.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**message** | **String** | | [optional] |
-|**metadata** | **Map<String, String>** | | [optional] |
-|**strategy** | **String** | In case of a merge conflict, this option will force the merge process to automatically favor changes from the dest branch ('dest-wins') or from the source branch('source-wins'). In case no selection is made, the merge process will fail in case of a conflict | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **String** | | [optional]
+**metadata** | **Map<String, String>** | | [optional]
+**strategy** | **String** | In case of a merge conflict, this option will force the merge process to automatically favor changes from the dest branch ('dest-wins') or from the source branch('source-wins'). In case no selection is made, the merge process will fail in case of a conflict | [optional]
diff --git a/clients/java/docs/MergeResult.md b/clients/java/docs/MergeResult.md
index 8eb6bca7eac..fa373ad68e2 100644
--- a/clients/java/docs/MergeResult.md
+++ b/clients/java/docs/MergeResult.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**summary** | [**MergeResultSummary**](MergeResultSummary.md) | | [optional] |
-|**reference** | **String** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**summary** | [**MergeResultSummary**](MergeResultSummary.md) | | [optional]
+**reference** | **String** | |
diff --git a/clients/java/docs/MergeResultSummary.md b/clients/java/docs/MergeResultSummary.md
index 78c9d6bbf15..a955430b65f 100644
--- a/clients/java/docs/MergeResultSummary.md
+++ b/clients/java/docs/MergeResultSummary.md
@@ -5,12 +5,12 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**added** | **Integer** | Deprecated: inaccurate and will be removed. | [optional] |
-|**removed** | **Integer** | Deprecated: inaccurate and will be removed. | [optional] |
-|**changed** | **Integer** | Deprecated: inaccurate and will be removed. | [optional] |
-|**conflict** | **Integer** | Deprecated: inaccurate and will be removed. | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**added** | **Integer** | Deprecated: inaccurate and will be removed. | [optional]
+**removed** | **Integer** | Deprecated: inaccurate and will be removed. | [optional]
+**changed** | **Integer** | Deprecated: inaccurate and will be removed. | [optional]
+**conflict** | **Integer** | Deprecated: inaccurate and will be removed. | [optional]
diff --git a/clients/java/docs/MetaRangeCreation.md b/clients/java/docs/MetaRangeCreation.md
index 487594447f3..c80331077ac 100644
--- a/clients/java/docs/MetaRangeCreation.md
+++ b/clients/java/docs/MetaRangeCreation.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**ranges** | [**List<RangeMetadata>**](RangeMetadata.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ranges** | [**List<RangeMetadata>**](RangeMetadata.md) | |
diff --git a/clients/java/docs/MetaRangeCreationResponse.md b/clients/java/docs/MetaRangeCreationResponse.md
index ea264f87c47..7480032cb74 100644
--- a/clients/java/docs/MetaRangeCreationResponse.md
+++ b/clients/java/docs/MetaRangeCreationResponse.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **String** | The id of the created metarange | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | The id of the created metarange | [optional]
diff --git a/clients/java/docs/MetadataApi.md b/clients/java/docs/MetadataApi.md
index 48686efffc6..d9f666f7c27 100644
--- a/clients/java/docs/MetadataApi.md
+++ b/clients/java/docs/MetadataApi.md
@@ -1,12 +1,12 @@
# MetadataApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**createSymlinkFile**](MetadataApi.md#createSymlinkFile) | **POST** /repositories/{repository}/refs/{branch}/symlink | creates symlink files corresponding to the given directory |
-| [**getMetaRange**](MetadataApi.md#getMetaRange) | **GET** /repositories/{repository}/metadata/meta_range/{meta_range} | return URI to a meta-range file |
-| [**getRange**](MetadataApi.md#getRange) | **GET** /repositories/{repository}/metadata/range/{range} | return URI to a range file |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**createSymlinkFile**](MetadataApi.md#createSymlinkFile) | **POST** /repositories/{repository}/refs/{branch}/symlink | creates symlink files corresponding to the given directory
+[**getMetaRange**](MetadataApi.md#getMetaRange) | **GET** /repositories/{repository}/metadata/meta_range/{meta_range} | return URI to a meta-range file
+[**getRange**](MetadataApi.md#getRange) | **GET** /repositories/{repository}/metadata/range/{range} | return URI to a range file
@@ -28,7 +28,7 @@ import io.lakefs.clients.api.MetadataApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -41,6 +41,10 @@ public class Example {
// 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");
@@ -53,10 +57,6 @@ public class Example {
// 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");
-
MetadataApi apiInstance = new MetadataApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -77,11 +77,11 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
-| **location** | **String**| path to the table data | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
+ **location** | **String**| path to the table data | [optional]
### Return type
@@ -89,7 +89,7 @@ public class Example {
### 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)
+[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
@@ -99,10 +99,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | location created | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**201** | location created | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **getMetaRange**
@@ -123,7 +123,7 @@ import io.lakefs.clients.api.MetadataApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -136,6 +136,10 @@ public class Example {
// 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");
@@ -148,10 +152,6 @@ public class Example {
// 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");
-
MetadataApi apiInstance = new MetadataApi(defaultClient);
String repository = "repository_example"; // String |
String metaRange = "metaRange_example"; // String |
@@ -171,10 +171,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **metaRange** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **metaRange** | **String**| |
### Return type
@@ -182,7 +182,7 @@ public class Example {
### 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)
+[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
@@ -192,10 +192,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | meta-range URI | * Location - redirect to S3
|
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | meta-range URI | * Location - redirect to S3
|
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **getRange**
@@ -216,7 +216,7 @@ import io.lakefs.clients.api.MetadataApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -229,6 +229,10 @@ public class Example {
// 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");
@@ -241,10 +245,6 @@ public class Example {
// 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");
-
MetadataApi apiInstance = new MetadataApi(defaultClient);
String repository = "repository_example"; // String |
String range = "range_example"; // String |
@@ -264,10 +264,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **range** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **range** | **String**| |
### Return type
@@ -275,7 +275,7 @@ public class Example {
### 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)
+[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
@@ -285,8 +285,8 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | range URI | * Location - redirect to S3
|
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | range URI | * Location - redirect to S3
|
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/NextStep.md b/clients/java/docs/NextStep.md
index 7af7ef9343a..aa37734b267 100644
--- a/clients/java/docs/NextStep.md
+++ b/clients/java/docs/NextStep.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**nextStep** | **String** | the next step in the setup process | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**nextStep** | **String** | the next step in the setup process |
diff --git a/clients/java/docs/ObjectCopyCreation.md b/clients/java/docs/ObjectCopyCreation.md
index 719665bd901..ac3b35ed570 100644
--- a/clients/java/docs/ObjectCopyCreation.md
+++ b/clients/java/docs/ObjectCopyCreation.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**srcPath** | **String** | path of the copied object relative to the ref | |
-|**srcRef** | **String** | a reference, if empty uses the provided branch as ref | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**srcPath** | **String** | path of the copied object relative to the ref |
+**srcRef** | **String** | a reference, if empty uses the provided branch as ref | [optional]
diff --git a/clients/java/docs/ObjectError.md b/clients/java/docs/ObjectError.md
index e29a2ab78c8..9f31da2bc2d 100644
--- a/clients/java/docs/ObjectError.md
+++ b/clients/java/docs/ObjectError.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**statusCode** | **Integer** | HTTP status code associated for operation on path | |
-|**message** | **String** | short message explaining status_code | |
-|**path** | **String** | affected path | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**statusCode** | **Integer** | HTTP status code associated for operation on path |
+**message** | **String** | short message explaining status_code |
+**path** | **String** | affected path | [optional]
diff --git a/clients/java/docs/ObjectErrorList.md b/clients/java/docs/ObjectErrorList.md
index d3b98778866..f94202ec3b5 100644
--- a/clients/java/docs/ObjectErrorList.md
+++ b/clients/java/docs/ObjectErrorList.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**errors** | [**List<ObjectError>**](ObjectError.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**errors** | [**List<ObjectError>**](ObjectError.md) | |
diff --git a/clients/java/docs/ObjectStageCreation.md b/clients/java/docs/ObjectStageCreation.md
index b372d839452..3a0e1cfd15d 100644
--- a/clients/java/docs/ObjectStageCreation.md
+++ b/clients/java/docs/ObjectStageCreation.md
@@ -5,14 +5,14 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**physicalAddress** | **String** | | |
-|**checksum** | **String** | | |
-|**sizeBytes** | **Long** | | |
-|**mtime** | **Long** | Unix Epoch in seconds | [optional] |
-|**metadata** | **Map<String, String>** | | [optional] |
-|**contentType** | **String** | Object media type | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**physicalAddress** | **String** | |
+**checksum** | **String** | |
+**sizeBytes** | **Long** | |
+**mtime** | **Long** | Unix Epoch in seconds | [optional]
+**metadata** | **Map<String, String>** | | [optional]
+**contentType** | **String** | Object media type | [optional]
diff --git a/clients/java/docs/ObjectStats.md b/clients/java/docs/ObjectStats.md
index 8f892ea179d..5b2f31861fc 100644
--- a/clients/java/docs/ObjectStats.md
+++ b/clients/java/docs/ObjectStats.md
@@ -5,25 +5,25 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**path** | **String** | | |
-|**pathType** | [**PathTypeEnum**](#PathTypeEnum) | | |
-|**physicalAddress** | **String** | The location of the object on the underlying object store. Formatted as a native URI with the object store type as scheme (\"s3://...\", \"gs://...\", etc.) Or, in the case of presign=true, will be an HTTP URL to be consumed via regular HTTP GET | |
-|**checksum** | **String** | | |
-|**sizeBytes** | **Long** | | [optional] |
-|**mtime** | **Long** | Unix Epoch in seconds | |
-|**metadata** | **Map<String, String>** | | [optional] |
-|**contentType** | **String** | Object media type | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**path** | **String** | |
+**pathType** | [**PathTypeEnum**](#PathTypeEnum) | |
+**physicalAddress** | **String** | The location of the object on the underlying object store. Formatted as a native URI with the object store type as scheme (\"s3://...\", \"gs://...\", etc.) Or, in the case of presign=true, will be an HTTP URL to be consumed via regular HTTP GET |
+**checksum** | **String** | |
+**sizeBytes** | **Long** | | [optional]
+**mtime** | **Long** | Unix Epoch in seconds |
+**metadata** | **Map<String, String>** | | [optional]
+**contentType** | **String** | Object media type | [optional]
## Enum: PathTypeEnum
-| Name | Value |
-|---- | -----|
-| COMMON_PREFIX | "common_prefix" |
-| OBJECT | "object" |
+Name | Value
+---- | -----
+COMMON_PREFIX | "common_prefix"
+OBJECT | "object"
diff --git a/clients/java/docs/ObjectStatsList.md b/clients/java/docs/ObjectStatsList.md
index f5914baf1fc..7db300499db 100644
--- a/clients/java/docs/ObjectStatsList.md
+++ b/clients/java/docs/ObjectStatsList.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**pagination** | [**Pagination**](Pagination.md) | | |
-|**results** | [**List<ObjectStats>**](ObjectStats.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pagination** | [**Pagination**](Pagination.md) | |
+**results** | [**List<ObjectStats>**](ObjectStats.md) | |
diff --git a/clients/java/docs/ObjectsApi.md b/clients/java/docs/ObjectsApi.md
index 39dc619ff78..db084fea89a 100644
--- a/clients/java/docs/ObjectsApi.md
+++ b/clients/java/docs/ObjectsApi.md
@@ -1,19 +1,19 @@
# ObjectsApi
-All URIs are relative to */api/v1*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**copyObject**](ObjectsApi.md#copyObject) | **POST** /repositories/{repository}/branches/{branch}/objects/copy | create a copy of an object |
-| [**deleteObject**](ObjectsApi.md#deleteObject) | **DELETE** /repositories/{repository}/branches/{branch}/objects | delete object. Missing objects will not return a NotFound error. |
-| [**deleteObjects**](ObjectsApi.md#deleteObjects) | **POST** /repositories/{repository}/branches/{branch}/objects/delete | delete objects. Missing objects will not return a NotFound error. |
-| [**getObject**](ObjectsApi.md#getObject) | **GET** /repositories/{repository}/refs/{ref}/objects | get object content |
-| [**getUnderlyingProperties**](ObjectsApi.md#getUnderlyingProperties) | **GET** /repositories/{repository}/refs/{ref}/objects/underlyingProperties | get object properties on underlying storage |
-| [**headObject**](ObjectsApi.md#headObject) | **HEAD** /repositories/{repository}/refs/{ref}/objects | check if object exists |
-| [**listObjects**](ObjectsApi.md#listObjects) | **GET** /repositories/{repository}/refs/{ref}/objects/ls | list objects under a given prefix |
-| [**stageObject**](ObjectsApi.md#stageObject) | **PUT** /repositories/{repository}/branches/{branch}/objects | stage an object's metadata for the given branch |
-| [**statObject**](ObjectsApi.md#statObject) | **GET** /repositories/{repository}/refs/{ref}/objects/stat | get object metadata |
-| [**uploadObject**](ObjectsApi.md#uploadObject) | **POST** /repositories/{repository}/branches/{branch}/objects | |
+All URIs are relative to *http://localhost/api/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**copyObject**](ObjectsApi.md#copyObject) | **POST** /repositories/{repository}/branches/{branch}/objects/copy | create a copy of an object
+[**deleteObject**](ObjectsApi.md#deleteObject) | **DELETE** /repositories/{repository}/branches/{branch}/objects | delete object. Missing objects will not return a NotFound error.
+[**deleteObjects**](ObjectsApi.md#deleteObjects) | **POST** /repositories/{repository}/branches/{branch}/objects/delete | delete objects. Missing objects will not return a NotFound error.
+[**getObject**](ObjectsApi.md#getObject) | **GET** /repositories/{repository}/refs/{ref}/objects | get object content
+[**getUnderlyingProperties**](ObjectsApi.md#getUnderlyingProperties) | **GET** /repositories/{repository}/refs/{ref}/objects/underlyingProperties | get object properties on underlying storage
+[**headObject**](ObjectsApi.md#headObject) | **HEAD** /repositories/{repository}/refs/{ref}/objects | check if object exists
+[**listObjects**](ObjectsApi.md#listObjects) | **GET** /repositories/{repository}/refs/{ref}/objects/ls | list objects under a given prefix
+[**stageObject**](ObjectsApi.md#stageObject) | **PUT** /repositories/{repository}/branches/{branch}/objects | stage an object's metadata for the given branch
+[**statObject**](ObjectsApi.md#statObject) | **GET** /repositories/{repository}/refs/{ref}/objects/stat | get object metadata
+[**uploadObject**](ObjectsApi.md#uploadObject) | **POST** /repositories/{repository}/branches/{branch}/objects |
@@ -35,7 +35,7 @@ import io.lakefs.clients.api.ObjectsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -48,6 +48,10 @@ public class Example {
// 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");
@@ -60,10 +64,6 @@ public class Example {
// 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");
-
ObjectsApi apiInstance = new ObjectsApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String | destination branch for the copy
@@ -85,12 +85,12 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| destination branch for the copy | |
-| **destPath** | **String**| destination path relative to the branch | |
-| **objectCopyCreation** | [**ObjectCopyCreation**](ObjectCopyCreation.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| destination branch for the copy |
+ **destPath** | **String**| destination path relative to the branch |
+ **objectCopyCreation** | [**ObjectCopyCreation**](ObjectCopyCreation.md)| |
### Return type
@@ -98,7 +98,7 @@ public class Example {
### 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)
+[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
@@ -108,11 +108,11 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | Copy object response | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**201** | Copy object response | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **deleteObject**
@@ -133,7 +133,7 @@ import io.lakefs.clients.api.ObjectsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -146,6 +146,10 @@ public class Example {
// 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");
@@ -158,10 +162,6 @@ public class Example {
// 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");
-
ObjectsApi apiInstance = new ObjectsApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -181,11 +181,11 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
-| **path** | **String**| relative to the branch | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
+ **path** | **String**| relative to the branch |
### Return type
@@ -193,7 +193,7 @@ 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)
+[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
@@ -203,11 +203,11 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | object deleted successfully | - |
-| **401** | Unauthorized | - |
-| **403** | Forbidden | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | object deleted successfully | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **deleteObjects**
@@ -228,7 +228,7 @@ import io.lakefs.clients.api.ObjectsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -241,6 +241,10 @@ public class Example {
// 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");
@@ -253,10 +257,6 @@ public class Example {
// 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");
-
ObjectsApi apiInstance = new ObjectsApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -277,11 +277,11 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
-| **pathList** | [**PathList**](PathList.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
+ **pathList** | [**PathList**](PathList.md)| |
### Return type
@@ -289,7 +289,7 @@ public class Example {
### 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)
+[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
@@ -299,11 +299,11 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | Delete objects response | - |
-| **401** | Unauthorized | - |
-| **403** | Forbidden | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | Delete objects response | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **getObject**
@@ -324,7 +324,7 @@ import io.lakefs.clients.api.ObjectsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -337,6 +337,10 @@ public class Example {
// 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");
@@ -349,10 +353,6 @@ public class Example {
// 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");
-
ObjectsApi apiInstance = new ObjectsApi(defaultClient);
String repository = "repository_example"; // String |
String ref = "ref_example"; // String | a reference (could be either a branch or a commit ID)
@@ -375,13 +375,13 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **ref** | **String**| a reference (could be either a branch or a commit ID) | |
-| **path** | **String**| relative to the ref | |
-| **range** | **String**| Byte range to retrieve | [optional] |
-| **presign** | **Boolean**| | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **ref** | **String**| a reference (could be either a branch or a commit ID) |
+ **path** | **String**| relative to the ref |
+ **range** | **String**| Byte range to retrieve | [optional]
+ **presign** | **Boolean**| | [optional]
### Return type
@@ -389,7 +389,7 @@ public class Example {
### 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)
+[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
@@ -399,14 +399,14 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | object content | * Content-Length -
* Last-Modified -
* ETag -
|
-| **206** | partial object content | * Content-Length -
* Content-Range -
* Last-Modified -
* ETag -
|
-| **302** | Redirect to a pre-signed URL for the object | * Location - redirect to S3
|
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **410** | object expired | - |
-| **416** | Requested Range Not Satisfiable | - |
-| **0** | Internal Server Error | - |
+**200** | object content | * Content-Length -
* Last-Modified -
* ETag -
|
+**206** | partial object content | * Content-Length -
* Content-Range -
* Last-Modified -
* ETag -
|
+**302** | Redirect to a pre-signed URL for the object | * Location - redirect to S3
|
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**410** | object expired | - |
+**416** | Requested Range Not Satisfiable | - |
+**0** | Internal Server Error | - |
# **getUnderlyingProperties**
@@ -427,7 +427,7 @@ import io.lakefs.clients.api.ObjectsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -440,6 +440,10 @@ public class Example {
// 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");
@@ -452,10 +456,6 @@ public class Example {
// 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");
-
ObjectsApi apiInstance = new ObjectsApi(defaultClient);
String repository = "repository_example"; // String |
String ref = "ref_example"; // String | a reference (could be either a branch or a commit ID)
@@ -476,11 +476,11 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **ref** | **String**| a reference (could be either a branch or a commit ID) | |
-| **path** | **String**| relative to the branch | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **ref** | **String**| a reference (could be either a branch or a commit ID) |
+ **path** | **String**| relative to the branch |
### Return type
@@ -488,7 +488,7 @@ public class Example {
### 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)
+[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
@@ -498,10 +498,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | object metadata on underlying storage | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | object metadata on underlying storage | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **headObject**
@@ -522,7 +522,7 @@ import io.lakefs.clients.api.ObjectsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -535,6 +535,10 @@ public class Example {
// 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");
@@ -547,10 +551,6 @@ public class Example {
// 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");
-
ObjectsApi apiInstance = new ObjectsApi(defaultClient);
String repository = "repository_example"; // String |
String ref = "ref_example"; // String | a reference (could be either a branch or a commit ID)
@@ -571,12 +571,12 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **ref** | **String**| a reference (could be either a branch or a commit ID) | |
-| **path** | **String**| relative to the ref | |
-| **range** | **String**| Byte range to retrieve | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **ref** | **String**| a reference (could be either a branch or a commit ID) |
+ **path** | **String**| relative to the ref |
+ **range** | **String**| Byte range to retrieve | [optional]
### Return type
@@ -584,7 +584,7 @@ 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)
+[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
@@ -594,13 +594,13 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | object exists | * Content-Length -
* Last-Modified -
* ETag -
|
-| **206** | partial object content info | * Content-Length -
* Content-Range -
* Last-Modified -
* ETag -
|
-| **401** | Unauthorized | - |
-| **404** | object not found | - |
-| **410** | object expired | - |
-| **416** | Requested Range Not Satisfiable | - |
-| **0** | internal server error | - |
+**200** | object exists | * Content-Length -
* Last-Modified -
* ETag -
|
+**206** | partial object content info | * Content-Length -
* Content-Range -
* Last-Modified -
* ETag -
|
+**401** | Unauthorized | - |
+**404** | object not found | - |
+**410** | object expired | - |
+**416** | Requested Range Not Satisfiable | - |
+**0** | internal server error | - |
# **listObjects**
@@ -621,7 +621,7 @@ import io.lakefs.clients.api.ObjectsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -634,6 +634,10 @@ public class Example {
// 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");
@@ -646,10 +650,6 @@ public class Example {
// 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");
-
ObjectsApi apiInstance = new ObjectsApi(defaultClient);
String repository = "repository_example"; // String |
String ref = "ref_example"; // String | a reference (could be either a branch or a commit ID)
@@ -675,16 +675,16 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **ref** | **String**| a reference (could be either a branch or a commit ID) | |
-| **userMetadata** | **Boolean**| | [optional] [default to true] |
-| **presign** | **Boolean**| | [optional] |
-| **after** | **String**| return items after this value | [optional] |
-| **amount** | **Integer**| how many items to return | [optional] [default to 100] |
-| **delimiter** | **String**| delimiter used to group common prefixes by | [optional] |
-| **prefix** | **String**| return items prefixed with this value | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **ref** | **String**| a reference (could be either a branch or a commit ID) |
+ **userMetadata** | **Boolean**| | [optional] [default to true]
+ **presign** | **Boolean**| | [optional]
+ **after** | **String**| return items after this value | [optional]
+ **amount** | **Integer**| how many items to return | [optional] [default to 100]
+ **delimiter** | **String**| delimiter used to group common prefixes by | [optional]
+ **prefix** | **String**| return items prefixed with this value | [optional]
### Return type
@@ -692,7 +692,7 @@ public class Example {
### 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)
+[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
@@ -702,10 +702,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | object listing | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | object listing | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **stageObject**
@@ -726,7 +726,7 @@ import io.lakefs.clients.api.ObjectsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -739,6 +739,10 @@ public class Example {
// 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");
@@ -751,10 +755,6 @@ public class Example {
// 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");
-
ObjectsApi apiInstance = new ObjectsApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -776,12 +776,12 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
-| **path** | **String**| relative to the branch | |
-| **objectStageCreation** | [**ObjectStageCreation**](ObjectStageCreation.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
+ **path** | **String**| relative to the branch |
+ **objectStageCreation** | [**ObjectStageCreation**](ObjectStageCreation.md)| |
### Return type
@@ -789,7 +789,7 @@ public class Example {
### 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)
+[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
@@ -799,12 +799,12 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | object metadata | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **403** | Forbidden | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**201** | object metadata | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **statObject**
@@ -825,7 +825,7 @@ import io.lakefs.clients.api.ObjectsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -838,6 +838,10 @@ public class Example {
// 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");
@@ -850,10 +854,6 @@ public class Example {
// 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");
-
ObjectsApi apiInstance = new ObjectsApi(defaultClient);
String repository = "repository_example"; // String |
String ref = "ref_example"; // String | a reference (could be either a branch or a commit ID)
@@ -876,13 +876,13 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **ref** | **String**| a reference (could be either a branch or a commit ID) | |
-| **path** | **String**| relative to the branch | |
-| **userMetadata** | **Boolean**| | [optional] [default to true] |
-| **presign** | **Boolean**| | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **ref** | **String**| a reference (could be either a branch or a commit ID) |
+ **path** | **String**| relative to the branch |
+ **userMetadata** | **Boolean**| | [optional] [default to true]
+ **presign** | **Boolean**| | [optional]
### Return type
@@ -890,7 +890,7 @@ public class Example {
### 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)
+[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
@@ -900,11 +900,11 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | object metadata | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **410** | object gone (but partial metadata may be available) | - |
-| **0** | Internal Server Error | - |
+**200** | object metadata | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**410** | object gone (but partial metadata may be available) | - |
+**0** | Internal Server Error | - |
# **uploadObject**
@@ -925,7 +925,7 @@ import io.lakefs.clients.api.ObjectsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -938,6 +938,10 @@ public class Example {
// 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");
@@ -950,10 +954,6 @@ public class Example {
// 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");
-
ObjectsApi apiInstance = new ObjectsApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -977,14 +977,14 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
-| **path** | **String**| relative to the branch | |
-| **storageClass** | **String**| | [optional] |
-| **ifNoneMatch** | **String**| Currently supports only \"*\" to allow uploading an object only if one doesn't exist yet | [optional] |
-| **content** | **File**| Only a single file per upload which must be named \\\"content\\\". | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
+ **path** | **String**| relative to the branch |
+ **storageClass** | **String**| | [optional]
+ **ifNoneMatch** | **String**| Currently supports only \"*\" to allow uploading an object only if one doesn't exist yet | [optional]
+ **content** | **File**| Only a single file per upload which must be named \\\"content\\\". | [optional]
### Return type
@@ -992,7 +992,7 @@ public class Example {
### 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)
+[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
@@ -1002,11 +1002,11 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | object metadata | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **403** | Forbidden | - |
-| **404** | Resource Not Found | - |
-| **412** | Precondition Failed | - |
-| **0** | Internal Server Error | - |
+**201** | object metadata | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**412** | Precondition Failed | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/OtfDiffApi.md b/clients/java/docs/OtfDiffApi.md
index 4c5cce95c48..74d0f0be9af 100644
--- a/clients/java/docs/OtfDiffApi.md
+++ b/clients/java/docs/OtfDiffApi.md
@@ -1,10 +1,10 @@
# OtfDiffApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**otfDiff**](OtfDiffApi.md#otfDiff) | **GET** /repositories/{repository}/otf/refs/{left_ref}/diff/{right_ref} | perform otf diff |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**otfDiff**](OtfDiffApi.md#otfDiff) | **GET** /repositories/{repository}/otf/refs/{left_ref}/diff/{right_ref} | perform otf diff
@@ -26,7 +26,7 @@ import io.lakefs.clients.api.OtfDiffApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -39,6 +39,10 @@ public class Example {
// 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");
@@ -51,10 +55,6 @@ public class Example {
// 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");
-
OtfDiffApi apiInstance = new OtfDiffApi(defaultClient);
String repository = "repository_example"; // String |
String leftRef = "leftRef_example"; // String |
@@ -77,13 +77,13 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **leftRef** | **String**| | |
-| **rightRef** | **String**| | |
-| **tablePath** | **String**| a path to the table location under the specified ref. | |
-| **type** | **String**| the type of otf | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **leftRef** | **String**| |
+ **rightRef** | **String**| |
+ **tablePath** | **String**| a path to the table location under the specified ref. |
+ **type** | **String**| the type of otf |
### Return type
@@ -91,7 +91,7 @@ public class Example {
### 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)
+[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
@@ -101,9 +101,9 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | diff list | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **412** | Precondition Failed | - |
-| **0** | Internal Server Error | - |
+**200** | diff list | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**412** | Precondition Failed | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/OtfDiffEntry.md b/clients/java/docs/OtfDiffEntry.md
index 14d707f939e..9972a585ef3 100644
--- a/clients/java/docs/OtfDiffEntry.md
+++ b/clients/java/docs/OtfDiffEntry.md
@@ -5,23 +5,23 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **String** | | |
-|**timestamp** | **Integer** | | |
-|**operation** | **String** | | |
-|**operationContent** | **Object** | free form content describing the returned operation diff | |
-|**operationType** | [**OperationTypeEnum**](#OperationTypeEnum) | the operation category (CUD) | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | |
+**timestamp** | **Integer** | |
+**operation** | **String** | |
+**operationContent** | **Object** | free form content describing the returned operation diff |
+**operationType** | [**OperationTypeEnum**](#OperationTypeEnum) | the operation category (CUD) |
## Enum: OperationTypeEnum
-| Name | Value |
-|---- | -----|
-| CREATE | "create" |
-| UPDATE | "update" |
-| DELETE | "delete" |
+Name | Value
+---- | -----
+CREATE | "create"
+UPDATE | "update"
+DELETE | "delete"
diff --git a/clients/java/docs/OtfDiffList.md b/clients/java/docs/OtfDiffList.md
index 16111e773db..56883308a52 100644
--- a/clients/java/docs/OtfDiffList.md
+++ b/clients/java/docs/OtfDiffList.md
@@ -5,20 +5,20 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**diffType** | [**DiffTypeEnum**](#DiffTypeEnum) | | [optional] |
-|**results** | [**List<OtfDiffEntry>**](OtfDiffEntry.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**diffType** | [**DiffTypeEnum**](#DiffTypeEnum) | | [optional]
+**results** | [**List<OtfDiffEntry>**](OtfDiffEntry.md) | |
## Enum: DiffTypeEnum
-| Name | Value |
-|---- | -----|
-| CREATED | "created" |
-| DROPPED | "dropped" |
-| CHANGED | "changed" |
+Name | Value
+---- | -----
+CREATED | "created"
+DROPPED | "dropped"
+CHANGED | "changed"
diff --git a/clients/java/docs/Pagination.md b/clients/java/docs/Pagination.md
index b6f782306f8..f4ca9a3a972 100644
--- a/clients/java/docs/Pagination.md
+++ b/clients/java/docs/Pagination.md
@@ -5,12 +5,12 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**hasMore** | **Boolean** | Next page is available | |
-|**nextOffset** | **String** | Token used to retrieve the next page | |
-|**results** | **Integer** | Number of values found in the results | |
-|**maxPerPage** | **Integer** | Maximal number of entries per page | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**hasMore** | **Boolean** | Next page is available |
+**nextOffset** | **String** | Token used to retrieve the next page |
+**results** | **Integer** | Number of values found in the results |
+**maxPerPage** | **Integer** | Maximal number of entries per page |
diff --git a/clients/java/docs/PathList.md b/clients/java/docs/PathList.md
index 27e14d980c9..d4e84921d2a 100644
--- a/clients/java/docs/PathList.md
+++ b/clients/java/docs/PathList.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**paths** | **List<String>** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**paths** | **List<String>** | |
diff --git a/clients/java/docs/Policy.md b/clients/java/docs/Policy.md
index 62b58a72f0d..4f83f134c98 100644
--- a/clients/java/docs/Policy.md
+++ b/clients/java/docs/Policy.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **String** | | |
-|**creationDate** | **Long** | Unix Epoch in seconds | [optional] |
-|**statement** | [**List<Statement>**](Statement.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | |
+**creationDate** | **Long** | Unix Epoch in seconds | [optional]
+**statement** | [**List<Statement>**](Statement.md) | |
diff --git a/clients/java/docs/PolicyList.md b/clients/java/docs/PolicyList.md
index 244cda00d04..4ca1e729ed5 100644
--- a/clients/java/docs/PolicyList.md
+++ b/clients/java/docs/PolicyList.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**pagination** | [**Pagination**](Pagination.md) | | |
-|**results** | [**List<Policy>**](Policy.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pagination** | [**Pagination**](Pagination.md) | |
+**results** | [**List<Policy>**](Policy.md) | |
diff --git a/clients/java/docs/PrepareGCUncommittedRequest.md b/clients/java/docs/PrepareGCUncommittedRequest.md
index ec0364d440d..a117f5cda1b 100644
--- a/clients/java/docs/PrepareGCUncommittedRequest.md
+++ b/clients/java/docs/PrepareGCUncommittedRequest.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**continuationToken** | **String** | | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**continuationToken** | **String** | | [optional]
diff --git a/clients/java/docs/PrepareGCUncommittedResponse.md b/clients/java/docs/PrepareGCUncommittedResponse.md
index 1da59209364..372f18f64f4 100644
--- a/clients/java/docs/PrepareGCUncommittedResponse.md
+++ b/clients/java/docs/PrepareGCUncommittedResponse.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**runId** | **String** | | |
-|**gcUncommittedLocation** | **String** | location of uncommitted information data | |
-|**continuationToken** | **String** | | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**runId** | **String** | |
+**gcUncommittedLocation** | **String** | location of uncommitted information data |
+**continuationToken** | **String** | | [optional]
diff --git a/clients/java/docs/RangeMetadata.md b/clients/java/docs/RangeMetadata.md
index 2b782da2cc7..e1cab3c8a52 100644
--- a/clients/java/docs/RangeMetadata.md
+++ b/clients/java/docs/RangeMetadata.md
@@ -5,13 +5,13 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **String** | ID of the range. | |
-|**minKey** | **String** | First key in the range. | |
-|**maxKey** | **String** | Last key in the range. | |
-|**count** | **Integer** | Number of records in the range. | |
-|**estimatedSize** | **Integer** | Estimated size of the range in bytes | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | ID of the range. |
+**minKey** | **String** | First key in the range. |
+**maxKey** | **String** | Last key in the range. |
+**count** | **Integer** | Number of records in the range. |
+**estimatedSize** | **Integer** | Estimated size of the range in bytes |
diff --git a/clients/java/docs/Ref.md b/clients/java/docs/Ref.md
index d064e590cdc..181ed2cbc4a 100644
--- a/clients/java/docs/Ref.md
+++ b/clients/java/docs/Ref.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **String** | | |
-|**commitId** | **String** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | |
+**commitId** | **String** | |
diff --git a/clients/java/docs/RefList.md b/clients/java/docs/RefList.md
index e8e9a379956..3acde5d5362 100644
--- a/clients/java/docs/RefList.md
+++ b/clients/java/docs/RefList.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**pagination** | [**Pagination**](Pagination.md) | | |
-|**results** | [**List<Ref>**](Ref.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pagination** | [**Pagination**](Pagination.md) | |
+**results** | [**List<Ref>**](Ref.md) | |
diff --git a/clients/java/docs/RefsApi.md b/clients/java/docs/RefsApi.md
index 3962f7723cb..d2fc7467ee2 100644
--- a/clients/java/docs/RefsApi.md
+++ b/clients/java/docs/RefsApi.md
@@ -1,15 +1,15 @@
# RefsApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**diffRefs**](RefsApi.md#diffRefs) | **GET** /repositories/{repository}/refs/{leftRef}/diff/{rightRef} | diff references |
-| [**dumpRefs**](RefsApi.md#dumpRefs) | **PUT** /repositories/{repository}/refs/dump | Dump repository refs (tags, commits, branches) to object store |
-| [**findMergeBase**](RefsApi.md#findMergeBase) | **GET** /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch} | find the merge base for 2 references |
-| [**logCommits**](RefsApi.md#logCommits) | **GET** /repositories/{repository}/refs/{ref}/commits | get commit log from ref. If both objects and prefixes are empty, return all commits. |
-| [**mergeIntoBranch**](RefsApi.md#mergeIntoBranch) | **POST** /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch} | merge references |
-| [**restoreRefs**](RefsApi.md#restoreRefs) | **PUT** /repositories/{repository}/refs/restore | Restore repository refs (tags, commits, branches) from object store |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**diffRefs**](RefsApi.md#diffRefs) | **GET** /repositories/{repository}/refs/{leftRef}/diff/{rightRef} | diff references
+[**dumpRefs**](RefsApi.md#dumpRefs) | **PUT** /repositories/{repository}/refs/dump | Dump repository refs (tags, commits, branches) to object store
+[**findMergeBase**](RefsApi.md#findMergeBase) | **GET** /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch} | find the merge base for 2 references
+[**logCommits**](RefsApi.md#logCommits) | **GET** /repositories/{repository}/refs/{ref}/commits | get commit log from ref. If both objects and prefixes are empty, return all commits.
+[**mergeIntoBranch**](RefsApi.md#mergeIntoBranch) | **POST** /repositories/{repository}/refs/{sourceRef}/merge/{destinationBranch} | merge references
+[**restoreRefs**](RefsApi.md#restoreRefs) | **PUT** /repositories/{repository}/refs/restore | Restore repository refs (tags, commits, branches) from object store
@@ -31,7 +31,7 @@ import io.lakefs.clients.api.RefsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -44,6 +44,10 @@ public class Example {
// 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");
@@ -56,10 +60,6 @@ public class Example {
// 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");
-
RefsApi apiInstance = new RefsApi(defaultClient);
String repository = "repository_example"; // String |
String leftRef = "leftRef_example"; // String | a reference (could be either a branch or a commit ID)
@@ -85,16 +85,16 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **leftRef** | **String**| a reference (could be either a branch or a commit ID) | |
-| **rightRef** | **String**| a reference (could be either a branch or a commit ID) to compare against | |
-| **after** | **String**| return items after this value | [optional] |
-| **amount** | **Integer**| how many items to return | [optional] [default to 100] |
-| **prefix** | **String**| return items prefixed with this value | [optional] |
-| **delimiter** | **String**| delimiter used to group common prefixes by | [optional] |
-| **type** | **String**| | [optional] [default to three_dot] [enum: two_dot, three_dot] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **leftRef** | **String**| a reference (could be either a branch or a commit ID) |
+ **rightRef** | **String**| a reference (could be either a branch or a commit ID) to compare against |
+ **after** | **String**| return items after this value | [optional]
+ **amount** | **Integer**| how many items to return | [optional] [default to 100]
+ **prefix** | **String**| return items prefixed with this value | [optional]
+ **delimiter** | **String**| delimiter used to group common prefixes by | [optional]
+ **type** | **String**| | [optional] [default to three_dot] [enum: two_dot, three_dot]
### Return type
@@ -102,7 +102,7 @@ public class Example {
### 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)
+[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
@@ -112,10 +112,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | diff between refs | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | diff between refs | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **dumpRefs**
@@ -136,7 +136,7 @@ import io.lakefs.clients.api.RefsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -149,6 +149,10 @@ public class Example {
// 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");
@@ -161,10 +165,6 @@ public class Example {
// 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");
-
RefsApi apiInstance = new RefsApi(defaultClient);
String repository = "repository_example"; // String |
try {
@@ -183,9 +183,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
### Return type
@@ -193,7 +193,7 @@ public class Example {
### 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)
+[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
@@ -203,11 +203,11 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | refs dump | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**201** | refs dump | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **findMergeBase**
@@ -228,7 +228,7 @@ import io.lakefs.clients.api.RefsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -241,6 +241,10 @@ public class Example {
// 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");
@@ -253,10 +257,6 @@ public class Example {
// 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");
-
RefsApi apiInstance = new RefsApi(defaultClient);
String repository = "repository_example"; // String |
String sourceRef = "sourceRef_example"; // String | source ref
@@ -277,11 +277,11 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **sourceRef** | **String**| source ref | |
-| **destinationBranch** | **String**| destination branch name | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **sourceRef** | **String**| source ref |
+ **destinationBranch** | **String**| destination branch name |
### Return type
@@ -289,7 +289,7 @@ public class Example {
### 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)
+[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
@@ -299,11 +299,11 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | Found the merge base | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | Found the merge base | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **logCommits**
@@ -324,7 +324,7 @@ import io.lakefs.clients.api.RefsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -337,6 +337,10 @@ public class Example {
// 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");
@@ -349,10 +353,6 @@ public class Example {
// 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");
-
RefsApi apiInstance = new RefsApi(defaultClient);
String repository = "repository_example"; // String |
String ref = "ref_example"; // String |
@@ -377,15 +377,15 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **ref** | **String**| | |
-| **after** | **String**| return items after this value | [optional] |
-| **amount** | **Integer**| how many items to return | [optional] [default to 100] |
-| **objects** | [**List<String>**](String.md)| list of paths, each element is a path of a specific object | [optional] |
-| **prefixes** | [**List<String>**](String.md)| list of paths, each element is a path of a prefix | [optional] |
-| **limit** | **Boolean**| limit the number of items in return to 'amount'. Without further indication on actual number of items. | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **ref** | **String**| |
+ **after** | **String**| return items after this value | [optional]
+ **amount** | **Integer**| how many items to return | [optional] [default to 100]
+ **objects** | [**List<String>**](String.md)| list of paths, each element is a path of a specific object | [optional]
+ **prefixes** | [**List<String>**](String.md)| list of paths, each element is a path of a prefix | [optional]
+ **limit** | **Boolean**| limit the number of items in return to 'amount'. Without further indication on actual number of items. | [optional]
### Return type
@@ -393,7 +393,7 @@ public class Example {
### 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)
+[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
@@ -403,10 +403,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | commit log | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | commit log | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **mergeIntoBranch**
@@ -427,7 +427,7 @@ import io.lakefs.clients.api.RefsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -440,6 +440,10 @@ public class Example {
// 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");
@@ -452,10 +456,6 @@ public class Example {
// 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");
-
RefsApi apiInstance = new RefsApi(defaultClient);
String repository = "repository_example"; // String |
String sourceRef = "sourceRef_example"; // String | source ref
@@ -477,12 +477,12 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **sourceRef** | **String**| source ref | |
-| **destinationBranch** | **String**| destination branch name | |
-| **merge** | [**Merge**](Merge.md)| | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **sourceRef** | **String**| source ref |
+ **destinationBranch** | **String**| destination branch name |
+ **merge** | [**Merge**](Merge.md)| | [optional]
### Return type
@@ -490,7 +490,7 @@ public class Example {
### 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)
+[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
@@ -500,14 +500,14 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | merge completed | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **403** | Forbidden | - |
-| **404** | Resource Not Found | - |
-| **409** | Conflict Deprecated: content schema will return Error format and not an empty MergeResult | - |
-| **412** | precondition failed (e.g. a pre-merge hook returned a failure) | - |
-| **0** | Internal Server Error | - |
+**200** | merge completed | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Resource Not Found | - |
+**409** | Conflict Deprecated: content schema will return Error format and not an empty MergeResult | - |
+**412** | precondition failed (e.g. a pre-merge hook returned a failure) | - |
+**0** | Internal Server Error | - |
# **restoreRefs**
@@ -528,7 +528,7 @@ import io.lakefs.clients.api.RefsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -541,6 +541,10 @@ public class Example {
// 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");
@@ -553,10 +557,6 @@ public class Example {
// 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");
-
RefsApi apiInstance = new RefsApi(defaultClient);
String repository = "repository_example"; // String |
RefsDump refsDump = new RefsDump(); // RefsDump |
@@ -575,10 +575,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **refsDump** | [**RefsDump**](RefsDump.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **refsDump** | [**RefsDump**](RefsDump.md)| |
### Return type
@@ -586,7 +586,7 @@ 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)
+[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
@@ -596,9 +596,9 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | refs successfully loaded | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | refs successfully loaded | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/RefsDump.md b/clients/java/docs/RefsDump.md
index b2d4805ae01..832abf289e1 100644
--- a/clients/java/docs/RefsDump.md
+++ b/clients/java/docs/RefsDump.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**commitsMetaRangeId** | **String** | | |
-|**tagsMetaRangeId** | **String** | | |
-|**branchesMetaRangeId** | **String** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**commitsMetaRangeId** | **String** | |
+**tagsMetaRangeId** | **String** | |
+**branchesMetaRangeId** | **String** | |
diff --git a/clients/java/docs/RepositoriesApi.md b/clients/java/docs/RepositoriesApi.md
index 78a11bad67f..5d68c02063d 100644
--- a/clients/java/docs/RepositoriesApi.md
+++ b/clients/java/docs/RepositoriesApi.md
@@ -1,16 +1,16 @@
# RepositoriesApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**createBranchProtectionRule**](RepositoriesApi.md#createBranchProtectionRule) | **POST** /repositories/{repository}/branch_protection | |
-| [**createRepository**](RepositoriesApi.md#createRepository) | **POST** /repositories | create repository |
-| [**deleteBranchProtectionRule**](RepositoriesApi.md#deleteBranchProtectionRule) | **DELETE** /repositories/{repository}/branch_protection | |
-| [**deleteRepository**](RepositoriesApi.md#deleteRepository) | **DELETE** /repositories/{repository} | delete repository |
-| [**getBranchProtectionRules**](RepositoriesApi.md#getBranchProtectionRules) | **GET** /repositories/{repository}/branch_protection | get branch protection rules |
-| [**getRepository**](RepositoriesApi.md#getRepository) | **GET** /repositories/{repository} | get repository |
-| [**listRepositories**](RepositoriesApi.md#listRepositories) | **GET** /repositories | list repositories |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**createBranchProtectionRule**](RepositoriesApi.md#createBranchProtectionRule) | **POST** /repositories/{repository}/branch_protection |
+[**createRepository**](RepositoriesApi.md#createRepository) | **POST** /repositories | create repository
+[**deleteBranchProtectionRule**](RepositoriesApi.md#deleteBranchProtectionRule) | **DELETE** /repositories/{repository}/branch_protection |
+[**deleteRepository**](RepositoriesApi.md#deleteRepository) | **DELETE** /repositories/{repository} | delete repository
+[**getBranchProtectionRules**](RepositoriesApi.md#getBranchProtectionRules) | **GET** /repositories/{repository}/branch_protection | get branch protection rules
+[**getRepository**](RepositoriesApi.md#getRepository) | **GET** /repositories/{repository} | get repository
+[**listRepositories**](RepositoriesApi.md#listRepositories) | **GET** /repositories | list repositories
@@ -32,7 +32,7 @@ import io.lakefs.clients.api.RepositoriesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -45,6 +45,10 @@ public class Example {
// 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");
@@ -57,10 +61,6 @@ public class Example {
// 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");
-
RepositoriesApi apiInstance = new RepositoriesApi(defaultClient);
String repository = "repository_example"; // String |
BranchProtectionRule branchProtectionRule = new BranchProtectionRule(); // BranchProtectionRule |
@@ -79,10 +79,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branchProtectionRule** | [**BranchProtectionRule**](BranchProtectionRule.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branchProtectionRule** | [**BranchProtectionRule**](BranchProtectionRule.md)| |
### Return type
@@ -90,7 +90,7 @@ 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)
+[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
@@ -100,10 +100,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | branch protection rule created successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | branch protection rule created successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **createRepository**
@@ -124,7 +124,7 @@ import io.lakefs.clients.api.RepositoriesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -137,6 +137,10 @@ public class Example {
// 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");
@@ -149,10 +153,6 @@ public class Example {
// 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");
-
RepositoriesApi apiInstance = new RepositoriesApi(defaultClient);
RepositoryCreation repositoryCreation = new RepositoryCreation(); // RepositoryCreation |
Boolean bare = false; // Boolean | If true, create a bare repository with no initial commit and branch
@@ -172,10 +172,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repositoryCreation** | [**RepositoryCreation**](RepositoryCreation.md)| | |
-| **bare** | **Boolean**| If true, create a bare repository with no initial commit and branch | [optional] [default to false] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repositoryCreation** | [**RepositoryCreation**](RepositoryCreation.md)| |
+ **bare** | **Boolean**| If true, create a bare repository with no initial commit and branch | [optional] [default to false]
### Return type
@@ -183,7 +183,7 @@ public class Example {
### 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)
+[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
@@ -193,15 +193,15 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | repository | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **409** | Resource Conflicts With Target | - |
-| **0** | Internal Server Error | - |
+**201** | repository | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**409** | Resource Conflicts With Target | - |
+**0** | Internal Server Error | - |
# **deleteBranchProtectionRule**
-> deleteBranchProtectionRule(repository, deleteBranchProtectionRuleRequest)
+> deleteBranchProtectionRule(repository, inlineObject1)
@@ -218,7 +218,7 @@ import io.lakefs.clients.api.RepositoriesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -231,6 +231,10 @@ public class Example {
// 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");
@@ -243,15 +247,11 @@ public class Example {
// 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");
-
RepositoriesApi apiInstance = new RepositoriesApi(defaultClient);
String repository = "repository_example"; // String |
- DeleteBranchProtectionRuleRequest deleteBranchProtectionRuleRequest = new DeleteBranchProtectionRuleRequest(); // DeleteBranchProtectionRuleRequest |
+ InlineObject1 inlineObject1 = new InlineObject1(); // InlineObject1 |
try {
- apiInstance.deleteBranchProtectionRule(repository, deleteBranchProtectionRuleRequest);
+ apiInstance.deleteBranchProtectionRule(repository, inlineObject1);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoriesApi#deleteBranchProtectionRule");
System.err.println("Status code: " + e.getCode());
@@ -265,10 +265,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **deleteBranchProtectionRuleRequest** | [**DeleteBranchProtectionRuleRequest**](DeleteBranchProtectionRuleRequest.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **inlineObject1** | [**InlineObject1**](InlineObject1.md)| |
### Return type
@@ -276,7 +276,7 @@ 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)
+[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
@@ -286,10 +286,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | branch protection rule deleted successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | branch protection rule deleted successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **deleteRepository**
@@ -310,7 +310,7 @@ import io.lakefs.clients.api.RepositoriesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -323,6 +323,10 @@ public class Example {
// 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");
@@ -335,10 +339,6 @@ public class Example {
// 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");
-
RepositoriesApi apiInstance = new RepositoriesApi(defaultClient);
String repository = "repository_example"; // String |
try {
@@ -356,9 +356,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
### Return type
@@ -366,7 +366,7 @@ 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)
+[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
@@ -376,10 +376,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | repository deleted successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | repository deleted successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **getBranchProtectionRules**
@@ -400,7 +400,7 @@ import io.lakefs.clients.api.RepositoriesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -413,6 +413,10 @@ public class Example {
// 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");
@@ -425,10 +429,6 @@ public class Example {
// 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");
-
RepositoriesApi apiInstance = new RepositoriesApi(defaultClient);
String repository = "repository_example"; // String |
try {
@@ -447,9 +447,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
### Return type
@@ -457,7 +457,7 @@ public class Example {
### 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)
+[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
@@ -467,10 +467,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | branch protection rules | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | branch protection rules | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **getRepository**
@@ -491,7 +491,7 @@ import io.lakefs.clients.api.RepositoriesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -504,6 +504,10 @@ public class Example {
// 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");
@@ -516,10 +520,6 @@ public class Example {
// 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");
-
RepositoriesApi apiInstance = new RepositoriesApi(defaultClient);
String repository = "repository_example"; // String |
try {
@@ -538,9 +538,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
### Return type
@@ -548,7 +548,7 @@ public class Example {
### 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)
+[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
@@ -558,10 +558,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | repository | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | repository | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **listRepositories**
@@ -582,7 +582,7 @@ import io.lakefs.clients.api.RepositoriesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -595,6 +595,10 @@ public class Example {
// 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");
@@ -607,10 +611,6 @@ public class Example {
// 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");
-
RepositoriesApi apiInstance = new RepositoriesApi(defaultClient);
String prefix = "prefix_example"; // String | return items prefixed with this value
String after = "after_example"; // String | return items after this value
@@ -631,11 +631,11 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **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] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **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]
### Return type
@@ -643,7 +643,7 @@ public class Example {
### 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)
+[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
@@ -653,7 +653,7 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | repository list | - |
-| **401** | Unauthorized | - |
-| **0** | Internal Server Error | - |
+**200** | repository list | - |
+**401** | Unauthorized | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/Repository.md b/clients/java/docs/Repository.md
index 8fd57838532..a394d75cdc0 100644
--- a/clients/java/docs/Repository.md
+++ b/clients/java/docs/Repository.md
@@ -5,12 +5,12 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **String** | | |
-|**creationDate** | **Long** | Unix Epoch in seconds | |
-|**defaultBranch** | **String** | | |
-|**storageNamespace** | **String** | Filesystem URI to store the underlying data in (e.g. \"s3://my-bucket/some/path/\") | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | |
+**creationDate** | **Long** | Unix Epoch in seconds |
+**defaultBranch** | **String** | |
+**storageNamespace** | **String** | Filesystem URI to store the underlying data in (e.g. \"s3://my-bucket/some/path/\") |
diff --git a/clients/java/docs/RepositoryCreation.md b/clients/java/docs/RepositoryCreation.md
index f9df6e14d07..00777579fe0 100644
--- a/clients/java/docs/RepositoryCreation.md
+++ b/clients/java/docs/RepositoryCreation.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**name** | **String** | | |
-|**storageNamespace** | **String** | Filesystem URI to store the underlying data in (e.g. \"s3://my-bucket/some/path/\") | |
-|**defaultBranch** | **String** | | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | |
+**storageNamespace** | **String** | Filesystem URI to store the underlying data in (e.g. \"s3://my-bucket/some/path/\") |
+**defaultBranch** | **String** | | [optional]
diff --git a/clients/java/docs/RepositoryList.md b/clients/java/docs/RepositoryList.md
index f3a043666b6..84971056d79 100644
--- a/clients/java/docs/RepositoryList.md
+++ b/clients/java/docs/RepositoryList.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**pagination** | [**Pagination**](Pagination.md) | | |
-|**results** | [**List<Repository>**](Repository.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pagination** | [**Pagination**](Pagination.md) | |
+**results** | [**List<Repository>**](Repository.md) | |
diff --git a/clients/java/docs/ResetCreation.md b/clients/java/docs/ResetCreation.md
index 2df7c893a92..b8f4d1c39c4 100644
--- a/clients/java/docs/ResetCreation.md
+++ b/clients/java/docs/ResetCreation.md
@@ -5,20 +5,20 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**type** | [**TypeEnum**](#TypeEnum) | | |
-|**path** | **String** | | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | [**TypeEnum**](#TypeEnum) | |
+**path** | **String** | | [optional]
## Enum: TypeEnum
-| Name | Value |
-|---- | -----|
-| OBJECT | "object" |
-| COMMON_PREFIX | "common_prefix" |
-| RESET | "reset" |
+Name | Value
+---- | -----
+OBJECT | "object"
+COMMON_PREFIX | "common_prefix"
+RESET | "reset"
diff --git a/clients/java/docs/RetentionApi.md b/clients/java/docs/RetentionApi.md
index ef76f195cd5..8dcd92eaaf0 100644
--- a/clients/java/docs/RetentionApi.md
+++ b/clients/java/docs/RetentionApi.md
@@ -1,14 +1,14 @@
# RetentionApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**deleteGarbageCollectionRules**](RetentionApi.md#deleteGarbageCollectionRules) | **DELETE** /repositories/{repository}/gc/rules | |
-| [**getGarbageCollectionRules**](RetentionApi.md#getGarbageCollectionRules) | **GET** /repositories/{repository}/gc/rules | |
-| [**prepareGarbageCollectionCommits**](RetentionApi.md#prepareGarbageCollectionCommits) | **POST** /repositories/{repository}/gc/prepare_commits | save lists of active and expired commits for garbage collection |
-| [**prepareGarbageCollectionUncommitted**](RetentionApi.md#prepareGarbageCollectionUncommitted) | **POST** /repositories/{repository}/gc/prepare_uncommited | save repository uncommitted metadata for garbage collection |
-| [**setGarbageCollectionRules**](RetentionApi.md#setGarbageCollectionRules) | **POST** /repositories/{repository}/gc/rules | |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**deleteGarbageCollectionRules**](RetentionApi.md#deleteGarbageCollectionRules) | **DELETE** /repositories/{repository}/gc/rules |
+[**getGarbageCollectionRules**](RetentionApi.md#getGarbageCollectionRules) | **GET** /repositories/{repository}/gc/rules |
+[**prepareGarbageCollectionCommits**](RetentionApi.md#prepareGarbageCollectionCommits) | **POST** /repositories/{repository}/gc/prepare_commits | save lists of active and expired commits for garbage collection
+[**prepareGarbageCollectionUncommitted**](RetentionApi.md#prepareGarbageCollectionUncommitted) | **POST** /repositories/{repository}/gc/prepare_uncommited | save repository uncommitted metadata for garbage collection
+[**setGarbageCollectionRules**](RetentionApi.md#setGarbageCollectionRules) | **POST** /repositories/{repository}/gc/rules |
@@ -30,7 +30,7 @@ import io.lakefs.clients.api.RetentionApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -43,6 +43,10 @@ public class Example {
// 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");
@@ -55,10 +59,6 @@ public class Example {
// 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");
-
RetentionApi apiInstance = new RetentionApi(defaultClient);
String repository = "repository_example"; // String |
try {
@@ -76,9 +76,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
### Return type
@@ -86,7 +86,7 @@ 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)
+[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
@@ -96,10 +96,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | deleted garbage collection rules successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | deleted garbage collection rules successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **getGarbageCollectionRules**
@@ -120,7 +120,7 @@ import io.lakefs.clients.api.RetentionApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -133,6 +133,10 @@ public class Example {
// 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");
@@ -145,10 +149,6 @@ public class Example {
// 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");
-
RetentionApi apiInstance = new RetentionApi(defaultClient);
String repository = "repository_example"; // String |
try {
@@ -167,9 +167,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
### Return type
@@ -177,7 +177,7 @@ public class Example {
### 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)
+[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
@@ -187,10 +187,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | gc rule list | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | gc rule list | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **prepareGarbageCollectionCommits**
@@ -211,7 +211,7 @@ import io.lakefs.clients.api.RetentionApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -224,6 +224,10 @@ public class Example {
// 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");
@@ -236,10 +240,6 @@ public class Example {
// 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");
-
RetentionApi apiInstance = new RetentionApi(defaultClient);
String repository = "repository_example"; // String |
GarbageCollectionPrepareRequest garbageCollectionPrepareRequest = new GarbageCollectionPrepareRequest(); // GarbageCollectionPrepareRequest |
@@ -259,10 +259,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **garbageCollectionPrepareRequest** | [**GarbageCollectionPrepareRequest**](GarbageCollectionPrepareRequest.md)| | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **garbageCollectionPrepareRequest** | [**GarbageCollectionPrepareRequest**](GarbageCollectionPrepareRequest.md)| | [optional]
### Return type
@@ -270,7 +270,7 @@ public class Example {
### 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)
+[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
@@ -280,10 +280,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | paths to commit dataset | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**201** | paths to commit dataset | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **prepareGarbageCollectionUncommitted**
@@ -304,7 +304,7 @@ import io.lakefs.clients.api.RetentionApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -317,6 +317,10 @@ public class Example {
// 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");
@@ -329,10 +333,6 @@ public class Example {
// 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");
-
RetentionApi apiInstance = new RetentionApi(defaultClient);
String repository = "repository_example"; // String |
PrepareGCUncommittedRequest prepareGCUncommittedRequest = new PrepareGCUncommittedRequest(); // PrepareGCUncommittedRequest |
@@ -352,10 +352,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **prepareGCUncommittedRequest** | [**PrepareGCUncommittedRequest**](PrepareGCUncommittedRequest.md)| | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **prepareGCUncommittedRequest** | [**PrepareGCUncommittedRequest**](PrepareGCUncommittedRequest.md)| | [optional]
### Return type
@@ -363,7 +363,7 @@ public class Example {
### 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)
+[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
@@ -373,11 +373,11 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | paths to commit dataset | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**201** | paths to commit dataset | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **setGarbageCollectionRules**
@@ -398,7 +398,7 @@ import io.lakefs.clients.api.RetentionApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -411,6 +411,10 @@ public class Example {
// 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");
@@ -423,10 +427,6 @@ public class Example {
// 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");
-
RetentionApi apiInstance = new RetentionApi(defaultClient);
String repository = "repository_example"; // String |
GarbageCollectionRules garbageCollectionRules = new GarbageCollectionRules(); // GarbageCollectionRules |
@@ -445,10 +445,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **garbageCollectionRules** | [**GarbageCollectionRules**](GarbageCollectionRules.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **garbageCollectionRules** | [**GarbageCollectionRules**](GarbageCollectionRules.md)| |
### Return type
@@ -456,7 +456,7 @@ 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)
+[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
@@ -466,8 +466,8 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | set garbage collection rules successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | set garbage collection rules successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/RevertCreation.md b/clients/java/docs/RevertCreation.md
index 5b87d4ff7ce..6b61850abbb 100644
--- a/clients/java/docs/RevertCreation.md
+++ b/clients/java/docs/RevertCreation.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**ref** | **String** | the commit to revert, given by a ref | |
-|**parentNumber** | **Integer** | when reverting a merge commit, the parent number (starting from 1) relative to which to perform the revert. | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ref** | **String** | the commit to revert, given by a ref |
+**parentNumber** | **Integer** | when reverting a merge commit, the parent number (starting from 1) relative to which to perform the revert. |
diff --git a/clients/java/docs/Setup.md b/clients/java/docs/Setup.md
index abeab60309b..a8940098dcc 100644
--- a/clients/java/docs/Setup.md
+++ b/clients/java/docs/Setup.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**username** | **String** | an identifier for the user (e.g. jane.doe) | |
-|**key** | [**AccessKeyCredentials**](AccessKeyCredentials.md) | | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**username** | **String** | an identifier for the user (e.g. jane.doe) |
+**key** | [**AccessKeyCredentials**](AccessKeyCredentials.md) | | [optional]
diff --git a/clients/java/docs/SetupState.md b/clients/java/docs/SetupState.md
index 3d560400073..979afded43c 100644
--- a/clients/java/docs/SetupState.md
+++ b/clients/java/docs/SetupState.md
@@ -5,20 +5,20 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**state** | [**StateEnum**](#StateEnum) | | [optional] |
-|**loginConfig** | [**LoginConfig**](LoginConfig.md) | | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**state** | [**StateEnum**](#StateEnum) | | [optional]
+**loginConfig** | [**LoginConfig**](LoginConfig.md) | | [optional]
## Enum: StateEnum
-| Name | Value |
-|---- | -----|
-| INITIALIZED | "initialized" |
-| NOT_INITIALIZED | "not_initialized" |
-| COMM_PREFS_DONE | "comm_prefs_done" |
+Name | Value
+---- | -----
+INITIALIZED | "initialized"
+NOT_INITIALIZED | "not_initialized"
+COMM_PREFS_DONE | "comm_prefs_done"
diff --git a/clients/java/docs/StageRangeCreation.md b/clients/java/docs/StageRangeCreation.md
index bfea2da1ba4..b71096dea5d 100644
--- a/clients/java/docs/StageRangeCreation.md
+++ b/clients/java/docs/StageRangeCreation.md
@@ -5,12 +5,12 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**fromSourceURI** | **String** | The source location of the ingested files. Must match the lakeFS installation blockstore type. | |
-|**after** | **String** | Only objects after this key would be ingested. | |
-|**prepend** | **String** | A prefix to prepend to ingested objects. | |
-|**continuationToken** | **String** | Opaque. Client should pass the continuation_token received from server to continue creation ranges from the same key. | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**fromSourceURI** | **String** | The source location of the ingested files. Must match the lakeFS installation blockstore type. |
+**after** | **String** | Only objects after this key would be ingested. |
+**prepend** | **String** | A prefix to prepend to ingested objects. |
+**continuationToken** | **String** | Opaque. Client should pass the continuation_token received from server to continue creation ranges from the same key. | [optional]
diff --git a/clients/java/docs/StagingApi.md b/clients/java/docs/StagingApi.md
index ee5078a4928..7ffb19e38b8 100644
--- a/clients/java/docs/StagingApi.md
+++ b/clients/java/docs/StagingApi.md
@@ -1,11 +1,11 @@
# StagingApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**getPhysicalAddress**](StagingApi.md#getPhysicalAddress) | **GET** /repositories/{repository}/branches/{branch}/staging/backing | get a physical address and a return token to write object to underlying storage |
-| [**linkPhysicalAddress**](StagingApi.md#linkPhysicalAddress) | **PUT** /repositories/{repository}/branches/{branch}/staging/backing | associate staging on this physical address with a path |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**getPhysicalAddress**](StagingApi.md#getPhysicalAddress) | **GET** /repositories/{repository}/branches/{branch}/staging/backing | get a physical address and a return token to write object to underlying storage
+[**linkPhysicalAddress**](StagingApi.md#linkPhysicalAddress) | **PUT** /repositories/{repository}/branches/{branch}/staging/backing | associate staging on this physical address with a path
@@ -27,7 +27,7 @@ import io.lakefs.clients.api.StagingApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -40,6 +40,10 @@ public class Example {
// 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");
@@ -52,10 +56,6 @@ public class Example {
// 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");
-
StagingApi apiInstance = new StagingApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -77,12 +77,12 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
-| **path** | **String**| relative to the branch | |
-| **presign** | **Boolean**| | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
+ **path** | **String**| relative to the branch |
+ **presign** | **Boolean**| | [optional]
### Return type
@@ -90,7 +90,7 @@ public class Example {
### 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)
+[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
@@ -100,10 +100,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | physical address for staging area | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | physical address for staging area | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **linkPhysicalAddress**
@@ -126,7 +126,7 @@ import io.lakefs.clients.api.StagingApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -139,6 +139,10 @@ public class Example {
// 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");
@@ -151,10 +155,6 @@ public class Example {
// 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");
-
StagingApi apiInstance = new StagingApi(defaultClient);
String repository = "repository_example"; // String |
String branch = "branch_example"; // String |
@@ -176,12 +176,12 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **branch** | **String**| | |
-| **path** | **String**| relative to the branch | |
-| **stagingMetadata** | [**StagingMetadata**](StagingMetadata.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **branch** | **String**| |
+ **path** | **String**| relative to the branch |
+ **stagingMetadata** | [**StagingMetadata**](StagingMetadata.md)| |
### Return type
@@ -189,7 +189,7 @@ public class Example {
### 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)
+[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
@@ -199,10 +199,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | object metadata | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **404** | Internal Server Error | - |
-| **409** | conflict with a commit, try here | - |
-| **0** | Internal Server Error | - |
+**200** | object metadata | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**404** | Internal Server Error | - |
+**409** | conflict with a commit, try here | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/StagingLocation.md b/clients/java/docs/StagingLocation.md
index 307ba55fd49..ffa05edc2bb 100644
--- a/clients/java/docs/StagingLocation.md
+++ b/clients/java/docs/StagingLocation.md
@@ -6,11 +6,11 @@ location for placing an object when staging it
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**physicalAddress** | **String** | | [optional] |
-|**token** | **String** | opaque staging token to use to link uploaded object | |
-|**presignedUrl** | **String** | if presign=true is passed in the request, this field will contain a presigned URL to use when uploading | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**physicalAddress** | **String** | | [optional]
+**token** | **String** | opaque staging token to use to link uploaded object |
+**presignedUrl** | **String** | if presign=true is passed in the request, this field will contain a presigned URL to use when uploading | [optional]
diff --git a/clients/java/docs/StagingMetadata.md b/clients/java/docs/StagingMetadata.md
index f8ef784d31c..569e5edbeca 100644
--- a/clients/java/docs/StagingMetadata.md
+++ b/clients/java/docs/StagingMetadata.md
@@ -6,13 +6,13 @@ information about uploaded object
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**staging** | [**StagingLocation**](StagingLocation.md) | | |
-|**checksum** | **String** | unique identifier of object content on backing store (typically ETag) | |
-|**sizeBytes** | **Long** | | |
-|**userMetadata** | **Map<String, String>** | | [optional] |
-|**contentType** | **String** | Object media type | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**staging** | [**StagingLocation**](StagingLocation.md) | |
+**checksum** | **String** | unique identifier of object content on backing store (typically ETag) |
+**sizeBytes** | **Long** | |
+**userMetadata** | **Map<String, String>** | | [optional]
+**contentType** | **String** | Object media type | [optional]
diff --git a/clients/java/docs/Statement.md b/clients/java/docs/Statement.md
index ccef2c1a7f2..c95e6d3770c 100644
--- a/clients/java/docs/Statement.md
+++ b/clients/java/docs/Statement.md
@@ -5,20 +5,20 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**effect** | [**EffectEnum**](#EffectEnum) | | |
-|**resource** | **String** | | |
-|**action** | **List<String>** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**effect** | [**EffectEnum**](#EffectEnum) | |
+**resource** | **String** | |
+**action** | **List<String>** | |
## Enum: EffectEnum
-| Name | Value |
-|---- | -----|
-| ALLOW | "allow" |
-| DENY | "deny" |
+Name | Value
+---- | -----
+ALLOW | "allow"
+DENY | "deny"
diff --git a/clients/java/docs/StatisticsApi.md b/clients/java/docs/StatisticsApi.md
index 2e040992e7b..28c74547bb0 100644
--- a/clients/java/docs/StatisticsApi.md
+++ b/clients/java/docs/StatisticsApi.md
@@ -1,10 +1,10 @@
# StatisticsApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**postStatsEvents**](StatisticsApi.md#postStatsEvents) | **POST** /statistics | post stats events, this endpoint is meant for internal use only |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**postStatsEvents**](StatisticsApi.md#postStatsEvents) | **POST** /statistics | post stats events, this endpoint is meant for internal use only
@@ -26,7 +26,7 @@ import io.lakefs.clients.api.StatisticsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -39,6 +39,10 @@ public class Example {
// 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");
@@ -51,10 +55,6 @@ public class Example {
// 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");
-
StatisticsApi apiInstance = new StatisticsApi(defaultClient);
StatsEventsList statsEventsList = new StatsEventsList(); // StatsEventsList |
try {
@@ -72,9 +72,9 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **statsEventsList** | [**StatsEventsList**](StatsEventsList.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **statsEventsList** | [**StatsEventsList**](StatsEventsList.md)| |
### Return type
@@ -82,7 +82,7 @@ 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)
+[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
@@ -92,8 +92,8 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | reported successfully | - |
-| **400** | bad request | - |
-| **401** | Unauthorized | - |
-| **0** | Internal Server Error | - |
+**204** | reported successfully | - |
+**400** | bad request | - |
+**401** | Unauthorized | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/StatsEvent.md b/clients/java/docs/StatsEvent.md
index becac2ed33b..c1de16909c5 100644
--- a/clients/java/docs/StatsEvent.md
+++ b/clients/java/docs/StatsEvent.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**propertyClass** | **String** | stats event class (e.g. \"s3_gateway\", \"openapi_request\", \"experimental-feature\", \"ui-event\") | |
-|**name** | **String** | stats event name (e.g. \"put_object\", \"create_repository\", \"<experimental-feature-name>\") | |
-|**count** | **Integer** | number of events of the class and name | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**propertyClass** | **String** | stats event class (e.g. \"s3_gateway\", \"openapi_request\", \"experimental-feature\", \"ui-event\") |
+**name** | **String** | stats event name (e.g. \"put_object\", \"create_repository\", \"<experimental-feature-name>\") |
+**count** | **Integer** | number of events of the class and name |
diff --git a/clients/java/docs/StatsEventsList.md b/clients/java/docs/StatsEventsList.md
index a696adf560c..331b12f6df6 100644
--- a/clients/java/docs/StatsEventsList.md
+++ b/clients/java/docs/StatsEventsList.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**events** | [**List<StatsEvent>**](StatsEvent.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**events** | [**List<StatsEvent>**](StatsEvent.md) | |
diff --git a/clients/java/docs/StorageConfig.md b/clients/java/docs/StorageConfig.md
index 83cff620da6..c351f51cce2 100644
--- a/clients/java/docs/StorageConfig.md
+++ b/clients/java/docs/StorageConfig.md
@@ -5,15 +5,15 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**blockstoreType** | **String** | | |
-|**blockstoreNamespaceExample** | **String** | | |
-|**blockstoreNamespaceValidityRegex** | **String** | | |
-|**defaultNamespacePrefix** | **String** | | [optional] |
-|**preSignSupport** | **Boolean** | | |
-|**preSignSupportUI** | **Boolean** | | |
-|**importSupport** | **Boolean** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**blockstoreType** | **String** | |
+**blockstoreNamespaceExample** | **String** | |
+**blockstoreNamespaceValidityRegex** | **String** | |
+**defaultNamespacePrefix** | **String** | | [optional]
+**preSignSupport** | **Boolean** | |
+**preSignSupportUI** | **Boolean** | |
+**importSupport** | **Boolean** | |
diff --git a/clients/java/docs/StorageURI.md b/clients/java/docs/StorageURI.md
index 2ff4a26269a..e890eae4d13 100644
--- a/clients/java/docs/StorageURI.md
+++ b/clients/java/docs/StorageURI.md
@@ -6,9 +6,9 @@ URI to a path in a storage provider (e.g. \"s3://bucket1/path/to/object\")
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**location** | **String** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**location** | **String** | |
diff --git a/clients/java/docs/TagCreation.md b/clients/java/docs/TagCreation.md
index fcb7bc61421..ee60d98d41a 100644
--- a/clients/java/docs/TagCreation.md
+++ b/clients/java/docs/TagCreation.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **String** | | |
-|**ref** | **String** | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | |
+**ref** | **String** | |
diff --git a/clients/java/docs/TagsApi.md b/clients/java/docs/TagsApi.md
index fd85ad24fdf..1ca1ae90ac2 100644
--- a/clients/java/docs/TagsApi.md
+++ b/clients/java/docs/TagsApi.md
@@ -1,13 +1,13 @@
# TagsApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**createTag**](TagsApi.md#createTag) | **POST** /repositories/{repository}/tags | create tag |
-| [**deleteTag**](TagsApi.md#deleteTag) | **DELETE** /repositories/{repository}/tags/{tag} | delete tag |
-| [**getTag**](TagsApi.md#getTag) | **GET** /repositories/{repository}/tags/{tag} | get tag |
-| [**listTags**](TagsApi.md#listTags) | **GET** /repositories/{repository}/tags | list tags |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**createTag**](TagsApi.md#createTag) | **POST** /repositories/{repository}/tags | create tag
+[**deleteTag**](TagsApi.md#deleteTag) | **DELETE** /repositories/{repository}/tags/{tag} | delete tag
+[**getTag**](TagsApi.md#getTag) | **GET** /repositories/{repository}/tags/{tag} | get tag
+[**listTags**](TagsApi.md#listTags) | **GET** /repositories/{repository}/tags | list tags
@@ -29,7 +29,7 @@ import io.lakefs.clients.api.TagsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -42,6 +42,10 @@ public class Example {
// 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");
@@ -54,10 +58,6 @@ public class Example {
// 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");
-
TagsApi apiInstance = new TagsApi(defaultClient);
String repository = "repository_example"; // String |
TagCreation tagCreation = new TagCreation(); // TagCreation |
@@ -77,10 +77,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **tagCreation** | [**TagCreation**](TagCreation.md)| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **tagCreation** | [**TagCreation**](TagCreation.md)| |
### Return type
@@ -88,7 +88,7 @@ public class Example {
### 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)
+[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
@@ -98,12 +98,12 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **201** | tag | - |
-| **400** | Validation Error | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **409** | Resource Conflicts With Target | - |
-| **0** | Internal Server Error | - |
+**201** | tag | - |
+**400** | Validation Error | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**409** | Resource Conflicts With Target | - |
+**0** | Internal Server Error | - |
# **deleteTag**
@@ -124,7 +124,7 @@ import io.lakefs.clients.api.TagsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -137,6 +137,10 @@ public class Example {
// 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");
@@ -149,10 +153,6 @@ public class Example {
// 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");
-
TagsApi apiInstance = new TagsApi(defaultClient);
String repository = "repository_example"; // String |
String tag = "tag_example"; // String |
@@ -171,10 +171,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **tag** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **tag** | **String**| |
### Return type
@@ -182,7 +182,7 @@ 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)
+[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
@@ -192,10 +192,10 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | tag deleted successfully | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**204** | tag deleted successfully | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **getTag**
@@ -216,7 +216,7 @@ import io.lakefs.clients.api.TagsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -229,6 +229,10 @@ public class Example {
// 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");
@@ -241,10 +245,6 @@ public class Example {
// 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");
-
TagsApi apiInstance = new TagsApi(defaultClient);
String repository = "repository_example"; // String |
String tag = "tag_example"; // String |
@@ -264,10 +264,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **repository** | **String**| | |
-| **tag** | **String**| | |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **repository** | **String**| |
+ **tag** | **String**| |
### Return type
@@ -275,7 +275,7 @@ public class Example {
### 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)
+[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
@@ -285,10 +285,10 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | tag | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | tag | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
# **listTags**
@@ -309,7 +309,7 @@ import io.lakefs.clients.api.TagsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -322,6 +322,10 @@ public class Example {
// 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");
@@ -334,10 +338,6 @@ public class Example {
// 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");
-
TagsApi apiInstance = new TagsApi(defaultClient);
String repository = "repository_example"; // String |
String prefix = "prefix_example"; // String | return items prefixed with this value
@@ -359,12 +359,12 @@ public class Example {
### 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] |
+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]
### Return type
@@ -372,7 +372,7 @@ public class Example {
### 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)
+[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
@@ -382,8 +382,8 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | tag list | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | tag list | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/TemplatesApi.md b/clients/java/docs/TemplatesApi.md
index 9f6186c1503..cee49474a4a 100644
--- a/clients/java/docs/TemplatesApi.md
+++ b/clients/java/docs/TemplatesApi.md
@@ -1,10 +1,10 @@
# TemplatesApi
-All URIs are relative to */api/v1*
+All URIs are relative to *http://localhost/api/v1*
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**expandTemplate**](TemplatesApi.md#expandTemplate) | **GET** /templates/{template_location} | |
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**expandTemplate**](TemplatesApi.md#expandTemplate) | **GET** /templates/{template_location} |
@@ -28,7 +28,7 @@ import io.lakefs.clients.api.TemplatesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("/api/v1");
+ defaultClient.setBasePath("http://localhost/api/v1");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
@@ -41,6 +41,10 @@ public class Example {
// 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");
@@ -53,10 +57,6 @@ public class Example {
// 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");
-
TemplatesApi apiInstance = new TemplatesApi(defaultClient);
String templateLocation = "spark.submit.conf.tt"; // String | URL of the template; must be relative (to a URL configured on the server).
Map params = new HashMap(); // Map |
@@ -76,10 +76,10 @@ public class Example {
### Parameters
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **templateLocation** | **String**| URL of the template; must be relative (to a URL configured on the server). | |
-| **params** | [**Map<String, String>**](String.md)| | [optional] |
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **templateLocation** | **String**| URL of the template; must be relative (to a URL configured on the server). |
+ **params** | [**Map<String, String>**](String.md)| | [optional]
### Return type
@@ -87,7 +87,7 @@ public class Example {
### 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)
+[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
@@ -97,8 +97,8 @@ public class Example {
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | expanded template | - |
-| **401** | Unauthorized | - |
-| **404** | Resource Not Found | - |
-| **0** | Internal Server Error | - |
+**200** | expanded template | - |
+**401** | Unauthorized | - |
+**404** | Resource Not Found | - |
+**0** | Internal Server Error | - |
diff --git a/clients/java/docs/UnderlyingObjectProperties.md b/clients/java/docs/UnderlyingObjectProperties.md
index d3abc8fb19b..f9be999984a 100644
--- a/clients/java/docs/UnderlyingObjectProperties.md
+++ b/clients/java/docs/UnderlyingObjectProperties.md
@@ -5,9 +5,9 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**storageClass** | **String** | | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**storageClass** | **String** | | [optional]
diff --git a/clients/java/docs/UpdatePasswordByToken.md b/clients/java/docs/UpdatePasswordByToken.md
index 14d1d4e2c4d..401c7b16338 100644
--- a/clients/java/docs/UpdatePasswordByToken.md
+++ b/clients/java/docs/UpdatePasswordByToken.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**token** | **String** | token used for authentication | |
-|**newPassword** | **String** | new password to update | |
-|**email** | **String** | optional user email to match the token for verification | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**token** | **String** | token used for authentication |
+**newPassword** | **String** | new password to update |
+**email** | **String** | optional user email to match the token for verification | [optional]
diff --git a/clients/java/docs/User.md b/clients/java/docs/User.md
index a63cd2750fd..53510057b23 100644
--- a/clients/java/docs/User.md
+++ b/clients/java/docs/User.md
@@ -5,12 +5,12 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **String** | a unique identifier for the user. In password-based authentication, this is the email. | |
-|**creationDate** | **Long** | Unix Epoch in seconds | |
-|**friendlyName** | **String** | | [optional] |
-|**email** | **String** | | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | a unique identifier for the user. In password-based authentication, this is the email. |
+**creationDate** | **Long** | Unix Epoch in seconds |
+**friendlyName** | **String** | | [optional]
+**email** | **String** | | [optional]
diff --git a/clients/java/docs/UserCreation.md b/clients/java/docs/UserCreation.md
index a04e20a21c0..a384671ee29 100644
--- a/clients/java/docs/UserCreation.md
+++ b/clients/java/docs/UserCreation.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**id** | **String** | a unique identifier for the user. In password-based authentication, this is the email. | |
-|**inviteUser** | **Boolean** | | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **String** | a unique identifier for the user. In password-based authentication, this is the email. |
+**inviteUser** | **Boolean** | | [optional]
diff --git a/clients/java/docs/UserList.md b/clients/java/docs/UserList.md
index b9d8c421208..b60eea08366 100644
--- a/clients/java/docs/UserList.md
+++ b/clients/java/docs/UserList.md
@@ -5,10 +5,10 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**pagination** | [**Pagination**](Pagination.md) | | |
-|**results** | [**List<User>**](User.md) | | |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pagination** | [**Pagination**](Pagination.md) | |
+**results** | [**List<User>**](User.md) | |
diff --git a/clients/java/docs/VersionConfig.md b/clients/java/docs/VersionConfig.md
index 5a4d3a64cc5..c2c5ba5093d 100644
--- a/clients/java/docs/VersionConfig.md
+++ b/clients/java/docs/VersionConfig.md
@@ -5,11 +5,11 @@
## Properties
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**version** | **String** | | [optional] |
-|**upgradeRecommended** | **Boolean** | | [optional] |
-|**upgradeUrl** | **String** | | [optional] |
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**version** | **String** | | [optional]
+**upgradeRecommended** | **Boolean** | | [optional]
+**upgradeUrl** | **String** | | [optional]
diff --git a/clients/java/pom.xml b/clients/java/pom.xml
index 627be7fcb0e..b3038b2f53f 100644
--- a/clients/java/pom.xml
+++ b/clients/java/pom.xml
@@ -55,7 +55,7 @@
org.apache.maven.plugins
maven-enforcer-plugin
- 3.1.0
+ 3.0.0-M1
enforce-maven
@@ -75,7 +75,7 @@
org.apache.maven.plugins
maven-surefire-plugin
- 2.22.2
+ 3.0.0-M4
@@ -87,18 +87,9 @@
methods
10
-
-
-
- org.junit.jupiter
- junit-jupiter-engine
- ${junit-version}
-
-
maven-dependency-plugin
- 3.3.0
package
@@ -111,14 +102,16 @@
+
org.apache.maven.plugins
maven-jar-plugin
- 3.3.0
+ 2.2
+ jar
test-jar
@@ -126,10 +119,11 @@
+
org.codehaus.mojo
build-helper-maven-plugin
- 3.3.0
+ 1.10
add_sources
@@ -160,7 +154,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.4.1
+ 3.1.1
attach-javadocs
@@ -183,7 +177,7 @@
org.apache.maven.plugins
maven-source-plugin
- 3.2.1
+ 2.2.1
attach-sources
@@ -193,48 +187,6 @@
-
-
- com.diffplug.spotless
- spotless-maven-plugin
- ${spotless.version}
-
-
-
-
-
-
- .gitignore
-
-
-
-
-
- true
- 4
-
-
-
-
-
-
-
-
-
- 1.8
-
- true
-
-
-
-
-
-
-
-
@@ -246,7 +198,7 @@
org.apache.maven.plugins
maven-gpg-plugin
- 3.0.1
+ 1.5
sign-artifacts
@@ -263,6 +215,11 @@
+
+ io.swagger
+ swagger-annotations
+ ${swagger-core-version}
+
com.google.code.findbugs
@@ -294,6 +251,11 @@
commons-lang3
${commons-lang3-version}
+
+ org.threeten
+ threetenbp
+ ${threetenbp-version}
+
jakarta.annotation
jakarta.annotation-api
@@ -305,54 +267,33 @@
jackson-databind-nullable
${jackson-databind-nullable-version}
-
-
- javax.ws.rs
- jsr311-api
- ${jsr311-api-version}
-
-
- javax.ws.rs
- javax.ws.rs-api
- ${javax.ws.rs-api-version}
-
- org.junit.jupiter
- junit-jupiter-engine
+ junit
+ junit
${junit-version}
test
-
- org.junit.platform
- junit-platform-runner
- ${junit-platform-runner.version}
- test
-
org.mockito
mockito-core
- ${mockito-core-version}
+ 3.11.2
test
- 1.8
+ 1.7
${java.version}
${java.version}
1.8.5
- 1.6.6
- 4.10.0
- 2.9.1
- 3.12.0
- 0.2.4
+ 1.6.2
+ 4.9.1
+ 2.8.6
+ 3.11
+ 0.2.1
+ 1.5.0
1.3.5
- 5.9.1
- 1.9.1
- 3.12.4
- 2.1.1
- 1.1.1
+ 4.13.1
UTF-8
- 2.27.2
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/ActionsApi.java b/clients/java/src/main/java/io/lakefs/clients/api/ActionsApi.java
index 5802f6b4432..bc0ad1cba1e 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/ActionsApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/ActionsApi.java
@@ -38,12 +38,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.GenericType;
public class ActionsApi {
private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
public ActionsApi() {
this(Configuration.getDefaultApiClient());
@@ -61,22 +58,6 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
/**
* Build call for getRun
* @param repository (required)
@@ -94,25 +75,12 @@ public void setCustomBaseUrl(String customBaseUrl) {
*/
public okhttp3.Call getRunCall(String repository, String runId, 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}/actions/runs/{run_id}"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "run_id" + "}", localVarApiClient.escapeString(runId.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "run_id" + "\\}", localVarApiClient.escapeString(runId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -129,29 +97,31 @@ public okhttp3.Call getRunCall(String repository, String runId, final ApiCallbac
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getRunValidateBeforeCall(String repository, String runId, 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 getRun(Async)");
}
-
+
// verify the required parameter 'runId' is set
if (runId == null) {
throw new ApiException("Missing the required parameter 'runId' when calling getRun(Async)");
}
+
- return getRunCall(repository, runId, _callback);
+ okhttp3.Call localVarCall = getRunCall(repository, runId, _callback);
+ return localVarCall;
}
@@ -240,26 +210,13 @@ public okhttp3.Call getRunAsync(String repository, String runId, final ApiCallba
*/
public okhttp3.Call getRunHookOutputCall(String repository, String runId, String hookRunId, 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}/actions/runs/{run_id}/hooks/{hook_run_id}/output"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "run_id" + "}", localVarApiClient.escapeString(runId.toString()))
- .replace("{" + "hook_run_id" + "}", localVarApiClient.escapeString(hookRunId.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "run_id" + "\\}", localVarApiClient.escapeString(runId.toString()))
+ .replaceAll("\\{" + "hook_run_id" + "\\}", localVarApiClient.escapeString(hookRunId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -268,8 +225,7 @@ public okhttp3.Call getRunHookOutputCall(String repository, String runId, String
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
- "application/octet-stream",
- "application/json"
+ "application/octet-stream", "application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -277,34 +233,36 @@ public okhttp3.Call getRunHookOutputCall(String repository, String runId, String
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getRunHookOutputValidateBeforeCall(String repository, String runId, String hookRunId, 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 getRunHookOutput(Async)");
}
-
+
// verify the required parameter 'runId' is set
if (runId == null) {
throw new ApiException("Missing the required parameter 'runId' when calling getRunHookOutput(Async)");
}
-
+
// verify the required parameter 'hookRunId' is set
if (hookRunId == null) {
throw new ApiException("Missing the required parameter 'hookRunId' when calling getRunHookOutput(Async)");
}
+
- return getRunHookOutputCall(repository, runId, hookRunId, _callback);
+ okhttp3.Call localVarCall = getRunHookOutputCall(repository, runId, hookRunId, _callback);
+ return localVarCall;
}
@@ -398,24 +356,11 @@ public okhttp3.Call getRunHookOutputAsync(String repository, String runId, Strin
*/
public okhttp3.Call listRepositoryRunsCall(String repository, String after, Integer amount, String branch, String commit, 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}/actions/runs"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -448,24 +393,26 @@ public okhttp3.Call listRepositoryRunsCall(String repository, String after, Inte
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 listRepositoryRunsValidateBeforeCall(String repository, String after, Integer amount, String branch, String commit, 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 listRepositoryRuns(Async)");
}
+
- return listRepositoryRunsCall(repository, after, amount, branch, commit, _callback);
+ okhttp3.Call localVarCall = listRepositoryRunsCall(repository, after, amount, branch, commit, _callback);
+ return localVarCall;
}
@@ -564,25 +511,12 @@ public okhttp3.Call listRepositoryRunsAsync(String repository, String after, Int
*/
public okhttp3.Call listRunHooksCall(String repository, String runId, String after, Integer amount, 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}/actions/runs/{run_id}/hooks"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "run_id" + "}", localVarApiClient.escapeString(runId.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "run_id" + "\\}", localVarApiClient.escapeString(runId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -607,29 +541,31 @@ public okhttp3.Call listRunHooksCall(String repository, String runId, String aft
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 listRunHooksValidateBeforeCall(String repository, String runId, String after, Integer amount, 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 listRunHooks(Async)");
}
-
+
// verify the required parameter 'runId' is set
if (runId == null) {
throw new ApiException("Missing the required parameter 'runId' when calling listRunHooks(Async)");
}
+
- return listRunHooksCall(repository, runId, after, amount, _callback);
+ okhttp3.Call localVarCall = listRunHooksCall(repository, runId, after, amount, _callback);
+ return localVarCall;
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/ApiClient.java b/clients/java/src/main/java/io/lakefs/clients/api/ApiClient.java
index 7e206d40c24..8f38b12e601 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/ApiClient.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/ApiClient.java
@@ -18,9 +18,11 @@
import okhttp3.internal.tls.OkHostnameVerifier;
import okhttp3.logging.HttpLoggingInterceptor;
import okhttp3.logging.HttpLoggingInterceptor.Level;
-import okio.Buffer;
import okio.BufferedSink;
import okio.Okio;
+import org.threeten.bp.LocalDate;
+import org.threeten.bp.OffsetDateTime;
+import org.threeten.bp.format.DateTimeFormatter;
import javax.net.ssl.*;
import java.io.File;
@@ -41,9 +43,6 @@
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.text.DateFormat;
-import java.time.LocalDate;
-import java.time.OffsetDateTime;
-import java.time.format.DateTimeFormatter;
import java.util.*;
import java.util.Map.Entry;
import java.util.concurrent.TimeUnit;
@@ -55,21 +54,9 @@
import io.lakefs.clients.api.auth.HttpBearerAuth;
import io.lakefs.clients.api.auth.ApiKeyAuth;
-/**
- * ApiClient class.
- */
public class ApiClient {
- private String basePath = "/api/v1";
- protected List servers = new ArrayList(Arrays.asList(
- new ServerConfiguration(
- "/api/v1",
- "lakeFS server endpoint",
- new HashMap()
- )
- ));
- protected Integer serverIndex = 0;
- protected Map serverVariables = null;
+ private String basePath = "http://localhost/api/v1";
private boolean debugging = false;
private Map defaultHeaderMap = new HashMap();
private Map defaultCookieMap = new HashMap();
@@ -91,7 +78,7 @@ public class ApiClient {
private HttpLoggingInterceptor loggingInterceptor;
- /**
+ /*
* Basic constructor for ApiClient
*/
public ApiClient() {
@@ -100,18 +87,16 @@ public ApiClient() {
// Setup authentications (key: authentication name, value: authentication).
authentications.put("basic_auth", new HttpBasicAuth());
- authentications.put("jwt_token", new HttpBearerAuth("bearer"));
authentications.put("cookie_auth", new ApiKeyAuth("cookie", "internal_auth_session"));
+ authentications.put("jwt_token", new HttpBearerAuth("bearer"));
authentications.put("oidc_auth", new ApiKeyAuth("cookie", "oidc_auth_session"));
authentications.put("saml_auth", new ApiKeyAuth("cookie", "saml_auth_session"));
// Prevent the authentications from being modified.
authentications = Collections.unmodifiableMap(authentications);
}
- /**
+ /*
* Basic constructor with custom OkHttpClient
- *
- * @param client a {@link okhttp3.OkHttpClient} object
*/
public ApiClient(OkHttpClient client) {
init();
@@ -120,8 +105,8 @@ public ApiClient(OkHttpClient client) {
// Setup authentications (key: authentication name, value: authentication).
authentications.put("basic_auth", new HttpBasicAuth());
- authentications.put("jwt_token", new HttpBearerAuth("bearer"));
authentications.put("cookie_auth", new ApiKeyAuth("cookie", "internal_auth_session"));
+ authentications.put("jwt_token", new HttpBearerAuth("bearer"));
authentications.put("oidc_auth", new ApiKeyAuth("cookie", "oidc_auth_session"));
authentications.put("saml_auth", new ApiKeyAuth("cookie", "saml_auth_session"));
// Prevent the authentications from being modified.
@@ -165,39 +150,11 @@ public String getBasePath() {
/**
* Set base path
*
- * @param basePath Base path of the URL (e.g /api/v1
+ * @param basePath Base path of the URL (e.g http://localhost/api/v1
* @return An instance of OkHttpClient
*/
public ApiClient setBasePath(String basePath) {
this.basePath = basePath;
- this.serverIndex = null;
- return this;
- }
-
- public List getServers() {
- return servers;
- }
-
- public ApiClient setServers(List servers) {
- this.servers = servers;
- return this;
- }
-
- public Integer getServerIndex() {
- return serverIndex;
- }
-
- public ApiClient setServerIndex(Integer serverIndex) {
- this.serverIndex = serverIndex;
- return this;
- }
-
- public Map getServerVariables() {
- return serverVariables;
- }
-
- public ApiClient setServerVariables(Map serverVariables) {
- this.serverVariables = serverVariables;
return this;
}
@@ -215,7 +172,7 @@ public OkHttpClient getHttpClient() {
*
* @param newHttpClient An instance of OkHttpClient
* @return Api Client
- * @throws java.lang.NullPointerException when newHttpClient is null
+ * @throws NullPointerException when newHttpClient is null
*/
public ApiClient setHttpClient(OkHttpClient newHttpClient) {
this.httpClient = Objects.requireNonNull(newHttpClient, "HttpClient must not be null!");
@@ -287,11 +244,6 @@ public ApiClient setSslCaCert(InputStream sslCaCert) {
return this;
}
- /**
- * Getter for the field keyManagers
.
- *
- * @return an array of {@link javax.net.ssl.KeyManager} objects
- */
public KeyManager[] getKeyManagers() {
return keyManagers;
}
@@ -309,67 +261,32 @@ public ApiClient setKeyManagers(KeyManager[] managers) {
return this;
}
- /**
- * Getter for the field dateFormat
.
- *
- * @return a {@link java.text.DateFormat} object
- */
public DateFormat getDateFormat() {
return dateFormat;
}
- /**
- * Setter for the field dateFormat
.
- *
- * @param dateFormat a {@link java.text.DateFormat} object
- * @return a {@link io.lakefs.clients.api.ApiClient} object
- */
public ApiClient setDateFormat(DateFormat dateFormat) {
- JSON.setDateFormat(dateFormat);
+ this.json.setDateFormat(dateFormat);
return this;
}
- /**
- * Set SqlDateFormat.
- *
- * @param dateFormat a {@link java.text.DateFormat} object
- * @return a {@link io.lakefs.clients.api.ApiClient} object
- */
public ApiClient setSqlDateFormat(DateFormat dateFormat) {
- JSON.setSqlDateFormat(dateFormat);
+ this.json.setSqlDateFormat(dateFormat);
return this;
}
- /**
- * Set OffsetDateTimeFormat.
- *
- * @param dateFormat a {@link java.time.format.DateTimeFormatter} object
- * @return a {@link io.lakefs.clients.api.ApiClient} object
- */
public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) {
- JSON.setOffsetDateTimeFormat(dateFormat);
+ this.json.setOffsetDateTimeFormat(dateFormat);
return this;
}
- /**
- * Set LocalDateFormat.
- *
- * @param dateFormat a {@link java.time.format.DateTimeFormatter} object
- * @return a {@link io.lakefs.clients.api.ApiClient} object
- */
public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) {
- JSON.setLocalDateFormat(dateFormat);
+ this.json.setLocalDateFormat(dateFormat);
return this;
}
- /**
- * Set LenientOnJson.
- *
- * @param lenientOnJson a boolean
- * @return a {@link io.lakefs.clients.api.ApiClient} object
- */
public ApiClient setLenientOnJson(boolean lenientOnJson) {
- JSON.setLenientOnJson(lenientOnJson);
+ this.json.setLenientOnJson(lenientOnJson);
return this;
}
@@ -475,18 +392,6 @@ public void setAccessToken(String accessToken) {
throw new RuntimeException("No OAuth2 authentication configured!");
}
- /**
- * Helper method to set credentials for AWSV4 Signature
- *
- * @param accessKey Access Key
- * @param secretKey Secret Key
- * @param region Region
- * @param service Service to access to
- */
- public void setAWS4Configuration(String accessKey, String secretKey, String region, String service) {
- throw new RuntimeException("No AWS4 authentication configured!");
- }
-
/**
* Set the User-Agent header's value (by adding to the default header map).
*
@@ -589,7 +494,7 @@ public int getConnectTimeout() {
/**
* Sets the connect timeout (in milliseconds).
* A value of 0 means no timeout, otherwise values must be between 1 and
- * {@link java.lang.Integer#MAX_VALUE}.
+ * {@link Integer#MAX_VALUE}.
*
* @param connectionTimeout connection timeout in milliseconds
* @return Api client
@@ -611,7 +516,7 @@ public int getReadTimeout() {
/**
* Sets the read timeout (in milliseconds).
* A value of 0 means no timeout, otherwise values must be between 1 and
- * {@link java.lang.Integer#MAX_VALUE}.
+ * {@link Integer#MAX_VALUE}.
*
* @param readTimeout read timeout in milliseconds
* @return Api client
@@ -633,7 +538,7 @@ public int getWriteTimeout() {
/**
* Sets the write timeout (in milliseconds).
* A value of 0 means no timeout, otherwise values must be between 1 and
- * {@link java.lang.Integer#MAX_VALUE}.
+ * {@link Integer#MAX_VALUE}.
*
* @param writeTimeout connection timeout in milliseconds
* @return Api client
@@ -655,7 +560,7 @@ public String parameterToString(Object param) {
return "";
} else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) {
//Serialize to json string and remove the " enclosing characters
- String jsonStr = JSON.serialize(param);
+ String jsonStr = json.serialize(param);
return jsonStr.substring(1, jsonStr.length() - 1);
} else if (param instanceof Collection) {
StringBuilder b = new StringBuilder();
@@ -663,7 +568,7 @@ public String parameterToString(Object param) {
if (b.length() > 0) {
b.append(",");
}
- b.append(o);
+ b.append(String.valueOf(o));
}
return b.toString();
} else {
@@ -831,23 +736,17 @@ public String selectHeaderAccept(String[] accepts) {
*
* @param contentTypes The Content-Type array to select from
* @return The Content-Type header to use. If the given array is empty,
- * returns null. If it matches "any", JSON will be used.
+ * or matches "any", JSON will be used.
*/
public String selectHeaderContentType(String[] contentTypes) {
- if (contentTypes.length == 0) {
- return null;
- }
-
- if (contentTypes[0].equals("*/*")) {
+ if (contentTypes.length == 0 || contentTypes[0].equals("*/*")) {
return "application/json";
}
-
for (String contentType : contentTypes) {
if (isJsonMime(contentType)) {
return contentType;
}
}
-
return contentTypes[0];
}
@@ -873,7 +772,7 @@ public String escapeString(String str) {
* @param response HTTP response
* @param returnType The type of the Java object
* @return The deserialized Java object
- * @throws io.lakefs.clients.api.ApiException If fail to deserialize response body, i.e. cannot read response body
+ * @throws ApiException If fail to deserialize response body, i.e. cannot read response body
* or the Content-Type of the response is not supported.
*/
@SuppressWarnings("unchecked")
@@ -914,7 +813,7 @@ public T deserialize(Response response, Type returnType) throws ApiException
contentType = "application/json";
}
if (isJsonMime(contentType)) {
- return JSON.deserialize(respBody, returnType);
+ return json.deserialize(respBody, returnType);
} else if (returnType.equals(String.class)) {
// Expecting string, return the raw response body.
return (T) respBody;
@@ -934,7 +833,7 @@ public T deserialize(Response response, Type returnType) throws ApiException
* @param obj The Java object
* @param contentType The request Content-Type
* @return The serialized request body
- * @throws io.lakefs.clients.api.ApiException If fail to serialize the given object
+ * @throws ApiException If fail to serialize the given object
*/
public RequestBody serialize(Object obj, String contentType) throws ApiException {
if (obj instanceof byte[]) {
@@ -943,18 +842,14 @@ public RequestBody serialize(Object obj, String contentType) throws ApiException
} else if (obj instanceof File) {
// File body parameter support.
return RequestBody.create((File) obj, MediaType.parse(contentType));
- } else if ("text/plain".equals(contentType) && obj instanceof String) {
- return RequestBody.create((String) obj, MediaType.parse(contentType));
} else if (isJsonMime(contentType)) {
String content;
if (obj != null) {
- content = JSON.serialize(obj);
+ content = json.serialize(obj);
} else {
content = null;
}
return RequestBody.create(content, MediaType.parse(contentType));
- } else if (obj instanceof String) {
- return RequestBody.create((String) obj, MediaType.parse(contentType));
} else {
throw new ApiException("Content type \"" + contentType + "\" is not supported");
}
@@ -964,7 +859,7 @@ public RequestBody serialize(Object obj, String contentType) throws ApiException
* Download file from the given response.
*
* @param response An instance of the Response object
- * @throws io.lakefs.clients.api.ApiException If fail to read file content from response and write to disk
+ * @throws ApiException If fail to read file content from response and write to disk
* @return Downloaded file
*/
public File downloadFileFromResponse(Response response) throws ApiException {
@@ -984,7 +879,7 @@ public File downloadFileFromResponse(Response response) throws ApiException {
*
* @param response An instance of the Response object
* @return Prepared file for the download
- * @throws java.io.IOException If fail to prepare file for download
+ * @throws IOException If fail to prepare file for download
*/
public File prepareDownloadFile(Response response) throws IOException {
String filename = null;
@@ -1028,7 +923,7 @@ public File prepareDownloadFile(Response response) throws IOException {
* @param Type
* @param call An instance of the Call object
* @return ApiResponse<T>
- * @throws io.lakefs.clients.api.ApiException If fail to execute the call
+ * @throws ApiException If fail to execute the call
*/
public ApiResponse execute(Call call) throws ApiException {
return execute(call, null);
@@ -1043,7 +938,7 @@ public ApiResponse execute(Call call) throws ApiException {
* @return ApiResponse object containing response status, headers and
* data, which is a Java object deserialized from response body and would be null
* when returnType is null.
- * @throws io.lakefs.clients.api.ApiException If fail to execute the call
+ * @throws ApiException If fail to execute the call
*/
public ApiResponse execute(Call call, Type returnType) throws ApiException {
try {
@@ -1107,7 +1002,7 @@ public void onResponse(Call call, Response response) throws IOException {
* @param response Response
* @param returnType Return type
* @return Type
- * @throws io.lakefs.clients.api.ApiException If the response has an unsuccessful status code or
+ * @throws ApiException If the response has an unsuccessful status code or
* fail to deserialize the response body
*/
public T handleResponse(Response response, Type returnType) throws ApiException {
@@ -1142,7 +1037,6 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept
/**
* Build HTTP call with the given options.
*
- * @param baseUrl The base URL
* @param path The sub-path of the HTTP URL
* @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE"
* @param queryParams The query parameters
@@ -1154,10 +1048,10 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept
* @param authNames The authentications to apply
* @param callback Callback for upload/download progress
* @return The HTTP call
- * @throws io.lakefs.clients.api.ApiException If fail to serialize the request body object
+ * @throws ApiException If fail to serialize the request body object
*/
- public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException {
- Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback);
+ public Call buildCall(String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException {
+ Request request = buildRequest(path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback);
return httpClient.newCall(request);
}
@@ -1165,7 +1059,6 @@ public Call buildCall(String baseUrl, String path, String method, List que
/**
* Build an HTTP request with the given options.
*
- * @param baseUrl The base URL
* @param path The sub-path of the HTTP URL
* @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE"
* @param queryParams The query parameters
@@ -1177,19 +1070,23 @@ public Call buildCall(String baseUrl, String path, String method, List que
* @param authNames The authentications to apply
* @param callback Callback for upload/download progress
* @return The HTTP request
- * @throws io.lakefs.clients.api.ApiException If fail to serialize the request body object
+ * @throws ApiException If fail to serialize the request body object
*/
- public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException {
- // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams
- List allQueryParams = new ArrayList(queryParams);
- allQueryParams.addAll(collectionQueryParams);
+ public Request buildRequest(String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException {
+ updateParamsForAuth(authNames, queryParams, headerParams, cookieParams);
- final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams);
+ final String url = buildUrl(path, queryParams, collectionQueryParams);
+ final Request.Builder reqBuilder = new Request.Builder().url(url);
+ processHeaderParams(headerParams, reqBuilder);
+ processCookieParams(cookieParams, reqBuilder);
- // prepare HTTP request body
- RequestBody reqBody;
- String contentType = headerParams.get("Content-Type");
+ String contentType = (String) headerParams.get("Content-Type");
+ // ensuring a default content type
+ if (contentType == null) {
+ contentType = "application/json";
+ }
+ RequestBody reqBody;
if (!HttpMethod.permitsRequestBody(method)) {
reqBody = null;
} else if ("application/x-www-form-urlencoded".equals(contentType)) {
@@ -1202,19 +1099,12 @@ public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams) {
+ public String buildUrl(String path, List queryParams, List collectionQueryParams) {
final StringBuilder url = new StringBuilder();
- if (baseUrl != null) {
- url.append(baseUrl).append(path);
- } else {
- String baseURL;
- if (serverIndex != null) {
- if (serverIndex < 0 || serverIndex >= servers.size()) {
- throw new ArrayIndexOutOfBoundsException(String.format(
- "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size()
- ));
- }
- baseURL = servers.get(serverIndex).URL(serverVariables);
- } else {
- baseURL = basePath;
- }
- url.append(baseURL).append(path);
- }
+ url.append(basePath).append(path);
if (queryParams != null && !queryParams.isEmpty()) {
// support (constant) query string in `path`, e.g. "/posts?draft=1"
@@ -1337,19 +1211,14 @@ public void processCookieParams(Map cookieParams, Request.Builde
* @param queryParams List of query parameters
* @param headerParams Map of header parameters
* @param cookieParams Map of cookie parameters
- * @param payload HTTP request body
- * @param method HTTP method
- * @param uri URI
- * @throws io.lakefs.clients.api.ApiException If fails to update the parameters
*/
- public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams,
- Map cookieParams, String payload, String method, URI uri) throws ApiException {
+ public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, Map cookieParams) {
for (String authName : authNames) {
Authentication auth = authentications.get(authName);
if (auth == null) {
throw new RuntimeException("Authentication undefined: " + authName);
}
- auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri);
+ auth.applyToParams(queryParams, headerParams, cookieParams);
}
}
@@ -1379,18 +1248,12 @@ public RequestBody buildRequestBodyMultipart(Map formParams) {
for (Entry param : formParams.entrySet()) {
if (param.getValue() instanceof File) {
File file = (File) param.getValue();
- addPartToMultiPartBuilder(mpBuilder, param.getKey(), file);
- } else if (param.getValue() instanceof List) {
- List list = (List) param.getValue();
- for (Object item: list) {
- if (item instanceof File) {
- addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item);
- } else {
- addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue());
- }
- }
+ Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"; filename=\"" + file.getName() + "\"");
+ MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file));
+ mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType));
} else {
- addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue());
+ Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"");
+ mpBuilder.addPart(partHeaders, RequestBody.create(parameterToString(param.getValue()), null));
}
}
return mpBuilder.build();
@@ -1411,44 +1274,6 @@ public String guessContentTypeFromFile(File file) {
}
}
- /**
- * Add a Content-Disposition Header for the given key and file to the MultipartBody Builder.
- *
- * @param mpBuilder MultipartBody.Builder
- * @param key The key of the Header element
- * @param file The file to add to the Header
- */
- private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) {
- Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\"");
- MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file));
- mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType));
- }
-
- /**
- * Add a Content-Disposition Header for the given key and complex object to the MultipartBody Builder.
- *
- * @param mpBuilder MultipartBody.Builder
- * @param key The key of the Header element
- * @param obj The complex object to add to the Header
- */
- private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) {
- RequestBody requestBody;
- if (obj instanceof String) {
- requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain"));
- } else {
- String content;
- if (obj != null) {
- content = JSON.serialize(obj);
- } else {
- content = null;
- }
- requestBody = RequestBody.create(content, MediaType.parse("application/json"));
- }
-
- Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"");
- mpBuilder.addPart(partHeaders, requestBody);
- }
-
/**
* Get network interceptor to add it to the httpClient to track download progress for
* async requests.
@@ -1516,7 +1341,7 @@ public boolean verify(String hostname, SSLSession session) {
KeyStore caKeyStore = newEmptyKeyStore(password);
int index = 0;
for (Certificate certificate : certificates) {
- String certificateAlias = "ca" + (index++);
+ String certificateAlias = "ca" + Integer.toString(index++);
caKeyStore.setCertificateEntry(certificateAlias, certificate);
}
trustManagerFactory.init(caKeyStore);
@@ -1545,26 +1370,4 @@ private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityExcepti
throw new AssertionError(e);
}
}
-
- /**
- * Convert the HTTP request body to a string.
- *
- * @param requestBody The HTTP request object
- * @return The string representation of the HTTP request body
- * @throws io.lakefs.clients.api.ApiException If fail to serialize the request body object into a string
- */
- private String requestBodyToString(RequestBody requestBody) throws ApiException {
- if (requestBody != null) {
- try {
- final Buffer buffer = new Buffer();
- requestBody.writeTo(buffer);
- return buffer.readUtf8();
- } catch (final IOException e) {
- throw new ApiException(e);
- }
- }
-
- // empty http request body
- return "";
- }
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/ApiException.java b/clients/java/src/main/java/io/lakefs/clients/api/ApiException.java
index 5c9e62c7619..cb7256181d0 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/ApiException.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/ApiException.java
@@ -16,50 +16,22 @@
import java.util.Map;
import java.util.List;
-import javax.ws.rs.core.GenericType;
-
-/**
- * ApiException class.
- */
-@SuppressWarnings("serial")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApiException extends Exception {
private int code = 0;
private Map> responseHeaders = null;
private String responseBody = null;
-
- /**
- * Constructor for ApiException.
- */
+
public ApiException() {}
- /**
- * Constructor for ApiException.
- *
- * @param throwable a {@link java.lang.Throwable} object
- */
public ApiException(Throwable throwable) {
super(throwable);
}
- /**
- * Constructor for ApiException.
- *
- * @param message the error message
- */
public ApiException(String message) {
super(message);
}
- /**
- * Constructor for ApiException.
- *
- * @param message the error message
- * @param throwable a {@link java.lang.Throwable} object
- * @param code HTTP status code
- * @param responseHeaders a {@link java.util.Map} of HTTP response headers
- * @param responseBody the response body
- */
public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) {
super(message, throwable);
this.code = code;
@@ -67,60 +39,23 @@ public ApiException(String message, Throwable throwable, int code, MapConstructor for ApiException.
- *
- * @param message the error message
- * @param code HTTP status code
- * @param responseHeaders a {@link java.util.Map} of HTTP response headers
- * @param responseBody the response body
- */
public ApiException(String message, int code, Map> responseHeaders, String responseBody) {
this(message, (Throwable) null, code, responseHeaders, responseBody);
}
- /**
- * Constructor for ApiException.
- *
- * @param message the error message
- * @param throwable a {@link java.lang.Throwable} object
- * @param code HTTP status code
- * @param responseHeaders a {@link java.util.Map} of HTTP response headers
- */
public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) {
this(message, throwable, code, responseHeaders, null);
}
- /**
- * Constructor for ApiException.
- *
- * @param code HTTP status code
- * @param responseHeaders a {@link java.util.Map} of HTTP response headers
- * @param responseBody the response body
- */
public ApiException(int code, Map> responseHeaders, String responseBody) {
- this("Response Code: " + code + " Response Body: " + responseBody, (Throwable) null, code, responseHeaders, responseBody);
+ this((String) null, (Throwable) null, code, responseHeaders, responseBody);
}
- /**
- * Constructor for ApiException.
- *
- * @param code HTTP status code
- * @param message a {@link java.lang.String} object
- */
public ApiException(int code, String message) {
super(message);
this.code = code;
}
- /**
- * Constructor for ApiException.
- *
- * @param code HTTP status code
- * @param message the error message
- * @param responseHeaders a {@link java.util.Map} of HTTP response headers
- * @param responseBody the response body
- */
public ApiException(int code, String message, Map> responseHeaders, String responseBody) {
this(code, message);
this.responseHeaders = responseHeaders;
@@ -153,14 +88,4 @@ public Map> getResponseHeaders() {
public String getResponseBody() {
return responseBody;
}
-
- /**
- * Get the exception message including HTTP response data.
- *
- * @return The exception message
- */
- public String getMessage() {
- return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s",
- super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders());
- }
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/ApiResponse.java b/clients/java/src/main/java/io/lakefs/clients/api/ApiResponse.java
index 85f7ff2f787..4a696a96c8d 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/ApiResponse.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/ApiResponse.java
@@ -18,6 +18,8 @@
/**
* API response returned by API call.
+ *
+ * @param The type of data that is deserialized from response body
*/
public class ApiResponse {
final private int statusCode;
@@ -25,8 +27,6 @@ public class ApiResponse {
final private T data;
/**
- * Constructor for ApiResponse.
- *
* @param statusCode The status code of HTTP response
* @param headers The headers of HTTP response
*/
@@ -35,8 +35,6 @@ public ApiResponse(int statusCode, Map> headers) {
}
/**
- * Constructor for ApiResponse.
- *
* @param statusCode The status code of HTTP response
* @param headers The headers of HTTP response
* @param data The object deserialized from response bod
@@ -47,29 +45,14 @@ public ApiResponse(int statusCode, Map> headers, T data) {
this.data = data;
}
- /**
- * Get the status code
.
- *
- * @return the status code
- */
public int getStatusCode() {
return statusCode;
}
- /**
- * Get the headers
.
- *
- * @return a {@link java.util.Map} of headers
- */
public Map> getHeaders() {
return headers;
}
- /**
- * Get the data
.
- *
- * @return the data
- */
public T getData() {
return data;
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/AuthApi.java b/clients/java/src/main/java/io/lakefs/clients/api/AuthApi.java
index 5fec2522bb7..8b5266d4d65 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/AuthApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/AuthApi.java
@@ -51,12 +51,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.GenericType;
public class AuthApi {
private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
public AuthApi() {
this(Configuration.getDefaultApiClient());
@@ -74,22 +71,6 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
/**
* Build call for addGroupMembership
* @param groupId (required)
@@ -107,25 +88,12 @@ public void setCustomBaseUrl(String customBaseUrl) {
*/
public okhttp3.Call addGroupMembershipCall(String groupId, String userId, 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/groups/{groupId}/members/{userId}"
- .replace("{" + "groupId" + "}", localVarApiClient.escapeString(groupId.toString()))
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()));
+ .replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString()))
+ .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -142,29 +110,31 @@ public okhttp3.Call addGroupMembershipCall(String groupId, String userId, final
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 addGroupMembershipValidateBeforeCall(String groupId, String userId, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'groupId' is set
if (groupId == null) {
throw new ApiException("Missing the required parameter 'groupId' when calling addGroupMembership(Async)");
}
-
+
// verify the required parameter 'userId' is set
if (userId == null) {
throw new ApiException("Missing the required parameter 'userId' when calling addGroupMembership(Async)");
}
+
- return addGroupMembershipCall(groupId, userId, _callback);
+ okhttp3.Call localVarCall = addGroupMembershipCall(groupId, userId, _callback);
+ return localVarCall;
}
@@ -248,25 +218,12 @@ public okhttp3.Call addGroupMembershipAsync(String groupId, String userId, final
*/
public okhttp3.Call attachPolicyToGroupCall(String groupId, String policyId, 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/groups/{groupId}/policies/{policyId}"
- .replace("{" + "groupId" + "}", localVarApiClient.escapeString(groupId.toString()))
- .replace("{" + "policyId" + "}", localVarApiClient.escapeString(policyId.toString()));
+ .replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString()))
+ .replaceAll("\\{" + "policyId" + "\\}", localVarApiClient.escapeString(policyId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -283,29 +240,31 @@ public okhttp3.Call attachPolicyToGroupCall(String groupId, String policyId, fin
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 attachPolicyToGroupValidateBeforeCall(String groupId, String policyId, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'groupId' is set
if (groupId == null) {
throw new ApiException("Missing the required parameter 'groupId' when calling attachPolicyToGroup(Async)");
}
-
+
// verify the required parameter 'policyId' is set
if (policyId == null) {
throw new ApiException("Missing the required parameter 'policyId' when calling attachPolicyToGroup(Async)");
}
+
- return attachPolicyToGroupCall(groupId, policyId, _callback);
+ okhttp3.Call localVarCall = attachPolicyToGroupCall(groupId, policyId, _callback);
+ return localVarCall;
}
@@ -389,25 +348,12 @@ public okhttp3.Call attachPolicyToGroupAsync(String groupId, String policyId, fi
*/
public okhttp3.Call attachPolicyToUserCall(String userId, String policyId, 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/users/{userId}/policies/{policyId}"
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()))
- .replace("{" + "policyId" + "}", localVarApiClient.escapeString(policyId.toString()));
+ .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()))
+ .replaceAll("\\{" + "policyId" + "\\}", localVarApiClient.escapeString(policyId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -424,29 +370,31 @@ public okhttp3.Call attachPolicyToUserCall(String userId, String policyId, final
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 attachPolicyToUserValidateBeforeCall(String userId, String policyId, 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 attachPolicyToUser(Async)");
}
-
+
// verify the required parameter 'policyId' is set
if (policyId == null) {
throw new ApiException("Missing the required parameter 'policyId' when calling attachPolicyToUser(Async)");
}
+
- return attachPolicyToUserCall(userId, policyId, _callback);
+ okhttp3.Call localVarCall = attachPolicyToUserCall(userId, policyId, _callback);
+ return localVarCall;
}
@@ -529,24 +477,11 @@ public okhttp3.Call attachPolicyToUserAsync(String userId, String policyId, fina
*/
public okhttp3.Call createCredentialsCall(String userId, 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/users/{userId}/credentials"
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()));
+ .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -563,24 +498,26 @@ public okhttp3.Call createCredentialsCall(String userId, final ApiCallback _call
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 createCredentialsValidateBeforeCall(String userId, 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 createCredentials(Async)");
}
+
- return createCredentialsCall(userId, _callback);
+ okhttp3.Call localVarCall = createCredentialsCall(userId, _callback);
+ return localVarCall;
}
@@ -664,19 +601,6 @@ public okhttp3.Call createCredentialsAsync(String userId, final ApiCallback
*/
public okhttp3.Call createGroupCall(GroupCreation groupCreation, 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 = groupCreation;
// create path and map variables
@@ -700,17 +624,18 @@ public okhttp3.Call createGroupCall(GroupCreation groupCreation, final ApiCallba
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 createGroupValidateBeforeCall(GroupCreation groupCreation, final ApiCallback _callback) throws ApiException {
- return createGroupCall(groupCreation, _callback);
+
+
+ okhttp3.Call localVarCall = createGroupCall(groupCreation, _callback);
+ return localVarCall;
}
@@ -795,19 +720,6 @@ public okhttp3.Call createGroupAsync(GroupCreation groupCreation, final ApiCallb
*/
public okhttp3.Call createPolicyCall(Policy policy, 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 = policy;
// create path and map variables
@@ -831,22 +743,23 @@ public okhttp3.Call createPolicyCall(Policy policy, final ApiCallback _callback)
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 createPolicyValidateBeforeCall(Policy policy, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'policy' is set
if (policy == null) {
throw new ApiException("Missing the required parameter 'policy' when calling createPolicy(Async)");
}
+
- return createPolicyCall(policy, _callback);
+ okhttp3.Call localVarCall = createPolicyCall(policy, _callback);
+ return localVarCall;
}
@@ -934,19 +847,6 @@ public okhttp3.Call createPolicyAsync(Policy policy, final ApiCallback _
*/
public okhttp3.Call createUserCall(UserCreation userCreation, 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 = userCreation;
// create path and map variables
@@ -970,17 +870,18 @@ public okhttp3.Call createUserCall(UserCreation userCreation, final ApiCallback
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 createUserValidateBeforeCall(UserCreation userCreation, final ApiCallback _callback) throws ApiException {
- return createUserCall(userCreation, _callback);
+
+
+ okhttp3.Call localVarCall = createUserCall(userCreation, _callback);
+ return localVarCall;
}
@@ -1068,25 +969,12 @@ public okhttp3.Call createUserAsync(UserCreation userCreation, final ApiCallback
*/
public okhttp3.Call deleteCredentialsCall(String userId, String accessKeyId, 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/users/{userId}/credentials/{accessKeyId}"
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()))
- .replace("{" + "accessKeyId" + "}", localVarApiClient.escapeString(accessKeyId.toString()));
+ .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()))
+ .replaceAll("\\{" + "accessKeyId" + "\\}", localVarApiClient.escapeString(accessKeyId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1103,29 +991,31 @@ public okhttp3.Call deleteCredentialsCall(String userId, String accessKeyId, fin
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- 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);
+ 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 deleteCredentialsValidateBeforeCall(String userId, String accessKeyId, 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 deleteCredentials(Async)");
}
-
+
// verify the required parameter 'accessKeyId' is set
if (accessKeyId == null) {
throw new ApiException("Missing the required parameter 'accessKeyId' when calling deleteCredentials(Async)");
}
+
- return deleteCredentialsCall(userId, accessKeyId, _callback);
+ okhttp3.Call localVarCall = deleteCredentialsCall(userId, accessKeyId, _callback);
+ return localVarCall;
}
@@ -1208,24 +1098,11 @@ public okhttp3.Call deleteCredentialsAsync(String userId, String accessKeyId, fi
*/
public okhttp3.Call deleteGroupCall(String groupId, 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/groups/{groupId}"
- .replace("{" + "groupId" + "}", localVarApiClient.escapeString(groupId.toString()));
+ .replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1242,24 +1119,26 @@ public okhttp3.Call deleteGroupCall(String groupId, final ApiCallback _callback)
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- 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);
+ 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 deleteGroupValidateBeforeCall(String groupId, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'groupId' is set
if (groupId == null) {
throw new ApiException("Missing the required parameter 'groupId' when calling deleteGroup(Async)");
}
+
- return deleteGroupCall(groupId, _callback);
+ okhttp3.Call localVarCall = deleteGroupCall(groupId, _callback);
+ return localVarCall;
}
@@ -1340,25 +1219,12 @@ public okhttp3.Call deleteGroupAsync(String groupId, final ApiCallback _ca
*/
public okhttp3.Call deleteGroupMembershipCall(String groupId, String userId, 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/groups/{groupId}/members/{userId}"
- .replace("{" + "groupId" + "}", localVarApiClient.escapeString(groupId.toString()))
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()));
+ .replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString()))
+ .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1375,29 +1241,31 @@ public okhttp3.Call deleteGroupMembershipCall(String groupId, String userId, fin
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- 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);
+ 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 deleteGroupMembershipValidateBeforeCall(String groupId, String userId, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'groupId' is set
if (groupId == null) {
throw new ApiException("Missing the required parameter 'groupId' when calling deleteGroupMembership(Async)");
}
-
+
// verify the required parameter 'userId' is set
if (userId == null) {
throw new ApiException("Missing the required parameter 'userId' when calling deleteGroupMembership(Async)");
}
+
- return deleteGroupMembershipCall(groupId, userId, _callback);
+ okhttp3.Call localVarCall = deleteGroupMembershipCall(groupId, userId, _callback);
+ return localVarCall;
}
@@ -1480,24 +1348,11 @@ public okhttp3.Call deleteGroupMembershipAsync(String groupId, String userId, fi
*/
public okhttp3.Call deletePolicyCall(String policyId, 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/policies/{policyId}"
- .replace("{" + "policyId" + "}", localVarApiClient.escapeString(policyId.toString()));
+ .replaceAll("\\{" + "policyId" + "\\}", localVarApiClient.escapeString(policyId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1514,24 +1369,26 @@ public okhttp3.Call deletePolicyCall(String policyId, final ApiCallback _callbac
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- 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);
+ 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 deletePolicyValidateBeforeCall(String policyId, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'policyId' is set
if (policyId == null) {
throw new ApiException("Missing the required parameter 'policyId' when calling deletePolicy(Async)");
}
+
- return deletePolicyCall(policyId, _callback);
+ okhttp3.Call localVarCall = deletePolicyCall(policyId, _callback);
+ return localVarCall;
}
@@ -1611,24 +1468,11 @@ public okhttp3.Call deletePolicyAsync(String policyId, final ApiCallback _
*/
public okhttp3.Call deleteUserCall(String userId, 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/users/{userId}"
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()));
+ .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1645,24 +1489,26 @@ public okhttp3.Call deleteUserCall(String userId, final ApiCallback _callback) t
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- 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);
+ 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 deleteUserValidateBeforeCall(String userId, 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 deleteUser(Async)");
}
+
- return deleteUserCall(userId, _callback);
+ okhttp3.Call localVarCall = deleteUserCall(userId, _callback);
+ return localVarCall;
}
@@ -1743,25 +1589,12 @@ public okhttp3.Call deleteUserAsync(String userId, final ApiCallback _call
*/
public okhttp3.Call detachPolicyFromGroupCall(String groupId, String policyId, 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/groups/{groupId}/policies/{policyId}"
- .replace("{" + "groupId" + "}", localVarApiClient.escapeString(groupId.toString()))
- .replace("{" + "policyId" + "}", localVarApiClient.escapeString(policyId.toString()));
+ .replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString()))
+ .replaceAll("\\{" + "policyId" + "\\}", localVarApiClient.escapeString(policyId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1778,29 +1611,31 @@ public okhttp3.Call detachPolicyFromGroupCall(String groupId, String policyId, f
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- 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);
+ 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 detachPolicyFromGroupValidateBeforeCall(String groupId, String policyId, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'groupId' is set
if (groupId == null) {
throw new ApiException("Missing the required parameter 'groupId' when calling detachPolicyFromGroup(Async)");
}
-
+
// verify the required parameter 'policyId' is set
if (policyId == null) {
throw new ApiException("Missing the required parameter 'policyId' when calling detachPolicyFromGroup(Async)");
}
+
- return detachPolicyFromGroupCall(groupId, policyId, _callback);
+ okhttp3.Call localVarCall = detachPolicyFromGroupCall(groupId, policyId, _callback);
+ return localVarCall;
}
@@ -1884,25 +1719,12 @@ public okhttp3.Call detachPolicyFromGroupAsync(String groupId, String policyId,
*/
public okhttp3.Call detachPolicyFromUserCall(String userId, String policyId, 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/users/{userId}/policies/{policyId}"
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()))
- .replace("{" + "policyId" + "}", localVarApiClient.escapeString(policyId.toString()));
+ .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()))
+ .replaceAll("\\{" + "policyId" + "\\}", localVarApiClient.escapeString(policyId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1919,29 +1741,31 @@ public okhttp3.Call detachPolicyFromUserCall(String userId, String policyId, fin
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- 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);
+ 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 detachPolicyFromUserValidateBeforeCall(String userId, String policyId, 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 detachPolicyFromUser(Async)");
}
-
+
// verify the required parameter 'policyId' is set
if (policyId == null) {
throw new ApiException("Missing the required parameter 'policyId' when calling detachPolicyFromUser(Async)");
}
+
- return detachPolicyFromUserCall(userId, policyId, _callback);
+ okhttp3.Call localVarCall = detachPolicyFromUserCall(userId, policyId, _callback);
+ return localVarCall;
}
@@ -2023,19 +1847,6 @@ public okhttp3.Call detachPolicyFromUserAsync(String userId, String policyId, fi
*/
public okhttp3.Call forgotPasswordCall(ForgotPasswordRequest forgotPasswordRequest, 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 = forgotPasswordRequest;
// create path and map variables
@@ -2059,22 +1870,23 @@ public okhttp3.Call forgotPasswordCall(ForgotPasswordRequest forgotPasswordReque
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call forgotPasswordValidateBeforeCall(ForgotPasswordRequest forgotPasswordRequest, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'forgotPasswordRequest' is set
if (forgotPasswordRequest == null) {
throw new ApiException("Missing the required parameter 'forgotPasswordRequest' when calling forgotPassword(Async)");
}
+
- return forgotPasswordCall(forgotPasswordRequest, _callback);
+ okhttp3.Call localVarCall = forgotPasswordCall(forgotPasswordRequest, _callback);
+ return localVarCall;
}
@@ -2148,19 +1960,6 @@ public okhttp3.Call forgotPasswordAsync(ForgotPasswordRequest forgotPasswordRequ
*/
public okhttp3.Call getAuthCapabilitiesCall(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
@@ -2181,19 +1980,21 @@ public okhttp3.Call getAuthCapabilitiesCall(final ApiCallback _callback) throws
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", 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 getAuthCapabilitiesValidateBeforeCall(final ApiCallback _callback) throws ApiException {
- return getAuthCapabilitiesCall(_callback);
+
+
+ okhttp3.Call localVarCall = getAuthCapabilitiesCall(_callback);
+ return localVarCall;
}
@@ -2269,25 +2070,12 @@ public okhttp3.Call getAuthCapabilitiesAsync(final ApiCallback
*/
public okhttp3.Call getCredentialsCall(String userId, String accessKeyId, 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/users/{userId}/credentials/{accessKeyId}"
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()))
- .replace("{" + "accessKeyId" + "}", localVarApiClient.escapeString(accessKeyId.toString()));
+ .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()))
+ .replaceAll("\\{" + "accessKeyId" + "\\}", localVarApiClient.escapeString(accessKeyId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -2304,29 +2092,31 @@ public okhttp3.Call getCredentialsCall(String userId, String accessKeyId, final
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getCredentialsValidateBeforeCall(String userId, String accessKeyId, 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 getCredentials(Async)");
}
-
+
// verify the required parameter 'accessKeyId' is set
if (accessKeyId == null) {
throw new ApiException("Missing the required parameter 'accessKeyId' when calling getCredentials(Async)");
}
+
- return getCredentialsCall(userId, accessKeyId, _callback);
+ okhttp3.Call localVarCall = getCredentialsCall(userId, accessKeyId, _callback);
+ return localVarCall;
}
@@ -2409,19 +2199,6 @@ public okhttp3.Call getCredentialsAsync(String userId, String accessKeyId, final
*/
public okhttp3.Call getCurrentUserCall(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
@@ -2442,19 +2219,21 @@ public okhttp3.Call getCurrentUserCall(final ApiCallback _callback) throws ApiEx
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getCurrentUserValidateBeforeCall(final ApiCallback _callback) throws ApiException {
- return getCurrentUserCall(_callback);
+
+
+ okhttp3.Call localVarCall = getCurrentUserCall(_callback);
+ return localVarCall;
}
@@ -2526,24 +2305,11 @@ public okhttp3.Call getCurrentUserAsync(final ApiCallback _callback
*/
public okhttp3.Call getGroupCall(String groupId, 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/groups/{groupId}"
- .replace("{" + "groupId" + "}", localVarApiClient.escapeString(groupId.toString()));
+ .replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -2560,24 +2326,26 @@ public okhttp3.Call getGroupCall(String groupId, final ApiCallback _callback) th
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getGroupValidateBeforeCall(String groupId, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'groupId' is set
if (groupId == null) {
throw new ApiException("Missing the required parameter 'groupId' when calling getGroup(Async)");
}
+
- return getGroupCall(groupId, _callback);
+ okhttp3.Call localVarCall = getGroupCall(groupId, _callback);
+ return localVarCall;
}
@@ -2661,24 +2429,11 @@ public okhttp3.Call getGroupAsync(String groupId, final ApiCallback _call
*/
public okhttp3.Call getPolicyCall(String policyId, 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/policies/{policyId}"
- .replace("{" + "policyId" + "}", localVarApiClient.escapeString(policyId.toString()));
+ .replaceAll("\\{" + "policyId" + "\\}", localVarApiClient.escapeString(policyId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -2695,24 +2450,26 @@ public okhttp3.Call getPolicyCall(String policyId, final ApiCallback _callback)
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getPolicyValidateBeforeCall(String policyId, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'policyId' is set
if (policyId == null) {
throw new ApiException("Missing the required parameter 'policyId' when calling getPolicy(Async)");
}
+
- return getPolicyCall(policyId, _callback);
+ okhttp3.Call localVarCall = getPolicyCall(policyId, _callback);
+ return localVarCall;
}
@@ -2796,24 +2553,11 @@ public okhttp3.Call getPolicyAsync(String policyId, final ApiCallback _c
*/
public okhttp3.Call getUserCall(String userId, 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/users/{userId}"
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()));
+ .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -2830,24 +2574,26 @@ public okhttp3.Call getUserCall(String userId, final ApiCallback _callback) thro
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getUserValidateBeforeCall(String userId, 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 getUser(Async)");
}
+
- return getUserCall(userId, _callback);
+ okhttp3.Call localVarCall = getUserCall(userId, _callback);
+ return localVarCall;
}
@@ -2933,24 +2679,11 @@ public okhttp3.Call getUserAsync(String userId, final ApiCallback _callbac
*/
public okhttp3.Call listGroupMembersCall(String groupId, String prefix, String after, Integer amount, 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/groups/{groupId}/members"
- .replace("{" + "groupId" + "}", localVarApiClient.escapeString(groupId.toString()));
+ .replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -2979,24 +2712,26 @@ public okhttp3.Call listGroupMembersCall(String groupId, String prefix, String a
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 listGroupMembersValidateBeforeCall(String groupId, String prefix, String after, Integer amount, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'groupId' is set
if (groupId == null) {
throw new ApiException("Missing the required parameter 'groupId' when calling listGroupMembers(Async)");
}
+
- return listGroupMembersCall(groupId, prefix, after, amount, _callback);
+ okhttp3.Call localVarCall = listGroupMembersCall(groupId, prefix, after, amount, _callback);
+ return localVarCall;
}
@@ -3089,24 +2824,11 @@ public okhttp3.Call listGroupMembersAsync(String groupId, String prefix, String
*/
public okhttp3.Call listGroupPoliciesCall(String groupId, String prefix, String after, Integer amount, 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/groups/{groupId}/policies"
- .replace("{" + "groupId" + "}", localVarApiClient.escapeString(groupId.toString()));
+ .replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -3135,24 +2857,26 @@ public okhttp3.Call listGroupPoliciesCall(String groupId, String prefix, String
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 listGroupPoliciesValidateBeforeCall(String groupId, String prefix, String after, Integer amount, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'groupId' is set
if (groupId == null) {
throw new ApiException("Missing the required parameter 'groupId' when calling listGroupPolicies(Async)");
}
+
- return listGroupPoliciesCall(groupId, prefix, after, amount, _callback);
+ okhttp3.Call localVarCall = listGroupPoliciesCall(groupId, prefix, after, amount, _callback);
+ return localVarCall;
}
@@ -3246,19 +2970,6 @@ public okhttp3.Call listGroupPoliciesAsync(String groupId, String prefix, String
*/
public okhttp3.Call listGroupsCall(String prefix, String after, Integer amount, 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
@@ -3291,19 +3002,21 @@ public okhttp3.Call listGroupsCall(String prefix, String after, Integer amount,
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 listGroupsValidateBeforeCall(String prefix, String after, Integer amount, final ApiCallback _callback) throws ApiException {
- return listGroupsCall(prefix, after, amount, _callback);
+
+
+ okhttp3.Call localVarCall = listGroupsCall(prefix, after, amount, _callback);
+ return localVarCall;
}
@@ -3391,19 +3104,6 @@ public okhttp3.Call listGroupsAsync(String prefix, String after, Integer amount,
*/
public okhttp3.Call listPoliciesCall(String prefix, String after, Integer amount, 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
@@ -3436,19 +3136,21 @@ public okhttp3.Call listPoliciesCall(String prefix, String after, Integer amount
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 listPoliciesValidateBeforeCall(String prefix, String after, Integer amount, final ApiCallback _callback) throws ApiException {
- return listPoliciesCall(prefix, after, amount, _callback);
+
+
+ okhttp3.Call localVarCall = listPoliciesCall(prefix, after, amount, _callback);
+ return localVarCall;
}
@@ -3538,24 +3240,11 @@ public okhttp3.Call listPoliciesAsync(String prefix, String after, Integer amoun
*/
public okhttp3.Call listUserCredentialsCall(String userId, String prefix, String after, Integer amount, 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/users/{userId}/credentials"
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()));
+ .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -3584,24 +3273,26 @@ public okhttp3.Call listUserCredentialsCall(String userId, String prefix, String
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 listUserCredentialsValidateBeforeCall(String userId, String prefix, String after, Integer amount, 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 listUserCredentials(Async)");
}
+
- return listUserCredentialsCall(userId, prefix, after, amount, _callback);
+ okhttp3.Call localVarCall = listUserCredentialsCall(userId, prefix, after, amount, _callback);
+ return localVarCall;
}
@@ -3697,24 +3388,11 @@ public okhttp3.Call listUserCredentialsAsync(String userId, String prefix, Strin
*/
public okhttp3.Call listUserGroupsCall(String userId, String prefix, String after, Integer amount, 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/users/{userId}/groups"
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()));
+ .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -3743,24 +3421,26 @@ public okhttp3.Call listUserGroupsCall(String userId, String prefix, String afte
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 listUserGroupsValidateBeforeCall(String userId, String prefix, String after, Integer amount, 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 listUserGroups(Async)");
}
+
- return listUserGroupsCall(userId, prefix, after, amount, _callback);
+ okhttp3.Call localVarCall = listUserGroupsCall(userId, prefix, after, amount, _callback);
+ return localVarCall;
}
@@ -3857,24 +3537,11 @@ public okhttp3.Call listUserGroupsAsync(String userId, String prefix, String aft
*/
public okhttp3.Call listUserPoliciesCall(String userId, String prefix, String after, Integer amount, Boolean effective, 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/users/{userId}/policies"
- .replace("{" + "userId" + "}", localVarApiClient.escapeString(userId.toString()));
+ .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -3907,24 +3574,26 @@ public okhttp3.Call listUserPoliciesCall(String userId, String prefix, String af
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 listUserPoliciesValidateBeforeCall(String userId, String prefix, String after, Integer amount, Boolean effective, 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 listUserPolicies(Async)");
}
+
- return listUserPoliciesCall(userId, prefix, after, amount, effective, _callback);
+ okhttp3.Call localVarCall = listUserPoliciesCall(userId, prefix, after, amount, effective, _callback);
+ return localVarCall;
}
@@ -4021,19 +3690,6 @@ public okhttp3.Call listUserPoliciesAsync(String userId, String prefix, String a
*/
public okhttp3.Call listUsersCall(String prefix, String after, Integer amount, 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
@@ -4066,19 +3722,21 @@ public okhttp3.Call listUsersCall(String prefix, String after, Integer amount, f
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 listUsersValidateBeforeCall(String prefix, String after, Integer amount, final ApiCallback _callback) throws ApiException {
- return listUsersCall(prefix, after, amount, _callback);
+
+
+ okhttp3.Call localVarCall = listUsersCall(prefix, after, amount, _callback);
+ return localVarCall;
}
@@ -4164,19 +3822,6 @@ public okhttp3.Call listUsersAsync(String prefix, String after, Integer amount,
*/
public okhttp3.Call loginCall(LoginInformation loginInformation, 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 = loginInformation;
// create path and map variables
@@ -4200,17 +3845,18 @@ public okhttp3.Call loginCall(LoginInformation loginInformation, final ApiCallba
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call loginValidateBeforeCall(LoginInformation loginInformation, final ApiCallback _callback) throws ApiException {
- return loginCall(loginInformation, _callback);
+
+
+ okhttp3.Call localVarCall = loginCall(loginInformation, _callback);
+ return localVarCall;
}
@@ -4290,19 +3936,6 @@ public okhttp3.Call loginAsync(LoginInformation loginInformation, final ApiCallb
*/
public okhttp3.Call updatePasswordCall(UpdatePasswordByToken updatePasswordByToken, 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 = updatePasswordByToken;
// create path and map variables
@@ -4326,22 +3959,23 @@ public okhttp3.Call updatePasswordCall(UpdatePasswordByToken updatePasswordByTok
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "cookie_auth" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call updatePasswordValidateBeforeCall(UpdatePasswordByToken updatePasswordByToken, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'updatePasswordByToken' is set
if (updatePasswordByToken == null) {
throw new ApiException("Missing the required parameter 'updatePasswordByToken' when calling updatePassword(Async)");
}
+
- return updatePasswordCall(updatePasswordByToken, _callback);
+ okhttp3.Call localVarCall = updatePasswordCall(updatePasswordByToken, _callback);
+ return localVarCall;
}
@@ -4420,24 +4054,11 @@ public okhttp3.Call updatePasswordAsync(UpdatePasswordByToken updatePasswordByTo
*/
public okhttp3.Call updatePolicyCall(String policyId, Policy policy, 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 = policy;
// create path and map variables
String localVarPath = "/auth/policies/{policyId}"
- .replace("{" + "policyId" + "}", localVarApiClient.escapeString(policyId.toString()));
+ .replaceAll("\\{" + "policyId" + "\\}", localVarApiClient.escapeString(policyId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -4457,27 +4078,28 @@ public okhttp3.Call updatePolicyCall(String policyId, Policy policy, final ApiCa
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 updatePolicyValidateBeforeCall(String policyId, Policy policy, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'policyId' is set
if (policyId == null) {
throw new ApiException("Missing the required parameter 'policyId' when calling updatePolicy(Async)");
}
-
+
// verify the required parameter 'policy' is set
if (policy == null) {
throw new ApiException("Missing the required parameter 'policy' when calling updatePolicy(Async)");
}
+
- return updatePolicyCall(policyId, policy, _callback);
+ okhttp3.Call localVarCall = updatePolicyCall(policyId, policy, _callback);
+ return localVarCall;
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/BranchesApi.java b/clients/java/src/main/java/io/lakefs/clients/api/BranchesApi.java
index ba0b064977e..e0a1b2d73f1 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/BranchesApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/BranchesApi.java
@@ -42,12 +42,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.GenericType;
public class BranchesApi {
private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
public BranchesApi() {
this(Configuration.getDefaultApiClient());
@@ -65,22 +62,6 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
/**
* Build call for cherryPick
* @param repository (required)
@@ -101,25 +82,12 @@ public void setCustomBaseUrl(String customBaseUrl) {
*/
public okhttp3.Call cherryPickCall(String repository, String branch, CherryPickCreation cherryPickCreation, 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 = cherryPickCreation;
// create path and map variables
String localVarPath = "/repositories/{repository}/branches/{branch}/cherry-pick"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -139,32 +107,33 @@ public okhttp3.Call cherryPickCall(String repository, String branch, CherryPickC
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 cherryPickValidateBeforeCall(String repository, String branch, CherryPickCreation cherryPickCreation, 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 cherryPick(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling cherryPick(Async)");
}
-
+
// verify the required parameter 'cherryPickCreation' is set
if (cherryPickCreation == null) {
throw new ApiException("Missing the required parameter 'cherryPickCreation' when calling cherryPick(Async)");
}
+
- return cherryPickCall(repository, branch, cherryPickCreation, _callback);
+ okhttp3.Call localVarCall = cherryPickCall(repository, branch, cherryPickCreation, _callback);
+ return localVarCall;
}
@@ -263,24 +232,11 @@ public okhttp3.Call cherryPickAsync(String repository, String branch, CherryPick
*/
public okhttp3.Call createBranchCall(String repository, BranchCreation branchCreation, 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 = branchCreation;
// create path and map variables
String localVarPath = "/repositories/{repository}/branches"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -289,8 +245,7 @@ public okhttp3.Call createBranchCall(String repository, BranchCreation branchCre
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
- "text/html",
- "application/json"
+ "text/html", "application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -301,27 +256,28 @@ public okhttp3.Call createBranchCall(String repository, BranchCreation branchCre
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 createBranchValidateBeforeCall(String repository, BranchCreation branchCreation, 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 createBranch(Async)");
}
-
+
// verify the required parameter 'branchCreation' is set
if (branchCreation == null) {
throw new ApiException("Missing the required parameter 'branchCreation' when calling createBranch(Async)");
}
+
- return createBranchCall(repository, branchCreation, _callback);
+ okhttp3.Call localVarCall = createBranchCall(repository, branchCreation, _callback);
+ return localVarCall;
}
@@ -416,25 +372,12 @@ public okhttp3.Call createBranchAsync(String repository, BranchCreation branchCr
*/
public okhttp3.Call deleteBranchCall(String repository, String branch, 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}/branches/{branch}"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -451,29 +394,31 @@ public okhttp3.Call deleteBranchCall(String repository, String branch, final Api
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- 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);
+ 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 deleteBranchValidateBeforeCall(String repository, String branch, 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 deleteBranch(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling deleteBranch(Async)");
}
+
- return deleteBranchCall(repository, branch, _callback);
+ okhttp3.Call localVarCall = deleteBranchCall(repository, branch, _callback);
+ return localVarCall;
}
@@ -564,25 +509,12 @@ public okhttp3.Call deleteBranchAsync(String repository, String branch, final Ap
*/
public okhttp3.Call diffBranchCall(String repository, String branch, String after, Integer amount, String prefix, String delimiter, 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}/branches/{branch}/diff"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -615,29 +547,31 @@ public okhttp3.Call diffBranchCall(String repository, String branch, String afte
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 diffBranchValidateBeforeCall(String repository, String branch, String after, Integer amount, String prefix, String delimiter, 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 diffBranch(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling diffBranch(Async)");
}
+
- return diffBranchCall(repository, branch, after, amount, prefix, delimiter, _callback);
+ okhttp3.Call localVarCall = diffBranchCall(repository, branch, after, amount, prefix, delimiter, _callback);
+ return localVarCall;
}
@@ -737,25 +671,12 @@ public okhttp3.Call diffBranchAsync(String repository, String branch, String aft
*/
public okhttp3.Call getBranchCall(String repository, String branch, 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}/branches/{branch}"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -772,29 +693,31 @@ public okhttp3.Call getBranchCall(String repository, String branch, final ApiCal
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getBranchValidateBeforeCall(String repository, String branch, 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 getBranch(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling getBranch(Async)");
}
+
- return getBranchCall(repository, branch, _callback);
+ okhttp3.Call localVarCall = getBranchCall(repository, branch, _callback);
+ return localVarCall;
}
@@ -884,24 +807,11 @@ public okhttp3.Call getBranchAsync(String repository, String branch, final ApiCa
*/
public okhttp3.Call listBranchesCall(String repository, String prefix, String after, Integer amount, 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}/branches"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -930,24 +840,26 @@ public okhttp3.Call listBranchesCall(String repository, String prefix, String af
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 listBranchesValidateBeforeCall(String repository, String prefix, String after, Integer amount, 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 listBranches(Async)");
}
+
- return listBranchesCall(repository, prefix, after, amount, _callback);
+ okhttp3.Call localVarCall = listBranchesCall(repository, prefix, after, amount, _callback);
+ return localVarCall;
}
@@ -1042,25 +954,12 @@ public okhttp3.Call listBranchesAsync(String repository, String prefix, String a
*/
public okhttp3.Call resetBranchCall(String repository, String branch, ResetCreation resetCreation, 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 = resetCreation;
// create path and map variables
String localVarPath = "/repositories/{repository}/branches/{branch}"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1080,32 +979,33 @@ public okhttp3.Call resetBranchCall(String repository, String branch, ResetCreat
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 resetBranchValidateBeforeCall(String repository, String branch, ResetCreation resetCreation, 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 resetBranch(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling resetBranch(Async)");
}
-
+
// verify the required parameter 'resetCreation' is set
if (resetCreation == null) {
throw new ApiException("Missing the required parameter 'resetCreation' when calling resetBranch(Async)");
}
+
- return resetBranchCall(repository, branch, resetCreation, _callback);
+ okhttp3.Call localVarCall = resetBranchCall(repository, branch, resetCreation, _callback);
+ return localVarCall;
}
@@ -1195,25 +1095,12 @@ public okhttp3.Call resetBranchAsync(String repository, String branch, ResetCrea
*/
public okhttp3.Call revertBranchCall(String repository, String branch, RevertCreation revertCreation, 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 = revertCreation;
// create path and map variables
String localVarPath = "/repositories/{repository}/branches/{branch}/revert"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1233,32 +1120,33 @@ public okhttp3.Call revertBranchCall(String repository, String branch, RevertCre
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 revertBranchValidateBeforeCall(String repository, String branch, RevertCreation revertCreation, 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 revertBranch(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling revertBranch(Async)");
}
-
+
// verify the required parameter 'revertCreation' is set
if (revertCreation == null) {
throw new ApiException("Missing the required parameter 'revertCreation' when calling revertBranch(Async)");
}
+
- return revertBranchCall(repository, branch, revertCreation, _callback);
+ okhttp3.Call localVarCall = revertBranchCall(repository, branch, revertCreation, _callback);
+ return localVarCall;
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/CommitsApi.java b/clients/java/src/main/java/io/lakefs/clients/api/CommitsApi.java
index 129505c9164..b7d6e71e6dc 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/CommitsApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/CommitsApi.java
@@ -37,12 +37,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.GenericType;
public class CommitsApi {
private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
public CommitsApi() {
this(Configuration.getDefaultApiClient());
@@ -60,22 +57,6 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
/**
* Build call for commit
* @param repository (required)
@@ -98,25 +79,12 @@ public void setCustomBaseUrl(String customBaseUrl) {
*/
public okhttp3.Call commitCall(String repository, String branch, CommitCreation commitCreation, String sourceMetarange, 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 = commitCreation;
// create path and map variables
String localVarPath = "/repositories/{repository}/branches/{branch}/commits"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -140,32 +108,33 @@ public okhttp3.Call commitCall(String repository, String branch, CommitCreation
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 commitValidateBeforeCall(String repository, String branch, CommitCreation commitCreation, String sourceMetarange, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'repository' is set
if (repository == null) {
throw new ApiException("Missing the required parameter 'repository' when calling commit(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling commit(Async)");
}
-
+
// verify the required parameter 'commitCreation' is set
if (commitCreation == null) {
throw new ApiException("Missing the required parameter 'commitCreation' when calling commit(Async)");
}
+
- return commitCall(repository, branch, commitCreation, sourceMetarange, _callback);
+ okhttp3.Call localVarCall = commitCall(repository, branch, commitCreation, sourceMetarange, _callback);
+ return localVarCall;
}
@@ -268,25 +237,12 @@ public okhttp3.Call commitAsync(String repository, String branch, CommitCreation
*/
public okhttp3.Call getCommitCall(String repository, String commitId, 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}/commits/{commitId}"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "commitId" + "}", localVarApiClient.escapeString(commitId.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "commitId" + "\\}", localVarApiClient.escapeString(commitId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -303,29 +259,31 @@ public okhttp3.Call getCommitCall(String repository, String commitId, final ApiC
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getCommitValidateBeforeCall(String repository, String commitId, 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 getCommit(Async)");
}
-
+
// verify the required parameter 'commitId' is set
if (commitId == null) {
throw new ApiException("Missing the required parameter 'commitId' when calling getCommit(Async)");
}
+
- return getCommitCall(repository, commitId, _callback);
+ okhttp3.Call localVarCall = getCommitCall(repository, commitId, _callback);
+ return localVarCall;
}
@@ -417,25 +375,12 @@ public okhttp3.Call getCommitAsync(String repository, String commitId, final Api
*/
@Deprecated
public okhttp3.Call logBranchCommitsCall(String repository, String branch, String after, Integer amount, 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}/branches/{branch}/commits"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -460,30 +405,32 @@ public okhttp3.Call logBranchCommitsCall(String repository, String branch, Strin
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
+ return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@Deprecated
@SuppressWarnings("rawtypes")
private okhttp3.Call logBranchCommitsValidateBeforeCall(String repository, String branch, String after, Integer amount, 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 logBranchCommits(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling logBranchCommits(Async)");
}
+
- return logBranchCommitsCall(repository, branch, after, amount, _callback);
+ okhttp3.Call localVarCall = logBranchCommitsCall(repository, branch, after, amount, _callback);
+ return localVarCall;
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/ConfigApi.java b/clients/java/src/main/java/io/lakefs/clients/api/ConfigApi.java
index b75436265f2..47adab346bd 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/ConfigApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/ConfigApi.java
@@ -42,12 +42,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.GenericType;
public class ConfigApi {
private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
public ConfigApi() {
this(Configuration.getDefaultApiClient());
@@ -65,22 +62,6 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
/**
* Build call for getGarbageCollectionConfig
* @param _callback Callback for upload/download progress
@@ -94,19 +75,6 @@ public void setCustomBaseUrl(String customBaseUrl) {
*/
public okhttp3.Call getGarbageCollectionConfigCall(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
@@ -127,19 +95,21 @@ public okhttp3.Call getGarbageCollectionConfigCall(final ApiCallback _callback)
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getGarbageCollectionConfigValidateBeforeCall(final ApiCallback _callback) throws ApiException {
- return getGarbageCollectionConfigCall(_callback);
+
+
+ okhttp3.Call localVarCall = getGarbageCollectionConfigCall(_callback);
+ return localVarCall;
}
@@ -211,19 +181,6 @@ public okhttp3.Call getGarbageCollectionConfigAsync(final ApiCallback
*/
public okhttp3.Call getLakeFSVersionCall(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
@@ -244,19 +201,21 @@ public okhttp3.Call getLakeFSVersionCall(final ApiCallback _callback) throws Api
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getLakeFSVersionValidateBeforeCall(final ApiCallback _callback) throws ApiException {
- return getLakeFSVersionCall(_callback);
+
+
+ okhttp3.Call localVarCall = getLakeFSVersionCall(_callback);
+ return localVarCall;
}
@@ -328,19 +287,6 @@ public okhttp3.Call getLakeFSVersionAsync(final ApiCallback _call
*/
public okhttp3.Call getSetupStateCall(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
@@ -361,19 +307,21 @@ public okhttp3.Call getSetupStateCall(final ApiCallback _callback) throws ApiExc
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", 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 getSetupStateValidateBeforeCall(final ApiCallback _callback) throws ApiException {
- return getSetupStateCall(_callback);
+
+
+ okhttp3.Call localVarCall = getSetupStateCall(_callback);
+ return localVarCall;
}
@@ -445,19 +393,6 @@ public okhttp3.Call getSetupStateAsync(final ApiCallback _callback)
*/
public okhttp3.Call getStorageConfigCall(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
@@ -478,19 +413,21 @@ public okhttp3.Call getStorageConfigCall(final ApiCallback _callback) throws Api
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getStorageConfigValidateBeforeCall(final ApiCallback _callback) throws ApiException {
- return getStorageConfigCall(_callback);
+
+
+ okhttp3.Call localVarCall = getStorageConfigCall(_callback);
+ return localVarCall;
}
@@ -565,19 +502,6 @@ public okhttp3.Call getStorageConfigAsync(final ApiCallback _call
*/
public okhttp3.Call setupCall(Setup setup, 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 = setup;
// create path and map variables
@@ -601,22 +525,23 @@ public okhttp3.Call setupCall(Setup setup, final ApiCallback _callback) throws A
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call setupValidateBeforeCall(Setup setup, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'setup' is set
if (setup == null) {
throw new ApiException("Missing the required parameter 'setup' when calling setup(Async)");
}
+
- return setupCall(setup, _callback);
+ okhttp3.Call localVarCall = setupCall(setup, _callback);
+ return localVarCall;
}
@@ -700,19 +625,6 @@ public okhttp3.Call setupAsync(Setup setup, final ApiCallback
*/
public okhttp3.Call setupCommPrefsCall(CommPrefsInput commPrefsInput, 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 = commPrefsInput;
// create path and map variables
@@ -736,22 +648,23 @@ public okhttp3.Call setupCommPrefsCall(CommPrefsInput commPrefsInput, final ApiC
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call setupCommPrefsValidateBeforeCall(CommPrefsInput commPrefsInput, final ApiCallback _callback) throws ApiException {
+
// verify the required parameter 'commPrefsInput' is set
if (commPrefsInput == null) {
throw new ApiException("Missing the required parameter 'commPrefsInput' when calling setupCommPrefs(Async)");
}
+
- return setupCommPrefsCall(commPrefsInput, _callback);
+ okhttp3.Call localVarCall = setupCommPrefsCall(commPrefsInput, _callback);
+ return localVarCall;
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/ExperimentalApi.java b/clients/java/src/main/java/io/lakefs/clients/api/ExperimentalApi.java
index 00057b11fe8..67d2dc558c0 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/ExperimentalApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/ExperimentalApi.java
@@ -35,12 +35,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.GenericType;
public class ExperimentalApi {
private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
public ExperimentalApi() {
this(Configuration.getDefaultApiClient());
@@ -58,22 +55,6 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
/**
* Build call for otfDiff
* @param repository (required)
@@ -95,26 +76,13 @@ public void setCustomBaseUrl(String customBaseUrl) {
*/
public okhttp3.Call otfDiffCall(String repository, String leftRef, String rightRef, String tablePath, String type, 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}/otf/refs/{left_ref}/diff/{right_ref}"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "left_ref" + "}", localVarApiClient.escapeString(leftRef.toString()))
- .replace("{" + "right_ref" + "}", localVarApiClient.escapeString(rightRef.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "left_ref" + "\\}", localVarApiClient.escapeString(leftRef.toString()))
+ .replaceAll("\\{" + "right_ref" + "\\}", localVarApiClient.escapeString(rightRef.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -139,44 +107,46 @@ public okhttp3.Call otfDiffCall(String repository, String leftRef, String rightR
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 otfDiffValidateBeforeCall(String repository, String leftRef, String rightRef, String tablePath, String type, 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 otfDiff(Async)");
}
-
+
// verify the required parameter 'leftRef' is set
if (leftRef == null) {
throw new ApiException("Missing the required parameter 'leftRef' when calling otfDiff(Async)");
}
-
+
// verify the required parameter 'rightRef' is set
if (rightRef == null) {
throw new ApiException("Missing the required parameter 'rightRef' when calling otfDiff(Async)");
}
-
+
// verify the required parameter 'tablePath' is set
if (tablePath == null) {
throw new ApiException("Missing the required parameter 'tablePath' when calling otfDiff(Async)");
}
-
+
// verify the required parameter 'type' is set
if (type == null) {
throw new ApiException("Missing the required parameter 'type' when calling otfDiff(Async)");
}
+
- return otfDiffCall(repository, leftRef, rightRef, tablePath, type, _callback);
+ okhttp3.Call localVarCall = otfDiffCall(repository, leftRef, rightRef, tablePath, type, _callback);
+ return localVarCall;
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/HealthCheckApi.java b/clients/java/src/main/java/io/lakefs/clients/api/HealthCheckApi.java
index 368c09ce431..c58b29fb1fa 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/HealthCheckApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/HealthCheckApi.java
@@ -33,12 +33,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.GenericType;
public class HealthCheckApi {
private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
public HealthCheckApi() {
this(Configuration.getDefaultApiClient());
@@ -56,22 +53,6 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
/**
* Build call for healthCheck
* @param _callback Callback for upload/download progress
@@ -84,19 +65,6 @@ public void setCustomBaseUrl(String customBaseUrl) {
*/
public okhttp3.Call healthCheckCall(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
@@ -109,6 +77,7 @@ public okhttp3.Call healthCheckCall(final ApiCallback _callback) throws ApiExcep
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
+
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -116,19 +85,21 @@ public okhttp3.Call healthCheckCall(final ApiCallback _callback) throws ApiExcep
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", 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 healthCheckValidateBeforeCall(final ApiCallback _callback) throws ApiException {
- return healthCheckCall(_callback);
+
+
+ okhttp3.Call localVarCall = healthCheckCall(_callback);
+ return localVarCall;
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/ImportApi.java b/clients/java/src/main/java/io/lakefs/clients/api/ImportApi.java
index 797b404443e..847b8423b2c 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/ImportApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/ImportApi.java
@@ -38,12 +38,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.GenericType;
public class ImportApi {
private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
public ImportApi() {
this(Configuration.getDefaultApiClient());
@@ -61,22 +58,6 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
/**
* Build call for createMetaRange
* @param repository (required)
@@ -96,24 +77,11 @@ public void setCustomBaseUrl(String customBaseUrl) {
*/
public okhttp3.Call createMetaRangeCall(String repository, MetaRangeCreation metaRangeCreation, 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 = metaRangeCreation;
// create path and map variables
String localVarPath = "/repositories/{repository}/branches/metaranges"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -133,27 +101,28 @@ public okhttp3.Call createMetaRangeCall(String repository, MetaRangeCreation met
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 createMetaRangeValidateBeforeCall(String repository, MetaRangeCreation metaRangeCreation, 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 createMetaRange(Async)");
}
-
+
// verify the required parameter 'metaRangeCreation' is set
if (metaRangeCreation == null) {
throw new ApiException("Missing the required parameter 'metaRangeCreation' when calling createMetaRange(Async)");
}
+
- return createMetaRangeCall(repository, metaRangeCreation, _callback);
+ okhttp3.Call localVarCall = createMetaRangeCall(repository, metaRangeCreation, _callback);
+ return localVarCall;
}
@@ -248,24 +217,11 @@ public okhttp3.Call createMetaRangeAsync(String repository, MetaRangeCreation me
*/
public okhttp3.Call ingestRangeCall(String repository, StageRangeCreation stageRangeCreation, 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 = stageRangeCreation;
// create path and map variables
String localVarPath = "/repositories/{repository}/branches/ranges"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -285,27 +241,28 @@ public okhttp3.Call ingestRangeCall(String repository, StageRangeCreation stageR
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 ingestRangeValidateBeforeCall(String repository, StageRangeCreation stageRangeCreation, 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 ingestRange(Async)");
}
-
+
// verify the required parameter 'stageRangeCreation' is set
if (stageRangeCreation == null) {
throw new ApiException("Missing the required parameter 'stageRangeCreation' when calling ingestRange(Async)");
}
+
- return ingestRangeCall(repository, stageRangeCreation, _callback);
+ okhttp3.Call localVarCall = ingestRangeCall(repository, stageRangeCreation, _callback);
+ return localVarCall;
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/JSON.java b/clients/java/src/main/java/io/lakefs/clients/api/JSON.java
index c2b1c8bb6a5..d88199b0a38 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/JSON.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/JSON.java
@@ -23,7 +23,11 @@
import com.google.gson.JsonElement;
import io.gsonfire.GsonFireBuilder;
import io.gsonfire.TypeSelector;
+import org.threeten.bp.LocalDate;
+import org.threeten.bp.OffsetDateTime;
+import org.threeten.bp.format.DateTimeFormatter;
+import io.lakefs.clients.api.model.*;
import okio.ByteString;
import java.io.IOException;
@@ -32,28 +36,19 @@
import java.text.DateFormat;
import java.text.ParseException;
import java.text.ParsePosition;
-import java.time.LocalDate;
-import java.time.OffsetDateTime;
-import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.Locale;
import java.util.Map;
import java.util.HashMap;
-/*
- * A JSON utility class
- *
- * NOTE: in the future, this class may be converted to static, which may break
- * backward-compatibility
- */
public class JSON {
- private static Gson gson;
- private static boolean isLenientOnJson = false;
- private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter();
- private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter();
- private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter();
- private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter();
- private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter();
+ private Gson gson;
+ private boolean isLenientOnJson = false;
+ private DateTypeAdapter dateTypeAdapter = new DateTypeAdapter();
+ private SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter();
+ private OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter();
+ private LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter();
+ private ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter();
@SuppressWarnings("unchecked")
public static GsonBuilder createGson() {
@@ -86,96 +81,14 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
return clazz;
}
- {
- GsonBuilder gsonBuilder = createGson();
- gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter);
- gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter);
- gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter);
- gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter);
- gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter);
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.AccessKeyCredentials.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.ActionRun.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.ActionRunList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.AuthCapabilities.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.AuthenticationToken.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.BranchCreation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.BranchProtectionRule.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.CherryPickCreation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.CommPrefsInput.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.Commit.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.CommitCreation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.CommitList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.Credentials.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.CredentialsList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.CredentialsWithSecret.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.CurrentUser.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.DeleteBranchProtectionRuleRequest.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.Diff.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.DiffList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.Error.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.FindMergeBaseResult.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.ForgotPasswordRequest.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.GarbageCollectionConfig.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.GarbageCollectionPrepareRequest.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.GarbageCollectionPrepareResponse.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.GarbageCollectionRule.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.GarbageCollectionRules.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.Group.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.GroupCreation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.GroupList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.HookRun.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.HookRunList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.ImportPagination.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.IngestRangeCreationResponse.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.LoginConfig.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.LoginInformation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.Merge.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.MergeResult.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.MergeResultSummary.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.MetaRangeCreation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.MetaRangeCreationResponse.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.NextStep.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.ObjectCopyCreation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.ObjectError.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.ObjectErrorList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.ObjectStageCreation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.ObjectStats.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.ObjectStatsList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.OtfDiffEntry.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.OtfDiffList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.Pagination.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.PathList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.Policy.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.PolicyList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.PrepareGCUncommittedRequest.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.PrepareGCUncommittedResponse.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.RangeMetadata.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.Ref.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.RefList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.RefsDump.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.Repository.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.RepositoryCreation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.RepositoryList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.ResetCreation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.RevertCreation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.Setup.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.SetupState.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.StageRangeCreation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.StagingLocation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.StagingMetadata.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.Statement.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.StatsEvent.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.StatsEventsList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.StorageConfig.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.StorageURI.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.TagCreation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.UnderlyingObjectProperties.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.UpdatePasswordByToken.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.User.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.UserCreation.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.UserList.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new io.lakefs.clients.api.model.VersionConfig.CustomTypeAdapterFactory());
- gson = gsonBuilder.create();
+ public JSON() {
+ gson = createGson()
+ .registerTypeAdapter(Date.class, dateTypeAdapter)
+ .registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter)
+ .registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter)
+ .registerTypeAdapter(LocalDate.class, localDateTypeAdapter)
+ .registerTypeAdapter(byte[].class, byteArrayAdapter)
+ .create();
}
/**
@@ -183,7 +96,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
*
* @return Gson
*/
- public static Gson getGson() {
+ public Gson getGson() {
return gson;
}
@@ -191,13 +104,16 @@ public static Gson getGson() {
* Set Gson.
*
* @param gson Gson
+ * @return JSON
*/
- public static void setGson(Gson gson) {
- JSON.gson = gson;
+ public JSON setGson(Gson gson) {
+ this.gson = gson;
+ return this;
}
- public static void setLenientOnJson(boolean lenientOnJson) {
+ public JSON setLenientOnJson(boolean lenientOnJson) {
isLenientOnJson = lenientOnJson;
+ return this;
}
/**
@@ -206,7 +122,7 @@ public static void setLenientOnJson(boolean lenientOnJson) {
* @param obj Object
* @return String representation of the JSON
*/
- public static String serialize(Object obj) {
+ public String serialize(Object obj) {
return gson.toJson(obj);
}
@@ -219,7 +135,7 @@ public static String serialize(Object obj) {
* @return The deserialized Java object
*/
@SuppressWarnings("unchecked")
- public static T deserialize(String body, Type returnType) {
+ public T deserialize(String body, Type returnType) {
try {
if (isLenientOnJson) {
JsonReader jsonReader = new JsonReader(new StringReader(body));
@@ -243,7 +159,7 @@ public static T deserialize(String body, Type returnType) {
/**
* Gson TypeAdapter for Byte Array type
*/
- public static class ByteArrayAdapter extends TypeAdapter {
+ public class ByteArrayAdapter extends TypeAdapter {
@Override
public void write(JsonWriter out, byte[] value) throws IOException {
@@ -315,7 +231,7 @@ public OffsetDateTime read(JsonReader in) throws IOException {
/**
* Gson TypeAdapter for JSR310 LocalDate type
*/
- public static class LocalDateTypeAdapter extends TypeAdapter {
+ public class LocalDateTypeAdapter extends TypeAdapter {
private DateTimeFormatter formatter;
@@ -353,12 +269,14 @@ public LocalDate read(JsonReader in) throws IOException {
}
}
- public static void setOffsetDateTimeFormat(DateTimeFormatter dateFormat) {
+ public JSON setOffsetDateTimeFormat(DateTimeFormatter dateFormat) {
offsetDateTimeTypeAdapter.setFormat(dateFormat);
+ return this;
}
- public static void setLocalDateFormat(DateTimeFormatter dateFormat) {
+ public JSON setLocalDateFormat(DateTimeFormatter dateFormat) {
localDateTypeAdapter.setFormat(dateFormat);
+ return this;
}
/**
@@ -472,11 +390,14 @@ public Date read(JsonReader in) throws IOException {
}
}
- public static void setDateFormat(DateFormat dateFormat) {
+ public JSON setDateFormat(DateFormat dateFormat) {
dateTypeAdapter.setFormat(dateFormat);
+ return this;
}
- public static void setSqlDateFormat(DateFormat dateFormat) {
+ public JSON setSqlDateFormat(DateFormat dateFormat) {
sqlDateTypeAdapter.setFormat(dateFormat);
+ return this;
}
+
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/MetadataApi.java b/clients/java/src/main/java/io/lakefs/clients/api/MetadataApi.java
index 7c77e0369cc..0985c15a17b 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/MetadataApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/MetadataApi.java
@@ -35,12 +35,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.GenericType;
public class MetadataApi {
private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
public MetadataApi() {
this(Configuration.getDefaultApiClient());
@@ -58,22 +55,6 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
/**
* Build call for createSymlinkFile
* @param repository (required)
@@ -92,25 +73,12 @@ public void setCustomBaseUrl(String customBaseUrl) {
*/
public okhttp3.Call createSymlinkFileCall(String repository, String branch, String location, 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}/refs/{branch}/symlink"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -131,29 +99,31 @@ public okhttp3.Call createSymlinkFileCall(String repository, String branch, Stri
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 createSymlinkFileValidateBeforeCall(String repository, String branch, String location, 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 createSymlinkFile(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling createSymlinkFile(Async)");
}
+
- return createSymlinkFileCall(repository, branch, location, _callback);
+ okhttp3.Call localVarCall = createSymlinkFileCall(repository, branch, location, _callback);
+ return localVarCall;
}
@@ -244,25 +214,12 @@ public okhttp3.Call createSymlinkFileAsync(String repository, String branch, Str
*/
public okhttp3.Call getMetaRangeCall(String repository, String metaRange, 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}/metadata/meta_range/{meta_range}"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "meta_range" + "}", localVarApiClient.escapeString(metaRange.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "meta_range" + "\\}", localVarApiClient.escapeString(metaRange.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -279,29 +236,31 @@ public okhttp3.Call getMetaRangeCall(String repository, String metaRange, final
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getMetaRangeValidateBeforeCall(String repository, String metaRange, 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 getMetaRange(Async)");
}
-
+
// verify the required parameter 'metaRange' is set
if (metaRange == null) {
throw new ApiException("Missing the required parameter 'metaRange' when calling getMetaRange(Async)");
}
+
- return getMetaRangeCall(repository, metaRange, _callback);
+ okhttp3.Call localVarCall = getMetaRangeCall(repository, metaRange, _callback);
+ return localVarCall;
}
@@ -389,25 +348,12 @@ public okhttp3.Call getMetaRangeAsync(String repository, String metaRange, final
*/
public okhttp3.Call getRangeCall(String repository, String range, 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}/metadata/range/{range}"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "range" + "}", localVarApiClient.escapeString(range.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "range" + "\\}", localVarApiClient.escapeString(range.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -424,29 +370,31 @@ public okhttp3.Call getRangeCall(String repository, String range, final ApiCallb
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getRangeValidateBeforeCall(String repository, String range, 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 getRange(Async)");
}
-
+
// verify the required parameter 'range' is set
if (range == null) {
throw new ApiException("Missing the required parameter 'range' when calling getRange(Async)");
}
+
- return getRangeCall(repository, range, _callback);
+ okhttp3.Call localVarCall = getRangeCall(repository, range, _callback);
+ return localVarCall;
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/ObjectsApi.java b/clients/java/src/main/java/io/lakefs/clients/api/ObjectsApi.java
index 78416c48393..3b5e726106c 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/ObjectsApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/ObjectsApi.java
@@ -42,12 +42,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.GenericType;
public class ObjectsApi {
private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
public ObjectsApi() {
this(Configuration.getDefaultApiClient());
@@ -65,22 +62,6 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
/**
* Build call for copyObject
* @param repository (required)
@@ -101,25 +82,12 @@ public void setCustomBaseUrl(String customBaseUrl) {
*/
public okhttp3.Call copyObjectCall(String repository, String branch, String destPath, ObjectCopyCreation objectCopyCreation, 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 = objectCopyCreation;
// create path and map variables
String localVarPath = "/repositories/{repository}/branches/{branch}/objects/copy"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -143,37 +111,38 @@ public okhttp3.Call copyObjectCall(String repository, String branch, String dest
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 copyObjectValidateBeforeCall(String repository, String branch, String destPath, ObjectCopyCreation objectCopyCreation, 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 copyObject(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling copyObject(Async)");
}
-
+
// verify the required parameter 'destPath' is set
if (destPath == null) {
throw new ApiException("Missing the required parameter 'destPath' when calling copyObject(Async)");
}
-
+
// verify the required parameter 'objectCopyCreation' is set
if (objectCopyCreation == null) {
throw new ApiException("Missing the required parameter 'objectCopyCreation' when calling copyObject(Async)");
}
+
- return copyObjectCall(repository, branch, destPath, objectCopyCreation, _callback);
+ okhttp3.Call localVarCall = copyObjectCall(repository, branch, destPath, objectCopyCreation, _callback);
+ return localVarCall;
}
@@ -272,25 +241,12 @@ public okhttp3.Call copyObjectAsync(String repository, String branch, String des
*/
public okhttp3.Call deleteObjectCall(String repository, String branch, String path, 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}/branches/{branch}/objects"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -311,34 +267,36 @@ public okhttp3.Call deleteObjectCall(String repository, String branch, String pa
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- 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);
+ 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 deleteObjectValidateBeforeCall(String repository, String branch, String path, 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 deleteObject(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling deleteObject(Async)");
}
-
+
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException("Missing the required parameter 'path' when calling deleteObject(Async)");
}
+
- return deleteObjectCall(repository, branch, path, _callback);
+ okhttp3.Call localVarCall = deleteObjectCall(repository, branch, path, _callback);
+ return localVarCall;
}
@@ -430,25 +388,12 @@ public okhttp3.Call deleteObjectAsync(String repository, String branch, String p
*/
public okhttp3.Call deleteObjectsCall(String repository, String branch, PathList pathList, 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 = pathList;
// create path and map variables
String localVarPath = "/repositories/{repository}/branches/{branch}/objects/delete"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -468,32 +413,33 @@ public okhttp3.Call deleteObjectsCall(String repository, String branch, PathList
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 deleteObjectsValidateBeforeCall(String repository, String branch, PathList pathList, 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 deleteObjects(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling deleteObjects(Async)");
}
-
+
// verify the required parameter 'pathList' is set
if (pathList == null) {
throw new ApiException("Missing the required parameter 'pathList' when calling deleteObjects(Async)");
}
+
- return deleteObjectsCall(repository, branch, pathList, _callback);
+ okhttp3.Call localVarCall = deleteObjectsCall(repository, branch, pathList, _callback);
+ return localVarCall;
}
@@ -594,25 +540,12 @@ public okhttp3.Call deleteObjectsAsync(String repository, String branch, PathLis
*/
public okhttp3.Call getObjectCall(String repository, String ref, String path, String range, Boolean presign, 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}/refs/{ref}/objects"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "ref" + "}", localVarApiClient.escapeString(ref.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "ref" + "\\}", localVarApiClient.escapeString(ref.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -633,8 +566,7 @@ public okhttp3.Call getObjectCall(String repository, String ref, String path, St
}
final String[] localVarAccepts = {
- "application/octet-stream",
- "application/json"
+ "application/octet-stream", "application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -642,34 +574,36 @@ public okhttp3.Call getObjectCall(String repository, String ref, String path, St
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getObjectValidateBeforeCall(String repository, String ref, String path, String range, Boolean presign, 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 getObject(Async)");
}
-
+
// verify the required parameter 'ref' is set
if (ref == null) {
throw new ApiException("Missing the required parameter 'ref' when calling getObject(Async)");
}
-
+
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException("Missing the required parameter 'path' when calling getObject(Async)");
}
+
- return getObjectCall(repository, ref, path, range, presign, _callback);
+ okhttp3.Call localVarCall = getObjectCall(repository, ref, path, range, presign, _callback);
+ return localVarCall;
}
@@ -779,25 +713,12 @@ public okhttp3.Call getObjectAsync(String repository, String ref, String path, S
*/
public okhttp3.Call getUnderlyingPropertiesCall(String repository, String ref, String path, 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}/refs/{ref}/objects/underlyingProperties"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "ref" + "}", localVarApiClient.escapeString(ref.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "ref" + "\\}", localVarApiClient.escapeString(ref.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -818,34 +739,36 @@ public okhttp3.Call getUnderlyingPropertiesCall(String repository, String ref, S
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 getUnderlyingPropertiesValidateBeforeCall(String repository, String ref, String path, 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 getUnderlyingProperties(Async)");
}
-
+
// verify the required parameter 'ref' is set
if (ref == null) {
throw new ApiException("Missing the required parameter 'ref' when calling getUnderlyingProperties(Async)");
}
-
+
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException("Missing the required parameter 'path' when calling getUnderlyingProperties(Async)");
}
+
- return getUnderlyingPropertiesCall(repository, ref, path, _callback);
+ okhttp3.Call localVarCall = getUnderlyingPropertiesCall(repository, ref, path, _callback);
+ return localVarCall;
}
@@ -941,25 +864,12 @@ public okhttp3.Call getUnderlyingPropertiesAsync(String repository, String ref,
*/
public okhttp3.Call headObjectCall(String repository, String ref, String path, String range, 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}/refs/{ref}/objects"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "ref" + "}", localVarApiClient.escapeString(ref.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "ref" + "\\}", localVarApiClient.escapeString(ref.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -976,6 +886,7 @@ public okhttp3.Call headObjectCall(String repository, String ref, String path, S
}
final String[] localVarAccepts = {
+
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -983,34 +894,36 @@ public okhttp3.Call headObjectCall(String repository, String ref, String path, S
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
+ return localVarApiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call headObjectValidateBeforeCall(String repository, String ref, String path, String range, 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 headObject(Async)");
}
-
+
// verify the required parameter 'ref' is set
if (ref == null) {
throw new ApiException("Missing the required parameter 'ref' when calling headObject(Async)");
}
-
+
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException("Missing the required parameter 'path' when calling headObject(Async)");
}
+
- return headObjectCall(repository, ref, path, range, _callback);
+ okhttp3.Call localVarCall = headObjectCall(repository, ref, path, range, _callback);
+ return localVarCall;
}
@@ -1115,25 +1028,12 @@ public okhttp3.Call headObjectAsync(String repository, String ref, String path,
*/
public okhttp3.Call listObjectsCall(String repository, String ref, Boolean userMetadata, Boolean presign, String after, Integer amount, String delimiter, String prefix, 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}/refs/{ref}/objects/ls"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "ref" + "}", localVarApiClient.escapeString(ref.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "ref" + "\\}", localVarApiClient.escapeString(ref.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1174,29 +1074,31 @@ public okhttp3.Call listObjectsCall(String repository, String ref, Boolean userM
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 listObjectsValidateBeforeCall(String repository, String ref, Boolean userMetadata, Boolean presign, String after, Integer amount, String delimiter, String prefix, 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 listObjects(Async)");
}
-
+
// verify the required parameter 'ref' is set
if (ref == null) {
throw new ApiException("Missing the required parameter 'ref' when calling listObjects(Async)");
}
+
- return listObjectsCall(repository, ref, userMetadata, presign, after, amount, delimiter, prefix, _callback);
+ okhttp3.Call localVarCall = listObjectsCall(repository, ref, userMetadata, presign, after, amount, delimiter, prefix, _callback);
+ return localVarCall;
}
@@ -1306,25 +1208,12 @@ public okhttp3.Call listObjectsAsync(String repository, String ref, Boolean user
*/
public okhttp3.Call stageObjectCall(String repository, String branch, String path, ObjectStageCreation objectStageCreation, 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 = objectStageCreation;
// create path and map variables
String localVarPath = "/repositories/{repository}/branches/{branch}/objects"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1348,37 +1237,38 @@ public okhttp3.Call stageObjectCall(String repository, String branch, String pat
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 stageObjectValidateBeforeCall(String repository, String branch, String path, ObjectStageCreation objectStageCreation, 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 stageObject(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling stageObject(Async)");
}
-
+
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException("Missing the required parameter 'path' when calling stageObject(Async)");
}
-
+
// verify the required parameter 'objectStageCreation' is set
if (objectStageCreation == null) {
throw new ApiException("Missing the required parameter 'objectStageCreation' when calling stageObject(Async)");
}
+
- return stageObjectCall(repository, branch, path, objectStageCreation, _callback);
+ okhttp3.Call localVarCall = stageObjectCall(repository, branch, path, objectStageCreation, _callback);
+ return localVarCall;
}
@@ -1482,25 +1372,12 @@ public okhttp3.Call stageObjectAsync(String repository, String branch, String pa
*/
public okhttp3.Call statObjectCall(String repository, String ref, String path, Boolean userMetadata, Boolean presign, 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}/refs/{ref}/objects/stat"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "ref" + "}", localVarApiClient.escapeString(ref.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "ref" + "\\}", localVarApiClient.escapeString(ref.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1529,34 +1406,36 @@ public okhttp3.Call statObjectCall(String repository, String ref, String path, B
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 statObjectValidateBeforeCall(String repository, String ref, String path, Boolean userMetadata, Boolean presign, 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 statObject(Async)");
}
-
+
// verify the required parameter 'ref' is set
if (ref == null) {
throw new ApiException("Missing the required parameter 'ref' when calling statObject(Async)");
}
-
+
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException("Missing the required parameter 'path' when calling statObject(Async)");
}
+
- return statObjectCall(repository, ref, path, userMetadata, presign, _callback);
+ okhttp3.Call localVarCall = statObjectCall(repository, ref, path, userMetadata, presign, _callback);
+ return localVarCall;
}
@@ -1663,25 +1542,12 @@ public okhttp3.Call statObjectAsync(String repository, String ref, String path,
*/
public okhttp3.Call uploadObjectCall(String repository, String branch, String path, String storageClass, String ifNoneMatch, File content, 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}/branches/{branch}/objects"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "branch" + "}", localVarApiClient.escapeString(branch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "branch" + "\\}", localVarApiClient.escapeString(branch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1717,32 +1583,33 @@ public okhttp3.Call uploadObjectCall(String repository, String branch, String pa
"multipart/form-data"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ 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 uploadObjectValidateBeforeCall(String repository, String branch, String path, String storageClass, String ifNoneMatch, File content, 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 uploadObject(Async)");
}
-
+
// verify the required parameter 'branch' is set
if (branch == null) {
throw new ApiException("Missing the required parameter 'branch' when calling uploadObject(Async)");
}
-
+
// verify the required parameter 'path' is set
if (path == null) {
throw new ApiException("Missing the required parameter 'path' when calling uploadObject(Async)");
}
+
- return uploadObjectCall(repository, branch, path, storageClass, ifNoneMatch, content, _callback);
+ okhttp3.Call localVarCall = uploadObjectCall(repository, branch, path, storageClass, ifNoneMatch, content, _callback);
+ return localVarCall;
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/OtfDiffApi.java b/clients/java/src/main/java/io/lakefs/clients/api/OtfDiffApi.java
index f02a6e52884..f3db7f518b3 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/OtfDiffApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/OtfDiffApi.java
@@ -35,12 +35,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.GenericType;
public class OtfDiffApi {
private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
public OtfDiffApi() {
this(Configuration.getDefaultApiClient());
@@ -58,22 +55,6 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
/**
* Build call for otfDiff
* @param repository (required)
@@ -95,26 +76,13 @@ public void setCustomBaseUrl(String customBaseUrl) {
*/
public okhttp3.Call otfDiffCall(String repository, String leftRef, String rightRef, String tablePath, String type, 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}/otf/refs/{left_ref}/diff/{right_ref}"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "left_ref" + "}", localVarApiClient.escapeString(leftRef.toString()))
- .replace("{" + "right_ref" + "}", localVarApiClient.escapeString(rightRef.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "left_ref" + "\\}", localVarApiClient.escapeString(leftRef.toString()))
+ .replaceAll("\\{" + "right_ref" + "\\}", localVarApiClient.escapeString(rightRef.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -139,44 +107,46 @@ public okhttp3.Call otfDiffCall(String repository, String leftRef, String rightR
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 otfDiffValidateBeforeCall(String repository, String leftRef, String rightRef, String tablePath, String type, 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 otfDiff(Async)");
}
-
+
// verify the required parameter 'leftRef' is set
if (leftRef == null) {
throw new ApiException("Missing the required parameter 'leftRef' when calling otfDiff(Async)");
}
-
+
// verify the required parameter 'rightRef' is set
if (rightRef == null) {
throw new ApiException("Missing the required parameter 'rightRef' when calling otfDiff(Async)");
}
-
+
// verify the required parameter 'tablePath' is set
if (tablePath == null) {
throw new ApiException("Missing the required parameter 'tablePath' when calling otfDiff(Async)");
}
-
+
// verify the required parameter 'type' is set
if (type == null) {
throw new ApiException("Missing the required parameter 'type' when calling otfDiff(Async)");
}
+
- return otfDiffCall(repository, leftRef, rightRef, tablePath, type, _callback);
+ okhttp3.Call localVarCall = otfDiffCall(repository, leftRef, rightRef, tablePath, type, _callback);
+ return localVarCall;
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/Pair.java b/clients/java/src/main/java/io/lakefs/clients/api/Pair.java
index e2f86e815fb..a3d7a854041 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/Pair.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/Pair.java
@@ -52,6 +52,10 @@ private boolean isValidString(String arg) {
return false;
}
+ if (arg.trim().isEmpty()) {
+ return false;
+ }
+
return true;
}
}
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/RefsApi.java b/clients/java/src/main/java/io/lakefs/clients/api/RefsApi.java
index 3bb217d7ea1..4d7bf96c8e0 100644
--- a/clients/java/src/main/java/io/lakefs/clients/api/RefsApi.java
+++ b/clients/java/src/main/java/io/lakefs/clients/api/RefsApi.java
@@ -40,12 +40,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.ws.rs.core.GenericType;
public class RefsApi {
private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
public RefsApi() {
this(Configuration.getDefaultApiClient());
@@ -63,22 +60,6 @@ public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
/**
* Build call for diffRefs
* @param repository (required)
@@ -102,26 +83,13 @@ public void setCustomBaseUrl(String customBaseUrl) {
*/
public okhttp3.Call diffRefsCall(String repository, String leftRef, String rightRef, String after, Integer amount, String prefix, String delimiter, String type, 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}/refs/{leftRef}/diff/{rightRef}"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "leftRef" + "}", localVarApiClient.escapeString(leftRef.toString()))
- .replace("{" + "rightRef" + "}", localVarApiClient.escapeString(rightRef.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "leftRef" + "\\}", localVarApiClient.escapeString(leftRef.toString()))
+ .replaceAll("\\{" + "rightRef" + "\\}", localVarApiClient.escapeString(rightRef.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -158,34 +126,36 @@ public okhttp3.Call diffRefsCall(String repository, String leftRef, String right
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 diffRefsValidateBeforeCall(String repository, String leftRef, String rightRef, String after, Integer amount, String prefix, String delimiter, String type, 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 diffRefs(Async)");
}
-
+
// verify the required parameter 'leftRef' is set
if (leftRef == null) {
throw new ApiException("Missing the required parameter 'leftRef' when calling diffRefs(Async)");
}
-
+
// verify the required parameter 'rightRef' is set
if (rightRef == null) {
throw new ApiException("Missing the required parameter 'rightRef' when calling diffRefs(Async)");
}
+
- return diffRefsCall(repository, leftRef, rightRef, after, amount, prefix, delimiter, type, _callback);
+ okhttp3.Call localVarCall = diffRefsCall(repository, leftRef, rightRef, after, amount, prefix, delimiter, type, _callback);
+ return localVarCall;
}
@@ -291,24 +261,11 @@ public okhttp3.Call diffRefsAsync(String repository, String leftRef, String righ
*/
public okhttp3.Call dumpRefsCall(String repository, 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}/refs/dump"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -325,24 +282,26 @@ public okhttp3.Call dumpRefsCall(String repository, final ApiCallback _callback)
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 dumpRefsValidateBeforeCall(String repository, 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 dumpRefs(Async)");
}
+
- return dumpRefsCall(repository, _callback);
+ okhttp3.Call localVarCall = dumpRefsCall(repository, _callback);
+ return localVarCall;
}
@@ -432,26 +391,13 @@ public okhttp3.Call dumpRefsAsync(String repository, final ApiCallback
*/
public okhttp3.Call findMergeBaseCall(String repository, String sourceRef, String destinationBranch, 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}/refs/{sourceRef}/merge/{destinationBranch}"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "sourceRef" + "}", localVarApiClient.escapeString(sourceRef.toString()))
- .replace("{" + "destinationBranch" + "}", localVarApiClient.escapeString(destinationBranch.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "sourceRef" + "\\}", localVarApiClient.escapeString(sourceRef.toString()))
+ .replaceAll("\\{" + "destinationBranch" + "\\}", localVarApiClient.escapeString(destinationBranch.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -468,34 +414,36 @@ public okhttp3.Call findMergeBaseCall(String repository, String sourceRef, Strin
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 findMergeBaseValidateBeforeCall(String repository, String sourceRef, String destinationBranch, 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 findMergeBase(Async)");
}
-
+
// verify the required parameter 'sourceRef' is set
if (sourceRef == null) {
throw new ApiException("Missing the required parameter 'sourceRef' when calling findMergeBase(Async)");
}
-
+
// verify the required parameter 'destinationBranch' is set
if (destinationBranch == null) {
throw new ApiException("Missing the required parameter 'destinationBranch' when calling findMergeBase(Async)");
}
+
- return findMergeBaseCall(repository, sourceRef, destinationBranch, _callback);
+ okhttp3.Call localVarCall = findMergeBaseCall(repository, sourceRef, destinationBranch, _callback);
+ return localVarCall;
}
@@ -594,25 +542,12 @@ public okhttp3.Call findMergeBaseAsync(String repository, String sourceRef, Stri
*/
public okhttp3.Call logCommitsCall(String repository, String ref, String after, Integer amount, List objects, List prefixes, Boolean limit, 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}/refs/{ref}/commits"
- .replace("{" + "repository" + "}", localVarApiClient.escapeString(repository.toString()))
- .replace("{" + "ref" + "}", localVarApiClient.escapeString(ref.toString()));
+ .replaceAll("\\{" + "repository" + "\\}", localVarApiClient.escapeString(repository.toString()))
+ .replaceAll("\\{" + "ref" + "\\}", localVarApiClient.escapeString(ref.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -649,29 +584,31 @@ public okhttp3.Call logCommitsCall(String repository, String ref, String after,
}
final String[] localVarContentTypes = {
+
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
+ localVarHeaderParams.put("Content-Type", localVarContentType);
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "oidc_auth", "saml_auth", "jwt_token" };
- return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ String[] localVarAuthNames = new String[] { "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 logCommitsValidateBeforeCall(String repository, String ref, String after, Integer amount, List objects, List