-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python SDK LakeFSClient generated properties per API (#6296)
* Python SDK genrate code for LakeFSClient - property per API Each API will have `<name>_api` property as part of the LakeFSClient. For backward compatibility all current properties, without `_api` were added but will be deprecated * use properties to deprecate old members
- Loading branch information
Showing
6 changed files
with
296 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,7 +112,7 @@ tools: ## Install tools | |
client-python: api/swagger.yml ## Generate SDK for Python client | ||
# remove the build folder as it also holds lakefs_client folder which keeps because we skip it during find | ||
rm -rf clients/python/build; cd clients/python && \ | ||
find . -depth -name lakefs_client -prune -o ! \( -name client.py -or -name Gemfile -or -name Gemfile.lock -or -name _config.yml -or -name .openapi-generator-ignore -or -name templates -or -name setup.mustache \) -delete | ||
find . -depth -name lakefs_client -prune -o ! \( -name Gemfile -or -name Gemfile.lock -or -name _config.yml -or -name .openapi-generator-ignore -or -name templates -or -name setup.mustache -or -name client.mustache \) -delete | ||
$(OPENAPI_GENERATOR) generate \ | ||
-i /mnt/$< \ | ||
-g python \ | ||
|
@@ -121,6 +121,7 @@ client-python: api/swagger.yml ## Generate SDK for Python client | |
--http-user-agent "lakefs-python-sdk/$(PACKAGE_VERSION)" \ | ||
--git-user-id treeverse --git-repo-id lakeFS \ | ||
--additional-properties=infoName=Treeverse,[email protected],packageName=lakefs_client,packageVersion=$(PACKAGE_VERSION),projectName=lakefs-client,packageUrl=https://github.com/treeverse/lakeFS/tree/master/clients/python \ | ||
-c /mnt/clients/python-codegen-config.yaml \ | ||
-o /mnt/clients/python | ||
|
||
client-java: api/swagger.yml ## Generate SDK for Java (and Scala) client | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
files: | ||
client.mustache: | ||
templateType: SupportingFiles | ||
folder: lakefs_client | ||
destinationFilename: client.py |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.