diff --git a/Makefile b/Makefile index 7f59e399a3d..483ccff04cf 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ UID_GID := $(shell id -u):$(shell id -g) CLIENT_JARS_BUCKET="s3://treeverse-clients-us-east/" # https://openapi-generator.tech -OPENAPI_GENERATOR_IMAGE=treeverse/openapi-generator-cli:v7.0.0.1 +OPENAPI_GENERATOR_IMAGE=treeverse/openapi-generator-cli:v7.0.1.1 OPENAPI_GENERATOR=$(DOCKER) run --user $(UID_GID) --rm -v $(shell pwd):/mnt $(OPENAPI_GENERATOR_IMAGE) OPENAPI_RUST_GENERATOR_IMAGE=openapitools/openapi-generator-cli:v7.5.0 OPENAPI_RUST_GENERATOR=$(DOCKER) run --user $(UID_GID) --rm -v $(shell pwd):/mnt $(OPENAPI_RUST_GENERATOR_IMAGE) diff --git a/clients/java/.openapi-generator/VERSION b/clients/java/.openapi-generator/VERSION index 4122521804f..73a86b1970a 100644 --- a/clients/java/.openapi-generator/VERSION +++ b/clients/java/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.0 \ No newline at end of file +7.0.1 \ No newline at end of file diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ACL.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ACL.java index b114a6bd981..5cb37cc51b9 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ACL.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ACL.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/AbortPresignMultipartUpload.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/AbortPresignMultipartUpload.java index 51d0837e791..a3ee78b2da2 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/AbortPresignMultipartUpload.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/AbortPresignMultipartUpload.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/AccessKeyCredentials.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/AccessKeyCredentials.java index 40e757a7205..4da46ef4aa6 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/AccessKeyCredentials.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/AccessKeyCredentials.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ActionRun.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ActionRun.java index 6328801766a..082de8b7c14 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ActionRun.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ActionRun.java @@ -43,7 +43,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ActionRunList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ActionRunList.java index 28d11cda964..ae7204885aa 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ActionRunList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ActionRunList.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/AuthCapabilities.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/AuthCapabilities.java index 72ca5c74681..744658d04da 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/AuthCapabilities.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/AuthCapabilities.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/AuthenticationToken.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/AuthenticationToken.java index 47c4d874a19..9065040e420 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/AuthenticationToken.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/AuthenticationToken.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/BranchCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/BranchCreation.java index 954fe481d0f..1ff4a0f6ce1 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/BranchCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/BranchCreation.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/BranchProtectionRule.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/BranchProtectionRule.java index 6d37a6e7c93..3177881bd9d 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/BranchProtectionRule.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/BranchProtectionRule.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CherryPickCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CherryPickCreation.java index 720d406072c..5e20736759c 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CherryPickCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CherryPickCreation.java @@ -43,7 +43,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommPrefsInput.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommPrefsInput.java index 7cc3a6743d2..09bd89910c4 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommPrefsInput.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommPrefsInput.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Commit.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Commit.java index b33fc183ced..58e1b462c7f 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Commit.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Commit.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitCreation.java index 2cd000671f7..f398c6964bf 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitCreation.java @@ -44,7 +44,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitList.java index 07a18b89aa8..f8a20a1dc09 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitList.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitOverrides.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitOverrides.java index c70842c779a..9566fbb109b 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitOverrides.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitOverrides.java @@ -44,7 +44,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitRecordCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitRecordCreation.java index 4e9201bbac3..44dafaf2e6c 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitRecordCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CommitRecordCreation.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CompletePresignMultipartUpload.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CompletePresignMultipartUpload.java index 5b700352b08..4edf2f64043 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CompletePresignMultipartUpload.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CompletePresignMultipartUpload.java @@ -47,7 +47,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Config.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Config.java index 5cef9444bc2..1ee413156c2 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Config.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Config.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Credentials.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Credentials.java index 59b4afdd3c2..d0193877e63 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Credentials.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Credentials.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CredentialsList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CredentialsList.java index 5ff00a3eb9d..179c5ccb881 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CredentialsList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CredentialsList.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CredentialsWithSecret.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CredentialsWithSecret.java index e857102ccd0..0f3bb844532 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CredentialsWithSecret.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CredentialsWithSecret.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CurrentUser.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CurrentUser.java index 437c8c7055a..34d7c9896ef 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/CurrentUser.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/CurrentUser.java @@ -43,7 +43,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Diff.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Diff.java index 140ee3594ab..8d51da22bb5 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Diff.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Diff.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/DiffList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/DiffList.java index 650ae20f88f..a81479347ca 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/DiffList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/DiffList.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Error.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Error.java index 27e98359617..a7667e19c7a 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Error.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Error.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ErrorNoACL.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ErrorNoACL.java index bb9b47e0d57..88507006458 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ErrorNoACL.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ErrorNoACL.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalLoginInformation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalLoginInformation.java index ae63343c140..9df63442955 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalLoginInformation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalLoginInformation.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalPrincipal.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalPrincipal.java index df201f1b84e..86377a567a1 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalPrincipal.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalPrincipal.java @@ -45,7 +45,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalPrincipalCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalPrincipalCreation.java index b1dd043b8f4..1b94089bb1d 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalPrincipalCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalPrincipalCreation.java @@ -45,7 +45,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalPrincipalList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalPrincipalList.java index 83eacb7a4d7..36d2d88c200 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalPrincipalList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ExternalPrincipalList.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/FindMergeBaseResult.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/FindMergeBaseResult.java index 342fa3ad141..a7ea855e5f9 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/FindMergeBaseResult.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/FindMergeBaseResult.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionConfig.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionConfig.java index e1291bc8750..b33fc4984f2 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionConfig.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionConfig.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionPrepareResponse.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionPrepareResponse.java index 2978a5ff101..eebbcd0a088 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionPrepareResponse.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionPrepareResponse.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionRule.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionRule.java index fd9f3d8b581..de06adb7bce 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionRule.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionRule.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionRules.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionRules.java index d936e5855db..76b203de9d8 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionRules.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/GarbageCollectionRules.java @@ -45,7 +45,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Group.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Group.java index f35a5377c00..c336aadbb50 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Group.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Group.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/GroupCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/GroupCreation.java index 117050bae20..5838cae2283 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/GroupCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/GroupCreation.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/GroupList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/GroupList.java index 8cdb8eeb2e3..62aec5e8455 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/GroupList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/GroupList.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/HookRun.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/HookRun.java index eca8e126434..435eb7fd8a6 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/HookRun.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/HookRun.java @@ -43,7 +43,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/HookRunList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/HookRunList.java index c91c62157b8..c48acc54d30 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/HookRunList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/HookRunList.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportCreation.java index 695bf107e33..9f69f8eadc9 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportCreation.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportCreationResponse.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportCreationResponse.java index 0205e0190a7..6230dd7c156 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportCreationResponse.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportCreationResponse.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportLocation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportLocation.java index 116e6a85cab..e142d3cf1d0 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportLocation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportLocation.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportStatus.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportStatus.java index c6885ec3ee2..0ea050a6dda 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportStatus.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ImportStatus.java @@ -45,7 +45,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/InstallationUsageReport.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/InstallationUsageReport.java index d397cd10ad3..37b96b9f9fc 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/InstallationUsageReport.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/InstallationUsageReport.java @@ -45,7 +45,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/InternalDeleteBranchProtectionRuleRequest.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/InternalDeleteBranchProtectionRuleRequest.java index 78337f1b13d..9f8e03eb4a7 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/InternalDeleteBranchProtectionRuleRequest.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/InternalDeleteBranchProtectionRuleRequest.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/LoginConfig.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/LoginConfig.java index 8d74ef325ec..e41bea990d1 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/LoginConfig.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/LoginConfig.java @@ -44,7 +44,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/LoginInformation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/LoginInformation.java index 04635ad41f1..690514a57d3 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/LoginInformation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/LoginInformation.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Merge.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Merge.java index c04f995461b..8b99919d062 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Merge.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Merge.java @@ -44,7 +44,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/MergeResult.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/MergeResult.java index 435f0b087c1..d041f6df066 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/MergeResult.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/MergeResult.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/MetaRangeCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/MetaRangeCreation.java index 07c6f20b39c..701b7402f02 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/MetaRangeCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/MetaRangeCreation.java @@ -45,7 +45,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/MetaRangeCreationResponse.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/MetaRangeCreationResponse.java index 27e3ec2c4ed..c1e9c8ba608 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/MetaRangeCreationResponse.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/MetaRangeCreationResponse.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectCopyCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectCopyCreation.java index 3ccc7146fe7..9bd7eb668d6 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectCopyCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectCopyCreation.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectError.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectError.java index 6e0351e8d21..34acc7103ca 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectError.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectError.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectErrorList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectErrorList.java index 66c01c787de..3a57a80a911 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectErrorList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectErrorList.java @@ -45,7 +45,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectStageCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectStageCreation.java index 06bda0feed2..1bd98e664a0 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectStageCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectStageCreation.java @@ -44,7 +44,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectStats.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectStats.java index f211b1aa9c8..b04b1210e63 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectStats.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectStats.java @@ -44,7 +44,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectStatsList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectStatsList.java index 6896ea77522..c302d916e59 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectStatsList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectStatsList.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Pagination.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Pagination.java index 432ee615108..98e341718d8 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Pagination.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Pagination.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PathList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PathList.java index cc7cf0e938a..520b16c554b 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PathList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PathList.java @@ -44,7 +44,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Policy.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Policy.java index 39f23f47a6b..f7a72940a6c 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Policy.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Policy.java @@ -45,7 +45,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PolicyList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PolicyList.java index 38e73f52473..359391fca46 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PolicyList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PolicyList.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PrepareGCUncommittedRequest.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PrepareGCUncommittedRequest.java index 30667cb4f72..aca5558f784 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PrepareGCUncommittedRequest.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PrepareGCUncommittedRequest.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PrepareGCUncommittedResponse.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PrepareGCUncommittedResponse.java index 0a0d2cfcf27..2cdc46767eb 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PrepareGCUncommittedResponse.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PrepareGCUncommittedResponse.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PresignMultipartUpload.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PresignMultipartUpload.java index d054f818434..548613c4d26 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PresignMultipartUpload.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PresignMultipartUpload.java @@ -44,7 +44,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequest.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequest.java index cf0920f2ad3..0f99f3fd847 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequest.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequest.java @@ -43,7 +43,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestBasic.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestBasic.java index a8733f117da..2e9521c5b33 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestBasic.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestBasic.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestCreation.java index fd564005c2c..ebd023ea983 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestCreation.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestCreationResponse.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestCreationResponse.java index 2bf9a88976d..dc430853f55 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestCreationResponse.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestCreationResponse.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestsList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestsList.java index a853df4432e..701bf1667f2 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestsList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/PullRequestsList.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RangeMetadata.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RangeMetadata.java index 0b199ff5237..5a4c7c6efdc 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RangeMetadata.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RangeMetadata.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Ref.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Ref.java index 58676fc5785..91a9e6f0309 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Ref.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Ref.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RefList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RefList.java index 2e07cd35630..23b1f1fd0bf 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RefList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RefList.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RefsDump.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RefsDump.java index 9ff656394cc..206d564459e 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RefsDump.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RefsDump.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RefsRestore.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RefsRestore.java index ce08b195aa0..79640fea9eb 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RefsRestore.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RefsRestore.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Repository.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Repository.java index 6f09633ee7c..ba8fe60552d 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Repository.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Repository.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryCreation.java index f290d6f1922..61acc028ba8 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryCreation.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryDumpStatus.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryDumpStatus.java index bcfcbd301b4..2973db0a53f 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryDumpStatus.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryDumpStatus.java @@ -44,7 +44,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryList.java index bba2a43f1c9..3549b0eb4f8 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryList.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryMetadataKeys.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryMetadataKeys.java index d55510631cf..a228cab55aa 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryMetadataKeys.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryMetadataKeys.java @@ -44,7 +44,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryMetadataSet.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryMetadataSet.java index 0d42138d12e..f0744f3ef36 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryMetadataSet.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryMetadataSet.java @@ -44,7 +44,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryRestoreStatus.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryRestoreStatus.java index b9b9656949b..c7c80aae504 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryRestoreStatus.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RepositoryRestoreStatus.java @@ -43,7 +43,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ResetCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ResetCreation.java index 914adfb53bb..0c296bcceea 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/ResetCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/ResetCreation.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RevertCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RevertCreation.java index 25994cd4654..cf57e774e8a 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/RevertCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/RevertCreation.java @@ -43,7 +43,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Setup.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Setup.java index cb4eeb09fce..a40f7dd5521 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Setup.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Setup.java @@ -43,7 +43,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/SetupState.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/SetupState.java index 20269e4439d..0e969e62d7b 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/SetupState.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/SetupState.java @@ -43,7 +43,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StagingLocation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StagingLocation.java index 1fbd994ca3d..a839c00ff66 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StagingLocation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StagingLocation.java @@ -43,7 +43,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StagingMetadata.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StagingMetadata.java index 3129c314333..5772b44b50a 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StagingMetadata.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StagingMetadata.java @@ -45,7 +45,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Statement.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Statement.java index 6274cbfb8bc..2e7f338d931 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/Statement.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/Statement.java @@ -44,7 +44,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StatsEvent.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StatsEvent.java index 685c0cd3d50..7c61c444850 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StatsEvent.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StatsEvent.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StatsEventsList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StatsEventsList.java index b978bb1a9ee..a8ddfd9d714 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StatsEventsList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StatsEventsList.java @@ -45,7 +45,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StorageConfig.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StorageConfig.java index 2e39a4628d0..be17ce841ed 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StorageConfig.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StorageConfig.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StorageURI.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StorageURI.java index 1d101804f9b..d3fbc008539 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StorageURI.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StorageURI.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StsAuthRequest.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StsAuthRequest.java index b3e67353f7d..2775a70a672 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/StsAuthRequest.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/StsAuthRequest.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/TagCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/TagCreation.java index f57b4b4fd2c..f45c7077d01 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/TagCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/TagCreation.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/TaskInfo.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/TaskInfo.java index 4c5dbd6eabe..695622c4449 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/TaskInfo.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/TaskInfo.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UnderlyingObjectProperties.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UnderlyingObjectProperties.java index e5b82e4187d..1deeb7d61e0 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UnderlyingObjectProperties.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UnderlyingObjectProperties.java @@ -43,7 +43,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UpdateObjectUserMetadata.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UpdateObjectUserMetadata.java index 55adc0c22df..65267065de3 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UpdateObjectUserMetadata.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UpdateObjectUserMetadata.java @@ -44,7 +44,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UpdateToken.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UpdateToken.java index 3db28254226..d8108dfa028 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UpdateToken.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UpdateToken.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UploadPart.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UploadPart.java index 8382c91e869..cd0d338a3a8 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UploadPart.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UploadPart.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UsageReport.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UsageReport.java index 3ff52e24d0d..fa3e5de6d9c 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UsageReport.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UsageReport.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/User.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/User.java index 7aab632b873..429d23bf02e 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/User.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/User.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UserCreation.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UserCreation.java index 020153e0853..f80486893b7 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UserCreation.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UserCreation.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UserList.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UserList.java index 80da475391f..834576eb48f 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/UserList.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/UserList.java @@ -46,7 +46,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/java/src/main/java/io/lakefs/clients/sdk/model/VersionConfig.java b/clients/java/src/main/java/io/lakefs/clients/sdk/model/VersionConfig.java index fd13ebd0005..e084dec9827 100644 --- a/clients/java/src/main/java/io/lakefs/clients/sdk/model/VersionConfig.java +++ b/clients/java/src/main/java/io/lakefs/clients/sdk/model/VersionConfig.java @@ -42,7 +42,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import io.lakefs.clients.sdk.JSON; diff --git a/clients/python/.openapi-generator/VERSION b/clients/python/.openapi-generator/VERSION index 4122521804f..73a86b1970a 100644 --- a/clients/python/.openapi-generator/VERSION +++ b/clients/python/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.0 \ No newline at end of file +7.0.1 \ No newline at end of file diff --git a/clients/python/docs/ActionsApi.md b/clients/python/docs/ActionsApi.md index a35752995f8..d0af4107472 100644 --- a/clients/python/docs/ActionsApi.md +++ b/clients/python/docs/ActionsApi.md @@ -22,7 +22,6 @@ get a run * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -134,7 +133,6 @@ get run hook output * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -247,7 +245,6 @@ list runs * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -365,7 +362,6 @@ list run hooks * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/AuthApi.md b/clients/python/docs/AuthApi.md index dfd5f7b2a63..5d9709eeca4 100644 --- a/clients/python/docs/AuthApi.md +++ b/clients/python/docs/AuthApi.md @@ -54,7 +54,6 @@ add group membership * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -163,7 +162,6 @@ attach policy to group * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -272,7 +270,6 @@ attach policy to user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -381,7 +378,6 @@ create credentials * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -491,7 +487,6 @@ create group * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -602,7 +597,6 @@ create policy * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -713,7 +707,6 @@ create user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -825,7 +818,6 @@ attach external principal to user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -938,7 +930,6 @@ delete credentials * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1047,7 +1038,6 @@ delete group * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1154,7 +1144,6 @@ delete group membership * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1263,7 +1252,6 @@ delete policy * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1370,7 +1358,6 @@ delete user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1477,7 +1464,6 @@ delete external principal from user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1586,7 +1572,6 @@ detach policy from group * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1695,7 +1680,6 @@ detach policy from user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1799,7 +1783,6 @@ perform a login using an external authenticator ### Example - ```python import time import os @@ -1879,7 +1862,6 @@ get credentials * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1991,7 +1973,6 @@ get current user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2093,7 +2074,6 @@ describe external principal by id * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2203,7 +2183,6 @@ get group * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2313,7 +2292,6 @@ get ACL of group * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2423,7 +2401,6 @@ get policy * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2533,7 +2510,6 @@ get user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2643,7 +2619,6 @@ list group members * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2758,7 +2733,6 @@ list group policies * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2874,7 +2848,6 @@ list groups * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2987,7 +2960,6 @@ list policies * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -3100,7 +3072,6 @@ list user credentials * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -3216,7 +3187,6 @@ list user external policies attached to a user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -3332,7 +3302,6 @@ list user groups * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -3448,7 +3417,6 @@ list user policies * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -3566,7 +3534,6 @@ list users * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -3674,7 +3641,6 @@ perform a login ### Example - ```python import time import os @@ -3751,7 +3717,6 @@ set ACL of group * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -3861,7 +3826,6 @@ update policy * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/BranchesApi.md b/clients/python/docs/BranchesApi.md index 062738f387a..a30ec526169 100644 --- a/clients/python/docs/BranchesApi.md +++ b/clients/python/docs/BranchesApi.md @@ -26,7 +26,6 @@ Replay the changes from the given commit on the branch * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -144,7 +143,6 @@ create branch * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -259,7 +257,6 @@ delete branch * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -371,7 +368,6 @@ diff branch * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -491,7 +487,6 @@ get branch * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -603,7 +598,6 @@ list branches * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -721,7 +715,6 @@ reset branch * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -835,7 +828,6 @@ revert * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/CommitsApi.md b/clients/python/docs/CommitsApi.md index 067f4bdaf84..a9bdfa00451 100644 --- a/clients/python/docs/CommitsApi.md +++ b/clients/python/docs/CommitsApi.md @@ -20,7 +20,6 @@ create commit * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -141,7 +140,6 @@ get commit * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/ConfigApi.md b/clients/python/docs/ConfigApi.md index bb153b51290..81edf684d53 100644 --- a/clients/python/docs/ConfigApi.md +++ b/clients/python/docs/ConfigApi.md @@ -21,7 +21,6 @@ retrieve lakeFS configuration * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/ExperimentalApi.md b/clients/python/docs/ExperimentalApi.md index 1ecf62850a9..fd05395227e 100644 --- a/clients/python/docs/ExperimentalApi.md +++ b/clients/python/docs/ExperimentalApi.md @@ -36,7 +36,6 @@ Aborts a presign multipart upload. * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -155,7 +154,6 @@ Completes a presign multipart upload by assembling the uploaded parts. * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -278,7 +276,6 @@ Initiates a multipart upload and returns an upload ID with presigned URLs for ea * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -395,7 +392,6 @@ create pull request * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -511,7 +507,6 @@ attach external principal to user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -624,7 +619,6 @@ delete external principal from user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -728,7 +722,6 @@ perform a login using an external authenticator ### Example - ```python import time import os @@ -808,7 +801,6 @@ describe external principal by id * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -918,7 +910,6 @@ get pull request * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1033,7 +1024,6 @@ Relocate branch to refer to ref. Branch must not contain uncommitted data. * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1148,7 +1138,6 @@ list pull requests * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1266,7 +1255,6 @@ list user external policies attached to a user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1382,7 +1370,6 @@ merge pull request * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1493,7 +1480,6 @@ perform a login with STS ### Example - ```python import time import os @@ -1570,7 +1556,6 @@ rewrite (all) object metadata * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1685,7 +1670,6 @@ update pull request * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/ExternalApi.md b/clients/python/docs/ExternalApi.md index f65514dc4f1..af5979ca327 100644 --- a/clients/python/docs/ExternalApi.md +++ b/clients/python/docs/ExternalApi.md @@ -23,7 +23,6 @@ attach external principal to user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -136,7 +135,6 @@ delete external principal from user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -240,7 +238,6 @@ perform a login using an external authenticator ### Example - ```python import time import os @@ -320,7 +317,6 @@ describe external principal by id * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -430,7 +426,6 @@ list user external policies attached to a user * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/HealthCheckApi.md b/clients/python/docs/HealthCheckApi.md index 3c3572d0817..6d80fff3434 100644 --- a/clients/python/docs/HealthCheckApi.md +++ b/clients/python/docs/HealthCheckApi.md @@ -16,7 +16,6 @@ check that the API server is up and running ### Example - ```python import time import os diff --git a/clients/python/docs/ImportApi.md b/clients/python/docs/ImportApi.md index 496f2ac4369..5b916e57c85 100644 --- a/clients/python/docs/ImportApi.md +++ b/clients/python/docs/ImportApi.md @@ -21,7 +21,6 @@ cancel ongoing import * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -134,7 +133,6 @@ import data from object store * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -251,7 +249,6 @@ get import status * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/InternalApi.md b/clients/python/docs/InternalApi.md index 276bcbb418b..d394a74dca0 100644 --- a/clients/python/docs/InternalApi.md +++ b/clients/python/docs/InternalApi.md @@ -46,7 +46,6 @@ Method | HTTP request | Description * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -153,7 +152,6 @@ create commit record * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -265,7 +263,6 @@ creates symlink files corresponding to the given directory * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -381,7 +378,6 @@ Delete specified keys from the repository's metadata. * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -490,7 +486,6 @@ Dump repository refs (tags, commits, branches) to object store Deprecated: a new * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -596,7 +591,6 @@ list authentication capabilities supported ### Example - ```python import time import os @@ -669,7 +663,6 @@ get information of gc settings * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -773,7 +766,6 @@ get version of lakeFS server * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -875,7 +867,6 @@ return a lakeFS metadata object by ID * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -986,7 +977,6 @@ check if the lakeFS installation is already set up ### Example - ```python import time import os @@ -1059,7 +1049,6 @@ retrieve lakeFS storage configuration * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1161,7 +1150,6 @@ get usage report summary * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1268,7 +1256,6 @@ This endpoint does not need any parameter. * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1377,7 +1364,6 @@ void (empty response body) * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1486,7 +1472,6 @@ void (empty response body) * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1592,7 +1577,6 @@ get branch protection rules * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1702,7 +1686,6 @@ Name | Type | Description | Notes * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1811,7 +1794,6 @@ Name | Type | Description | Notes * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1920,7 +1902,6 @@ post stats events, this endpoint is meant for internal use only * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2028,7 +2009,6 @@ save lists of active commits for garbage collection * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2139,7 +2119,6 @@ save repository uncommitted metadata for garbage collection * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2254,7 +2233,6 @@ Restore repository refs (tags, commits, branches) from object store. Deprecated: * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2365,7 +2343,6 @@ void (empty response body) * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2473,7 +2450,6 @@ Set repository metadata. This will only add or update the provided keys, and wil * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2578,7 +2554,6 @@ setup lakeFS and create a first user ### Example - ```python import time import os @@ -2651,7 +2626,6 @@ setup communications preferences ### Example - ```python import time import os @@ -2726,7 +2700,6 @@ stage an object's metadata for the given branch * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -2845,7 +2818,6 @@ Name | Type | Description | Notes * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/MetadataApi.md b/clients/python/docs/MetadataApi.md index 248e02e2629..af8bd06a359 100644 --- a/clients/python/docs/MetadataApi.md +++ b/clients/python/docs/MetadataApi.md @@ -20,7 +20,6 @@ return URI to a meta-range file * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -132,7 +131,6 @@ return URI to a range file * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/ObjectsApi.md b/clients/python/docs/ObjectsApi.md index 505b4739d38..7b946acbaeb 100644 --- a/clients/python/docs/ObjectsApi.md +++ b/clients/python/docs/ObjectsApi.md @@ -28,7 +28,6 @@ create a copy of an object * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -147,7 +146,6 @@ delete object. Missing objects will not return a NotFound error. * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -261,7 +259,6 @@ delete objects. Missing objects will not return a NotFound error. * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -379,7 +376,6 @@ get object content * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -503,7 +499,6 @@ get object properties on underlying storage * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -617,7 +612,6 @@ check if object exists * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -733,7 +727,6 @@ list objects under a given prefix * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -857,7 +850,6 @@ get object metadata * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -977,7 +969,6 @@ rewrite (all) object metadata * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1092,7 +1083,6 @@ void (empty response body) * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/PullsApi.md b/clients/python/docs/PullsApi.md index ee71bc12396..0803c64aebc 100644 --- a/clients/python/docs/PullsApi.md +++ b/clients/python/docs/PullsApi.md @@ -23,7 +23,6 @@ create pull request * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -139,7 +138,6 @@ get pull request * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -252,7 +250,6 @@ list pull requests * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -370,7 +367,6 @@ merge pull request * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -486,7 +482,6 @@ update pull request * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/RefsApi.md b/clients/python/docs/RefsApi.md index ac999a2ff24..abe907c570f 100644 --- a/clients/python/docs/RefsApi.md +++ b/clients/python/docs/RefsApi.md @@ -22,7 +22,6 @@ diff references * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -146,7 +145,6 @@ find the merge base for 2 references * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -261,7 +259,6 @@ get commit log from ref. If both objects and prefixes are empty, return all comm * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -389,7 +386,6 @@ merge references * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/RepositoriesApi.md b/clients/python/docs/RepositoriesApi.md index 2d640e50392..2f960ab802e 100644 --- a/clients/python/docs/RepositoriesApi.md +++ b/clients/python/docs/RepositoriesApi.md @@ -32,7 +32,6 @@ create repository * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -146,7 +145,6 @@ Name | Type | Description | Notes * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -253,7 +251,6 @@ delete repository * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -362,7 +359,6 @@ Status of a repository dump task * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -475,7 +471,6 @@ Backup the repository metadata (tags, commits, branches) and save the backup to * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -585,7 +580,6 @@ get branch protection rules * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -695,7 +689,6 @@ get repository GC rules * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -805,7 +798,6 @@ get repository * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -915,7 +907,6 @@ get repository metadata * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1024,7 +1015,6 @@ list repositories * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1139,7 +1129,6 @@ Status of a restore request * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1252,7 +1241,6 @@ Restore repository from a dump in the object store * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1366,7 +1354,6 @@ Name | Type | Description | Notes * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -1480,7 +1467,6 @@ void (empty response body) * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/StagingApi.md b/clients/python/docs/StagingApi.md index ae82b69ba5f..6e06a04d7b9 100644 --- a/clients/python/docs/StagingApi.md +++ b/clients/python/docs/StagingApi.md @@ -20,7 +20,6 @@ generate an address to which the client can upload an object * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -138,7 +137,6 @@ Link the physical address with the path in lakeFS, creating an uncommitted chang * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/docs/TagsApi.md b/clients/python/docs/TagsApi.md index 8deb20e8598..292f59295cf 100644 --- a/clients/python/docs/TagsApi.md +++ b/clients/python/docs/TagsApi.md @@ -22,7 +22,6 @@ create tag * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -138,7 +137,6 @@ delete tag * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -250,7 +248,6 @@ get tag * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os @@ -362,7 +359,6 @@ list tags * Api Key Authentication (oidc_auth): * Api Key Authentication (saml_auth): * Bearer (JWT) Authentication (jwt_token): - ```python import time import os diff --git a/clients/python/lakefs_sdk/api/actions_api.py b/clients/python/lakefs_sdk/api/actions_api.py index c5e7dd69376..536d768b863 100644 --- a/clients/python/lakefs_sdk/api/actions_api.py +++ b/clients/python/lakefs_sdk/api/actions_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated try: from pydantic.v1 import Field, StrictStr, conint except ImportError: @@ -42,14 +42,14 @@ ) -class ActionsApi(object): +class ActionsApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -70,10 +70,10 @@ def get_run(self, repository : StrictStr, run_id : StrictStr, **kwargs) -> Actio :type run_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -81,7 +81,8 @@ def get_run(self, repository : StrictStr, run_id : StrictStr, **kwargs) -> Actio """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_run_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_run_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_run_with_http_info(repository, run_id, **kwargs) # noqa: E501 @validate_arguments @@ -101,7 +102,7 @@ def get_run_with_http_info(self, repository : StrictStr, run_id : StrictStr, **k :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -220,10 +221,10 @@ def get_run_hook_output(self, repository : StrictStr, run_id : StrictStr, hook_r :type hook_run_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -231,7 +232,8 @@ def get_run_hook_output(self, repository : StrictStr, run_id : StrictStr, hook_r """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_run_hook_output_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_run_hook_output_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_run_hook_output_with_http_info(repository, run_id, hook_run_id, **kwargs) # noqa: E501 @validate_arguments @@ -253,7 +255,7 @@ def get_run_hook_output_with_http_info(self, repository : StrictStr, run_id : St :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -380,10 +382,10 @@ def list_repository_runs(self, repository : StrictStr, after : Annotated[Optiona :type commit: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -391,7 +393,8 @@ def list_repository_runs(self, repository : StrictStr, after : Annotated[Optiona """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_repository_runs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_repository_runs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_repository_runs_with_http_info(repository, after, amount, branch, commit, **kwargs) # noqa: E501 @validate_arguments @@ -417,7 +420,7 @@ def list_repository_runs_with_http_info(self, repository : StrictStr, after : An :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -550,10 +553,10 @@ def list_run_hooks(self, repository : StrictStr, run_id : StrictStr, after : Ann :type amount: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -561,7 +564,8 @@ def list_run_hooks(self, repository : StrictStr, run_id : StrictStr, after : Ann """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_run_hooks_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_run_hooks_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_run_hooks_with_http_info(repository, run_id, after, amount, **kwargs) # noqa: E501 @validate_arguments @@ -585,7 +589,7 @@ def list_run_hooks_with_http_info(self, repository : StrictStr, run_id : StrictS :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/auth_api.py b/clients/python/lakefs_sdk/api/auth_api.py index a5621dc4b4d..d6273e08a01 100644 --- a/clients/python/lakefs_sdk/api/auth_api.py +++ b/clients/python/lakefs_sdk/api/auth_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated try: from pydantic.v1 import Field, StrictBool, StrictStr, conint except ImportError: @@ -58,14 +58,14 @@ ) -class AuthApi(object): +class AuthApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -86,10 +86,10 @@ def add_group_membership(self, group_id : StrictStr, user_id : StrictStr, **kwar :type user_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -97,7 +97,8 @@ def add_group_membership(self, group_id : StrictStr, user_id : StrictStr, **kwar """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the add_group_membership_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the add_group_membership_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.add_group_membership_with_http_info(group_id, user_id, **kwargs) # noqa: E501 @validate_arguments @@ -117,7 +118,7 @@ def add_group_membership_with_http_info(self, group_id : StrictStr, user_id : St :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -229,10 +230,10 @@ def attach_policy_to_group(self, group_id : StrictStr, policy_id : StrictStr, ** :type policy_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -240,7 +241,8 @@ def attach_policy_to_group(self, group_id : StrictStr, policy_id : StrictStr, ** """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the attach_policy_to_group_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the attach_policy_to_group_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.attach_policy_to_group_with_http_info(group_id, policy_id, **kwargs) # noqa: E501 @validate_arguments @@ -260,7 +262,7 @@ def attach_policy_to_group_with_http_info(self, group_id : StrictStr, policy_id :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -372,10 +374,10 @@ def attach_policy_to_user(self, user_id : StrictStr, policy_id : StrictStr, **kw :type policy_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -383,7 +385,8 @@ def attach_policy_to_user(self, user_id : StrictStr, policy_id : StrictStr, **kw """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the attach_policy_to_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the attach_policy_to_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.attach_policy_to_user_with_http_info(user_id, policy_id, **kwargs) # noqa: E501 @validate_arguments @@ -403,7 +406,7 @@ def attach_policy_to_user_with_http_info(self, user_id : StrictStr, policy_id : :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -513,10 +516,10 @@ def create_credentials(self, user_id : StrictStr, **kwargs) -> CredentialsWithSe :type user_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -524,7 +527,8 @@ def create_credentials(self, user_id : StrictStr, **kwargs) -> CredentialsWithSe """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_credentials_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_credentials_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_credentials_with_http_info(user_id, **kwargs) # noqa: E501 @validate_arguments @@ -542,7 +546,7 @@ def create_credentials_with_http_info(self, user_id : StrictStr, **kwargs) -> Ap :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -653,10 +657,10 @@ def create_group(self, group_creation : Optional[GroupCreation] = None, **kwargs :type group_creation: GroupCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -664,7 +668,8 @@ def create_group(self, group_creation : Optional[GroupCreation] = None, **kwargs """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_group_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_group_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_group_with_http_info(group_creation, **kwargs) # noqa: E501 @validate_arguments @@ -682,7 +687,7 @@ def create_group_with_http_info(self, group_creation : Optional[GroupCreation] = :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -800,10 +805,10 @@ def create_policy(self, policy : Policy, **kwargs) -> Policy: # noqa: E501 :type policy: Policy :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -811,7 +816,8 @@ def create_policy(self, policy : Policy, **kwargs) -> Policy: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_policy_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_policy_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_policy_with_http_info(policy, **kwargs) # noqa: E501 @validate_arguments @@ -829,7 +835,7 @@ def create_policy_with_http_info(self, policy : Policy, **kwargs) -> ApiResponse :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -948,10 +954,10 @@ def create_user(self, user_creation : Optional[UserCreation] = None, **kwargs) - :type user_creation: UserCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -959,7 +965,8 @@ def create_user(self, user_creation : Optional[UserCreation] = None, **kwargs) - """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_user_with_http_info(user_creation, **kwargs) # noqa: E501 @validate_arguments @@ -977,7 +984,7 @@ def create_user_with_http_info(self, user_creation : Optional[UserCreation] = No :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1100,10 +1107,10 @@ def create_user_external_principal(self, user_id : StrictStr, principal_id : Str :type external_principal_creation: ExternalPrincipalCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1111,7 +1118,8 @@ def create_user_external_principal(self, user_id : StrictStr, principal_id : Str """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_user_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_user_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_user_external_principal_with_http_info(user_id, principal_id, external_principal_creation, **kwargs) # noqa: E501 @validate_arguments @@ -1133,7 +1141,7 @@ def create_user_external_principal_with_http_info(self, user_id : StrictStr, pri :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1256,10 +1264,10 @@ def delete_credentials(self, user_id : StrictStr, access_key_id : StrictStr, **k :type access_key_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1267,7 +1275,8 @@ def delete_credentials(self, user_id : StrictStr, access_key_id : StrictStr, **k """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_credentials_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_credentials_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_credentials_with_http_info(user_id, access_key_id, **kwargs) # noqa: E501 @validate_arguments @@ -1287,7 +1296,7 @@ def delete_credentials_with_http_info(self, user_id : StrictStr, access_key_id : :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1397,10 +1406,10 @@ def delete_group(self, group_id : StrictStr, **kwargs) -> None: # noqa: E501 :type group_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1408,7 +1417,8 @@ def delete_group(self, group_id : StrictStr, **kwargs) -> None: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_group_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_group_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_group_with_http_info(group_id, **kwargs) # noqa: E501 @validate_arguments @@ -1426,7 +1436,7 @@ def delete_group_with_http_info(self, group_id : StrictStr, **kwargs) -> ApiResp :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1534,10 +1544,10 @@ def delete_group_membership(self, group_id : StrictStr, user_id : StrictStr, **k :type user_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1545,7 +1555,8 @@ def delete_group_membership(self, group_id : StrictStr, user_id : StrictStr, **k """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_group_membership_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_group_membership_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_group_membership_with_http_info(group_id, user_id, **kwargs) # noqa: E501 @validate_arguments @@ -1565,7 +1576,7 @@ def delete_group_membership_with_http_info(self, group_id : StrictStr, user_id : :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1675,10 +1686,10 @@ def delete_policy(self, policy_id : StrictStr, **kwargs) -> None: # noqa: E501 :type policy_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1686,7 +1697,8 @@ def delete_policy(self, policy_id : StrictStr, **kwargs) -> None: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_policy_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_policy_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_policy_with_http_info(policy_id, **kwargs) # noqa: E501 @validate_arguments @@ -1704,7 +1716,7 @@ def delete_policy_with_http_info(self, policy_id : StrictStr, **kwargs) -> ApiRe :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1810,10 +1822,10 @@ def delete_user(self, user_id : StrictStr, **kwargs) -> None: # noqa: E501 :type user_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1821,7 +1833,8 @@ def delete_user(self, user_id : StrictStr, **kwargs) -> None: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_user_with_http_info(user_id, **kwargs) # noqa: E501 @validate_arguments @@ -1839,7 +1852,7 @@ def delete_user_with_http_info(self, user_id : StrictStr, **kwargs) -> ApiRespon :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1947,10 +1960,10 @@ def delete_user_external_principal(self, user_id : StrictStr, principal_id : Str :type principal_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1958,7 +1971,8 @@ def delete_user_external_principal(self, user_id : StrictStr, principal_id : Str """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_user_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_user_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_user_external_principal_with_http_info(user_id, principal_id, **kwargs) # noqa: E501 @validate_arguments @@ -1978,7 +1992,7 @@ def delete_user_external_principal_with_http_info(self, user_id : StrictStr, pri :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2090,10 +2104,10 @@ def detach_policy_from_group(self, group_id : StrictStr, policy_id : StrictStr, :type policy_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2101,7 +2115,8 @@ def detach_policy_from_group(self, group_id : StrictStr, policy_id : StrictStr, """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the detach_policy_from_group_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the detach_policy_from_group_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.detach_policy_from_group_with_http_info(group_id, policy_id, **kwargs) # noqa: E501 @validate_arguments @@ -2121,7 +2136,7 @@ def detach_policy_from_group_with_http_info(self, group_id : StrictStr, policy_i :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2233,10 +2248,10 @@ def detach_policy_from_user(self, user_id : StrictStr, policy_id : StrictStr, ** :type policy_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2244,7 +2259,8 @@ def detach_policy_from_user(self, user_id : StrictStr, policy_id : StrictStr, ** """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the detach_policy_from_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the detach_policy_from_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.detach_policy_from_user_with_http_info(user_id, policy_id, **kwargs) # noqa: E501 @validate_arguments @@ -2264,7 +2280,7 @@ def detach_policy_from_user_with_http_info(self, user_id : StrictStr, policy_id :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2374,10 +2390,10 @@ def external_principal_login(self, external_login_information : Optional[Externa :type external_login_information: ExternalLoginInformation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2385,7 +2401,8 @@ def external_principal_login(self, external_login_information : Optional[Externa """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the external_principal_login_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the external_principal_login_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.external_principal_login_with_http_info(external_login_information, **kwargs) # noqa: E501 @validate_arguments @@ -2403,7 +2420,7 @@ def external_principal_login_with_http_info(self, external_login_information : O :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2525,10 +2542,10 @@ def get_credentials(self, user_id : StrictStr, access_key_id : StrictStr, **kwar :type access_key_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2536,7 +2553,8 @@ def get_credentials(self, user_id : StrictStr, access_key_id : StrictStr, **kwar """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_credentials_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_credentials_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_credentials_with_http_info(user_id, access_key_id, **kwargs) # noqa: E501 @validate_arguments @@ -2556,7 +2574,7 @@ def get_credentials_with_http_info(self, user_id : StrictStr, access_key_id : St :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2669,10 +2687,10 @@ def get_current_user(self, **kwargs) -> CurrentUser: # noqa: E501 :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2680,7 +2698,8 @@ def get_current_user(self, **kwargs) -> CurrentUser: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_current_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_current_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_current_user_with_http_info(**kwargs) # noqa: E501 @validate_arguments @@ -2696,7 +2715,7 @@ def get_current_user_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E50 :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2800,10 +2819,10 @@ def get_external_principal(self, principal_id : StrictStr, **kwargs) -> External :type principal_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2811,7 +2830,8 @@ def get_external_principal(self, principal_id : StrictStr, **kwargs) -> External """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_external_principal_with_http_info(principal_id, **kwargs) # noqa: E501 @validate_arguments @@ -2829,7 +2849,7 @@ def get_external_principal_with_http_info(self, principal_id : StrictStr, **kwar :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2940,10 +2960,10 @@ def get_group(self, group_id : StrictStr, **kwargs) -> Group: # noqa: E501 :type group_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2951,7 +2971,8 @@ def get_group(self, group_id : StrictStr, **kwargs) -> Group: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_group_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_group_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_group_with_http_info(group_id, **kwargs) # noqa: E501 @validate_arguments @@ -2969,7 +2990,7 @@ def get_group_with_http_info(self, group_id : StrictStr, **kwargs) -> ApiRespons :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -3080,10 +3101,10 @@ def get_group_acl(self, group_id : StrictStr, **kwargs) -> ACL: # noqa: E501 :type group_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -3091,7 +3112,8 @@ def get_group_acl(self, group_id : StrictStr, **kwargs) -> ACL: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_group_acl_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_group_acl_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_group_acl_with_http_info(group_id, **kwargs) # noqa: E501 @validate_arguments @@ -3109,7 +3131,7 @@ def get_group_acl_with_http_info(self, group_id : StrictStr, **kwargs) -> ApiRes :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -3220,10 +3242,10 @@ def get_policy(self, policy_id : StrictStr, **kwargs) -> Policy: # noqa: E501 :type policy_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -3231,7 +3253,8 @@ def get_policy(self, policy_id : StrictStr, **kwargs) -> Policy: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_policy_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_policy_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_policy_with_http_info(policy_id, **kwargs) # noqa: E501 @validate_arguments @@ -3249,7 +3272,7 @@ def get_policy_with_http_info(self, policy_id : StrictStr, **kwargs) -> ApiRespo :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -3360,10 +3383,10 @@ def get_user(self, user_id : StrictStr, **kwargs) -> User: # noqa: E501 :type user_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -3371,7 +3394,8 @@ def get_user(self, user_id : StrictStr, **kwargs) -> User: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_user_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_user_with_http_info(user_id, **kwargs) # noqa: E501 @validate_arguments @@ -3389,7 +3413,7 @@ def get_user_with_http_info(self, user_id : StrictStr, **kwargs) -> ApiResponse: :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -3506,10 +3530,10 @@ def list_group_members(self, group_id : StrictStr, prefix : Annotated[Optional[S :type amount: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -3517,7 +3541,8 @@ def list_group_members(self, group_id : StrictStr, prefix : Annotated[Optional[S """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_group_members_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_group_members_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_group_members_with_http_info(group_id, prefix, after, amount, **kwargs) # noqa: E501 @validate_arguments @@ -3541,7 +3566,7 @@ def list_group_members_with_http_info(self, group_id : StrictStr, prefix : Annot :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -3669,10 +3694,10 @@ def list_group_policies(self, group_id : StrictStr, prefix : Annotated[Optional[ :type amount: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -3680,7 +3705,8 @@ def list_group_policies(self, group_id : StrictStr, prefix : Annotated[Optional[ """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_group_policies_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_group_policies_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_group_policies_with_http_info(group_id, prefix, after, amount, **kwargs) # noqa: E501 @validate_arguments @@ -3704,7 +3730,7 @@ def list_group_policies_with_http_info(self, group_id : StrictStr, prefix : Anno :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -3831,10 +3857,10 @@ def list_groups(self, prefix : Annotated[Optional[StrictStr], Field(description= :type amount: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -3842,7 +3868,8 @@ def list_groups(self, prefix : Annotated[Optional[StrictStr], Field(description= """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_groups_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_groups_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_groups_with_http_info(prefix, after, amount, **kwargs) # noqa: E501 @validate_arguments @@ -3864,7 +3891,7 @@ def list_groups_with_http_info(self, prefix : Annotated[Optional[StrictStr], Fie :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -3986,10 +4013,10 @@ def list_policies(self, prefix : Annotated[Optional[StrictStr], Field(descriptio :type amount: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -3997,7 +4024,8 @@ def list_policies(self, prefix : Annotated[Optional[StrictStr], Field(descriptio """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_policies_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_policies_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_policies_with_http_info(prefix, after, amount, **kwargs) # noqa: E501 @validate_arguments @@ -4019,7 +4047,7 @@ def list_policies_with_http_info(self, prefix : Annotated[Optional[StrictStr], F :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -4143,10 +4171,10 @@ def list_user_credentials(self, user_id : StrictStr, prefix : Annotated[Optional :type amount: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -4154,7 +4182,8 @@ def list_user_credentials(self, user_id : StrictStr, prefix : Annotated[Optional """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_user_credentials_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_user_credentials_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_user_credentials_with_http_info(user_id, prefix, after, amount, **kwargs) # noqa: E501 @validate_arguments @@ -4178,7 +4207,7 @@ def list_user_credentials_with_http_info(self, user_id : StrictStr, prefix : Ann :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -4307,10 +4336,10 @@ def list_user_external_principals(self, user_id : StrictStr, prefix : Annotated[ :type amount: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -4318,7 +4347,8 @@ def list_user_external_principals(self, user_id : StrictStr, prefix : Annotated[ """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_user_external_principals_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_user_external_principals_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_user_external_principals_with_http_info(user_id, prefix, after, amount, **kwargs) # noqa: E501 @validate_arguments @@ -4342,7 +4372,7 @@ def list_user_external_principals_with_http_info(self, user_id : StrictStr, pref :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -4471,10 +4501,10 @@ def list_user_groups(self, user_id : StrictStr, prefix : Annotated[Optional[Stri :type amount: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -4482,7 +4512,8 @@ def list_user_groups(self, user_id : StrictStr, prefix : Annotated[Optional[Stri """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_user_groups_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_user_groups_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_user_groups_with_http_info(user_id, prefix, after, amount, **kwargs) # noqa: E501 @validate_arguments @@ -4506,7 +4537,7 @@ def list_user_groups_with_http_info(self, user_id : StrictStr, prefix : Annotate :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -4637,10 +4668,10 @@ def list_user_policies(self, user_id : StrictStr, prefix : Annotated[Optional[St :type effective: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -4648,7 +4679,8 @@ def list_user_policies(self, user_id : StrictStr, prefix : Annotated[Optional[St """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_user_policies_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_user_policies_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_user_policies_with_http_info(user_id, prefix, after, amount, effective, **kwargs) # noqa: E501 @validate_arguments @@ -4674,7 +4706,7 @@ def list_user_policies_with_http_info(self, user_id : StrictStr, prefix : Annota :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -4805,10 +4837,10 @@ def list_users(self, prefix : Annotated[Optional[StrictStr], Field(description=" :type amount: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -4816,7 +4848,8 @@ def list_users(self, prefix : Annotated[Optional[StrictStr], Field(description=" """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_users_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_users_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_users_with_http_info(prefix, after, amount, **kwargs) # noqa: E501 @validate_arguments @@ -4838,7 +4871,7 @@ def list_users_with_http_info(self, prefix : Annotated[Optional[StrictStr], Fiel :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -4956,10 +4989,10 @@ def login(self, login_information : Optional[LoginInformation] = None, **kwargs) :type login_information: LoginInformation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -4967,7 +5000,8 @@ def login(self, login_information : Optional[LoginInformation] = None, **kwargs) """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the login_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the login_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.login_with_http_info(login_information, **kwargs) # noqa: E501 @validate_arguments @@ -4985,7 +5019,7 @@ def login_with_http_info(self, login_information : Optional[LoginInformation] = :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -5104,10 +5138,10 @@ def set_group_acl(self, group_id : StrictStr, acl : ACL, **kwargs) -> None: # n :type acl: ACL :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -5115,7 +5149,8 @@ def set_group_acl(self, group_id : StrictStr, acl : ACL, **kwargs) -> None: # n """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the set_group_acl_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the set_group_acl_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.set_group_acl_with_http_info(group_id, acl, **kwargs) # noqa: E501 @validate_arguments @@ -5135,7 +5170,7 @@ def set_group_acl_with_http_info(self, group_id : StrictStr, acl : ACL, **kwargs :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -5254,10 +5289,10 @@ def update_policy(self, policy_id : StrictStr, policy : Policy, **kwargs) -> Pol :type policy: Policy :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -5265,7 +5300,8 @@ def update_policy(self, policy_id : StrictStr, policy : Policy, **kwargs) -> Pol """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the update_policy_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the update_policy_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.update_policy_with_http_info(policy_id, policy, **kwargs) # noqa: E501 @validate_arguments @@ -5285,7 +5321,7 @@ def update_policy_with_http_info(self, policy_id : StrictStr, policy : Policy, * :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/branches_api.py b/clients/python/lakefs_sdk/api/branches_api.py index 734716c67fa..f6ec4b8d998 100644 --- a/clients/python/lakefs_sdk/api/branches_api.py +++ b/clients/python/lakefs_sdk/api/branches_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated try: from pydantic.v1 import Field, StrictBool, StrictStr, conint except ImportError: @@ -47,14 +47,14 @@ ) -class BranchesApi(object): +class BranchesApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -77,10 +77,10 @@ def cherry_pick(self, repository : StrictStr, branch : StrictStr, cherry_pick_cr :type cherry_pick_creation: CherryPickCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -88,7 +88,8 @@ def cherry_pick(self, repository : StrictStr, branch : StrictStr, cherry_pick_cr """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the cherry_pick_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the cherry_pick_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.cherry_pick_with_http_info(repository, branch, cherry_pick_creation, **kwargs) # noqa: E501 @validate_arguments @@ -110,7 +111,7 @@ def cherry_pick_with_http_info(self, repository : StrictStr, branch : StrictStr, :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -241,10 +242,10 @@ def create_branch(self, repository : StrictStr, branch_creation : BranchCreation :type branch_creation: BranchCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -252,7 +253,8 @@ def create_branch(self, repository : StrictStr, branch_creation : BranchCreation """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_branch_with_http_info(repository, branch_creation, **kwargs) # noqa: E501 @validate_arguments @@ -272,7 +274,7 @@ def create_branch_with_http_info(self, repository : StrictStr, branch_creation : :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -401,10 +403,10 @@ def delete_branch(self, repository : StrictStr, branch : StrictStr, force : Opti :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -412,7 +414,8 @@ def delete_branch(self, repository : StrictStr, branch : StrictStr, force : Opti """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_branch_with_http_info(repository, branch, force, **kwargs) # noqa: E501 @validate_arguments @@ -434,7 +437,7 @@ def delete_branch_with_http_info(self, repository : StrictStr, branch : StrictSt :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -558,10 +561,10 @@ def diff_branch(self, repository : StrictStr, branch : StrictStr, after : Annota :type delimiter: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -569,7 +572,8 @@ def diff_branch(self, repository : StrictStr, branch : StrictStr, after : Annota """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the diff_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the diff_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.diff_branch_with_http_info(repository, branch, after, amount, prefix, delimiter, **kwargs) # noqa: E501 @validate_arguments @@ -597,7 +601,7 @@ def diff_branch_with_http_info(self, repository : StrictStr, branch : StrictStr, :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -730,10 +734,10 @@ def get_branch(self, repository : StrictStr, branch : StrictStr, **kwargs) -> Re :type branch: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -741,7 +745,8 @@ def get_branch(self, repository : StrictStr, branch : StrictStr, **kwargs) -> Re """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_branch_with_http_info(repository, branch, **kwargs) # noqa: E501 @validate_arguments @@ -761,7 +766,7 @@ def get_branch_with_http_info(self, repository : StrictStr, branch : StrictStr, :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -884,10 +889,10 @@ def list_branches(self, repository : StrictStr, prefix : Annotated[Optional[Stri :type show_hidden: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -895,7 +900,8 @@ def list_branches(self, repository : StrictStr, prefix : Annotated[Optional[Stri """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_branches_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_branches_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_branches_with_http_info(repository, prefix, after, amount, show_hidden, **kwargs) # noqa: E501 @validate_arguments @@ -921,7 +927,7 @@ def list_branches_with_http_info(self, repository : StrictStr, prefix : Annotate :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1052,10 +1058,10 @@ def reset_branch(self, repository : StrictStr, branch : StrictStr, reset_creatio :type reset_creation: ResetCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1063,7 +1069,8 @@ def reset_branch(self, repository : StrictStr, branch : StrictStr, reset_creatio """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the reset_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the reset_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.reset_branch_with_http_info(repository, branch, reset_creation, **kwargs) # noqa: E501 @validate_arguments @@ -1085,7 +1092,7 @@ def reset_branch_with_http_info(self, repository : StrictStr, branch : StrictStr :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1210,10 +1217,10 @@ def revert_branch(self, repository : StrictStr, branch : StrictStr, revert_creat :type revert_creation: RevertCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1221,7 +1228,8 @@ def revert_branch(self, repository : StrictStr, branch : StrictStr, revert_creat """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the revert_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the revert_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.revert_branch_with_http_info(repository, branch, revert_creation, **kwargs) # noqa: E501 @validate_arguments @@ -1243,7 +1251,7 @@ def revert_branch_with_http_info(self, repository : StrictStr, branch : StrictSt :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/commits_api.py b/clients/python/lakefs_sdk/api/commits_api.py index 4e8450304b6..f5e9cfdb9b1 100644 --- a/clients/python/lakefs_sdk/api/commits_api.py +++ b/clients/python/lakefs_sdk/api/commits_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated try: from pydantic.v1 import Field, StrictStr except ImportError: @@ -41,14 +41,14 @@ ) -class CommitsApi(object): +class CommitsApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -73,10 +73,10 @@ def commit(self, repository : StrictStr, branch : StrictStr, commit_creation : C :type source_metarange: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -84,7 +84,8 @@ def commit(self, repository : StrictStr, branch : StrictStr, commit_creation : C """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the commit_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the commit_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.commit_with_http_info(repository, branch, commit_creation, source_metarange, **kwargs) # noqa: E501 @validate_arguments @@ -108,7 +109,7 @@ def commit_with_http_info(self, repository : StrictStr, branch : StrictStr, comm :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -244,10 +245,10 @@ def get_commit(self, repository : StrictStr, commit_id : StrictStr, **kwargs) -> :type commit_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -255,7 +256,8 @@ def get_commit(self, repository : StrictStr, commit_id : StrictStr, **kwargs) -> """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_commit_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_commit_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_commit_with_http_info(repository, commit_id, **kwargs) # noqa: E501 @validate_arguments @@ -275,7 +277,7 @@ def get_commit_with_http_info(self, repository : StrictStr, commit_id : StrictSt :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/config_api.py b/clients/python/lakefs_sdk/api/config_api.py index eb2132da2fa..1045ecf5a7a 100644 --- a/clients/python/lakefs_sdk/api/config_api.py +++ b/clients/python/lakefs_sdk/api/config_api.py @@ -21,7 +21,6 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated from lakefs_sdk.models.config import Config @@ -33,14 +32,14 @@ ) -class ConfigApi(object): +class ConfigApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -58,10 +57,10 @@ def get_config(self, **kwargs) -> Config: # noqa: E501 :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -69,7 +68,8 @@ def get_config(self, **kwargs) -> Config: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_config_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_config_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_config_with_http_info(**kwargs) # noqa: E501 @validate_arguments @@ -86,7 +86,7 @@ def get_config_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/experimental_api.py b/clients/python/lakefs_sdk/api/experimental_api.py index d672206ac17..8bebf22061b 100644 --- a/clients/python/lakefs_sdk/api/experimental_api.py +++ b/clients/python/lakefs_sdk/api/experimental_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated try: from pydantic.v1 import Field, StrictBool, StrictInt, StrictStr, conint except ImportError: @@ -56,14 +56,14 @@ ) -class ExperimentalApi(object): +class ExperimentalApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -91,10 +91,10 @@ def abort_presign_multipart_upload(self, repository : StrictStr, branch : Strict :type abort_presign_multipart_upload: AbortPresignMultipartUpload :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -102,7 +102,8 @@ def abort_presign_multipart_upload(self, repository : StrictStr, branch : Strict """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the abort_presign_multipart_upload_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the abort_presign_multipart_upload_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.abort_presign_multipart_upload_with_http_info(repository, branch, upload_id, path, abort_presign_multipart_upload, **kwargs) # noqa: E501 @validate_arguments @@ -129,7 +130,7 @@ def abort_presign_multipart_upload_with_http_info(self, repository : StrictStr, :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -267,10 +268,10 @@ def complete_presign_multipart_upload(self, repository : StrictStr, branch : Str :type complete_presign_multipart_upload: CompletePresignMultipartUpload :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -278,7 +279,8 @@ def complete_presign_multipart_upload(self, repository : StrictStr, branch : Str """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the complete_presign_multipart_upload_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the complete_presign_multipart_upload_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.complete_presign_multipart_upload_with_http_info(repository, branch, upload_id, path, complete_presign_multipart_upload, **kwargs) # noqa: E501 @validate_arguments @@ -305,7 +307,7 @@ def complete_presign_multipart_upload_with_http_info(self, repository : StrictSt :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -448,10 +450,10 @@ def create_presign_multipart_upload(self, repository : StrictStr, branch : Stric :type parts: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -459,7 +461,8 @@ def create_presign_multipart_upload(self, repository : StrictStr, branch : Stric """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_presign_multipart_upload_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_presign_multipart_upload_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_presign_multipart_upload_with_http_info(repository, branch, path, parts, **kwargs) # noqa: E501 @validate_arguments @@ -484,7 +487,7 @@ def create_presign_multipart_upload_with_http_info(self, repository : StrictStr, :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -610,10 +613,10 @@ def create_pull_request(self, repository : StrictStr, pull_request_creation : Pu :type pull_request_creation: PullRequestCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -621,7 +624,8 @@ def create_pull_request(self, repository : StrictStr, pull_request_creation : Pu """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_pull_request_with_http_info(repository, pull_request_creation, **kwargs) # noqa: E501 @validate_arguments @@ -641,7 +645,7 @@ def create_pull_request_with_http_info(self, repository : StrictStr, pull_reques :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -770,10 +774,10 @@ def create_user_external_principal(self, user_id : StrictStr, principal_id : Str :type external_principal_creation: ExternalPrincipalCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -781,7 +785,8 @@ def create_user_external_principal(self, user_id : StrictStr, principal_id : Str """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_user_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_user_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_user_external_principal_with_http_info(user_id, principal_id, external_principal_creation, **kwargs) # noqa: E501 @validate_arguments @@ -803,7 +808,7 @@ def create_user_external_principal_with_http_info(self, user_id : StrictStr, pri :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -926,10 +931,10 @@ def delete_user_external_principal(self, user_id : StrictStr, principal_id : Str :type principal_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -937,7 +942,8 @@ def delete_user_external_principal(self, user_id : StrictStr, principal_id : Str """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_user_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_user_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_user_external_principal_with_http_info(user_id, principal_id, **kwargs) # noqa: E501 @validate_arguments @@ -957,7 +963,7 @@ def delete_user_external_principal_with_http_info(self, user_id : StrictStr, pri :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1067,10 +1073,10 @@ def external_principal_login(self, external_login_information : Optional[Externa :type external_login_information: ExternalLoginInformation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1078,7 +1084,8 @@ def external_principal_login(self, external_login_information : Optional[Externa """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the external_principal_login_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the external_principal_login_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.external_principal_login_with_http_info(external_login_information, **kwargs) # noqa: E501 @validate_arguments @@ -1096,7 +1103,7 @@ def external_principal_login_with_http_info(self, external_login_information : O :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1216,10 +1223,10 @@ def get_external_principal(self, principal_id : StrictStr, **kwargs) -> External :type principal_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1227,7 +1234,8 @@ def get_external_principal(self, principal_id : StrictStr, **kwargs) -> External """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_external_principal_with_http_info(principal_id, **kwargs) # noqa: E501 @validate_arguments @@ -1245,7 +1253,7 @@ def get_external_principal_with_http_info(self, principal_id : StrictStr, **kwar :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1358,10 +1366,10 @@ def get_pull_request(self, repository : StrictStr, pull_request : Annotated[Stri :type pull_request: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1369,7 +1377,8 @@ def get_pull_request(self, repository : StrictStr, pull_request : Annotated[Stri """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_pull_request_with_http_info(repository, pull_request, **kwargs) # noqa: E501 @validate_arguments @@ -1389,7 +1398,7 @@ def get_pull_request_with_http_info(self, repository : StrictStr, pull_request : :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1512,10 +1521,10 @@ def hard_reset_branch(self, repository : StrictStr, branch : StrictStr, ref : An :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1523,7 +1532,8 @@ def hard_reset_branch(self, repository : StrictStr, branch : StrictStr, ref : An """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the hard_reset_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the hard_reset_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.hard_reset_branch_with_http_info(repository, branch, ref, force, **kwargs) # noqa: E501 @validate_arguments @@ -1548,7 +1558,7 @@ def hard_reset_branch_with_http_info(self, repository : StrictStr, branch : Stri :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1674,10 +1684,10 @@ def list_pull_requests(self, repository : StrictStr, prefix : Annotated[Optional :type status: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1685,7 +1695,8 @@ def list_pull_requests(self, repository : StrictStr, prefix : Annotated[Optional """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_pull_requests_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_pull_requests_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_pull_requests_with_http_info(repository, prefix, after, amount, status, **kwargs) # noqa: E501 @validate_arguments @@ -1711,7 +1722,7 @@ def list_pull_requests_with_http_info(self, repository : StrictStr, prefix : Ann :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1844,10 +1855,10 @@ def list_user_external_principals(self, user_id : StrictStr, prefix : Annotated[ :type amount: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1855,7 +1866,8 @@ def list_user_external_principals(self, user_id : StrictStr, prefix : Annotated[ """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_user_external_principals_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_user_external_principals_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_user_external_principals_with_http_info(user_id, prefix, after, amount, **kwargs) # noqa: E501 @validate_arguments @@ -1879,7 +1891,7 @@ def list_user_external_principals_with_http_info(self, user_id : StrictStr, pref :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2004,10 +2016,10 @@ def merge_pull_request(self, repository : StrictStr, pull_request : Annotated[St :type pull_request: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2015,7 +2027,8 @@ def merge_pull_request(self, repository : StrictStr, pull_request : Annotated[St """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the merge_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the merge_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.merge_pull_request_with_http_info(repository, pull_request, **kwargs) # noqa: E501 @validate_arguments @@ -2035,7 +2048,7 @@ def merge_pull_request_with_http_info(self, repository : StrictStr, pull_request :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2154,10 +2167,10 @@ def sts_login(self, sts_auth_request : StsAuthRequest, **kwargs) -> Authenticati :type sts_auth_request: StsAuthRequest :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2165,7 +2178,8 @@ def sts_login(self, sts_auth_request : StsAuthRequest, **kwargs) -> Authenticati """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the sts_login_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the sts_login_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.sts_login_with_http_info(sts_auth_request, **kwargs) # noqa: E501 @validate_arguments @@ -2183,7 +2197,7 @@ def sts_login_with_http_info(self, sts_auth_request : StsAuthRequest, **kwargs) :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2306,10 +2320,10 @@ def update_object_user_metadata(self, repository : StrictStr, branch : Annotated :type update_object_user_metadata: UpdateObjectUserMetadata :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2317,7 +2331,8 @@ def update_object_user_metadata(self, repository : StrictStr, branch : Annotated """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the update_object_user_metadata_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the update_object_user_metadata_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.update_object_user_metadata_with_http_info(repository, branch, path, update_object_user_metadata, **kwargs) # noqa: E501 @validate_arguments @@ -2341,7 +2356,7 @@ def update_object_user_metadata_with_http_info(self, repository : StrictStr, bra :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2470,10 +2485,10 @@ def update_pull_request(self, repository : StrictStr, pull_request : Annotated[S :type pull_request_basic: PullRequestBasic :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2481,7 +2496,8 @@ def update_pull_request(self, repository : StrictStr, pull_request : Annotated[S """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the update_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the update_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.update_pull_request_with_http_info(repository, pull_request, pull_request_basic, **kwargs) # noqa: E501 @validate_arguments @@ -2503,7 +2519,7 @@ def update_pull_request_with_http_info(self, repository : StrictStr, pull_reques :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/external_api.py b/clients/python/lakefs_sdk/api/external_api.py index 6f905491490..21368d05481 100644 --- a/clients/python/lakefs_sdk/api/external_api.py +++ b/clients/python/lakefs_sdk/api/external_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated try: from pydantic.v1 import Field, StrictStr, conint except ImportError: @@ -44,14 +44,14 @@ ) -class ExternalApi(object): +class ExternalApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -74,10 +74,10 @@ def create_user_external_principal(self, user_id : StrictStr, principal_id : Str :type external_principal_creation: ExternalPrincipalCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -85,7 +85,8 @@ def create_user_external_principal(self, user_id : StrictStr, principal_id : Str """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_user_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_user_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_user_external_principal_with_http_info(user_id, principal_id, external_principal_creation, **kwargs) # noqa: E501 @validate_arguments @@ -107,7 +108,7 @@ def create_user_external_principal_with_http_info(self, user_id : StrictStr, pri :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -230,10 +231,10 @@ def delete_user_external_principal(self, user_id : StrictStr, principal_id : Str :type principal_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -241,7 +242,8 @@ def delete_user_external_principal(self, user_id : StrictStr, principal_id : Str """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_user_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_user_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_user_external_principal_with_http_info(user_id, principal_id, **kwargs) # noqa: E501 @validate_arguments @@ -261,7 +263,7 @@ def delete_user_external_principal_with_http_info(self, user_id : StrictStr, pri :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -371,10 +373,10 @@ def external_principal_login(self, external_login_information : Optional[Externa :type external_login_information: ExternalLoginInformation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -382,7 +384,8 @@ def external_principal_login(self, external_login_information : Optional[Externa """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the external_principal_login_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the external_principal_login_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.external_principal_login_with_http_info(external_login_information, **kwargs) # noqa: E501 @validate_arguments @@ -400,7 +403,7 @@ def external_principal_login_with_http_info(self, external_login_information : O :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -520,10 +523,10 @@ def get_external_principal(self, principal_id : StrictStr, **kwargs) -> External :type principal_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -531,7 +534,8 @@ def get_external_principal(self, principal_id : StrictStr, **kwargs) -> External """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_external_principal_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_external_principal_with_http_info(principal_id, **kwargs) # noqa: E501 @validate_arguments @@ -549,7 +553,7 @@ def get_external_principal_with_http_info(self, principal_id : StrictStr, **kwar :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -666,10 +670,10 @@ def list_user_external_principals(self, user_id : StrictStr, prefix : Annotated[ :type amount: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -677,7 +681,8 @@ def list_user_external_principals(self, user_id : StrictStr, prefix : Annotated[ """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_user_external_principals_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_user_external_principals_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_user_external_principals_with_http_info(user_id, prefix, after, amount, **kwargs) # noqa: E501 @validate_arguments @@ -701,7 +706,7 @@ def list_user_external_principals_with_http_info(self, user_id : StrictStr, pref :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/health_check_api.py b/clients/python/lakefs_sdk/api/health_check_api.py index 822c1592777..22b680a7d92 100644 --- a/clients/python/lakefs_sdk/api/health_check_api.py +++ b/clients/python/lakefs_sdk/api/health_check_api.py @@ -21,7 +21,6 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated from lakefs_sdk.api_client import ApiClient @@ -32,14 +31,14 @@ ) -class HealthCheckApi(object): +class HealthCheckApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -57,10 +56,10 @@ def health_check(self, **kwargs) -> None: # noqa: E501 :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -68,7 +67,8 @@ def health_check(self, **kwargs) -> None: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the health_check_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the health_check_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.health_check_with_http_info(**kwargs) # noqa: E501 @validate_arguments @@ -85,7 +85,7 @@ def health_check_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/import_api.py b/clients/python/lakefs_sdk/api/import_api.py index 0ab12b3a302..a2d39970496 100644 --- a/clients/python/lakefs_sdk/api/import_api.py +++ b/clients/python/lakefs_sdk/api/import_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated try: from pydantic.v1 import Field, StrictStr except ImportError: @@ -40,14 +40,14 @@ ) -class ImportApi(object): +class ImportApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -70,10 +70,10 @@ def import_cancel(self, repository : StrictStr, branch : StrictStr, id : Annotat :type id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -81,7 +81,8 @@ def import_cancel(self, repository : StrictStr, branch : StrictStr, id : Annotat """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the import_cancel_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the import_cancel_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.import_cancel_with_http_info(repository, branch, id, **kwargs) # noqa: E501 @validate_arguments @@ -103,7 +104,7 @@ def import_cancel_with_http_info(self, repository : StrictStr, branch : StrictSt :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -221,10 +222,10 @@ def import_start(self, repository : StrictStr, branch : StrictStr, import_creati :type import_creation: ImportCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -232,7 +233,8 @@ def import_start(self, repository : StrictStr, branch : StrictStr, import_creati """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the import_start_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the import_start_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.import_start_with_http_info(repository, branch, import_creation, **kwargs) # noqa: E501 @validate_arguments @@ -254,7 +256,7 @@ def import_start_with_http_info(self, repository : StrictStr, branch : StrictStr :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -386,10 +388,10 @@ def import_status(self, repository : StrictStr, branch : StrictStr, id : Annotat :type id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -397,7 +399,8 @@ def import_status(self, repository : StrictStr, branch : StrictStr, id : Annotat """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the import_status_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the import_status_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.import_status_with_http_info(repository, branch, id, **kwargs) # noqa: E501 @validate_arguments @@ -419,7 +422,7 @@ def import_status_with_http_info(self, repository : StrictStr, branch : StrictSt :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/internal_api.py b/clients/python/lakefs_sdk/api/internal_api.py index 9a3cb165c13..0024b56df07 100644 --- a/clients/python/lakefs_sdk/api/internal_api.py +++ b/clients/python/lakefs_sdk/api/internal_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated try: from pydantic.v1 import Field, StrictBool, StrictStr except ImportError: @@ -63,14 +63,14 @@ ) -class InternalApi(object): +class InternalApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -89,10 +89,10 @@ def create_branch_protection_rule_preflight(self, repository : StrictStr, **kwar :type repository: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -100,7 +100,8 @@ def create_branch_protection_rule_preflight(self, repository : StrictStr, **kwar """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_branch_protection_rule_preflight_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_branch_protection_rule_preflight_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_branch_protection_rule_preflight_with_http_info(repository, **kwargs) # noqa: E501 @validate_arguments @@ -118,7 +119,7 @@ def create_branch_protection_rule_preflight_with_http_info(self, repository : St :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -226,10 +227,10 @@ def create_commit_record(self, repository : StrictStr, commit_record_creation : :type commit_record_creation: CommitRecordCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -237,7 +238,8 @@ def create_commit_record(self, repository : StrictStr, commit_record_creation : """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_commit_record_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_commit_record_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_commit_record_with_http_info(repository, commit_record_creation, **kwargs) # noqa: E501 @validate_arguments @@ -257,7 +259,7 @@ def create_commit_record_with_http_info(self, repository : StrictStr, commit_rec :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -378,10 +380,10 @@ def create_symlink_file(self, repository : StrictStr, branch : StrictStr, locati :type location: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -389,7 +391,8 @@ def create_symlink_file(self, repository : StrictStr, branch : StrictStr, locati """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_symlink_file_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_symlink_file_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_symlink_file_with_http_info(repository, branch, location, **kwargs) # noqa: E501 @validate_arguments @@ -411,7 +414,7 @@ def create_symlink_file_with_http_info(self, repository : StrictStr, branch : St :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -533,10 +536,10 @@ def delete_repository_metadata(self, repository : StrictStr, repository_metadata :type repository_metadata_keys: RepositoryMetadataKeys :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -544,7 +547,8 @@ def delete_repository_metadata(self, repository : StrictStr, repository_metadata """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_repository_metadata_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_repository_metadata_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_repository_metadata_with_http_info(repository, repository_metadata_keys, **kwargs) # noqa: E501 @validate_arguments @@ -565,7 +569,7 @@ def delete_repository_metadata_with_http_info(self, repository : StrictStr, repo :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -682,10 +686,10 @@ def dump_refs(self, repository : StrictStr, **kwargs) -> RefsDump: # noqa: E501 :type repository: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -693,7 +697,8 @@ def dump_refs(self, repository : StrictStr, **kwargs) -> RefsDump: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the dump_refs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the dump_refs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.dump_refs_with_http_info(repository, **kwargs) # noqa: E501 @validate_arguments @@ -711,7 +716,7 @@ def dump_refs_with_http_info(self, repository : StrictStr, **kwargs) -> ApiRespo :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -821,10 +826,10 @@ def get_auth_capabilities(self, **kwargs) -> AuthCapabilities: # noqa: E501 :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -832,7 +837,8 @@ def get_auth_capabilities(self, **kwargs) -> AuthCapabilities: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_auth_capabilities_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_auth_capabilities_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_auth_capabilities_with_http_info(**kwargs) # noqa: E501 @validate_arguments @@ -848,7 +854,7 @@ def get_auth_capabilities_with_http_info(self, **kwargs) -> ApiResponse: # noqa :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -952,10 +958,10 @@ def get_garbage_collection_config(self, **kwargs) -> GarbageCollectionConfig: # :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -963,7 +969,8 @@ def get_garbage_collection_config(self, **kwargs) -> GarbageCollectionConfig: # """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_garbage_collection_config_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_garbage_collection_config_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_garbage_collection_config_with_http_info(**kwargs) # noqa: E501 @validate_arguments @@ -980,7 +987,7 @@ def get_garbage_collection_config_with_http_info(self, **kwargs) -> ApiResponse: :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1084,10 +1091,10 @@ def get_lake_fs_version(self, **kwargs) -> VersionConfig: # noqa: E501 :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1095,7 +1102,8 @@ def get_lake_fs_version(self, **kwargs) -> VersionConfig: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_lake_fs_version_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_lake_fs_version_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_lake_fs_version_with_http_info(**kwargs) # noqa: E501 @validate_arguments @@ -1112,7 +1120,7 @@ def get_lake_fs_version_with_http_info(self, **kwargs) -> ApiResponse: # noqa: :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1225,10 +1233,10 @@ def get_metadata_object(self, repository : StrictStr, object_id : StrictStr, typ :type presign: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1236,7 +1244,8 @@ def get_metadata_object(self, repository : StrictStr, object_id : StrictStr, typ """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_metadata_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_metadata_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_metadata_object_with_http_info(repository, object_id, type, presign, **kwargs) # noqa: E501 @validate_arguments @@ -1260,7 +1269,7 @@ def get_metadata_object_with_http_info(self, repository : StrictStr, object_id : :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1382,10 +1391,10 @@ def get_setup_state(self, **kwargs) -> SetupState: # noqa: E501 :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1393,7 +1402,8 @@ def get_setup_state(self, **kwargs) -> SetupState: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_setup_state_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_setup_state_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_setup_state_with_http_info(**kwargs) # noqa: E501 @validate_arguments @@ -1409,7 +1419,7 @@ def get_setup_state_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1513,10 +1523,10 @@ def get_storage_config(self, **kwargs) -> StorageConfig: # noqa: E501 :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1524,7 +1534,8 @@ def get_storage_config(self, **kwargs) -> StorageConfig: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_storage_config_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_storage_config_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_storage_config_with_http_info(**kwargs) # noqa: E501 @validate_arguments @@ -1541,7 +1552,7 @@ def get_storage_config_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1646,10 +1657,10 @@ def get_usage_report_summary(self, **kwargs) -> InstallationUsageReport: # noqa :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1657,7 +1668,8 @@ def get_usage_report_summary(self, **kwargs) -> InstallationUsageReport: # noqa """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_usage_report_summary_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_usage_report_summary_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_usage_report_summary_with_http_info(**kwargs) # noqa: E501 @validate_arguments @@ -1673,7 +1685,7 @@ def get_usage_report_summary_with_http_info(self, **kwargs) -> ApiResponse: # n :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1783,10 +1795,10 @@ def internal_create_branch_protection_rule(self, repository : StrictStr, branch_ :type branch_protection_rule: BranchProtectionRule :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1794,7 +1806,8 @@ def internal_create_branch_protection_rule(self, repository : StrictStr, branch_ """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the internal_create_branch_protection_rule_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the internal_create_branch_protection_rule_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.internal_create_branch_protection_rule_with_http_info(repository, branch_protection_rule, **kwargs) # noqa: E501 @validate_arguments @@ -1814,7 +1827,7 @@ def internal_create_branch_protection_rule_with_http_info(self, repository : Str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1935,10 +1948,10 @@ def internal_delete_branch_protection_rule(self, repository : StrictStr, interna :type internal_delete_branch_protection_rule_request: InternalDeleteBranchProtectionRuleRequest :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1946,7 +1959,8 @@ def internal_delete_branch_protection_rule(self, repository : StrictStr, interna """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the internal_delete_branch_protection_rule_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the internal_delete_branch_protection_rule_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.internal_delete_branch_protection_rule_with_http_info(repository, internal_delete_branch_protection_rule_request, **kwargs) # noqa: E501 @validate_arguments @@ -1966,7 +1980,7 @@ def internal_delete_branch_protection_rule_with_http_info(self, repository : Str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2085,10 +2099,10 @@ def internal_delete_garbage_collection_rules(self, repository : StrictStr, **kwa :type repository: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2096,7 +2110,8 @@ def internal_delete_garbage_collection_rules(self, repository : StrictStr, **kwa """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the internal_delete_garbage_collection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the internal_delete_garbage_collection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.internal_delete_garbage_collection_rules_with_http_info(repository, **kwargs) # noqa: E501 @validate_arguments @@ -2114,7 +2129,7 @@ def internal_delete_garbage_collection_rules_with_http_info(self, repository : S :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2222,10 +2237,10 @@ def internal_get_branch_protection_rules(self, repository : StrictStr, **kwargs) :type repository: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2233,7 +2248,8 @@ def internal_get_branch_protection_rules(self, repository : StrictStr, **kwargs) """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the internal_get_branch_protection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the internal_get_branch_protection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.internal_get_branch_protection_rules_with_http_info(repository, **kwargs) # noqa: E501 @validate_arguments @@ -2251,7 +2267,7 @@ def internal_get_branch_protection_rules_with_http_info(self, repository : Stric :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2364,10 +2380,10 @@ def internal_get_garbage_collection_rules(self, repository : StrictStr, **kwargs :type repository: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2375,7 +2391,8 @@ def internal_get_garbage_collection_rules(self, repository : StrictStr, **kwargs """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the internal_get_garbage_collection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the internal_get_garbage_collection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.internal_get_garbage_collection_rules_with_http_info(repository, **kwargs) # noqa: E501 @validate_arguments @@ -2393,7 +2410,7 @@ def internal_get_garbage_collection_rules_with_http_info(self, repository : Stri :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2508,10 +2525,10 @@ def internal_set_garbage_collection_rules(self, repository : StrictStr, garbage_ :type garbage_collection_rules: GarbageCollectionRules :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2519,7 +2536,8 @@ def internal_set_garbage_collection_rules(self, repository : StrictStr, garbage_ """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the internal_set_garbage_collection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the internal_set_garbage_collection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.internal_set_garbage_collection_rules_with_http_info(repository, garbage_collection_rules, **kwargs) # noqa: E501 @validate_arguments @@ -2539,7 +2557,7 @@ def internal_set_garbage_collection_rules_with_http_info(self, repository : Stri :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2658,10 +2676,10 @@ def post_stats_events(self, stats_events_list : StatsEventsList, **kwargs) -> No :type stats_events_list: StatsEventsList :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2669,7 +2687,8 @@ def post_stats_events(self, stats_events_list : StatsEventsList, **kwargs) -> No """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the post_stats_events_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the post_stats_events_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.post_stats_events_with_http_info(stats_events_list, **kwargs) # noqa: E501 @validate_arguments @@ -2687,7 +2706,7 @@ def post_stats_events_with_http_info(self, stats_events_list : StatsEventsList, :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2800,10 +2819,10 @@ def prepare_garbage_collection_commits(self, repository : StrictStr, **kwargs) - :type repository: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2811,7 +2830,8 @@ def prepare_garbage_collection_commits(self, repository : StrictStr, **kwargs) - """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the prepare_garbage_collection_commits_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the prepare_garbage_collection_commits_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.prepare_garbage_collection_commits_with_http_info(repository, **kwargs) # noqa: E501 @validate_arguments @@ -2829,7 +2849,7 @@ def prepare_garbage_collection_commits_with_http_info(self, repository : StrictS :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -2943,10 +2963,10 @@ def prepare_garbage_collection_uncommitted(self, repository : StrictStr, prepare :type prepare_gc_uncommitted_request: PrepareGCUncommittedRequest :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -2954,7 +2974,8 @@ def prepare_garbage_collection_uncommitted(self, repository : StrictStr, prepare """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the prepare_garbage_collection_uncommitted_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the prepare_garbage_collection_uncommitted_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.prepare_garbage_collection_uncommitted_with_http_info(repository, prepare_gc_uncommitted_request, **kwargs) # noqa: E501 @validate_arguments @@ -2974,7 +2995,7 @@ def prepare_garbage_collection_uncommitted_with_http_info(self, repository : Str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -3100,10 +3121,10 @@ def restore_refs(self, repository : StrictStr, refs_restore : RefsRestore, **kwa :type refs_restore: RefsRestore :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -3111,7 +3132,8 @@ def restore_refs(self, repository : StrictStr, refs_restore : RefsRestore, **kwa """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the restore_refs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the restore_refs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.restore_refs_with_http_info(repository, refs_restore, **kwargs) # noqa: E501 @validate_arguments @@ -3131,7 +3153,7 @@ def restore_refs_with_http_info(self, repository : StrictStr, refs_restore : Ref :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -3248,10 +3270,10 @@ def set_garbage_collection_rules_preflight(self, repository : StrictStr, **kwarg :type repository: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -3259,7 +3281,8 @@ def set_garbage_collection_rules_preflight(self, repository : StrictStr, **kwarg """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the set_garbage_collection_rules_preflight_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the set_garbage_collection_rules_preflight_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.set_garbage_collection_rules_preflight_with_http_info(repository, **kwargs) # noqa: E501 @validate_arguments @@ -3277,7 +3300,7 @@ def set_garbage_collection_rules_preflight_with_http_info(self, repository : Str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -3386,10 +3409,10 @@ def set_repository_metadata(self, repository : StrictStr, repository_metadata_se :type repository_metadata_set: RepositoryMetadataSet :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -3397,7 +3420,8 @@ def set_repository_metadata(self, repository : StrictStr, repository_metadata_se """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the set_repository_metadata_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the set_repository_metadata_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.set_repository_metadata_with_http_info(repository, repository_metadata_set, **kwargs) # noqa: E501 @validate_arguments @@ -3418,7 +3442,7 @@ def set_repository_metadata_with_http_info(self, repository : StrictStr, reposit :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -3535,10 +3559,10 @@ def setup(self, setup : Setup, **kwargs) -> CredentialsWithSecret: # noqa: E501 :type setup: Setup :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -3546,7 +3570,8 @@ def setup(self, setup : Setup, **kwargs) -> CredentialsWithSecret: # noqa: E501 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the setup_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the setup_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.setup_with_http_info(setup, **kwargs) # noqa: E501 @validate_arguments @@ -3564,7 +3589,7 @@ def setup_with_http_info(self, setup : Setup, **kwargs) -> ApiResponse: # noqa: :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -3682,10 +3707,10 @@ def setup_comm_prefs(self, comm_prefs_input : CommPrefsInput, **kwargs) -> None: :type comm_prefs_input: CommPrefsInput :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -3693,7 +3718,8 @@ def setup_comm_prefs(self, comm_prefs_input : CommPrefsInput, **kwargs) -> None: """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the setup_comm_prefs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the setup_comm_prefs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.setup_comm_prefs_with_http_info(comm_prefs_input, **kwargs) # noqa: E501 @validate_arguments @@ -3711,7 +3737,7 @@ def setup_comm_prefs_with_http_info(self, comm_prefs_input : CommPrefsInput, **k :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -3830,10 +3856,10 @@ def stage_object(self, repository : StrictStr, branch : StrictStr, path : Annota :type object_stage_creation: ObjectStageCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -3841,7 +3867,8 @@ def stage_object(self, repository : StrictStr, branch : StrictStr, path : Annota """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the stage_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the stage_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.stage_object_with_http_info(repository, branch, path, object_stage_creation, **kwargs) # noqa: E501 @validate_arguments @@ -3865,7 +3892,7 @@ def stage_object_with_http_info(self, repository : StrictStr, branch : StrictStr :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -4003,10 +4030,10 @@ def upload_object_preflight(self, repository : StrictStr, branch : StrictStr, pa :type path: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -4014,7 +4041,8 @@ def upload_object_preflight(self, repository : StrictStr, branch : StrictStr, pa """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the upload_object_preflight_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the upload_object_preflight_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.upload_object_preflight_with_http_info(repository, branch, path, **kwargs) # noqa: E501 @validate_arguments @@ -4036,7 +4064,7 @@ def upload_object_preflight_with_http_info(self, repository : StrictStr, branch :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/metadata_api.py b/clients/python/lakefs_sdk/api/metadata_api.py index b23da8cbe32..71297d7f632 100644 --- a/clients/python/lakefs_sdk/api/metadata_api.py +++ b/clients/python/lakefs_sdk/api/metadata_api.py @@ -21,7 +21,6 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated try: from pydantic.v1 import StrictStr @@ -38,14 +37,14 @@ ) -class MetadataApi(object): +class MetadataApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -66,10 +65,10 @@ def get_meta_range(self, repository : StrictStr, meta_range : StrictStr, **kwarg :type meta_range: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -77,7 +76,8 @@ def get_meta_range(self, repository : StrictStr, meta_range : StrictStr, **kwarg """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_meta_range_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_meta_range_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_meta_range_with_http_info(repository, meta_range, **kwargs) # noqa: E501 @validate_arguments @@ -97,7 +97,7 @@ def get_meta_range_with_http_info(self, repository : StrictStr, meta_range : Str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -214,10 +214,10 @@ def get_range(self, repository : StrictStr, range : StrictStr, **kwargs) -> Stor :type range: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -225,7 +225,8 @@ def get_range(self, repository : StrictStr, range : StrictStr, **kwargs) -> Stor """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_range_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_range_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_range_with_http_info(repository, range, **kwargs) # noqa: E501 @validate_arguments @@ -245,7 +246,7 @@ def get_range_with_http_info(self, repository : StrictStr, range : StrictStr, ** :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/objects_api.py b/clients/python/lakefs_sdk/api/objects_api.py index 91bd2323171..93e2e78d074 100644 --- a/clients/python/lakefs_sdk/api/objects_api.py +++ b/clients/python/lakefs_sdk/api/objects_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated try: from pydantic.v1 import Field, StrictBool, StrictBytes, StrictStr, conint, constr, validator except ImportError: @@ -46,14 +46,14 @@ ) -class ObjectsApi(object): +class ObjectsApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -78,10 +78,10 @@ def copy_object(self, repository : StrictStr, branch : Annotated[StrictStr, Fiel :type object_copy_creation: ObjectCopyCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -89,7 +89,8 @@ def copy_object(self, repository : StrictStr, branch : Annotated[StrictStr, Fiel """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the copy_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the copy_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.copy_object_with_http_info(repository, branch, dest_path, object_copy_creation, **kwargs) # noqa: E501 @validate_arguments @@ -113,7 +114,7 @@ def copy_object_with_http_info(self, repository : StrictStr, branch : Annotated[ :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -251,10 +252,10 @@ def delete_object(self, repository : StrictStr, branch : StrictStr, path : Annot :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -262,7 +263,8 @@ def delete_object(self, repository : StrictStr, branch : StrictStr, path : Annot """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_object_with_http_info(repository, branch, path, force, **kwargs) # noqa: E501 @validate_arguments @@ -286,7 +288,7 @@ def delete_object_with_http_info(self, repository : StrictStr, branch : StrictSt :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -410,10 +412,10 @@ def delete_objects(self, repository : StrictStr, branch : StrictStr, path_list : :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -421,7 +423,8 @@ def delete_objects(self, repository : StrictStr, branch : StrictStr, path_list : """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_objects_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_objects_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_objects_with_http_info(repository, branch, path_list, force, **kwargs) # noqa: E501 @validate_arguments @@ -445,7 +448,7 @@ def delete_objects_with_http_info(self, repository : StrictStr, branch : StrictS :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -586,10 +589,10 @@ def get_object(self, repository : StrictStr, ref : Annotated[StrictStr, Field(.. :type presign: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -597,7 +600,8 @@ def get_object(self, repository : StrictStr, ref : Annotated[StrictStr, Field(.. """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_object_with_http_info(repository, ref, path, range, if_none_match, presign, **kwargs) # noqa: E501 @validate_arguments @@ -625,7 +629,7 @@ def get_object_with_http_info(self, repository : StrictStr, ref : Annotated[Stri :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -765,10 +769,10 @@ def get_underlying_properties(self, repository : StrictStr, ref : Annotated[Stri :type path: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -776,7 +780,8 @@ def get_underlying_properties(self, repository : StrictStr, ref : Annotated[Stri """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_underlying_properties_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_underlying_properties_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_underlying_properties_with_http_info(repository, ref, path, **kwargs) # noqa: E501 @validate_arguments @@ -798,7 +803,7 @@ def get_underlying_properties_with_http_info(self, repository : StrictStr, ref : :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -923,10 +928,10 @@ def head_object(self, repository : StrictStr, ref : Annotated[StrictStr, Field(. :type range: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -934,7 +939,8 @@ def head_object(self, repository : StrictStr, ref : Annotated[StrictStr, Field(. """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the head_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the head_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.head_object_with_http_info(repository, ref, path, range, **kwargs) # noqa: E501 @validate_arguments @@ -958,7 +964,7 @@ def head_object_with_http_info(self, repository : StrictStr, ref : Annotated[Str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1086,10 +1092,10 @@ def list_objects(self, repository : StrictStr, ref : Annotated[StrictStr, Field( :type prefix: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1097,7 +1103,8 @@ def list_objects(self, repository : StrictStr, ref : Annotated[StrictStr, Field( """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_objects_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_objects_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_objects_with_http_info(repository, ref, user_metadata, presign, after, amount, delimiter, prefix, **kwargs) # noqa: E501 @validate_arguments @@ -1129,7 +1136,7 @@ def list_objects_with_http_info(self, repository : StrictStr, ref : Annotated[St :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1276,10 +1283,10 @@ def stat_object(self, repository : StrictStr, ref : Annotated[StrictStr, Field(. :type presign: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1287,7 +1294,8 @@ def stat_object(self, repository : StrictStr, ref : Annotated[StrictStr, Field(. """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the stat_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the stat_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.stat_object_with_http_info(repository, ref, path, user_metadata, presign, **kwargs) # noqa: E501 @validate_arguments @@ -1313,7 +1321,7 @@ def stat_object_with_http_info(self, repository : StrictStr, ref : Annotated[Str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1448,10 +1456,10 @@ def update_object_user_metadata(self, repository : StrictStr, branch : Annotated :type update_object_user_metadata: UpdateObjectUserMetadata :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1459,7 +1467,8 @@ def update_object_user_metadata(self, repository : StrictStr, branch : Annotated """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the update_object_user_metadata_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the update_object_user_metadata_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.update_object_user_metadata_with_http_info(repository, branch, path, update_object_user_metadata, **kwargs) # noqa: E501 @validate_arguments @@ -1483,7 +1492,7 @@ def update_object_user_metadata_with_http_info(self, repository : StrictStr, bra :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1620,10 +1629,10 @@ def upload_object(self, repository : StrictStr, branch : StrictStr, path : Annot :type content: bytearray :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1631,7 +1640,8 @@ def upload_object(self, repository : StrictStr, branch : StrictStr, path : Annot """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the upload_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the upload_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.upload_object_with_http_info(repository, branch, path, if_none_match, storage_class, force, content, **kwargs) # noqa: E501 @validate_arguments @@ -1661,7 +1671,7 @@ def upload_object_with_http_info(self, repository : StrictStr, branch : StrictSt :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/pulls_api.py b/clients/python/lakefs_sdk/api/pulls_api.py index eb6ab2d1f69..67a29f954d0 100644 --- a/clients/python/lakefs_sdk/api/pulls_api.py +++ b/clients/python/lakefs_sdk/api/pulls_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated try: from pydantic.v1 import Field, StrictStr, conint except ImportError: @@ -45,14 +45,14 @@ ) -class PullsApi(object): +class PullsApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -73,10 +73,10 @@ def create_pull_request(self, repository : StrictStr, pull_request_creation : Pu :type pull_request_creation: PullRequestCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -84,7 +84,8 @@ def create_pull_request(self, repository : StrictStr, pull_request_creation : Pu """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_pull_request_with_http_info(repository, pull_request_creation, **kwargs) # noqa: E501 @validate_arguments @@ -104,7 +105,7 @@ def create_pull_request_with_http_info(self, repository : StrictStr, pull_reques :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -231,10 +232,10 @@ def get_pull_request(self, repository : StrictStr, pull_request : Annotated[Stri :type pull_request: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -242,7 +243,8 @@ def get_pull_request(self, repository : StrictStr, pull_request : Annotated[Stri """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_pull_request_with_http_info(repository, pull_request, **kwargs) # noqa: E501 @validate_arguments @@ -262,7 +264,7 @@ def get_pull_request_with_http_info(self, repository : StrictStr, pull_request : :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -386,10 +388,10 @@ def list_pull_requests(self, repository : StrictStr, prefix : Annotated[Optional :type status: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -397,7 +399,8 @@ def list_pull_requests(self, repository : StrictStr, prefix : Annotated[Optional """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_pull_requests_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_pull_requests_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_pull_requests_with_http_info(repository, prefix, after, amount, status, **kwargs) # noqa: E501 @validate_arguments @@ -423,7 +426,7 @@ def list_pull_requests_with_http_info(self, repository : StrictStr, prefix : Ann :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -552,10 +555,10 @@ def merge_pull_request(self, repository : StrictStr, pull_request : Annotated[St :type pull_request: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -563,7 +566,8 @@ def merge_pull_request(self, repository : StrictStr, pull_request : Annotated[St """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the merge_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the merge_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.merge_pull_request_with_http_info(repository, pull_request, **kwargs) # noqa: E501 @validate_arguments @@ -583,7 +587,7 @@ def merge_pull_request_with_http_info(self, repository : StrictStr, pull_request :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -706,10 +710,10 @@ def update_pull_request(self, repository : StrictStr, pull_request : Annotated[S :type pull_request_basic: PullRequestBasic :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -717,7 +721,8 @@ def update_pull_request(self, repository : StrictStr, pull_request : Annotated[S """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the update_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the update_pull_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.update_pull_request_with_http_info(repository, pull_request, pull_request_basic, **kwargs) # noqa: E501 @validate_arguments @@ -739,7 +744,7 @@ def update_pull_request_with_http_info(self, repository : StrictStr, pull_reques :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/refs_api.py b/clients/python/lakefs_sdk/api/refs_api.py index 58084c36a40..987215903be 100644 --- a/clients/python/lakefs_sdk/api/refs_api.py +++ b/clients/python/lakefs_sdk/api/refs_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated from datetime import datetime try: @@ -46,14 +46,14 @@ ) -class RefsApi(object): +class RefsApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -86,10 +86,10 @@ def diff_refs(self, repository : StrictStr, left_ref : Annotated[StrictStr, Fiel :type type: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -97,7 +97,8 @@ def diff_refs(self, repository : StrictStr, left_ref : Annotated[StrictStr, Fiel """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the diff_refs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the diff_refs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.diff_refs_with_http_info(repository, left_ref, right_ref, after, amount, prefix, delimiter, type, **kwargs) # noqa: E501 @validate_arguments @@ -129,7 +130,7 @@ def diff_refs_with_http_info(self, repository : StrictStr, left_ref : Annotated[ :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -272,10 +273,10 @@ def find_merge_base(self, repository : StrictStr, source_ref : Annotated[StrictS :type destination_branch: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -283,7 +284,8 @@ def find_merge_base(self, repository : StrictStr, source_ref : Annotated[StrictS """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the find_merge_base_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the find_merge_base_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.find_merge_base_with_http_info(repository, source_ref, destination_branch, **kwargs) # noqa: E501 @validate_arguments @@ -305,7 +307,7 @@ def find_merge_base_with_http_info(self, repository : StrictStr, source_ref : An :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -443,10 +445,10 @@ def log_commits(self, repository : StrictStr, ref : StrictStr, after : Annotated :type stop_at: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -454,7 +456,8 @@ def log_commits(self, repository : StrictStr, ref : StrictStr, after : Annotated """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the log_commits_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the log_commits_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.log_commits_with_http_info(repository, ref, after, amount, objects, prefixes, limit, first_parent, since, stop_at, **kwargs) # noqa: E501 @validate_arguments @@ -490,7 +493,7 @@ def log_commits_with_http_info(self, repository : StrictStr, ref : StrictStr, af :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -648,10 +651,10 @@ def merge_into_branch(self, repository : StrictStr, source_ref : Annotated[Stric :type merge: Merge :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -659,7 +662,8 @@ def merge_into_branch(self, repository : StrictStr, source_ref : Annotated[Stric """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the merge_into_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the merge_into_branch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.merge_into_branch_with_http_info(repository, source_ref, destination_branch, merge, **kwargs) # noqa: E501 @validate_arguments @@ -683,7 +687,7 @@ def merge_into_branch_with_http_info(self, repository : StrictStr, source_ref : :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/repositories_api.py b/clients/python/lakefs_sdk/api/repositories_api.py index 8f717b953bb..0ea46fbde46 100644 --- a/clients/python/lakefs_sdk/api/repositories_api.py +++ b/clients/python/lakefs_sdk/api/repositories_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated try: from pydantic.v1 import Field, StrictBool, StrictStr, conint, conlist except ImportError: @@ -48,14 +48,14 @@ ) -class RepositoriesApi(object): +class RepositoriesApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -76,10 +76,10 @@ def create_repository(self, repository_creation : RepositoryCreation, bare : Ann :type bare: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -87,7 +87,8 @@ def create_repository(self, repository_creation : RepositoryCreation, bare : Ann """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_repository_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_repository_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_repository_with_http_info(repository_creation, bare, **kwargs) # noqa: E501 @validate_arguments @@ -107,7 +108,7 @@ def create_repository_with_http_info(self, repository_creation : RepositoryCreat :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -230,10 +231,10 @@ def delete_gc_rules(self, repository : StrictStr, **kwargs) -> None: # noqa: E5 :type repository: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -241,7 +242,8 @@ def delete_gc_rules(self, repository : StrictStr, **kwargs) -> None: # noqa: E5 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_gc_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_gc_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_gc_rules_with_http_info(repository, **kwargs) # noqa: E501 @validate_arguments @@ -259,7 +261,7 @@ def delete_gc_rules_with_http_info(self, repository : StrictStr, **kwargs) -> Ap :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -367,10 +369,10 @@ def delete_repository(self, repository : StrictStr, force : Annotated[Optional[S :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -378,7 +380,8 @@ def delete_repository(self, repository : StrictStr, force : Annotated[Optional[S """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_repository_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_repository_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_repository_with_http_info(repository, force, **kwargs) # noqa: E501 @validate_arguments @@ -398,7 +401,7 @@ def delete_repository_with_http_info(self, repository : StrictStr, force : Annot :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -510,10 +513,10 @@ def dump_status(self, repository : StrictStr, task_id : StrictStr, **kwargs) -> :type task_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -521,7 +524,8 @@ def dump_status(self, repository : StrictStr, task_id : StrictStr, **kwargs) -> """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the dump_status_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the dump_status_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.dump_status_with_http_info(repository, task_id, **kwargs) # noqa: E501 @validate_arguments @@ -541,7 +545,7 @@ def dump_status_with_http_info(self, repository : StrictStr, task_id : StrictStr :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -657,10 +661,10 @@ def dump_submit(self, repository : StrictStr, **kwargs) -> TaskInfo: # noqa: E5 :type repository: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -668,7 +672,8 @@ def dump_submit(self, repository : StrictStr, **kwargs) -> TaskInfo: # noqa: E5 """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the dump_submit_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the dump_submit_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.dump_submit_with_http_info(repository, **kwargs) # noqa: E501 @validate_arguments @@ -686,7 +691,7 @@ def dump_submit_with_http_info(self, repository : StrictStr, **kwargs) -> ApiRes :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -797,10 +802,10 @@ def get_branch_protection_rules(self, repository : StrictStr, **kwargs) -> List[ :type repository: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -808,7 +813,8 @@ def get_branch_protection_rules(self, repository : StrictStr, **kwargs) -> List[ """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_branch_protection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_branch_protection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_branch_protection_rules_with_http_info(repository, **kwargs) # noqa: E501 @validate_arguments @@ -826,7 +832,7 @@ def get_branch_protection_rules_with_http_info(self, repository : StrictStr, **k :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -937,10 +943,10 @@ def get_gc_rules(self, repository : StrictStr, **kwargs) -> GarbageCollectionRul :type repository: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -948,7 +954,8 @@ def get_gc_rules(self, repository : StrictStr, **kwargs) -> GarbageCollectionRul """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_gc_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_gc_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_gc_rules_with_http_info(repository, **kwargs) # noqa: E501 @validate_arguments @@ -966,7 +973,7 @@ def get_gc_rules_with_http_info(self, repository : StrictStr, **kwargs) -> ApiRe :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1077,10 +1084,10 @@ def get_repository(self, repository : StrictStr, **kwargs) -> Repository: # noq :type repository: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1088,7 +1095,8 @@ def get_repository(self, repository : StrictStr, **kwargs) -> Repository: # noq """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_repository_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_repository_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_repository_with_http_info(repository, **kwargs) # noqa: E501 @validate_arguments @@ -1106,7 +1114,7 @@ def get_repository_with_http_info(self, repository : StrictStr, **kwargs) -> Api :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1217,10 +1225,10 @@ def get_repository_metadata(self, repository : StrictStr, **kwargs) -> Dict[str, :type repository: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1228,7 +1236,8 @@ def get_repository_metadata(self, repository : StrictStr, **kwargs) -> Dict[str, """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_repository_metadata_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_repository_metadata_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_repository_metadata_with_http_info(repository, **kwargs) # noqa: E501 @validate_arguments @@ -1246,7 +1255,7 @@ def get_repository_metadata_with_http_info(self, repository : StrictStr, **kwarg :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1363,10 +1372,10 @@ def list_repositories(self, prefix : Annotated[Optional[StrictStr], Field(descri :type search: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1374,7 +1383,8 @@ def list_repositories(self, prefix : Annotated[Optional[StrictStr], Field(descri """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_repositories_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_repositories_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_repositories_with_http_info(prefix, after, amount, search, **kwargs) # noqa: E501 @validate_arguments @@ -1398,7 +1408,7 @@ def list_repositories_with_http_info(self, prefix : Annotated[Optional[StrictStr :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1522,10 +1532,10 @@ def restore_status(self, repository : StrictStr, task_id : StrictStr, **kwargs) :type task_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1533,7 +1543,8 @@ def restore_status(self, repository : StrictStr, task_id : StrictStr, **kwargs) """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the restore_status_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the restore_status_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.restore_status_with_http_info(repository, task_id, **kwargs) # noqa: E501 @validate_arguments @@ -1553,7 +1564,7 @@ def restore_status_with_http_info(self, repository : StrictStr, task_id : Strict :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1671,10 +1682,10 @@ def restore_submit(self, repository : StrictStr, refs_restore : RefsRestore, **k :type refs_restore: RefsRestore :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1682,7 +1693,8 @@ def restore_submit(self, repository : StrictStr, refs_restore : RefsRestore, **k """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the restore_submit_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the restore_submit_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.restore_submit_with_http_info(repository, refs_restore, **kwargs) # noqa: E501 @validate_arguments @@ -1702,7 +1714,7 @@ def restore_submit_with_http_info(self, repository : StrictStr, refs_restore : R :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1829,10 +1841,10 @@ def set_branch_protection_rules(self, repository : StrictStr, branch_protection_ :type if_match: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1840,7 +1852,8 @@ def set_branch_protection_rules(self, repository : StrictStr, branch_protection_ """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the set_branch_protection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the set_branch_protection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.set_branch_protection_rules_with_http_info(repository, branch_protection_rule, if_match, **kwargs) # noqa: E501 @validate_arguments @@ -1862,7 +1875,7 @@ def set_branch_protection_rules_with_http_info(self, repository : StrictStr, bra :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -1985,10 +1998,10 @@ def set_gc_rules(self, repository : StrictStr, garbage_collection_rules : Garbag :type garbage_collection_rules: GarbageCollectionRules :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -1996,7 +2009,8 @@ def set_gc_rules(self, repository : StrictStr, garbage_collection_rules : Garbag """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the set_gc_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the set_gc_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.set_gc_rules_with_http_info(repository, garbage_collection_rules, **kwargs) # noqa: E501 @validate_arguments @@ -2016,7 +2030,7 @@ def set_gc_rules_with_http_info(self, repository : StrictStr, garbage_collection :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/staging_api.py b/clients/python/lakefs_sdk/api/staging_api.py index e689bf6da03..fb2da27b6ae 100644 --- a/clients/python/lakefs_sdk/api/staging_api.py +++ b/clients/python/lakefs_sdk/api/staging_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated try: from pydantic.v1 import Field, StrictBool, StrictStr except ImportError: @@ -42,14 +42,14 @@ ) -class StagingApi(object): +class StagingApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -74,10 +74,10 @@ def get_physical_address(self, repository : StrictStr, branch : StrictStr, path :type presign: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -85,7 +85,8 @@ def get_physical_address(self, repository : StrictStr, branch : StrictStr, path """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_physical_address_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_physical_address_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_physical_address_with_http_info(repository, branch, path, presign, **kwargs) # noqa: E501 @validate_arguments @@ -109,7 +110,7 @@ def get_physical_address_with_http_info(self, repository : StrictStr, branch : S :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -241,10 +242,10 @@ def link_physical_address(self, repository : StrictStr, branch : StrictStr, path :type if_none_match: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -252,7 +253,8 @@ def link_physical_address(self, repository : StrictStr, branch : StrictStr, path """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the link_physical_address_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the link_physical_address_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.link_physical_address_with_http_info(repository, branch, path, staging_metadata, if_none_match, **kwargs) # noqa: E501 @validate_arguments @@ -279,7 +281,7 @@ def link_physical_address_with_http_info(self, repository : StrictStr, branch : :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api/tags_api.py b/clients/python/lakefs_sdk/api/tags_api.py index a6d6150549a..231f4162c65 100644 --- a/clients/python/lakefs_sdk/api/tags_api.py +++ b/clients/python/lakefs_sdk/api/tags_api.py @@ -21,8 +21,8 @@ from pydantic.v1 import validate_arguments, ValidationError except ImportError: from pydantic import validate_arguments, ValidationError -from typing_extensions import Annotated +from typing_extensions import Annotated try: from pydantic.v1 import Field, StrictBool, StrictStr, conint except ImportError: @@ -42,14 +42,14 @@ ) -class TagsApi(object): +class TagsApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ - def __init__(self, api_client=None): + def __init__(self, api_client=None) -> None: if api_client is None: api_client = ApiClient.get_default() self.api_client = api_client @@ -70,10 +70,10 @@ def create_tag(self, repository : StrictStr, tag_creation : TagCreation, **kwarg :type tag_creation: TagCreation :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -81,7 +81,8 @@ def create_tag(self, repository : StrictStr, tag_creation : TagCreation, **kwarg """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the create_tag_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the create_tag_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.create_tag_with_http_info(repository, tag_creation, **kwargs) # noqa: E501 @validate_arguments @@ -101,7 +102,7 @@ def create_tag_with_http_info(self, repository : StrictStr, tag_creation : TagCr :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -230,10 +231,10 @@ def delete_tag(self, repository : StrictStr, tag : StrictStr, force : Optional[S :type force: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -241,7 +242,8 @@ def delete_tag(self, repository : StrictStr, tag : StrictStr, force : Optional[S """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the delete_tag_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the delete_tag_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.delete_tag_with_http_info(repository, tag, force, **kwargs) # noqa: E501 @validate_arguments @@ -263,7 +265,7 @@ def delete_tag_with_http_info(self, repository : StrictStr, tag : StrictStr, for :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -379,10 +381,10 @@ def get_tag(self, repository : StrictStr, tag : StrictStr, **kwargs) -> Ref: # :type tag: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -390,7 +392,8 @@ def get_tag(self, repository : StrictStr, tag : StrictStr, **kwargs) -> Ref: # """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the get_tag_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the get_tag_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.get_tag_with_http_info(repository, tag, **kwargs) # noqa: E501 @validate_arguments @@ -410,7 +413,7 @@ def get_tag_with_http_info(self, repository : StrictStr, tag : StrictStr, **kwar :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional @@ -531,10 +534,10 @@ def list_tags(self, repository : StrictStr, prefix : Annotated[Optional[StrictSt :type amount: int :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: Returns the result object. If the method is called asynchronously, returns the request thread. @@ -542,7 +545,8 @@ def list_tags(self, repository : StrictStr, prefix : Annotated[Optional[StrictSt """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: - raise ValueError("Error! Please call the list_tags_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + message = "Error! Please call the list_tags_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) return self.list_tags_with_http_info(repository, prefix, after, amount, **kwargs) # noqa: E501 @validate_arguments @@ -566,7 +570,7 @@ def list_tags_with_http_info(self, repository : StrictStr, prefix : Annotated[Op :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the + be set to none and raw_data will store the HTTP response body without reading/decoding. Default is True. :type _preload_content: bool, optional diff --git a/clients/python/lakefs_sdk/api_client.py b/clients/python/lakefs_sdk/api_client.py index 9ce808926ab..d2f2412a8ef 100644 --- a/clients/python/lakefs_sdk/api_client.py +++ b/clients/python/lakefs_sdk/api_client.py @@ -32,7 +32,7 @@ from lakefs_sdk.exceptions import ApiValueError, ApiException -class ApiClient(object): +class ApiClient: """Generic API client for OpenAPI client library builds. OpenAPI generic API client. This client handles the client- @@ -64,7 +64,7 @@ class ApiClient(object): _pool = None def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None, pool_threads=1): + cookie=None, pool_threads=1) -> None: # use default configuration if none is provided if configuration is None: configuration = Configuration.get_default() @@ -227,6 +227,9 @@ def __call_api( # data needs deserialization or returns HTTP data (deserialized) only if _preload_content or _return_http_data_only: response_type = response_types_map.get(str(response_data.status), None) + if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599: + # if not found, look for '1XX', '2XX', etc. + response_type = response_types_map.get(str(response_data.status)[0] + "XX", None) if response_type == "bytearray": response_data.data = response_data.data @@ -327,7 +330,7 @@ def __deserialize(self, data, klass): if data is None: return None - if type(klass) == str: + if isinstance(klass, str): if klass.startswith('List['): sub_kls = re.match(r'List\[(.*)]', klass).group(1) return [self.__deserialize(sub_data, sub_kls) @@ -498,7 +501,7 @@ def parameters_to_tuples(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] if collection_format == 'multi': - new_params.extend((k, value) for value in v) + new_params.extend((k, quote(str(value))) for value in v) else: if collection_format == 'ssv': delimiter = ' ' @@ -535,7 +538,7 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] if collection_format == 'multi': - new_params.extend((k, value) for value in v) + new_params.extend((k, quote(str(value))) for value in v) else: if collection_format == 'ssv': delimiter = ' ' diff --git a/clients/python/lakefs_sdk/api_response.py b/clients/python/lakefs_sdk/api_response.py index 66e5192ce98..116f130661e 100644 --- a/clients/python/lakefs_sdk/api_response.py +++ b/clients/python/lakefs_sdk/api_response.py @@ -21,7 +21,7 @@ def __init__(self, status_code=None, headers=None, data=None, - raw_data=None): + raw_data=None) -> None: self.status_code = status_code self.headers = headers self.data = data diff --git a/clients/python/lakefs_sdk/configuration.py b/clients/python/lakefs_sdk/configuration.py index 201334aba2a..5520f4f2a8a 100644 --- a/clients/python/lakefs_sdk/configuration.py +++ b/clients/python/lakefs_sdk/configuration.py @@ -20,7 +20,6 @@ import urllib3 import http.client as httplib -from lakefs_sdk.exceptions import ApiValueError JSON_SCHEMA_VALIDATION_KEYWORDS = { 'multipleOf', 'maximum', 'exclusiveMaximum', @@ -28,7 +27,7 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } -class Configuration(object): +class Configuration: """This class contains various settings of the API client. :param host: Base url. @@ -50,7 +49,8 @@ class Configuration(object): configuration. :param server_operation_variables: Mapping from operation ID to a mapping with string values to replace variables in templated server configuration. - The validation of enums is performed for variables with defined enum values before. + The validation of enums is performed for variables with defined enum + values before. :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. @@ -101,7 +101,7 @@ def __init__(self, host=None, server_index=None, server_variables=None, server_operation_index=None, server_operation_variables=None, ssl_ca_cert=None, - ): + ) -> None: """Constructor """ self._base_path = "/api/v1" if host is None else host diff --git a/clients/python/lakefs_sdk/exceptions.py b/clients/python/lakefs_sdk/exceptions.py index ca418efa984..7f8519aca91 100644 --- a/clients/python/lakefs_sdk/exceptions.py +++ b/clients/python/lakefs_sdk/exceptions.py @@ -19,7 +19,7 @@ class OpenApiException(Exception): class ApiTypeError(OpenApiException, TypeError): def __init__(self, msg, path_to_item=None, valid_classes=None, - key_type=None): + key_type=None) -> None: """ Raises an exception for TypeErrors Args: @@ -47,7 +47,7 @@ def __init__(self, msg, path_to_item=None, valid_classes=None, class ApiValueError(OpenApiException, ValueError): - def __init__(self, msg, path_to_item=None): + def __init__(self, msg, path_to_item=None) -> None: """ Args: msg (str): the exception message @@ -65,7 +65,7 @@ def __init__(self, msg, path_to_item=None): class ApiAttributeError(OpenApiException, AttributeError): - def __init__(self, msg, path_to_item=None): + def __init__(self, msg, path_to_item=None) -> None: """ Raised when an attribute reference or assignment fails. @@ -84,7 +84,7 @@ def __init__(self, msg, path_to_item=None): class ApiKeyError(OpenApiException, KeyError): - def __init__(self, msg, path_to_item=None): + def __init__(self, msg, path_to_item=None) -> None: """ Args: msg (str): the exception message @@ -102,7 +102,7 @@ def __init__(self, msg, path_to_item=None): class ApiException(OpenApiException): - def __init__(self, status=None, reason=None, http_resp=None): + def __init__(self, status=None, reason=None, http_resp=None) -> None: if http_resp: self.status = http_resp.status self.reason = http_resp.reason @@ -129,30 +129,30 @@ def __str__(self): class BadRequestException(ApiException): - def __init__(self, status=None, reason=None, http_resp=None): + def __init__(self, status=None, reason=None, http_resp=None) -> None: super(BadRequestException, self).__init__(status, reason, http_resp) class NotFoundException(ApiException): - def __init__(self, status=None, reason=None, http_resp=None): + def __init__(self, status=None, reason=None, http_resp=None) -> None: super(NotFoundException, self).__init__(status, reason, http_resp) class UnauthorizedException(ApiException): - def __init__(self, status=None, reason=None, http_resp=None): + def __init__(self, status=None, reason=None, http_resp=None) -> None: super(UnauthorizedException, self).__init__(status, reason, http_resp) class ForbiddenException(ApiException): - def __init__(self, status=None, reason=None, http_resp=None): + def __init__(self, status=None, reason=None, http_resp=None) -> None: super(ForbiddenException, self).__init__(status, reason, http_resp) class ServiceException(ApiException): - def __init__(self, status=None, reason=None, http_resp=None): + def __init__(self, status=None, reason=None, http_resp=None) -> None: super(ServiceException, self).__init__(status, reason, http_resp) diff --git a/clients/python/lakefs_sdk/models/staging_location.py b/clients/python/lakefs_sdk/models/staging_location.py index e016c3f540c..113e5c8e4f3 100644 --- a/clients/python/lakefs_sdk/models/staging_location.py +++ b/clients/python/lakefs_sdk/models/staging_location.py @@ -27,7 +27,7 @@ class StagingLocation(BaseModel): """ - location for placing an object when staging it + location for placing an object when staging it # noqa: E501 """ physical_address: Optional[StrictStr] = None presigned_url: Optional[StrictStr] = Field(None, description="if presign=true is passed in the request, this field will contain a pre-signed URL to use when uploading") diff --git a/clients/python/lakefs_sdk/models/staging_metadata.py b/clients/python/lakefs_sdk/models/staging_metadata.py index c3e548f7964..46aa055a44e 100644 --- a/clients/python/lakefs_sdk/models/staging_metadata.py +++ b/clients/python/lakefs_sdk/models/staging_metadata.py @@ -28,7 +28,7 @@ class StagingMetadata(BaseModel): """ - information about uploaded object + information about uploaded object # noqa: E501 """ staging: StagingLocation = Field(...) checksum: StrictStr = Field(..., description="unique identifier of object content on backing store (typically ETag)") diff --git a/clients/python/lakefs_sdk/models/storage_uri.py b/clients/python/lakefs_sdk/models/storage_uri.py index 96ba09be50b..3c57be513fd 100644 --- a/clients/python/lakefs_sdk/models/storage_uri.py +++ b/clients/python/lakefs_sdk/models/storage_uri.py @@ -27,7 +27,7 @@ class StorageURI(BaseModel): """ - URI to a path in a storage provider (e.g. \"s3://bucket1/path/to/object\") + URI to a path in a storage provider (e.g. \"s3://bucket1/path/to/object\") # noqa: E501 """ location: StrictStr = Field(...) __properties = ["location"] diff --git a/clients/python/lakefs_sdk/models/tag_creation.py b/clients/python/lakefs_sdk/models/tag_creation.py index 394a54c944c..c463bb168cc 100644 --- a/clients/python/lakefs_sdk/models/tag_creation.py +++ b/clients/python/lakefs_sdk/models/tag_creation.py @@ -27,7 +27,7 @@ class TagCreation(BaseModel): """ - Make tag ID point at this REF. + Make tag ID point at this REF. # noqa: E501 """ id: StrictStr = Field(..., description="ID of tag to create") ref: StrictStr = Field(..., description="the commit to tag") diff --git a/clients/python/lakefs_sdk/rest.py b/clients/python/lakefs_sdk/rest.py index 68339e181d3..295163b7ad1 100644 --- a/clients/python/lakefs_sdk/rest.py +++ b/clients/python/lakefs_sdk/rest.py @@ -30,7 +30,7 @@ class RESTResponse(io.IOBase): - def __init__(self, resp): + def __init__(self, resp) -> None: self.urllib3_response = resp self.status = resp.status self.reason = resp.reason @@ -45,9 +45,9 @@ def getheader(self, name, default=None): return self.urllib3_response.headers.get(name, default) -class RESTClientObject(object): +class RESTClientObject: - def __init__(self, configuration, pools_size=4, maxsize=None): + def __init__(self, configuration, pools_size=4, maxsize=None) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 diff --git a/clients/python/test/test_abort_presign_multipart_upload.py b/clients/python/test/test_abort_presign_multipart_upload.py index 407d08ec92e..6cdf4f7c85e 100644 --- a/clients/python/test/test_abort_presign_multipart_upload.py +++ b/clients/python/test/test_abort_presign_multipart_upload.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.abort_presign_multipart_upload import AbortPresignMultipartUpload # noqa: E501 -from lakefs_sdk.rest import ApiException class TestAbortPresignMultipartUpload(unittest.TestCase): """AbortPresignMultipartUpload unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AbortPresignMultipartUpload: """Test AbortPresignMultipartUpload include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AbortPresignMultipartUpload` """ - model = lakefs_sdk.models.abort_presign_multipart_upload.AbortPresignMultipartUpload() # noqa: E501 - if include_optional : + model = AbortPresignMultipartUpload() # noqa: E501 + if include_optional: return AbortPresignMultipartUpload( physical_address = '' ) - else : + else: return AbortPresignMultipartUpload( physical_address = '', ) diff --git a/clients/python/test/test_access_key_credentials.py b/clients/python/test/test_access_key_credentials.py index f8b1808a6ce..6967d4f30d2 100644 --- a/clients/python/test/test_access_key_credentials.py +++ b/clients/python/test/test_access_key_credentials.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.access_key_credentials import AccessKeyCredentials # noqa: E501 -from lakefs_sdk.rest import ApiException class TestAccessKeyCredentials(unittest.TestCase): """AccessKeyCredentials unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AccessKeyCredentials: """Test AccessKeyCredentials include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AccessKeyCredentials` """ - model = lakefs_sdk.models.access_key_credentials.AccessKeyCredentials() # noqa: E501 - if include_optional : + model = AccessKeyCredentials() # noqa: E501 + if include_optional: return AccessKeyCredentials( - access_key_id = 'AKIAIOSFODNN7EXAMPLE', + access_key_id = 'AKIAIOSFODNN7EXAMPLE', secret_access_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY' ) - else : + else: return AccessKeyCredentials( access_key_id = 'AKIAIOSFODNN7EXAMPLE', secret_access_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY', diff --git a/clients/python/test/test_acl.py b/clients/python/test/test_acl.py index aea45e0907f..9d3b9d91b3b 100644 --- a/clients/python/test/test_acl.py +++ b/clients/python/test/test_acl.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.acl import ACL # noqa: E501 -from lakefs_sdk.rest import ApiException class TestACL(unittest.TestCase): """ACL unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ACL: """Test ACL include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ACL` """ - model = lakefs_sdk.models.acl.ACL() # noqa: E501 - if include_optional : + model = ACL() # noqa: E501 + if include_optional: return ACL( permission = '' ) - else : + else: return ACL( permission = '', ) diff --git a/clients/python/test/test_action_run.py b/clients/python/test/test_action_run.py index 6a4fc60dd94..4849d324cba 100644 --- a/clients/python/test/test_action_run.py +++ b/clients/python/test/test_action_run.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.action_run import ActionRun # noqa: E501 -from lakefs_sdk.rest import ApiException class TestActionRun(unittest.TestCase): """ActionRun unit test stubs""" @@ -29,25 +27,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ActionRun: """Test ActionRun include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ActionRun` """ - model = lakefs_sdk.models.action_run.ActionRun() # noqa: E501 - if include_optional : + model = ActionRun() # noqa: E501 + if include_optional: return ActionRun( - run_id = '', - branch = '', - start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - event_type = '', - status = 'failed', + run_id = '', + branch = '', + start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + event_type = '', + status = 'failed', commit_id = '' ) - else : + else: return ActionRun( run_id = '', branch = '', diff --git a/clients/python/test/test_action_run_list.py b/clients/python/test/test_action_run_list.py index fba60606448..ddde678d27c 100644 --- a/clients/python/test/test_action_run_list.py +++ b/clients/python/test/test_action_run_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.action_run_list import ActionRunList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestActionRunList(unittest.TestCase): """ActionRunList unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ActionRunList: """Test ActionRunList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ActionRunList` """ - model = lakefs_sdk.models.action_run_list.ActionRunList() # noqa: E501 - if include_optional : + model = ActionRunList() # noqa: E501 + if include_optional: return ActionRunList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, next_offset = '', results = 0, - max_per_page = 0, ), + max_per_page = 0, ), results = [ lakefs_sdk.models.action_run.ActionRun( run_id = '', @@ -55,7 +53,7 @@ def make_instance(self, include_optional): commit_id = '', ) ] ) - else : + else: return ActionRunList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, diff --git a/clients/python/test/test_actions_api.py b/clients/python/test/test_actions_api.py index 738ad344158..9c3243f8752 100644 --- a/clients/python/test/test_actions_api.py +++ b/clients/python/test/test_actions_api.py @@ -15,42 +15,40 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.actions_api import ActionsApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestActionsApi(unittest.TestCase): """ActionsApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.actions_api.ActionsApi() # noqa: E501 + def setUp(self) -> None: + self.api = ActionsApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_get_run(self): + def test_get_run(self) -> None: """Test case for get_run get a run # noqa: E501 """ pass - def test_get_run_hook_output(self): + def test_get_run_hook_output(self) -> None: """Test case for get_run_hook_output get run hook output # noqa: E501 """ pass - def test_list_repository_runs(self): + def test_list_repository_runs(self) -> None: """Test case for list_repository_runs list runs # noqa: E501 """ pass - def test_list_run_hooks(self): + def test_list_run_hooks(self) -> None: """Test case for list_run_hooks list run hooks # noqa: E501 diff --git a/clients/python/test/test_auth_api.py b/clients/python/test/test_auth_api.py index 96dfe3671c5..f00ff048f3e 100644 --- a/clients/python/test/test_auth_api.py +++ b/clients/python/test/test_auth_api.py @@ -15,266 +15,264 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.auth_api import AuthApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestAuthApi(unittest.TestCase): """AuthApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.auth_api.AuthApi() # noqa: E501 + def setUp(self) -> None: + self.api = AuthApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_add_group_membership(self): + def test_add_group_membership(self) -> None: """Test case for add_group_membership add group membership # noqa: E501 """ pass - def test_attach_policy_to_group(self): + def test_attach_policy_to_group(self) -> None: """Test case for attach_policy_to_group attach policy to group # noqa: E501 """ pass - def test_attach_policy_to_user(self): + def test_attach_policy_to_user(self) -> None: """Test case for attach_policy_to_user attach policy to user # noqa: E501 """ pass - def test_create_credentials(self): + def test_create_credentials(self) -> None: """Test case for create_credentials create credentials # noqa: E501 """ pass - def test_create_group(self): + def test_create_group(self) -> None: """Test case for create_group create group # noqa: E501 """ pass - def test_create_policy(self): + def test_create_policy(self) -> None: """Test case for create_policy create policy # noqa: E501 """ pass - def test_create_user(self): + def test_create_user(self) -> None: """Test case for create_user create user # noqa: E501 """ pass - def test_create_user_external_principal(self): + def test_create_user_external_principal(self) -> None: """Test case for create_user_external_principal attach external principal to user # noqa: E501 """ pass - def test_delete_credentials(self): + def test_delete_credentials(self) -> None: """Test case for delete_credentials delete credentials # noqa: E501 """ pass - def test_delete_group(self): + def test_delete_group(self) -> None: """Test case for delete_group delete group # noqa: E501 """ pass - def test_delete_group_membership(self): + def test_delete_group_membership(self) -> None: """Test case for delete_group_membership delete group membership # noqa: E501 """ pass - def test_delete_policy(self): + def test_delete_policy(self) -> None: """Test case for delete_policy delete policy # noqa: E501 """ pass - def test_delete_user(self): + def test_delete_user(self) -> None: """Test case for delete_user delete user # noqa: E501 """ pass - def test_delete_user_external_principal(self): + def test_delete_user_external_principal(self) -> None: """Test case for delete_user_external_principal delete external principal from user # noqa: E501 """ pass - def test_detach_policy_from_group(self): + def test_detach_policy_from_group(self) -> None: """Test case for detach_policy_from_group detach policy from group # noqa: E501 """ pass - def test_detach_policy_from_user(self): + def test_detach_policy_from_user(self) -> None: """Test case for detach_policy_from_user detach policy from user # noqa: E501 """ pass - def test_external_principal_login(self): + def test_external_principal_login(self) -> None: """Test case for external_principal_login perform a login using an external authenticator # noqa: E501 """ pass - def test_get_credentials(self): + def test_get_credentials(self) -> None: """Test case for get_credentials get credentials # noqa: E501 """ pass - def test_get_current_user(self): + def test_get_current_user(self) -> None: """Test case for get_current_user get current user # noqa: E501 """ pass - def test_get_external_principal(self): + def test_get_external_principal(self) -> None: """Test case for get_external_principal describe external principal by id # noqa: E501 """ pass - def test_get_group(self): + def test_get_group(self) -> None: """Test case for get_group get group # noqa: E501 """ pass - def test_get_group_acl(self): + def test_get_group_acl(self) -> None: """Test case for get_group_acl get ACL of group # noqa: E501 """ pass - def test_get_policy(self): + def test_get_policy(self) -> None: """Test case for get_policy get policy # noqa: E501 """ pass - def test_get_user(self): + def test_get_user(self) -> None: """Test case for get_user get user # noqa: E501 """ pass - def test_list_group_members(self): + def test_list_group_members(self) -> None: """Test case for list_group_members list group members # noqa: E501 """ pass - def test_list_group_policies(self): + def test_list_group_policies(self) -> None: """Test case for list_group_policies list group policies # noqa: E501 """ pass - def test_list_groups(self): + def test_list_groups(self) -> None: """Test case for list_groups list groups # noqa: E501 """ pass - def test_list_policies(self): + def test_list_policies(self) -> None: """Test case for list_policies list policies # noqa: E501 """ pass - def test_list_user_credentials(self): + def test_list_user_credentials(self) -> None: """Test case for list_user_credentials list user credentials # noqa: E501 """ pass - def test_list_user_external_principals(self): + def test_list_user_external_principals(self) -> None: """Test case for list_user_external_principals list user external policies attached to a user # noqa: E501 """ pass - def test_list_user_groups(self): + def test_list_user_groups(self) -> None: """Test case for list_user_groups list user groups # noqa: E501 """ pass - def test_list_user_policies(self): + def test_list_user_policies(self) -> None: """Test case for list_user_policies list user policies # noqa: E501 """ pass - def test_list_users(self): + def test_list_users(self) -> None: """Test case for list_users list users # noqa: E501 """ pass - def test_login(self): + def test_login(self) -> None: """Test case for login perform a login # noqa: E501 """ pass - def test_set_group_acl(self): + def test_set_group_acl(self) -> None: """Test case for set_group_acl set ACL of group # noqa: E501 """ pass - def test_update_policy(self): + def test_update_policy(self) -> None: """Test case for update_policy update policy # noqa: E501 diff --git a/clients/python/test/test_auth_capabilities.py b/clients/python/test/test_auth_capabilities.py index fd3cd85e3a6..7b726c8895e 100644 --- a/clients/python/test/test_auth_capabilities.py +++ b/clients/python/test/test_auth_capabilities.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.auth_capabilities import AuthCapabilities # noqa: E501 -from lakefs_sdk.rest import ApiException class TestAuthCapabilities(unittest.TestCase): """AuthCapabilities unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AuthCapabilities: """Test AuthCapabilities include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AuthCapabilities` """ - model = lakefs_sdk.models.auth_capabilities.AuthCapabilities() # noqa: E501 - if include_optional : + model = AuthCapabilities() # noqa: E501 + if include_optional: return AuthCapabilities( - invite_user = True, + invite_user = True, forgot_password = True ) - else : + else: return AuthCapabilities( ) """ diff --git a/clients/python/test/test_authentication_token.py b/clients/python/test/test_authentication_token.py index bfc2c017f65..d150c5aafaf 100644 --- a/clients/python/test/test_authentication_token.py +++ b/clients/python/test/test_authentication_token.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.authentication_token import AuthenticationToken # noqa: E501 -from lakefs_sdk.rest import ApiException class TestAuthenticationToken(unittest.TestCase): """AuthenticationToken unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> AuthenticationToken: """Test AuthenticationToken include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `AuthenticationToken` """ - model = lakefs_sdk.models.authentication_token.AuthenticationToken() # noqa: E501 - if include_optional : + model = AuthenticationToken() # noqa: E501 + if include_optional: return AuthenticationToken( - token = '', + token = '', token_expiration = 56 ) - else : + else: return AuthenticationToken( token = '', ) diff --git a/clients/python/test/test_branch_creation.py b/clients/python/test/test_branch_creation.py index 8798d44e20b..de6057a9fff 100644 --- a/clients/python/test/test_branch_creation.py +++ b/clients/python/test/test_branch_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.branch_creation import BranchCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestBranchCreation(unittest.TestCase): """BranchCreation unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> BranchCreation: """Test BranchCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `BranchCreation` """ - model = lakefs_sdk.models.branch_creation.BranchCreation() # noqa: E501 - if include_optional : + model = BranchCreation() # noqa: E501 + if include_optional: return BranchCreation( - name = '', - source = '', - force = True, + name = '', + source = '', + force = True, hidden = True ) - else : + else: return BranchCreation( name = '', source = '', diff --git a/clients/python/test/test_branch_protection_rule.py b/clients/python/test/test_branch_protection_rule.py index 8f8efa6f15b..6dd3e973ba4 100644 --- a/clients/python/test/test_branch_protection_rule.py +++ b/clients/python/test/test_branch_protection_rule.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.branch_protection_rule import BranchProtectionRule # noqa: E501 -from lakefs_sdk.rest import ApiException class TestBranchProtectionRule(unittest.TestCase): """BranchProtectionRule unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> BranchProtectionRule: """Test BranchProtectionRule include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `BranchProtectionRule` """ - model = lakefs_sdk.models.branch_protection_rule.BranchProtectionRule() # noqa: E501 - if include_optional : + model = BranchProtectionRule() # noqa: E501 + if include_optional: return BranchProtectionRule( pattern = 'stable_*' ) - else : + else: return BranchProtectionRule( pattern = 'stable_*', ) diff --git a/clients/python/test/test_branches_api.py b/clients/python/test/test_branches_api.py index fa36c15aebc..ab9f49279db 100644 --- a/clients/python/test/test_branches_api.py +++ b/clients/python/test/test_branches_api.py @@ -15,70 +15,68 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.branches_api import BranchesApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestBranchesApi(unittest.TestCase): """BranchesApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.branches_api.BranchesApi() # noqa: E501 + def setUp(self) -> None: + self.api = BranchesApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_cherry_pick(self): + def test_cherry_pick(self) -> None: """Test case for cherry_pick Replay the changes from the given commit on the branch # noqa: E501 """ pass - def test_create_branch(self): + def test_create_branch(self) -> None: """Test case for create_branch create branch # noqa: E501 """ pass - def test_delete_branch(self): + def test_delete_branch(self) -> None: """Test case for delete_branch delete branch # noqa: E501 """ pass - def test_diff_branch(self): + def test_diff_branch(self) -> None: """Test case for diff_branch diff branch # noqa: E501 """ pass - def test_get_branch(self): + def test_get_branch(self) -> None: """Test case for get_branch get branch # noqa: E501 """ pass - def test_list_branches(self): + def test_list_branches(self) -> None: """Test case for list_branches list branches # noqa: E501 """ pass - def test_reset_branch(self): + def test_reset_branch(self) -> None: """Test case for reset_branch reset branch # noqa: E501 """ pass - def test_revert_branch(self): + def test_revert_branch(self) -> None: """Test case for revert_branch revert # noqa: E501 diff --git a/clients/python/test/test_cherry_pick_creation.py b/clients/python/test/test_cherry_pick_creation.py index 7733510c5b4..a7aee620ba7 100644 --- a/clients/python/test/test_cherry_pick_creation.py +++ b/clients/python/test/test_cherry_pick_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.cherry_pick_creation import CherryPickCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestCherryPickCreation(unittest.TestCase): """CherryPickCreation unit test stubs""" @@ -29,26 +27,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CherryPickCreation: """Test CherryPickCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CherryPickCreation` """ - model = lakefs_sdk.models.cherry_pick_creation.CherryPickCreation() # noqa: E501 - if include_optional : + model = CherryPickCreation() # noqa: E501 + if include_optional: return CherryPickCreation( - ref = '', - parent_number = 56, + ref = '', + parent_number = 56, commit_overrides = lakefs_sdk.models.commit_overrides.CommitOverrides( message = '', metadata = { 'key' : '' - }, ), + }, ), force = True ) - else : + else: return CherryPickCreation( ref = '', ) diff --git a/clients/python/test/test_comm_prefs_input.py b/clients/python/test/test_comm_prefs_input.py index 38fdffbe137..8c9796e6012 100644 --- a/clients/python/test/test_comm_prefs_input.py +++ b/clients/python/test/test_comm_prefs_input.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.comm_prefs_input import CommPrefsInput # noqa: E501 -from lakefs_sdk.rest import ApiException class TestCommPrefsInput(unittest.TestCase): """CommPrefsInput unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CommPrefsInput: """Test CommPrefsInput include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CommPrefsInput` """ - model = lakefs_sdk.models.comm_prefs_input.CommPrefsInput() # noqa: E501 - if include_optional : + model = CommPrefsInput() # noqa: E501 + if include_optional: return CommPrefsInput( - email = '', - feature_updates = True, + email = '', + feature_updates = True, security_updates = True ) - else : + else: return CommPrefsInput( feature_updates = True, security_updates = True, diff --git a/clients/python/test/test_commit.py b/clients/python/test/test_commit.py index 7c588fc804e..7087e6e0b94 100644 --- a/clients/python/test/test_commit.py +++ b/clients/python/test/test_commit.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.commit import Commit # noqa: E501 -from lakefs_sdk.rest import ApiException class TestCommit(unittest.TestCase): """Commit unit test stubs""" @@ -29,31 +27,31 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Commit: """Test Commit include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Commit` """ - model = lakefs_sdk.models.commit.Commit() # noqa: E501 - if include_optional : + model = Commit() # noqa: E501 + if include_optional: return Commit( - id = '', + id = '', parents = [ '' - ], - committer = '', - message = '', - creation_date = 56, - meta_range_id = '', + ], + committer = '', + message = '', + creation_date = 56, + meta_range_id = '', metadata = { 'key' : '' - }, - generation = 56, + }, + generation = 56, version = 0 ) - else : + else: return Commit( id = '', parents = [ diff --git a/clients/python/test/test_commit_creation.py b/clients/python/test/test_commit_creation.py index 512383c21f9..680fd31d2c8 100644 --- a/clients/python/test/test_commit_creation.py +++ b/clients/python/test/test_commit_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.commit_creation import CommitCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestCommitCreation(unittest.TestCase): """CommitCreation unit test stubs""" @@ -29,25 +27,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CommitCreation: """Test CommitCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CommitCreation` """ - model = lakefs_sdk.models.commit_creation.CommitCreation() # noqa: E501 - if include_optional : + model = CommitCreation() # noqa: E501 + if include_optional: return CommitCreation( - message = '', + message = '', metadata = { 'key' : '' - }, - var_date = 56, - allow_empty = True, + }, + var_date = 56, + allow_empty = True, force = True ) - else : + else: return CommitCreation( message = '', ) diff --git a/clients/python/test/test_commit_list.py b/clients/python/test/test_commit_list.py index ffa68ce27ce..323e5f48f3b 100644 --- a/clients/python/test/test_commit_list.py +++ b/clients/python/test/test_commit_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.commit_list import CommitList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestCommitList(unittest.TestCase): """CommitList unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CommitList: """Test CommitList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CommitList` """ - model = lakefs_sdk.models.commit_list.CommitList() # noqa: E501 - if include_optional : + model = CommitList() # noqa: E501 + if include_optional: return CommitList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, next_offset = '', results = 0, - max_per_page = 0, ), + max_per_page = 0, ), results = [ lakefs_sdk.models.commit.Commit( id = '', @@ -61,7 +59,7 @@ def make_instance(self, include_optional): version = 0, ) ] ) - else : + else: return CommitList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, diff --git a/clients/python/test/test_commit_overrides.py b/clients/python/test/test_commit_overrides.py index 050ecdf0416..f86481c191b 100644 --- a/clients/python/test/test_commit_overrides.py +++ b/clients/python/test/test_commit_overrides.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.commit_overrides import CommitOverrides # noqa: E501 -from lakefs_sdk.rest import ApiException class TestCommitOverrides(unittest.TestCase): """CommitOverrides unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CommitOverrides: """Test CommitOverrides include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CommitOverrides` """ - model = lakefs_sdk.models.commit_overrides.CommitOverrides() # noqa: E501 - if include_optional : + model = CommitOverrides() # noqa: E501 + if include_optional: return CommitOverrides( - message = '', + message = '', metadata = { 'key' : '' } ) - else : + else: return CommitOverrides( ) """ diff --git a/clients/python/test/test_commit_record_creation.py b/clients/python/test/test_commit_record_creation.py index 13de4ea5b7b..53de9242f1b 100644 --- a/clients/python/test/test_commit_record_creation.py +++ b/clients/python/test/test_commit_record_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.commit_record_creation import CommitRecordCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestCommitRecordCreation(unittest.TestCase): """CommitRecordCreation unit test stubs""" @@ -29,32 +27,32 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CommitRecordCreation: """Test CommitRecordCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CommitRecordCreation` """ - model = lakefs_sdk.models.commit_record_creation.CommitRecordCreation() # noqa: E501 - if include_optional : + model = CommitRecordCreation() # noqa: E501 + if include_optional: return CommitRecordCreation( - commit_id = '', - version = 0, - committer = '', - message = '', - metarange_id = '', - creation_date = 56, + commit_id = '', + version = 0, + committer = '', + message = '', + metarange_id = '', + creation_date = 56, parents = [ '' - ], + ], metadata = { 'key' : '' - }, - generation = 56, + }, + generation = 56, force = True ) - else : + else: return CommitRecordCreation( commit_id = '', version = 0, diff --git a/clients/python/test/test_commits_api.py b/clients/python/test/test_commits_api.py index 2d336273234..928d2035bbe 100644 --- a/clients/python/test/test_commits_api.py +++ b/clients/python/test/test_commits_api.py @@ -15,28 +15,26 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.commits_api import CommitsApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestCommitsApi(unittest.TestCase): """CommitsApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.commits_api.CommitsApi() # noqa: E501 + def setUp(self) -> None: + self.api = CommitsApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_commit(self): + def test_commit(self) -> None: """Test case for commit create commit # noqa: E501 """ pass - def test_get_commit(self): + def test_get_commit(self) -> None: """Test case for get_commit get commit # noqa: E501 diff --git a/clients/python/test/test_complete_presign_multipart_upload.py b/clients/python/test/test_complete_presign_multipart_upload.py index b43416dc8bf..440fc99aca1 100644 --- a/clients/python/test/test_complete_presign_multipart_upload.py +++ b/clients/python/test/test_complete_presign_multipart_upload.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.complete_presign_multipart_upload import CompletePresignMultipartUpload # noqa: E501 -from lakefs_sdk.rest import ApiException class TestCompletePresignMultipartUpload(unittest.TestCase): """CompletePresignMultipartUpload unit test stubs""" @@ -29,28 +27,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CompletePresignMultipartUpload: """Test CompletePresignMultipartUpload include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CompletePresignMultipartUpload` """ - model = lakefs_sdk.models.complete_presign_multipart_upload.CompletePresignMultipartUpload() # noqa: E501 - if include_optional : + model = CompletePresignMultipartUpload() # noqa: E501 + if include_optional: return CompletePresignMultipartUpload( - physical_address = '', + physical_address = '', parts = [ lakefs_sdk.models.upload_part.UploadPart( part_number = 56, etag = '', ) - ], + ], user_metadata = { 'key' : '' - }, + }, content_type = '' ) - else : + else: return CompletePresignMultipartUpload( physical_address = '', parts = [ diff --git a/clients/python/test/test_config.py b/clients/python/test/test_config.py index db2dfe52946..d3e11af7ca9 100644 --- a/clients/python/test/test_config.py +++ b/clients/python/test/test_config.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.config import Config # noqa: E501 -from lakefs_sdk.rest import ApiException class TestConfig(unittest.TestCase): """Config unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Config: """Test Config include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Config` """ - model = lakefs_sdk.models.config.Config() # noqa: E501 - if include_optional : + model = Config() # noqa: E501 + if include_optional: return Config( version_config = lakefs_sdk.models.version_config.VersionConfig( version = '', latest_version = '', upgrade_recommended = True, - upgrade_url = '', ), + upgrade_url = '', ), storage_config = lakefs_sdk.models.storage_config.StorageConfig( blockstore_type = '', blockstore_namespace_example = '', @@ -55,7 +53,7 @@ def make_instance(self, include_optional): import_validity_regex = '', pre_sign_multipart_upload = True, blockstore_id = '', - blockstore_description = '', ), + blockstore_description = '', ), storage_config_list = [ lakefs_sdk.models.storage_config.StorageConfig( blockstore_type = '', @@ -71,7 +69,7 @@ def make_instance(self, include_optional): blockstore_description = '', ) ] ) - else : + else: return Config( ) """ diff --git a/clients/python/test/test_config_api.py b/clients/python/test/test_config_api.py index 7b9b539b6e9..45e00b6abe5 100644 --- a/clients/python/test/test_config_api.py +++ b/clients/python/test/test_config_api.py @@ -15,21 +15,19 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.config_api import ConfigApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestConfigApi(unittest.TestCase): """ConfigApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.config_api.ConfigApi() # noqa: E501 + def setUp(self) -> None: + self.api = ConfigApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_get_config(self): + def test_get_config(self) -> None: """Test case for get_config """ diff --git a/clients/python/test/test_credentials.py b/clients/python/test/test_credentials.py index 71efb1f0640..05a351bebe0 100644 --- a/clients/python/test/test_credentials.py +++ b/clients/python/test/test_credentials.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.credentials import Credentials # noqa: E501 -from lakefs_sdk.rest import ApiException class TestCredentials(unittest.TestCase): """Credentials unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Credentials: """Test Credentials include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Credentials` """ - model = lakefs_sdk.models.credentials.Credentials() # noqa: E501 - if include_optional : + model = Credentials() # noqa: E501 + if include_optional: return Credentials( - access_key_id = '', + access_key_id = '', creation_date = 56 ) - else : + else: return Credentials( access_key_id = '', creation_date = 56, diff --git a/clients/python/test/test_credentials_list.py b/clients/python/test/test_credentials_list.py index 0f1797d4973..77de7513a21 100644 --- a/clients/python/test/test_credentials_list.py +++ b/clients/python/test/test_credentials_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.credentials_list import CredentialsList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestCredentialsList(unittest.TestCase): """CredentialsList unit test stubs""" @@ -29,28 +27,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CredentialsList: """Test CredentialsList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CredentialsList` """ - model = lakefs_sdk.models.credentials_list.CredentialsList() # noqa: E501 - if include_optional : + model = CredentialsList() # noqa: E501 + if include_optional: return CredentialsList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, next_offset = '', results = 0, - max_per_page = 0, ), + max_per_page = 0, ), results = [ lakefs_sdk.models.credentials.Credentials( access_key_id = '', creation_date = 56, ) ] ) - else : + else: return CredentialsList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, diff --git a/clients/python/test/test_credentials_with_secret.py b/clients/python/test/test_credentials_with_secret.py index 5a670726c88..f6723c8eb9d 100644 --- a/clients/python/test/test_credentials_with_secret.py +++ b/clients/python/test/test_credentials_with_secret.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.credentials_with_secret import CredentialsWithSecret # noqa: E501 -from lakefs_sdk.rest import ApiException class TestCredentialsWithSecret(unittest.TestCase): """CredentialsWithSecret unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CredentialsWithSecret: """Test CredentialsWithSecret include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CredentialsWithSecret` """ - model = lakefs_sdk.models.credentials_with_secret.CredentialsWithSecret() # noqa: E501 - if include_optional : + model = CredentialsWithSecret() # noqa: E501 + if include_optional: return CredentialsWithSecret( - access_key_id = '', - secret_access_key = '', + access_key_id = '', + secret_access_key = '', creation_date = 56 ) - else : + else: return CredentialsWithSecret( access_key_id = '', secret_access_key = '', diff --git a/clients/python/test/test_current_user.py b/clients/python/test/test_current_user.py index 439c271f30d..621ae7c8e11 100644 --- a/clients/python/test/test_current_user.py +++ b/clients/python/test/test_current_user.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.current_user import CurrentUser # noqa: E501 -from lakefs_sdk.rest import ApiException class TestCurrentUser(unittest.TestCase): """CurrentUser unit test stubs""" @@ -29,15 +27,15 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> CurrentUser: """Test CurrentUser include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `CurrentUser` """ - model = lakefs_sdk.models.current_user.CurrentUser() # noqa: E501 - if include_optional : + model = CurrentUser() # noqa: E501 + if include_optional: return CurrentUser( user = lakefs_sdk.models.user.User( id = '', @@ -45,7 +43,7 @@ def make_instance(self, include_optional): friendly_name = '', email = '', ) ) - else : + else: return CurrentUser( user = lakefs_sdk.models.user.User( id = '', diff --git a/clients/python/test/test_diff.py b/clients/python/test/test_diff.py index 2bb9a61e383..c1111d43cba 100644 --- a/clients/python/test/test_diff.py +++ b/clients/python/test/test_diff.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.diff import Diff # noqa: E501 -from lakefs_sdk.rest import ApiException class TestDiff(unittest.TestCase): """Diff unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Diff: """Test Diff include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Diff` """ - model = lakefs_sdk.models.diff.Diff() # noqa: E501 - if include_optional : + model = Diff() # noqa: E501 + if include_optional: return Diff( - type = 'added', - path = '', - path_type = 'common_prefix', + type = 'added', + path = '', + path_type = 'common_prefix', size_bytes = 56 ) - else : + else: return Diff( type = 'added', path = '', diff --git a/clients/python/test/test_diff_list.py b/clients/python/test/test_diff_list.py index c4d57f5d48a..d5e09f94d16 100644 --- a/clients/python/test/test_diff_list.py +++ b/clients/python/test/test_diff_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.diff_list import DiffList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestDiffList(unittest.TestCase): """DiffList unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> DiffList: """Test DiffList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `DiffList` """ - model = lakefs_sdk.models.diff_list.DiffList() # noqa: E501 - if include_optional : + model = DiffList() # noqa: E501 + if include_optional: return DiffList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, next_offset = '', results = 0, - max_per_page = 0, ), + max_per_page = 0, ), results = [ lakefs_sdk.models.diff.Diff( type = 'added', @@ -52,7 +50,7 @@ def make_instance(self, include_optional): size_bytes = 56, ) ] ) - else : + else: return DiffList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, diff --git a/clients/python/test/test_error.py b/clients/python/test/test_error.py index 634571b1082..6227e0fc07b 100644 --- a/clients/python/test/test_error.py +++ b/clients/python/test/test_error.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.error import Error # noqa: E501 -from lakefs_sdk.rest import ApiException class TestError(unittest.TestCase): """Error unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Error: """Test Error include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Error` """ - model = lakefs_sdk.models.error.Error() # noqa: E501 - if include_optional : + model = Error() # noqa: E501 + if include_optional: return Error( message = '' ) - else : + else: return Error( message = '', ) diff --git a/clients/python/test/test_error_no_acl.py b/clients/python/test/test_error_no_acl.py index 6745b6f0e48..ff10fca2d07 100644 --- a/clients/python/test/test_error_no_acl.py +++ b/clients/python/test/test_error_no_acl.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.error_no_acl import ErrorNoACL # noqa: E501 -from lakefs_sdk.rest import ApiException class TestErrorNoACL(unittest.TestCase): """ErrorNoACL unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ErrorNoACL: """Test ErrorNoACL include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ErrorNoACL` """ - model = lakefs_sdk.models.error_no_acl.ErrorNoACL() # noqa: E501 - if include_optional : + model = ErrorNoACL() # noqa: E501 + if include_optional: return ErrorNoACL( - message = '', + message = '', no_acl = True ) - else : + else: return ErrorNoACL( message = '', ) diff --git a/clients/python/test/test_experimental_api.py b/clients/python/test/test_experimental_api.py index e30b75d6166..cee65d3b527 100644 --- a/clients/python/test/test_experimental_api.py +++ b/clients/python/test/test_experimental_api.py @@ -15,126 +15,124 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.experimental_api import ExperimentalApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestExperimentalApi(unittest.TestCase): """ExperimentalApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.experimental_api.ExperimentalApi() # noqa: E501 + def setUp(self) -> None: + self.api = ExperimentalApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_abort_presign_multipart_upload(self): + def test_abort_presign_multipart_upload(self) -> None: """Test case for abort_presign_multipart_upload Abort a presign multipart upload # noqa: E501 """ pass - def test_complete_presign_multipart_upload(self): + def test_complete_presign_multipart_upload(self) -> None: """Test case for complete_presign_multipart_upload Complete a presign multipart upload request # noqa: E501 """ pass - def test_create_presign_multipart_upload(self): + def test_create_presign_multipart_upload(self) -> None: """Test case for create_presign_multipart_upload Initiate a multipart upload # noqa: E501 """ pass - def test_create_pull_request(self): + def test_create_pull_request(self) -> None: """Test case for create_pull_request create pull request # noqa: E501 """ pass - def test_create_user_external_principal(self): + def test_create_user_external_principal(self) -> None: """Test case for create_user_external_principal attach external principal to user # noqa: E501 """ pass - def test_delete_user_external_principal(self): + def test_delete_user_external_principal(self) -> None: """Test case for delete_user_external_principal delete external principal from user # noqa: E501 """ pass - def test_external_principal_login(self): + def test_external_principal_login(self) -> None: """Test case for external_principal_login perform a login using an external authenticator # noqa: E501 """ pass - def test_get_external_principal(self): + def test_get_external_principal(self) -> None: """Test case for get_external_principal describe external principal by id # noqa: E501 """ pass - def test_get_pull_request(self): + def test_get_pull_request(self) -> None: """Test case for get_pull_request get pull request # noqa: E501 """ pass - def test_hard_reset_branch(self): + def test_hard_reset_branch(self) -> None: """Test case for hard_reset_branch hard reset branch # noqa: E501 """ pass - def test_list_pull_requests(self): + def test_list_pull_requests(self) -> None: """Test case for list_pull_requests list pull requests # noqa: E501 """ pass - def test_list_user_external_principals(self): + def test_list_user_external_principals(self) -> None: """Test case for list_user_external_principals list user external policies attached to a user # noqa: E501 """ pass - def test_merge_pull_request(self): + def test_merge_pull_request(self) -> None: """Test case for merge_pull_request merge pull request # noqa: E501 """ pass - def test_sts_login(self): + def test_sts_login(self) -> None: """Test case for sts_login perform a login with STS # noqa: E501 """ pass - def test_update_object_user_metadata(self): + def test_update_object_user_metadata(self) -> None: """Test case for update_object_user_metadata rewrite (all) object metadata # noqa: E501 """ pass - def test_update_pull_request(self): + def test_update_pull_request(self) -> None: """Test case for update_pull_request update pull request # noqa: E501 diff --git a/clients/python/test/test_external_api.py b/clients/python/test/test_external_api.py index ba3a4b93e16..db09b9b067e 100644 --- a/clients/python/test/test_external_api.py +++ b/clients/python/test/test_external_api.py @@ -15,49 +15,47 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.external_api import ExternalApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestExternalApi(unittest.TestCase): """ExternalApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.external_api.ExternalApi() # noqa: E501 + def setUp(self) -> None: + self.api = ExternalApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_create_user_external_principal(self): + def test_create_user_external_principal(self) -> None: """Test case for create_user_external_principal attach external principal to user # noqa: E501 """ pass - def test_delete_user_external_principal(self): + def test_delete_user_external_principal(self) -> None: """Test case for delete_user_external_principal delete external principal from user # noqa: E501 """ pass - def test_external_principal_login(self): + def test_external_principal_login(self) -> None: """Test case for external_principal_login perform a login using an external authenticator # noqa: E501 """ pass - def test_get_external_principal(self): + def test_get_external_principal(self) -> None: """Test case for get_external_principal describe external principal by id # noqa: E501 """ pass - def test_list_user_external_principals(self): + def test_list_user_external_principals(self) -> None: """Test case for list_user_external_principals list user external policies attached to a user # noqa: E501 diff --git a/clients/python/test/test_external_login_information.py b/clients/python/test/test_external_login_information.py index b2cfb95eb4f..a64b2a9a289 100644 --- a/clients/python/test/test_external_login_information.py +++ b/clients/python/test/test_external_login_information.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.external_login_information import ExternalLoginInformation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestExternalLoginInformation(unittest.TestCase): """ExternalLoginInformation unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ExternalLoginInformation: """Test ExternalLoginInformation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ExternalLoginInformation` """ - model = lakefs_sdk.models.external_login_information.ExternalLoginInformation() # noqa: E501 - if include_optional : + model = ExternalLoginInformation() # noqa: E501 + if include_optional: return ExternalLoginInformation( - token_expiration_duration = 56, + token_expiration_duration = 56, identity_request = None ) - else : + else: return ExternalLoginInformation( identity_request = None, ) diff --git a/clients/python/test/test_external_principal.py b/clients/python/test/test_external_principal.py index a01aad6c4dc..2f830145ae5 100644 --- a/clients/python/test/test_external_principal.py +++ b/clients/python/test/test_external_principal.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.external_principal import ExternalPrincipal # noqa: E501 -from lakefs_sdk.rest import ApiException class TestExternalPrincipal(unittest.TestCase): """ExternalPrincipal unit test stubs""" @@ -29,25 +27,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ExternalPrincipal: """Test ExternalPrincipal include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ExternalPrincipal` """ - model = lakefs_sdk.models.external_principal.ExternalPrincipal() # noqa: E501 - if include_optional : + model = ExternalPrincipal() # noqa: E501 + if include_optional: return ExternalPrincipal( - id = '', - user_id = '', + id = '', + user_id = '', settings = [ { 'key' : '' } ] ) - else : + else: return ExternalPrincipal( id = '', user_id = '', diff --git a/clients/python/test/test_external_principal_creation.py b/clients/python/test/test_external_principal_creation.py index d5a771cc179..616fb753b72 100644 --- a/clients/python/test/test_external_principal_creation.py +++ b/clients/python/test/test_external_principal_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.external_principal_creation import ExternalPrincipalCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestExternalPrincipalCreation(unittest.TestCase): """ExternalPrincipalCreation unit test stubs""" @@ -29,15 +27,15 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ExternalPrincipalCreation: """Test ExternalPrincipalCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ExternalPrincipalCreation` """ - model = lakefs_sdk.models.external_principal_creation.ExternalPrincipalCreation() # noqa: E501 - if include_optional : + model = ExternalPrincipalCreation() # noqa: E501 + if include_optional: return ExternalPrincipalCreation( settings = [ { @@ -45,7 +43,7 @@ def make_instance(self, include_optional): } ] ) - else : + else: return ExternalPrincipalCreation( ) """ diff --git a/clients/python/test/test_external_principal_list.py b/clients/python/test/test_external_principal_list.py index 268a37db9a3..e7dca883a04 100644 --- a/clients/python/test/test_external_principal_list.py +++ b/clients/python/test/test_external_principal_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.external_principal_list import ExternalPrincipalList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestExternalPrincipalList(unittest.TestCase): """ExternalPrincipalList unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ExternalPrincipalList: """Test ExternalPrincipalList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ExternalPrincipalList` """ - model = lakefs_sdk.models.external_principal_list.ExternalPrincipalList() # noqa: E501 - if include_optional : + model = ExternalPrincipalList() # noqa: E501 + if include_optional: return ExternalPrincipalList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, next_offset = '', results = 0, - max_per_page = 0, ), + max_per_page = 0, ), results = [ lakefs_sdk.models.external_principal.ExternalPrincipal( id = '', @@ -55,7 +53,7 @@ def make_instance(self, include_optional): ], ) ] ) - else : + else: return ExternalPrincipalList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, diff --git a/clients/python/test/test_find_merge_base_result.py b/clients/python/test/test_find_merge_base_result.py index 5d15b377ff9..ac980228fc0 100644 --- a/clients/python/test/test_find_merge_base_result.py +++ b/clients/python/test/test_find_merge_base_result.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.find_merge_base_result import FindMergeBaseResult # noqa: E501 -from lakefs_sdk.rest import ApiException class TestFindMergeBaseResult(unittest.TestCase): """FindMergeBaseResult unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> FindMergeBaseResult: """Test FindMergeBaseResult include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `FindMergeBaseResult` """ - model = lakefs_sdk.models.find_merge_base_result.FindMergeBaseResult() # noqa: E501 - if include_optional : + model = FindMergeBaseResult() # noqa: E501 + if include_optional: return FindMergeBaseResult( - source_commit_id = '', - destination_commit_id = '', + source_commit_id = '', + destination_commit_id = '', base_commit_id = '' ) - else : + else: return FindMergeBaseResult( source_commit_id = '', destination_commit_id = '', diff --git a/clients/python/test/test_garbage_collection_config.py b/clients/python/test/test_garbage_collection_config.py index 3e2ea28b1ef..dabfb5c4690 100644 --- a/clients/python/test/test_garbage_collection_config.py +++ b/clients/python/test/test_garbage_collection_config.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.garbage_collection_config import GarbageCollectionConfig # noqa: E501 -from lakefs_sdk.rest import ApiException class TestGarbageCollectionConfig(unittest.TestCase): """GarbageCollectionConfig unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> GarbageCollectionConfig: """Test GarbageCollectionConfig include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GarbageCollectionConfig` """ - model = lakefs_sdk.models.garbage_collection_config.GarbageCollectionConfig() # noqa: E501 - if include_optional : + model = GarbageCollectionConfig() # noqa: E501 + if include_optional: return GarbageCollectionConfig( grace_period = 56 ) - else : + else: return GarbageCollectionConfig( ) """ diff --git a/clients/python/test/test_garbage_collection_prepare_response.py b/clients/python/test/test_garbage_collection_prepare_response.py index 9979cce0d43..adc25b13a04 100644 --- a/clients/python/test/test_garbage_collection_prepare_response.py +++ b/clients/python/test/test_garbage_collection_prepare_response.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.garbage_collection_prepare_response import GarbageCollectionPrepareResponse # noqa: E501 -from lakefs_sdk.rest import ApiException class TestGarbageCollectionPrepareResponse(unittest.TestCase): """GarbageCollectionPrepareResponse unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> GarbageCollectionPrepareResponse: """Test GarbageCollectionPrepareResponse include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GarbageCollectionPrepareResponse` """ - model = lakefs_sdk.models.garbage_collection_prepare_response.GarbageCollectionPrepareResponse() # noqa: E501 - if include_optional : + model = GarbageCollectionPrepareResponse() # noqa: E501 + if include_optional: return GarbageCollectionPrepareResponse( - run_id = '64eaa103-d726-4a33-bcb8-7c0b4abfe09e', - gc_commits_location = 's3://my-storage-namespace/_lakefs/retention/commits', - gc_addresses_location = 's3://my-storage-namespace/_lakefs/retention/addresses', + run_id = '64eaa103-d726-4a33-bcb8-7c0b4abfe09e', + gc_commits_location = 's3://my-storage-namespace/_lakefs/retention/commits', + gc_addresses_location = 's3://my-storage-namespace/_lakefs/retention/addresses', gc_commits_presigned_url = '' ) - else : + else: return GarbageCollectionPrepareResponse( run_id = '64eaa103-d726-4a33-bcb8-7c0b4abfe09e', gc_commits_location = 's3://my-storage-namespace/_lakefs/retention/commits', diff --git a/clients/python/test/test_garbage_collection_rule.py b/clients/python/test/test_garbage_collection_rule.py index f5a70bfd7f8..6c0bd435df1 100644 --- a/clients/python/test/test_garbage_collection_rule.py +++ b/clients/python/test/test_garbage_collection_rule.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.garbage_collection_rule import GarbageCollectionRule # noqa: E501 -from lakefs_sdk.rest import ApiException class TestGarbageCollectionRule(unittest.TestCase): """GarbageCollectionRule unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> GarbageCollectionRule: """Test GarbageCollectionRule include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GarbageCollectionRule` """ - model = lakefs_sdk.models.garbage_collection_rule.GarbageCollectionRule() # noqa: E501 - if include_optional : + model = GarbageCollectionRule() # noqa: E501 + if include_optional: return GarbageCollectionRule( - branch_id = '', + branch_id = '', retention_days = 56 ) - else : + else: return GarbageCollectionRule( branch_id = '', retention_days = 56, diff --git a/clients/python/test/test_garbage_collection_rules.py b/clients/python/test/test_garbage_collection_rules.py index 5b73d386305..eabcb5e3e5b 100644 --- a/clients/python/test/test_garbage_collection_rules.py +++ b/clients/python/test/test_garbage_collection_rules.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.garbage_collection_rules import GarbageCollectionRules # noqa: E501 -from lakefs_sdk.rest import ApiException class TestGarbageCollectionRules(unittest.TestCase): """GarbageCollectionRules unit test stubs""" @@ -29,24 +27,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> GarbageCollectionRules: """Test GarbageCollectionRules include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GarbageCollectionRules` """ - model = lakefs_sdk.models.garbage_collection_rules.GarbageCollectionRules() # noqa: E501 - if include_optional : + model = GarbageCollectionRules() # noqa: E501 + if include_optional: return GarbageCollectionRules( - default_retention_days = 56, + default_retention_days = 56, branches = [ lakefs_sdk.models.garbage_collection_rule.GarbageCollectionRule( branch_id = '', retention_days = 56, ) ] ) - else : + else: return GarbageCollectionRules( default_retention_days = 56, branches = [ diff --git a/clients/python/test/test_group.py b/clients/python/test/test_group.py index 037c0a1f976..93d56dae7d3 100644 --- a/clients/python/test/test_group.py +++ b/clients/python/test/test_group.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.group import Group # noqa: E501 -from lakefs_sdk.rest import ApiException class TestGroup(unittest.TestCase): """Group unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Group: """Test Group include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Group` """ - model = lakefs_sdk.models.group.Group() # noqa: E501 - if include_optional : + model = Group() # noqa: E501 + if include_optional: return Group( - id = '', - name = '', - description = '', + id = '', + name = '', + description = '', creation_date = 56 ) - else : + else: return Group( id = '', creation_date = 56, diff --git a/clients/python/test/test_group_creation.py b/clients/python/test/test_group_creation.py index d0b051563a6..73116393f50 100644 --- a/clients/python/test/test_group_creation.py +++ b/clients/python/test/test_group_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.group_creation import GroupCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestGroupCreation(unittest.TestCase): """GroupCreation unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> GroupCreation: """Test GroupCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupCreation` """ - model = lakefs_sdk.models.group_creation.GroupCreation() # noqa: E501 - if include_optional : + model = GroupCreation() # noqa: E501 + if include_optional: return GroupCreation( - id = '', + id = '', description = '' ) - else : + else: return GroupCreation( id = '', ) diff --git a/clients/python/test/test_group_list.py b/clients/python/test/test_group_list.py index e490a588b3c..b20213025ab 100644 --- a/clients/python/test/test_group_list.py +++ b/clients/python/test/test_group_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.group_list import GroupList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestGroupList(unittest.TestCase): """GroupList unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> GroupList: """Test GroupList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `GroupList` """ - model = lakefs_sdk.models.group_list.GroupList() # noqa: E501 - if include_optional : + model = GroupList() # noqa: E501 + if include_optional: return GroupList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, next_offset = '', results = 0, - max_per_page = 0, ), + max_per_page = 0, ), results = [ lakefs_sdk.models.group.Group( id = '', @@ -52,7 +50,7 @@ def make_instance(self, include_optional): creation_date = 56, ) ] ) - else : + else: return GroupList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, diff --git a/clients/python/test/test_health_check_api.py b/clients/python/test/test_health_check_api.py index e4d4f5a45aa..7007b3f1c79 100644 --- a/clients/python/test/test_health_check_api.py +++ b/clients/python/test/test_health_check_api.py @@ -15,21 +15,19 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.health_check_api import HealthCheckApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestHealthCheckApi(unittest.TestCase): """HealthCheckApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.health_check_api.HealthCheckApi() # noqa: E501 + def setUp(self) -> None: + self.api = HealthCheckApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_health_check(self): + def test_health_check(self) -> None: """Test case for health_check """ diff --git a/clients/python/test/test_hook_run.py b/clients/python/test/test_hook_run.py index 60a901af7d5..e9a548762c3 100644 --- a/clients/python/test/test_hook_run.py +++ b/clients/python/test/test_hook_run.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.hook_run import HookRun # noqa: E501 -from lakefs_sdk.rest import ApiException class TestHookRun(unittest.TestCase): """HookRun unit test stubs""" @@ -29,24 +27,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> HookRun: """Test HookRun include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `HookRun` """ - model = lakefs_sdk.models.hook_run.HookRun() # noqa: E501 - if include_optional : + model = HookRun() # noqa: E501 + if include_optional: return HookRun( - hook_run_id = '', - action = '', - hook_id = '', - start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + hook_run_id = '', + action = '', + hook_id = '', + start_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), status = 'failed' ) - else : + else: return HookRun( hook_run_id = '', action = '', diff --git a/clients/python/test/test_hook_run_list.py b/clients/python/test/test_hook_run_list.py index 6b2fde9196a..ef5ba8940ff 100644 --- a/clients/python/test/test_hook_run_list.py +++ b/clients/python/test/test_hook_run_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.hook_run_list import HookRunList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestHookRunList(unittest.TestCase): """HookRunList unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> HookRunList: """Test HookRunList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `HookRunList` """ - model = lakefs_sdk.models.hook_run_list.HookRunList() # noqa: E501 - if include_optional : + model = HookRunList() # noqa: E501 + if include_optional: return HookRunList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, next_offset = '', results = 0, - max_per_page = 0, ), + max_per_page = 0, ), results = [ lakefs_sdk.models.hook_run.HookRun( hook_run_id = '', @@ -54,7 +52,7 @@ def make_instance(self, include_optional): status = 'failed', ) ] ) - else : + else: return HookRunList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, diff --git a/clients/python/test/test_import_api.py b/clients/python/test/test_import_api.py index bddd116d1e5..37de4ef204e 100644 --- a/clients/python/test/test_import_api.py +++ b/clients/python/test/test_import_api.py @@ -15,35 +15,33 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.import_api import ImportApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestImportApi(unittest.TestCase): """ImportApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.import_api.ImportApi() # noqa: E501 + def setUp(self) -> None: + self.api = ImportApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_import_cancel(self): + def test_import_cancel(self) -> None: """Test case for import_cancel cancel ongoing import # noqa: E501 """ pass - def test_import_start(self): + def test_import_start(self) -> None: """Test case for import_start import data from object store # noqa: E501 """ pass - def test_import_status(self): + def test_import_status(self) -> None: """Test case for import_status get import status # noqa: E501 diff --git a/clients/python/test/test_import_creation.py b/clients/python/test/test_import_creation.py index 488fc51b890..97438668630 100644 --- a/clients/python/test/test_import_creation.py +++ b/clients/python/test/test_import_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.import_creation import ImportCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestImportCreation(unittest.TestCase): """ImportCreation unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ImportCreation: """Test ImportCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ImportCreation` """ - model = lakefs_sdk.models.import_creation.ImportCreation() # noqa: E501 - if include_optional : + model = ImportCreation() # noqa: E501 + if include_optional: return ImportCreation( paths = [ lakefs_sdk.models.import_location.ImportLocation( type = 'common_prefix', path = 's3://my-bucket/production/collections/', destination = 'collections/', ) - ], + ], commit = lakefs_sdk.models.commit_creation.CommitCreation( message = '', metadata = { @@ -52,10 +50,10 @@ def make_instance(self, include_optional): }, date = 56, allow_empty = True, - force = True, ), + force = True, ), force = True ) - else : + else: return ImportCreation( paths = [ lakefs_sdk.models.import_location.ImportLocation( diff --git a/clients/python/test/test_import_creation_response.py b/clients/python/test/test_import_creation_response.py index 17d257fee29..a27a65254c0 100644 --- a/clients/python/test/test_import_creation_response.py +++ b/clients/python/test/test_import_creation_response.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.import_creation_response import ImportCreationResponse # noqa: E501 -from lakefs_sdk.rest import ApiException class TestImportCreationResponse(unittest.TestCase): """ImportCreationResponse unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ImportCreationResponse: """Test ImportCreationResponse include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ImportCreationResponse` """ - model = lakefs_sdk.models.import_creation_response.ImportCreationResponse() # noqa: E501 - if include_optional : + model = ImportCreationResponse() # noqa: E501 + if include_optional: return ImportCreationResponse( id = '' ) - else : + else: return ImportCreationResponse( id = '', ) diff --git a/clients/python/test/test_import_location.py b/clients/python/test/test_import_location.py index 397d6fbee77..832a89a1c95 100644 --- a/clients/python/test/test_import_location.py +++ b/clients/python/test/test_import_location.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.import_location import ImportLocation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestImportLocation(unittest.TestCase): """ImportLocation unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ImportLocation: """Test ImportLocation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ImportLocation` """ - model = lakefs_sdk.models.import_location.ImportLocation() # noqa: E501 - if include_optional : + model = ImportLocation() # noqa: E501 + if include_optional: return ImportLocation( - type = 'common_prefix', - path = 's3://my-bucket/production/collections/', + type = 'common_prefix', + path = 's3://my-bucket/production/collections/', destination = 'collections/' ) - else : + else: return ImportLocation( type = 'common_prefix', path = 's3://my-bucket/production/collections/', diff --git a/clients/python/test/test_import_status.py b/clients/python/test/test_import_status.py index 4e560375f62..0deb36ba1ee 100644 --- a/clients/python/test/test_import_status.py +++ b/clients/python/test/test_import_status.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.import_status import ImportStatus # noqa: E501 -from lakefs_sdk.rest import ApiException class TestImportStatus(unittest.TestCase): """ImportStatus unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ImportStatus: """Test ImportStatus include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ImportStatus` """ - model = lakefs_sdk.models.import_status.ImportStatus() # noqa: E501 - if include_optional : + model = ImportStatus() # noqa: E501 + if include_optional: return ImportStatus( - completed = True, - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ingested_objects = 56, - metarange_id = '', + completed = True, + update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ingested_objects = 56, + metarange_id = '', commit = lakefs_sdk.models.commit.Commit( id = '', parents = [ @@ -56,11 +54,11 @@ def make_instance(self, include_optional): 'key' : '' }, generation = 56, - version = 0, ), + version = 0, ), error = lakefs_sdk.models.error.Error( message = '', ) ) - else : + else: return ImportStatus( completed = True, update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/clients/python/test/test_installation_usage_report.py b/clients/python/test/test_installation_usage_report.py index 029e02abe31..a71147b6b69 100644 --- a/clients/python/test/test_installation_usage_report.py +++ b/clients/python/test/test_installation_usage_report.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.installation_usage_report import InstallationUsageReport # noqa: E501 -from lakefs_sdk.rest import ApiException class TestInstallationUsageReport(unittest.TestCase): """InstallationUsageReport unit test stubs""" @@ -29,17 +27,17 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> InstallationUsageReport: """Test InstallationUsageReport include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `InstallationUsageReport` """ - model = lakefs_sdk.models.installation_usage_report.InstallationUsageReport() # noqa: E501 - if include_optional : + model = InstallationUsageReport() # noqa: E501 + if include_optional: return InstallationUsageReport( - installation_id = '', + installation_id = '', reports = [ lakefs_sdk.models.usage_report.UsageReport( year = 56, @@ -47,7 +45,7 @@ def make_instance(self, include_optional): count = 56, ) ] ) - else : + else: return InstallationUsageReport( installation_id = '', reports = [ diff --git a/clients/python/test/test_internal_api.py b/clients/python/test/test_internal_api.py index 21c6fe63e3c..003e3b60651 100644 --- a/clients/python/test/test_internal_api.py +++ b/clients/python/test/test_internal_api.py @@ -15,200 +15,198 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.internal_api import InternalApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestInternalApi(unittest.TestCase): """InternalApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.internal_api.InternalApi() # noqa: E501 + def setUp(self) -> None: + self.api = InternalApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_create_branch_protection_rule_preflight(self): + def test_create_branch_protection_rule_preflight(self) -> None: """Test case for create_branch_protection_rule_preflight """ pass - def test_create_commit_record(self): + def test_create_commit_record(self) -> None: """Test case for create_commit_record create commit record # noqa: E501 """ pass - def test_create_symlink_file(self): + def test_create_symlink_file(self) -> None: """Test case for create_symlink_file creates symlink files corresponding to the given directory # noqa: E501 """ pass - def test_delete_repository_metadata(self): + def test_delete_repository_metadata(self) -> None: """Test case for delete_repository_metadata delete repository metadata # noqa: E501 """ pass - def test_dump_refs(self): + def test_dump_refs(self) -> None: """Test case for dump_refs Dump repository refs (tags, commits, branches) to object store Deprecated: a new API will introduce long running operations # noqa: E501 """ pass - def test_get_auth_capabilities(self): + def test_get_auth_capabilities(self) -> None: """Test case for get_auth_capabilities list authentication capabilities supported # noqa: E501 """ pass - def test_get_garbage_collection_config(self): + def test_get_garbage_collection_config(self) -> None: """Test case for get_garbage_collection_config """ pass - def test_get_lake_fs_version(self): + def test_get_lake_fs_version(self) -> None: """Test case for get_lake_fs_version """ pass - def test_get_metadata_object(self): + def test_get_metadata_object(self) -> None: """Test case for get_metadata_object return a lakeFS metadata object by ID # noqa: E501 """ pass - def test_get_setup_state(self): + def test_get_setup_state(self) -> None: """Test case for get_setup_state check if the lakeFS installation is already set up # noqa: E501 """ pass - def test_get_storage_config(self): + def test_get_storage_config(self) -> None: """Test case for get_storage_config """ pass - def test_get_usage_report_summary(self): + def test_get_usage_report_summary(self) -> None: """Test case for get_usage_report_summary get usage report summary # noqa: E501 """ pass - def test_internal_create_branch_protection_rule(self): + def test_internal_create_branch_protection_rule(self) -> None: """Test case for internal_create_branch_protection_rule """ pass - def test_internal_delete_branch_protection_rule(self): + def test_internal_delete_branch_protection_rule(self) -> None: """Test case for internal_delete_branch_protection_rule """ pass - def test_internal_delete_garbage_collection_rules(self): + def test_internal_delete_garbage_collection_rules(self) -> None: """Test case for internal_delete_garbage_collection_rules """ pass - def test_internal_get_branch_protection_rules(self): + def test_internal_get_branch_protection_rules(self) -> None: """Test case for internal_get_branch_protection_rules get branch protection rules # noqa: E501 """ pass - def test_internal_get_garbage_collection_rules(self): + def test_internal_get_garbage_collection_rules(self) -> None: """Test case for internal_get_garbage_collection_rules """ pass - def test_internal_set_garbage_collection_rules(self): + def test_internal_set_garbage_collection_rules(self) -> None: """Test case for internal_set_garbage_collection_rules """ pass - def test_post_stats_events(self): + def test_post_stats_events(self) -> None: """Test case for post_stats_events post stats events, this endpoint is meant for internal use only # noqa: E501 """ pass - def test_prepare_garbage_collection_commits(self): + def test_prepare_garbage_collection_commits(self) -> None: """Test case for prepare_garbage_collection_commits save lists of active commits for garbage collection # noqa: E501 """ pass - def test_prepare_garbage_collection_uncommitted(self): + def test_prepare_garbage_collection_uncommitted(self) -> None: """Test case for prepare_garbage_collection_uncommitted save repository uncommitted metadata for garbage collection # noqa: E501 """ pass - def test_restore_refs(self): + def test_restore_refs(self) -> None: """Test case for restore_refs Restore repository refs (tags, commits, branches) from object store. Deprecated: a new API will introduce long running operations # noqa: E501 """ pass - def test_set_garbage_collection_rules_preflight(self): + def test_set_garbage_collection_rules_preflight(self) -> None: """Test case for set_garbage_collection_rules_preflight """ pass - def test_set_repository_metadata(self): + def test_set_repository_metadata(self) -> None: """Test case for set_repository_metadata set repository metadata # noqa: E501 """ pass - def test_setup(self): + def test_setup(self) -> None: """Test case for setup setup lakeFS and create a first user # noqa: E501 """ pass - def test_setup_comm_prefs(self): + def test_setup_comm_prefs(self) -> None: """Test case for setup_comm_prefs setup communications preferences # noqa: E501 """ pass - def test_stage_object(self): + def test_stage_object(self) -> None: """Test case for stage_object stage an object's metadata for the given branch # noqa: E501 """ pass - def test_upload_object_preflight(self): + def test_upload_object_preflight(self) -> None: """Test case for upload_object_preflight """ diff --git a/clients/python/test/test_internal_delete_branch_protection_rule_request.py b/clients/python/test/test_internal_delete_branch_protection_rule_request.py index 6ffda20d0e5..2f450884ecd 100644 --- a/clients/python/test/test_internal_delete_branch_protection_rule_request.py +++ b/clients/python/test/test_internal_delete_branch_protection_rule_request.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.internal_delete_branch_protection_rule_request import InternalDeleteBranchProtectionRuleRequest # noqa: E501 -from lakefs_sdk.rest import ApiException class TestInternalDeleteBranchProtectionRuleRequest(unittest.TestCase): """InternalDeleteBranchProtectionRuleRequest unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> InternalDeleteBranchProtectionRuleRequest: """Test InternalDeleteBranchProtectionRuleRequest include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `InternalDeleteBranchProtectionRuleRequest` """ - model = lakefs_sdk.models.internal_delete_branch_protection_rule_request.InternalDeleteBranchProtectionRuleRequest() # noqa: E501 - if include_optional : + model = InternalDeleteBranchProtectionRuleRequest() # noqa: E501 + if include_optional: return InternalDeleteBranchProtectionRuleRequest( pattern = '' ) - else : + else: return InternalDeleteBranchProtectionRuleRequest( pattern = '', ) diff --git a/clients/python/test/test_login_config.py b/clients/python/test/test_login_config.py index 77f3c8a4cac..fe4a3db5b82 100644 --- a/clients/python/test/test_login_config.py +++ b/clients/python/test/test_login_config.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.login_config import LoginConfig # noqa: E501 -from lakefs_sdk.rest import ApiException class TestLoginConfig(unittest.TestCase): """LoginConfig unit test stubs""" @@ -29,29 +27,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> LoginConfig: """Test LoginConfig include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `LoginConfig` """ - model = lakefs_sdk.models.login_config.LoginConfig() # noqa: E501 - if include_optional : + model = LoginConfig() # noqa: E501 + if include_optional: return LoginConfig( - rbac = 'none', - username_ui_placeholder = '', - password_ui_placeholder = '', - login_url = '', - login_failed_message = '', - fallback_login_url = '', - fallback_login_label = '', + rbac = 'none', + username_ui_placeholder = '', + password_ui_placeholder = '', + login_url = '', + login_failed_message = '', + fallback_login_url = '', + fallback_login_label = '', login_cookie_names = [ '' - ], + ], logout_url = '' ) - else : + else: return LoginConfig( login_url = '', login_cookie_names = [ diff --git a/clients/python/test/test_login_information.py b/clients/python/test/test_login_information.py index a269b7e5b21..bc9a5c861ed 100644 --- a/clients/python/test/test_login_information.py +++ b/clients/python/test/test_login_information.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.login_information import LoginInformation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestLoginInformation(unittest.TestCase): """LoginInformation unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> LoginInformation: """Test LoginInformation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `LoginInformation` """ - model = lakefs_sdk.models.login_information.LoginInformation() # noqa: E501 - if include_optional : + model = LoginInformation() # noqa: E501 + if include_optional: return LoginInformation( - access_key_id = '', + access_key_id = '', secret_access_key = '' ) - else : + else: return LoginInformation( access_key_id = '', secret_access_key = '', diff --git a/clients/python/test/test_merge.py b/clients/python/test/test_merge.py index 206559b31f9..1a2564f6854 100644 --- a/clients/python/test/test_merge.py +++ b/clients/python/test/test_merge.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.merge import Merge # noqa: E501 -from lakefs_sdk.rest import ApiException class TestMerge(unittest.TestCase): """Merge unit test stubs""" @@ -29,26 +27,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Merge: """Test Merge include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Merge` """ - model = lakefs_sdk.models.merge.Merge() # noqa: E501 - if include_optional : + model = Merge() # noqa: E501 + if include_optional: return Merge( - message = '', + message = '', metadata = { 'key' : '' - }, - strategy = '', - force = True, - allow_empty = True, + }, + strategy = '', + force = True, + allow_empty = True, squash_merge = True ) - else : + else: return Merge( ) """ diff --git a/clients/python/test/test_merge_result.py b/clients/python/test/test_merge_result.py index 8d630949c03..a7445d00aea 100644 --- a/clients/python/test/test_merge_result.py +++ b/clients/python/test/test_merge_result.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.merge_result import MergeResult # noqa: E501 -from lakefs_sdk.rest import ApiException class TestMergeResult(unittest.TestCase): """MergeResult unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> MergeResult: """Test MergeResult include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `MergeResult` """ - model = lakefs_sdk.models.merge_result.MergeResult() # noqa: E501 - if include_optional : + model = MergeResult() # noqa: E501 + if include_optional: return MergeResult( reference = '' ) - else : + else: return MergeResult( reference = '', ) diff --git a/clients/python/test/test_meta_range_creation.py b/clients/python/test/test_meta_range_creation.py index 4183bc4881d..c94d928d0a2 100644 --- a/clients/python/test/test_meta_range_creation.py +++ b/clients/python/test/test_meta_range_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.meta_range_creation import MetaRangeCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestMetaRangeCreation(unittest.TestCase): """MetaRangeCreation unit test stubs""" @@ -29,15 +27,15 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> MetaRangeCreation: """Test MetaRangeCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `MetaRangeCreation` """ - model = lakefs_sdk.models.meta_range_creation.MetaRangeCreation() # noqa: E501 - if include_optional : + model = MetaRangeCreation() # noqa: E501 + if include_optional: return MetaRangeCreation( ranges = [ lakefs_sdk.models.range_metadata.RangeMetadata( @@ -48,7 +46,7 @@ def make_instance(self, include_optional): estimated_size = 56, ) ] ) - else : + else: return MetaRangeCreation( ranges = [ lakefs_sdk.models.range_metadata.RangeMetadata( diff --git a/clients/python/test/test_meta_range_creation_response.py b/clients/python/test/test_meta_range_creation_response.py index 3b756aa2981..d90efa0dbe7 100644 --- a/clients/python/test/test_meta_range_creation_response.py +++ b/clients/python/test/test_meta_range_creation_response.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.meta_range_creation_response import MetaRangeCreationResponse # noqa: E501 -from lakefs_sdk.rest import ApiException class TestMetaRangeCreationResponse(unittest.TestCase): """MetaRangeCreationResponse unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> MetaRangeCreationResponse: """Test MetaRangeCreationResponse include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `MetaRangeCreationResponse` """ - model = lakefs_sdk.models.meta_range_creation_response.MetaRangeCreationResponse() # noqa: E501 - if include_optional : + model = MetaRangeCreationResponse() # noqa: E501 + if include_optional: return MetaRangeCreationResponse( id = '' ) - else : + else: return MetaRangeCreationResponse( ) """ diff --git a/clients/python/test/test_metadata_api.py b/clients/python/test/test_metadata_api.py index be2aca69db9..0f0dc257701 100644 --- a/clients/python/test/test_metadata_api.py +++ b/clients/python/test/test_metadata_api.py @@ -15,28 +15,26 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.metadata_api import MetadataApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestMetadataApi(unittest.TestCase): """MetadataApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.metadata_api.MetadataApi() # noqa: E501 + def setUp(self) -> None: + self.api = MetadataApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_get_meta_range(self): + def test_get_meta_range(self) -> None: """Test case for get_meta_range return URI to a meta-range file # noqa: E501 """ pass - def test_get_range(self): + def test_get_range(self) -> None: """Test case for get_range return URI to a range file # noqa: E501 diff --git a/clients/python/test/test_object_copy_creation.py b/clients/python/test/test_object_copy_creation.py index 6e6959979d2..2aff71e5a6f 100644 --- a/clients/python/test/test_object_copy_creation.py +++ b/clients/python/test/test_object_copy_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.object_copy_creation import ObjectCopyCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestObjectCopyCreation(unittest.TestCase): """ObjectCopyCreation unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ObjectCopyCreation: """Test ObjectCopyCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ObjectCopyCreation` """ - model = lakefs_sdk.models.object_copy_creation.ObjectCopyCreation() # noqa: E501 - if include_optional : + model = ObjectCopyCreation() # noqa: E501 + if include_optional: return ObjectCopyCreation( - src_path = '', - src_ref = '', + src_path = '', + src_ref = '', force = True ) - else : + else: return ObjectCopyCreation( src_path = '', ) diff --git a/clients/python/test/test_object_error.py b/clients/python/test/test_object_error.py index 3f6a83c2635..5a333580e44 100644 --- a/clients/python/test/test_object_error.py +++ b/clients/python/test/test_object_error.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.object_error import ObjectError # noqa: E501 -from lakefs_sdk.rest import ApiException class TestObjectError(unittest.TestCase): """ObjectError unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ObjectError: """Test ObjectError include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ObjectError` """ - model = lakefs_sdk.models.object_error.ObjectError() # noqa: E501 - if include_optional : + model = ObjectError() # noqa: E501 + if include_optional: return ObjectError( - status_code = 56, - message = '', + status_code = 56, + message = '', path = '' ) - else : + else: return ObjectError( status_code = 56, message = '', diff --git a/clients/python/test/test_object_error_list.py b/clients/python/test/test_object_error_list.py index 82baab2df7d..c6bc0dd6246 100644 --- a/clients/python/test/test_object_error_list.py +++ b/clients/python/test/test_object_error_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.object_error_list import ObjectErrorList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestObjectErrorList(unittest.TestCase): """ObjectErrorList unit test stubs""" @@ -29,15 +27,15 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ObjectErrorList: """Test ObjectErrorList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ObjectErrorList` """ - model = lakefs_sdk.models.object_error_list.ObjectErrorList() # noqa: E501 - if include_optional : + model = ObjectErrorList() # noqa: E501 + if include_optional: return ObjectErrorList( errors = [ lakefs_sdk.models.object_error.ObjectError( @@ -46,7 +44,7 @@ def make_instance(self, include_optional): path = '', ) ] ) - else : + else: return ObjectErrorList( errors = [ lakefs_sdk.models.object_error.ObjectError( diff --git a/clients/python/test/test_object_stage_creation.py b/clients/python/test/test_object_stage_creation.py index a31ab0c1f2d..cac585a7da9 100644 --- a/clients/python/test/test_object_stage_creation.py +++ b/clients/python/test/test_object_stage_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.object_stage_creation import ObjectStageCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestObjectStageCreation(unittest.TestCase): """ObjectStageCreation unit test stubs""" @@ -29,27 +27,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ObjectStageCreation: """Test ObjectStageCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ObjectStageCreation` """ - model = lakefs_sdk.models.object_stage_creation.ObjectStageCreation() # noqa: E501 - if include_optional : + model = ObjectStageCreation() # noqa: E501 + if include_optional: return ObjectStageCreation( - physical_address = '', - checksum = '', - size_bytes = 56, - mtime = 56, + physical_address = '', + checksum = '', + size_bytes = 56, + mtime = 56, metadata = { 'key' : '' - }, - content_type = '', + }, + content_type = '', force = True ) - else : + else: return ObjectStageCreation( physical_address = '', checksum = '', diff --git a/clients/python/test/test_object_stats.py b/clients/python/test/test_object_stats.py index 72df2398b1c..3f41c810ce7 100644 --- a/clients/python/test/test_object_stats.py +++ b/clients/python/test/test_object_stats.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.object_stats import ObjectStats # noqa: E501 -from lakefs_sdk.rest import ApiException class TestObjectStats(unittest.TestCase): """ObjectStats unit test stubs""" @@ -29,29 +27,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ObjectStats: """Test ObjectStats include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ObjectStats` """ - model = lakefs_sdk.models.object_stats.ObjectStats() # noqa: E501 - if include_optional : + model = ObjectStats() # noqa: E501 + if include_optional: return ObjectStats( - path = '', - path_type = 'common_prefix', - physical_address = '', - physical_address_expiry = 56, - checksum = '', - size_bytes = 56, - mtime = 56, + path = '', + path_type = 'common_prefix', + physical_address = '', + physical_address_expiry = 56, + checksum = '', + size_bytes = 56, + mtime = 56, metadata = { 'key' : '' - }, + }, content_type = '' ) - else : + else: return ObjectStats( path = '', path_type = 'common_prefix', diff --git a/clients/python/test/test_object_stats_list.py b/clients/python/test/test_object_stats_list.py index 7f723fdd8f4..9849f4db763 100644 --- a/clients/python/test/test_object_stats_list.py +++ b/clients/python/test/test_object_stats_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.object_stats_list import ObjectStatsList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestObjectStatsList(unittest.TestCase): """ObjectStatsList unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ObjectStatsList: """Test ObjectStatsList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ObjectStatsList` """ - model = lakefs_sdk.models.object_stats_list.ObjectStatsList() # noqa: E501 - if include_optional : + model = ObjectStatsList() # noqa: E501 + if include_optional: return ObjectStatsList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, next_offset = '', results = 0, - max_per_page = 0, ), + max_per_page = 0, ), results = [ lakefs_sdk.models.object_stats.ObjectStats( path = '', @@ -59,7 +57,7 @@ def make_instance(self, include_optional): content_type = '', ) ] ) - else : + else: return ObjectStatsList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, diff --git a/clients/python/test/test_objects_api.py b/clients/python/test/test_objects_api.py index 4db012969cb..96d89799470 100644 --- a/clients/python/test/test_objects_api.py +++ b/clients/python/test/test_objects_api.py @@ -15,84 +15,82 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.objects_api import ObjectsApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestObjectsApi(unittest.TestCase): """ObjectsApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.objects_api.ObjectsApi() # noqa: E501 + def setUp(self) -> None: + self.api = ObjectsApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_copy_object(self): + def test_copy_object(self) -> None: """Test case for copy_object create a copy of an object # noqa: E501 """ pass - def test_delete_object(self): + def test_delete_object(self) -> None: """Test case for delete_object delete object. Missing objects will not return a NotFound error. # noqa: E501 """ pass - def test_delete_objects(self): + def test_delete_objects(self) -> None: """Test case for delete_objects delete objects. Missing objects will not return a NotFound error. # noqa: E501 """ pass - def test_get_object(self): + def test_get_object(self) -> None: """Test case for get_object get object content # noqa: E501 """ pass - def test_get_underlying_properties(self): + def test_get_underlying_properties(self) -> None: """Test case for get_underlying_properties get object properties on underlying storage # noqa: E501 """ pass - def test_head_object(self): + def test_head_object(self) -> None: """Test case for head_object check if object exists # noqa: E501 """ pass - def test_list_objects(self): + def test_list_objects(self) -> None: """Test case for list_objects list objects under a given prefix # noqa: E501 """ pass - def test_stat_object(self): + def test_stat_object(self) -> None: """Test case for stat_object get object metadata # noqa: E501 """ pass - def test_update_object_user_metadata(self): + def test_update_object_user_metadata(self) -> None: """Test case for update_object_user_metadata rewrite (all) object metadata # noqa: E501 """ pass - def test_upload_object(self): + def test_upload_object(self) -> None: """Test case for upload_object """ diff --git a/clients/python/test/test_pagination.py b/clients/python/test/test_pagination.py index 0053f45e5df..eda9b33e0bd 100644 --- a/clients/python/test/test_pagination.py +++ b/clients/python/test/test_pagination.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.pagination import Pagination # noqa: E501 -from lakefs_sdk.rest import ApiException class TestPagination(unittest.TestCase): """Pagination unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Pagination: """Test Pagination include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Pagination` """ - model = lakefs_sdk.models.pagination.Pagination() # noqa: E501 - if include_optional : + model = Pagination() # noqa: E501 + if include_optional: return Pagination( - has_more = True, - next_offset = '', - results = 0, + has_more = True, + next_offset = '', + results = 0, max_per_page = 0 ) - else : + else: return Pagination( has_more = True, next_offset = '', diff --git a/clients/python/test/test_path_list.py b/clients/python/test/test_path_list.py index 67138140df3..ca7710134d3 100644 --- a/clients/python/test/test_path_list.py +++ b/clients/python/test/test_path_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.path_list import PathList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestPathList(unittest.TestCase): """PathList unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> PathList: """Test PathList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PathList` """ - model = lakefs_sdk.models.path_list.PathList() # noqa: E501 - if include_optional : + model = PathList() # noqa: E501 + if include_optional: return PathList( paths = [ '' ] ) - else : + else: return PathList( paths = [ '' diff --git a/clients/python/test/test_policy.py b/clients/python/test/test_policy.py index 2f74adbbe05..1a2344af967 100644 --- a/clients/python/test/test_policy.py +++ b/clients/python/test/test_policy.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.policy import Policy # noqa: E501 -from lakefs_sdk.rest import ApiException class TestPolicy(unittest.TestCase): """Policy unit test stubs""" @@ -29,18 +27,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Policy: """Test Policy include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Policy` """ - model = lakefs_sdk.models.policy.Policy() # noqa: E501 - if include_optional : + model = Policy() # noqa: E501 + if include_optional: return Policy( - id = '', - creation_date = 56, + id = '', + creation_date = 56, statement = [ lakefs_sdk.models.statement.Statement( effect = 'allow', @@ -50,7 +48,7 @@ def make_instance(self, include_optional): ], ) ] ) - else : + else: return Policy( id = '', statement = [ diff --git a/clients/python/test/test_policy_list.py b/clients/python/test/test_policy_list.py index ecba7fd6f91..11713a14892 100644 --- a/clients/python/test/test_policy_list.py +++ b/clients/python/test/test_policy_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.policy_list import PolicyList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestPolicyList(unittest.TestCase): """PolicyList unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> PolicyList: """Test PolicyList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PolicyList` """ - model = lakefs_sdk.models.policy_list.PolicyList() # noqa: E501 - if include_optional : + model = PolicyList() # noqa: E501 + if include_optional: return PolicyList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, next_offset = '', results = 0, - max_per_page = 0, ), + max_per_page = 0, ), results = [ lakefs_sdk.models.policy.Policy( id = '', @@ -58,7 +56,7 @@ def make_instance(self, include_optional): ], ) ] ) - else : + else: return PolicyList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, diff --git a/clients/python/test/test_prepare_gc_uncommitted_request.py b/clients/python/test/test_prepare_gc_uncommitted_request.py index 9e09818412e..596f720baa8 100644 --- a/clients/python/test/test_prepare_gc_uncommitted_request.py +++ b/clients/python/test/test_prepare_gc_uncommitted_request.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.prepare_gc_uncommitted_request import PrepareGCUncommittedRequest # noqa: E501 -from lakefs_sdk.rest import ApiException class TestPrepareGCUncommittedRequest(unittest.TestCase): """PrepareGCUncommittedRequest unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> PrepareGCUncommittedRequest: """Test PrepareGCUncommittedRequest include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PrepareGCUncommittedRequest` """ - model = lakefs_sdk.models.prepare_gc_uncommitted_request.PrepareGCUncommittedRequest() # noqa: E501 - if include_optional : + model = PrepareGCUncommittedRequest() # noqa: E501 + if include_optional: return PrepareGCUncommittedRequest( continuation_token = '' ) - else : + else: return PrepareGCUncommittedRequest( ) """ diff --git a/clients/python/test/test_prepare_gc_uncommitted_response.py b/clients/python/test/test_prepare_gc_uncommitted_response.py index 5670cc90a29..8590e288071 100644 --- a/clients/python/test/test_prepare_gc_uncommitted_response.py +++ b/clients/python/test/test_prepare_gc_uncommitted_response.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.prepare_gc_uncommitted_response import PrepareGCUncommittedResponse # noqa: E501 -from lakefs_sdk.rest import ApiException class TestPrepareGCUncommittedResponse(unittest.TestCase): """PrepareGCUncommittedResponse unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> PrepareGCUncommittedResponse: """Test PrepareGCUncommittedResponse include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PrepareGCUncommittedResponse` """ - model = lakefs_sdk.models.prepare_gc_uncommitted_response.PrepareGCUncommittedResponse() # noqa: E501 - if include_optional : + model = PrepareGCUncommittedResponse() # noqa: E501 + if include_optional: return PrepareGCUncommittedResponse( - run_id = '', - gc_uncommitted_location = '', + run_id = '', + gc_uncommitted_location = '', continuation_token = '' ) - else : + else: return PrepareGCUncommittedResponse( run_id = '', gc_uncommitted_location = '', diff --git a/clients/python/test/test_presign_multipart_upload.py b/clients/python/test/test_presign_multipart_upload.py index 7de349a1fa5..bcbe724c1b9 100644 --- a/clients/python/test/test_presign_multipart_upload.py +++ b/clients/python/test/test_presign_multipart_upload.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.presign_multipart_upload import PresignMultipartUpload # noqa: E501 -from lakefs_sdk.rest import ApiException class TestPresignMultipartUpload(unittest.TestCase): """PresignMultipartUpload unit test stubs""" @@ -29,23 +27,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> PresignMultipartUpload: """Test PresignMultipartUpload include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PresignMultipartUpload` """ - model = lakefs_sdk.models.presign_multipart_upload.PresignMultipartUpload() # noqa: E501 - if include_optional : + model = PresignMultipartUpload() # noqa: E501 + if include_optional: return PresignMultipartUpload( - upload_id = '', - physical_address = '', + upload_id = '', + physical_address = '', presigned_urls = [ '' ] ) - else : + else: return PresignMultipartUpload( upload_id = '', physical_address = '', diff --git a/clients/python/test/test_pull_request.py b/clients/python/test/test_pull_request.py index 94e33a8f78a..58b8b68fb21 100644 --- a/clients/python/test/test_pull_request.py +++ b/clients/python/test/test_pull_request.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.pull_request import PullRequest # noqa: E501 -from lakefs_sdk.rest import ApiException class TestPullRequest(unittest.TestCase): """PullRequest unit test stubs""" @@ -29,28 +27,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> PullRequest: """Test PullRequest include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PullRequest` """ - model = lakefs_sdk.models.pull_request.PullRequest() # noqa: E501 - if include_optional : + model = PullRequest() # noqa: E501 + if include_optional: return PullRequest( - status = 'open', - title = '', - description = '', - id = '', - creation_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - author = '', - source_branch = '', - destination_branch = '', - merged_commit_id = '', + status = 'open', + title = '', + description = '', + id = '', + creation_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + author = '', + source_branch = '', + destination_branch = '', + merged_commit_id = '', closed_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') ) - else : + else: return PullRequest( status = 'open', title = '', diff --git a/clients/python/test/test_pull_request_basic.py b/clients/python/test/test_pull_request_basic.py index 79f09a2a0cb..10eacde7c6d 100644 --- a/clients/python/test/test_pull_request_basic.py +++ b/clients/python/test/test_pull_request_basic.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.pull_request_basic import PullRequestBasic # noqa: E501 -from lakefs_sdk.rest import ApiException class TestPullRequestBasic(unittest.TestCase): """PullRequestBasic unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> PullRequestBasic: """Test PullRequestBasic include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PullRequestBasic` """ - model = lakefs_sdk.models.pull_request_basic.PullRequestBasic() # noqa: E501 - if include_optional : + model = PullRequestBasic() # noqa: E501 + if include_optional: return PullRequestBasic( - status = 'open', - title = '', + status = 'open', + title = '', description = '' ) - else : + else: return PullRequestBasic( ) """ diff --git a/clients/python/test/test_pull_request_creation.py b/clients/python/test/test_pull_request_creation.py index 74112f88149..b249ba08672 100644 --- a/clients/python/test/test_pull_request_creation.py +++ b/clients/python/test/test_pull_request_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.pull_request_creation import PullRequestCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestPullRequestCreation(unittest.TestCase): """PullRequestCreation unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> PullRequestCreation: """Test PullRequestCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PullRequestCreation` """ - model = lakefs_sdk.models.pull_request_creation.PullRequestCreation() # noqa: E501 - if include_optional : + model = PullRequestCreation() # noqa: E501 + if include_optional: return PullRequestCreation( - title = '', - description = '', - source_branch = '', + title = '', + description = '', + source_branch = '', destination_branch = '' ) - else : + else: return PullRequestCreation( title = '', source_branch = '', diff --git a/clients/python/test/test_pull_request_creation_response.py b/clients/python/test/test_pull_request_creation_response.py index 3f4837e7a2a..1bdb0032dd4 100644 --- a/clients/python/test/test_pull_request_creation_response.py +++ b/clients/python/test/test_pull_request_creation_response.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.pull_request_creation_response import PullRequestCreationResponse # noqa: E501 -from lakefs_sdk.rest import ApiException class TestPullRequestCreationResponse(unittest.TestCase): """PullRequestCreationResponse unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> PullRequestCreationResponse: """Test PullRequestCreationResponse include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PullRequestCreationResponse` """ - model = lakefs_sdk.models.pull_request_creation_response.PullRequestCreationResponse() # noqa: E501 - if include_optional : + model = PullRequestCreationResponse() # noqa: E501 + if include_optional: return PullRequestCreationResponse( id = '' ) - else : + else: return PullRequestCreationResponse( id = '', ) diff --git a/clients/python/test/test_pull_requests_list.py b/clients/python/test/test_pull_requests_list.py index e0fd4feb5b1..3ff46e83c50 100644 --- a/clients/python/test/test_pull_requests_list.py +++ b/clients/python/test/test_pull_requests_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.pull_requests_list import PullRequestsList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestPullRequestsList(unittest.TestCase): """PullRequestsList unit test stubs""" @@ -29,26 +27,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> PullRequestsList: """Test PullRequestsList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `PullRequestsList` """ - model = lakefs_sdk.models.pull_requests_list.PullRequestsList() # noqa: E501 - if include_optional : + model = PullRequestsList() # noqa: E501 + if include_optional: return PullRequestsList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, next_offset = '', results = 0, - max_per_page = 0, ), + max_per_page = 0, ), results = [ null ] ) - else : + else: return PullRequestsList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, diff --git a/clients/python/test/test_pulls_api.py b/clients/python/test/test_pulls_api.py index 917fd67cea1..78d5c78b1f0 100644 --- a/clients/python/test/test_pulls_api.py +++ b/clients/python/test/test_pulls_api.py @@ -15,49 +15,47 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.pulls_api import PullsApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestPullsApi(unittest.TestCase): """PullsApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.pulls_api.PullsApi() # noqa: E501 + def setUp(self) -> None: + self.api = PullsApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_create_pull_request(self): + def test_create_pull_request(self) -> None: """Test case for create_pull_request create pull request # noqa: E501 """ pass - def test_get_pull_request(self): + def test_get_pull_request(self) -> None: """Test case for get_pull_request get pull request # noqa: E501 """ pass - def test_list_pull_requests(self): + def test_list_pull_requests(self) -> None: """Test case for list_pull_requests list pull requests # noqa: E501 """ pass - def test_merge_pull_request(self): + def test_merge_pull_request(self) -> None: """Test case for merge_pull_request merge pull request # noqa: E501 """ pass - def test_update_pull_request(self): + def test_update_pull_request(self) -> None: """Test case for update_pull_request update pull request # noqa: E501 diff --git a/clients/python/test/test_range_metadata.py b/clients/python/test/test_range_metadata.py index f63914a623a..37d4f7c473c 100644 --- a/clients/python/test/test_range_metadata.py +++ b/clients/python/test/test_range_metadata.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.range_metadata import RangeMetadata # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRangeMetadata(unittest.TestCase): """RangeMetadata unit test stubs""" @@ -29,23 +27,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> RangeMetadata: """Test RangeMetadata include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RangeMetadata` """ - model = lakefs_sdk.models.range_metadata.RangeMetadata() # noqa: E501 - if include_optional : + model = RangeMetadata() # noqa: E501 + if include_optional: return RangeMetadata( - id = '480e19972a6fbe98ab8e81ae5efdfd1a29037587e91244e87abd4adefffdb01c', - min_key = 'production/collections/some/file_1.parquet', - max_key = 'production/collections/some/file_8229.parquet', - count = 56, + id = '480e19972a6fbe98ab8e81ae5efdfd1a29037587e91244e87abd4adefffdb01c', + min_key = 'production/collections/some/file_1.parquet', + max_key = 'production/collections/some/file_8229.parquet', + count = 56, estimated_size = 56 ) - else : + else: return RangeMetadata( id = '480e19972a6fbe98ab8e81ae5efdfd1a29037587e91244e87abd4adefffdb01c', min_key = 'production/collections/some/file_1.parquet', diff --git a/clients/python/test/test_ref.py b/clients/python/test/test_ref.py index 71efcd298db..0cf4327d60e 100644 --- a/clients/python/test/test_ref.py +++ b/clients/python/test/test_ref.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.ref import Ref # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRef(unittest.TestCase): """Ref unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Ref: """Test Ref include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Ref` """ - model = lakefs_sdk.models.ref.Ref() # noqa: E501 - if include_optional : + model = Ref() # noqa: E501 + if include_optional: return Ref( - id = '', + id = '', commit_id = '' ) - else : + else: return Ref( id = '', commit_id = '', diff --git a/clients/python/test/test_ref_list.py b/clients/python/test/test_ref_list.py index 9cf7b23bada..0ce5ec933e3 100644 --- a/clients/python/test/test_ref_list.py +++ b/clients/python/test/test_ref_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.ref_list import RefList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRefList(unittest.TestCase): """RefList unit test stubs""" @@ -29,28 +27,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> RefList: """Test RefList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RefList` """ - model = lakefs_sdk.models.ref_list.RefList() # noqa: E501 - if include_optional : + model = RefList() # noqa: E501 + if include_optional: return RefList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, next_offset = '', results = 0, - max_per_page = 0, ), + max_per_page = 0, ), results = [ lakefs_sdk.models.ref.Ref( id = '', commit_id = '', ) ] ) - else : + else: return RefList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, diff --git a/clients/python/test/test_refs_api.py b/clients/python/test/test_refs_api.py index 8000145c4ea..3b1e92b371e 100644 --- a/clients/python/test/test_refs_api.py +++ b/clients/python/test/test_refs_api.py @@ -15,42 +15,40 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.refs_api import RefsApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRefsApi(unittest.TestCase): """RefsApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.refs_api.RefsApi() # noqa: E501 + def setUp(self) -> None: + self.api = RefsApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_diff_refs(self): + def test_diff_refs(self) -> None: """Test case for diff_refs diff references # noqa: E501 """ pass - def test_find_merge_base(self): + def test_find_merge_base(self) -> None: """Test case for find_merge_base find the merge base for 2 references # noqa: E501 """ pass - def test_log_commits(self): + def test_log_commits(self) -> None: """Test case for log_commits get commit log from ref. If both objects and prefixes are empty, return all commits. # noqa: E501 """ pass - def test_merge_into_branch(self): + def test_merge_into_branch(self) -> None: """Test case for merge_into_branch merge references # noqa: E501 diff --git a/clients/python/test/test_refs_dump.py b/clients/python/test/test_refs_dump.py index ebbba835cef..edb137f09c4 100644 --- a/clients/python/test/test_refs_dump.py +++ b/clients/python/test/test_refs_dump.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.refs_dump import RefsDump # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRefsDump(unittest.TestCase): """RefsDump unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> RefsDump: """Test RefsDump include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RefsDump` """ - model = lakefs_sdk.models.refs_dump.RefsDump() # noqa: E501 - if include_optional : + model = RefsDump() # noqa: E501 + if include_optional: return RefsDump( - commits_meta_range_id = '', - tags_meta_range_id = '', + commits_meta_range_id = '', + tags_meta_range_id = '', branches_meta_range_id = '' ) - else : + else: return RefsDump( commits_meta_range_id = '', tags_meta_range_id = '', diff --git a/clients/python/test/test_refs_restore.py b/clients/python/test/test_refs_restore.py index 3012307a1b5..40d01966b6e 100644 --- a/clients/python/test/test_refs_restore.py +++ b/clients/python/test/test_refs_restore.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.refs_restore import RefsRestore # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRefsRestore(unittest.TestCase): """RefsRestore unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> RefsRestore: """Test RefsRestore include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RefsRestore` """ - model = lakefs_sdk.models.refs_restore.RefsRestore() # noqa: E501 - if include_optional : + model = RefsRestore() # noqa: E501 + if include_optional: return RefsRestore( - commits_meta_range_id = '', - tags_meta_range_id = '', - branches_meta_range_id = '', + commits_meta_range_id = '', + tags_meta_range_id = '', + branches_meta_range_id = '', force = True ) - else : + else: return RefsRestore( commits_meta_range_id = '', tags_meta_range_id = '', diff --git a/clients/python/test/test_repositories_api.py b/clients/python/test/test_repositories_api.py index 59ffd7d53fc..77d68c0f0cc 100644 --- a/clients/python/test/test_repositories_api.py +++ b/clients/python/test/test_repositories_api.py @@ -15,110 +15,108 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.repositories_api import RepositoriesApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRepositoriesApi(unittest.TestCase): """RepositoriesApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.repositories_api.RepositoriesApi() # noqa: E501 + def setUp(self) -> None: + self.api = RepositoriesApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_create_repository(self): + def test_create_repository(self) -> None: """Test case for create_repository create repository # noqa: E501 """ pass - def test_delete_gc_rules(self): + def test_delete_gc_rules(self) -> None: """Test case for delete_gc_rules """ pass - def test_delete_repository(self): + def test_delete_repository(self) -> None: """Test case for delete_repository delete repository # noqa: E501 """ pass - def test_dump_status(self): + def test_dump_status(self) -> None: """Test case for dump_status Status of a repository dump task # noqa: E501 """ pass - def test_dump_submit(self): + def test_dump_submit(self) -> None: """Test case for dump_submit Backup the repository metadata (tags, commits, branches) and save the backup to the object store. # noqa: E501 """ pass - def test_get_branch_protection_rules(self): + def test_get_branch_protection_rules(self) -> None: """Test case for get_branch_protection_rules get branch protection rules # noqa: E501 """ pass - def test_get_gc_rules(self): + def test_get_gc_rules(self) -> None: """Test case for get_gc_rules get repository GC rules # noqa: E501 """ pass - def test_get_repository(self): + def test_get_repository(self) -> None: """Test case for get_repository get repository # noqa: E501 """ pass - def test_get_repository_metadata(self): + def test_get_repository_metadata(self) -> None: """Test case for get_repository_metadata get repository metadata # noqa: E501 """ pass - def test_list_repositories(self): + def test_list_repositories(self) -> None: """Test case for list_repositories list repositories # noqa: E501 """ pass - def test_restore_status(self): + def test_restore_status(self) -> None: """Test case for restore_status Status of a restore request # noqa: E501 """ pass - def test_restore_submit(self): + def test_restore_submit(self) -> None: """Test case for restore_submit Restore repository from a dump in the object store # noqa: E501 """ pass - def test_set_branch_protection_rules(self): + def test_set_branch_protection_rules(self) -> None: """Test case for set_branch_protection_rules """ pass - def test_set_gc_rules(self): + def test_set_gc_rules(self) -> None: """Test case for set_gc_rules """ diff --git a/clients/python/test/test_repository.py b/clients/python/test/test_repository.py index 34fc696a290..3d03a6c38bb 100644 --- a/clients/python/test/test_repository.py +++ b/clients/python/test/test_repository.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.repository import Repository # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRepository(unittest.TestCase): """Repository unit test stubs""" @@ -29,24 +27,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Repository: """Test Repository include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Repository` """ - model = lakefs_sdk.models.repository.Repository() # noqa: E501 - if include_optional : + model = Repository() # noqa: E501 + if include_optional: return Repository( - id = '', - creation_date = 56, - default_branch = '', - storage_id = '', - storage_namespace = '', + id = '', + creation_date = 56, + default_branch = '', + storage_id = '', + storage_namespace = '', read_only = True ) - else : + else: return Repository( id = '', creation_date = 56, diff --git a/clients/python/test/test_repository_creation.py b/clients/python/test/test_repository_creation.py index 4d69f26d3be..ca7751121dd 100644 --- a/clients/python/test/test_repository_creation.py +++ b/clients/python/test/test_repository_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.repository_creation import RepositoryCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRepositoryCreation(unittest.TestCase): """RepositoryCreation unit test stubs""" @@ -29,24 +27,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> RepositoryCreation: """Test RepositoryCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RepositoryCreation` """ - model = lakefs_sdk.models.repository_creation.RepositoryCreation() # noqa: E501 - if include_optional : + model = RepositoryCreation() # noqa: E501 + if include_optional: return RepositoryCreation( - name = 'wr1c2v7s6djuy1zmeto', - storage_id = '', - storage_namespace = 's3://example-bucket/', - default_branch = 'main', - sample_data = True, + name = 'wr1c2v7s6djuy1zmeto', + storage_id = '', + storage_namespace = 's3://example-bucket/', + default_branch = 'main', + sample_data = True, read_only = True ) - else : + else: return RepositoryCreation( name = 'wr1c2v7s6djuy1zmeto', storage_namespace = 's3://example-bucket/', diff --git a/clients/python/test/test_repository_dump_status.py b/clients/python/test/test_repository_dump_status.py index a38ce0a3e8c..36c39857561 100644 --- a/clients/python/test/test_repository_dump_status.py +++ b/clients/python/test/test_repository_dump_status.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.repository_dump_status import RepositoryDumpStatus # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRepositoryDumpStatus(unittest.TestCase): """RepositoryDumpStatus unit test stubs""" @@ -29,26 +27,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> RepositoryDumpStatus: """Test RepositoryDumpStatus include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RepositoryDumpStatus` """ - model = lakefs_sdk.models.repository_dump_status.RepositoryDumpStatus() # noqa: E501 - if include_optional : + model = RepositoryDumpStatus() # noqa: E501 + if include_optional: return RepositoryDumpStatus( - id = '', - done = True, - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - error = '', + id = '', + done = True, + update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + error = '', refs = lakefs_sdk.models.refs_dump.RefsDump( commits_meta_range_id = '', tags_meta_range_id = '', branches_meta_range_id = '', ) ) - else : + else: return RepositoryDumpStatus( id = '', done = True, diff --git a/clients/python/test/test_repository_list.py b/clients/python/test/test_repository_list.py index 6667a001ae7..afa6b01ee4c 100644 --- a/clients/python/test/test_repository_list.py +++ b/clients/python/test/test_repository_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.repository_list import RepositoryList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRepositoryList(unittest.TestCase): """RepositoryList unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> RepositoryList: """Test RepositoryList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RepositoryList` """ - model = lakefs_sdk.models.repository_list.RepositoryList() # noqa: E501 - if include_optional : + model = RepositoryList() # noqa: E501 + if include_optional: return RepositoryList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, next_offset = '', results = 0, - max_per_page = 0, ), + max_per_page = 0, ), results = [ lakefs_sdk.models.repository.Repository( id = '', @@ -54,7 +52,7 @@ def make_instance(self, include_optional): read_only = True, ) ] ) - else : + else: return RepositoryList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, diff --git a/clients/python/test/test_repository_metadata_keys.py b/clients/python/test/test_repository_metadata_keys.py index 55393ec97d3..fe1684a9380 100644 --- a/clients/python/test/test_repository_metadata_keys.py +++ b/clients/python/test/test_repository_metadata_keys.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.repository_metadata_keys import RepositoryMetadataKeys # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRepositoryMetadataKeys(unittest.TestCase): """RepositoryMetadataKeys unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> RepositoryMetadataKeys: """Test RepositoryMetadataKeys include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RepositoryMetadataKeys` """ - model = lakefs_sdk.models.repository_metadata_keys.RepositoryMetadataKeys() # noqa: E501 - if include_optional : + model = RepositoryMetadataKeys() # noqa: E501 + if include_optional: return RepositoryMetadataKeys( keys = [ '' ] ) - else : + else: return RepositoryMetadataKeys( keys = [ '' diff --git a/clients/python/test/test_repository_metadata_set.py b/clients/python/test/test_repository_metadata_set.py index 1508352547b..de29cd694a8 100644 --- a/clients/python/test/test_repository_metadata_set.py +++ b/clients/python/test/test_repository_metadata_set.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.repository_metadata_set import RepositoryMetadataSet # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRepositoryMetadataSet(unittest.TestCase): """RepositoryMetadataSet unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> RepositoryMetadataSet: """Test RepositoryMetadataSet include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RepositoryMetadataSet` """ - model = lakefs_sdk.models.repository_metadata_set.RepositoryMetadataSet() # noqa: E501 - if include_optional : + model = RepositoryMetadataSet() # noqa: E501 + if include_optional: return RepositoryMetadataSet( metadata = { 'key' : '' } ) - else : + else: return RepositoryMetadataSet( metadata = { 'key' : '' diff --git a/clients/python/test/test_repository_restore_status.py b/clients/python/test/test_repository_restore_status.py index 4d6fc3cbd7f..2deb4cdb312 100644 --- a/clients/python/test/test_repository_restore_status.py +++ b/clients/python/test/test_repository_restore_status.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.repository_restore_status import RepositoryRestoreStatus # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRepositoryRestoreStatus(unittest.TestCase): """RepositoryRestoreStatus unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> RepositoryRestoreStatus: """Test RepositoryRestoreStatus include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RepositoryRestoreStatus` """ - model = lakefs_sdk.models.repository_restore_status.RepositoryRestoreStatus() # noqa: E501 - if include_optional : + model = RepositoryRestoreStatus() # noqa: E501 + if include_optional: return RepositoryRestoreStatus( - id = '', - done = True, - update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + done = True, + update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), error = '' ) - else : + else: return RepositoryRestoreStatus( id = '', done = True, diff --git a/clients/python/test/test_reset_creation.py b/clients/python/test/test_reset_creation.py index b30e9191bf4..be1c7516d54 100644 --- a/clients/python/test/test_reset_creation.py +++ b/clients/python/test/test_reset_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.reset_creation import ResetCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestResetCreation(unittest.TestCase): """ResetCreation unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> ResetCreation: """Test ResetCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `ResetCreation` """ - model = lakefs_sdk.models.reset_creation.ResetCreation() # noqa: E501 - if include_optional : + model = ResetCreation() # noqa: E501 + if include_optional: return ResetCreation( - type = 'object', - path = '', + type = 'object', + path = '', force = True ) - else : + else: return ResetCreation( type = 'object', ) diff --git a/clients/python/test/test_revert_creation.py b/clients/python/test/test_revert_creation.py index 45447528598..8c28854aaea 100644 --- a/clients/python/test/test_revert_creation.py +++ b/clients/python/test/test_revert_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.revert_creation import RevertCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestRevertCreation(unittest.TestCase): """RevertCreation unit test stubs""" @@ -29,27 +27,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> RevertCreation: """Test RevertCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `RevertCreation` """ - model = lakefs_sdk.models.revert_creation.RevertCreation() # noqa: E501 - if include_optional : + model = RevertCreation() # noqa: E501 + if include_optional: return RevertCreation( - ref = '', + ref = '', commit_overrides = lakefs_sdk.models.commit_overrides.CommitOverrides( message = '', metadata = { 'key' : '' - }, ), - parent_number = 56, - force = True, + }, ), + parent_number = 56, + force = True, allow_empty = True ) - else : + else: return RevertCreation( ref = '', parent_number = 56, diff --git a/clients/python/test/test_setup.py b/clients/python/test/test_setup.py index 0519dd646b3..450ca0a9749 100644 --- a/clients/python/test/test_setup.py +++ b/clients/python/test/test_setup.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.setup import Setup # noqa: E501 -from lakefs_sdk.rest import ApiException class TestSetup(unittest.TestCase): """Setup unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Setup: """Test Setup include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Setup` """ - model = lakefs_sdk.models.setup.Setup() # noqa: E501 - if include_optional : + model = Setup() # noqa: E501 + if include_optional: return Setup( - username = '', + username = '', key = lakefs_sdk.models.access_key_credentials.AccessKeyCredentials( access_key_id = 'AKIAIOSFODNN7EXAMPLE', secret_access_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY', ) ) - else : + else: return Setup( username = '', ) diff --git a/clients/python/test/test_setup_state.py b/clients/python/test/test_setup_state.py index 80d8836570e..bcb865085de 100644 --- a/clients/python/test/test_setup_state.py +++ b/clients/python/test/test_setup_state.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.setup_state import SetupState # noqa: E501 -from lakefs_sdk.rest import ApiException class TestSetupState(unittest.TestCase): """SetupState unit test stubs""" @@ -29,18 +27,18 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> SetupState: """Test SetupState include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `SetupState` """ - model = lakefs_sdk.models.setup_state.SetupState() # noqa: E501 - if include_optional : + model = SetupState() # noqa: E501 + if include_optional: return SetupState( - state = 'initialized', - comm_prefs_missing = True, + state = 'initialized', + comm_prefs_missing = True, login_config = lakefs_sdk.models.login_config.LoginConfig( rbac = 'none', username_ui_placeholder = '', @@ -54,7 +52,7 @@ def make_instance(self, include_optional): ], logout_url = '', ) ) - else : + else: return SetupState( ) """ diff --git a/clients/python/test/test_staging_api.py b/clients/python/test/test_staging_api.py index 2d7585a8b0e..df9920779c7 100644 --- a/clients/python/test/test_staging_api.py +++ b/clients/python/test/test_staging_api.py @@ -15,28 +15,26 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.staging_api import StagingApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestStagingApi(unittest.TestCase): """StagingApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.staging_api.StagingApi() # noqa: E501 + def setUp(self) -> None: + self.api = StagingApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_get_physical_address(self): + def test_get_physical_address(self) -> None: """Test case for get_physical_address generate an address to which the client can upload an object # noqa: E501 """ pass - def test_link_physical_address(self): + def test_link_physical_address(self) -> None: """Test case for link_physical_address associate staging on this physical address with a path # noqa: E501 diff --git a/clients/python/test/test_staging_location.py b/clients/python/test/test_staging_location.py index 63171c6d938..af5b922e792 100644 --- a/clients/python/test/test_staging_location.py +++ b/clients/python/test/test_staging_location.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.staging_location import StagingLocation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestStagingLocation(unittest.TestCase): """StagingLocation unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> StagingLocation: """Test StagingLocation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `StagingLocation` """ - model = lakefs_sdk.models.staging_location.StagingLocation() # noqa: E501 - if include_optional : + model = StagingLocation() # noqa: E501 + if include_optional: return StagingLocation( - physical_address = '', - presigned_url = '', + physical_address = '', + presigned_url = '', presigned_url_expiry = 56 ) - else : + else: return StagingLocation( ) """ diff --git a/clients/python/test/test_staging_metadata.py b/clients/python/test/test_staging_metadata.py index 74b0a71c118..458207b3bf7 100644 --- a/clients/python/test/test_staging_metadata.py +++ b/clients/python/test/test_staging_metadata.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.staging_metadata import StagingMetadata # noqa: E501 -from lakefs_sdk.rest import ApiException class TestStagingMetadata(unittest.TestCase): """StagingMetadata unit test stubs""" @@ -29,30 +27,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> StagingMetadata: """Test StagingMetadata include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `StagingMetadata` """ - model = lakefs_sdk.models.staging_metadata.StagingMetadata() # noqa: E501 - if include_optional : + model = StagingMetadata() # noqa: E501 + if include_optional: return StagingMetadata( staging = lakefs_sdk.models.staging_location.StagingLocation( physical_address = '', presigned_url = '', - presigned_url_expiry = 56, ), - checksum = '', - size_bytes = 56, + presigned_url_expiry = 56, ), + checksum = '', + size_bytes = 56, user_metadata = { 'key' : '' - }, - content_type = '', - mtime = 56, + }, + content_type = '', + mtime = 56, force = True ) - else : + else: return StagingMetadata( staging = lakefs_sdk.models.staging_location.StagingLocation( physical_address = '', diff --git a/clients/python/test/test_statement.py b/clients/python/test/test_statement.py index 89f3027398c..c767fd8bfe2 100644 --- a/clients/python/test/test_statement.py +++ b/clients/python/test/test_statement.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.statement import Statement # noqa: E501 -from lakefs_sdk.rest import ApiException class TestStatement(unittest.TestCase): """Statement unit test stubs""" @@ -29,23 +27,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> Statement: """Test Statement include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `Statement` """ - model = lakefs_sdk.models.statement.Statement() # noqa: E501 - if include_optional : + model = Statement() # noqa: E501 + if include_optional: return Statement( - effect = 'allow', - resource = '', + effect = 'allow', + resource = '', action = [ '' ] ) - else : + else: return Statement( effect = 'allow', resource = '', diff --git a/clients/python/test/test_stats_event.py b/clients/python/test/test_stats_event.py index 42158d273a3..c21df0aa590 100644 --- a/clients/python/test/test_stats_event.py +++ b/clients/python/test/test_stats_event.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.stats_event import StatsEvent # noqa: E501 -from lakefs_sdk.rest import ApiException class TestStatsEvent(unittest.TestCase): """StatsEvent unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> StatsEvent: """Test StatsEvent include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `StatsEvent` """ - model = lakefs_sdk.models.stats_event.StatsEvent() # noqa: E501 - if include_optional : + model = StatsEvent() # noqa: E501 + if include_optional: return StatsEvent( - var_class = '', - name = '', + var_class = '', + name = '', count = 56 ) - else : + else: return StatsEvent( var_class = '', name = '', diff --git a/clients/python/test/test_stats_events_list.py b/clients/python/test/test_stats_events_list.py index a0f849da774..a3c07e79c66 100644 --- a/clients/python/test/test_stats_events_list.py +++ b/clients/python/test/test_stats_events_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.stats_events_list import StatsEventsList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestStatsEventsList(unittest.TestCase): """StatsEventsList unit test stubs""" @@ -29,15 +27,15 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> StatsEventsList: """Test StatsEventsList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `StatsEventsList` """ - model = lakefs_sdk.models.stats_events_list.StatsEventsList() # noqa: E501 - if include_optional : + model = StatsEventsList() # noqa: E501 + if include_optional: return StatsEventsList( events = [ lakefs_sdk.models.stats_event.StatsEvent( @@ -46,7 +44,7 @@ class = '', count = 56, ) ] ) - else : + else: return StatsEventsList( events = [ lakefs_sdk.models.stats_event.StatsEvent( diff --git a/clients/python/test/test_storage_config.py b/clients/python/test/test_storage_config.py index 95cc8887abf..206f152b898 100644 --- a/clients/python/test/test_storage_config.py +++ b/clients/python/test/test_storage_config.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.storage_config import StorageConfig # noqa: E501 -from lakefs_sdk.rest import ApiException class TestStorageConfig(unittest.TestCase): """StorageConfig unit test stubs""" @@ -29,29 +27,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> StorageConfig: """Test StorageConfig include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `StorageConfig` """ - model = lakefs_sdk.models.storage_config.StorageConfig() # noqa: E501 - if include_optional : + model = StorageConfig() # noqa: E501 + if include_optional: return StorageConfig( - blockstore_type = '', - blockstore_namespace_example = '', - blockstore_namespace_validity_regex = '', - default_namespace_prefix = '', - pre_sign_support = True, - pre_sign_support_ui = True, - import_support = True, - import_validity_regex = '', - pre_sign_multipart_upload = True, - blockstore_id = '', + blockstore_type = '', + blockstore_namespace_example = '', + blockstore_namespace_validity_regex = '', + default_namespace_prefix = '', + pre_sign_support = True, + pre_sign_support_ui = True, + import_support = True, + import_validity_regex = '', + pre_sign_multipart_upload = True, + blockstore_id = '', blockstore_description = '' ) - else : + else: return StorageConfig( blockstore_type = '', blockstore_namespace_example = '', diff --git a/clients/python/test/test_storage_uri.py b/clients/python/test/test_storage_uri.py index 4f82b771124..5e82439ff44 100644 --- a/clients/python/test/test_storage_uri.py +++ b/clients/python/test/test_storage_uri.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.storage_uri import StorageURI # noqa: E501 -from lakefs_sdk.rest import ApiException class TestStorageURI(unittest.TestCase): """StorageURI unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> StorageURI: """Test StorageURI include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `StorageURI` """ - model = lakefs_sdk.models.storage_uri.StorageURI() # noqa: E501 - if include_optional : + model = StorageURI() # noqa: E501 + if include_optional: return StorageURI( location = '' ) - else : + else: return StorageURI( location = '', ) diff --git a/clients/python/test/test_sts_auth_request.py b/clients/python/test/test_sts_auth_request.py index 3e2393357f7..0e5a0211eff 100644 --- a/clients/python/test/test_sts_auth_request.py +++ b/clients/python/test/test_sts_auth_request.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.sts_auth_request import StsAuthRequest # noqa: E501 -from lakefs_sdk.rest import ApiException class TestStsAuthRequest(unittest.TestCase): """StsAuthRequest unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> StsAuthRequest: """Test StsAuthRequest include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `StsAuthRequest` """ - model = lakefs_sdk.models.sts_auth_request.StsAuthRequest() # noqa: E501 - if include_optional : + model = StsAuthRequest() # noqa: E501 + if include_optional: return StsAuthRequest( - code = '', - state = '', - redirect_uri = '', + code = '', + state = '', + redirect_uri = '', ttl_seconds = 56 ) - else : + else: return StsAuthRequest( code = '', state = '', diff --git a/clients/python/test/test_tag_creation.py b/clients/python/test/test_tag_creation.py index 98d50b21129..d12606a6acd 100644 --- a/clients/python/test/test_tag_creation.py +++ b/clients/python/test/test_tag_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.tag_creation import TagCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestTagCreation(unittest.TestCase): """TagCreation unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> TagCreation: """Test TagCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TagCreation` """ - model = lakefs_sdk.models.tag_creation.TagCreation() # noqa: E501 - if include_optional : + model = TagCreation() # noqa: E501 + if include_optional: return TagCreation( - id = '', - ref = '', + id = '', + ref = '', force = True ) - else : + else: return TagCreation( id = '', ref = '', diff --git a/clients/python/test/test_tags_api.py b/clients/python/test/test_tags_api.py index 41f6286c01c..4d107b93b14 100644 --- a/clients/python/test/test_tags_api.py +++ b/clients/python/test/test_tags_api.py @@ -15,42 +15,40 @@ import unittest -import lakefs_sdk from lakefs_sdk.api.tags_api import TagsApi # noqa: E501 -from lakefs_sdk.rest import ApiException class TestTagsApi(unittest.TestCase): """TagsApi unit test stubs""" - def setUp(self): - self.api = lakefs_sdk.api.tags_api.TagsApi() # noqa: E501 + def setUp(self) -> None: + self.api = TagsApi() # noqa: E501 - def tearDown(self): + def tearDown(self) -> None: pass - def test_create_tag(self): + def test_create_tag(self) -> None: """Test case for create_tag create tag # noqa: E501 """ pass - def test_delete_tag(self): + def test_delete_tag(self) -> None: """Test case for delete_tag delete tag # noqa: E501 """ pass - def test_get_tag(self): + def test_get_tag(self) -> None: """Test case for get_tag get tag # noqa: E501 """ pass - def test_list_tags(self): + def test_list_tags(self) -> None: """Test case for list_tags list tags # noqa: E501 diff --git a/clients/python/test/test_task_info.py b/clients/python/test/test_task_info.py index 0f7202e6793..67b26f5832a 100644 --- a/clients/python/test/test_task_info.py +++ b/clients/python/test/test_task_info.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.task_info import TaskInfo # noqa: E501 -from lakefs_sdk.rest import ApiException class TestTaskInfo(unittest.TestCase): """TaskInfo unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> TaskInfo: """Test TaskInfo include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `TaskInfo` """ - model = lakefs_sdk.models.task_info.TaskInfo() # noqa: E501 - if include_optional : + model = TaskInfo() # noqa: E501 + if include_optional: return TaskInfo( id = '' ) - else : + else: return TaskInfo( id = '', ) diff --git a/clients/python/test/test_underlying_object_properties.py b/clients/python/test/test_underlying_object_properties.py index 84ea9592f98..600be043885 100644 --- a/clients/python/test/test_underlying_object_properties.py +++ b/clients/python/test/test_underlying_object_properties.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.underlying_object_properties import UnderlyingObjectProperties # noqa: E501 -from lakefs_sdk.rest import ApiException class TestUnderlyingObjectProperties(unittest.TestCase): """UnderlyingObjectProperties unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> UnderlyingObjectProperties: """Test UnderlyingObjectProperties include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UnderlyingObjectProperties` """ - model = lakefs_sdk.models.underlying_object_properties.UnderlyingObjectProperties() # noqa: E501 - if include_optional : + model = UnderlyingObjectProperties() # noqa: E501 + if include_optional: return UnderlyingObjectProperties( storage_class = '' ) - else : + else: return UnderlyingObjectProperties( ) """ diff --git a/clients/python/test/test_update_object_user_metadata.py b/clients/python/test/test_update_object_user_metadata.py index e219d9a4a8a..1fc8e3a51b0 100644 --- a/clients/python/test/test_update_object_user_metadata.py +++ b/clients/python/test/test_update_object_user_metadata.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.update_object_user_metadata import UpdateObjectUserMetadata # noqa: E501 -from lakefs_sdk.rest import ApiException class TestUpdateObjectUserMetadata(unittest.TestCase): """UpdateObjectUserMetadata unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> UpdateObjectUserMetadata: """Test UpdateObjectUserMetadata include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UpdateObjectUserMetadata` """ - model = lakefs_sdk.models.update_object_user_metadata.UpdateObjectUserMetadata() # noqa: E501 - if include_optional : + model = UpdateObjectUserMetadata() # noqa: E501 + if include_optional: return UpdateObjectUserMetadata( set = { 'key' : '' } ) - else : + else: return UpdateObjectUserMetadata( set = { 'key' : '' diff --git a/clients/python/test/test_update_token.py b/clients/python/test/test_update_token.py index 9898673d82c..e740d17d178 100644 --- a/clients/python/test/test_update_token.py +++ b/clients/python/test/test_update_token.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.update_token import UpdateToken # noqa: E501 -from lakefs_sdk.rest import ApiException class TestUpdateToken(unittest.TestCase): """UpdateToken unit test stubs""" @@ -29,19 +27,19 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> UpdateToken: """Test UpdateToken include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UpdateToken` """ - model = lakefs_sdk.models.update_token.UpdateToken() # noqa: E501 - if include_optional : + model = UpdateToken() # noqa: E501 + if include_optional: return UpdateToken( staging_token = '' ) - else : + else: return UpdateToken( staging_token = '', ) diff --git a/clients/python/test/test_upload_part.py b/clients/python/test/test_upload_part.py index 161cd6fa6e6..6bce7fc55ee 100644 --- a/clients/python/test/test_upload_part.py +++ b/clients/python/test/test_upload_part.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.upload_part import UploadPart # noqa: E501 -from lakefs_sdk.rest import ApiException class TestUploadPart(unittest.TestCase): """UploadPart unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> UploadPart: """Test UploadPart include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UploadPart` """ - model = lakefs_sdk.models.upload_part.UploadPart() # noqa: E501 - if include_optional : + model = UploadPart() # noqa: E501 + if include_optional: return UploadPart( - part_number = 56, + part_number = 56, etag = '' ) - else : + else: return UploadPart( part_number = 56, etag = '', diff --git a/clients/python/test/test_usage_report.py b/clients/python/test/test_usage_report.py index 8764e4c0f83..dbc03c1c0ad 100644 --- a/clients/python/test/test_usage_report.py +++ b/clients/python/test/test_usage_report.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.usage_report import UsageReport # noqa: E501 -from lakefs_sdk.rest import ApiException class TestUsageReport(unittest.TestCase): """UsageReport unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> UsageReport: """Test UsageReport include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UsageReport` """ - model = lakefs_sdk.models.usage_report.UsageReport() # noqa: E501 - if include_optional : + model = UsageReport() # noqa: E501 + if include_optional: return UsageReport( - year = 56, - month = 56, + year = 56, + month = 56, count = 56 ) - else : + else: return UsageReport( year = 56, month = 56, diff --git a/clients/python/test/test_user.py b/clients/python/test/test_user.py index 357c1ef61cc..8e897ca68a3 100644 --- a/clients/python/test/test_user.py +++ b/clients/python/test/test_user.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.user import User # noqa: E501 -from lakefs_sdk.rest import ApiException class TestUser(unittest.TestCase): """User unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> User: """Test User include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `User` """ - model = lakefs_sdk.models.user.User() # noqa: E501 - if include_optional : + model = User() # noqa: E501 + if include_optional: return User( - id = '', - creation_date = 56, - friendly_name = '', + id = '', + creation_date = 56, + friendly_name = '', email = '' ) - else : + else: return User( id = '', creation_date = 56, diff --git a/clients/python/test/test_user_creation.py b/clients/python/test/test_user_creation.py index 19fe543d3e8..a21763e62a0 100644 --- a/clients/python/test/test_user_creation.py +++ b/clients/python/test/test_user_creation.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.user_creation import UserCreation # noqa: E501 -from lakefs_sdk.rest import ApiException class TestUserCreation(unittest.TestCase): """UserCreation unit test stubs""" @@ -29,20 +27,20 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> UserCreation: """Test UserCreation include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UserCreation` """ - model = lakefs_sdk.models.user_creation.UserCreation() # noqa: E501 - if include_optional : + model = UserCreation() # noqa: E501 + if include_optional: return UserCreation( - id = '', + id = '', invite_user = True ) - else : + else: return UserCreation( id = '', ) diff --git a/clients/python/test/test_user_list.py b/clients/python/test/test_user_list.py index a7939e5bf84..c3ea56d9545 100644 --- a/clients/python/test/test_user_list.py +++ b/clients/python/test/test_user_list.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.user_list import UserList # noqa: E501 -from lakefs_sdk.rest import ApiException class TestUserList(unittest.TestCase): """UserList unit test stubs""" @@ -29,21 +27,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> UserList: """Test UserList include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `UserList` """ - model = lakefs_sdk.models.user_list.UserList() # noqa: E501 - if include_optional : + model = UserList() # noqa: E501 + if include_optional: return UserList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, next_offset = '', results = 0, - max_per_page = 0, ), + max_per_page = 0, ), results = [ lakefs_sdk.models.user.User( id = '', @@ -52,7 +50,7 @@ def make_instance(self, include_optional): email = '', ) ] ) - else : + else: return UserList( pagination = lakefs_sdk.models.pagination.Pagination( has_more = True, diff --git a/clients/python/test/test_version_config.py b/clients/python/test/test_version_config.py index 88bea88b7fe..8e7973064d3 100644 --- a/clients/python/test/test_version_config.py +++ b/clients/python/test/test_version_config.py @@ -16,9 +16,7 @@ import unittest import datetime -import lakefs_sdk from lakefs_sdk.models.version_config import VersionConfig # noqa: E501 -from lakefs_sdk.rest import ApiException class TestVersionConfig(unittest.TestCase): """VersionConfig unit test stubs""" @@ -29,22 +27,22 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional): + def make_instance(self, include_optional) -> VersionConfig: """Test VersionConfig include_option is a boolean, when False only required params are included, when True both required and optional params are included """ # uncomment below to create an instance of `VersionConfig` """ - model = lakefs_sdk.models.version_config.VersionConfig() # noqa: E501 - if include_optional : + model = VersionConfig() # noqa: E501 + if include_optional: return VersionConfig( - version = '', - latest_version = '', - upgrade_recommended = True, + version = '', + latest_version = '', + upgrade_recommended = True, upgrade_url = '' ) - else : + else: return VersionConfig( ) """