Skip to content

Commit

Permalink
6880 import api location docs (#6886)
Browse files Browse the repository at this point in the history
* Explain the import destination behaviour for objects and prefixes

* gen docs

* Fix last comment
  • Loading branch information
itaiad200 authored Nov 5, 2023
1 parent f8b95c5 commit 700216d
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 30 deletions.
7 changes: 5 additions & 2 deletions api/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1250,11 +1250,14 @@ components:
description: Path type, can either be 'common_prefix' or 'object'
path:
type: string
description: A source location to import path or to a single object. Must match the lakeFS installation blockstore type.
description: A source location to a 'common_prefix' or to a single object. Must match the lakeFS installation blockstore type.
example: s3://my-bucket/production/collections/
destination:
type: string
description: Destination for the imported objects on the branch
description: |
Destination for the imported objects on the branch. Must be a relative path to the branch.
If the type is an 'object', the destination is the exact object name under the branch.
If the type is a 'common_prefix', the destination is the prefix under the branch.
example: collections/

ImportCreation:
Expand Down
9 changes: 6 additions & 3 deletions clients/java-legacy/api/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/java-legacy/docs/ImportLocation.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions clients/java/api/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/java/docs/ImportLocation.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/python-legacy/docs/ImportLocation.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions clients/python-legacy/lakefs_client/model/import_location.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/python/docs/ImportLocation.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/python/lakefs_sdk/models/import_location.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions docs/assets/js/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1250,11 +1250,14 @@ components:
description: Path type, can either be 'common_prefix' or 'object'
path:
type: string
description: A source location to import path or to a single object. Must match the lakeFS installation blockstore type.
description: A source location to a 'common_prefix' or to a single object. Must match the lakeFS installation blockstore type.
example: s3://my-bucket/production/collections/
destination:
type: string
description: Destination for the imported objects on the branch
description: |
Destination for the imported objects on the branch. Must be a relative path to the branch.
If the type is an 'object', the destination is the exact object name under the branch.
If the type is a 'common_prefix', the destination is the prefix under the branch.
example: collections/

ImportCreation:
Expand Down

0 comments on commit 700216d

Please sign in to comment.