├── .github ├── labeler.yml ├── release.yml └── workflows │ ├── java.yml │ ├── pr-title.yml │ ├── python.yml │ ├── rust.yml │ └── spec.yml ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── java ├── .apache-client-ignore ├── .mvn │ └── wrapper │ │ └── maven-wrapper.properties ├── Makefile ├── checkstyle-suppressions.xml ├── checkstyle.xml ├── lance-namespace-adapter │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── lancedb │ │ └── lance │ │ └── namespace │ │ └── adapter │ │ ├── ClientToServerResponse.java │ │ ├── LanceNamespaceAdapter.java │ │ ├── NamespaceController.java │ │ ├── ServerToClientRequest.java │ │ ├── TableController.java │ │ └── TransactionController.java ├── lance-namespace-apache-client │ ├── README.md │ ├── api │ │ └── openapi.yaml │ ├── docs │ │ ├── AlterTransactionAction.md │ │ ├── AlterTransactionRequest.md │ │ ├── AlterTransactionResponse.md │ │ ├── AlterTransactionSetProperty.md │ │ ├── AlterTransactionSetStatus.md │ │ ├── AlterTransactionUnsetProperty.md │ │ ├── CreateNamespaceRequest.md │ │ ├── CreateNamespaceResponse.md │ │ ├── DeregisterTableRequest.md │ │ ├── DeregisterTableResponse.md │ │ ├── DropNamespaceRequest.md │ │ ├── DropNamespaceResponse.md │ │ ├── DropTableRequest.md │ │ ├── DropTableResponse.md │ │ ├── ErrorResponse.md │ │ ├── GetNamespaceRequest.md │ │ ├── GetNamespaceResponse.md │ │ ├── GetTableRequest.md │ │ ├── GetTableResponse.md │ │ ├── GetTransactionRequest.md │ │ ├── GetTransactionResponse.md │ │ ├── ListNamespacesRequest.md │ │ ├── ListNamespacesResponse.md │ │ ├── NamespaceApi.md │ │ ├── NamespaceExistsRequest.md │ │ ├── NamespaceExistsResponse.md │ │ ├── RegisterTableRequest.md │ │ ├── RegisterTableResponse.md │ │ ├── SetPropertyMode.md │ │ ├── TableApi.md │ │ ├── TableExistsRequest.md │ │ ├── TableExistsResponse.md │ │ ├── TransactionApi.md │ │ ├── TransactionStatus.md │ │ └── UnsetPropertyMode.md │ ├── pom.xml │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── lancedb │ │ └── lance │ │ └── namespace │ │ ├── client │ │ └── apache │ │ │ ├── ApiClient.java │ │ │ ├── ApiException.java │ │ │ ├── BaseApi.java │ │ │ ├── Configuration.java │ │ │ ├── JavaTimeFormatter.java │ │ │ ├── Pair.java │ │ │ ├── RFC3339DateFormat.java │ │ │ ├── ServerConfiguration.java │ │ │ ├── ServerVariable.java │ │ │ ├── StringUtil.java │ │ │ ├── api │ │ │ ├── NamespaceApi.java │ │ │ ├── TableApi.java │ │ │ └── TransactionApi.java │ │ │ └── auth │ │ │ ├── ApiKeyAuth.java │ │ │ ├── Authentication.java │ │ │ ├── HttpBasicAuth.java │ │ │ └── HttpBearerAuth.java │ │ └── model │ │ ├── AlterTransactionAction.java │ │ ├── AlterTransactionRequest.java │ │ ├── AlterTransactionResponse.java │ │ ├── AlterTransactionSetProperty.java │ │ ├── AlterTransactionSetStatus.java │ │ ├── AlterTransactionUnsetProperty.java │ │ ├── CreateNamespaceRequest.java │ │ ├── CreateNamespaceResponse.java │ │ ├── DeregisterTableRequest.java │ │ ├── DeregisterTableResponse.java │ │ ├── DropNamespaceRequest.java │ │ ├── DropNamespaceResponse.java │ │ ├── DropTableRequest.java │ │ ├── DropTableResponse.java │ │ ├── ErrorResponse.java │ │ ├── GetNamespaceRequest.java │ │ ├── GetNamespaceResponse.java │ │ ├── GetTableRequest.java │ │ ├── GetTableResponse.java │ │ ├── GetTransactionRequest.java │ │ ├── GetTransactionResponse.java │ │ ├── ListNamespacesRequest.java │ │ ├── ListNamespacesResponse.java │ │ ├── NamespaceExistsRequest.java │ │ ├── NamespaceExistsResponse.java │ │ ├── RegisterTableRequest.java │ │ ├── RegisterTableResponse.java │ │ ├── SetPropertyMode.java │ │ ├── TableExistsRequest.java │ │ ├── TableExistsResponse.java │ │ ├── TransactionStatus.java │ │ └── UnsetPropertyMode.java ├── lance-namespace-core │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── lancedb │ │ └── lance │ │ └── namespace │ │ ├── LanceNamespace.java │ │ ├── LanceNamespaceException.java │ │ └── LanceRestNamespace.java ├── lance-namespace-springboot-server │ ├── README.md │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── lancedb │ │ └── lance │ │ └── namespace │ │ └── server │ │ └── springboot │ │ ├── api │ │ ├── ApiUtil.java │ │ ├── NamespaceApi.java │ │ ├── TableApi.java │ │ └── TransactionApi.java │ │ └── model │ │ ├── AlterTransactionAction.java │ │ ├── AlterTransactionRequest.java │ │ ├── AlterTransactionResponse.java │ │ ├── AlterTransactionSetProperty.java │ │ ├── AlterTransactionSetStatus.java │ │ ├── AlterTransactionUnsetProperty.java │ │ ├── CreateNamespaceRequest.java │ │ ├── CreateNamespaceResponse.java │ │ ├── DeregisterTableRequest.java │ │ ├── DeregisterTableResponse.java │ │ ├── DropNamespaceRequest.java │ │ ├── DropNamespaceResponse.java │ │ ├── DropTableRequest.java │ │ ├── DropTableResponse.java │ │ ├── ErrorResponse.java │ │ ├── GetNamespaceRequest.java │ │ ├── GetNamespaceResponse.java │ │ ├── GetTableRequest.java │ │ ├── GetTableResponse.java │ │ ├── GetTransactionRequest.java │ │ ├── GetTransactionResponse.java │ │ ├── ListNamespacesRequest.java │ │ ├── ListNamespacesResponse.java │ │ ├── NamespaceExistsRequest.java │ │ ├── NamespaceExistsResponse.java │ │ ├── RegisterTableRequest.java │ │ ├── RegisterTableResponse.java │ │ ├── SetPropertyMode.java │ │ ├── TableExistsRequest.java │ │ ├── TableExistsResponse.java │ │ ├── TransactionStatus.java │ │ └── UnsetPropertyMode.java ├── mvnw └── pom.xml ├── python ├── Makefile ├── lance_namespace_urllib3_client │ ├── .openapi-generator-ignore │ ├── README.md │ ├── docs │ │ ├── AlterTransactionAction.md │ │ ├── AlterTransactionRequest.md │ │ ├── AlterTransactionResponse.md │ │ ├── AlterTransactionSetProperty.md │ │ ├── AlterTransactionSetStatus.md │ │ ├── AlterTransactionUnsetProperty.md │ │ ├── CreateNamespaceRequest.md │ │ ├── CreateNamespaceResponse.md │ │ ├── DeregisterTableRequest.md │ │ ├── DeregisterTableResponse.md │ │ ├── DropNamespaceRequest.md │ │ ├── DropNamespaceResponse.md │ │ ├── DropTableRequest.md │ │ ├── DropTableResponse.md │ │ ├── ErrorResponse.md │ │ ├── GetNamespaceRequest.md │ │ ├── GetNamespaceResponse.md │ │ ├── GetTableRequest.md │ │ ├── GetTableResponse.md │ │ ├── GetTransactionRequest.md │ │ ├── GetTransactionResponse.md │ │ ├── ListNamespacesRequest.md │ │ ├── ListNamespacesResponse.md │ │ ├── NamespaceApi.md │ │ ├── NamespaceExistsRequest.md │ │ ├── NamespaceExistsResponse.md │ │ ├── RegisterTableRequest.md │ │ ├── RegisterTableResponse.md │ │ ├── SetPropertyMode.md │ │ ├── TableApi.md │ │ ├── TableExistsRequest.md │ │ ├── TableExistsResponse.md │ │ ├── TransactionApi.md │ │ ├── TransactionStatus.md │ │ └── UnsetPropertyMode.md │ ├── lance_namespace_urllib3_client │ │ ├── __init__.py │ │ ├── api │ │ │ ├── __init__.py │ │ │ ├── namespace_api.py │ │ │ ├── table_api.py │ │ │ └── transaction_api.py │ │ ├── api_client.py │ │ ├── api_response.py │ │ ├── configuration.py │ │ ├── exceptions.py │ │ ├── models │ │ │ ├── __init__.py │ │ │ ├── alter_transaction_action.py │ │ │ ├── alter_transaction_request.py │ │ │ ├── alter_transaction_response.py │ │ │ ├── alter_transaction_set_property.py │ │ │ ├── alter_transaction_set_status.py │ │ │ ├── alter_transaction_unset_property.py │ │ │ ├── create_namespace_request.py │ │ │ ├── create_namespace_response.py │ │ │ ├── deregister_table_request.py │ │ │ ├── deregister_table_response.py │ │ │ ├── drop_namespace_request.py │ │ │ ├── drop_namespace_response.py │ │ │ ├── drop_table_request.py │ │ │ ├── drop_table_response.py │ │ │ ├── error_response.py │ │ │ ├── get_namespace_request.py │ │ │ ├── get_namespace_response.py │ │ │ ├── get_table_request.py │ │ │ ├── get_table_response.py │ │ │ ├── get_transaction_request.py │ │ │ ├── get_transaction_response.py │ │ │ ├── list_namespaces_request.py │ │ │ ├── list_namespaces_response.py │ │ │ ├── namespace_exists_request.py │ │ │ ├── namespace_exists_response.py │ │ │ ├── register_table_request.py │ │ │ ├── register_table_response.py │ │ │ ├── set_property_mode.py │ │ │ ├── table_exists_request.py │ │ │ ├── table_exists_response.py │ │ │ ├── transaction_status.py │ │ │ └── unset_property_mode.py │ │ ├── py.typed │ │ └── rest.py │ ├── poetry.lock │ ├── pyproject.toml │ └── test │ │ ├── __init__.py │ │ ├── test_alter_transaction_action.py │ │ ├── test_alter_transaction_request.py │ │ ├── test_alter_transaction_response.py │ │ ├── test_alter_transaction_set_property.py │ │ ├── test_alter_transaction_set_status.py │ │ ├── test_alter_transaction_unset_property.py │ │ ├── test_create_namespace_request.py │ │ ├── test_create_namespace_response.py │ │ ├── test_deregister_table_request.py │ │ ├── test_deregister_table_response.py │ │ ├── test_drop_namespace_request.py │ │ ├── test_drop_namespace_response.py │ │ ├── test_drop_table_request.py │ │ ├── test_drop_table_response.py │ │ ├── test_error_response.py │ │ ├── test_get_namespace_request.py │ │ ├── test_get_namespace_response.py │ │ ├── test_get_table_request.py │ │ ├── test_get_table_response.py │ │ ├── test_get_transaction_request.py │ │ ├── test_get_transaction_response.py │ │ ├── test_list_namespaces_request.py │ │ ├── test_list_namespaces_response.py │ │ ├── test_namespace_api.py │ │ ├── test_namespace_exists_request.py │ │ ├── test_namespace_exists_response.py │ │ ├── test_register_table_request.py │ │ ├── test_register_table_response.py │ │ ├── test_set_property_mode.py │ │ ├── test_table_api.py │ │ ├── test_table_exists_request.py │ │ ├── test_table_exists_response.py │ │ ├── test_transaction_api.py │ │ ├── test_transaction_status.py │ │ └── test_unset_property_mode.py └── requirements.txt ├── requirements.txt ├── rust ├── Cargo.lock ├── Cargo.toml ├── Makefile └── lance-namespace-reqwest-client │ ├── Cargo.toml │ ├── README.md │ ├── docs │ ├── AlterTransactionAction.md │ ├── AlterTransactionRequest.md │ ├── AlterTransactionResponse.md │ ├── AlterTransactionSetProperty.md │ ├── AlterTransactionSetStatus.md │ ├── AlterTransactionUnsetProperty.md │ ├── CreateNamespaceRequest.md │ ├── CreateNamespaceResponse.md │ ├── DeregisterTableRequest.md │ ├── DeregisterTableResponse.md │ ├── DropNamespaceRequest.md │ ├── DropNamespaceResponse.md │ ├── DropTableRequest.md │ ├── DropTableResponse.md │ ├── ErrorResponse.md │ ├── GetNamespaceRequest.md │ ├── GetNamespaceResponse.md │ ├── GetTableRequest.md │ ├── GetTableResponse.md │ ├── GetTransactionRequest.md │ ├── GetTransactionResponse.md │ ├── ListNamespacesRequest.md │ ├── ListNamespacesResponse.md │ ├── NamespaceApi.md │ ├── NamespaceExistsRequest.md │ ├── NamespaceExistsResponse.md │ ├── RegisterTableRequest.md │ ├── RegisterTableResponse.md │ ├── SetPropertyMode.md │ ├── TableApi.md │ ├── TableExistsRequest.md │ ├── TableExistsResponse.md │ ├── TransactionApi.md │ ├── TransactionStatus.md │ └── UnsetPropertyMode.md │ └── src │ ├── apis │ ├── configuration.rs │ ├── mod.rs │ ├── namespace_api.rs │ ├── table_api.rs │ └── transaction_api.rs │ ├── lib.rs │ └── models │ ├── alter_transaction_action.rs │ ├── alter_transaction_request.rs │ ├── alter_transaction_response.rs │ ├── alter_transaction_set_property.rs │ ├── alter_transaction_set_status.rs │ ├── alter_transaction_unset_property.rs │ ├── create_namespace_request.rs │ ├── create_namespace_response.rs │ ├── deregister_table_request.rs │ ├── deregister_table_response.rs │ ├── drop_namespace_request.rs │ ├── drop_namespace_response.rs │ ├── drop_table_request.rs │ ├── drop_table_response.rs │ ├── error_response.rs │ ├── get_namespace_request.rs │ ├── get_namespace_response.rs │ ├── get_table_request.rs │ ├── get_table_response.rs │ ├── get_transaction_request.rs │ ├── get_transaction_response.rs │ ├── list_namespaces_request.rs │ ├── list_namespaces_response.rs │ ├── mod.rs │ ├── namespace_exists_request.rs │ ├── namespace_exists_response.rs │ ├── register_table_request.rs │ ├── register_table_response.rs │ ├── set_property_mode.rs │ ├── table_exists_request.rs │ ├── table_exists_response.rs │ ├── transaction_status.rs │ └── unset_property_mode.rs └── spec ├── impls ├── dir.md ├── hive.md └── rest.md ├── layout.png ├── rest.yaml └── spec.md /.github/labeler.yml: -------------------------------------------------------------------------------- 1 | # Licensed under the Apache License, Version 2.0 (the "License"); 2 | # you may not use this file except in compliance with the License. 3 | # You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | version: 1 14 | appendOnly: true 15 | # Labels are applied based on conventional commits standard 16 | # https://www.conventionalcommits.org/en/v1.0.0/ 17 | # These labels are later used in release notes. See .github/release.yml 18 | labels: 19 | # If the PR title has an ! before the : it will be considered a breaking change 20 | # For example, `feat!: add new feature` will be considered a breaking change 21 | - label: breaking-change 22 | title: "^[^:]+!:.*" 23 | - label: breaking-change 24 | body: "BREAKING CHANGE" 25 | - label: enhancement 26 | title: "^(feat|spec)(\\(.+\\))?!?:.*" 27 | - label: bug 28 | title: "^fix(\\(.+\\))?!?:.*" 29 | - label: documentation 30 | title: "^docs(\\(.+\\))?!?:.*" 31 | - label: performance 32 | title: "^perf(\\(.+\\))?!?:.*" 33 | - label: ci 34 | title: "^ci(\\(.+\\))?!?:.*" 35 | - label: chore 36 | title: "^(chore|test|build|style)(\\(.+\\))?!?:.*" 37 | - label: java 38 | files: 39 | - "java\\/.*" 40 | - label: python 41 | files: 42 | - "python\\/.*" 43 | - label: rust 44 | files: 45 | - "rust\\/.*" 46 | - label: spec 47 | files: 48 | - "spec\\/.*" -------------------------------------------------------------------------------- /.github/release.yml: -------------------------------------------------------------------------------- 1 | # Licensed under the Apache License, Version 2.0 (the "License"); 2 | # you may not use this file except in compliance with the License. 3 | # You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | changelog: 14 | exclude: 15 | labels: 16 | - ci 17 | - chore 18 | categories: 19 | - title: Breaking Changes 🛠 20 | labels: 21 | - breaking-change 22 | - title: New Features 🎉 23 | labels: 24 | - enhancement 25 | - title: Bug Fixes 🐛 26 | labels: 27 | - bug 28 | - title: Documentation 📚 29 | labels: 30 | - documentation 31 | - title: Performance Improvements 🚀 32 | labels: 33 | - performance 34 | - title: Other Changes 35 | labels: 36 | - "*" 37 | -------------------------------------------------------------------------------- /.github/workflows/spec.yml: -------------------------------------------------------------------------------- 1 | # Licensed under the Apache License, Version 2.0 (the "License"); 2 | # you may not use this file except in compliance with the License. 3 | # You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | name: Spec 14 | 15 | on: 16 | push: 17 | branches: 18 | - main 19 | pull_request: 20 | types: 21 | - opened 22 | - synchronize 23 | - ready_for_review 24 | - reopened 25 | 26 | concurrency: 27 | group: ${{ github.workflow }}-${{ github.ref }} 28 | cancel-in-progress: ${{ github.event_name == 'pull_request' }} 29 | 30 | jobs: 31 | check-spec-codegen: 32 | runs-on: ubuntu-24.04 33 | timeout-minutes: 60 34 | steps: 35 | - name: Checkout repo 36 | uses: actions/checkout@v4 37 | - name: Set up Python 38 | uses: actions/setup-python@v5 39 | with: 40 | python-version: 3.11 # Ray does not support 3.12 yet. 41 | cache: 'pip' 42 | - name: Set up Java 43 | uses: actions/setup-java@v4 44 | with: 45 | distribution: temurin 46 | java-version: 11 47 | cache: "maven" 48 | - name: Install openapi-generator 49 | run: pip install -r requirements.txt 50 | - name: Codegen 51 | run: | 52 | make clean 53 | make gen 54 | - name: Check no difference in codegen 55 | run: | 56 | output=$(git diff -- . ':(exclude)python/lance_namespace_urllib3_client/poetry.lock') 57 | if [ -z "$output" ]; then 58 | echo "There is no difference in codegen" 59 | else 60 | echo "Detected difference in codegen" 61 | echo "$output" 62 | exit 1 63 | fi 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Licensed under the Apache License, Version 2.0 (the "License"); 2 | # you may not use this file except in compliance with the License. 3 | # You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | # Prerequisites 14 | *.d 15 | 16 | # Compiled Object files 17 | *.slo 18 | *.lo 19 | *.o 20 | *.obj 21 | 22 | # Precompiled Headers 23 | *.gch 24 | *.pch 25 | 26 | # Compiled Dynamic libraries 27 | *.so 28 | *.dylib 29 | *.dll 30 | 31 | # Fortran module files 32 | *.mod 33 | *.smod 34 | 35 | # Compiled Static libraries 36 | *.lai 37 | *.la 38 | *.a 39 | *.lib 40 | 41 | # Executables 42 | *.exe 43 | *.out 44 | *.app 45 | 46 | # Tracing files 47 | trace-*.json 48 | 49 | **/*~ 50 | **/__pycache__ 51 | build/ 52 | dist/ 53 | *.egg-info/ 54 | .python-version 55 | 56 | .idea 57 | cmake-build-* 58 | .vscode 59 | .DS_Store 60 | 61 | python/lance/_*.cpp 62 | 63 | bin/ 64 | 65 | 66 | *.parquet 67 | *.parq 68 | 69 | python/thirdparty/arrow/ 70 | python/wheels 71 | python/benchmark_data 72 | 73 | logs 74 | *.ckpt 75 | 76 | docs/_build 77 | docs/api/python 78 | 79 | **/.ipynb_checkpoints/ 80 | docs/notebooks 81 | 82 | notebooks/sift 83 | notebooks/image_data/data 84 | benchmarks/sift/sift 85 | benchmarks/sift/sift.lance 86 | benchmarks/sift/lance_ivf*.csv 87 | **/sift.tar.gz 88 | 89 | wheelhouse 90 | 91 | # pandas testing 92 | .hypothesis 93 | 94 | 95 | **/df.json 96 | 97 | # Rust 98 | target 99 | **/sccache.log 100 | 101 | # c++ lsp 102 | .ccls-cache/ 103 | 104 | python/venv 105 | test_data/venv 106 | 107 | **/*.profraw 108 | *.lance 109 | 110 | # Environments 111 | .env 112 | .venv 113 | env/ 114 | venv/ 115 | ENV/ 116 | env.bak/ 117 | venv.bak/ -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # Licensed under the Apache License, Version 2.0 (the "License"); 2 | # you may not use this file except in compliance with the License. 3 | # You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | lint: 14 | openapi-spec-validator --errors all spec/rest.yaml 15 | 16 | clean-rust: 17 | cd rust; make clean 18 | 19 | gen-rust: 20 | cd rust; make gen 21 | 22 | build-rust: 23 | cd rust; make build 24 | 25 | clean-python: 26 | cd python; make clean 27 | 28 | gen-python: 29 | cd python; make gen 30 | 31 | build-python: 32 | cd python; make build 33 | 34 | clean-java: 35 | cd java; make clean 36 | 37 | gen-java: 38 | cd java; make gen 39 | 40 | build-java: 41 | cd java; make build 42 | 43 | clean: clean-rust clean-python clean-java 44 | 45 | gen: lint gen-rust gen-python gen-java 46 | 47 | build: build-rust build-python build-java 48 | -------------------------------------------------------------------------------- /java/.apache-client-ignore: -------------------------------------------------------------------------------- 1 | **build.gradle 2 | **.travis.yml 3 | **build.sbt 4 | **git_push.sh 5 | **gradle.properties 6 | **gradlew 7 | **gradlew.bat 8 | **settings.gradle 9 | **.gitignore 10 | **/gradle/** 11 | **/.github/** 12 | **/src/test/** -------------------------------------------------------------------------------- /java/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | wrapperVersion=3.3.2 18 | distributionType=only-script 19 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip 20 | -------------------------------------------------------------------------------- /java/checkstyle-suppressions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /java/lance-namespace-adapter/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 4.0.0 7 | 8 | 9 | com.lancedb 10 | lance-namespace-root 11 | 0.0.1 12 | ../pom.xml 13 | 14 | 15 | lance-namespace-adapter 16 | ${project.artifactId} 17 | Lance Namespace server adapter 18 | jar 19 | 20 | 21 | 22 | com.lancedb 23 | lance-namespace-core 24 | ${lance-namespace.version} 25 | 26 | 27 | com.lancedb 28 | lance-namespace-springboot-server 29 | ${lance-namespace.version} 30 | 31 | 32 | org.springframework.boot 33 | spring-boot-starter-web 34 | 35 | 36 | org.springframework.boot 37 | spring-boot-starter-test 38 | test 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /java/lance-namespace-adapter/src/main/java/com/lancedb/lance/namespace/adapter/LanceNamespaceAdapter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.adapter; 15 | 16 | import com.lancedb.lance.namespace.LanceNamespace; 17 | 18 | import org.springframework.boot.SpringApplication; 19 | import org.springframework.boot.autoconfigure.SpringBootApplication; 20 | import org.springframework.context.annotation.Bean; 21 | import org.springframework.context.annotation.ComponentScan; 22 | 23 | /** 24 | * Bootstrap class for Lance Namespace Adapter. This class starts the Spring Boot application and 25 | * configures component scanning to include both the adapter and server-core components. 26 | */ 27 | @SpringBootApplication 28 | @ComponentScan( 29 | basePackages = {"com.lancedb.lance.namespace.adapter", "com.lancedb.lance.namespace.server"}) 30 | public class LanceNamespaceAdapter { 31 | 32 | /** 33 | * Main method to start the Lance Namespace Server. 34 | * 35 | * @param args command line arguments 36 | */ 37 | public static void main(String[] args) { 38 | SpringApplication.run(LanceNamespaceAdapter.class, args); 39 | } 40 | 41 | /** 42 | * Creates and configures the LanceNamespace bean. This bean will be used by the controllers to 43 | * interact with the Lance Namespace implementation. 44 | * 45 | * @return configured LanceNamespace implementation 46 | */ 47 | @Bean 48 | public LanceNamespace lanceNamespace() { 49 | // TODO: Configure this using some setting 50 | throw new UnsupportedOperationException("Not implemented yet"); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /java/lance-namespace-adapter/src/main/java/com/lancedb/lance/namespace/adapter/TransactionController.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.adapter; 15 | 16 | import com.lancedb.lance.namespace.LanceNamespace; 17 | import com.lancedb.lance.namespace.server.springboot.api.TransactionApi; 18 | import com.lancedb.lance.namespace.server.springboot.model.AlterTransactionRequest; 19 | import com.lancedb.lance.namespace.server.springboot.model.AlterTransactionResponse; 20 | import com.lancedb.lance.namespace.server.springboot.model.GetTransactionRequest; 21 | import com.lancedb.lance.namespace.server.springboot.model.GetTransactionResponse; 22 | 23 | import org.springframework.http.ResponseEntity; 24 | import org.springframework.stereotype.Controller; 25 | 26 | @Controller 27 | public class TransactionController implements TransactionApi { 28 | 29 | private final LanceNamespace delegate; 30 | 31 | public TransactionController(LanceNamespace delegate) { 32 | this.delegate = delegate; 33 | } 34 | 35 | @Override 36 | public ResponseEntity getTransaction(GetTransactionRequest request) { 37 | return ResponseEntity.ok( 38 | ClientToServerResponse.getTransaction( 39 | delegate.getTransaction(ServerToClientRequest.getTransaction(request)))); 40 | } 41 | 42 | @Override 43 | public ResponseEntity alterTransaction( 44 | AlterTransactionRequest request) { 45 | return ResponseEntity.ok( 46 | ClientToServerResponse.alterTransaction( 47 | delegate.alterTransaction(ServerToClientRequest.alterTransaction(request)))); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/AlterTransactionAction.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AlterTransactionAction 4 | 5 | A single action that could be performed to alter a transaction. This action holds the model definition for all types of specific actions models, this is to minimize difference and compatibility issue across codegen in different languages. When used, only one of the actions should be non-null for each action. If you would like to perform multiple actions, set a list of actions in the AlterTransactionRequest. 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**setStatusAction** | [**AlterTransactionSetStatus**](AlterTransactionSetStatus.md) | | [optional] | 12 | |**setPropertyAction** | [**AlterTransactionSetProperty**](AlterTransactionSetProperty.md) | | [optional] | 13 | |**unsetPropertyAction** | [**AlterTransactionUnsetProperty**](AlterTransactionUnsetProperty.md) | | [optional] | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/AlterTransactionRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AlterTransactionRequest 4 | 5 | Alter a transaction with a list of actions. The server should either succeed and apply all actions, or fail and apply no action. 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**actions** | [**List<AlterTransactionAction>**](AlterTransactionAction.md) | | | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/AlterTransactionResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AlterTransactionResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**id** | **String** | | | 11 | |**status** | **TransactionStatus** | | | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/AlterTransactionSetProperty.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AlterTransactionSetProperty 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**key** | **String** | | [optional] | 11 | |**value** | **String** | | [optional] | 12 | |**mode** | **SetPropertyMode** | | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/AlterTransactionSetStatus.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AlterTransactionSetStatus 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**status** | **TransactionStatus** | | [optional] | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/AlterTransactionUnsetProperty.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AlterTransactionUnsetProperty 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**key** | **String** | | [optional] | 11 | |**mode** | **UnsetPropertyMode** | | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/CreateNamespaceRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CreateNamespaceRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | | 11 | |**parent** | **List<String>** | | [optional] | 12 | |**mode** | [**ModeEnum**](#ModeEnum) | | | 13 | |**options** | **Map<String, String>** | | [optional] | 14 | 15 | 16 | 17 | ## Enum: ModeEnum 18 | 19 | | Name | Value | 20 | |---- | -----| 21 | | CREATE | "CREATE" | 22 | | EXIST_OK | "EXIST_OK" | 23 | | OVERWRITE | "OVERWRITE" | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/CreateNamespaceResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CreateNamespaceResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | | 11 | |**parent** | **List<String>** | | [optional] | 12 | |**properties** | **Map<String, String>** | | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/DeregisterTableRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DeregisterTableRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | | 11 | |**namespace** | **List<String>** | | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/DeregisterTableResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DeregisterTableResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | [optional] | 11 | |**namespace** | **List<String>** | | [optional] | 12 | |**location** | **String** | | [optional] | 13 | |**properties** | **Map<String, String>** | | [optional] | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/DropNamespaceRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DropNamespaceRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | | 11 | |**parent** | **List<String>** | | [optional] | 12 | |**mode** | [**ModeEnum**](#ModeEnum) | The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. - FAIL (default): the server must return 400 indicating the namespace to drop does not exist. - SKIP: the server must return 204 indicating the drop operation has succeeded. | [optional] | 13 | |**behavior** | [**BehaviorEnum**](#BehaviorEnum) | The behavior for dropping a namespace. - RESTRICT (default): the namespace should not contain any table or child namespace when drop is initiated. If tables are found, the server should return error and not drop the namespace. - CASCADE: all tables and child namespaces in the namespace are dropped before the namespace is dropped. | [optional] | 14 | 15 | 16 | 17 | ## Enum: ModeEnum 18 | 19 | | Name | Value | 20 | |---- | -----| 21 | | SKIP | "SKIP" | 22 | | FAIL | "FAIL" | 23 | 24 | 25 | 26 | ## Enum: BehaviorEnum 27 | 28 | | Name | Value | 29 | |---- | -----| 30 | | RESTRICT | "RESTRICT" | 31 | | CASCADE | "CASCADE" | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/DropNamespaceResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DropNamespaceResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | [optional] | 11 | |**parent** | **List<String>** | | [optional] | 12 | |**properties** | **Map<String, String>** | | [optional] | 13 | |**transactionId** | **String** | If present, indicating the operation is long running and should be tracked using GetTransaction | [optional] | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/DropTableRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DropTableRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | | 11 | |**namespace** | **List<String>** | | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/DropTableResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DropTableResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | [optional] | 11 | |**namespace** | **List<String>** | | [optional] | 12 | |**location** | **String** | | [optional] | 13 | |**properties** | **Map<String, String>** | | [optional] | 14 | |**transactionId** | **String** | | [optional] | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/ErrorResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ErrorResponse 4 | 5 | JSON error response model based on [RFC-7807](https://datatracker.ietf.org/doc/html/rfc7807) 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**type** | **String** | a URI identifier that categorizes the error | | 12 | |**title** | **String** | a brief, human-readable message about the error | [optional] | 13 | |**status** | **Integer** | HTTP response code, (if present) it must match the actual HTTP code returned by the service | [optional] | 14 | |**detail** | **String** | a human-readable explanation of the error | [optional] | 15 | |**instance** | **String** | a URI that identifies the specific occurrence of the error | [optional] | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/GetNamespaceRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetNamespaceRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | | 11 | |**parent** | **List<String>** | | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/GetNamespaceResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetNamespaceResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | | 11 | |**parent** | **List<String>** | | [optional] | 12 | |**properties** | **Map<String, String>** | Properties stored on the namespace, if supported by the server. If the server does not support namespace properties, it should return null for this field. If namespace properties are supported, but none are set, it should return an empty object. | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/GetTableRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetTableRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | | 11 | |**namespace** | **List<String>** | | | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/GetTableResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetTableResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | | 11 | |**namespace** | **List<String>** | | | 12 | |**location** | **String** | | | 13 | |**properties** | **Map<String, String>** | | [optional] | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/GetTransactionRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetTransactionRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**id** | **String** | | | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/GetTransactionResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetTransactionResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**id** | **String** | | | 11 | |**status** | **TransactionStatus** | | | 12 | |**properties** | **Map<String, String>** | | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/ListNamespacesRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ListNamespacesRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**parent** | **List<String>** | | [optional] | 11 | |**pageToken** | **String** | An opaque token that allows pagination for list APIs (e.g. ListNamespaces). For an initial client request for a list API, if the server cannot return all items in one response, or if there are more items than the `pageSize` specified in the client request, the server must return a `nextPageToken` in the response indicating there are more results available. After the initial request, the value of `nextPageToken` from each response must be used by the client as the `pageToken` parameter value for the next request. Clients must interpret either `null`, missing value or empty string value of `nextPageToken` from a server response as the end of the listing results. | [optional] | 12 | |**pageSize** | **Integer** | An inclusive upper bound of the number of results that a client will receive. | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/ListNamespacesResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ListNamespacesResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**namespaces** | **Set<String>** | | | 11 | |**nextPageToken** | **String** | An opaque token that allows pagination for list APIs (e.g. ListNamespaces). For an initial client request for a list API, if the server cannot return all items in one response, or if there are more items than the `pageSize` specified in the client request, the server must return a `nextPageToken` in the response indicating there are more results available. After the initial request, the value of `nextPageToken` from each response must be used by the client as the `pageToken` parameter value for the next request. Clients must interpret either `null`, missing value or empty string value of `nextPageToken` from a server response as the end of the listing results. | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/NamespaceExistsRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # NamespaceExistsRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | | 11 | |**parent** | **List<String>** | | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/NamespaceExistsResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # NamespaceExistsResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**exists** | **Boolean** | | | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/RegisterTableRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # RegisterTableRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | | 11 | |**namespace** | **List<String>** | | | 12 | |**location** | **String** | | | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/RegisterTableResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # RegisterTableResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | | 11 | |**namespace** | **List<String>** | | | 12 | |**location** | **String** | | | 13 | |**properties** | **Map<String, String>** | | [optional] | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/SetPropertyMode.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SetPropertyMode 4 | 5 | ## Enum 6 | 7 | 8 | * `OVERWRITE` (value: `"OVERWRITE"`) 9 | 10 | * `FAIL` (value: `"FAIL"`) 11 | 12 | * `SKIP` (value: `"SKIP"`) 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/TableExistsRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TableExistsRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**name** | **String** | | | 11 | |**namespace** | **List<String>** | | | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/TableExistsResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TableExistsResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**exists** | **Boolean** | | | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/TransactionStatus.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TransactionStatus 4 | 5 | ## Enum 6 | 7 | 8 | * `QUEUED` (value: `"QUEUED"`) 9 | 10 | * `RUNNING` (value: `"RUNNING"`) 11 | 12 | * `SUCCEEDED` (value: `"SUCCEEDED"`) 13 | 14 | * `FAILED` (value: `"FAILED"`) 15 | 16 | * `CANCELED` (value: `"CANCELED"`) 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/docs/UnsetPropertyMode.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # UnsetPropertyMode 4 | 5 | ## Enum 6 | 7 | 8 | * `SKIP` (value: `"SKIP"`) 9 | 10 | * `FAIL` (value: `"FAIL"`) 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/src/main/java/com/lancedb/lance/namespace/client/apache/Configuration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.client.apache; 15 | 16 | @javax.annotation.Generated( 17 | value = "org.openapitools.codegen.languages.JavaClientCodegen", 18 | comments = "Generator version: 7.12.0") 19 | public class Configuration { 20 | public static final String VERSION = "0.0.1"; 21 | 22 | private static volatile ApiClient defaultApiClient = new ApiClient(); 23 | 24 | /** 25 | * Get the default API client, which would be used when creating API instances without providing 26 | * an API client. 27 | * 28 | * @return Default API client 29 | */ 30 | public static ApiClient getDefaultApiClient() { 31 | return defaultApiClient; 32 | } 33 | 34 | /** 35 | * Set the default API client, which would be used when creating API instances without providing 36 | * an API client. 37 | * 38 | * @param apiClient API client 39 | */ 40 | public static void setDefaultApiClient(ApiClient apiClient) { 41 | defaultApiClient = apiClient; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/src/main/java/com/lancedb/lance/namespace/client/apache/Pair.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.client.apache; 15 | 16 | @javax.annotation.Generated( 17 | value = "org.openapitools.codegen.languages.JavaClientCodegen", 18 | comments = "Generator version: 7.12.0") 19 | public class Pair { 20 | private String name = ""; 21 | private String value = ""; 22 | 23 | public Pair(String name, String value) { 24 | setName(name); 25 | setValue(value); 26 | } 27 | 28 | private void setName(String name) { 29 | if (!isValidString(name)) { 30 | return; 31 | } 32 | 33 | this.name = name; 34 | } 35 | 36 | private void setValue(String value) { 37 | if (!isValidString(value)) { 38 | return; 39 | } 40 | 41 | this.value = value; 42 | } 43 | 44 | public String getName() { 45 | return this.name; 46 | } 47 | 48 | public String getValue() { 49 | return this.value; 50 | } 51 | 52 | private boolean isValidString(String arg) { 53 | if (arg == null) { 54 | return false; 55 | } 56 | 57 | return true; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/src/main/java/com/lancedb/lance/namespace/client/apache/RFC3339DateFormat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.client.apache; 15 | 16 | import com.fasterxml.jackson.databind.util.StdDateFormat; 17 | 18 | import java.text.DateFormat; 19 | import java.text.DecimalFormat; 20 | import java.text.FieldPosition; 21 | import java.text.ParsePosition; 22 | import java.util.Date; 23 | import java.util.GregorianCalendar; 24 | import java.util.TimeZone; 25 | 26 | @javax.annotation.Generated( 27 | value = "org.openapitools.codegen.languages.JavaClientCodegen", 28 | comments = "Generator version: 7.12.0") 29 | public class RFC3339DateFormat extends DateFormat { 30 | private static final long serialVersionUID = 1L; 31 | private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC"); 32 | 33 | private final StdDateFormat fmt = 34 | new StdDateFormat().withTimeZone(TIMEZONE_Z).withColonInTimeZone(true); 35 | 36 | public RFC3339DateFormat() { 37 | this.calendar = new GregorianCalendar(); 38 | this.numberFormat = new DecimalFormat(); 39 | } 40 | 41 | @Override 42 | public Date parse(String source) { 43 | return parse(source, new ParsePosition(0)); 44 | } 45 | 46 | @Override 47 | public Date parse(String source, ParsePosition pos) { 48 | return fmt.parse(source, pos); 49 | } 50 | 51 | @Override 52 | public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { 53 | return fmt.format(date, toAppendTo, fieldPosition); 54 | } 55 | 56 | @Override 57 | public Object clone() { 58 | return super.clone(); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/src/main/java/com/lancedb/lance/namespace/client/apache/ServerVariable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.client.apache; 15 | 16 | import java.util.HashSet; 17 | 18 | /** Representing a Server Variable for server URL template substitution. */ 19 | @javax.annotation.Generated( 20 | value = "org.openapitools.codegen.languages.JavaClientCodegen", 21 | comments = "Generator version: 7.12.0") 22 | public class ServerVariable { 23 | public String description; 24 | public String defaultValue; 25 | public HashSet enumValues = null; 26 | 27 | /** 28 | * @param description A description for the server variable. 29 | * @param defaultValue The default value to use for substitution. 30 | * @param enumValues An enumeration of string values to be used if the substitution options are 31 | * from a limited set. 32 | */ 33 | public ServerVariable(String description, String defaultValue, HashSet enumValues) { 34 | this.description = description; 35 | this.defaultValue = defaultValue; 36 | this.enumValues = enumValues; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/src/main/java/com/lancedb/lance/namespace/client/apache/auth/ApiKeyAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.client.apache.auth; 15 | 16 | import com.lancedb.lance.namespace.client.apache.Pair; 17 | 18 | import java.util.List; 19 | import java.util.Map; 20 | 21 | @javax.annotation.Generated( 22 | value = "org.openapitools.codegen.languages.JavaClientCodegen", 23 | comments = "Generator version: 7.12.0") 24 | public class ApiKeyAuth implements Authentication { 25 | private final String location; 26 | private final String paramName; 27 | 28 | private String apiKey; 29 | private String apiKeyPrefix; 30 | 31 | public ApiKeyAuth(String location, String paramName) { 32 | this.location = location; 33 | this.paramName = paramName; 34 | } 35 | 36 | public String getLocation() { 37 | return location; 38 | } 39 | 40 | public String getParamName() { 41 | return paramName; 42 | } 43 | 44 | public String getApiKey() { 45 | return apiKey; 46 | } 47 | 48 | public void setApiKey(String apiKey) { 49 | this.apiKey = apiKey; 50 | } 51 | 52 | public String getApiKeyPrefix() { 53 | return apiKeyPrefix; 54 | } 55 | 56 | public void setApiKeyPrefix(String apiKeyPrefix) { 57 | this.apiKeyPrefix = apiKeyPrefix; 58 | } 59 | 60 | @Override 61 | public void applyToParams( 62 | List queryParams, Map headerParams, Map cookieParams) { 63 | if (apiKey == null) { 64 | return; 65 | } 66 | String value; 67 | if (apiKeyPrefix != null) { 68 | value = apiKeyPrefix + " " + apiKey; 69 | } else { 70 | value = apiKey; 71 | } 72 | if ("query".equals(location)) { 73 | queryParams.add(new Pair(paramName, value)); 74 | } else if ("header".equals(location)) { 75 | headerParams.put(paramName, value); 76 | } else if ("cookie".equals(location)) { 77 | cookieParams.put(paramName, value); 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/src/main/java/com/lancedb/lance/namespace/client/apache/auth/Authentication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.client.apache.auth; 15 | 16 | import com.lancedb.lance.namespace.client.apache.Pair; 17 | 18 | import java.util.List; 19 | import java.util.Map; 20 | 21 | public interface Authentication { 22 | /** 23 | * Apply authentication settings to header and query params. 24 | * 25 | * @param queryParams List of query parameters 26 | * @param headerParams Map of header parameters 27 | * @param cookieParams Map of cookie parameters 28 | */ 29 | void applyToParams( 30 | List queryParams, Map headerParams, Map cookieParams); 31 | } 32 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/src/main/java/com/lancedb/lance/namespace/client/apache/auth/HttpBasicAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.client.apache.auth; 15 | 16 | import com.lancedb.lance.namespace.client.apache.Pair; 17 | 18 | import java.nio.charset.StandardCharsets; 19 | import java.util.Base64; 20 | import java.util.List; 21 | import java.util.Map; 22 | 23 | @javax.annotation.Generated( 24 | value = "org.openapitools.codegen.languages.JavaClientCodegen", 25 | comments = "Generator version: 7.12.0") 26 | public class HttpBasicAuth implements Authentication { 27 | private String username; 28 | private String password; 29 | 30 | public String getUsername() { 31 | return username; 32 | } 33 | 34 | public void setUsername(String username) { 35 | this.username = username; 36 | } 37 | 38 | public String getPassword() { 39 | return password; 40 | } 41 | 42 | public void setPassword(String password) { 43 | this.password = password; 44 | } 45 | 46 | @Override 47 | public void applyToParams( 48 | List queryParams, Map headerParams, Map cookieParams) { 49 | if (username == null && password == null) { 50 | return; 51 | } 52 | String str = (username == null ? "" : username) + ":" + (password == null ? "" : password); 53 | headerParams.put( 54 | "Authorization", 55 | "Basic " + Base64.getEncoder().encodeToString(str.getBytes(StandardCharsets.UTF_8))); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/src/main/java/com/lancedb/lance/namespace/model/SetPropertyMode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonCreator; 17 | import com.fasterxml.jackson.annotation.JsonValue; 18 | 19 | /** 20 | * The behavior if the property key already exists. - OVERWRITE (default): overwrite the existing 21 | * value with the provided value - FAIL: fail the entire operation - SKIP: keep the existing value 22 | * and skip setting the provided value 23 | */ 24 | public enum SetPropertyMode { 25 | OVERWRITE("OVERWRITE"), 26 | 27 | FAIL("FAIL"), 28 | 29 | SKIP("SKIP"); 30 | 31 | private String value; 32 | 33 | SetPropertyMode(String value) { 34 | this.value = value; 35 | } 36 | 37 | @JsonValue 38 | public String getValue() { 39 | return value; 40 | } 41 | 42 | @Override 43 | public String toString() { 44 | return String.valueOf(value); 45 | } 46 | 47 | @JsonCreator 48 | public static SetPropertyMode fromValue(String value) { 49 | for (SetPropertyMode b : SetPropertyMode.values()) { 50 | if (b.value.equals(value)) { 51 | return b; 52 | } 53 | } 54 | throw new IllegalArgumentException("Unexpected value '" + value + "'"); 55 | } 56 | 57 | /** 58 | * Convert the instance into URL query string. 59 | * 60 | * @param prefix prefix of the query string 61 | * @return URL query string 62 | */ 63 | public String toUrlQueryString(String prefix) { 64 | if (prefix == null) { 65 | prefix = ""; 66 | } 67 | 68 | return String.format("%s=%s", prefix, this.toString()); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/src/main/java/com/lancedb/lance/namespace/model/TransactionStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonCreator; 17 | import com.fasterxml.jackson.annotation.JsonValue; 18 | 19 | /** Gets or Sets TransactionStatus */ 20 | public enum TransactionStatus { 21 | QUEUED("QUEUED"), 22 | 23 | RUNNING("RUNNING"), 24 | 25 | SUCCEEDED("SUCCEEDED"), 26 | 27 | FAILED("FAILED"), 28 | 29 | CANCELED("CANCELED"); 30 | 31 | private String value; 32 | 33 | TransactionStatus(String value) { 34 | this.value = value; 35 | } 36 | 37 | @JsonValue 38 | public String getValue() { 39 | return value; 40 | } 41 | 42 | @Override 43 | public String toString() { 44 | return String.valueOf(value); 45 | } 46 | 47 | @JsonCreator 48 | public static TransactionStatus fromValue(String value) { 49 | for (TransactionStatus b : TransactionStatus.values()) { 50 | if (b.value.equals(value)) { 51 | return b; 52 | } 53 | } 54 | throw new IllegalArgumentException("Unexpected value '" + value + "'"); 55 | } 56 | 57 | /** 58 | * Convert the instance into URL query string. 59 | * 60 | * @param prefix prefix of the query string 61 | * @return URL query string 62 | */ 63 | public String toUrlQueryString(String prefix) { 64 | if (prefix == null) { 65 | prefix = ""; 66 | } 67 | 68 | return String.format("%s=%s", prefix, this.toString()); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /java/lance-namespace-apache-client/src/main/java/com/lancedb/lance/namespace/model/UnsetPropertyMode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonCreator; 17 | import com.fasterxml.jackson.annotation.JsonValue; 18 | 19 | /** 20 | * The behavior if the property key to unset does not exist. - SKIP (default): skip the property to 21 | * unset - FAIL: fail the entire operation 22 | */ 23 | public enum UnsetPropertyMode { 24 | SKIP("SKIP"), 25 | 26 | FAIL("FAIL"); 27 | 28 | private String value; 29 | 30 | UnsetPropertyMode(String value) { 31 | this.value = value; 32 | } 33 | 34 | @JsonValue 35 | public String getValue() { 36 | return value; 37 | } 38 | 39 | @Override 40 | public String toString() { 41 | return String.valueOf(value); 42 | } 43 | 44 | @JsonCreator 45 | public static UnsetPropertyMode fromValue(String value) { 46 | for (UnsetPropertyMode b : UnsetPropertyMode.values()) { 47 | if (b.value.equals(value)) { 48 | return b; 49 | } 50 | } 51 | throw new IllegalArgumentException("Unexpected value '" + value + "'"); 52 | } 53 | 54 | /** 55 | * Convert the instance into URL query string. 56 | * 57 | * @param prefix prefix of the query string 58 | * @return URL query string 59 | */ 60 | public String toUrlQueryString(String prefix) { 61 | if (prefix == null) { 62 | prefix = ""; 63 | } 64 | 65 | return String.format("%s=%s", prefix, this.toString()); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /java/lance-namespace-core/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 4.0.0 7 | 8 | 9 | com.lancedb 10 | lance-namespace-root 11 | 0.0.1 12 | ../pom.xml 13 | 14 | 15 | lance-namespace-core 16 | ${project.artifactId} 17 | Lance Namespace client core library 18 | jar 19 | 20 | 21 | 22 | com.lancedb 23 | lance-namespace-apache-client 24 | ${lance-namespace.version} 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /java/lance-namespace-core/src/main/java/com/lancedb/lance/namespace/LanceNamespaceException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace; 15 | 16 | import com.lancedb.lance.namespace.client.apache.ApiException; 17 | 18 | public class LanceNamespaceException extends RuntimeException { 19 | 20 | public LanceNamespaceException(ApiException e) { 21 | // TODO: properly parse into ErrorResponse model 22 | super(e.getResponseBody(), e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /java/lance-namespace-springboot-server/README.md: -------------------------------------------------------------------------------- 1 | 2 | # OpenAPI generated API stub 3 | 4 | Spring Framework stub 5 | 6 | 7 | ## Overview 8 | This code was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. 9 | By using the [OpenAPI-Spec](https://openapis.org), you can easily generate an API stub. 10 | This is an example of building API stub interfaces in Java using the Spring framework. 11 | 12 | The stubs generated can be used in your existing Spring-MVC or Spring-Boot application to create controller endpoints 13 | by adding ```@Controller``` classes that implement the interface. Eg: 14 | ```java 15 | @Controller 16 | public class PetController implements PetApi { 17 | // implement all PetApi methods 18 | } 19 | ``` 20 | 21 | You can also use the interface to create [Spring-Cloud Feign clients](http://projects.spring.io/spring-cloud/spring-cloud.html#spring-cloud-feign-inheritance).Eg: 22 | ```java 23 | @FeignClient(name="pet", url="http://petstore.swagger.io/v2") 24 | public interface PetClient extends PetApi { 25 | 26 | } 27 | ``` 28 | -------------------------------------------------------------------------------- /java/lance-namespace-springboot-server/src/main/java/com/lancedb/lance/namespace/server/springboot/api/ApiUtil.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.server.springboot.api; 15 | 16 | import org.springframework.web.context.request.NativeWebRequest; 17 | 18 | import javax.servlet.http.HttpServletResponse; 19 | 20 | import java.io.IOException; 21 | 22 | public class ApiUtil { 23 | public static void setExampleResponse(NativeWebRequest req, String contentType, String example) { 24 | try { 25 | HttpServletResponse res = req.getNativeResponse(HttpServletResponse.class); 26 | res.setCharacterEncoding("UTF-8"); 27 | res.addHeader("Content-Type", contentType); 28 | res.getWriter().print(example); 29 | } catch (IOException e) { 30 | throw new RuntimeException(e); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /java/lance-namespace-springboot-server/src/main/java/com/lancedb/lance/namespace/server/springboot/model/SetPropertyMode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.server.springboot.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonCreator; 17 | import com.fasterxml.jackson.annotation.JsonValue; 18 | 19 | import javax.annotation.Generated; 20 | import javax.validation.constraints.*; 21 | 22 | import java.util.*; 23 | 24 | /** 25 | * The behavior if the property key already exists. - OVERWRITE (default): overwrite the existing 26 | * value with the provided value - FAIL: fail the entire operation - SKIP: keep the existing value 27 | * and skip setting the provided value 28 | */ 29 | @Generated( 30 | value = "org.openapitools.codegen.languages.SpringCodegen", 31 | comments = "Generator version: 7.12.0") 32 | public enum SetPropertyMode { 33 | OVERWRITE("OVERWRITE"), 34 | 35 | FAIL("FAIL"), 36 | 37 | SKIP("SKIP"); 38 | 39 | private String value; 40 | 41 | SetPropertyMode(String value) { 42 | this.value = value; 43 | } 44 | 45 | @JsonValue 46 | public String getValue() { 47 | return value; 48 | } 49 | 50 | @Override 51 | public String toString() { 52 | return String.valueOf(value); 53 | } 54 | 55 | @JsonCreator 56 | public static SetPropertyMode fromValue(String value) { 57 | for (SetPropertyMode b : SetPropertyMode.values()) { 58 | if (b.value.equals(value)) { 59 | return b; 60 | } 61 | } 62 | throw new IllegalArgumentException("Unexpected value '" + value + "'"); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /java/lance-namespace-springboot-server/src/main/java/com/lancedb/lance/namespace/server/springboot/model/TransactionStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.server.springboot.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonCreator; 17 | import com.fasterxml.jackson.annotation.JsonValue; 18 | 19 | import javax.annotation.Generated; 20 | import javax.validation.constraints.*; 21 | 22 | import java.util.*; 23 | 24 | /** Gets or Sets TransactionStatus */ 25 | @Generated( 26 | value = "org.openapitools.codegen.languages.SpringCodegen", 27 | comments = "Generator version: 7.12.0") 28 | public enum TransactionStatus { 29 | QUEUED("QUEUED"), 30 | 31 | RUNNING("RUNNING"), 32 | 33 | SUCCEEDED("SUCCEEDED"), 34 | 35 | FAILED("FAILED"), 36 | 37 | CANCELED("CANCELED"); 38 | 39 | private String value; 40 | 41 | TransactionStatus(String value) { 42 | this.value = value; 43 | } 44 | 45 | @JsonValue 46 | public String getValue() { 47 | return value; 48 | } 49 | 50 | @Override 51 | public String toString() { 52 | return String.valueOf(value); 53 | } 54 | 55 | @JsonCreator 56 | public static TransactionStatus fromValue(String value) { 57 | for (TransactionStatus b : TransactionStatus.values()) { 58 | if (b.value.equals(value)) { 59 | return b; 60 | } 61 | } 62 | throw new IllegalArgumentException("Unexpected value '" + value + "'"); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /java/lance-namespace-springboot-server/src/main/java/com/lancedb/lance/namespace/server/springboot/model/UnsetPropertyMode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | package com.lancedb.lance.namespace.server.springboot.model; 15 | 16 | import com.fasterxml.jackson.annotation.JsonCreator; 17 | import com.fasterxml.jackson.annotation.JsonValue; 18 | 19 | import javax.annotation.Generated; 20 | import javax.validation.constraints.*; 21 | 22 | import java.util.*; 23 | 24 | /** 25 | * The behavior if the property key to unset does not exist. - SKIP (default): skip the property to 26 | * unset - FAIL: fail the entire operation 27 | */ 28 | @Generated( 29 | value = "org.openapitools.codegen.languages.SpringCodegen", 30 | comments = "Generator version: 7.12.0") 31 | public enum UnsetPropertyMode { 32 | SKIP("SKIP"), 33 | 34 | FAIL("FAIL"); 35 | 36 | private String value; 37 | 38 | UnsetPropertyMode(String value) { 39 | this.value = value; 40 | } 41 | 42 | @JsonValue 43 | public String getValue() { 44 | return value; 45 | } 46 | 47 | @Override 48 | public String toString() { 49 | return String.valueOf(value); 50 | } 51 | 52 | @JsonCreator 53 | public static UnsetPropertyMode fromValue(String value) { 54 | for (UnsetPropertyMode b : UnsetPropertyMode.values()) { 55 | if (b.value.equals(value)) { 56 | return b; 57 | } 58 | } 59 | throw new IllegalArgumentException("Unexpected value '" + value + "'"); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /python/Makefile: -------------------------------------------------------------------------------- 1 | # Licensed under the Apache License, Version 2.0 (the "License"); 2 | # you may not use this file except in compliance with the License. 3 | # You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | VERSION = 0.0.1 14 | 15 | clean-python-urllib3-client: 16 | rm -rf lance_namespace_urllib3_client/** 17 | 18 | gen-python-urllib3-client: clean-python-urllib3-client 19 | openapi-generator-cli generate \ 20 | -i ../spec/rest.yaml \ 21 | -g python \ 22 | -o lance_namespace_urllib3_client \ 23 | --additional-properties=packageName=lance_namespace_urllib3_client,packageVersion=$(VERSION),library=urllib3 \ 24 | # Clean up OpenAPI Generator metadata after generation 25 | rm -rf lance_namespace_urllib3_client/.openapi-generator 26 | 27 | build-python-urllib3-client: gen-python-urllib3-client 28 | cd lance_namespace_urllib3_client; \ 29 | poetry install; \ 30 | poetry run pytest 31 | 32 | clean: clean-python-urllib3-client 33 | 34 | gen: gen-python-urllib3-client 35 | 36 | build: build-python-urllib3-client 37 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | .github 2 | .gitignore 3 | .gitlab-ci.yml 4 | .travis.yml 5 | git_push.sh 6 | requirements.txt 7 | setup.cfg 8 | setup.py 9 | test-requirements.txt 10 | tox.ini 11 | /.github/workflows/python.yml 12 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/AlterTransactionAction.md: -------------------------------------------------------------------------------- 1 | # AlterTransactionAction 2 | 3 | A single action that could be performed to alter a transaction. This action holds the model definition for all types of specific actions models, this is to minimize difference and compatibility issue across codegen in different languages. When used, only one of the actions should be non-null for each action. If you would like to perform multiple actions, set a list of actions in the AlterTransactionRequest. 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **set_status_action** | [**AlterTransactionSetStatus**](AlterTransactionSetStatus.md) | | [optional] 10 | **set_property_action** | [**AlterTransactionSetProperty**](AlterTransactionSetProperty.md) | | [optional] 11 | **unset_property_action** | [**AlterTransactionUnsetProperty**](AlterTransactionUnsetProperty.md) | | [optional] 12 | 13 | ## Example 14 | 15 | ```python 16 | from lance_namespace_urllib3_client.models.alter_transaction_action import AlterTransactionAction 17 | 18 | # TODO update the JSON string below 19 | json = "{}" 20 | # create an instance of AlterTransactionAction from a JSON string 21 | alter_transaction_action_instance = AlterTransactionAction.from_json(json) 22 | # print the JSON string representation of the object 23 | print(AlterTransactionAction.to_json()) 24 | 25 | # convert the object into a dict 26 | alter_transaction_action_dict = alter_transaction_action_instance.to_dict() 27 | # create an instance of AlterTransactionAction from a dict 28 | alter_transaction_action_from_dict = AlterTransactionAction.from_dict(alter_transaction_action_dict) 29 | ``` 30 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 31 | 32 | 33 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/AlterTransactionRequest.md: -------------------------------------------------------------------------------- 1 | # AlterTransactionRequest 2 | 3 | Alter a transaction with a list of actions. The server should either succeed and apply all actions, or fail and apply no action. 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **actions** | [**List[AlterTransactionAction]**](AlterTransactionAction.md) | | 10 | 11 | ## Example 12 | 13 | ```python 14 | from lance_namespace_urllib3_client.models.alter_transaction_request import AlterTransactionRequest 15 | 16 | # TODO update the JSON string below 17 | json = "{}" 18 | # create an instance of AlterTransactionRequest from a JSON string 19 | alter_transaction_request_instance = AlterTransactionRequest.from_json(json) 20 | # print the JSON string representation of the object 21 | print(AlterTransactionRequest.to_json()) 22 | 23 | # convert the object into a dict 24 | alter_transaction_request_dict = alter_transaction_request_instance.to_dict() 25 | # create an instance of AlterTransactionRequest from a dict 26 | alter_transaction_request_from_dict = AlterTransactionRequest.from_dict(alter_transaction_request_dict) 27 | ``` 28 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 29 | 30 | 31 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/AlterTransactionResponse.md: -------------------------------------------------------------------------------- 1 | # AlterTransactionResponse 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **id** | **str** | | 9 | **status** | [**TransactionStatus**](TransactionStatus.md) | | 10 | 11 | ## Example 12 | 13 | ```python 14 | from lance_namespace_urllib3_client.models.alter_transaction_response import AlterTransactionResponse 15 | 16 | # TODO update the JSON string below 17 | json = "{}" 18 | # create an instance of AlterTransactionResponse from a JSON string 19 | alter_transaction_response_instance = AlterTransactionResponse.from_json(json) 20 | # print the JSON string representation of the object 21 | print(AlterTransactionResponse.to_json()) 22 | 23 | # convert the object into a dict 24 | alter_transaction_response_dict = alter_transaction_response_instance.to_dict() 25 | # create an instance of AlterTransactionResponse from a dict 26 | alter_transaction_response_from_dict = AlterTransactionResponse.from_dict(alter_transaction_response_dict) 27 | ``` 28 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 29 | 30 | 31 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/AlterTransactionSetProperty.md: -------------------------------------------------------------------------------- 1 | # AlterTransactionSetProperty 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **key** | **str** | | [optional] 9 | **value** | **str** | | [optional] 10 | **mode** | [**SetPropertyMode**](SetPropertyMode.md) | | [optional] 11 | 12 | ## Example 13 | 14 | ```python 15 | from lance_namespace_urllib3_client.models.alter_transaction_set_property import AlterTransactionSetProperty 16 | 17 | # TODO update the JSON string below 18 | json = "{}" 19 | # create an instance of AlterTransactionSetProperty from a JSON string 20 | alter_transaction_set_property_instance = AlterTransactionSetProperty.from_json(json) 21 | # print the JSON string representation of the object 22 | print(AlterTransactionSetProperty.to_json()) 23 | 24 | # convert the object into a dict 25 | alter_transaction_set_property_dict = alter_transaction_set_property_instance.to_dict() 26 | # create an instance of AlterTransactionSetProperty from a dict 27 | alter_transaction_set_property_from_dict = AlterTransactionSetProperty.from_dict(alter_transaction_set_property_dict) 28 | ``` 29 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 30 | 31 | 32 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/AlterTransactionSetStatus.md: -------------------------------------------------------------------------------- 1 | # AlterTransactionSetStatus 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **status** | [**TransactionStatus**](TransactionStatus.md) | | [optional] 9 | 10 | ## Example 11 | 12 | ```python 13 | from lance_namespace_urllib3_client.models.alter_transaction_set_status import AlterTransactionSetStatus 14 | 15 | # TODO update the JSON string below 16 | json = "{}" 17 | # create an instance of AlterTransactionSetStatus from a JSON string 18 | alter_transaction_set_status_instance = AlterTransactionSetStatus.from_json(json) 19 | # print the JSON string representation of the object 20 | print(AlterTransactionSetStatus.to_json()) 21 | 22 | # convert the object into a dict 23 | alter_transaction_set_status_dict = alter_transaction_set_status_instance.to_dict() 24 | # create an instance of AlterTransactionSetStatus from a dict 25 | alter_transaction_set_status_from_dict = AlterTransactionSetStatus.from_dict(alter_transaction_set_status_dict) 26 | ``` 27 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 28 | 29 | 30 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/AlterTransactionUnsetProperty.md: -------------------------------------------------------------------------------- 1 | # AlterTransactionUnsetProperty 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **key** | **str** | | [optional] 9 | **mode** | [**UnsetPropertyMode**](UnsetPropertyMode.md) | | [optional] 10 | 11 | ## Example 12 | 13 | ```python 14 | from lance_namespace_urllib3_client.models.alter_transaction_unset_property import AlterTransactionUnsetProperty 15 | 16 | # TODO update the JSON string below 17 | json = "{}" 18 | # create an instance of AlterTransactionUnsetProperty from a JSON string 19 | alter_transaction_unset_property_instance = AlterTransactionUnsetProperty.from_json(json) 20 | # print the JSON string representation of the object 21 | print(AlterTransactionUnsetProperty.to_json()) 22 | 23 | # convert the object into a dict 24 | alter_transaction_unset_property_dict = alter_transaction_unset_property_instance.to_dict() 25 | # create an instance of AlterTransactionUnsetProperty from a dict 26 | alter_transaction_unset_property_from_dict = AlterTransactionUnsetProperty.from_dict(alter_transaction_unset_property_dict) 27 | ``` 28 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 29 | 30 | 31 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/CreateNamespaceRequest.md: -------------------------------------------------------------------------------- 1 | # CreateNamespaceRequest 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | 9 | **parent** | **List[str]** | | [optional] 10 | **mode** | **str** | | 11 | **options** | **Dict[str, str]** | | [optional] 12 | 13 | ## Example 14 | 15 | ```python 16 | from lance_namespace_urllib3_client.models.create_namespace_request import CreateNamespaceRequest 17 | 18 | # TODO update the JSON string below 19 | json = "{}" 20 | # create an instance of CreateNamespaceRequest from a JSON string 21 | create_namespace_request_instance = CreateNamespaceRequest.from_json(json) 22 | # print the JSON string representation of the object 23 | print(CreateNamespaceRequest.to_json()) 24 | 25 | # convert the object into a dict 26 | create_namespace_request_dict = create_namespace_request_instance.to_dict() 27 | # create an instance of CreateNamespaceRequest from a dict 28 | create_namespace_request_from_dict = CreateNamespaceRequest.from_dict(create_namespace_request_dict) 29 | ``` 30 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 31 | 32 | 33 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/CreateNamespaceResponse.md: -------------------------------------------------------------------------------- 1 | # CreateNamespaceResponse 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | 9 | **parent** | **List[str]** | | [optional] 10 | **properties** | **Dict[str, str]** | | [optional] 11 | 12 | ## Example 13 | 14 | ```python 15 | from lance_namespace_urllib3_client.models.create_namespace_response import CreateNamespaceResponse 16 | 17 | # TODO update the JSON string below 18 | json = "{}" 19 | # create an instance of CreateNamespaceResponse from a JSON string 20 | create_namespace_response_instance = CreateNamespaceResponse.from_json(json) 21 | # print the JSON string representation of the object 22 | print(CreateNamespaceResponse.to_json()) 23 | 24 | # convert the object into a dict 25 | create_namespace_response_dict = create_namespace_response_instance.to_dict() 26 | # create an instance of CreateNamespaceResponse from a dict 27 | create_namespace_response_from_dict = CreateNamespaceResponse.from_dict(create_namespace_response_dict) 28 | ``` 29 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 30 | 31 | 32 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/DeregisterTableRequest.md: -------------------------------------------------------------------------------- 1 | # DeregisterTableRequest 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | 9 | **namespace** | **List[str]** | | [optional] 10 | 11 | ## Example 12 | 13 | ```python 14 | from lance_namespace_urllib3_client.models.deregister_table_request import DeregisterTableRequest 15 | 16 | # TODO update the JSON string below 17 | json = "{}" 18 | # create an instance of DeregisterTableRequest from a JSON string 19 | deregister_table_request_instance = DeregisterTableRequest.from_json(json) 20 | # print the JSON string representation of the object 21 | print(DeregisterTableRequest.to_json()) 22 | 23 | # convert the object into a dict 24 | deregister_table_request_dict = deregister_table_request_instance.to_dict() 25 | # create an instance of DeregisterTableRequest from a dict 26 | deregister_table_request_from_dict = DeregisterTableRequest.from_dict(deregister_table_request_dict) 27 | ``` 28 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 29 | 30 | 31 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/DeregisterTableResponse.md: -------------------------------------------------------------------------------- 1 | # DeregisterTableResponse 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | [optional] 9 | **namespace** | **List[str]** | | [optional] 10 | **location** | **str** | | [optional] 11 | **properties** | **Dict[str, str]** | | [optional] 12 | 13 | ## Example 14 | 15 | ```python 16 | from lance_namespace_urllib3_client.models.deregister_table_response import DeregisterTableResponse 17 | 18 | # TODO update the JSON string below 19 | json = "{}" 20 | # create an instance of DeregisterTableResponse from a JSON string 21 | deregister_table_response_instance = DeregisterTableResponse.from_json(json) 22 | # print the JSON string representation of the object 23 | print(DeregisterTableResponse.to_json()) 24 | 25 | # convert the object into a dict 26 | deregister_table_response_dict = deregister_table_response_instance.to_dict() 27 | # create an instance of DeregisterTableResponse from a dict 28 | deregister_table_response_from_dict = DeregisterTableResponse.from_dict(deregister_table_response_dict) 29 | ``` 30 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 31 | 32 | 33 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/DropNamespaceRequest.md: -------------------------------------------------------------------------------- 1 | # DropNamespaceRequest 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | 9 | **parent** | **List[str]** | | [optional] 10 | **mode** | **str** | The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. - FAIL (default): the server must return 400 indicating the namespace to drop does not exist. - SKIP: the server must return 204 indicating the drop operation has succeeded. | [optional] 11 | **behavior** | **str** | The behavior for dropping a namespace. - RESTRICT (default): the namespace should not contain any table or child namespace when drop is initiated. If tables are found, the server should return error and not drop the namespace. - CASCADE: all tables and child namespaces in the namespace are dropped before the namespace is dropped. | [optional] 12 | 13 | ## Example 14 | 15 | ```python 16 | from lance_namespace_urllib3_client.models.drop_namespace_request import DropNamespaceRequest 17 | 18 | # TODO update the JSON string below 19 | json = "{}" 20 | # create an instance of DropNamespaceRequest from a JSON string 21 | drop_namespace_request_instance = DropNamespaceRequest.from_json(json) 22 | # print the JSON string representation of the object 23 | print(DropNamespaceRequest.to_json()) 24 | 25 | # convert the object into a dict 26 | drop_namespace_request_dict = drop_namespace_request_instance.to_dict() 27 | # create an instance of DropNamespaceRequest from a dict 28 | drop_namespace_request_from_dict = DropNamespaceRequest.from_dict(drop_namespace_request_dict) 29 | ``` 30 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 31 | 32 | 33 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/DropNamespaceResponse.md: -------------------------------------------------------------------------------- 1 | # DropNamespaceResponse 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | [optional] 9 | **parent** | **List[str]** | | [optional] 10 | **properties** | **Dict[str, str]** | | [optional] 11 | **transaction_id** | **str** | If present, indicating the operation is long running and should be tracked using GetTransaction | [optional] 12 | 13 | ## Example 14 | 15 | ```python 16 | from lance_namespace_urllib3_client.models.drop_namespace_response import DropNamespaceResponse 17 | 18 | # TODO update the JSON string below 19 | json = "{}" 20 | # create an instance of DropNamespaceResponse from a JSON string 21 | drop_namespace_response_instance = DropNamespaceResponse.from_json(json) 22 | # print the JSON string representation of the object 23 | print(DropNamespaceResponse.to_json()) 24 | 25 | # convert the object into a dict 26 | drop_namespace_response_dict = drop_namespace_response_instance.to_dict() 27 | # create an instance of DropNamespaceResponse from a dict 28 | drop_namespace_response_from_dict = DropNamespaceResponse.from_dict(drop_namespace_response_dict) 29 | ``` 30 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 31 | 32 | 33 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/DropTableRequest.md: -------------------------------------------------------------------------------- 1 | # DropTableRequest 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | 9 | **namespace** | **List[str]** | | [optional] 10 | 11 | ## Example 12 | 13 | ```python 14 | from lance_namespace_urllib3_client.models.drop_table_request import DropTableRequest 15 | 16 | # TODO update the JSON string below 17 | json = "{}" 18 | # create an instance of DropTableRequest from a JSON string 19 | drop_table_request_instance = DropTableRequest.from_json(json) 20 | # print the JSON string representation of the object 21 | print(DropTableRequest.to_json()) 22 | 23 | # convert the object into a dict 24 | drop_table_request_dict = drop_table_request_instance.to_dict() 25 | # create an instance of DropTableRequest from a dict 26 | drop_table_request_from_dict = DropTableRequest.from_dict(drop_table_request_dict) 27 | ``` 28 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 29 | 30 | 31 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/DropTableResponse.md: -------------------------------------------------------------------------------- 1 | # DropTableResponse 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | [optional] 9 | **namespace** | **List[str]** | | [optional] 10 | **location** | **str** | | [optional] 11 | **properties** | **Dict[str, str]** | | [optional] 12 | **transaction_id** | **str** | | [optional] 13 | 14 | ## Example 15 | 16 | ```python 17 | from lance_namespace_urllib3_client.models.drop_table_response import DropTableResponse 18 | 19 | # TODO update the JSON string below 20 | json = "{}" 21 | # create an instance of DropTableResponse from a JSON string 22 | drop_table_response_instance = DropTableResponse.from_json(json) 23 | # print the JSON string representation of the object 24 | print(DropTableResponse.to_json()) 25 | 26 | # convert the object into a dict 27 | drop_table_response_dict = drop_table_response_instance.to_dict() 28 | # create an instance of DropTableResponse from a dict 29 | drop_table_response_from_dict = DropTableResponse.from_dict(drop_table_response_dict) 30 | ``` 31 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 32 | 33 | 34 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/ErrorResponse.md: -------------------------------------------------------------------------------- 1 | # ErrorResponse 2 | 3 | JSON error response model based on [RFC-7807](https://datatracker.ietf.org/doc/html/rfc7807) 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **str** | a URI identifier that categorizes the error | 10 | **title** | **str** | a brief, human-readable message about the error | [optional] 11 | **status** | **int** | HTTP response code, (if present) it must match the actual HTTP code returned by the service | [optional] 12 | **detail** | **str** | a human-readable explanation of the error | [optional] 13 | **instance** | **str** | a URI that identifies the specific occurrence of the error | [optional] 14 | 15 | ## Example 16 | 17 | ```python 18 | from lance_namespace_urllib3_client.models.error_response import ErrorResponse 19 | 20 | # TODO update the JSON string below 21 | json = "{}" 22 | # create an instance of ErrorResponse from a JSON string 23 | error_response_instance = ErrorResponse.from_json(json) 24 | # print the JSON string representation of the object 25 | print(ErrorResponse.to_json()) 26 | 27 | # convert the object into a dict 28 | error_response_dict = error_response_instance.to_dict() 29 | # create an instance of ErrorResponse from a dict 30 | error_response_from_dict = ErrorResponse.from_dict(error_response_dict) 31 | ``` 32 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 33 | 34 | 35 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/GetNamespaceRequest.md: -------------------------------------------------------------------------------- 1 | # GetNamespaceRequest 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | 9 | **parent** | **List[str]** | | [optional] 10 | 11 | ## Example 12 | 13 | ```python 14 | from lance_namespace_urllib3_client.models.get_namespace_request import GetNamespaceRequest 15 | 16 | # TODO update the JSON string below 17 | json = "{}" 18 | # create an instance of GetNamespaceRequest from a JSON string 19 | get_namespace_request_instance = GetNamespaceRequest.from_json(json) 20 | # print the JSON string representation of the object 21 | print(GetNamespaceRequest.to_json()) 22 | 23 | # convert the object into a dict 24 | get_namespace_request_dict = get_namespace_request_instance.to_dict() 25 | # create an instance of GetNamespaceRequest from a dict 26 | get_namespace_request_from_dict = GetNamespaceRequest.from_dict(get_namespace_request_dict) 27 | ``` 28 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 29 | 30 | 31 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/GetNamespaceResponse.md: -------------------------------------------------------------------------------- 1 | # GetNamespaceResponse 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | 9 | **parent** | **List[str]** | | [optional] 10 | **properties** | **Dict[str, str]** | Properties stored on the namespace, if supported by the server. If the server does not support namespace properties, it should return null for this field. If namespace properties are supported, but none are set, it should return an empty object. | [optional] 11 | 12 | ## Example 13 | 14 | ```python 15 | from lance_namespace_urllib3_client.models.get_namespace_response import GetNamespaceResponse 16 | 17 | # TODO update the JSON string below 18 | json = "{}" 19 | # create an instance of GetNamespaceResponse from a JSON string 20 | get_namespace_response_instance = GetNamespaceResponse.from_json(json) 21 | # print the JSON string representation of the object 22 | print(GetNamespaceResponse.to_json()) 23 | 24 | # convert the object into a dict 25 | get_namespace_response_dict = get_namespace_response_instance.to_dict() 26 | # create an instance of GetNamespaceResponse from a dict 27 | get_namespace_response_from_dict = GetNamespaceResponse.from_dict(get_namespace_response_dict) 28 | ``` 29 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 30 | 31 | 32 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/GetTableRequest.md: -------------------------------------------------------------------------------- 1 | # GetTableRequest 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | 9 | **namespace** | **List[str]** | | 10 | 11 | ## Example 12 | 13 | ```python 14 | from lance_namespace_urllib3_client.models.get_table_request import GetTableRequest 15 | 16 | # TODO update the JSON string below 17 | json = "{}" 18 | # create an instance of GetTableRequest from a JSON string 19 | get_table_request_instance = GetTableRequest.from_json(json) 20 | # print the JSON string representation of the object 21 | print(GetTableRequest.to_json()) 22 | 23 | # convert the object into a dict 24 | get_table_request_dict = get_table_request_instance.to_dict() 25 | # create an instance of GetTableRequest from a dict 26 | get_table_request_from_dict = GetTableRequest.from_dict(get_table_request_dict) 27 | ``` 28 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 29 | 30 | 31 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/GetTableResponse.md: -------------------------------------------------------------------------------- 1 | # GetTableResponse 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | 9 | **namespace** | **List[str]** | | 10 | **location** | **str** | | 11 | **properties** | **Dict[str, str]** | | [optional] 12 | 13 | ## Example 14 | 15 | ```python 16 | from lance_namespace_urllib3_client.models.get_table_response import GetTableResponse 17 | 18 | # TODO update the JSON string below 19 | json = "{}" 20 | # create an instance of GetTableResponse from a JSON string 21 | get_table_response_instance = GetTableResponse.from_json(json) 22 | # print the JSON string representation of the object 23 | print(GetTableResponse.to_json()) 24 | 25 | # convert the object into a dict 26 | get_table_response_dict = get_table_response_instance.to_dict() 27 | # create an instance of GetTableResponse from a dict 28 | get_table_response_from_dict = GetTableResponse.from_dict(get_table_response_dict) 29 | ``` 30 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 31 | 32 | 33 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/GetTransactionRequest.md: -------------------------------------------------------------------------------- 1 | # GetTransactionRequest 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **id** | **str** | | 9 | 10 | ## Example 11 | 12 | ```python 13 | from lance_namespace_urllib3_client.models.get_transaction_request import GetTransactionRequest 14 | 15 | # TODO update the JSON string below 16 | json = "{}" 17 | # create an instance of GetTransactionRequest from a JSON string 18 | get_transaction_request_instance = GetTransactionRequest.from_json(json) 19 | # print the JSON string representation of the object 20 | print(GetTransactionRequest.to_json()) 21 | 22 | # convert the object into a dict 23 | get_transaction_request_dict = get_transaction_request_instance.to_dict() 24 | # create an instance of GetTransactionRequest from a dict 25 | get_transaction_request_from_dict = GetTransactionRequest.from_dict(get_transaction_request_dict) 26 | ``` 27 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 28 | 29 | 30 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/GetTransactionResponse.md: -------------------------------------------------------------------------------- 1 | # GetTransactionResponse 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **id** | **str** | | 9 | **status** | [**TransactionStatus**](TransactionStatus.md) | | 10 | **properties** | **Dict[str, str]** | | [optional] 11 | 12 | ## Example 13 | 14 | ```python 15 | from lance_namespace_urllib3_client.models.get_transaction_response import GetTransactionResponse 16 | 17 | # TODO update the JSON string below 18 | json = "{}" 19 | # create an instance of GetTransactionResponse from a JSON string 20 | get_transaction_response_instance = GetTransactionResponse.from_json(json) 21 | # print the JSON string representation of the object 22 | print(GetTransactionResponse.to_json()) 23 | 24 | # convert the object into a dict 25 | get_transaction_response_dict = get_transaction_response_instance.to_dict() 26 | # create an instance of GetTransactionResponse from a dict 27 | get_transaction_response_from_dict = GetTransactionResponse.from_dict(get_transaction_response_dict) 28 | ``` 29 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 30 | 31 | 32 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/ListNamespacesRequest.md: -------------------------------------------------------------------------------- 1 | # ListNamespacesRequest 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **parent** | **List[str]** | | [optional] 9 | **page_token** | **str** | An opaque token that allows pagination for list APIs (e.g. ListNamespaces). For an initial client request for a list API, if the server cannot return all items in one response, or if there are more items than the `pageSize` specified in the client request, the server must return a `nextPageToken` in the response indicating there are more results available. After the initial request, the value of `nextPageToken` from each response must be used by the client as the `pageToken` parameter value for the next request. Clients must interpret either `null`, missing value or empty string value of `nextPageToken` from a server response as the end of the listing results. | [optional] 10 | **page_size** | **int** | An inclusive upper bound of the number of results that a client will receive. | [optional] 11 | 12 | ## Example 13 | 14 | ```python 15 | from lance_namespace_urllib3_client.models.list_namespaces_request import ListNamespacesRequest 16 | 17 | # TODO update the JSON string below 18 | json = "{}" 19 | # create an instance of ListNamespacesRequest from a JSON string 20 | list_namespaces_request_instance = ListNamespacesRequest.from_json(json) 21 | # print the JSON string representation of the object 22 | print(ListNamespacesRequest.to_json()) 23 | 24 | # convert the object into a dict 25 | list_namespaces_request_dict = list_namespaces_request_instance.to_dict() 26 | # create an instance of ListNamespacesRequest from a dict 27 | list_namespaces_request_from_dict = ListNamespacesRequest.from_dict(list_namespaces_request_dict) 28 | ``` 29 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 30 | 31 | 32 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/ListNamespacesResponse.md: -------------------------------------------------------------------------------- 1 | # ListNamespacesResponse 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **namespaces** | **List[str]** | | 9 | **next_page_token** | **str** | An opaque token that allows pagination for list APIs (e.g. ListNamespaces). For an initial client request for a list API, if the server cannot return all items in one response, or if there are more items than the `pageSize` specified in the client request, the server must return a `nextPageToken` in the response indicating there are more results available. After the initial request, the value of `nextPageToken` from each response must be used by the client as the `pageToken` parameter value for the next request. Clients must interpret either `null`, missing value or empty string value of `nextPageToken` from a server response as the end of the listing results. | [optional] 10 | 11 | ## Example 12 | 13 | ```python 14 | from lance_namespace_urllib3_client.models.list_namespaces_response import ListNamespacesResponse 15 | 16 | # TODO update the JSON string below 17 | json = "{}" 18 | # create an instance of ListNamespacesResponse from a JSON string 19 | list_namespaces_response_instance = ListNamespacesResponse.from_json(json) 20 | # print the JSON string representation of the object 21 | print(ListNamespacesResponse.to_json()) 22 | 23 | # convert the object into a dict 24 | list_namespaces_response_dict = list_namespaces_response_instance.to_dict() 25 | # create an instance of ListNamespacesResponse from a dict 26 | list_namespaces_response_from_dict = ListNamespacesResponse.from_dict(list_namespaces_response_dict) 27 | ``` 28 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 29 | 30 | 31 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/NamespaceExistsRequest.md: -------------------------------------------------------------------------------- 1 | # NamespaceExistsRequest 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | 9 | **parent** | **List[str]** | | [optional] 10 | 11 | ## Example 12 | 13 | ```python 14 | from lance_namespace_urllib3_client.models.namespace_exists_request import NamespaceExistsRequest 15 | 16 | # TODO update the JSON string below 17 | json = "{}" 18 | # create an instance of NamespaceExistsRequest from a JSON string 19 | namespace_exists_request_instance = NamespaceExistsRequest.from_json(json) 20 | # print the JSON string representation of the object 21 | print(NamespaceExistsRequest.to_json()) 22 | 23 | # convert the object into a dict 24 | namespace_exists_request_dict = namespace_exists_request_instance.to_dict() 25 | # create an instance of NamespaceExistsRequest from a dict 26 | namespace_exists_request_from_dict = NamespaceExistsRequest.from_dict(namespace_exists_request_dict) 27 | ``` 28 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 29 | 30 | 31 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/NamespaceExistsResponse.md: -------------------------------------------------------------------------------- 1 | # NamespaceExistsResponse 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **exists** | **bool** | | 9 | 10 | ## Example 11 | 12 | ```python 13 | from lance_namespace_urllib3_client.models.namespace_exists_response import NamespaceExistsResponse 14 | 15 | # TODO update the JSON string below 16 | json = "{}" 17 | # create an instance of NamespaceExistsResponse from a JSON string 18 | namespace_exists_response_instance = NamespaceExistsResponse.from_json(json) 19 | # print the JSON string representation of the object 20 | print(NamespaceExistsResponse.to_json()) 21 | 22 | # convert the object into a dict 23 | namespace_exists_response_dict = namespace_exists_response_instance.to_dict() 24 | # create an instance of NamespaceExistsResponse from a dict 25 | namespace_exists_response_from_dict = NamespaceExistsResponse.from_dict(namespace_exists_response_dict) 26 | ``` 27 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 28 | 29 | 30 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/RegisterTableRequest.md: -------------------------------------------------------------------------------- 1 | # RegisterTableRequest 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | 9 | **namespace** | **List[str]** | | 10 | **location** | **str** | | 11 | 12 | ## Example 13 | 14 | ```python 15 | from lance_namespace_urllib3_client.models.register_table_request import RegisterTableRequest 16 | 17 | # TODO update the JSON string below 18 | json = "{}" 19 | # create an instance of RegisterTableRequest from a JSON string 20 | register_table_request_instance = RegisterTableRequest.from_json(json) 21 | # print the JSON string representation of the object 22 | print(RegisterTableRequest.to_json()) 23 | 24 | # convert the object into a dict 25 | register_table_request_dict = register_table_request_instance.to_dict() 26 | # create an instance of RegisterTableRequest from a dict 27 | register_table_request_from_dict = RegisterTableRequest.from_dict(register_table_request_dict) 28 | ``` 29 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 30 | 31 | 32 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/RegisterTableResponse.md: -------------------------------------------------------------------------------- 1 | # RegisterTableResponse 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | 9 | **namespace** | **List[str]** | | 10 | **location** | **str** | | 11 | **properties** | **Dict[str, str]** | | [optional] 12 | 13 | ## Example 14 | 15 | ```python 16 | from lance_namespace_urllib3_client.models.register_table_response import RegisterTableResponse 17 | 18 | # TODO update the JSON string below 19 | json = "{}" 20 | # create an instance of RegisterTableResponse from a JSON string 21 | register_table_response_instance = RegisterTableResponse.from_json(json) 22 | # print the JSON string representation of the object 23 | print(RegisterTableResponse.to_json()) 24 | 25 | # convert the object into a dict 26 | register_table_response_dict = register_table_response_instance.to_dict() 27 | # create an instance of RegisterTableResponse from a dict 28 | register_table_response_from_dict = RegisterTableResponse.from_dict(register_table_response_dict) 29 | ``` 30 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 31 | 32 | 33 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/SetPropertyMode.md: -------------------------------------------------------------------------------- 1 | # SetPropertyMode 2 | 3 | The behavior if the property key already exists. - OVERWRITE (default): overwrite the existing value with the provided value - FAIL: fail the entire operation - SKIP: keep the existing value and skip setting the provided value 4 | 5 | ## Enum 6 | 7 | * `OVERWRITE` (value: `'OVERWRITE'`) 8 | 9 | * `FAIL` (value: `'FAIL'`) 10 | 11 | * `SKIP` (value: `'SKIP'`) 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/TableExistsRequest.md: -------------------------------------------------------------------------------- 1 | # TableExistsRequest 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **name** | **str** | | 9 | **namespace** | **List[str]** | | 10 | 11 | ## Example 12 | 13 | ```python 14 | from lance_namespace_urllib3_client.models.table_exists_request import TableExistsRequest 15 | 16 | # TODO update the JSON string below 17 | json = "{}" 18 | # create an instance of TableExistsRequest from a JSON string 19 | table_exists_request_instance = TableExistsRequest.from_json(json) 20 | # print the JSON string representation of the object 21 | print(TableExistsRequest.to_json()) 22 | 23 | # convert the object into a dict 24 | table_exists_request_dict = table_exists_request_instance.to_dict() 25 | # create an instance of TableExistsRequest from a dict 26 | table_exists_request_from_dict = TableExistsRequest.from_dict(table_exists_request_dict) 27 | ``` 28 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 29 | 30 | 31 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/TableExistsResponse.md: -------------------------------------------------------------------------------- 1 | # TableExistsResponse 2 | 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **exists** | **bool** | | 9 | 10 | ## Example 11 | 12 | ```python 13 | from lance_namespace_urllib3_client.models.table_exists_response import TableExistsResponse 14 | 15 | # TODO update the JSON string below 16 | json = "{}" 17 | # create an instance of TableExistsResponse from a JSON string 18 | table_exists_response_instance = TableExistsResponse.from_json(json) 19 | # print the JSON string representation of the object 20 | print(TableExistsResponse.to_json()) 21 | 22 | # convert the object into a dict 23 | table_exists_response_dict = table_exists_response_instance.to_dict() 24 | # create an instance of TableExistsResponse from a dict 25 | table_exists_response_from_dict = TableExistsResponse.from_dict(table_exists_response_dict) 26 | ``` 27 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 28 | 29 | 30 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/TransactionStatus.md: -------------------------------------------------------------------------------- 1 | # TransactionStatus 2 | 3 | 4 | ## Enum 5 | 6 | * `QUEUED` (value: `'QUEUED'`) 7 | 8 | * `RUNNING` (value: `'RUNNING'`) 9 | 10 | * `SUCCEEDED` (value: `'SUCCEEDED'`) 11 | 12 | * `FAILED` (value: `'FAILED'`) 13 | 14 | * `CANCELED` (value: `'CANCELED'`) 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/docs/UnsetPropertyMode.md: -------------------------------------------------------------------------------- 1 | # UnsetPropertyMode 2 | 3 | The behavior if the property key to unset does not exist. - SKIP (default): skip the property to unset - FAIL: fail the entire operation 4 | 5 | ## Enum 6 | 7 | * `SKIP` (value: `'SKIP'`) 8 | 9 | * `FAIL` (value: `'FAIL'`) 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/__init__.py: -------------------------------------------------------------------------------- 1 | # flake8: noqa 2 | 3 | # import apis into api package 4 | from lance_namespace_urllib3_client.api.namespace_api import NamespaceApi 5 | from lance_namespace_urllib3_client.api.table_api import TableApi 6 | from lance_namespace_urllib3_client.api.transaction_api import TransactionApi 7 | 8 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api_response.py: -------------------------------------------------------------------------------- 1 | """API response object.""" 2 | 3 | from __future__ import annotations 4 | from typing import Optional, Generic, Mapping, TypeVar 5 | from pydantic import Field, StrictInt, StrictBytes, BaseModel 6 | 7 | T = TypeVar("T") 8 | 9 | class ApiResponse(BaseModel, Generic[T]): 10 | """ 11 | API response object 12 | """ 13 | 14 | status_code: StrictInt = Field(description="HTTP status code") 15 | headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers") 16 | data: T = Field(description="Deserialized data given the data type") 17 | raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") 18 | 19 | model_config = { 20 | "arbitrary_types_allowed": True 21 | } 22 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/set_property_mode.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Lance REST Namespace Specification 5 | 6 | **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 7 | 8 | The version of the OpenAPI document: 0.0.1 9 | Generated by OpenAPI Generator (https://openapi-generator.tech) 10 | 11 | Do not edit the class manually. 12 | """ # noqa: E501 13 | 14 | 15 | from __future__ import annotations 16 | import json 17 | from enum import Enum 18 | from typing_extensions import Self 19 | 20 | 21 | class SetPropertyMode(str, Enum): 22 | """ 23 | The behavior if the property key already exists. - OVERWRITE (default): overwrite the existing value with the provided value - FAIL: fail the entire operation - SKIP: keep the existing value and skip setting the provided value 24 | """ 25 | 26 | """ 27 | allowed enum values 28 | """ 29 | OVERWRITE = 'OVERWRITE' 30 | FAIL = 'FAIL' 31 | SKIP = 'SKIP' 32 | 33 | @classmethod 34 | def from_json(cls, json_str: str) -> Self: 35 | """Create an instance of SetPropertyMode from a JSON string""" 36 | return cls(json.loads(json_str)) 37 | 38 | 39 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/transaction_status.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Lance REST Namespace Specification 5 | 6 | **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 7 | 8 | The version of the OpenAPI document: 0.0.1 9 | Generated by OpenAPI Generator (https://openapi-generator.tech) 10 | 11 | Do not edit the class manually. 12 | """ # noqa: E501 13 | 14 | 15 | from __future__ import annotations 16 | import json 17 | from enum import Enum 18 | from typing_extensions import Self 19 | 20 | 21 | class TransactionStatus(str, Enum): 22 | """ 23 | TransactionStatus 24 | """ 25 | 26 | """ 27 | allowed enum values 28 | """ 29 | QUEUED = 'QUEUED' 30 | RUNNING = 'RUNNING' 31 | SUCCEEDED = 'SUCCEEDED' 32 | FAILED = 'FAILED' 33 | CANCELED = 'CANCELED' 34 | 35 | @classmethod 36 | def from_json(cls, json_str: str) -> Self: 37 | """Create an instance of TransactionStatus from a JSON string""" 38 | return cls(json.loads(json_str)) 39 | 40 | 41 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/unset_property_mode.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Lance REST Namespace Specification 5 | 6 | **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 7 | 8 | The version of the OpenAPI document: 0.0.1 9 | Generated by OpenAPI Generator (https://openapi-generator.tech) 10 | 11 | Do not edit the class manually. 12 | """ # noqa: E501 13 | 14 | 15 | from __future__ import annotations 16 | import json 17 | from enum import Enum 18 | from typing_extensions import Self 19 | 20 | 21 | class UnsetPropertyMode(str, Enum): 22 | """ 23 | The behavior if the property key to unset does not exist. - SKIP (default): skip the property to unset - FAIL: fail the entire operation 24 | """ 25 | 26 | """ 27 | allowed enum values 28 | """ 29 | SKIP = 'SKIP' 30 | FAIL = 'FAIL' 31 | 32 | @classmethod 33 | def from_json(cls, json_str: str) -> Self: 34 | """Create an instance of UnsetPropertyMode from a JSON string""" 35 | return cls(json.loads(json_str)) 36 | 37 | 38 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lancedb/lance-namespace/7dfe5ac82e1ede2e34e08b24e47d7bde3a759a2c/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/py.typed -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/test/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lancedb/lance-namespace/7dfe5ac82e1ede2e34e08b24e47d7bde3a759a2c/python/lance_namespace_urllib3_client/test/__init__.py -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/test/test_set_property_mode.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Lance REST Namespace Specification 5 | 6 | **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 7 | 8 | The version of the OpenAPI document: 0.0.1 9 | Generated by OpenAPI Generator (https://openapi-generator.tech) 10 | 11 | Do not edit the class manually. 12 | """ # noqa: E501 13 | 14 | 15 | import unittest 16 | 17 | from lance_namespace_urllib3_client.models.set_property_mode import SetPropertyMode 18 | 19 | class TestSetPropertyMode(unittest.TestCase): 20 | """SetPropertyMode unit test stubs""" 21 | 22 | def setUp(self): 23 | pass 24 | 25 | def tearDown(self): 26 | pass 27 | 28 | def testSetPropertyMode(self): 29 | """Test SetPropertyMode""" 30 | # inst = SetPropertyMode() 31 | 32 | if __name__ == '__main__': 33 | unittest.main() 34 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/test/test_transaction_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Lance REST Namespace Specification 5 | 6 | **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 7 | 8 | The version of the OpenAPI document: 0.0.1 9 | Generated by OpenAPI Generator (https://openapi-generator.tech) 10 | 11 | Do not edit the class manually. 12 | """ # noqa: E501 13 | 14 | 15 | import unittest 16 | 17 | from lance_namespace_urllib3_client.api.transaction_api import TransactionApi 18 | 19 | 20 | class TestTransactionApi(unittest.TestCase): 21 | """TransactionApi unit test stubs""" 22 | 23 | def setUp(self) -> None: 24 | self.api = TransactionApi() 25 | 26 | def tearDown(self) -> None: 27 | pass 28 | 29 | def test_alter_transaction(self) -> None: 30 | """Test case for alter_transaction 31 | 32 | Alter information of a transaction. 33 | """ 34 | pass 35 | 36 | def test_get_transaction(self) -> None: 37 | """Test case for get_transaction 38 | 39 | Get information about a transaction 40 | """ 41 | pass 42 | 43 | 44 | if __name__ == '__main__': 45 | unittest.main() 46 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/test/test_transaction_status.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Lance REST Namespace Specification 5 | 6 | **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 7 | 8 | The version of the OpenAPI document: 0.0.1 9 | Generated by OpenAPI Generator (https://openapi-generator.tech) 10 | 11 | Do not edit the class manually. 12 | """ # noqa: E501 13 | 14 | 15 | import unittest 16 | 17 | from lance_namespace_urllib3_client.models.transaction_status import TransactionStatus 18 | 19 | class TestTransactionStatus(unittest.TestCase): 20 | """TransactionStatus unit test stubs""" 21 | 22 | def setUp(self): 23 | pass 24 | 25 | def tearDown(self): 26 | pass 27 | 28 | def testTransactionStatus(self): 29 | """Test TransactionStatus""" 30 | # inst = TransactionStatus() 31 | 32 | if __name__ == '__main__': 33 | unittest.main() 34 | -------------------------------------------------------------------------------- /python/lance_namespace_urllib3_client/test/test_unset_property_mode.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Lance REST Namespace Specification 5 | 6 | **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 7 | 8 | The version of the OpenAPI document: 0.0.1 9 | Generated by OpenAPI Generator (https://openapi-generator.tech) 10 | 11 | Do not edit the class manually. 12 | """ # noqa: E501 13 | 14 | 15 | import unittest 16 | 17 | from lance_namespace_urllib3_client.models.unset_property_mode import UnsetPropertyMode 18 | 19 | class TestUnsetPropertyMode(unittest.TestCase): 20 | """UnsetPropertyMode unit test stubs""" 21 | 22 | def setUp(self): 23 | pass 24 | 25 | def tearDown(self): 26 | pass 27 | 28 | def testUnsetPropertyMode(self): 29 | """Test UnsetPropertyMode""" 30 | # inst = UnsetPropertyMode() 31 | 32 | if __name__ == '__main__': 33 | unittest.main() 34 | -------------------------------------------------------------------------------- /python/requirements.txt: -------------------------------------------------------------------------------- 1 | poetry==2.1.2 2 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | openapi-spec-validator==0.7.1 2 | openapi-generator-cli==7.12.0 3 | -------------------------------------------------------------------------------- /rust/Cargo.toml: -------------------------------------------------------------------------------- 1 | [workspace] 2 | resolver = "2" 3 | members = ["lance-namespace-reqwest-client"] -------------------------------------------------------------------------------- /rust/Makefile: -------------------------------------------------------------------------------- 1 | # Licensed under the Apache License, Version 2.0 (the "License"); 2 | # you may not use this file except in compliance with the License. 3 | # You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | VERSION = 0.0.1 14 | 15 | clean-rust-reqwest-client: 16 | rm -rf lance-namespace-reqwest-client/** 17 | 18 | gen-rust-reqwest-client: clean-rust-reqwest-client 19 | openapi-generator-cli generate \ 20 | -i ../spec/rest.yaml \ 21 | -g rust \ 22 | -o lance-namespace-reqwest-client \ 23 | --additional-properties=packageName=lance-namespace-reqwest-client,packageVersion=$(VERSION),asyncApi=true,library=reqwest 24 | rm -rf lance-namespace-reqwest-client/.openapi-generator-ignore 25 | rm -rf lance-namespace-reqwest-client/.openapi-generator 26 | rm -rf lance-namespace-reqwest-client/.gitignore 27 | rm -rf lance-namespace-reqwest-client/.travis.yml 28 | rm -rf lance-namespace-reqwest-client/git_push.sh 29 | 30 | build-rust-reqwest-client: gen-rust-reqwest-client 31 | cargo test 32 | 33 | clean: clean-rust-reqwest-client 34 | 35 | gen: gen-rust-reqwest-client 36 | 37 | build: build-rust-reqwest-client -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "lance-namespace-reqwest-client" 3 | version = "0.0.1" 4 | authors = ["OpenAPI Generator team and contributors"] 5 | description = "**Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. " 6 | license = "Apache 2.0" 7 | edition = "2021" 8 | 9 | [dependencies] 10 | serde = { version = "^1.0", features = ["derive"] } 11 | serde_json = "^1.0" 12 | serde_repr = "^0.1" 13 | url = "^2.5" 14 | reqwest = { version = "^0.12", features = ["json", "multipart"] } 15 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/AlterTransactionAction.md: -------------------------------------------------------------------------------- 1 | # AlterTransactionAction 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **set_status_action** | Option<[**models::AlterTransactionSetStatus**](AlterTransactionSetStatus.md)> | | [optional] 8 | **set_property_action** | Option<[**models::AlterTransactionSetProperty**](AlterTransactionSetProperty.md)> | | [optional] 9 | **unset_property_action** | Option<[**models::AlterTransactionUnsetProperty**](AlterTransactionUnsetProperty.md)> | | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/AlterTransactionRequest.md: -------------------------------------------------------------------------------- 1 | # AlterTransactionRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **actions** | [**Vec**](AlterTransactionAction.md) | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/AlterTransactionResponse.md: -------------------------------------------------------------------------------- 1 | # AlterTransactionResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **id** | **String** | | 8 | **status** | [**models::TransactionStatus**](TransactionStatus.md) | | 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/AlterTransactionSetProperty.md: -------------------------------------------------------------------------------- 1 | # AlterTransactionSetProperty 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **key** | Option<**String**> | | [optional] 8 | **value** | Option<**String**> | | [optional] 9 | **mode** | Option<[**models::SetPropertyMode**](SetPropertyMode.md)> | | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/AlterTransactionSetStatus.md: -------------------------------------------------------------------------------- 1 | # AlterTransactionSetStatus 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **status** | Option<[**models::TransactionStatus**](TransactionStatus.md)> | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/AlterTransactionUnsetProperty.md: -------------------------------------------------------------------------------- 1 | # AlterTransactionUnsetProperty 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **key** | Option<**String**> | | [optional] 8 | **mode** | Option<[**models::UnsetPropertyMode**](UnsetPropertyMode.md)> | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/CreateNamespaceRequest.md: -------------------------------------------------------------------------------- 1 | # CreateNamespaceRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | **parent** | Option<**Vec**> | | [optional] 9 | **mode** | **String** | | 10 | **options** | Option<**std::collections::HashMap**> | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/CreateNamespaceResponse.md: -------------------------------------------------------------------------------- 1 | # CreateNamespaceResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | **parent** | Option<**Vec**> | | [optional] 9 | **properties** | Option<**std::collections::HashMap**> | | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/DeregisterTableRequest.md: -------------------------------------------------------------------------------- 1 | # DeregisterTableRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | **namespace** | Option<**Vec**> | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/DeregisterTableResponse.md: -------------------------------------------------------------------------------- 1 | # DeregisterTableResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | Option<**String**> | | [optional] 8 | **namespace** | Option<**Vec**> | | [optional] 9 | **location** | Option<**String**> | | [optional] 10 | **properties** | Option<**std::collections::HashMap**> | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/DropNamespaceRequest.md: -------------------------------------------------------------------------------- 1 | # DropNamespaceRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | **parent** | Option<**Vec**> | | [optional] 9 | **mode** | Option<**String**> | The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. - FAIL (default): the server must return 400 indicating the namespace to drop does not exist. - SKIP: the server must return 204 indicating the drop operation has succeeded. | [optional] 10 | **behavior** | Option<**String**> | The behavior for dropping a namespace. - RESTRICT (default): the namespace should not contain any table or child namespace when drop is initiated. If tables are found, the server should return error and not drop the namespace. - CASCADE: all tables and child namespaces in the namespace are dropped before the namespace is dropped. | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/DropNamespaceResponse.md: -------------------------------------------------------------------------------- 1 | # DropNamespaceResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | Option<**String**> | | [optional] 8 | **parent** | Option<**Vec**> | | [optional] 9 | **properties** | Option<**std::collections::HashMap**> | | [optional] 10 | **transaction_id** | Option<**String**> | If present, indicating the operation is long running and should be tracked using GetTransaction | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/DropTableRequest.md: -------------------------------------------------------------------------------- 1 | # DropTableRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | **namespace** | Option<**Vec**> | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/DropTableResponse.md: -------------------------------------------------------------------------------- 1 | # DropTableResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | Option<**String**> | | [optional] 8 | **namespace** | Option<**Vec**> | | [optional] 9 | **location** | Option<**String**> | | [optional] 10 | **properties** | Option<**std::collections::HashMap**> | | [optional] 11 | **transaction_id** | Option<**String**> | | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/ErrorResponse.md: -------------------------------------------------------------------------------- 1 | # ErrorResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **r#type** | **String** | a URI identifier that categorizes the error | 8 | **title** | Option<**String**> | a brief, human-readable message about the error | [optional] 9 | **status** | Option<**i32**> | HTTP response code, (if present) it must match the actual HTTP code returned by the service | [optional] 10 | **detail** | Option<**String**> | a human-readable explanation of the error | [optional] 11 | **instance** | Option<**String**> | a URI that identifies the specific occurrence of the error | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/GetNamespaceRequest.md: -------------------------------------------------------------------------------- 1 | # GetNamespaceRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | **parent** | Option<**Vec**> | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/GetNamespaceResponse.md: -------------------------------------------------------------------------------- 1 | # GetNamespaceResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | **parent** | Option<**Vec**> | | [optional] 9 | **properties** | Option<**std::collections::HashMap**> | Properties stored on the namespace, if supported by the server. If the server does not support namespace properties, it should return null for this field. If namespace properties are supported, but none are set, it should return an empty object. | [optional][default to {}] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/GetTableRequest.md: -------------------------------------------------------------------------------- 1 | # GetTableRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | **namespace** | **Vec** | | 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/GetTableResponse.md: -------------------------------------------------------------------------------- 1 | # GetTableResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | **namespace** | **Vec** | | 9 | **location** | **String** | | 10 | **properties** | Option<**std::collections::HashMap**> | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/GetTransactionRequest.md: -------------------------------------------------------------------------------- 1 | # GetTransactionRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **id** | **String** | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/GetTransactionResponse.md: -------------------------------------------------------------------------------- 1 | # GetTransactionResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **id** | **String** | | 8 | **status** | [**models::TransactionStatus**](TransactionStatus.md) | | 9 | **properties** | Option<**std::collections::HashMap**> | | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/ListNamespacesRequest.md: -------------------------------------------------------------------------------- 1 | # ListNamespacesRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **parent** | Option<**Vec**> | | [optional] 8 | **page_token** | Option<**String**> | An opaque token that allows pagination for list APIs (e.g. ListNamespaces). For an initial client request for a list API, if the server cannot return all items in one response, or if there are more items than the `pageSize` specified in the client request, the server must return a `nextPageToken` in the response indicating there are more results available. After the initial request, the value of `nextPageToken` from each response must be used by the client as the `pageToken` parameter value for the next request. Clients must interpret either `null`, missing value or empty string value of `nextPageToken` from a server response as the end of the listing results. | [optional] 9 | **page_size** | Option<**i32**> | An inclusive upper bound of the number of results that a client will receive. | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/ListNamespacesResponse.md: -------------------------------------------------------------------------------- 1 | # ListNamespacesResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **namespaces** | **Vec** | | 8 | **next_page_token** | Option<**String**> | An opaque token that allows pagination for list APIs (e.g. ListNamespaces). For an initial client request for a list API, if the server cannot return all items in one response, or if there are more items than the `pageSize` specified in the client request, the server must return a `nextPageToken` in the response indicating there are more results available. After the initial request, the value of `nextPageToken` from each response must be used by the client as the `pageToken` parameter value for the next request. Clients must interpret either `null`, missing value or empty string value of `nextPageToken` from a server response as the end of the listing results. | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/NamespaceExistsRequest.md: -------------------------------------------------------------------------------- 1 | # NamespaceExistsRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | **parent** | Option<**Vec**> | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/NamespaceExistsResponse.md: -------------------------------------------------------------------------------- 1 | # NamespaceExistsResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **exists** | **bool** | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/RegisterTableRequest.md: -------------------------------------------------------------------------------- 1 | # RegisterTableRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | **namespace** | **Vec** | | 9 | **location** | **String** | | 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/RegisterTableResponse.md: -------------------------------------------------------------------------------- 1 | # RegisterTableResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | **namespace** | **Vec** | | 9 | **location** | **String** | | 10 | **properties** | Option<**std::collections::HashMap**> | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/SetPropertyMode.md: -------------------------------------------------------------------------------- 1 | # SetPropertyMode 2 | 3 | ## Enum Variants 4 | 5 | | Name | Value | 6 | |---- | -----| 7 | | Overwrite | OVERWRITE | 8 | | Fail | FAIL | 9 | | Skip | SKIP | 10 | 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/TableExistsRequest.md: -------------------------------------------------------------------------------- 1 | # TableExistsRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **String** | | 8 | **namespace** | **Vec** | | 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/TableExistsResponse.md: -------------------------------------------------------------------------------- 1 | # TableExistsResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **exists** | **bool** | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/TransactionApi.md: -------------------------------------------------------------------------------- 1 | # \TransactionApi 2 | 3 | All URIs are relative to *http://localhost:2333* 4 | 5 | Method | HTTP request | Description 6 | ------------- | ------------- | ------------- 7 | [**alter_transaction**](TransactionApi.md#alter_transaction) | **POST** /AlterTransaction | Alter information of a transaction. 8 | [**get_transaction**](TransactionApi.md#get_transaction) | **POST** /GetTransaction | Get information about a transaction 9 | 10 | 11 | 12 | ## alter_transaction 13 | 14 | > models::AlterTransactionResponse alter_transaction(alter_transaction_request) 15 | Alter information of a transaction. 16 | 17 | ### Parameters 18 | 19 | 20 | Name | Type | Description | Required | Notes 21 | ------------- | ------------- | ------------- | ------------- | ------------- 22 | **alter_transaction_request** | [**AlterTransactionRequest**](AlterTransactionRequest.md) | | [required] | 23 | 24 | ### Return type 25 | 26 | [**models::AlterTransactionResponse**](AlterTransactionResponse.md) 27 | 28 | ### Authorization 29 | 30 | No authorization required 31 | 32 | ### HTTP request headers 33 | 34 | - **Content-Type**: application/json 35 | - **Accept**: application/json 36 | 37 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 38 | 39 | 40 | ## get_transaction 41 | 42 | > models::GetTransactionResponse get_transaction(get_transaction_request) 43 | Get information about a transaction 44 | 45 | Return a detailed information for a given transaction 46 | 47 | ### Parameters 48 | 49 | 50 | Name | Type | Description | Required | Notes 51 | ------------- | ------------- | ------------- | ------------- | ------------- 52 | **get_transaction_request** | [**GetTransactionRequest**](GetTransactionRequest.md) | | [required] | 53 | 54 | ### Return type 55 | 56 | [**models::GetTransactionResponse**](GetTransactionResponse.md) 57 | 58 | ### Authorization 59 | 60 | No authorization required 61 | 62 | ### HTTP request headers 63 | 64 | - **Content-Type**: application/json 65 | - **Accept**: application/json 66 | 67 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 68 | 69 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/TransactionStatus.md: -------------------------------------------------------------------------------- 1 | # TransactionStatus 2 | 3 | ## Enum Variants 4 | 5 | | Name | Value | 6 | |---- | -----| 7 | | Queued | QUEUED | 8 | | Running | RUNNING | 9 | | Succeeded | SUCCEEDED | 10 | | Failed | FAILED | 11 | | Canceled | CANCELED | 12 | 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/docs/UnsetPropertyMode.md: -------------------------------------------------------------------------------- 1 | # UnsetPropertyMode 2 | 3 | ## Enum Variants 4 | 5 | | Name | Value | 6 | |---- | -----| 7 | | Skip | SKIP | 8 | | Fail | FAIL | 9 | 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/lib.rs: -------------------------------------------------------------------------------- 1 | #![allow(unused_imports)] 2 | #![allow(clippy::too_many_arguments)] 3 | 4 | extern crate serde_repr; 5 | extern crate serde; 6 | extern crate serde_json; 7 | extern crate url; 8 | extern crate reqwest; 9 | 10 | pub mod apis; 11 | pub mod models; 12 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/alter_transaction_request.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | /// AlterTransactionRequest : Alter a transaction with a list of actions. The server should either succeed and apply all actions, or fail and apply no action. 15 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 16 | pub struct AlterTransactionRequest { 17 | #[serde(rename = "actions")] 18 | pub actions: Vec, 19 | } 20 | 21 | impl AlterTransactionRequest { 22 | /// Alter a transaction with a list of actions. The server should either succeed and apply all actions, or fail and apply no action. 23 | pub fn new(actions: Vec) -> AlterTransactionRequest { 24 | AlterTransactionRequest { 25 | actions, 26 | } 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/alter_transaction_response.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct AlterTransactionResponse { 16 | #[serde(rename = "id")] 17 | pub id: String, 18 | #[serde(rename = "status")] 19 | pub status: models::TransactionStatus, 20 | } 21 | 22 | impl AlterTransactionResponse { 23 | pub fn new(id: String, status: models::TransactionStatus) -> AlterTransactionResponse { 24 | AlterTransactionResponse { 25 | id, 26 | status, 27 | } 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/alter_transaction_set_property.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct AlterTransactionSetProperty { 16 | #[serde(rename = "key", skip_serializing_if = "Option::is_none")] 17 | pub key: Option, 18 | #[serde(rename = "value", skip_serializing_if = "Option::is_none")] 19 | pub value: Option, 20 | #[serde(rename = "mode", skip_serializing_if = "Option::is_none")] 21 | pub mode: Option, 22 | } 23 | 24 | impl AlterTransactionSetProperty { 25 | pub fn new() -> AlterTransactionSetProperty { 26 | AlterTransactionSetProperty { 27 | key: None, 28 | value: None, 29 | mode: None, 30 | } 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/alter_transaction_set_status.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct AlterTransactionSetStatus { 16 | #[serde(rename = "status", skip_serializing_if = "Option::is_none")] 17 | pub status: Option, 18 | } 19 | 20 | impl AlterTransactionSetStatus { 21 | pub fn new() -> AlterTransactionSetStatus { 22 | AlterTransactionSetStatus { 23 | status: None, 24 | } 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/alter_transaction_unset_property.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct AlterTransactionUnsetProperty { 16 | #[serde(rename = "key", skip_serializing_if = "Option::is_none")] 17 | pub key: Option, 18 | #[serde(rename = "mode", skip_serializing_if = "Option::is_none")] 19 | pub mode: Option, 20 | } 21 | 22 | impl AlterTransactionUnsetProperty { 23 | pub fn new() -> AlterTransactionUnsetProperty { 24 | AlterTransactionUnsetProperty { 25 | key: None, 26 | mode: None, 27 | } 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/create_namespace_response.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct CreateNamespaceResponse { 16 | #[serde(rename = "name")] 17 | pub name: String, 18 | #[serde(rename = "parent", skip_serializing_if = "Option::is_none")] 19 | pub parent: Option>, 20 | #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] 21 | pub properties: Option>, 22 | } 23 | 24 | impl CreateNamespaceResponse { 25 | pub fn new(name: String) -> CreateNamespaceResponse { 26 | CreateNamespaceResponse { 27 | name, 28 | parent: None, 29 | properties: None, 30 | } 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/deregister_table_request.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct DeregisterTableRequest { 16 | #[serde(rename = "name")] 17 | pub name: String, 18 | #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")] 19 | pub namespace: Option>, 20 | } 21 | 22 | impl DeregisterTableRequest { 23 | pub fn new(name: String) -> DeregisterTableRequest { 24 | DeregisterTableRequest { 25 | name, 26 | namespace: None, 27 | } 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/deregister_table_response.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct DeregisterTableResponse { 16 | #[serde(rename = "name", skip_serializing_if = "Option::is_none")] 17 | pub name: Option, 18 | #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")] 19 | pub namespace: Option>, 20 | #[serde(rename = "location", skip_serializing_if = "Option::is_none")] 21 | pub location: Option, 22 | #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] 23 | pub properties: Option>, 24 | } 25 | 26 | impl DeregisterTableResponse { 27 | pub fn new() -> DeregisterTableResponse { 28 | DeregisterTableResponse { 29 | name: None, 30 | namespace: None, 31 | location: None, 32 | properties: None, 33 | } 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/drop_namespace_response.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct DropNamespaceResponse { 16 | #[serde(rename = "name", skip_serializing_if = "Option::is_none")] 17 | pub name: Option, 18 | #[serde(rename = "parent", skip_serializing_if = "Option::is_none")] 19 | pub parent: Option>, 20 | #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] 21 | pub properties: Option>, 22 | /// If present, indicating the operation is long running and should be tracked using GetTransaction 23 | #[serde(rename = "transactionId", skip_serializing_if = "Option::is_none")] 24 | pub transaction_id: Option, 25 | } 26 | 27 | impl DropNamespaceResponse { 28 | pub fn new() -> DropNamespaceResponse { 29 | DropNamespaceResponse { 30 | name: None, 31 | parent: None, 32 | properties: None, 33 | transaction_id: None, 34 | } 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/drop_table_request.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct DropTableRequest { 16 | #[serde(rename = "name")] 17 | pub name: String, 18 | #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")] 19 | pub namespace: Option>, 20 | } 21 | 22 | impl DropTableRequest { 23 | pub fn new(name: String) -> DropTableRequest { 24 | DropTableRequest { 25 | name, 26 | namespace: None, 27 | } 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/drop_table_response.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct DropTableResponse { 16 | #[serde(rename = "name", skip_serializing_if = "Option::is_none")] 17 | pub name: Option, 18 | #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")] 19 | pub namespace: Option>, 20 | #[serde(rename = "location", skip_serializing_if = "Option::is_none")] 21 | pub location: Option, 22 | #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] 23 | pub properties: Option>, 24 | #[serde(rename = "transactionId", skip_serializing_if = "Option::is_none")] 25 | pub transaction_id: Option, 26 | } 27 | 28 | impl DropTableResponse { 29 | pub fn new() -> DropTableResponse { 30 | DropTableResponse { 31 | name: None, 32 | namespace: None, 33 | location: None, 34 | properties: None, 35 | transaction_id: None, 36 | } 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/get_namespace_request.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct GetNamespaceRequest { 16 | #[serde(rename = "name")] 17 | pub name: String, 18 | #[serde(rename = "parent", skip_serializing_if = "Option::is_none")] 19 | pub parent: Option>, 20 | } 21 | 22 | impl GetNamespaceRequest { 23 | pub fn new(name: String) -> GetNamespaceRequest { 24 | GetNamespaceRequest { 25 | name, 26 | parent: None, 27 | } 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/get_namespace_response.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct GetNamespaceResponse { 16 | #[serde(rename = "name")] 17 | pub name: String, 18 | #[serde(rename = "parent", skip_serializing_if = "Option::is_none")] 19 | pub parent: Option>, 20 | /// Properties stored on the namespace, if supported by the server. If the server does not support namespace properties, it should return null for this field. If namespace properties are supported, but none are set, it should return an empty object. 21 | #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] 22 | pub properties: Option>, 23 | } 24 | 25 | impl GetNamespaceResponse { 26 | pub fn new(name: String) -> GetNamespaceResponse { 27 | GetNamespaceResponse { 28 | name, 29 | parent: None, 30 | properties: None, 31 | } 32 | } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/get_table_request.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct GetTableRequest { 16 | #[serde(rename = "name")] 17 | pub name: String, 18 | #[serde(rename = "namespace")] 19 | pub namespace: Vec, 20 | } 21 | 22 | impl GetTableRequest { 23 | pub fn new(name: String, namespace: Vec) -> GetTableRequest { 24 | GetTableRequest { 25 | name, 26 | namespace, 27 | } 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/get_table_response.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct GetTableResponse { 16 | #[serde(rename = "name")] 17 | pub name: String, 18 | #[serde(rename = "namespace")] 19 | pub namespace: Vec, 20 | #[serde(rename = "location")] 21 | pub location: String, 22 | #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] 23 | pub properties: Option>, 24 | } 25 | 26 | impl GetTableResponse { 27 | pub fn new(name: String, namespace: Vec, location: String) -> GetTableResponse { 28 | GetTableResponse { 29 | name, 30 | namespace, 31 | location, 32 | properties: None, 33 | } 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/get_transaction_request.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct GetTransactionRequest { 16 | #[serde(rename = "id")] 17 | pub id: String, 18 | } 19 | 20 | impl GetTransactionRequest { 21 | pub fn new(id: String) -> GetTransactionRequest { 22 | GetTransactionRequest { 23 | id, 24 | } 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/get_transaction_response.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct GetTransactionResponse { 16 | #[serde(rename = "id")] 17 | pub id: String, 18 | #[serde(rename = "status")] 19 | pub status: models::TransactionStatus, 20 | #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] 21 | pub properties: Option>, 22 | } 23 | 24 | impl GetTransactionResponse { 25 | pub fn new(id: String, status: models::TransactionStatus) -> GetTransactionResponse { 26 | GetTransactionResponse { 27 | id, 28 | status, 29 | properties: None, 30 | } 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/namespace_exists_request.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct NamespaceExistsRequest { 16 | #[serde(rename = "name")] 17 | pub name: String, 18 | #[serde(rename = "parent", skip_serializing_if = "Option::is_none")] 19 | pub parent: Option>, 20 | } 21 | 22 | impl NamespaceExistsRequest { 23 | pub fn new(name: String) -> NamespaceExistsRequest { 24 | NamespaceExistsRequest { 25 | name, 26 | parent: None, 27 | } 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/namespace_exists_response.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct NamespaceExistsResponse { 16 | #[serde(rename = "exists")] 17 | pub exists: bool, 18 | } 19 | 20 | impl NamespaceExistsResponse { 21 | pub fn new(exists: bool) -> NamespaceExistsResponse { 22 | NamespaceExistsResponse { 23 | exists, 24 | } 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/register_table_request.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct RegisterTableRequest { 16 | #[serde(rename = "name")] 17 | pub name: String, 18 | #[serde(rename = "namespace")] 19 | pub namespace: Vec, 20 | #[serde(rename = "location")] 21 | pub location: String, 22 | } 23 | 24 | impl RegisterTableRequest { 25 | pub fn new(name: String, namespace: Vec, location: String) -> RegisterTableRequest { 26 | RegisterTableRequest { 27 | name, 28 | namespace, 29 | location, 30 | } 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/register_table_response.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct RegisterTableResponse { 16 | #[serde(rename = "name")] 17 | pub name: String, 18 | #[serde(rename = "namespace")] 19 | pub namespace: Vec, 20 | #[serde(rename = "location")] 21 | pub location: String, 22 | #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] 23 | pub properties: Option>, 24 | } 25 | 26 | impl RegisterTableResponse { 27 | pub fn new(name: String, namespace: Vec, location: String) -> RegisterTableResponse { 28 | RegisterTableResponse { 29 | name, 30 | namespace, 31 | location, 32 | properties: None, 33 | } 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/table_exists_request.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct TableExistsRequest { 16 | #[serde(rename = "name")] 17 | pub name: String, 18 | #[serde(rename = "namespace")] 19 | pub namespace: Vec, 20 | } 21 | 22 | impl TableExistsRequest { 23 | pub fn new(name: String, namespace: Vec) -> TableExistsRequest { 24 | TableExistsRequest { 25 | name, 26 | namespace, 27 | } 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/table_exists_response.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] 15 | pub struct TableExistsResponse { 16 | #[serde(rename = "exists")] 17 | pub exists: bool, 18 | } 19 | 20 | impl TableExistsResponse { 21 | pub fn new(exists: bool) -> TableExistsResponse { 22 | TableExistsResponse { 23 | exists, 24 | } 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/transaction_status.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | /// 15 | #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] 16 | pub enum TransactionStatus { 17 | #[serde(rename = "QUEUED")] 18 | Queued, 19 | #[serde(rename = "RUNNING")] 20 | Running, 21 | #[serde(rename = "SUCCEEDED")] 22 | Succeeded, 23 | #[serde(rename = "FAILED")] 24 | Failed, 25 | #[serde(rename = "CANCELED")] 26 | Canceled, 27 | 28 | } 29 | 30 | impl std::fmt::Display for TransactionStatus { 31 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { 32 | match self { 33 | Self::Queued => write!(f, "QUEUED"), 34 | Self::Running => write!(f, "RUNNING"), 35 | Self::Succeeded => write!(f, "SUCCEEDED"), 36 | Self::Failed => write!(f, "FAILED"), 37 | Self::Canceled => write!(f, "CANCELED"), 38 | } 39 | } 40 | } 41 | 42 | impl Default for TransactionStatus { 43 | fn default() -> TransactionStatus { 44 | Self::Queued 45 | } 46 | } 47 | 48 | -------------------------------------------------------------------------------- /rust/lance-namespace-reqwest-client/src/models/unset_property_mode.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Lance REST Namespace Specification 3 | * 4 | * **Lance Namespace Specification** is an open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables (a.k.a. Lance datasets). It describes how a metadata service like Apache Hive MetaStore (HMS), Apache Gravitino, Unity Catalog, etc. should store and use Lance tables, as well as how ML/AI tools and analytics compute engines (will together be called _\"tools\"_ in this document) should integrate with Lance tables. A Lance namespace is a centralized repository for discovering, organizing, and managing Lance tables. It can either contain a collection of tables, or a collection of Lance namespaces recursively. It is designed to encapsulates concepts including namespace, metastore, database, schema, etc. that frequently appear in other similar data systems to allow easy integration with any system of any type of object hierarchy. In an enterprise environment, typically there is a requirement to store tables in a metadata service for more advanced governance features around access control, auditing, lineage tracking, etc. **Lance REST Namespace** is an OpenAPI protocol that enables reading, writing and managing Lance tables by connecting those metadata services or building a custom metadata server in a standardized way. 5 | * 6 | * The version of the OpenAPI document: 0.0.1 7 | * 8 | * Generated by: https://openapi-generator.tech 9 | */ 10 | 11 | use crate::models; 12 | use serde::{Deserialize, Serialize}; 13 | 14 | /// UnsetPropertyMode : The behavior if the property key to unset does not exist. - SKIP (default): skip the property to unset - FAIL: fail the entire operation 15 | /// The behavior if the property key to unset does not exist. - SKIP (default): skip the property to unset - FAIL: fail the entire operation 16 | #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] 17 | pub enum UnsetPropertyMode { 18 | #[serde(rename = "SKIP")] 19 | Skip, 20 | #[serde(rename = "FAIL")] 21 | Fail, 22 | 23 | } 24 | 25 | impl std::fmt::Display for UnsetPropertyMode { 26 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { 27 | match self { 28 | Self::Skip => write!(f, "SKIP"), 29 | Self::Fail => write!(f, "FAIL"), 30 | } 31 | } 32 | } 33 | 34 | impl Default for UnsetPropertyMode { 35 | fn default() -> UnsetPropertyMode { 36 | Self::Skip 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /spec/impls/dir.md: -------------------------------------------------------------------------------- 1 | # Lance Directory Namespace 2 | 3 | **Lance directory namespace** is a lightweight and simple 1-level Lance namespace that only contains a list of tables. 4 | People can easily get started with creating and using Lance tables directly on top of any 5 | local or remote storage system with a Lance directory namespace. 6 | 7 | A directory namespace maps to a directory on storage, we call such directory a **namespace directory**. 8 | A Lance table corresponds to a subdirectory in the namespace directory. 9 | We call such a subdirectories **table directory**. 10 | Consider the following example namespace directory layout: 11 | 12 | ``` 13 | . 14 | └── /my/dir1/ 15 | ├── table1/ 16 | │ ├── data/ 17 | │ │ ├── 0aa36d91-8293-406b-958c-faf9e7547938.lance 18 | │ │ └── ed7af55d-b064-4442-bcb5-47b524e98d0e.lance 19 | │ ├── _versions/ 20 | │ │ └── 9223372036854775707.manifest 21 | │ ├── _indices/ 22 | │ │ └── 85814508-ed9a-41f2-b939-2050bb7a0ed5-fts/ 23 | │ │ └── index.idx 24 | │ └── _deletions/ 25 | │ └── 75c69434-cde5-4c80-9fe1-e79a6d952fbf.bin 26 | ├── table2 27 | └── table3 28 | ``` 29 | 30 | This describes a Lance directory namespace with the namespace directory at `/my/dir1/`. 31 | It contains tables `table1`, `table2`, `table3` sitting at table directories 32 | `/my/dirs/table1`, `/my/dirs/table2`, `/my/dirs/table3` respectively. 33 | 34 | ## Directory Path 35 | 36 | There are 3 ways to specify a directory path: 37 | 38 | 1. **URI**: a URI that follows the [RFC 3986 specification](https://datatracker.ietf.org/doc/html/rfc3986), e.g. `s3://mu-bucket/prefix`. 39 | 2. **Absolute POSIX storage path**: an absolute file path in a POSIX standard storage, e.g. `/my/dir`. 40 | 3. **Relative POSIX storage path**: a relative file path in a POSIX standard storage, e.g. `my/dir2`, `./my/dir3`. 41 | The absolute path of the directory should be based on the current directory of the running process. 42 | 43 | ## Table Existence 44 | 45 | A table exists in a Lance directory namespace if a table directory of the specific name exists. 46 | This is true even if the directory is empty or the contents in the directory does not follow the Lance table format spec. 47 | For such cases, an operation that lists all tables in the directory should show the specific table, 48 | and an operation that checks if a table exists should return true. 49 | However, an operation that loads the Lance table metadata should fail with error 50 | indicating the content in the folder is not compliant with the Lance table format spec. 51 | -------------------------------------------------------------------------------- /spec/impls/hive.md: -------------------------------------------------------------------------------- 1 | # Lance HMS Namespace 2 | 3 | Lance HMS Namespace directly integrates with HMS to offer a 2-level Lance namespace experience. 4 | The root namespace maps to the entire HMS, which has HMS databases as child namespaces. 5 | 6 | TODO: add more information after implementation is officially added. -------------------------------------------------------------------------------- /spec/layout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lancedb/lance-namespace/7dfe5ac82e1ede2e34e08b24e47d7bde3a759a2c/spec/layout.png --------------------------------------------------------------------------------