diff --git a/docs/src/client/operations/models/AlterTableAddColumnsRequest.md b/docs/src/client/operations/models/AlterTableAddColumnsRequest.md index a43d37aa..ea151f04 100644 --- a/docs/src/client/operations/models/AlterTableAddColumnsRequest.md +++ b/docs/src/client/operations/models/AlterTableAddColumnsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**newColumns** | [**List<NewColumnTransform>**](NewColumnTransform.md) | List of new columns to add | | diff --git a/docs/src/client/operations/models/AlterTableAlterColumnsRequest.md b/docs/src/client/operations/models/AlterTableAlterColumnsRequest.md index b387bd23..ff5520c8 100644 --- a/docs/src/client/operations/models/AlterTableAlterColumnsRequest.md +++ b/docs/src/client/operations/models/AlterTableAlterColumnsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**alterations** | [**List<AlterColumnsEntry>**](AlterColumnsEntry.md) | List of column alterations to perform | | diff --git a/docs/src/client/operations/models/AlterTableDropColumnsRequest.md b/docs/src/client/operations/models/AlterTableDropColumnsRequest.md index b85f73b2..038eb111 100644 --- a/docs/src/client/operations/models/AlterTableDropColumnsRequest.md +++ b/docs/src/client/operations/models/AlterTableDropColumnsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**columns** | **List<String>** | Names of columns to drop | | diff --git a/docs/src/client/operations/models/AlterTransactionRequest.md b/docs/src/client/operations/models/AlterTransactionRequest.md index f5a70fd2..9d455e8a 100644 --- a/docs/src/client/operations/models/AlterTransactionRequest.md +++ b/docs/src/client/operations/models/AlterTransactionRequest.md @@ -9,6 +9,7 @@ Alter a transaction with a list of actions. The server should either succeed and | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**actions** | [**List<AlterTransactionAction>**](AlterTransactionAction.md) | | | diff --git a/docs/src/client/operations/models/AnalyzeTableQueryPlanRequest.md b/docs/src/client/operations/models/AnalyzeTableQueryPlanRequest.md index 169c50ac..66f5a8cc 100644 --- a/docs/src/client/operations/models/AnalyzeTableQueryPlanRequest.md +++ b/docs/src/client/operations/models/AnalyzeTableQueryPlanRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**bypassVectorIndex** | **Boolean** | Whether to bypass vector index | [optional] | |**columns** | [**QueryTableRequestColumns**](QueryTableRequestColumns.md) | | [optional] | diff --git a/docs/src/client/operations/models/CountTableRowsRequest.md b/docs/src/client/operations/models/CountTableRowsRequest.md index 76f0642e..b03c8179 100644 --- a/docs/src/client/operations/models/CountTableRowsRequest.md +++ b/docs/src/client/operations/models/CountTableRowsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**version** | **Long** | Version of the table to describe. If not specified, server should resolve it to the latest version. | [optional] | |**predicate** | **String** | Optional SQL predicate to filter rows for counting | [optional] | diff --git a/docs/src/client/operations/models/CreateEmptyTableRequest.md b/docs/src/client/operations/models/CreateEmptyTableRequest.md index 12a851e7..2266c682 100644 --- a/docs/src/client/operations/models/CreateEmptyTableRequest.md +++ b/docs/src/client/operations/models/CreateEmptyTableRequest.md @@ -9,6 +9,7 @@ Request for creating an empty table. **Deprecated**: Use `DeclareTableRequest` | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**location** | **String** | Optional storage location for the table. If not provided, the namespace implementation should determine the table location. | [optional] | diff --git a/docs/src/client/operations/models/CreateNamespaceRequest.md b/docs/src/client/operations/models/CreateNamespaceRequest.md index 4f2e0292..ea97059d 100644 --- a/docs/src/client/operations/models/CreateNamespaceRequest.md +++ b/docs/src/client/operations/models/CreateNamespaceRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**mode** | **String** | There are three modes when trying to create a namespace, to differentiate the behavior when a namespace of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create: the operation fails with 409. * ExistOk: the operation succeeds and the existing namespace is kept. * Overwrite: the existing namespace is dropped and a new empty namespace with this name is created. | [optional] | |**properties** | **Map<String, String>** | | [optional] | diff --git a/docs/src/client/operations/models/CreateTableIndexRequest.md b/docs/src/client/operations/models/CreateTableIndexRequest.md index 6932b83b..aa0acca4 100644 --- a/docs/src/client/operations/models/CreateTableIndexRequest.md +++ b/docs/src/client/operations/models/CreateTableIndexRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**column** | **String** | Name of the column to create index on | | |**indexType** | **String** | Type of index to create (e.g., BTREE, BITMAP, LABEL_LIST, IVF_FLAT, IVF_PQ, IVF_HNSW_SQ, FTS) | | diff --git a/docs/src/client/operations/models/CreateTableRequest.md b/docs/src/client/operations/models/CreateTableRequest.md index 0ee9ec96..a4f6af4c 100644 --- a/docs/src/client/operations/models/CreateTableRequest.md +++ b/docs/src/client/operations/models/CreateTableRequest.md @@ -9,6 +9,7 @@ Request for creating a table, excluding the Arrow IPC stream. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**mode** | **String** | There are three modes when trying to create a table, to differentiate the behavior when a table of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create: the operation fails with 409. * ExistOk: the operation succeeds and the existing table is kept. * Overwrite: the existing table is dropped and a new table with this name is created. | [optional] | diff --git a/docs/src/client/operations/models/CreateTableTagRequest.md b/docs/src/client/operations/models/CreateTableTagRequest.md index 7943a746..94612d5b 100644 --- a/docs/src/client/operations/models/CreateTableTagRequest.md +++ b/docs/src/client/operations/models/CreateTableTagRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**tag** | **String** | Name of the tag to create | | |**version** | **Long** | Version number for the tag to point to | | diff --git a/docs/src/client/operations/models/DeclareTableRequest.md b/docs/src/client/operations/models/DeclareTableRequest.md index 46c916d7..029c6784 100644 --- a/docs/src/client/operations/models/DeclareTableRequest.md +++ b/docs/src/client/operations/models/DeclareTableRequest.md @@ -9,6 +9,7 @@ Request for declaring a table. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**location** | **String** | Optional storage location for the table. If not provided, the namespace implementation should determine the table location. | [optional] | diff --git a/docs/src/client/operations/models/DeleteFromTableRequest.md b/docs/src/client/operations/models/DeleteFromTableRequest.md index 966d0bb3..0ef5b076 100644 --- a/docs/src/client/operations/models/DeleteFromTableRequest.md +++ b/docs/src/client/operations/models/DeleteFromTableRequest.md @@ -9,6 +9,7 @@ Delete data from table based on a SQL predicate. Returns the number of rows that | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | The namespace identifier | [optional] | |**predicate** | **String** | SQL predicate to filter rows for deletion | | diff --git a/docs/src/client/operations/models/DeleteTableTagRequest.md b/docs/src/client/operations/models/DeleteTableTagRequest.md index 99701201..6d80549c 100644 --- a/docs/src/client/operations/models/DeleteTableTagRequest.md +++ b/docs/src/client/operations/models/DeleteTableTagRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**tag** | **String** | Name of the tag to delete | | diff --git a/docs/src/client/operations/models/DeregisterTableRequest.md b/docs/src/client/operations/models/DeregisterTableRequest.md index 7bf8637a..273f3fc7 100644 --- a/docs/src/client/operations/models/DeregisterTableRequest.md +++ b/docs/src/client/operations/models/DeregisterTableRequest.md @@ -9,6 +9,7 @@ The table content remains available in the storage. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/docs/src/client/operations/models/DescribeNamespaceRequest.md b/docs/src/client/operations/models/DescribeNamespaceRequest.md index b36086c2..6a5a3491 100644 --- a/docs/src/client/operations/models/DescribeNamespaceRequest.md +++ b/docs/src/client/operations/models/DescribeNamespaceRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/docs/src/client/operations/models/DescribeTableIndexStatsRequest.md b/docs/src/client/operations/models/DescribeTableIndexStatsRequest.md index 996eaa86..30a40099 100644 --- a/docs/src/client/operations/models/DescribeTableIndexStatsRequest.md +++ b/docs/src/client/operations/models/DescribeTableIndexStatsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**version** | **Long** | Optional table version to get stats for | [optional] | |**indexName** | **String** | Name of the index | [optional] | diff --git a/docs/src/client/operations/models/DescribeTableRequest.md b/docs/src/client/operations/models/DescribeTableRequest.md index 12f278be..b60c5d62 100644 --- a/docs/src/client/operations/models/DescribeTableRequest.md +++ b/docs/src/client/operations/models/DescribeTableRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**version** | **Long** | Version of the table to describe. If not specified, server should resolve it to the latest version. | [optional] | |**withTableUri** | **Boolean** | Whether to include the table URI in the response. Default is false. | [optional] | diff --git a/docs/src/client/operations/models/DescribeTransactionRequest.md b/docs/src/client/operations/models/DescribeTransactionRequest.md index e6c08e7d..f8c163e7 100644 --- a/docs/src/client/operations/models/DescribeTransactionRequest.md +++ b/docs/src/client/operations/models/DescribeTransactionRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/docs/src/client/operations/models/DropNamespaceRequest.md b/docs/src/client/operations/models/DropNamespaceRequest.md index 16d23ccb..e615e179 100644 --- a/docs/src/client/operations/models/DropNamespaceRequest.md +++ b/docs/src/client/operations/models/DropNamespaceRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**mode** | **String** | The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. Case insensitive, supports both PascalCase and snake_case. Valid values are: - 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] | |**behavior** | **String** | The behavior for dropping a namespace. Case insensitive, supports both PascalCase and snake_case. Valid values are: - 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] | diff --git a/docs/src/client/operations/models/DropTableIndexRequest.md b/docs/src/client/operations/models/DropTableIndexRequest.md index 77bf0b47..36a69b6b 100644 --- a/docs/src/client/operations/models/DropTableIndexRequest.md +++ b/docs/src/client/operations/models/DropTableIndexRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**indexName** | **String** | Name of the index to drop | [optional] | diff --git a/docs/src/client/operations/models/DropTableRequest.md b/docs/src/client/operations/models/DropTableRequest.md index 507b5a77..39789434 100644 --- a/docs/src/client/operations/models/DropTableRequest.md +++ b/docs/src/client/operations/models/DropTableRequest.md @@ -9,6 +9,7 @@ If the table and its data can be immediately deleted, return information of the | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/docs/src/client/operations/models/ExplainTableQueryPlanRequest.md b/docs/src/client/operations/models/ExplainTableQueryPlanRequest.md index 1b1cf649..a6c0cbf5 100644 --- a/docs/src/client/operations/models/ExplainTableQueryPlanRequest.md +++ b/docs/src/client/operations/models/ExplainTableQueryPlanRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**query** | [**QueryTableRequest**](QueryTableRequest.md) | | | |**verbose** | **Boolean** | Whether to return verbose explanation | [optional] | diff --git a/docs/src/client/operations/models/GetTableStatsRequest.md b/docs/src/client/operations/models/GetTableStatsRequest.md index 4215ed04..89057661 100644 --- a/docs/src/client/operations/models/GetTableStatsRequest.md +++ b/docs/src/client/operations/models/GetTableStatsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/docs/src/client/operations/models/GetTableTagVersionRequest.md b/docs/src/client/operations/models/GetTableTagVersionRequest.md index 33445977..db878da2 100644 --- a/docs/src/client/operations/models/GetTableTagVersionRequest.md +++ b/docs/src/client/operations/models/GetTableTagVersionRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**tag** | **String** | Name of the tag to get version for | | diff --git a/docs/src/client/operations/models/InsertIntoTableRequest.md b/docs/src/client/operations/models/InsertIntoTableRequest.md index 7f098c03..e1c1d121 100644 --- a/docs/src/client/operations/models/InsertIntoTableRequest.md +++ b/docs/src/client/operations/models/InsertIntoTableRequest.md @@ -9,6 +9,7 @@ Request for inserting records into a table, excluding the Arrow IPC stream. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**mode** | **String** | How the insert should behave. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Append (default): insert data to the existing table - Overwrite: remove all data in the table and then insert data to it | [optional] | diff --git a/docs/src/client/operations/models/ListNamespacesRequest.md b/docs/src/client/operations/models/ListNamespacesRequest.md index d584efd6..4e834ac4 100644 --- a/docs/src/client/operations/models/ListNamespacesRequest.md +++ b/docs/src/client/operations/models/ListNamespacesRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**pageToken** | **String** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] | |**limit** | **Integer** | An inclusive upper bound of the number of results that a caller will receive. | [optional] | diff --git a/docs/src/client/operations/models/ListTableIndicesRequest.md b/docs/src/client/operations/models/ListTableIndicesRequest.md index b37b7018..7f46a0f3 100644 --- a/docs/src/client/operations/models/ListTableIndicesRequest.md +++ b/docs/src/client/operations/models/ListTableIndicesRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | The namespace identifier | [optional] | |**version** | **Long** | Optional table version to list indexes from | [optional] | |**pageToken** | **String** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] | diff --git a/docs/src/client/operations/models/ListTableTagsRequest.md b/docs/src/client/operations/models/ListTableTagsRequest.md index 6e021061..d6733803 100644 --- a/docs/src/client/operations/models/ListTableTagsRequest.md +++ b/docs/src/client/operations/models/ListTableTagsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | The table identifier | [optional] | |**pageToken** | **String** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] | |**limit** | **Integer** | An inclusive upper bound of the number of results that a caller will receive. | [optional] | diff --git a/docs/src/client/operations/models/ListTableVersionsRequest.md b/docs/src/client/operations/models/ListTableVersionsRequest.md index aed55926..bae85606 100644 --- a/docs/src/client/operations/models/ListTableVersionsRequest.md +++ b/docs/src/client/operations/models/ListTableVersionsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**pageToken** | **String** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] | |**limit** | **Integer** | An inclusive upper bound of the number of results that a caller will receive. | [optional] | diff --git a/docs/src/client/operations/models/ListTablesRequest.md b/docs/src/client/operations/models/ListTablesRequest.md index b765f0e7..4a70513b 100644 --- a/docs/src/client/operations/models/ListTablesRequest.md +++ b/docs/src/client/operations/models/ListTablesRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**pageToken** | **String** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] | |**limit** | **Integer** | An inclusive upper bound of the number of results that a caller will receive. | [optional] | diff --git a/docs/src/client/operations/models/MergeInsertIntoTableRequest.md b/docs/src/client/operations/models/MergeInsertIntoTableRequest.md index 9a75f9df..4cd78c21 100644 --- a/docs/src/client/operations/models/MergeInsertIntoTableRequest.md +++ b/docs/src/client/operations/models/MergeInsertIntoTableRequest.md @@ -9,6 +9,7 @@ Request for merging or inserting records into a table, excluding the Arrow IPC s | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**on** | **String** | Column name to use for matching rows (required) | [optional] | |**whenMatchedUpdateAll** | **Boolean** | Update all columns when rows match | [optional] | diff --git a/docs/src/client/operations/models/NamespaceExistsRequest.md b/docs/src/client/operations/models/NamespaceExistsRequest.md index a63b32b1..c8add1d8 100644 --- a/docs/src/client/operations/models/NamespaceExistsRequest.md +++ b/docs/src/client/operations/models/NamespaceExistsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/docs/src/client/operations/models/QueryTableRequest.md b/docs/src/client/operations/models/QueryTableRequest.md index 9628ec35..6839c87e 100644 --- a/docs/src/client/operations/models/QueryTableRequest.md +++ b/docs/src/client/operations/models/QueryTableRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**bypassVectorIndex** | **Boolean** | Whether to bypass vector index | [optional] | |**columns** | [**QueryTableRequestColumns**](QueryTableRequestColumns.md) | | [optional] | diff --git a/docs/src/client/operations/models/RegisterTableRequest.md b/docs/src/client/operations/models/RegisterTableRequest.md index 67614cf2..69ec00dd 100644 --- a/docs/src/client/operations/models/RegisterTableRequest.md +++ b/docs/src/client/operations/models/RegisterTableRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**location** | **String** | | | |**mode** | **String** | There are two modes when trying to register a table, to differentiate the behavior when a table of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create (default): the operation fails with 409. * Overwrite: the existing table registration is replaced with the new registration. | [optional] | diff --git a/docs/src/client/operations/models/RenameTableRequest.md b/docs/src/client/operations/models/RenameTableRequest.md index fb951c6f..4f175830 100644 --- a/docs/src/client/operations/models/RenameTableRequest.md +++ b/docs/src/client/operations/models/RenameTableRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | The table identifier | [optional] | |**newTableName** | **String** | New name for the table | | |**newNamespaceId** | **List<String>** | New namespace identifier to move the table to (optional, if not specified the table stays in the same namespace) | [optional] | diff --git a/docs/src/client/operations/models/RestoreTableRequest.md b/docs/src/client/operations/models/RestoreTableRequest.md index 59cd4ef3..7c10e3e4 100644 --- a/docs/src/client/operations/models/RestoreTableRequest.md +++ b/docs/src/client/operations/models/RestoreTableRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**version** | **Long** | Version to restore to | | diff --git a/docs/src/client/operations/models/TableExistsRequest.md b/docs/src/client/operations/models/TableExistsRequest.md index 929758c9..97f85519 100644 --- a/docs/src/client/operations/models/TableExistsRequest.md +++ b/docs/src/client/operations/models/TableExistsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**version** | **Long** | Version of the table to check existence. If not specified, server should resolve it to the latest version. | [optional] | diff --git a/docs/src/client/operations/models/UpdateTableRequest.md b/docs/src/client/operations/models/UpdateTableRequest.md index 29ba3cfe..bf227aed 100644 --- a/docs/src/client/operations/models/UpdateTableRequest.md +++ b/docs/src/client/operations/models/UpdateTableRequest.md @@ -9,6 +9,7 @@ Each update consists of a column name and an SQL expression that will be evaluat | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**predicate** | **String** | Optional SQL predicate to filter rows for update | [optional] | |**updates** | **List<List<String>>** | List of column updates as [column_name, expression] pairs | | diff --git a/docs/src/client/operations/models/UpdateTableSchemaMetadataRequest.md b/docs/src/client/operations/models/UpdateTableSchemaMetadataRequest.md index 69470ea3..9f715b3b 100644 --- a/docs/src/client/operations/models/UpdateTableSchemaMetadataRequest.md +++ b/docs/src/client/operations/models/UpdateTableSchemaMetadataRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | The table identifier | [optional] | |**metadata** | **Map<String, String>** | Schema metadata key-value pairs to set | [optional] | diff --git a/docs/src/client/operations/models/UpdateTableTagRequest.md b/docs/src/client/operations/models/UpdateTableTagRequest.md index 9ee43332..94d1ec9e 100644 --- a/docs/src/client/operations/models/UpdateTableTagRequest.md +++ b/docs/src/client/operations/models/UpdateTableTagRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**tag** | **String** | Name of the tag to update | | |**version** | **Long** | New version number for the tag to point to | | diff --git a/docs/src/rest.yaml b/docs/src/rest.yaml index 52b76c2d..696348a6 100644 --- a/docs/src/rest.yaml +++ b/docs/src/rest.yaml @@ -1911,23 +1911,38 @@ components: type: string description: | API key for authentication. - + REST NAMESPACE ONLY This is passed via the `x-api-key` header. auth_token: type: string description: | Bearer token for authentication. - + REST NAMESPACE ONLY This is passed via the `Authorization` header with the Bearer scheme (e.g., `Bearer `). + Context: + type: object + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + additionalProperties: + type: string + CreateNamespaceRequest: type: object properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -1967,6 +1982,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -1996,6 +2013,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2021,6 +2040,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2060,6 +2081,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2099,6 +2122,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2136,6 +2161,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2167,6 +2194,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2279,6 +2308,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2310,6 +2341,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2337,6 +2370,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2409,6 +2444,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2457,6 +2494,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2486,6 +2525,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2598,6 +2639,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2670,6 +2713,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2727,6 +2772,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2841,6 +2888,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2886,6 +2935,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2925,6 +2976,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2959,6 +3012,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -2987,6 +3042,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3071,6 +3128,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3101,6 +3160,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3130,6 +3191,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3307,6 +3370,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3334,6 +3399,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3362,6 +3429,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3386,6 +3455,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3412,6 +3483,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3463,6 +3536,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3488,6 +3563,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3514,6 +3591,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3542,6 +3621,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3593,6 +3674,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3621,6 +3704,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3741,6 +3826,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3820,6 +3907,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3902,6 +3991,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -3931,6 +4022,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: @@ -4029,6 +4122,8 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + $ref: '#/components/schemas/Context' id: type: array items: diff --git a/docs/src/rest/catalog-spec.md b/docs/src/rest/catalog-spec.md index 9fb5bdc6..fa8d6c08 100644 --- a/docs/src/rest/catalog-spec.md +++ b/docs/src/rest/catalog-spec.md @@ -59,6 +59,34 @@ The `auth_token` is sent using the Bearer scheme (e.g., `Authorization: Bearer < When identity information is provided in both the request body and headers, the header values take precedence. +## Context Header Mapping + +All request schemas include an optional `context` field for passing arbitrary key-value pairs. +This allows clients to send implementation-specific context that can be used by the server +or forwarded to downstream services. + +For REST Namespace, context entries are mapped to HTTP headers using the naming convention: + +| Context Entry | REST Form | Location | +|----------------------------|-------------------------------|----------| +| `{"": ""}` | `x-lance-ctx-` | Header | + +For example, a context entry `{"trace_id": "abc123", "user_region": "us-west"}` would be sent as: + +``` +x-lance-ctx-trace_id: abc123 +x-lance-ctx-user_region: us-west +``` + +How to use the context is custom to the specific implementation. +Common use cases include: + +- Passing trace IDs for distributed tracing +- Forwarding user context to downstream services +- Providing hints to the implementation for optimization + +When context is provided in both the request body and headers, the header values take precedence. + ## Non-Standard Operations For request and response that cannot be simply described as a JSON object diff --git a/java/lance-namespace-apache-client/api/openapi.yaml b/java/lance-namespace-apache-client/api/openapi.yaml index 51d82990..9628ca35 100644 --- a/java/lance-namespace-apache-client/api/openapi.yaml +++ b/java/lance-namespace-apache-client/api/openapi.yaml @@ -2607,12 +2607,25 @@ components: This is passed via the `Authorization` header with the Bearer scheme (e.g., `Bearer `). type: string + Context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. CreateNamespaceRequest: example: mode: mode identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id @@ -2621,6 +2634,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -2658,6 +2682,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -2714,12 +2749,25 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -2748,6 +2796,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id @@ -2755,6 +2805,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -2796,12 +2857,25 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -2830,6 +2904,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context location: location id: - id @@ -2839,6 +2915,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -2877,6 +2964,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -2935,6 +3033,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id @@ -2945,6 +3045,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -3086,6 +3197,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id @@ -3093,6 +3206,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -3120,6 +3244,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -3145,6 +3280,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -3222,6 +3368,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id @@ -3233,6 +3381,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -3283,12 +3442,25 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: description: The namespace identifier items: @@ -3388,6 +3560,8 @@ components: auth_token: auth_token bypass_vector_index: true nprobes: 0 + context: + key: context vector: single_vector: - 1.0246457 @@ -3403,6 +3577,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -3484,6 +3669,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context name: name ascii_folding: true id: @@ -3494,6 +3681,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -3571,6 +3769,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context page_token: page_token limit: 6 id: @@ -3580,6 +3780,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: description: The namespace identifier items: @@ -3679,6 +3890,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id @@ -3687,6 +3900,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -3832,6 +4056,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -3879,6 +4114,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context location: location id: - id @@ -3886,6 +4123,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -3926,6 +4174,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context location: location id: - id @@ -3933,6 +4183,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -3968,6 +4229,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id @@ -3975,6 +4238,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -4001,12 +4275,25 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -4125,6 +4412,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id @@ -4150,6 +4439,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -4189,6 +4489,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -4222,12 +4533,25 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -4525,6 +4849,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id @@ -4532,6 +4858,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -4557,6 +4894,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id @@ -4565,6 +4904,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -4593,6 +4943,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id @@ -4600,6 +4952,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -4622,6 +4985,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id @@ -4630,6 +4995,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -4657,6 +5033,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: description: The table identifier items: @@ -4736,6 +5123,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id @@ -4743,6 +5132,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -4767,6 +5167,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context new_table_name: new_table_name id: - id @@ -4777,6 +5179,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: description: The table identifier items: @@ -4804,6 +5217,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: description: The table identifier items: @@ -4826,6 +5250,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -4985,6 +5420,8 @@ components: auth_token: auth_token bypass_vector_index: true nprobes: 0 + context: + key: context vector: single_vector: - 1.0246457 @@ -4997,6 +5434,8 @@ components: id: - id - id + context: + key: context id: - id - id @@ -5004,6 +5443,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -5099,6 +5549,8 @@ components: auth_token: auth_token bypass_vector_index: true nprobes: 0 + context: + key: context vector: single_vector: - 1.0246457 @@ -5114,6 +5566,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -5217,12 +5680,25 @@ components: - input_columns data_type: "{}" udf_version: udf_version + context: + key: context id: - id - id properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -5318,6 +5794,8 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context alterations: - path: path nullable: true @@ -5349,6 +5827,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -5449,12 +5938,25 @@ components: columns: - columns - columns + context: + key: context id: - id - id properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -5486,12 +5988,25 @@ components: identity: api_key: api_key auth_token: auth_token + context: + key: context id: - id - id properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string @@ -5614,6 +6129,17 @@ components: properties: identity: $ref: '#/components/schemas/Identity' + context: + additionalProperties: + type: string + description: | + Arbitrary context for a request as key-value pairs. + How to use the context is custom to the specific implementation. + + REST NAMESPACE ONLY + Context entries are passed via HTTP headers using the naming convention + `x-lance-ctx-: `. For example, a context entry + `{"trace_id": "abc123"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. id: items: type: string diff --git a/java/lance-namespace-apache-client/docs/AlterTableAddColumnsRequest.md b/java/lance-namespace-apache-client/docs/AlterTableAddColumnsRequest.md index a43d37aa..ea151f04 100644 --- a/java/lance-namespace-apache-client/docs/AlterTableAddColumnsRequest.md +++ b/java/lance-namespace-apache-client/docs/AlterTableAddColumnsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**newColumns** | [**List<NewColumnTransform>**](NewColumnTransform.md) | List of new columns to add | | diff --git a/java/lance-namespace-apache-client/docs/AlterTableAlterColumnsRequest.md b/java/lance-namespace-apache-client/docs/AlterTableAlterColumnsRequest.md index b387bd23..ff5520c8 100644 --- a/java/lance-namespace-apache-client/docs/AlterTableAlterColumnsRequest.md +++ b/java/lance-namespace-apache-client/docs/AlterTableAlterColumnsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**alterations** | [**List<AlterColumnsEntry>**](AlterColumnsEntry.md) | List of column alterations to perform | | diff --git a/java/lance-namespace-apache-client/docs/AlterTableDropColumnsRequest.md b/java/lance-namespace-apache-client/docs/AlterTableDropColumnsRequest.md index b85f73b2..038eb111 100644 --- a/java/lance-namespace-apache-client/docs/AlterTableDropColumnsRequest.md +++ b/java/lance-namespace-apache-client/docs/AlterTableDropColumnsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**columns** | **List<String>** | Names of columns to drop | | diff --git a/java/lance-namespace-apache-client/docs/AlterTransactionRequest.md b/java/lance-namespace-apache-client/docs/AlterTransactionRequest.md index f5a70fd2..9d455e8a 100644 --- a/java/lance-namespace-apache-client/docs/AlterTransactionRequest.md +++ b/java/lance-namespace-apache-client/docs/AlterTransactionRequest.md @@ -9,6 +9,7 @@ Alter a transaction with a list of actions. The server should either succeed and | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**actions** | [**List<AlterTransactionAction>**](AlterTransactionAction.md) | | | diff --git a/java/lance-namespace-apache-client/docs/AnalyzeTableQueryPlanRequest.md b/java/lance-namespace-apache-client/docs/AnalyzeTableQueryPlanRequest.md index 169c50ac..66f5a8cc 100644 --- a/java/lance-namespace-apache-client/docs/AnalyzeTableQueryPlanRequest.md +++ b/java/lance-namespace-apache-client/docs/AnalyzeTableQueryPlanRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**bypassVectorIndex** | **Boolean** | Whether to bypass vector index | [optional] | |**columns** | [**QueryTableRequestColumns**](QueryTableRequestColumns.md) | | [optional] | diff --git a/java/lance-namespace-apache-client/docs/CountTableRowsRequest.md b/java/lance-namespace-apache-client/docs/CountTableRowsRequest.md index 76f0642e..b03c8179 100644 --- a/java/lance-namespace-apache-client/docs/CountTableRowsRequest.md +++ b/java/lance-namespace-apache-client/docs/CountTableRowsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**version** | **Long** | Version of the table to describe. If not specified, server should resolve it to the latest version. | [optional] | |**predicate** | **String** | Optional SQL predicate to filter rows for counting | [optional] | diff --git a/java/lance-namespace-apache-client/docs/CreateEmptyTableRequest.md b/java/lance-namespace-apache-client/docs/CreateEmptyTableRequest.md index 12a851e7..2266c682 100644 --- a/java/lance-namespace-apache-client/docs/CreateEmptyTableRequest.md +++ b/java/lance-namespace-apache-client/docs/CreateEmptyTableRequest.md @@ -9,6 +9,7 @@ Request for creating an empty table. **Deprecated**: Use `DeclareTableRequest` | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**location** | **String** | Optional storage location for the table. If not provided, the namespace implementation should determine the table location. | [optional] | diff --git a/java/lance-namespace-apache-client/docs/CreateNamespaceRequest.md b/java/lance-namespace-apache-client/docs/CreateNamespaceRequest.md index 4f2e0292..ea97059d 100644 --- a/java/lance-namespace-apache-client/docs/CreateNamespaceRequest.md +++ b/java/lance-namespace-apache-client/docs/CreateNamespaceRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**mode** | **String** | There are three modes when trying to create a namespace, to differentiate the behavior when a namespace of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create: the operation fails with 409. * ExistOk: the operation succeeds and the existing namespace is kept. * Overwrite: the existing namespace is dropped and a new empty namespace with this name is created. | [optional] | |**properties** | **Map<String, String>** | | [optional] | diff --git a/java/lance-namespace-apache-client/docs/CreateTableIndexRequest.md b/java/lance-namespace-apache-client/docs/CreateTableIndexRequest.md index 6932b83b..aa0acca4 100644 --- a/java/lance-namespace-apache-client/docs/CreateTableIndexRequest.md +++ b/java/lance-namespace-apache-client/docs/CreateTableIndexRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**column** | **String** | Name of the column to create index on | | |**indexType** | **String** | Type of index to create (e.g., BTREE, BITMAP, LABEL_LIST, IVF_FLAT, IVF_PQ, IVF_HNSW_SQ, FTS) | | diff --git a/java/lance-namespace-apache-client/docs/CreateTableRequest.md b/java/lance-namespace-apache-client/docs/CreateTableRequest.md index 0ee9ec96..a4f6af4c 100644 --- a/java/lance-namespace-apache-client/docs/CreateTableRequest.md +++ b/java/lance-namespace-apache-client/docs/CreateTableRequest.md @@ -9,6 +9,7 @@ Request for creating a table, excluding the Arrow IPC stream. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**mode** | **String** | There are three modes when trying to create a table, to differentiate the behavior when a table of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create: the operation fails with 409. * ExistOk: the operation succeeds and the existing table is kept. * Overwrite: the existing table is dropped and a new table with this name is created. | [optional] | diff --git a/java/lance-namespace-apache-client/docs/CreateTableTagRequest.md b/java/lance-namespace-apache-client/docs/CreateTableTagRequest.md index 7943a746..94612d5b 100644 --- a/java/lance-namespace-apache-client/docs/CreateTableTagRequest.md +++ b/java/lance-namespace-apache-client/docs/CreateTableTagRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**tag** | **String** | Name of the tag to create | | |**version** | **Long** | Version number for the tag to point to | | diff --git a/java/lance-namespace-apache-client/docs/DeclareTableRequest.md b/java/lance-namespace-apache-client/docs/DeclareTableRequest.md index 46c916d7..029c6784 100644 --- a/java/lance-namespace-apache-client/docs/DeclareTableRequest.md +++ b/java/lance-namespace-apache-client/docs/DeclareTableRequest.md @@ -9,6 +9,7 @@ Request for declaring a table. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**location** | **String** | Optional storage location for the table. If not provided, the namespace implementation should determine the table location. | [optional] | diff --git a/java/lance-namespace-apache-client/docs/DeleteFromTableRequest.md b/java/lance-namespace-apache-client/docs/DeleteFromTableRequest.md index 966d0bb3..0ef5b076 100644 --- a/java/lance-namespace-apache-client/docs/DeleteFromTableRequest.md +++ b/java/lance-namespace-apache-client/docs/DeleteFromTableRequest.md @@ -9,6 +9,7 @@ Delete data from table based on a SQL predicate. Returns the number of rows that | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | The namespace identifier | [optional] | |**predicate** | **String** | SQL predicate to filter rows for deletion | | diff --git a/java/lance-namespace-apache-client/docs/DeleteTableTagRequest.md b/java/lance-namespace-apache-client/docs/DeleteTableTagRequest.md index 99701201..6d80549c 100644 --- a/java/lance-namespace-apache-client/docs/DeleteTableTagRequest.md +++ b/java/lance-namespace-apache-client/docs/DeleteTableTagRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**tag** | **String** | Name of the tag to delete | | diff --git a/java/lance-namespace-apache-client/docs/DeregisterTableRequest.md b/java/lance-namespace-apache-client/docs/DeregisterTableRequest.md index 7bf8637a..273f3fc7 100644 --- a/java/lance-namespace-apache-client/docs/DeregisterTableRequest.md +++ b/java/lance-namespace-apache-client/docs/DeregisterTableRequest.md @@ -9,6 +9,7 @@ The table content remains available in the storage. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/java/lance-namespace-apache-client/docs/DescribeNamespaceRequest.md b/java/lance-namespace-apache-client/docs/DescribeNamespaceRequest.md index b36086c2..6a5a3491 100644 --- a/java/lance-namespace-apache-client/docs/DescribeNamespaceRequest.md +++ b/java/lance-namespace-apache-client/docs/DescribeNamespaceRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/java/lance-namespace-apache-client/docs/DescribeTableIndexStatsRequest.md b/java/lance-namespace-apache-client/docs/DescribeTableIndexStatsRequest.md index 996eaa86..30a40099 100644 --- a/java/lance-namespace-apache-client/docs/DescribeTableIndexStatsRequest.md +++ b/java/lance-namespace-apache-client/docs/DescribeTableIndexStatsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**version** | **Long** | Optional table version to get stats for | [optional] | |**indexName** | **String** | Name of the index | [optional] | diff --git a/java/lance-namespace-apache-client/docs/DescribeTableRequest.md b/java/lance-namespace-apache-client/docs/DescribeTableRequest.md index 12f278be..b60c5d62 100644 --- a/java/lance-namespace-apache-client/docs/DescribeTableRequest.md +++ b/java/lance-namespace-apache-client/docs/DescribeTableRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**version** | **Long** | Version of the table to describe. If not specified, server should resolve it to the latest version. | [optional] | |**withTableUri** | **Boolean** | Whether to include the table URI in the response. Default is false. | [optional] | diff --git a/java/lance-namespace-apache-client/docs/DescribeTransactionRequest.md b/java/lance-namespace-apache-client/docs/DescribeTransactionRequest.md index e6c08e7d..f8c163e7 100644 --- a/java/lance-namespace-apache-client/docs/DescribeTransactionRequest.md +++ b/java/lance-namespace-apache-client/docs/DescribeTransactionRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/java/lance-namespace-apache-client/docs/DropNamespaceRequest.md b/java/lance-namespace-apache-client/docs/DropNamespaceRequest.md index 16d23ccb..e615e179 100644 --- a/java/lance-namespace-apache-client/docs/DropNamespaceRequest.md +++ b/java/lance-namespace-apache-client/docs/DropNamespaceRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**mode** | **String** | The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. Case insensitive, supports both PascalCase and snake_case. Valid values are: - 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] | |**behavior** | **String** | The behavior for dropping a namespace. Case insensitive, supports both PascalCase and snake_case. Valid values are: - 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] | diff --git a/java/lance-namespace-apache-client/docs/DropTableIndexRequest.md b/java/lance-namespace-apache-client/docs/DropTableIndexRequest.md index 77bf0b47..36a69b6b 100644 --- a/java/lance-namespace-apache-client/docs/DropTableIndexRequest.md +++ b/java/lance-namespace-apache-client/docs/DropTableIndexRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**indexName** | **String** | Name of the index to drop | [optional] | diff --git a/java/lance-namespace-apache-client/docs/DropTableRequest.md b/java/lance-namespace-apache-client/docs/DropTableRequest.md index 507b5a77..39789434 100644 --- a/java/lance-namespace-apache-client/docs/DropTableRequest.md +++ b/java/lance-namespace-apache-client/docs/DropTableRequest.md @@ -9,6 +9,7 @@ If the table and its data can be immediately deleted, return information of the | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/java/lance-namespace-apache-client/docs/ExplainTableQueryPlanRequest.md b/java/lance-namespace-apache-client/docs/ExplainTableQueryPlanRequest.md index 1b1cf649..a6c0cbf5 100644 --- a/java/lance-namespace-apache-client/docs/ExplainTableQueryPlanRequest.md +++ b/java/lance-namespace-apache-client/docs/ExplainTableQueryPlanRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**query** | [**QueryTableRequest**](QueryTableRequest.md) | | | |**verbose** | **Boolean** | Whether to return verbose explanation | [optional] | diff --git a/java/lance-namespace-apache-client/docs/GetTableStatsRequest.md b/java/lance-namespace-apache-client/docs/GetTableStatsRequest.md index 4215ed04..89057661 100644 --- a/java/lance-namespace-apache-client/docs/GetTableStatsRequest.md +++ b/java/lance-namespace-apache-client/docs/GetTableStatsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/java/lance-namespace-apache-client/docs/GetTableTagVersionRequest.md b/java/lance-namespace-apache-client/docs/GetTableTagVersionRequest.md index 33445977..db878da2 100644 --- a/java/lance-namespace-apache-client/docs/GetTableTagVersionRequest.md +++ b/java/lance-namespace-apache-client/docs/GetTableTagVersionRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**tag** | **String** | Name of the tag to get version for | | diff --git a/java/lance-namespace-apache-client/docs/InsertIntoTableRequest.md b/java/lance-namespace-apache-client/docs/InsertIntoTableRequest.md index 7f098c03..e1c1d121 100644 --- a/java/lance-namespace-apache-client/docs/InsertIntoTableRequest.md +++ b/java/lance-namespace-apache-client/docs/InsertIntoTableRequest.md @@ -9,6 +9,7 @@ Request for inserting records into a table, excluding the Arrow IPC stream. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**mode** | **String** | How the insert should behave. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Append (default): insert data to the existing table - Overwrite: remove all data in the table and then insert data to it | [optional] | diff --git a/java/lance-namespace-apache-client/docs/ListNamespacesRequest.md b/java/lance-namespace-apache-client/docs/ListNamespacesRequest.md index d584efd6..4e834ac4 100644 --- a/java/lance-namespace-apache-client/docs/ListNamespacesRequest.md +++ b/java/lance-namespace-apache-client/docs/ListNamespacesRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**pageToken** | **String** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] | |**limit** | **Integer** | An inclusive upper bound of the number of results that a caller will receive. | [optional] | diff --git a/java/lance-namespace-apache-client/docs/ListTableIndicesRequest.md b/java/lance-namespace-apache-client/docs/ListTableIndicesRequest.md index b37b7018..7f46a0f3 100644 --- a/java/lance-namespace-apache-client/docs/ListTableIndicesRequest.md +++ b/java/lance-namespace-apache-client/docs/ListTableIndicesRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | The namespace identifier | [optional] | |**version** | **Long** | Optional table version to list indexes from | [optional] | |**pageToken** | **String** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] | diff --git a/java/lance-namespace-apache-client/docs/ListTableTagsRequest.md b/java/lance-namespace-apache-client/docs/ListTableTagsRequest.md index 6e021061..d6733803 100644 --- a/java/lance-namespace-apache-client/docs/ListTableTagsRequest.md +++ b/java/lance-namespace-apache-client/docs/ListTableTagsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | The table identifier | [optional] | |**pageToken** | **String** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] | |**limit** | **Integer** | An inclusive upper bound of the number of results that a caller will receive. | [optional] | diff --git a/java/lance-namespace-apache-client/docs/ListTableVersionsRequest.md b/java/lance-namespace-apache-client/docs/ListTableVersionsRequest.md index aed55926..bae85606 100644 --- a/java/lance-namespace-apache-client/docs/ListTableVersionsRequest.md +++ b/java/lance-namespace-apache-client/docs/ListTableVersionsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**pageToken** | **String** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] | |**limit** | **Integer** | An inclusive upper bound of the number of results that a caller will receive. | [optional] | diff --git a/java/lance-namespace-apache-client/docs/ListTablesRequest.md b/java/lance-namespace-apache-client/docs/ListTablesRequest.md index b765f0e7..4a70513b 100644 --- a/java/lance-namespace-apache-client/docs/ListTablesRequest.md +++ b/java/lance-namespace-apache-client/docs/ListTablesRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**pageToken** | **String** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] | |**limit** | **Integer** | An inclusive upper bound of the number of results that a caller will receive. | [optional] | diff --git a/java/lance-namespace-apache-client/docs/MergeInsertIntoTableRequest.md b/java/lance-namespace-apache-client/docs/MergeInsertIntoTableRequest.md index 9a75f9df..4cd78c21 100644 --- a/java/lance-namespace-apache-client/docs/MergeInsertIntoTableRequest.md +++ b/java/lance-namespace-apache-client/docs/MergeInsertIntoTableRequest.md @@ -9,6 +9,7 @@ Request for merging or inserting records into a table, excluding the Arrow IPC s | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**on** | **String** | Column name to use for matching rows (required) | [optional] | |**whenMatchedUpdateAll** | **Boolean** | Update all columns when rows match | [optional] | diff --git a/java/lance-namespace-apache-client/docs/NamespaceExistsRequest.md b/java/lance-namespace-apache-client/docs/NamespaceExistsRequest.md index a63b32b1..c8add1d8 100644 --- a/java/lance-namespace-apache-client/docs/NamespaceExistsRequest.md +++ b/java/lance-namespace-apache-client/docs/NamespaceExistsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/java/lance-namespace-apache-client/docs/QueryTableRequest.md b/java/lance-namespace-apache-client/docs/QueryTableRequest.md index 9628ec35..6839c87e 100644 --- a/java/lance-namespace-apache-client/docs/QueryTableRequest.md +++ b/java/lance-namespace-apache-client/docs/QueryTableRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**bypassVectorIndex** | **Boolean** | Whether to bypass vector index | [optional] | |**columns** | [**QueryTableRequestColumns**](QueryTableRequestColumns.md) | | [optional] | diff --git a/java/lance-namespace-apache-client/docs/RegisterTableRequest.md b/java/lance-namespace-apache-client/docs/RegisterTableRequest.md index 67614cf2..69ec00dd 100644 --- a/java/lance-namespace-apache-client/docs/RegisterTableRequest.md +++ b/java/lance-namespace-apache-client/docs/RegisterTableRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**location** | **String** | | | |**mode** | **String** | There are two modes when trying to register a table, to differentiate the behavior when a table of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create (default): the operation fails with 409. * Overwrite: the existing table registration is replaced with the new registration. | [optional] | diff --git a/java/lance-namespace-apache-client/docs/RenameTableRequest.md b/java/lance-namespace-apache-client/docs/RenameTableRequest.md index fb951c6f..4f175830 100644 --- a/java/lance-namespace-apache-client/docs/RenameTableRequest.md +++ b/java/lance-namespace-apache-client/docs/RenameTableRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | The table identifier | [optional] | |**newTableName** | **String** | New name for the table | | |**newNamespaceId** | **List<String>** | New namespace identifier to move the table to (optional, if not specified the table stays in the same namespace) | [optional] | diff --git a/java/lance-namespace-apache-client/docs/RestoreTableRequest.md b/java/lance-namespace-apache-client/docs/RestoreTableRequest.md index 59cd4ef3..7c10e3e4 100644 --- a/java/lance-namespace-apache-client/docs/RestoreTableRequest.md +++ b/java/lance-namespace-apache-client/docs/RestoreTableRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**version** | **Long** | Version to restore to | | diff --git a/java/lance-namespace-apache-client/docs/TableExistsRequest.md b/java/lance-namespace-apache-client/docs/TableExistsRequest.md index 929758c9..97f85519 100644 --- a/java/lance-namespace-apache-client/docs/TableExistsRequest.md +++ b/java/lance-namespace-apache-client/docs/TableExistsRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**version** | **Long** | Version of the table to check existence. If not specified, server should resolve it to the latest version. | [optional] | diff --git a/java/lance-namespace-apache-client/docs/UpdateTableRequest.md b/java/lance-namespace-apache-client/docs/UpdateTableRequest.md index 29ba3cfe..bf227aed 100644 --- a/java/lance-namespace-apache-client/docs/UpdateTableRequest.md +++ b/java/lance-namespace-apache-client/docs/UpdateTableRequest.md @@ -9,6 +9,7 @@ Each update consists of a column name and an SQL expression that will be evaluat | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**predicate** | **String** | Optional SQL predicate to filter rows for update | [optional] | |**updates** | **List<List<String>>** | List of column updates as [column_name, expression] pairs | | diff --git a/java/lance-namespace-apache-client/docs/UpdateTableSchemaMetadataRequest.md b/java/lance-namespace-apache-client/docs/UpdateTableSchemaMetadataRequest.md index 69470ea3..9f715b3b 100644 --- a/java/lance-namespace-apache-client/docs/UpdateTableSchemaMetadataRequest.md +++ b/java/lance-namespace-apache-client/docs/UpdateTableSchemaMetadataRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | The table identifier | [optional] | |**metadata** | **Map<String, String>** | Schema metadata key-value pairs to set | [optional] | diff --git a/java/lance-namespace-apache-client/docs/UpdateTableTagRequest.md b/java/lance-namespace-apache-client/docs/UpdateTableTagRequest.md index 9ee43332..94d1ec9e 100644 --- a/java/lance-namespace-apache-client/docs/UpdateTableTagRequest.md +++ b/java/lance-namespace-apache-client/docs/UpdateTableTagRequest.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**identity** | [**Identity**](Identity.md) | | [optional] | +|**context** | **Map<String, String>** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] | |**id** | **List<String>** | | [optional] | |**tag** | **String** | Name of the tag to update | | |**version** | **Long** | New version number for the tag to point to | | diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAddColumnsRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAddColumnsRequest.java index c06ef13f..4a7da3f1 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAddColumnsRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAddColumnsRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** AlterTableAddColumnsRequest */ @JsonPropertyOrder({ AlterTableAddColumnsRequest.JSON_PROPERTY_IDENTITY, + AlterTableAddColumnsRequest.JSON_PROPERTY_CONTEXT, AlterTableAddColumnsRequest.JSON_PROPERTY_ID, AlterTableAddColumnsRequest.JSON_PROPERTY_NEW_COLUMNS }) @@ -37,6 +40,9 @@ public class AlterTableAddColumnsRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -69,6 +75,43 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public AlterTableAddColumnsRequest context( + @javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public AlterTableAddColumnsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public AlterTableAddColumnsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -144,13 +187,14 @@ public boolean equals(Object o) { } AlterTableAddColumnsRequest alterTableAddColumnsRequest = (AlterTableAddColumnsRequest) o; return Objects.equals(this.identity, alterTableAddColumnsRequest.identity) + && Objects.equals(this.context, alterTableAddColumnsRequest.context) && Objects.equals(this.id, alterTableAddColumnsRequest.id) && Objects.equals(this.newColumns, alterTableAddColumnsRequest.newColumns); } @Override public int hashCode() { - return Objects.hash(identity, id, newColumns); + return Objects.hash(identity, context, id, newColumns); } @Override @@ -158,6 +202,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTableAddColumnsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" newColumns: ").append(toIndentedString(newColumns)).append("\n"); sb.append("}"); @@ -211,6 +256,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAlterColumnsRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAlterColumnsRequest.java index 50f4331e..9b2291a1 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAlterColumnsRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableAlterColumnsRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** AlterTableAlterColumnsRequest */ @JsonPropertyOrder({ AlterTableAlterColumnsRequest.JSON_PROPERTY_IDENTITY, + AlterTableAlterColumnsRequest.JSON_PROPERTY_CONTEXT, AlterTableAlterColumnsRequest.JSON_PROPERTY_ID, AlterTableAlterColumnsRequest.JSON_PROPERTY_ALTERATIONS }) @@ -37,6 +40,9 @@ public class AlterTableAlterColumnsRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -69,6 +75,43 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public AlterTableAlterColumnsRequest context( + @javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public AlterTableAlterColumnsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public AlterTableAlterColumnsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -144,13 +187,14 @@ public boolean equals(Object o) { } AlterTableAlterColumnsRequest alterTableAlterColumnsRequest = (AlterTableAlterColumnsRequest) o; return Objects.equals(this.identity, alterTableAlterColumnsRequest.identity) + && Objects.equals(this.context, alterTableAlterColumnsRequest.context) && Objects.equals(this.id, alterTableAlterColumnsRequest.id) && Objects.equals(this.alterations, alterTableAlterColumnsRequest.alterations); } @Override public int hashCode() { - return Objects.hash(identity, id, alterations); + return Objects.hash(identity, context, id, alterations); } @Override @@ -158,6 +202,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTableAlterColumnsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" alterations: ").append(toIndentedString(alterations)).append("\n"); sb.append("}"); @@ -211,6 +256,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableDropColumnsRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableDropColumnsRequest.java index 22e2b4cf..31526cb2 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableDropColumnsRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTableDropColumnsRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** AlterTableDropColumnsRequest */ @JsonPropertyOrder({ AlterTableDropColumnsRequest.JSON_PROPERTY_IDENTITY, + AlterTableDropColumnsRequest.JSON_PROPERTY_CONTEXT, AlterTableDropColumnsRequest.JSON_PROPERTY_ID, AlterTableDropColumnsRequest.JSON_PROPERTY_COLUMNS }) @@ -37,6 +40,9 @@ public class AlterTableDropColumnsRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -69,6 +75,43 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public AlterTableDropColumnsRequest context( + @javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public AlterTableDropColumnsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public AlterTableDropColumnsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -143,13 +186,14 @@ public boolean equals(Object o) { } AlterTableDropColumnsRequest alterTableDropColumnsRequest = (AlterTableDropColumnsRequest) o; return Objects.equals(this.identity, alterTableDropColumnsRequest.identity) + && Objects.equals(this.context, alterTableDropColumnsRequest.context) && Objects.equals(this.id, alterTableDropColumnsRequest.id) && Objects.equals(this.columns, alterTableDropColumnsRequest.columns); } @Override public int hashCode() { - return Objects.hash(identity, id, columns); + return Objects.hash(identity, context, id, columns); } @Override @@ -157,6 +201,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTableDropColumnsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); sb.append("}"); @@ -210,6 +255,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionRequest.java index 1ad43c1e..591316a2 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionRequest.java @@ -20,7 +20,9 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; @@ -30,6 +32,7 @@ */ @JsonPropertyOrder({ AlterTransactionRequest.JSON_PROPERTY_IDENTITY, + AlterTransactionRequest.JSON_PROPERTY_CONTEXT, AlterTransactionRequest.JSON_PROPERTY_ID, AlterTransactionRequest.JSON_PROPERTY_ACTIONS }) @@ -40,6 +43,9 @@ public class AlterTransactionRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -72,6 +78,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public AlterTransactionRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public AlterTransactionRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public AlterTransactionRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -147,13 +189,14 @@ public boolean equals(Object o) { } AlterTransactionRequest alterTransactionRequest = (AlterTransactionRequest) o; return Objects.equals(this.identity, alterTransactionRequest.identity) + && Objects.equals(this.context, alterTransactionRequest.context) && Objects.equals(this.id, alterTransactionRequest.id) && Objects.equals(this.actions, alterTransactionRequest.actions); } @Override public int hashCode() { - return Objects.hash(identity, id, actions); + return Objects.hash(identity, context, id, actions); } @Override @@ -161,6 +204,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTransactionRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append("}"); @@ -214,6 +258,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AnalyzeTableQueryPlanRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AnalyzeTableQueryPlanRequest.java index c1730fb0..ac31f66f 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AnalyzeTableQueryPlanRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AnalyzeTableQueryPlanRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** AnalyzeTableQueryPlanRequest */ @JsonPropertyOrder({ AnalyzeTableQueryPlanRequest.JSON_PROPERTY_IDENTITY, + AnalyzeTableQueryPlanRequest.JSON_PROPERTY_CONTEXT, AnalyzeTableQueryPlanRequest.JSON_PROPERTY_ID, AnalyzeTableQueryPlanRequest.JSON_PROPERTY_BYPASS_VECTOR_INDEX, AnalyzeTableQueryPlanRequest.JSON_PROPERTY_COLUMNS, @@ -54,6 +57,9 @@ public class AnalyzeTableQueryPlanRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -137,6 +143,43 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public AnalyzeTableQueryPlanRequest context( + @javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public AnalyzeTableQueryPlanRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public AnalyzeTableQueryPlanRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -617,6 +660,7 @@ public boolean equals(Object o) { } AnalyzeTableQueryPlanRequest analyzeTableQueryPlanRequest = (AnalyzeTableQueryPlanRequest) o; return Objects.equals(this.identity, analyzeTableQueryPlanRequest.identity) + && Objects.equals(this.context, analyzeTableQueryPlanRequest.context) && Objects.equals(this.id, analyzeTableQueryPlanRequest.id) && Objects.equals(this.bypassVectorIndex, analyzeTableQueryPlanRequest.bypassVectorIndex) && Objects.equals(this.columns, analyzeTableQueryPlanRequest.columns) @@ -642,6 +686,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( identity, + context, id, bypassVectorIndex, columns, @@ -668,6 +713,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AnalyzeTableQueryPlanRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" bypassVectorIndex: ").append(toIndentedString(bypassVectorIndex)).append("\n"); sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); @@ -738,6 +784,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CountTableRowsRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CountTableRowsRequest.java index fa69c65f..96acd920 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CountTableRowsRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CountTableRowsRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** CountTableRowsRequest */ @JsonPropertyOrder({ CountTableRowsRequest.JSON_PROPERTY_IDENTITY, + CountTableRowsRequest.JSON_PROPERTY_CONTEXT, CountTableRowsRequest.JSON_PROPERTY_ID, CountTableRowsRequest.JSON_PROPERTY_VERSION, CountTableRowsRequest.JSON_PROPERTY_PREDICATE @@ -38,6 +41,9 @@ public class CountTableRowsRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -73,6 +79,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public CountTableRowsRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public CountTableRowsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public CountTableRowsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -164,6 +206,7 @@ public boolean equals(Object o) { } CountTableRowsRequest countTableRowsRequest = (CountTableRowsRequest) o; return Objects.equals(this.identity, countTableRowsRequest.identity) + && Objects.equals(this.context, countTableRowsRequest.context) && Objects.equals(this.id, countTableRowsRequest.id) && Objects.equals(this.version, countTableRowsRequest.version) && Objects.equals(this.predicate, countTableRowsRequest.predicate); @@ -171,7 +214,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, version, predicate); + return Objects.hash(identity, context, id, version, predicate); } @Override @@ -179,6 +222,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CountTableRowsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" predicate: ").append(toIndentedString(predicate)).append("\n"); @@ -233,6 +277,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateEmptyTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateEmptyTableRequest.java index 4315e426..bbb801e0 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateEmptyTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateEmptyTableRequest.java @@ -20,7 +20,9 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; @@ -32,6 +34,7 @@ @Deprecated @JsonPropertyOrder({ CreateEmptyTableRequest.JSON_PROPERTY_IDENTITY, + CreateEmptyTableRequest.JSON_PROPERTY_CONTEXT, CreateEmptyTableRequest.JSON_PROPERTY_ID, CreateEmptyTableRequest.JSON_PROPERTY_LOCATION }) @@ -42,6 +45,9 @@ public class CreateEmptyTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -74,6 +80,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public CreateEmptyTableRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public CreateEmptyTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public CreateEmptyTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -141,13 +183,14 @@ public boolean equals(Object o) { } CreateEmptyTableRequest createEmptyTableRequest = (CreateEmptyTableRequest) o; return Objects.equals(this.identity, createEmptyTableRequest.identity) + && Objects.equals(this.context, createEmptyTableRequest.context) && Objects.equals(this.id, createEmptyTableRequest.id) && Objects.equals(this.location, createEmptyTableRequest.location); } @Override public int hashCode() { - return Objects.hash(identity, id, location); + return Objects.hash(identity, context, id, location); } @Override @@ -155,6 +198,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateEmptyTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" location: ").append(toIndentedString(location)).append("\n"); sb.append("}"); @@ -208,6 +252,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateNamespaceRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateNamespaceRequest.java index a825ee03..664408ac 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateNamespaceRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateNamespaceRequest.java @@ -29,6 +29,7 @@ /** CreateNamespaceRequest */ @JsonPropertyOrder({ CreateNamespaceRequest.JSON_PROPERTY_IDENTITY, + CreateNamespaceRequest.JSON_PROPERTY_CONTEXT, CreateNamespaceRequest.JSON_PROPERTY_ID, CreateNamespaceRequest.JSON_PROPERTY_MODE, CreateNamespaceRequest.JSON_PROPERTY_PROPERTIES @@ -40,6 +41,9 @@ public class CreateNamespaceRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -75,6 +79,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public CreateNamespaceRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public CreateNamespaceRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public CreateNamespaceRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -178,6 +218,7 @@ public boolean equals(Object o) { } CreateNamespaceRequest createNamespaceRequest = (CreateNamespaceRequest) o; return Objects.equals(this.identity, createNamespaceRequest.identity) + && Objects.equals(this.context, createNamespaceRequest.context) && Objects.equals(this.id, createNamespaceRequest.id) && Objects.equals(this.mode, createNamespaceRequest.mode) && Objects.equals(this.properties, createNamespaceRequest.properties); @@ -185,7 +226,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, mode, properties); + return Objects.hash(identity, context, id, mode, properties); } @Override @@ -193,6 +234,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateNamespaceRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); @@ -247,6 +289,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableIndexRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableIndexRequest.java index 5f5abd9a..07d9595e 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableIndexRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableIndexRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** CreateTableIndexRequest */ @JsonPropertyOrder({ CreateTableIndexRequest.JSON_PROPERTY_IDENTITY, + CreateTableIndexRequest.JSON_PROPERTY_CONTEXT, CreateTableIndexRequest.JSON_PROPERTY_ID, CreateTableIndexRequest.JSON_PROPERTY_COLUMN, CreateTableIndexRequest.JSON_PROPERTY_INDEX_TYPE, @@ -48,6 +51,9 @@ public class CreateTableIndexRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -113,6 +119,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public CreateTableIndexRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public CreateTableIndexRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public CreateTableIndexRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -444,6 +486,7 @@ public boolean equals(Object o) { } CreateTableIndexRequest createTableIndexRequest = (CreateTableIndexRequest) o; return Objects.equals(this.identity, createTableIndexRequest.identity) + && Objects.equals(this.context, createTableIndexRequest.context) && Objects.equals(this.id, createTableIndexRequest.id) && Objects.equals(this.column, createTableIndexRequest.column) && Objects.equals(this.indexType, createTableIndexRequest.indexType) @@ -463,6 +506,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( identity, + context, id, column, indexType, @@ -483,6 +527,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTableIndexRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" column: ").append(toIndentedString(column)).append("\n"); sb.append(" indexType: ").append(toIndentedString(indexType)).append("\n"); @@ -547,6 +592,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableRequest.java index bb525cbb..993f35c2 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** Request for creating a table, excluding the Arrow IPC stream. */ @JsonPropertyOrder({ CreateTableRequest.JSON_PROPERTY_IDENTITY, + CreateTableRequest.JSON_PROPERTY_CONTEXT, CreateTableRequest.JSON_PROPERTY_ID, CreateTableRequest.JSON_PROPERTY_MODE }) @@ -37,6 +40,9 @@ public class CreateTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -69,6 +75,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public CreateTableRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public CreateTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public CreateTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -139,13 +181,14 @@ public boolean equals(Object o) { } CreateTableRequest createTableRequest = (CreateTableRequest) o; return Objects.equals(this.identity, createTableRequest.identity) + && Objects.equals(this.context, createTableRequest.context) && Objects.equals(this.id, createTableRequest.id) && Objects.equals(this.mode, createTableRequest.mode); } @Override public int hashCode() { - return Objects.hash(identity, id, mode); + return Objects.hash(identity, context, id, mode); } @Override @@ -153,6 +196,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append("}"); @@ -206,6 +250,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableTagRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableTagRequest.java index 27d8d193..5a6549f5 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableTagRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/CreateTableTagRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** CreateTableTagRequest */ @JsonPropertyOrder({ CreateTableTagRequest.JSON_PROPERTY_IDENTITY, + CreateTableTagRequest.JSON_PROPERTY_CONTEXT, CreateTableTagRequest.JSON_PROPERTY_ID, CreateTableTagRequest.JSON_PROPERTY_TAG, CreateTableTagRequest.JSON_PROPERTY_VERSION @@ -38,6 +41,9 @@ public class CreateTableTagRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -73,6 +79,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public CreateTableTagRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public CreateTableTagRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public CreateTableTagRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -163,6 +205,7 @@ public boolean equals(Object o) { } CreateTableTagRequest createTableTagRequest = (CreateTableTagRequest) o; return Objects.equals(this.identity, createTableTagRequest.identity) + && Objects.equals(this.context, createTableTagRequest.context) && Objects.equals(this.id, createTableTagRequest.id) && Objects.equals(this.tag, createTableTagRequest.tag) && Objects.equals(this.version, createTableTagRequest.version); @@ -170,7 +213,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, tag, version); + return Objects.hash(identity, context, id, tag, version); } @Override @@ -178,6 +221,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTableTagRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); @@ -232,6 +276,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeclareTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeclareTableRequest.java index 4083fda8..0a039927 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeclareTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeclareTableRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** Request for declaring a table. */ @JsonPropertyOrder({ DeclareTableRequest.JSON_PROPERTY_IDENTITY, + DeclareTableRequest.JSON_PROPERTY_CONTEXT, DeclareTableRequest.JSON_PROPERTY_ID, DeclareTableRequest.JSON_PROPERTY_LOCATION }) @@ -37,6 +40,9 @@ public class DeclareTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -69,6 +75,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public DeclareTableRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public DeclareTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public DeclareTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -136,13 +178,14 @@ public boolean equals(Object o) { } DeclareTableRequest declareTableRequest = (DeclareTableRequest) o; return Objects.equals(this.identity, declareTableRequest.identity) + && Objects.equals(this.context, declareTableRequest.context) && Objects.equals(this.id, declareTableRequest.id) && Objects.equals(this.location, declareTableRequest.location); } @Override public int hashCode() { - return Objects.hash(identity, id, location); + return Objects.hash(identity, context, id, location); } @Override @@ -150,6 +193,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeclareTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" location: ").append(toIndentedString(location)).append("\n"); sb.append("}"); @@ -203,6 +247,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeleteFromTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeleteFromTableRequest.java index 5e7dcfea..746583a8 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeleteFromTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeleteFromTableRequest.java @@ -20,7 +20,9 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; @@ -29,6 +31,7 @@ */ @JsonPropertyOrder({ DeleteFromTableRequest.JSON_PROPERTY_IDENTITY, + DeleteFromTableRequest.JSON_PROPERTY_CONTEXT, DeleteFromTableRequest.JSON_PROPERTY_ID, DeleteFromTableRequest.JSON_PROPERTY_PREDICATE }) @@ -39,6 +42,9 @@ public class DeleteFromTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -71,6 +77,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public DeleteFromTableRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public DeleteFromTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public DeleteFromTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -137,13 +179,14 @@ public boolean equals(Object o) { } DeleteFromTableRequest deleteFromTableRequest = (DeleteFromTableRequest) o; return Objects.equals(this.identity, deleteFromTableRequest.identity) + && Objects.equals(this.context, deleteFromTableRequest.context) && Objects.equals(this.id, deleteFromTableRequest.id) && Objects.equals(this.predicate, deleteFromTableRequest.predicate); } @Override public int hashCode() { - return Objects.hash(identity, id, predicate); + return Objects.hash(identity, context, id, predicate); } @Override @@ -151,6 +194,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteFromTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" predicate: ").append(toIndentedString(predicate)).append("\n"); sb.append("}"); @@ -204,6 +248,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeleteTableTagRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeleteTableTagRequest.java index 25eae536..e722e431 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeleteTableTagRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeleteTableTagRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** DeleteTableTagRequest */ @JsonPropertyOrder({ DeleteTableTagRequest.JSON_PROPERTY_IDENTITY, + DeleteTableTagRequest.JSON_PROPERTY_CONTEXT, DeleteTableTagRequest.JSON_PROPERTY_ID, DeleteTableTagRequest.JSON_PROPERTY_TAG }) @@ -37,6 +40,9 @@ public class DeleteTableTagRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -69,6 +75,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public DeleteTableTagRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public DeleteTableTagRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public DeleteTableTagRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -135,13 +177,14 @@ public boolean equals(Object o) { } DeleteTableTagRequest deleteTableTagRequest = (DeleteTableTagRequest) o; return Objects.equals(this.identity, deleteTableTagRequest.identity) + && Objects.equals(this.context, deleteTableTagRequest.context) && Objects.equals(this.id, deleteTableTagRequest.id) && Objects.equals(this.tag, deleteTableTagRequest.tag); } @Override public int hashCode() { - return Objects.hash(identity, id, tag); + return Objects.hash(identity, context, id, tag); } @Override @@ -149,6 +192,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteTableTagRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append("}"); @@ -202,6 +246,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeregisterTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeregisterTableRequest.java index db5904e4..ac8d5f31 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeregisterTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DeregisterTableRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** The table content remains available in the storage. */ @JsonPropertyOrder({ DeregisterTableRequest.JSON_PROPERTY_IDENTITY, + DeregisterTableRequest.JSON_PROPERTY_CONTEXT, DeregisterTableRequest.JSON_PROPERTY_ID }) @javax.annotation.Generated( @@ -36,6 +39,9 @@ public class DeregisterTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -65,6 +71,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public DeregisterTableRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public DeregisterTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public DeregisterTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -107,12 +149,13 @@ public boolean equals(Object o) { } DeregisterTableRequest deregisterTableRequest = (DeregisterTableRequest) o; return Objects.equals(this.identity, deregisterTableRequest.identity) + && Objects.equals(this.context, deregisterTableRequest.context) && Objects.equals(this.id, deregisterTableRequest.id); } @Override public int hashCode() { - return Objects.hash(identity, id); + return Objects.hash(identity, context, id); } @Override @@ -120,6 +163,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeregisterTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); @@ -172,6 +216,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeNamespaceRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeNamespaceRequest.java index 9f2d6ec7..8a2c5d28 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeNamespaceRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeNamespaceRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** DescribeNamespaceRequest */ @JsonPropertyOrder({ DescribeNamespaceRequest.JSON_PROPERTY_IDENTITY, + DescribeNamespaceRequest.JSON_PROPERTY_CONTEXT, DescribeNamespaceRequest.JSON_PROPERTY_ID }) @javax.annotation.Generated( @@ -36,6 +39,9 @@ public class DescribeNamespaceRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -65,6 +71,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public DescribeNamespaceRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public DescribeNamespaceRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public DescribeNamespaceRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -107,12 +149,13 @@ public boolean equals(Object o) { } DescribeNamespaceRequest describeNamespaceRequest = (DescribeNamespaceRequest) o; return Objects.equals(this.identity, describeNamespaceRequest.identity) + && Objects.equals(this.context, describeNamespaceRequest.context) && Objects.equals(this.id, describeNamespaceRequest.id); } @Override public int hashCode() { - return Objects.hash(identity, id); + return Objects.hash(identity, context, id); } @Override @@ -120,6 +163,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeNamespaceRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); @@ -172,6 +216,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTableIndexStatsRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTableIndexStatsRequest.java index 2b824bb7..3cfd7021 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTableIndexStatsRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTableIndexStatsRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** DescribeTableIndexStatsRequest */ @JsonPropertyOrder({ DescribeTableIndexStatsRequest.JSON_PROPERTY_IDENTITY, + DescribeTableIndexStatsRequest.JSON_PROPERTY_CONTEXT, DescribeTableIndexStatsRequest.JSON_PROPERTY_ID, DescribeTableIndexStatsRequest.JSON_PROPERTY_VERSION, DescribeTableIndexStatsRequest.JSON_PROPERTY_INDEX_NAME @@ -38,6 +41,9 @@ public class DescribeTableIndexStatsRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -73,6 +79,43 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public DescribeTableIndexStatsRequest context( + @javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public DescribeTableIndexStatsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public DescribeTableIndexStatsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -164,6 +207,7 @@ public boolean equals(Object o) { DescribeTableIndexStatsRequest describeTableIndexStatsRequest = (DescribeTableIndexStatsRequest) o; return Objects.equals(this.identity, describeTableIndexStatsRequest.identity) + && Objects.equals(this.context, describeTableIndexStatsRequest.context) && Objects.equals(this.id, describeTableIndexStatsRequest.id) && Objects.equals(this.version, describeTableIndexStatsRequest.version) && Objects.equals(this.indexName, describeTableIndexStatsRequest.indexName); @@ -171,7 +215,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, version, indexName); + return Objects.hash(identity, context, id, version, indexName); } @Override @@ -179,6 +223,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeTableIndexStatsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" indexName: ").append(toIndentedString(indexName)).append("\n"); @@ -233,6 +278,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTableRequest.java index 547ff249..21017a11 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTableRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** DescribeTableRequest */ @JsonPropertyOrder({ DescribeTableRequest.JSON_PROPERTY_IDENTITY, + DescribeTableRequest.JSON_PROPERTY_CONTEXT, DescribeTableRequest.JSON_PROPERTY_ID, DescribeTableRequest.JSON_PROPERTY_VERSION, DescribeTableRequest.JSON_PROPERTY_WITH_TABLE_URI, @@ -40,6 +43,9 @@ public class DescribeTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -81,6 +87,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public DescribeTableRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public DescribeTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public DescribeTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -226,6 +268,7 @@ public boolean equals(Object o) { } DescribeTableRequest describeTableRequest = (DescribeTableRequest) o; return Objects.equals(this.identity, describeTableRequest.identity) + && Objects.equals(this.context, describeTableRequest.context) && Objects.equals(this.id, describeTableRequest.id) && Objects.equals(this.version, describeTableRequest.version) && Objects.equals(this.withTableUri, describeTableRequest.withTableUri) @@ -235,7 +278,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, version, withTableUri, loadDetailedMetadata, vendCredentials); + return Objects.hash( + identity, context, id, version, withTableUri, loadDetailedMetadata, vendCredentials); } @Override @@ -243,6 +287,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" withTableUri: ").append(toIndentedString(withTableUri)).append("\n"); @@ -301,6 +346,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTransactionRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTransactionRequest.java index 0749677e..a9f8695c 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTransactionRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTransactionRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** DescribeTransactionRequest */ @JsonPropertyOrder({ DescribeTransactionRequest.JSON_PROPERTY_IDENTITY, + DescribeTransactionRequest.JSON_PROPERTY_CONTEXT, DescribeTransactionRequest.JSON_PROPERTY_ID }) @javax.annotation.Generated( @@ -36,6 +39,9 @@ public class DescribeTransactionRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -65,6 +71,43 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public DescribeTransactionRequest context( + @javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public DescribeTransactionRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public DescribeTransactionRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -107,12 +150,13 @@ public boolean equals(Object o) { } DescribeTransactionRequest describeTransactionRequest = (DescribeTransactionRequest) o; return Objects.equals(this.identity, describeTransactionRequest.identity) + && Objects.equals(this.context, describeTransactionRequest.context) && Objects.equals(this.id, describeTransactionRequest.id); } @Override public int hashCode() { - return Objects.hash(identity, id); + return Objects.hash(identity, context, id); } @Override @@ -120,6 +164,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeTransactionRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); @@ -172,6 +217,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropNamespaceRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropNamespaceRequest.java index 2684d500..87a54c49 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropNamespaceRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropNamespaceRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** DropNamespaceRequest */ @JsonPropertyOrder({ DropNamespaceRequest.JSON_PROPERTY_IDENTITY, + DropNamespaceRequest.JSON_PROPERTY_CONTEXT, DropNamespaceRequest.JSON_PROPERTY_ID, DropNamespaceRequest.JSON_PROPERTY_MODE, DropNamespaceRequest.JSON_PROPERTY_BEHAVIOR @@ -38,6 +41,9 @@ public class DropNamespaceRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -73,6 +79,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public DropNamespaceRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public DropNamespaceRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public DropNamespaceRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -170,6 +212,7 @@ public boolean equals(Object o) { } DropNamespaceRequest dropNamespaceRequest = (DropNamespaceRequest) o; return Objects.equals(this.identity, dropNamespaceRequest.identity) + && Objects.equals(this.context, dropNamespaceRequest.context) && Objects.equals(this.id, dropNamespaceRequest.id) && Objects.equals(this.mode, dropNamespaceRequest.mode) && Objects.equals(this.behavior, dropNamespaceRequest.behavior); @@ -177,7 +220,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, mode, behavior); + return Objects.hash(identity, context, id, mode, behavior); } @Override @@ -185,6 +228,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DropNamespaceRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" behavior: ").append(toIndentedString(behavior)).append("\n"); @@ -239,6 +283,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropTableIndexRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropTableIndexRequest.java index 55cb8f33..0206f569 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropTableIndexRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropTableIndexRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** DropTableIndexRequest */ @JsonPropertyOrder({ DropTableIndexRequest.JSON_PROPERTY_IDENTITY, + DropTableIndexRequest.JSON_PROPERTY_CONTEXT, DropTableIndexRequest.JSON_PROPERTY_ID, DropTableIndexRequest.JSON_PROPERTY_INDEX_NAME }) @@ -37,6 +40,9 @@ public class DropTableIndexRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -69,6 +75,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public DropTableIndexRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public DropTableIndexRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public DropTableIndexRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -135,13 +177,14 @@ public boolean equals(Object o) { } DropTableIndexRequest dropTableIndexRequest = (DropTableIndexRequest) o; return Objects.equals(this.identity, dropTableIndexRequest.identity) + && Objects.equals(this.context, dropTableIndexRequest.context) && Objects.equals(this.id, dropTableIndexRequest.id) && Objects.equals(this.indexName, dropTableIndexRequest.indexName); } @Override public int hashCode() { - return Objects.hash(identity, id, indexName); + return Objects.hash(identity, context, id, indexName); } @Override @@ -149,6 +192,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DropTableIndexRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" indexName: ").append(toIndentedString(indexName)).append("\n"); sb.append("}"); @@ -202,6 +246,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropTableRequest.java index af5818d7..c53abe8c 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropTableRequest.java @@ -20,7 +20,9 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; @@ -28,7 +30,11 @@ * If the table and its data can be immediately deleted, return information of the deleted table. * Otherwise, return a transaction ID that client can use to track deletion progress. */ -@JsonPropertyOrder({DropTableRequest.JSON_PROPERTY_IDENTITY, DropTableRequest.JSON_PROPERTY_ID}) +@JsonPropertyOrder({ + DropTableRequest.JSON_PROPERTY_IDENTITY, + DropTableRequest.JSON_PROPERTY_CONTEXT, + DropTableRequest.JSON_PROPERTY_ID +}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @@ -36,6 +42,9 @@ public class DropTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -65,6 +74,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public DropTableRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public DropTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public DropTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -107,12 +152,13 @@ public boolean equals(Object o) { } DropTableRequest dropTableRequest = (DropTableRequest) o; return Objects.equals(this.identity, dropTableRequest.identity) + && Objects.equals(this.context, dropTableRequest.context) && Objects.equals(this.id, dropTableRequest.id); } @Override public int hashCode() { - return Objects.hash(identity, id); + return Objects.hash(identity, context, id); } @Override @@ -120,6 +166,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DropTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); @@ -172,6 +219,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ExplainTableQueryPlanRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ExplainTableQueryPlanRequest.java index 1d7edc01..f991c589 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ExplainTableQueryPlanRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ExplainTableQueryPlanRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** ExplainTableQueryPlanRequest */ @JsonPropertyOrder({ ExplainTableQueryPlanRequest.JSON_PROPERTY_IDENTITY, + ExplainTableQueryPlanRequest.JSON_PROPERTY_CONTEXT, ExplainTableQueryPlanRequest.JSON_PROPERTY_ID, ExplainTableQueryPlanRequest.JSON_PROPERTY_QUERY, ExplainTableQueryPlanRequest.JSON_PROPERTY_VERBOSE @@ -38,6 +41,9 @@ public class ExplainTableQueryPlanRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -73,6 +79,43 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public ExplainTableQueryPlanRequest context( + @javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public ExplainTableQueryPlanRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public ExplainTableQueryPlanRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -163,6 +206,7 @@ public boolean equals(Object o) { } ExplainTableQueryPlanRequest explainTableQueryPlanRequest = (ExplainTableQueryPlanRequest) o; return Objects.equals(this.identity, explainTableQueryPlanRequest.identity) + && Objects.equals(this.context, explainTableQueryPlanRequest.context) && Objects.equals(this.id, explainTableQueryPlanRequest.id) && Objects.equals(this.query, explainTableQueryPlanRequest.query) && Objects.equals(this.verbose, explainTableQueryPlanRequest.verbose); @@ -170,7 +214,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, query, verbose); + return Objects.hash(identity, context, id, query, verbose); } @Override @@ -178,6 +222,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExplainTableQueryPlanRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" verbose: ").append(toIndentedString(verbose)).append("\n"); @@ -232,6 +277,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/GetTableStatsRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/GetTableStatsRequest.java index 748e4a7d..1af8e733 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/GetTableStatsRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/GetTableStatsRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** GetTableStatsRequest */ @JsonPropertyOrder({ GetTableStatsRequest.JSON_PROPERTY_IDENTITY, + GetTableStatsRequest.JSON_PROPERTY_CONTEXT, GetTableStatsRequest.JSON_PROPERTY_ID }) @javax.annotation.Generated( @@ -36,6 +39,9 @@ public class GetTableStatsRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -65,6 +71,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public GetTableStatsRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public GetTableStatsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public GetTableStatsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -107,12 +149,13 @@ public boolean equals(Object o) { } GetTableStatsRequest getTableStatsRequest = (GetTableStatsRequest) o; return Objects.equals(this.identity, getTableStatsRequest.identity) + && Objects.equals(this.context, getTableStatsRequest.context) && Objects.equals(this.id, getTableStatsRequest.id); } @Override public int hashCode() { - return Objects.hash(identity, id); + return Objects.hash(identity, context, id); } @Override @@ -120,6 +163,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTableStatsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); @@ -172,6 +216,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/GetTableTagVersionRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/GetTableTagVersionRequest.java index 5f4c7367..b66e82b4 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/GetTableTagVersionRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/GetTableTagVersionRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** GetTableTagVersionRequest */ @JsonPropertyOrder({ GetTableTagVersionRequest.JSON_PROPERTY_IDENTITY, + GetTableTagVersionRequest.JSON_PROPERTY_CONTEXT, GetTableTagVersionRequest.JSON_PROPERTY_ID, GetTableTagVersionRequest.JSON_PROPERTY_TAG }) @@ -37,6 +40,9 @@ public class GetTableTagVersionRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -69,6 +75,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public GetTableTagVersionRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public GetTableTagVersionRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public GetTableTagVersionRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -135,13 +177,14 @@ public boolean equals(Object o) { } GetTableTagVersionRequest getTableTagVersionRequest = (GetTableTagVersionRequest) o; return Objects.equals(this.identity, getTableTagVersionRequest.identity) + && Objects.equals(this.context, getTableTagVersionRequest.context) && Objects.equals(this.id, getTableTagVersionRequest.id) && Objects.equals(this.tag, getTableTagVersionRequest.tag); } @Override public int hashCode() { - return Objects.hash(identity, id, tag); + return Objects.hash(identity, context, id, tag); } @Override @@ -149,6 +192,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTableTagVersionRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append("}"); @@ -202,6 +246,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InsertIntoTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InsertIntoTableRequest.java index 071268fd..2dd7972b 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InsertIntoTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/InsertIntoTableRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** Request for inserting records into a table, excluding the Arrow IPC stream. */ @JsonPropertyOrder({ InsertIntoTableRequest.JSON_PROPERTY_IDENTITY, + InsertIntoTableRequest.JSON_PROPERTY_CONTEXT, InsertIntoTableRequest.JSON_PROPERTY_ID, InsertIntoTableRequest.JSON_PROPERTY_MODE }) @@ -37,6 +40,9 @@ public class InsertIntoTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -69,6 +75,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public InsertIntoTableRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public InsertIntoTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public InsertIntoTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -137,13 +179,14 @@ public boolean equals(Object o) { } InsertIntoTableRequest insertIntoTableRequest = (InsertIntoTableRequest) o; return Objects.equals(this.identity, insertIntoTableRequest.identity) + && Objects.equals(this.context, insertIntoTableRequest.context) && Objects.equals(this.id, insertIntoTableRequest.id) && Objects.equals(this.mode, insertIntoTableRequest.mode); } @Override public int hashCode() { - return Objects.hash(identity, id, mode); + return Objects.hash(identity, context, id, mode); } @Override @@ -151,6 +194,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InsertIntoTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append("}"); @@ -204,6 +248,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListNamespacesRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListNamespacesRequest.java index 7df0e765..5eb46c85 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListNamespacesRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListNamespacesRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** ListNamespacesRequest */ @JsonPropertyOrder({ ListNamespacesRequest.JSON_PROPERTY_IDENTITY, + ListNamespacesRequest.JSON_PROPERTY_CONTEXT, ListNamespacesRequest.JSON_PROPERTY_ID, ListNamespacesRequest.JSON_PROPERTY_PAGE_TOKEN, ListNamespacesRequest.JSON_PROPERTY_LIMIT @@ -38,6 +41,9 @@ public class ListNamespacesRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -73,6 +79,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public ListNamespacesRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public ListNamespacesRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public ListNamespacesRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -170,6 +212,7 @@ public boolean equals(Object o) { } ListNamespacesRequest listNamespacesRequest = (ListNamespacesRequest) o; return Objects.equals(this.identity, listNamespacesRequest.identity) + && Objects.equals(this.context, listNamespacesRequest.context) && Objects.equals(this.id, listNamespacesRequest.id) && Objects.equals(this.pageToken, listNamespacesRequest.pageToken) && Objects.equals(this.limit, listNamespacesRequest.limit); @@ -177,7 +220,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, pageToken, limit); + return Objects.hash(identity, context, id, pageToken, limit); } @Override @@ -185,6 +228,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListNamespacesRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" pageToken: ").append(toIndentedString(pageToken)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); @@ -239,6 +283,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTableIndicesRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTableIndicesRequest.java index 2fbcd663..2e17315b 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTableIndicesRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTableIndicesRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** ListTableIndicesRequest */ @JsonPropertyOrder({ ListTableIndicesRequest.JSON_PROPERTY_IDENTITY, + ListTableIndicesRequest.JSON_PROPERTY_CONTEXT, ListTableIndicesRequest.JSON_PROPERTY_ID, ListTableIndicesRequest.JSON_PROPERTY_VERSION, ListTableIndicesRequest.JSON_PROPERTY_PAGE_TOKEN, @@ -39,6 +42,9 @@ public class ListTableIndicesRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -77,6 +83,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public ListTableIndicesRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public ListTableIndicesRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public ListTableIndicesRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -198,6 +240,7 @@ public boolean equals(Object o) { } ListTableIndicesRequest listTableIndicesRequest = (ListTableIndicesRequest) o; return Objects.equals(this.identity, listTableIndicesRequest.identity) + && Objects.equals(this.context, listTableIndicesRequest.context) && Objects.equals(this.id, listTableIndicesRequest.id) && Objects.equals(this.version, listTableIndicesRequest.version) && Objects.equals(this.pageToken, listTableIndicesRequest.pageToken) @@ -206,7 +249,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, version, pageToken, limit); + return Objects.hash(identity, context, id, version, pageToken, limit); } @Override @@ -214,6 +257,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTableIndicesRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" pageToken: ").append(toIndentedString(pageToken)).append("\n"); @@ -269,6 +313,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTableTagsRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTableTagsRequest.java index 86532a4c..e776d8de 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTableTagsRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTableTagsRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** ListTableTagsRequest */ @JsonPropertyOrder({ ListTableTagsRequest.JSON_PROPERTY_IDENTITY, + ListTableTagsRequest.JSON_PROPERTY_CONTEXT, ListTableTagsRequest.JSON_PROPERTY_ID, ListTableTagsRequest.JSON_PROPERTY_PAGE_TOKEN, ListTableTagsRequest.JSON_PROPERTY_LIMIT @@ -38,6 +41,9 @@ public class ListTableTagsRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -73,6 +79,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public ListTableTagsRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public ListTableTagsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public ListTableTagsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -170,6 +212,7 @@ public boolean equals(Object o) { } ListTableTagsRequest listTableTagsRequest = (ListTableTagsRequest) o; return Objects.equals(this.identity, listTableTagsRequest.identity) + && Objects.equals(this.context, listTableTagsRequest.context) && Objects.equals(this.id, listTableTagsRequest.id) && Objects.equals(this.pageToken, listTableTagsRequest.pageToken) && Objects.equals(this.limit, listTableTagsRequest.limit); @@ -177,7 +220,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, pageToken, limit); + return Objects.hash(identity, context, id, pageToken, limit); } @Override @@ -185,6 +228,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTableTagsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" pageToken: ").append(toIndentedString(pageToken)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); @@ -239,6 +283,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTableVersionsRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTableVersionsRequest.java index e80eb360..91747051 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTableVersionsRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTableVersionsRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** ListTableVersionsRequest */ @JsonPropertyOrder({ ListTableVersionsRequest.JSON_PROPERTY_IDENTITY, + ListTableVersionsRequest.JSON_PROPERTY_CONTEXT, ListTableVersionsRequest.JSON_PROPERTY_ID, ListTableVersionsRequest.JSON_PROPERTY_PAGE_TOKEN, ListTableVersionsRequest.JSON_PROPERTY_LIMIT @@ -38,6 +41,9 @@ public class ListTableVersionsRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -73,6 +79,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public ListTableVersionsRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public ListTableVersionsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public ListTableVersionsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -170,6 +212,7 @@ public boolean equals(Object o) { } ListTableVersionsRequest listTableVersionsRequest = (ListTableVersionsRequest) o; return Objects.equals(this.identity, listTableVersionsRequest.identity) + && Objects.equals(this.context, listTableVersionsRequest.context) && Objects.equals(this.id, listTableVersionsRequest.id) && Objects.equals(this.pageToken, listTableVersionsRequest.pageToken) && Objects.equals(this.limit, listTableVersionsRequest.limit); @@ -177,7 +220,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, pageToken, limit); + return Objects.hash(identity, context, id, pageToken, limit); } @Override @@ -185,6 +228,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTableVersionsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" pageToken: ").append(toIndentedString(pageToken)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); @@ -239,6 +283,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTablesRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTablesRequest.java index f6e3d3ce..5074aa20 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTablesRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/ListTablesRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** ListTablesRequest */ @JsonPropertyOrder({ ListTablesRequest.JSON_PROPERTY_IDENTITY, + ListTablesRequest.JSON_PROPERTY_CONTEXT, ListTablesRequest.JSON_PROPERTY_ID, ListTablesRequest.JSON_PROPERTY_PAGE_TOKEN, ListTablesRequest.JSON_PROPERTY_LIMIT @@ -38,6 +41,9 @@ public class ListTablesRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -73,6 +79,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public ListTablesRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public ListTablesRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public ListTablesRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -170,6 +212,7 @@ public boolean equals(Object o) { } ListTablesRequest listTablesRequest = (ListTablesRequest) o; return Objects.equals(this.identity, listTablesRequest.identity) + && Objects.equals(this.context, listTablesRequest.context) && Objects.equals(this.id, listTablesRequest.id) && Objects.equals(this.pageToken, listTablesRequest.pageToken) && Objects.equals(this.limit, listTablesRequest.limit); @@ -177,7 +220,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, pageToken, limit); + return Objects.hash(identity, context, id, pageToken, limit); } @Override @@ -185,6 +228,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTablesRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" pageToken: ").append(toIndentedString(pageToken)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); @@ -239,6 +283,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/MergeInsertIntoTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/MergeInsertIntoTableRequest.java index 370590a7..e4dc5773 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/MergeInsertIntoTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/MergeInsertIntoTableRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** Request for merging or inserting records into a table, excluding the Arrow IPC stream. */ @JsonPropertyOrder({ MergeInsertIntoTableRequest.JSON_PROPERTY_IDENTITY, + MergeInsertIntoTableRequest.JSON_PROPERTY_CONTEXT, MergeInsertIntoTableRequest.JSON_PROPERTY_ID, MergeInsertIntoTableRequest.JSON_PROPERTY_ON, MergeInsertIntoTableRequest.JSON_PROPERTY_WHEN_MATCHED_UPDATE_ALL, @@ -44,6 +47,9 @@ public class MergeInsertIntoTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -101,6 +107,43 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public MergeInsertIntoTableRequest context( + @javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public MergeInsertIntoTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public MergeInsertIntoTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -345,6 +388,7 @@ public boolean equals(Object o) { } MergeInsertIntoTableRequest mergeInsertIntoTableRequest = (MergeInsertIntoTableRequest) o; return Objects.equals(this.identity, mergeInsertIntoTableRequest.identity) + && Objects.equals(this.context, mergeInsertIntoTableRequest.context) && Objects.equals(this.id, mergeInsertIntoTableRequest.id) && Objects.equals(this.on, mergeInsertIntoTableRequest.on) && Objects.equals( @@ -367,6 +411,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( identity, + context, id, on, whenMatchedUpdateAll, @@ -383,6 +428,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MergeInsertIntoTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" on: ").append(toIndentedString(on)).append("\n"); sb.append(" whenMatchedUpdateAll: ") @@ -453,6 +499,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/NamespaceExistsRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/NamespaceExistsRequest.java index ecb80488..58ac0dea 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/NamespaceExistsRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/NamespaceExistsRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** NamespaceExistsRequest */ @JsonPropertyOrder({ NamespaceExistsRequest.JSON_PROPERTY_IDENTITY, + NamespaceExistsRequest.JSON_PROPERTY_CONTEXT, NamespaceExistsRequest.JSON_PROPERTY_ID }) @javax.annotation.Generated( @@ -36,6 +39,9 @@ public class NamespaceExistsRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -65,6 +71,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public NamespaceExistsRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public NamespaceExistsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public NamespaceExistsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -107,12 +149,13 @@ public boolean equals(Object o) { } NamespaceExistsRequest namespaceExistsRequest = (NamespaceExistsRequest) o; return Objects.equals(this.identity, namespaceExistsRequest.identity) + && Objects.equals(this.context, namespaceExistsRequest.context) && Objects.equals(this.id, namespaceExistsRequest.id); } @Override public int hashCode() { - return Objects.hash(identity, id); + return Objects.hash(identity, context, id); } @Override @@ -120,6 +163,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NamespaceExistsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); @@ -172,6 +216,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/QueryTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/QueryTableRequest.java index 11169879..c0c2ba73 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/QueryTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/QueryTableRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** QueryTableRequest */ @JsonPropertyOrder({ QueryTableRequest.JSON_PROPERTY_IDENTITY, + QueryTableRequest.JSON_PROPERTY_CONTEXT, QueryTableRequest.JSON_PROPERTY_ID, QueryTableRequest.JSON_PROPERTY_BYPASS_VECTOR_INDEX, QueryTableRequest.JSON_PROPERTY_COLUMNS, @@ -54,6 +57,9 @@ public class QueryTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -137,6 +143,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public QueryTableRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public QueryTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public QueryTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -613,6 +655,7 @@ public boolean equals(Object o) { } QueryTableRequest queryTableRequest = (QueryTableRequest) o; return Objects.equals(this.identity, queryTableRequest.identity) + && Objects.equals(this.context, queryTableRequest.context) && Objects.equals(this.id, queryTableRequest.id) && Objects.equals(this.bypassVectorIndex, queryTableRequest.bypassVectorIndex) && Objects.equals(this.columns, queryTableRequest.columns) @@ -638,6 +681,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( identity, + context, id, bypassVectorIndex, columns, @@ -664,6 +708,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class QueryTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" bypassVectorIndex: ").append(toIndentedString(bypassVectorIndex)).append("\n"); sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); @@ -734,6 +779,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RegisterTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RegisterTableRequest.java index c8f21121..2543381f 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RegisterTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RegisterTableRequest.java @@ -29,6 +29,7 @@ /** RegisterTableRequest */ @JsonPropertyOrder({ RegisterTableRequest.JSON_PROPERTY_IDENTITY, + RegisterTableRequest.JSON_PROPERTY_CONTEXT, RegisterTableRequest.JSON_PROPERTY_ID, RegisterTableRequest.JSON_PROPERTY_LOCATION, RegisterTableRequest.JSON_PROPERTY_MODE, @@ -41,6 +42,9 @@ public class RegisterTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -79,6 +83,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public RegisterTableRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public RegisterTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public RegisterTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -205,6 +245,7 @@ public boolean equals(Object o) { } RegisterTableRequest registerTableRequest = (RegisterTableRequest) o; return Objects.equals(this.identity, registerTableRequest.identity) + && Objects.equals(this.context, registerTableRequest.context) && Objects.equals(this.id, registerTableRequest.id) && Objects.equals(this.location, registerTableRequest.location) && Objects.equals(this.mode, registerTableRequest.mode) @@ -213,7 +254,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, location, mode, properties); + return Objects.hash(identity, context, id, location, mode, properties); } @Override @@ -221,6 +262,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RegisterTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" location: ").append(toIndentedString(location)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); @@ -276,6 +318,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RenameTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RenameTableRequest.java index e142382b..4f5ac126 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RenameTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RenameTableRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** RenameTableRequest */ @JsonPropertyOrder({ RenameTableRequest.JSON_PROPERTY_IDENTITY, + RenameTableRequest.JSON_PROPERTY_CONTEXT, RenameTableRequest.JSON_PROPERTY_ID, RenameTableRequest.JSON_PROPERTY_NEW_TABLE_NAME, RenameTableRequest.JSON_PROPERTY_NEW_NAMESPACE_ID @@ -38,6 +41,9 @@ public class RenameTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -73,6 +79,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public RenameTableRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public RenameTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public RenameTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -172,6 +214,7 @@ public boolean equals(Object o) { } RenameTableRequest renameTableRequest = (RenameTableRequest) o; return Objects.equals(this.identity, renameTableRequest.identity) + && Objects.equals(this.context, renameTableRequest.context) && Objects.equals(this.id, renameTableRequest.id) && Objects.equals(this.newTableName, renameTableRequest.newTableName) && Objects.equals(this.newNamespaceId, renameTableRequest.newNamespaceId); @@ -179,7 +222,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, newTableName, newNamespaceId); + return Objects.hash(identity, context, id, newTableName, newNamespaceId); } @Override @@ -187,6 +230,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RenameTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" newTableName: ").append(toIndentedString(newTableName)).append("\n"); sb.append(" newNamespaceId: ").append(toIndentedString(newNamespaceId)).append("\n"); @@ -241,6 +285,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RestoreTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RestoreTableRequest.java index eb6babe4..d23b8848 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RestoreTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RestoreTableRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** RestoreTableRequest */ @JsonPropertyOrder({ RestoreTableRequest.JSON_PROPERTY_IDENTITY, + RestoreTableRequest.JSON_PROPERTY_CONTEXT, RestoreTableRequest.JSON_PROPERTY_ID, RestoreTableRequest.JSON_PROPERTY_VERSION }) @@ -37,6 +40,9 @@ public class RestoreTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -69,6 +75,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public RestoreTableRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public RestoreTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public RestoreTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -135,13 +177,14 @@ public boolean equals(Object o) { } RestoreTableRequest restoreTableRequest = (RestoreTableRequest) o; return Objects.equals(this.identity, restoreTableRequest.identity) + && Objects.equals(this.context, restoreTableRequest.context) && Objects.equals(this.id, restoreTableRequest.id) && Objects.equals(this.version, restoreTableRequest.version); } @Override public int hashCode() { - return Objects.hash(identity, id, version); + return Objects.hash(identity, context, id, version); } @Override @@ -149,6 +192,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RestoreTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); @@ -202,6 +246,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableExistsRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableExistsRequest.java index 88fb7988..ad56f283 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableExistsRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TableExistsRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** TableExistsRequest */ @JsonPropertyOrder({ TableExistsRequest.JSON_PROPERTY_IDENTITY, + TableExistsRequest.JSON_PROPERTY_CONTEXT, TableExistsRequest.JSON_PROPERTY_ID, TableExistsRequest.JSON_PROPERTY_VERSION }) @@ -37,6 +40,9 @@ public class TableExistsRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -69,6 +75,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public TableExistsRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public TableExistsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public TableExistsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -136,13 +178,14 @@ public boolean equals(Object o) { } TableExistsRequest tableExistsRequest = (TableExistsRequest) o; return Objects.equals(this.identity, tableExistsRequest.identity) + && Objects.equals(this.context, tableExistsRequest.context) && Objects.equals(this.id, tableExistsRequest.id) && Objects.equals(this.version, tableExistsRequest.version); } @Override public int hashCode() { - return Objects.hash(identity, id, version); + return Objects.hash(identity, context, id, version); } @Override @@ -150,6 +193,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TableExistsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); @@ -203,6 +247,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableRequest.java index db5847cf..dde43baa 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableRequest.java @@ -20,7 +20,9 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; @@ -30,6 +32,7 @@ */ @JsonPropertyOrder({ UpdateTableRequest.JSON_PROPERTY_IDENTITY, + UpdateTableRequest.JSON_PROPERTY_CONTEXT, UpdateTableRequest.JSON_PROPERTY_ID, UpdateTableRequest.JSON_PROPERTY_PREDICATE, UpdateTableRequest.JSON_PROPERTY_UPDATES @@ -41,6 +44,9 @@ public class UpdateTableRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -76,6 +82,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public UpdateTableRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public UpdateTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public UpdateTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -174,6 +216,7 @@ public boolean equals(Object o) { } UpdateTableRequest updateTableRequest = (UpdateTableRequest) o; return Objects.equals(this.identity, updateTableRequest.identity) + && Objects.equals(this.context, updateTableRequest.context) && Objects.equals(this.id, updateTableRequest.id) && Objects.equals(this.predicate, updateTableRequest.predicate) && Objects.equals(this.updates, updateTableRequest.updates); @@ -181,7 +224,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, predicate, updates); + return Objects.hash(identity, context, id, predicate, updates); } @Override @@ -189,6 +232,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" predicate: ").append(toIndentedString(predicate)).append("\n"); sb.append(" updates: ").append(toIndentedString(updates)).append("\n"); @@ -243,6 +287,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableSchemaMetadataRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableSchemaMetadataRequest.java index f6e0f175..20ef980f 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableSchemaMetadataRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableSchemaMetadataRequest.java @@ -29,6 +29,7 @@ /** UpdateTableSchemaMetadataRequest */ @JsonPropertyOrder({ UpdateTableSchemaMetadataRequest.JSON_PROPERTY_IDENTITY, + UpdateTableSchemaMetadataRequest.JSON_PROPERTY_CONTEXT, UpdateTableSchemaMetadataRequest.JSON_PROPERTY_ID, UpdateTableSchemaMetadataRequest.JSON_PROPERTY_METADATA }) @@ -39,6 +40,9 @@ public class UpdateTableSchemaMetadataRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -71,6 +75,43 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public UpdateTableSchemaMetadataRequest context( + @javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public UpdateTableSchemaMetadataRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public UpdateTableSchemaMetadataRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -147,13 +188,14 @@ public boolean equals(Object o) { UpdateTableSchemaMetadataRequest updateTableSchemaMetadataRequest = (UpdateTableSchemaMetadataRequest) o; return Objects.equals(this.identity, updateTableSchemaMetadataRequest.identity) + && Objects.equals(this.context, updateTableSchemaMetadataRequest.context) && Objects.equals(this.id, updateTableSchemaMetadataRequest.id) && Objects.equals(this.metadata, updateTableSchemaMetadataRequest.metadata); } @Override public int hashCode() { - return Objects.hash(identity, id, metadata); + return Objects.hash(identity, context, id, metadata); } @Override @@ -161,6 +203,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateTableSchemaMetadataRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append("}"); @@ -214,6 +257,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableTagRequest.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableTagRequest.java index 7d6c6187..0a8859c7 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableTagRequest.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UpdateTableTagRequest.java @@ -20,13 +20,16 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** UpdateTableTagRequest */ @JsonPropertyOrder({ UpdateTableTagRequest.JSON_PROPERTY_IDENTITY, + UpdateTableTagRequest.JSON_PROPERTY_CONTEXT, UpdateTableTagRequest.JSON_PROPERTY_ID, UpdateTableTagRequest.JSON_PROPERTY_TAG, UpdateTableTagRequest.JSON_PROPERTY_VERSION @@ -38,6 +41,9 @@ public class UpdateTableTagRequest { public static final String JSON_PROPERTY_IDENTITY = "identity"; @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_CONTEXT = "context"; + @javax.annotation.Nullable private Map context = new HashMap<>(); + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -73,6 +79,42 @@ public void setIdentity(@javax.annotation.Nullable Identity identity) { this.identity = identity; } + public UpdateTableTagRequest context(@javax.annotation.Nullable Map context) { + + this.context = context; + return this; + } + + public UpdateTableTagRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-<key>: <value>`. For example, a + * context entry `{\"trace_id\": \"abc123\"}` would be sent as the + * header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getContext() { + return context; + } + + @JsonProperty(JSON_PROPERTY_CONTEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContext(@javax.annotation.Nullable Map context) { + this.context = context; + } + public UpdateTableTagRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -163,6 +205,7 @@ public boolean equals(Object o) { } UpdateTableTagRequest updateTableTagRequest = (UpdateTableTagRequest) o; return Objects.equals(this.identity, updateTableTagRequest.identity) + && Objects.equals(this.context, updateTableTagRequest.context) && Objects.equals(this.id, updateTableTagRequest.id) && Objects.equals(this.tag, updateTableTagRequest.tag) && Objects.equals(this.version, updateTableTagRequest.version); @@ -170,7 +213,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, tag, version); + return Objects.hash(identity, context, id, tag, version); } @Override @@ -178,6 +221,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateTableTagRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); @@ -232,6 +276,28 @@ public String toUrlQueryString(String prefix) { joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); } + // add `context` to the URL query string + if (getContext() != null) { + for (String _key : getContext().keySet()) { + try { + joiner.add( + String.format( + "%scontext%s%s=%s", + prefix, + suffix, + "".equals(suffix) + ? "" + : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getContext().get(_key), + URLEncoder.encode(String.valueOf(getContext().get(_key)), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + // add `id` to the URL query string if (getId() != null) { for (int i = 0; i < getId().size(); i++) { diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAddColumnsRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAddColumnsRequest.java index 3e72e89f..667db62c 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAddColumnsRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAddColumnsRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** AlterTableAddColumnsRequest */ @@ -32,6 +34,8 @@ public class AlterTableAddColumnsRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); @Valid private List<@Valid NewColumnTransform> newColumns = new ArrayList<>(); @@ -66,6 +70,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public AlterTableAddColumnsRequest context(Map context) { + this.context = context; + return this; + } + + public AlterTableAddColumnsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public AlterTableAddColumnsRequest id(List id) { this.id = id; return this; @@ -137,13 +176,14 @@ public boolean equals(Object o) { } AlterTableAddColumnsRequest alterTableAddColumnsRequest = (AlterTableAddColumnsRequest) o; return Objects.equals(this.identity, alterTableAddColumnsRequest.identity) + && Objects.equals(this.context, alterTableAddColumnsRequest.context) && Objects.equals(this.id, alterTableAddColumnsRequest.id) && Objects.equals(this.newColumns, alterTableAddColumnsRequest.newColumns); } @Override public int hashCode() { - return Objects.hash(identity, id, newColumns); + return Objects.hash(identity, context, id, newColumns); } @Override @@ -151,6 +191,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTableAddColumnsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" newColumns: ").append(toIndentedString(newColumns)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAlterColumnsRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAlterColumnsRequest.java index 31f42ee7..e4f2c5bf 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAlterColumnsRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableAlterColumnsRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** AlterTableAlterColumnsRequest */ @@ -32,6 +34,8 @@ public class AlterTableAlterColumnsRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); @Valid private List<@Valid AlterColumnsEntry> alterations = new ArrayList<>(); @@ -66,6 +70,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public AlterTableAlterColumnsRequest context(Map context) { + this.context = context; + return this; + } + + public AlterTableAlterColumnsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public AlterTableAlterColumnsRequest id(List id) { this.id = id; return this; @@ -137,13 +176,14 @@ public boolean equals(Object o) { } AlterTableAlterColumnsRequest alterTableAlterColumnsRequest = (AlterTableAlterColumnsRequest) o; return Objects.equals(this.identity, alterTableAlterColumnsRequest.identity) + && Objects.equals(this.context, alterTableAlterColumnsRequest.context) && Objects.equals(this.id, alterTableAlterColumnsRequest.id) && Objects.equals(this.alterations, alterTableAlterColumnsRequest.alterations); } @Override public int hashCode() { - return Objects.hash(identity, id, alterations); + return Objects.hash(identity, context, id, alterations); } @Override @@ -151,6 +191,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTableAlterColumnsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" alterations: ").append(toIndentedString(alterations)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableDropColumnsRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableDropColumnsRequest.java index ef8bf4db..e2e137ef 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableDropColumnsRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTableDropColumnsRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** AlterTableDropColumnsRequest */ @@ -32,6 +34,8 @@ public class AlterTableDropColumnsRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); @Valid private List columns = new ArrayList<>(); @@ -66,6 +70,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public AlterTableDropColumnsRequest context(Map context) { + this.context = context; + return this; + } + + public AlterTableDropColumnsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public AlterTableDropColumnsRequest id(List id) { this.id = id; return this; @@ -136,13 +175,14 @@ public boolean equals(Object o) { } AlterTableDropColumnsRequest alterTableDropColumnsRequest = (AlterTableDropColumnsRequest) o; return Objects.equals(this.identity, alterTableDropColumnsRequest.identity) + && Objects.equals(this.context, alterTableDropColumnsRequest.context) && Objects.equals(this.id, alterTableDropColumnsRequest.id) && Objects.equals(this.columns, alterTableDropColumnsRequest.columns); } @Override public int hashCode() { - return Objects.hash(identity, id, columns); + return Objects.hash(identity, context, id, columns); } @Override @@ -150,6 +190,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTableDropColumnsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionRequest.java index 5ef5f445..714c3a12 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -39,6 +41,8 @@ public class AlterTransactionRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); @Valid private List<@Valid AlterTransactionAction> actions = new ArrayList<>(); @@ -73,6 +77,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public AlterTransactionRequest context(Map context) { + this.context = context; + return this; + } + + public AlterTransactionRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public AlterTransactionRequest id(List id) { this.id = id; return this; @@ -142,13 +181,14 @@ public boolean equals(Object o) { } AlterTransactionRequest alterTransactionRequest = (AlterTransactionRequest) o; return Objects.equals(this.identity, alterTransactionRequest.identity) + && Objects.equals(this.context, alterTransactionRequest.context) && Objects.equals(this.id, alterTransactionRequest.id) && Objects.equals(this.actions, alterTransactionRequest.actions); } @Override public int hashCode() { - return Objects.hash(identity, id, actions); + return Objects.hash(identity, context, id, actions); } @Override @@ -156,6 +196,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTransactionRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AnalyzeTableQueryPlanRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AnalyzeTableQueryPlanRequest.java index 157389db..3f574a08 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AnalyzeTableQueryPlanRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AnalyzeTableQueryPlanRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** AnalyzeTableQueryPlanRequest */ @@ -32,6 +34,8 @@ public class AnalyzeTableQueryPlanRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private Boolean bypassVectorIndex; @@ -101,6 +105,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public AnalyzeTableQueryPlanRequest context(Map context) { + this.context = context; + return this; + } + + public AnalyzeTableQueryPlanRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public AnalyzeTableQueryPlanRequest id(List id) { this.id = id; return this; @@ -555,6 +594,7 @@ public boolean equals(Object o) { } AnalyzeTableQueryPlanRequest analyzeTableQueryPlanRequest = (AnalyzeTableQueryPlanRequest) o; return Objects.equals(this.identity, analyzeTableQueryPlanRequest.identity) + && Objects.equals(this.context, analyzeTableQueryPlanRequest.context) && Objects.equals(this.id, analyzeTableQueryPlanRequest.id) && Objects.equals(this.bypassVectorIndex, analyzeTableQueryPlanRequest.bypassVectorIndex) && Objects.equals(this.columns, analyzeTableQueryPlanRequest.columns) @@ -580,6 +620,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( identity, + context, id, bypassVectorIndex, columns, @@ -606,6 +647,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AnalyzeTableQueryPlanRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" bypassVectorIndex: ").append(toIndentedString(bypassVectorIndex)).append("\n"); sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CountTableRowsRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CountTableRowsRequest.java index 3a7dde11..cb41a7c6 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CountTableRowsRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CountTableRowsRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** CountTableRowsRequest */ @@ -32,6 +34,8 @@ public class CountTableRowsRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private Long version; @@ -59,6 +63,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public CountTableRowsRequest context(Map context) { + this.context = context; + return this; + } + + public CountTableRowsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public CountTableRowsRequest id(List id) { this.id = id; return this; @@ -146,6 +185,7 @@ public boolean equals(Object o) { } CountTableRowsRequest countTableRowsRequest = (CountTableRowsRequest) o; return Objects.equals(this.identity, countTableRowsRequest.identity) + && Objects.equals(this.context, countTableRowsRequest.context) && Objects.equals(this.id, countTableRowsRequest.id) && Objects.equals(this.version, countTableRowsRequest.version) && Objects.equals(this.predicate, countTableRowsRequest.predicate); @@ -153,7 +193,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, version, predicate); + return Objects.hash(identity, context, id, version, predicate); } @Override @@ -161,6 +201,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CountTableRowsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" predicate: ").append(toIndentedString(predicate)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateEmptyTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateEmptyTableRequest.java index 20e43e08..2dfe441c 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateEmptyTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateEmptyTableRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -41,6 +43,8 @@ public class CreateEmptyTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String location; @@ -66,6 +70,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public CreateEmptyTableRequest context(Map context) { + this.context = context; + return this; + } + + public CreateEmptyTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public CreateEmptyTableRequest id(List id) { this.id = id; return this; @@ -129,13 +168,14 @@ public boolean equals(Object o) { } CreateEmptyTableRequest createEmptyTableRequest = (CreateEmptyTableRequest) o; return Objects.equals(this.identity, createEmptyTableRequest.identity) + && Objects.equals(this.context, createEmptyTableRequest.context) && Objects.equals(this.id, createEmptyTableRequest.id) && Objects.equals(this.location, createEmptyTableRequest.location); } @Override public int hashCode() { - return Objects.hash(identity, id, location); + return Objects.hash(identity, context, id, location); } @Override @@ -143,6 +183,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateEmptyTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" location: ").append(toIndentedString(location)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateNamespaceRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateNamespaceRequest.java index 7013bfa4..251c099f 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateNamespaceRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateNamespaceRequest.java @@ -34,6 +34,8 @@ public class CreateNamespaceRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String mode; @@ -61,6 +63,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public CreateNamespaceRequest context(Map context) { + this.context = context; + return this; + } + + public CreateNamespaceRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public CreateNamespaceRequest id(List id) { this.id = id; return this; @@ -155,6 +192,7 @@ public boolean equals(Object o) { } CreateNamespaceRequest createNamespaceRequest = (CreateNamespaceRequest) o; return Objects.equals(this.identity, createNamespaceRequest.identity) + && Objects.equals(this.context, createNamespaceRequest.context) && Objects.equals(this.id, createNamespaceRequest.id) && Objects.equals(this.mode, createNamespaceRequest.mode) && Objects.equals(this.properties, createNamespaceRequest.properties); @@ -162,7 +200,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, mode, properties); + return Objects.hash(identity, context, id, mode, properties); } @Override @@ -170,6 +208,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateNamespaceRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableIndexRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableIndexRequest.java index fc1fa7bf..c51fb8b7 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableIndexRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableIndexRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** CreateTableIndexRequest */ @@ -32,6 +34,8 @@ public class CreateTableIndexRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String column; @@ -89,6 +93,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public CreateTableIndexRequest context(Map context) { + this.context = context; + return this; + } + + public CreateTableIndexRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public CreateTableIndexRequest id(List id) { this.id = id; return this; @@ -407,6 +446,7 @@ public boolean equals(Object o) { } CreateTableIndexRequest createTableIndexRequest = (CreateTableIndexRequest) o; return Objects.equals(this.identity, createTableIndexRequest.identity) + && Objects.equals(this.context, createTableIndexRequest.context) && Objects.equals(this.id, createTableIndexRequest.id) && Objects.equals(this.column, createTableIndexRequest.column) && Objects.equals(this.indexType, createTableIndexRequest.indexType) @@ -426,6 +466,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( identity, + context, id, column, indexType, @@ -446,6 +487,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTableIndexRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" column: ").append(toIndentedString(column)).append("\n"); sb.append(" indexType: ").append(toIndentedString(indexType)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableRequest.java index 2ab41512..d79a753f 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Request for creating a table, excluding the Arrow IPC stream. */ @@ -35,6 +37,8 @@ public class CreateTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String mode; @@ -60,6 +64,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public CreateTableRequest context(Map context) { + this.context = context; + return this; + } + + public CreateTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public CreateTableRequest id(List id) { this.id = id; return this; @@ -126,13 +165,14 @@ public boolean equals(Object o) { } CreateTableRequest createTableRequest = (CreateTableRequest) o; return Objects.equals(this.identity, createTableRequest.identity) + && Objects.equals(this.context, createTableRequest.context) && Objects.equals(this.id, createTableRequest.id) && Objects.equals(this.mode, createTableRequest.mode); } @Override public int hashCode() { - return Objects.hash(identity, id, mode); + return Objects.hash(identity, context, id, mode); } @Override @@ -140,6 +180,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableTagRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableTagRequest.java index 3a0ef859..bff3807b 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableTagRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/CreateTableTagRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** CreateTableTagRequest */ @@ -32,6 +34,8 @@ public class CreateTableTagRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String tag; @@ -69,6 +73,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public CreateTableTagRequest context(Map context) { + this.context = context; + return this; + } + + public CreateTableTagRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public CreateTableTagRequest id(List id) { this.id = id; return this; @@ -156,6 +195,7 @@ public boolean equals(Object o) { } CreateTableTagRequest createTableTagRequest = (CreateTableTagRequest) o; return Objects.equals(this.identity, createTableTagRequest.identity) + && Objects.equals(this.context, createTableTagRequest.context) && Objects.equals(this.id, createTableTagRequest.id) && Objects.equals(this.tag, createTableTagRequest.tag) && Objects.equals(this.version, createTableTagRequest.version); @@ -163,7 +203,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, tag, version); + return Objects.hash(identity, context, id, tag, version); } @Override @@ -171,6 +211,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTableTagRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeclareTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeclareTableRequest.java index 3b85a6ac..80891012 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeclareTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeclareTableRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Request for declaring a table. */ @@ -33,6 +35,8 @@ public class DeclareTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String location; @@ -58,6 +62,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public DeclareTableRequest context(Map context) { + this.context = context; + return this; + } + + public DeclareTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public DeclareTableRequest id(List id) { this.id = id; return this; @@ -121,13 +160,14 @@ public boolean equals(Object o) { } DeclareTableRequest declareTableRequest = (DeclareTableRequest) o; return Objects.equals(this.identity, declareTableRequest.identity) + && Objects.equals(this.context, declareTableRequest.context) && Objects.equals(this.id, declareTableRequest.id) && Objects.equals(this.location, declareTableRequest.location); } @Override public int hashCode() { - return Objects.hash(identity, id, location); + return Objects.hash(identity, context, id, location); } @Override @@ -135,6 +175,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeclareTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" location: ").append(toIndentedString(location)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeleteFromTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeleteFromTableRequest.java index e302c227..9b8336d9 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeleteFromTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeleteFromTableRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -38,6 +40,8 @@ public class DeleteFromTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String predicate; @@ -72,6 +76,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public DeleteFromTableRequest context(Map context) { + this.context = context; + return this; + } + + public DeleteFromTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public DeleteFromTableRequest id(List id) { this.id = id; return this; @@ -137,13 +176,14 @@ public boolean equals(Object o) { } DeleteFromTableRequest deleteFromTableRequest = (DeleteFromTableRequest) o; return Objects.equals(this.identity, deleteFromTableRequest.identity) + && Objects.equals(this.context, deleteFromTableRequest.context) && Objects.equals(this.id, deleteFromTableRequest.id) && Objects.equals(this.predicate, deleteFromTableRequest.predicate); } @Override public int hashCode() { - return Objects.hash(identity, id, predicate); + return Objects.hash(identity, context, id, predicate); } @Override @@ -151,6 +191,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteFromTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" predicate: ").append(toIndentedString(predicate)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeleteTableTagRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeleteTableTagRequest.java index cc5782c5..fbf5a59a 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeleteTableTagRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeleteTableTagRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** DeleteTableTagRequest */ @@ -32,6 +34,8 @@ public class DeleteTableTagRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String tag; @@ -66,6 +70,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public DeleteTableTagRequest context(Map context) { + this.context = context; + return this; + } + + public DeleteTableTagRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public DeleteTableTagRequest id(List id) { this.id = id; return this; @@ -128,13 +167,14 @@ public boolean equals(Object o) { } DeleteTableTagRequest deleteTableTagRequest = (DeleteTableTagRequest) o; return Objects.equals(this.identity, deleteTableTagRequest.identity) + && Objects.equals(this.context, deleteTableTagRequest.context) && Objects.equals(this.id, deleteTableTagRequest.id) && Objects.equals(this.tag, deleteTableTagRequest.tag); } @Override public int hashCode() { - return Objects.hash(identity, id, tag); + return Objects.hash(identity, context, id, tag); } @Override @@ -142,6 +182,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteTableTagRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeregisterTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeregisterTableRequest.java index 4048db9e..54c8e7b5 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeregisterTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DeregisterTableRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** The table content remains available in the storage. */ @@ -35,6 +37,8 @@ public class DeregisterTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); public DeregisterTableRequest identity(Identity identity) { @@ -58,6 +62,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public DeregisterTableRequest context(Map context) { + this.context = context; + return this; + } + + public DeregisterTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public DeregisterTableRequest id(List id) { this.id = id; return this; @@ -96,12 +135,13 @@ public boolean equals(Object o) { } DeregisterTableRequest deregisterTableRequest = (DeregisterTableRequest) o; return Objects.equals(this.identity, deregisterTableRequest.identity) + && Objects.equals(this.context, deregisterTableRequest.context) && Objects.equals(this.id, deregisterTableRequest.id); } @Override public int hashCode() { - return Objects.hash(identity, id); + return Objects.hash(identity, context, id); } @Override @@ -109,6 +149,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeregisterTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeNamespaceRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeNamespaceRequest.java index a01b70d6..52bd7edd 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeNamespaceRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeNamespaceRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** DescribeNamespaceRequest */ @@ -32,6 +34,8 @@ public class DescribeNamespaceRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); public DescribeNamespaceRequest identity(Identity identity) { @@ -55,6 +59,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public DescribeNamespaceRequest context(Map context) { + this.context = context; + return this; + } + + public DescribeNamespaceRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public DescribeNamespaceRequest id(List id) { this.id = id; return this; @@ -93,12 +132,13 @@ public boolean equals(Object o) { } DescribeNamespaceRequest describeNamespaceRequest = (DescribeNamespaceRequest) o; return Objects.equals(this.identity, describeNamespaceRequest.identity) + && Objects.equals(this.context, describeNamespaceRequest.context) && Objects.equals(this.id, describeNamespaceRequest.id); } @Override public int hashCode() { - return Objects.hash(identity, id); + return Objects.hash(identity, context, id); } @Override @@ -106,6 +146,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeNamespaceRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTableIndexStatsRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTableIndexStatsRequest.java index f352305f..ed637c28 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTableIndexStatsRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTableIndexStatsRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** DescribeTableIndexStatsRequest */ @@ -32,6 +34,8 @@ public class DescribeTableIndexStatsRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private Long version; @@ -59,6 +63,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public DescribeTableIndexStatsRequest context(Map context) { + this.context = context; + return this; + } + + public DescribeTableIndexStatsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public DescribeTableIndexStatsRequest id(List id) { this.id = id; return this; @@ -145,6 +184,7 @@ public boolean equals(Object o) { DescribeTableIndexStatsRequest describeTableIndexStatsRequest = (DescribeTableIndexStatsRequest) o; return Objects.equals(this.identity, describeTableIndexStatsRequest.identity) + && Objects.equals(this.context, describeTableIndexStatsRequest.context) && Objects.equals(this.id, describeTableIndexStatsRequest.id) && Objects.equals(this.version, describeTableIndexStatsRequest.version) && Objects.equals(this.indexName, describeTableIndexStatsRequest.indexName); @@ -152,7 +192,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, version, indexName); + return Objects.hash(identity, context, id, version, indexName); } @Override @@ -160,6 +200,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeTableIndexStatsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" indexName: ").append(toIndentedString(indexName)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTableRequest.java index ab6bc435..0317f4c5 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTableRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** DescribeTableRequest */ @@ -32,6 +34,8 @@ public class DescribeTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private Long version; @@ -63,6 +67,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public DescribeTableRequest context(Map context) { + this.context = context; + return this; + } + + public DescribeTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public DescribeTableRequest id(List id) { this.id = id; return this; @@ -203,6 +242,7 @@ public boolean equals(Object o) { } DescribeTableRequest describeTableRequest = (DescribeTableRequest) o; return Objects.equals(this.identity, describeTableRequest.identity) + && Objects.equals(this.context, describeTableRequest.context) && Objects.equals(this.id, describeTableRequest.id) && Objects.equals(this.version, describeTableRequest.version) && Objects.equals(this.withTableUri, describeTableRequest.withTableUri) @@ -212,7 +252,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, version, withTableUri, loadDetailedMetadata, vendCredentials); + return Objects.hash( + identity, context, id, version, withTableUri, loadDetailedMetadata, vendCredentials); } @Override @@ -220,6 +261,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" withTableUri: ").append(toIndentedString(withTableUri)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTransactionRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTransactionRequest.java index 7135ee65..af5eb4ef 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTransactionRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTransactionRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** DescribeTransactionRequest */ @@ -32,6 +34,8 @@ public class DescribeTransactionRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); public DescribeTransactionRequest identity(Identity identity) { @@ -55,6 +59,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public DescribeTransactionRequest context(Map context) { + this.context = context; + return this; + } + + public DescribeTransactionRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public DescribeTransactionRequest id(List id) { this.id = id; return this; @@ -93,12 +132,13 @@ public boolean equals(Object o) { } DescribeTransactionRequest describeTransactionRequest = (DescribeTransactionRequest) o; return Objects.equals(this.identity, describeTransactionRequest.identity) + && Objects.equals(this.context, describeTransactionRequest.context) && Objects.equals(this.id, describeTransactionRequest.id); } @Override public int hashCode() { - return Objects.hash(identity, id); + return Objects.hash(identity, context, id); } @Override @@ -106,6 +146,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeTransactionRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropNamespaceRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropNamespaceRequest.java index 19c554fd..21560545 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropNamespaceRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropNamespaceRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** DropNamespaceRequest */ @@ -32,6 +34,8 @@ public class DropNamespaceRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String mode; @@ -59,6 +63,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public DropNamespaceRequest context(Map context) { + this.context = context; + return this; + } + + public DropNamespaceRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public DropNamespaceRequest id(List id) { this.id = id; return this; @@ -152,6 +191,7 @@ public boolean equals(Object o) { } DropNamespaceRequest dropNamespaceRequest = (DropNamespaceRequest) o; return Objects.equals(this.identity, dropNamespaceRequest.identity) + && Objects.equals(this.context, dropNamespaceRequest.context) && Objects.equals(this.id, dropNamespaceRequest.id) && Objects.equals(this.mode, dropNamespaceRequest.mode) && Objects.equals(this.behavior, dropNamespaceRequest.behavior); @@ -159,7 +199,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, mode, behavior); + return Objects.hash(identity, context, id, mode, behavior); } @Override @@ -167,6 +207,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DropNamespaceRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" behavior: ").append(toIndentedString(behavior)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropTableIndexRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropTableIndexRequest.java index bac5f50f..f0293376 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropTableIndexRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropTableIndexRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** DropTableIndexRequest */ @@ -32,6 +34,8 @@ public class DropTableIndexRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String indexName; @@ -57,6 +61,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public DropTableIndexRequest context(Map context) { + this.context = context; + return this; + } + + public DropTableIndexRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public DropTableIndexRequest id(List id) { this.id = id; return this; @@ -118,13 +157,14 @@ public boolean equals(Object o) { } DropTableIndexRequest dropTableIndexRequest = (DropTableIndexRequest) o; return Objects.equals(this.identity, dropTableIndexRequest.identity) + && Objects.equals(this.context, dropTableIndexRequest.context) && Objects.equals(this.id, dropTableIndexRequest.id) && Objects.equals(this.indexName, dropTableIndexRequest.indexName); } @Override public int hashCode() { - return Objects.hash(identity, id, indexName); + return Objects.hash(identity, context, id, indexName); } @Override @@ -132,6 +172,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DropTableIndexRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" indexName: ").append(toIndentedString(indexName)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropTableRequest.java index 66136f01..dbfe1122 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropTableRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -39,6 +41,8 @@ public class DropTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); public DropTableRequest identity(Identity identity) { @@ -62,6 +66,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public DropTableRequest context(Map context) { + this.context = context; + return this; + } + + public DropTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public DropTableRequest id(List id) { this.id = id; return this; @@ -100,12 +139,13 @@ public boolean equals(Object o) { } DropTableRequest dropTableRequest = (DropTableRequest) o; return Objects.equals(this.identity, dropTableRequest.identity) + && Objects.equals(this.context, dropTableRequest.context) && Objects.equals(this.id, dropTableRequest.id); } @Override public int hashCode() { - return Objects.hash(identity, id); + return Objects.hash(identity, context, id); } @Override @@ -113,6 +153,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DropTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ExplainTableQueryPlanRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ExplainTableQueryPlanRequest.java index ea3b9e10..1aed3b01 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ExplainTableQueryPlanRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ExplainTableQueryPlanRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** ExplainTableQueryPlanRequest */ @@ -32,6 +34,8 @@ public class ExplainTableQueryPlanRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private QueryTableRequest query; @@ -68,6 +72,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public ExplainTableQueryPlanRequest context(Map context) { + this.context = context; + return this; + } + + public ExplainTableQueryPlanRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public ExplainTableQueryPlanRequest id(List id) { this.id = id; return this; @@ -151,6 +190,7 @@ public boolean equals(Object o) { } ExplainTableQueryPlanRequest explainTableQueryPlanRequest = (ExplainTableQueryPlanRequest) o; return Objects.equals(this.identity, explainTableQueryPlanRequest.identity) + && Objects.equals(this.context, explainTableQueryPlanRequest.context) && Objects.equals(this.id, explainTableQueryPlanRequest.id) && Objects.equals(this.query, explainTableQueryPlanRequest.query) && Objects.equals(this.verbose, explainTableQueryPlanRequest.verbose); @@ -158,7 +198,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, query, verbose); + return Objects.hash(identity, context, id, query, verbose); } @Override @@ -166,6 +206,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExplainTableQueryPlanRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" verbose: ").append(toIndentedString(verbose)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/GetTableStatsRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/GetTableStatsRequest.java index e02fe975..42205a61 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/GetTableStatsRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/GetTableStatsRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** GetTableStatsRequest */ @@ -32,6 +34,8 @@ public class GetTableStatsRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); public GetTableStatsRequest identity(Identity identity) { @@ -55,6 +59,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public GetTableStatsRequest context(Map context) { + this.context = context; + return this; + } + + public GetTableStatsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public GetTableStatsRequest id(List id) { this.id = id; return this; @@ -93,12 +132,13 @@ public boolean equals(Object o) { } GetTableStatsRequest getTableStatsRequest = (GetTableStatsRequest) o; return Objects.equals(this.identity, getTableStatsRequest.identity) + && Objects.equals(this.context, getTableStatsRequest.context) && Objects.equals(this.id, getTableStatsRequest.id); } @Override public int hashCode() { - return Objects.hash(identity, id); + return Objects.hash(identity, context, id); } @Override @@ -106,6 +146,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTableStatsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/GetTableTagVersionRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/GetTableTagVersionRequest.java index dbab6fd9..66fcce24 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/GetTableTagVersionRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/GetTableTagVersionRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** GetTableTagVersionRequest */ @@ -32,6 +34,8 @@ public class GetTableTagVersionRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String tag; @@ -66,6 +70,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public GetTableTagVersionRequest context(Map context) { + this.context = context; + return this; + } + + public GetTableTagVersionRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public GetTableTagVersionRequest id(List id) { this.id = id; return this; @@ -128,13 +167,14 @@ public boolean equals(Object o) { } GetTableTagVersionRequest getTableTagVersionRequest = (GetTableTagVersionRequest) o; return Objects.equals(this.identity, getTableTagVersionRequest.identity) + && Objects.equals(this.context, getTableTagVersionRequest.context) && Objects.equals(this.id, getTableTagVersionRequest.id) && Objects.equals(this.tag, getTableTagVersionRequest.tag); } @Override public int hashCode() { - return Objects.hash(identity, id, tag); + return Objects.hash(identity, context, id, tag); } @Override @@ -142,6 +182,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTableTagVersionRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InsertIntoTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InsertIntoTableRequest.java index 97830a8a..966a4d12 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InsertIntoTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/InsertIntoTableRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Request for inserting records into a table, excluding the Arrow IPC stream. */ @@ -35,6 +37,8 @@ public class InsertIntoTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String mode = "append"; @@ -60,6 +64,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public InsertIntoTableRequest context(Map context) { + this.context = context; + return this; + } + + public InsertIntoTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public InsertIntoTableRequest id(List id) { this.id = id; return this; @@ -124,13 +163,14 @@ public boolean equals(Object o) { } InsertIntoTableRequest insertIntoTableRequest = (InsertIntoTableRequest) o; return Objects.equals(this.identity, insertIntoTableRequest.identity) + && Objects.equals(this.context, insertIntoTableRequest.context) && Objects.equals(this.id, insertIntoTableRequest.id) && Objects.equals(this.mode, insertIntoTableRequest.mode); } @Override public int hashCode() { - return Objects.hash(identity, id, mode); + return Objects.hash(identity, context, id, mode); } @Override @@ -138,6 +178,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InsertIntoTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListNamespacesRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListNamespacesRequest.java index 90e51e3e..d0f3f51a 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListNamespacesRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListNamespacesRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** ListNamespacesRequest */ @@ -32,6 +34,8 @@ public class ListNamespacesRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String pageToken; @@ -59,6 +63,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public ListNamespacesRequest context(Map context) { + this.context = context; + return this; + } + + public ListNamespacesRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public ListNamespacesRequest id(List id) { this.id = id; return this; @@ -152,6 +191,7 @@ public boolean equals(Object o) { } ListNamespacesRequest listNamespacesRequest = (ListNamespacesRequest) o; return Objects.equals(this.identity, listNamespacesRequest.identity) + && Objects.equals(this.context, listNamespacesRequest.context) && Objects.equals(this.id, listNamespacesRequest.id) && Objects.equals(this.pageToken, listNamespacesRequest.pageToken) && Objects.equals(this.limit, listNamespacesRequest.limit); @@ -159,7 +199,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, pageToken, limit); + return Objects.hash(identity, context, id, pageToken, limit); } @Override @@ -167,6 +207,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListNamespacesRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" pageToken: ").append(toIndentedString(pageToken)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTableIndicesRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTableIndicesRequest.java index b11b26da..30f199cf 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTableIndicesRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTableIndicesRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** ListTableIndicesRequest */ @@ -32,6 +34,8 @@ public class ListTableIndicesRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private Long version; @@ -61,6 +65,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public ListTableIndicesRequest context(Map context) { + this.context = context; + return this; + } + + public ListTableIndicesRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public ListTableIndicesRequest id(List id) { this.id = id; return this; @@ -181,6 +220,7 @@ public boolean equals(Object o) { } ListTableIndicesRequest listTableIndicesRequest = (ListTableIndicesRequest) o; return Objects.equals(this.identity, listTableIndicesRequest.identity) + && Objects.equals(this.context, listTableIndicesRequest.context) && Objects.equals(this.id, listTableIndicesRequest.id) && Objects.equals(this.version, listTableIndicesRequest.version) && Objects.equals(this.pageToken, listTableIndicesRequest.pageToken) @@ -189,7 +229,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, version, pageToken, limit); + return Objects.hash(identity, context, id, version, pageToken, limit); } @Override @@ -197,6 +237,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTableIndicesRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" pageToken: ").append(toIndentedString(pageToken)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTableTagsRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTableTagsRequest.java index e6c6fb1d..6c052fe6 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTableTagsRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTableTagsRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** ListTableTagsRequest */ @@ -32,6 +34,8 @@ public class ListTableTagsRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String pageToken; @@ -59,6 +63,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public ListTableTagsRequest context(Map context) { + this.context = context; + return this; + } + + public ListTableTagsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public ListTableTagsRequest id(List id) { this.id = id; return this; @@ -155,6 +194,7 @@ public boolean equals(Object o) { } ListTableTagsRequest listTableTagsRequest = (ListTableTagsRequest) o; return Objects.equals(this.identity, listTableTagsRequest.identity) + && Objects.equals(this.context, listTableTagsRequest.context) && Objects.equals(this.id, listTableTagsRequest.id) && Objects.equals(this.pageToken, listTableTagsRequest.pageToken) && Objects.equals(this.limit, listTableTagsRequest.limit); @@ -162,7 +202,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, pageToken, limit); + return Objects.hash(identity, context, id, pageToken, limit); } @Override @@ -170,6 +210,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTableTagsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" pageToken: ").append(toIndentedString(pageToken)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTableVersionsRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTableVersionsRequest.java index b821a7f6..3d3f4d0a 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTableVersionsRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTableVersionsRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** ListTableVersionsRequest */ @@ -32,6 +34,8 @@ public class ListTableVersionsRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String pageToken; @@ -59,6 +63,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public ListTableVersionsRequest context(Map context) { + this.context = context; + return this; + } + + public ListTableVersionsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public ListTableVersionsRequest id(List id) { this.id = id; return this; @@ -152,6 +191,7 @@ public boolean equals(Object o) { } ListTableVersionsRequest listTableVersionsRequest = (ListTableVersionsRequest) o; return Objects.equals(this.identity, listTableVersionsRequest.identity) + && Objects.equals(this.context, listTableVersionsRequest.context) && Objects.equals(this.id, listTableVersionsRequest.id) && Objects.equals(this.pageToken, listTableVersionsRequest.pageToken) && Objects.equals(this.limit, listTableVersionsRequest.limit); @@ -159,7 +199,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, pageToken, limit); + return Objects.hash(identity, context, id, pageToken, limit); } @Override @@ -167,6 +207,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTableVersionsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" pageToken: ").append(toIndentedString(pageToken)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTablesRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTablesRequest.java index e6a52360..66ce2717 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTablesRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/ListTablesRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** ListTablesRequest */ @@ -32,6 +34,8 @@ public class ListTablesRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String pageToken; @@ -59,6 +63,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public ListTablesRequest context(Map context) { + this.context = context; + return this; + } + + public ListTablesRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public ListTablesRequest id(List id) { this.id = id; return this; @@ -152,6 +191,7 @@ public boolean equals(Object o) { } ListTablesRequest listTablesRequest = (ListTablesRequest) o; return Objects.equals(this.identity, listTablesRequest.identity) + && Objects.equals(this.context, listTablesRequest.context) && Objects.equals(this.id, listTablesRequest.id) && Objects.equals(this.pageToken, listTablesRequest.pageToken) && Objects.equals(this.limit, listTablesRequest.limit); @@ -159,7 +199,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, pageToken, limit); + return Objects.hash(identity, context, id, pageToken, limit); } @Override @@ -167,6 +207,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTablesRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" pageToken: ").append(toIndentedString(pageToken)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/MergeInsertIntoTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/MergeInsertIntoTableRequest.java index 08e08c5d..65e12967 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/MergeInsertIntoTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/MergeInsertIntoTableRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** Request for merging or inserting records into a table, excluding the Arrow IPC stream. */ @@ -36,6 +38,8 @@ public class MergeInsertIntoTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String on; @@ -75,6 +79,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public MergeInsertIntoTableRequest context(Map context) { + this.context = context; + return this; + } + + public MergeInsertIntoTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public MergeInsertIntoTableRequest id(List id) { this.id = id; return this; @@ -302,6 +341,7 @@ public boolean equals(Object o) { } MergeInsertIntoTableRequest mergeInsertIntoTableRequest = (MergeInsertIntoTableRequest) o; return Objects.equals(this.identity, mergeInsertIntoTableRequest.identity) + && Objects.equals(this.context, mergeInsertIntoTableRequest.context) && Objects.equals(this.id, mergeInsertIntoTableRequest.id) && Objects.equals(this.on, mergeInsertIntoTableRequest.on) && Objects.equals( @@ -324,6 +364,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( identity, + context, id, on, whenMatchedUpdateAll, @@ -340,6 +381,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MergeInsertIntoTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" on: ").append(toIndentedString(on)).append("\n"); sb.append(" whenMatchedUpdateAll: ") diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/NamespaceExistsRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/NamespaceExistsRequest.java index 759d976d..2db0520c 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/NamespaceExistsRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/NamespaceExistsRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** NamespaceExistsRequest */ @@ -32,6 +34,8 @@ public class NamespaceExistsRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); public NamespaceExistsRequest identity(Identity identity) { @@ -55,6 +59,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public NamespaceExistsRequest context(Map context) { + this.context = context; + return this; + } + + public NamespaceExistsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public NamespaceExistsRequest id(List id) { this.id = id; return this; @@ -93,12 +132,13 @@ public boolean equals(Object o) { } NamespaceExistsRequest namespaceExistsRequest = (NamespaceExistsRequest) o; return Objects.equals(this.identity, namespaceExistsRequest.identity) + && Objects.equals(this.context, namespaceExistsRequest.context) && Objects.equals(this.id, namespaceExistsRequest.id); } @Override public int hashCode() { - return Objects.hash(identity, id); + return Objects.hash(identity, context, id); } @Override @@ -106,6 +146,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NamespaceExistsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/QueryTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/QueryTableRequest.java index ae19e5e7..fd6366e8 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/QueryTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/QueryTableRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** QueryTableRequest */ @@ -32,6 +34,8 @@ public class QueryTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private Boolean bypassVectorIndex; @@ -101,6 +105,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public QueryTableRequest context(Map context) { + this.context = context; + return this; + } + + public QueryTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public QueryTableRequest id(List id) { this.id = id; return this; @@ -555,6 +594,7 @@ public boolean equals(Object o) { } QueryTableRequest queryTableRequest = (QueryTableRequest) o; return Objects.equals(this.identity, queryTableRequest.identity) + && Objects.equals(this.context, queryTableRequest.context) && Objects.equals(this.id, queryTableRequest.id) && Objects.equals(this.bypassVectorIndex, queryTableRequest.bypassVectorIndex) && Objects.equals(this.columns, queryTableRequest.columns) @@ -580,6 +620,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( identity, + context, id, bypassVectorIndex, columns, @@ -606,6 +647,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class QueryTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" bypassVectorIndex: ").append(toIndentedString(bypassVectorIndex)).append("\n"); sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RegisterTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RegisterTableRequest.java index 18a8a0e7..5b92e5ab 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RegisterTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RegisterTableRequest.java @@ -34,6 +34,8 @@ public class RegisterTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String location; @@ -72,6 +74,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public RegisterTableRequest context(Map context) { + this.context = context; + return this; + } + + public RegisterTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public RegisterTableRequest id(List id) { this.id = id; return this; @@ -186,6 +223,7 @@ public boolean equals(Object o) { } RegisterTableRequest registerTableRequest = (RegisterTableRequest) o; return Objects.equals(this.identity, registerTableRequest.identity) + && Objects.equals(this.context, registerTableRequest.context) && Objects.equals(this.id, registerTableRequest.id) && Objects.equals(this.location, registerTableRequest.location) && Objects.equals(this.mode, registerTableRequest.mode) @@ -194,7 +232,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, location, mode, properties); + return Objects.hash(identity, context, id, location, mode, properties); } @Override @@ -202,6 +240,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RegisterTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" location: ").append(toIndentedString(location)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RenameTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RenameTableRequest.java index 3cf37099..e3e46583 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RenameTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RenameTableRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** RenameTableRequest */ @@ -32,6 +34,8 @@ public class RenameTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String newTableName; @@ -68,6 +72,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public RenameTableRequest context(Map context) { + this.context = context; + return this; + } + + public RenameTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public RenameTableRequest id(List id) { this.id = id; return this; @@ -166,6 +205,7 @@ public boolean equals(Object o) { } RenameTableRequest renameTableRequest = (RenameTableRequest) o; return Objects.equals(this.identity, renameTableRequest.identity) + && Objects.equals(this.context, renameTableRequest.context) && Objects.equals(this.id, renameTableRequest.id) && Objects.equals(this.newTableName, renameTableRequest.newTableName) && Objects.equals(this.newNamespaceId, renameTableRequest.newNamespaceId); @@ -173,7 +213,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, newTableName, newNamespaceId); + return Objects.hash(identity, context, id, newTableName, newNamespaceId); } @Override @@ -181,6 +221,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RenameTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" newTableName: ").append(toIndentedString(newTableName)).append("\n"); sb.append(" newNamespaceId: ").append(toIndentedString(newNamespaceId)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RestoreTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RestoreTableRequest.java index fd5ae4dd..bb8b8ce4 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RestoreTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RestoreTableRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** RestoreTableRequest */ @@ -32,6 +34,8 @@ public class RestoreTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private Long version; @@ -66,6 +70,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public RestoreTableRequest context(Map context) { + this.context = context; + return this; + } + + public RestoreTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public RestoreTableRequest id(List id) { this.id = id; return this; @@ -129,13 +168,14 @@ public boolean equals(Object o) { } RestoreTableRequest restoreTableRequest = (RestoreTableRequest) o; return Objects.equals(this.identity, restoreTableRequest.identity) + && Objects.equals(this.context, restoreTableRequest.context) && Objects.equals(this.id, restoreTableRequest.id) && Objects.equals(this.version, restoreTableRequest.version); } @Override public int hashCode() { - return Objects.hash(identity, id, version); + return Objects.hash(identity, context, id, version); } @Override @@ -143,6 +183,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RestoreTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableExistsRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableExistsRequest.java index a7699db2..f07efe45 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableExistsRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TableExistsRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** TableExistsRequest */ @@ -32,6 +34,8 @@ public class TableExistsRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private Long version; @@ -57,6 +61,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public TableExistsRequest context(Map context) { + this.context = context; + return this; + } + + public TableExistsRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public TableExistsRequest id(List id) { this.id = id; return this; @@ -121,13 +160,14 @@ public boolean equals(Object o) { } TableExistsRequest tableExistsRequest = (TableExistsRequest) o; return Objects.equals(this.identity, tableExistsRequest.identity) + && Objects.equals(this.context, tableExistsRequest.context) && Objects.equals(this.id, tableExistsRequest.id) && Objects.equals(this.version, tableExistsRequest.version); } @Override public int hashCode() { - return Objects.hash(identity, id, version); + return Objects.hash(identity, context, id, version); } @Override @@ -135,6 +175,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TableExistsRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableRequest.java index 9de1f44e..022ecf22 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** @@ -39,6 +41,8 @@ public class UpdateTableRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String predicate; @@ -75,6 +79,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public UpdateTableRequest context(Map context) { + this.context = context; + return this; + } + + public UpdateTableRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public UpdateTableRequest id(List id) { this.id = id; return this; @@ -169,6 +208,7 @@ public boolean equals(Object o) { } UpdateTableRequest updateTableRequest = (UpdateTableRequest) o; return Objects.equals(this.identity, updateTableRequest.identity) + && Objects.equals(this.context, updateTableRequest.context) && Objects.equals(this.id, updateTableRequest.id) && Objects.equals(this.predicate, updateTableRequest.predicate) && Objects.equals(this.updates, updateTableRequest.updates); @@ -176,7 +216,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, predicate, updates); + return Objects.hash(identity, context, id, predicate, updates); } @Override @@ -184,6 +224,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateTableRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" predicate: ").append(toIndentedString(predicate)).append("\n"); sb.append(" updates: ").append(toIndentedString(updates)).append("\n"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableSchemaMetadataRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableSchemaMetadataRequest.java index b4fd6dd8..2389c3a2 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableSchemaMetadataRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableSchemaMetadataRequest.java @@ -34,6 +34,8 @@ public class UpdateTableSchemaMetadataRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); @Valid private Map metadata = new HashMap<>(); @@ -59,6 +61,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public UpdateTableSchemaMetadataRequest context(Map context) { + this.context = context; + return this; + } + + public UpdateTableSchemaMetadataRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public UpdateTableSchemaMetadataRequest id(List id) { this.id = id; return this; @@ -132,13 +169,14 @@ public boolean equals(Object o) { UpdateTableSchemaMetadataRequest updateTableSchemaMetadataRequest = (UpdateTableSchemaMetadataRequest) o; return Objects.equals(this.identity, updateTableSchemaMetadataRequest.identity) + && Objects.equals(this.context, updateTableSchemaMetadataRequest.context) && Objects.equals(this.id, updateTableSchemaMetadataRequest.id) && Objects.equals(this.metadata, updateTableSchemaMetadataRequest.metadata); } @Override public int hashCode() { - return Objects.hash(identity, id, metadata); + return Objects.hash(identity, context, id, metadata); } @Override @@ -146,6 +184,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateTableSchemaMetadataRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append("}"); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableTagRequest.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableTagRequest.java index cc42dd9d..0163cf87 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableTagRequest.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UpdateTableTagRequest.java @@ -21,7 +21,9 @@ import java.util.*; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; /** UpdateTableTagRequest */ @@ -32,6 +34,8 @@ public class UpdateTableTagRequest { private Identity identity; + @Valid private Map context = new HashMap<>(); + @Valid private List id = new ArrayList<>(); private String tag; @@ -69,6 +73,41 @@ public void setIdentity(Identity identity) { this.identity = identity; } + public UpdateTableTagRequest context(Map context) { + this.context = context; + return this; + } + + public UpdateTableTagRequest putContextItem(String key, String contextItem) { + if (this.context == null) { + this.context = new HashMap<>(); + } + this.context.put(key, contextItem); + return this; + } + + /** + * Arbitrary context for a request as key-value pairs. How to use the context is custom to the + * specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using + * the naming convention `x-lance-ctx-: `. For example, a context entry + * `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + * + * @return context + */ + @Schema( + name = "context", + description = + "Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("context") + public Map getContext() { + return context; + } + + public void setContext(Map context) { + this.context = context; + } + public UpdateTableTagRequest id(List id) { this.id = id; return this; @@ -156,6 +195,7 @@ public boolean equals(Object o) { } UpdateTableTagRequest updateTableTagRequest = (UpdateTableTagRequest) o; return Objects.equals(this.identity, updateTableTagRequest.identity) + && Objects.equals(this.context, updateTableTagRequest.context) && Objects.equals(this.id, updateTableTagRequest.id) && Objects.equals(this.tag, updateTableTagRequest.tag) && Objects.equals(this.version, updateTableTagRequest.version); @@ -163,7 +203,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(identity, id, tag, version); + return Objects.hash(identity, context, id, tag, version); } @Override @@ -171,6 +211,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateTableTagRequest {\n"); sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); diff --git a/python/lance_namespace_urllib3_client/docs/AlterTableAddColumnsRequest.md b/python/lance_namespace_urllib3_client/docs/AlterTableAddColumnsRequest.md index b53a2ad8..bd6dd26b 100644 --- a/python/lance_namespace_urllib3_client/docs/AlterTableAddColumnsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/AlterTableAddColumnsRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **new_columns** | [**List[NewColumnTransform]**](NewColumnTransform.md) | List of new columns to add | diff --git a/python/lance_namespace_urllib3_client/docs/AlterTableAlterColumnsRequest.md b/python/lance_namespace_urllib3_client/docs/AlterTableAlterColumnsRequest.md index 991da047..7bc3d943 100644 --- a/python/lance_namespace_urllib3_client/docs/AlterTableAlterColumnsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/AlterTableAlterColumnsRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **alterations** | [**List[AlterColumnsEntry]**](AlterColumnsEntry.md) | List of column alterations to perform | diff --git a/python/lance_namespace_urllib3_client/docs/AlterTableDropColumnsRequest.md b/python/lance_namespace_urllib3_client/docs/AlterTableDropColumnsRequest.md index ada02c44..45fc9cde 100644 --- a/python/lance_namespace_urllib3_client/docs/AlterTableDropColumnsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/AlterTableDropColumnsRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **columns** | **List[str]** | Names of columns to drop | diff --git a/python/lance_namespace_urllib3_client/docs/AlterTransactionRequest.md b/python/lance_namespace_urllib3_client/docs/AlterTransactionRequest.md index afe56927..e18c28ca 100644 --- a/python/lance_namespace_urllib3_client/docs/AlterTransactionRequest.md +++ b/python/lance_namespace_urllib3_client/docs/AlterTransactionRequest.md @@ -7,6 +7,7 @@ Alter a transaction with a list of actions. The server should either succeed and Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **actions** | [**List[AlterTransactionAction]**](AlterTransactionAction.md) | | diff --git a/python/lance_namespace_urllib3_client/docs/AnalyzeTableQueryPlanRequest.md b/python/lance_namespace_urllib3_client/docs/AnalyzeTableQueryPlanRequest.md index b4f392e4..9e5d55c0 100644 --- a/python/lance_namespace_urllib3_client/docs/AnalyzeTableQueryPlanRequest.md +++ b/python/lance_namespace_urllib3_client/docs/AnalyzeTableQueryPlanRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **bypass_vector_index** | **bool** | Whether to bypass vector index | [optional] **columns** | [**QueryTableRequestColumns**](QueryTableRequestColumns.md) | | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/CountTableRowsRequest.md b/python/lance_namespace_urllib3_client/docs/CountTableRowsRequest.md index c45ed2ad..17a95495 100644 --- a/python/lance_namespace_urllib3_client/docs/CountTableRowsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CountTableRowsRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **version** | **int** | Version of the table to describe. If not specified, server should resolve it to the latest version. | [optional] **predicate** | **str** | Optional SQL predicate to filter rows for counting | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/CreateEmptyTableRequest.md b/python/lance_namespace_urllib3_client/docs/CreateEmptyTableRequest.md index 877f9a4a..f7f74b99 100644 --- a/python/lance_namespace_urllib3_client/docs/CreateEmptyTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CreateEmptyTableRequest.md @@ -7,6 +7,7 @@ Request for creating an empty table. **Deprecated**: Use `DeclareTableRequest` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **location** | **str** | Optional storage location for the table. If not provided, the namespace implementation should determine the table location. | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/CreateNamespaceRequest.md b/python/lance_namespace_urllib3_client/docs/CreateNamespaceRequest.md index 5c136ea9..a5f789f0 100644 --- a/python/lance_namespace_urllib3_client/docs/CreateNamespaceRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CreateNamespaceRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **mode** | **str** | There are three modes when trying to create a namespace, to differentiate the behavior when a namespace of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create: the operation fails with 409. * ExistOk: the operation succeeds and the existing namespace is kept. * Overwrite: the existing namespace is dropped and a new empty namespace with this name is created. | [optional] **properties** | **Dict[str, str]** | | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/CreateTableIndexRequest.md b/python/lance_namespace_urllib3_client/docs/CreateTableIndexRequest.md index f164c9e4..e2b810b3 100644 --- a/python/lance_namespace_urllib3_client/docs/CreateTableIndexRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CreateTableIndexRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **column** | **str** | Name of the column to create index on | **index_type** | **str** | Type of index to create (e.g., BTREE, BITMAP, LABEL_LIST, IVF_FLAT, IVF_PQ, IVF_HNSW_SQ, FTS) | diff --git a/python/lance_namespace_urllib3_client/docs/CreateTableRequest.md b/python/lance_namespace_urllib3_client/docs/CreateTableRequest.md index 9477d2d1..bf67ee8e 100644 --- a/python/lance_namespace_urllib3_client/docs/CreateTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CreateTableRequest.md @@ -7,6 +7,7 @@ Request for creating a table, excluding the Arrow IPC stream. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **mode** | **str** | There are three modes when trying to create a table, to differentiate the behavior when a table of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create: the operation fails with 409. * ExistOk: the operation succeeds and the existing table is kept. * Overwrite: the existing table is dropped and a new table with this name is created. | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/CreateTableTagRequest.md b/python/lance_namespace_urllib3_client/docs/CreateTableTagRequest.md index 061eef80..c5ffad56 100644 --- a/python/lance_namespace_urllib3_client/docs/CreateTableTagRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CreateTableTagRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **tag** | **str** | Name of the tag to create | **version** | **int** | Version number for the tag to point to | diff --git a/python/lance_namespace_urllib3_client/docs/DeclareTableRequest.md b/python/lance_namespace_urllib3_client/docs/DeclareTableRequest.md index b491cd76..89649750 100644 --- a/python/lance_namespace_urllib3_client/docs/DeclareTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DeclareTableRequest.md @@ -7,6 +7,7 @@ Request for declaring a table. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **location** | **str** | Optional storage location for the table. If not provided, the namespace implementation should determine the table location. | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/DeleteFromTableRequest.md b/python/lance_namespace_urllib3_client/docs/DeleteFromTableRequest.md index 0e1da65d..e047e5af 100644 --- a/python/lance_namespace_urllib3_client/docs/DeleteFromTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DeleteFromTableRequest.md @@ -7,6 +7,7 @@ Delete data from table based on a SQL predicate. Returns the number of rows that Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | The namespace identifier | [optional] **predicate** | **str** | SQL predicate to filter rows for deletion | diff --git a/python/lance_namespace_urllib3_client/docs/DeleteTableTagRequest.md b/python/lance_namespace_urllib3_client/docs/DeleteTableTagRequest.md index 9a176d1c..3fd326e3 100644 --- a/python/lance_namespace_urllib3_client/docs/DeleteTableTagRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DeleteTableTagRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **tag** | **str** | Name of the tag to delete | diff --git a/python/lance_namespace_urllib3_client/docs/DeregisterTableRequest.md b/python/lance_namespace_urllib3_client/docs/DeregisterTableRequest.md index 1f59cf70..652628f3 100644 --- a/python/lance_namespace_urllib3_client/docs/DeregisterTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DeregisterTableRequest.md @@ -7,6 +7,7 @@ The table content remains available in the storage. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/DescribeNamespaceRequest.md b/python/lance_namespace_urllib3_client/docs/DescribeNamespaceRequest.md index 5ee0b9c1..d7a5c043 100644 --- a/python/lance_namespace_urllib3_client/docs/DescribeNamespaceRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DescribeNamespaceRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/DescribeTableIndexStatsRequest.md b/python/lance_namespace_urllib3_client/docs/DescribeTableIndexStatsRequest.md index d77fba18..2d42a1b1 100644 --- a/python/lance_namespace_urllib3_client/docs/DescribeTableIndexStatsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DescribeTableIndexStatsRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **version** | **int** | Optional table version to get stats for | [optional] **index_name** | **str** | Name of the index | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/DescribeTableRequest.md b/python/lance_namespace_urllib3_client/docs/DescribeTableRequest.md index d919f2ee..d003abcb 100644 --- a/python/lance_namespace_urllib3_client/docs/DescribeTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DescribeTableRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **version** | **int** | Version of the table to describe. If not specified, server should resolve it to the latest version. | [optional] **with_table_uri** | **bool** | Whether to include the table URI in the response. Default is false. | [optional] [default to False] diff --git a/python/lance_namespace_urllib3_client/docs/DescribeTransactionRequest.md b/python/lance_namespace_urllib3_client/docs/DescribeTransactionRequest.md index 167bcbd9..8f5f7e35 100644 --- a/python/lance_namespace_urllib3_client/docs/DescribeTransactionRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DescribeTransactionRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/DropNamespaceRequest.md b/python/lance_namespace_urllib3_client/docs/DropNamespaceRequest.md index 92362f02..a3315fbb 100644 --- a/python/lance_namespace_urllib3_client/docs/DropNamespaceRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DropNamespaceRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **mode** | **str** | The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. Case insensitive, supports both PascalCase and snake_case. Valid values are: - 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] **behavior** | **str** | The behavior for dropping a namespace. Case insensitive, supports both PascalCase and snake_case. Valid values are: - 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] diff --git a/python/lance_namespace_urllib3_client/docs/DropTableIndexRequest.md b/python/lance_namespace_urllib3_client/docs/DropTableIndexRequest.md index afb3ad93..6a2ea5eb 100644 --- a/python/lance_namespace_urllib3_client/docs/DropTableIndexRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DropTableIndexRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **index_name** | **str** | Name of the index to drop | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/DropTableRequest.md b/python/lance_namespace_urllib3_client/docs/DropTableRequest.md index 9fe533e1..9ea1345e 100644 --- a/python/lance_namespace_urllib3_client/docs/DropTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DropTableRequest.md @@ -7,6 +7,7 @@ If the table and its data can be immediately deleted, return information of the Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/ExplainTableQueryPlanRequest.md b/python/lance_namespace_urllib3_client/docs/ExplainTableQueryPlanRequest.md index db628414..cf535f0b 100644 --- a/python/lance_namespace_urllib3_client/docs/ExplainTableQueryPlanRequest.md +++ b/python/lance_namespace_urllib3_client/docs/ExplainTableQueryPlanRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **query** | [**QueryTableRequest**](QueryTableRequest.md) | | **verbose** | **bool** | Whether to return verbose explanation | [optional] [default to False] diff --git a/python/lance_namespace_urllib3_client/docs/GetTableStatsRequest.md b/python/lance_namespace_urllib3_client/docs/GetTableStatsRequest.md index 6c01aeda..0d5f3eab 100644 --- a/python/lance_namespace_urllib3_client/docs/GetTableStatsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/GetTableStatsRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/GetTableTagVersionRequest.md b/python/lance_namespace_urllib3_client/docs/GetTableTagVersionRequest.md index 17cd31a4..428d8709 100644 --- a/python/lance_namespace_urllib3_client/docs/GetTableTagVersionRequest.md +++ b/python/lance_namespace_urllib3_client/docs/GetTableTagVersionRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **tag** | **str** | Name of the tag to get version for | diff --git a/python/lance_namespace_urllib3_client/docs/InsertIntoTableRequest.md b/python/lance_namespace_urllib3_client/docs/InsertIntoTableRequest.md index 78ea1715..0cf13520 100644 --- a/python/lance_namespace_urllib3_client/docs/InsertIntoTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/InsertIntoTableRequest.md @@ -7,6 +7,7 @@ Request for inserting records into a table, excluding the Arrow IPC stream. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **mode** | **str** | How the insert should behave. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Append (default): insert data to the existing table - Overwrite: remove all data in the table and then insert data to it | [optional] [default to 'append'] diff --git a/python/lance_namespace_urllib3_client/docs/ListNamespacesRequest.md b/python/lance_namespace_urllib3_client/docs/ListNamespacesRequest.md index 8d9df311..24821203 100644 --- a/python/lance_namespace_urllib3_client/docs/ListNamespacesRequest.md +++ b/python/lance_namespace_urllib3_client/docs/ListNamespacesRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **page_token** | **str** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] **limit** | **int** | An inclusive upper bound of the number of results that a caller will receive. | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/ListTableIndicesRequest.md b/python/lance_namespace_urllib3_client/docs/ListTableIndicesRequest.md index 09b06a37..6c80be25 100644 --- a/python/lance_namespace_urllib3_client/docs/ListTableIndicesRequest.md +++ b/python/lance_namespace_urllib3_client/docs/ListTableIndicesRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | The namespace identifier | [optional] **version** | **int** | Optional table version to list indexes from | [optional] **page_token** | **str** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/ListTableTagsRequest.md b/python/lance_namespace_urllib3_client/docs/ListTableTagsRequest.md index fb81d7a3..065d8543 100644 --- a/python/lance_namespace_urllib3_client/docs/ListTableTagsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/ListTableTagsRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | The table identifier | [optional] **page_token** | **str** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] **limit** | **int** | An inclusive upper bound of the number of results that a caller will receive. | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/ListTableVersionsRequest.md b/python/lance_namespace_urllib3_client/docs/ListTableVersionsRequest.md index 7fa0c72a..caef46aa 100644 --- a/python/lance_namespace_urllib3_client/docs/ListTableVersionsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/ListTableVersionsRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **page_token** | **str** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] **limit** | **int** | An inclusive upper bound of the number of results that a caller will receive. | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/ListTablesRequest.md b/python/lance_namespace_urllib3_client/docs/ListTablesRequest.md index acc0a10d..3d20498c 100644 --- a/python/lance_namespace_urllib3_client/docs/ListTablesRequest.md +++ b/python/lance_namespace_urllib3_client/docs/ListTablesRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **page_token** | **str** | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] **limit** | **int** | An inclusive upper bound of the number of results that a caller will receive. | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/MergeInsertIntoTableRequest.md b/python/lance_namespace_urllib3_client/docs/MergeInsertIntoTableRequest.md index 8783bbf9..fe35b8e1 100644 --- a/python/lance_namespace_urllib3_client/docs/MergeInsertIntoTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/MergeInsertIntoTableRequest.md @@ -7,6 +7,7 @@ Request for merging or inserting records into a table, excluding the Arrow IPC s Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **on** | **str** | Column name to use for matching rows (required) | [optional] **when_matched_update_all** | **bool** | Update all columns when rows match | [optional] [default to False] diff --git a/python/lance_namespace_urllib3_client/docs/NamespaceExistsRequest.md b/python/lance_namespace_urllib3_client/docs/NamespaceExistsRequest.md index befac04f..1b435c1b 100644 --- a/python/lance_namespace_urllib3_client/docs/NamespaceExistsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/NamespaceExistsRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/QueryTableRequest.md b/python/lance_namespace_urllib3_client/docs/QueryTableRequest.md index bb69686b..7afa329e 100644 --- a/python/lance_namespace_urllib3_client/docs/QueryTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/QueryTableRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **bypass_vector_index** | **bool** | Whether to bypass vector index | [optional] **columns** | [**QueryTableRequestColumns**](QueryTableRequestColumns.md) | | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/RegisterTableRequest.md b/python/lance_namespace_urllib3_client/docs/RegisterTableRequest.md index 143c5485..7821b82e 100644 --- a/python/lance_namespace_urllib3_client/docs/RegisterTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/RegisterTableRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **location** | **str** | | **mode** | **str** | There are two modes when trying to register a table, to differentiate the behavior when a table of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create (default): the operation fails with 409. * Overwrite: the existing table registration is replaced with the new registration. | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/RenameTableRequest.md b/python/lance_namespace_urllib3_client/docs/RenameTableRequest.md index 91ff9e24..1127198f 100644 --- a/python/lance_namespace_urllib3_client/docs/RenameTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/RenameTableRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | The table identifier | [optional] **new_table_name** | **str** | New name for the table | **new_namespace_id** | **List[str]** | New namespace identifier to move the table to (optional, if not specified the table stays in the same namespace) | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/RestoreTableRequest.md b/python/lance_namespace_urllib3_client/docs/RestoreTableRequest.md index ff8bed95..ba4e90c1 100644 --- a/python/lance_namespace_urllib3_client/docs/RestoreTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/RestoreTableRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **version** | **int** | Version to restore to | diff --git a/python/lance_namespace_urllib3_client/docs/TableExistsRequest.md b/python/lance_namespace_urllib3_client/docs/TableExistsRequest.md index c5e79a29..4984115f 100644 --- a/python/lance_namespace_urllib3_client/docs/TableExistsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/TableExistsRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **version** | **int** | Version of the table to check existence. If not specified, server should resolve it to the latest version. | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/UpdateTableRequest.md b/python/lance_namespace_urllib3_client/docs/UpdateTableRequest.md index bdebe715..c069e8e3 100644 --- a/python/lance_namespace_urllib3_client/docs/UpdateTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/UpdateTableRequest.md @@ -7,6 +7,7 @@ Each update consists of a column name and an SQL expression that will be evaluat Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **predicate** | **str** | Optional SQL predicate to filter rows for update | [optional] **updates** | **List[List[str]]** | List of column updates as [column_name, expression] pairs | diff --git a/python/lance_namespace_urllib3_client/docs/UpdateTableSchemaMetadataRequest.md b/python/lance_namespace_urllib3_client/docs/UpdateTableSchemaMetadataRequest.md index 3a316c7e..0a90eb07 100644 --- a/python/lance_namespace_urllib3_client/docs/UpdateTableSchemaMetadataRequest.md +++ b/python/lance_namespace_urllib3_client/docs/UpdateTableSchemaMetadataRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | The table identifier | [optional] **metadata** | **Dict[str, str]** | Schema metadata key-value pairs to set | [optional] diff --git a/python/lance_namespace_urllib3_client/docs/UpdateTableTagRequest.md b/python/lance_namespace_urllib3_client/docs/UpdateTableTagRequest.md index c646d190..98934701 100644 --- a/python/lance_namespace_urllib3_client/docs/UpdateTableTagRequest.md +++ b/python/lance_namespace_urllib3_client/docs/UpdateTableTagRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**Identity**](Identity.md) | | [optional] +**context** | **Dict[str, str]** | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-<key>: <value>`. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | **List[str]** | | [optional] **tag** | **str** | Name of the tag to update | **version** | **int** | New version number for the tag to point to | diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_add_columns_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_add_columns_request.py index b8df650d..450e3cef 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_add_columns_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_add_columns_request.py @@ -29,9 +29,10 @@ class AlterTableAddColumnsRequest(BaseModel): AlterTableAddColumnsRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None new_columns: List[NewColumnTransform] = Field(description="List of new columns to add") - __properties: ClassVar[List[str]] = ["identity", "id", "new_columns"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "new_columns"] model_config = ConfigDict( populate_by_name=True, @@ -95,6 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "new_columns": [NewColumnTransform.from_dict(_item) for _item in obj["new_columns"]] if obj.get("new_columns") is not None else None }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_alter_columns_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_alter_columns_request.py index ebd59963..b73594ff 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_alter_columns_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_alter_columns_request.py @@ -29,9 +29,10 @@ class AlterTableAlterColumnsRequest(BaseModel): AlterTableAlterColumnsRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None alterations: List[AlterColumnsEntry] = Field(description="List of column alterations to perform") - __properties: ClassVar[List[str]] = ["identity", "id", "alterations"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "alterations"] model_config = ConfigDict( populate_by_name=True, @@ -95,6 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "alterations": [AlterColumnsEntry.from_dict(_item) for _item in obj["alterations"]] if obj.get("alterations") is not None else None }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_drop_columns_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_drop_columns_request.py index 8d5ac6d7..0c1ff7a4 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_drop_columns_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_table_drop_columns_request.py @@ -28,9 +28,10 @@ class AlterTableDropColumnsRequest(BaseModel): AlterTableDropColumnsRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None columns: List[StrictStr] = Field(description="Names of columns to drop") - __properties: ClassVar[List[str]] = ["identity", "id", "columns"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "columns"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "columns": obj.get("columns") }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_request.py index d548d39e..16eebfc6 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_request.py @@ -30,9 +30,10 @@ class AlterTransactionRequest(BaseModel): Alter a transaction with a list of actions. The server should either succeed and apply all actions, or fail and apply no action. """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None actions: Annotated[List[AlterTransactionAction], Field(min_length=1)] - __properties: ClassVar[List[str]] = ["identity", "id", "actions"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "actions"] model_config = ConfigDict( populate_by_name=True, @@ -96,6 +97,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "actions": [AlterTransactionAction.from_dict(_item) for _item in obj["actions"]] if obj.get("actions") is not None else None }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/analyze_table_query_plan_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/analyze_table_query_plan_request.py index 878cb417..1ace801e 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/analyze_table_query_plan_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/analyze_table_query_plan_request.py @@ -32,6 +32,7 @@ class AnalyzeTableQueryPlanRequest(BaseModel): AnalyzeTableQueryPlanRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None bypass_vector_index: Optional[StrictBool] = Field(default=None, description="Whether to bypass vector index") columns: Optional[QueryTableRequestColumns] = None @@ -51,7 +52,7 @@ class AnalyzeTableQueryPlanRequest(BaseModel): vector_column: Optional[StrictStr] = Field(default=None, description="Name of the vector column to search") version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Table version to query") with_row_id: Optional[StrictBool] = Field(default=None, description="If true, return the row id as a column called `_rowid`") - __properties: ClassVar[List[str]] = ["identity", "id", "bypass_vector_index", "columns", "distance_type", "ef", "fast_search", "filter", "full_text_query", "k", "lower_bound", "nprobes", "offset", "prefilter", "refine_factor", "upper_bound", "vector", "vector_column", "version", "with_row_id"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "bypass_vector_index", "columns", "distance_type", "ef", "fast_search", "filter", "full_text_query", "k", "lower_bound", "nprobes", "offset", "prefilter", "refine_factor", "upper_bound", "vector", "vector_column", "version", "with_row_id"] model_config = ConfigDict( populate_by_name=True, @@ -117,6 +118,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "bypass_vector_index": obj.get("bypass_vector_index"), "columns": QueryTableRequestColumns.from_dict(obj["columns"]) if obj.get("columns") is not None else None, diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/count_table_rows_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/count_table_rows_request.py index 2b5a7cc6..3fa8ecb3 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/count_table_rows_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/count_table_rows_request.py @@ -29,10 +29,11 @@ class CountTableRowsRequest(BaseModel): CountTableRowsRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Version of the table to describe. If not specified, server should resolve it to the latest version. ") predicate: Optional[StrictStr] = Field(default=None, description="Optional SQL predicate to filter rows for counting ") - __properties: ClassVar[List[str]] = ["identity", "id", "version", "predicate"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "version", "predicate"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "version": obj.get("version"), "predicate": obj.get("predicate") diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_empty_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_empty_table_request.py index 59014d97..3ee43741 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_empty_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_empty_table_request.py @@ -28,9 +28,10 @@ class CreateEmptyTableRequest(BaseModel): Request for creating an empty table. **Deprecated**: Use `DeclareTableRequest` instead. """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None location: Optional[StrictStr] = Field(default=None, description="Optional storage location for the table. If not provided, the namespace implementation should determine the table location. ") - __properties: ClassVar[List[str]] = ["identity", "id", "location"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "location"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "location": obj.get("location") }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_namespace_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_namespace_request.py index 25e69ef5..d9dcdaae 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_namespace_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_namespace_request.py @@ -28,10 +28,11 @@ class CreateNamespaceRequest(BaseModel): CreateNamespaceRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None mode: Optional[StrictStr] = Field(default=None, description="There are three modes when trying to create a namespace, to differentiate the behavior when a namespace of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create: the operation fails with 409. * ExistOk: the operation succeeds and the existing namespace is kept. * Overwrite: the existing namespace is dropped and a new empty namespace with this name is created. ") properties: Optional[Dict[str, StrictStr]] = None - __properties: ClassVar[List[str]] = ["identity", "id", "mode", "properties"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "mode", "properties"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "mode": obj.get("mode"), "properties": obj.get("properties") diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_index_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_index_request.py index b15a7c87..68d5e05a 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_index_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_index_request.py @@ -29,6 +29,7 @@ class CreateTableIndexRequest(BaseModel): CreateTableIndexRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None column: StrictStr = Field(description="Name of the column to create index on") index_type: StrictStr = Field(description="Type of index to create (e.g., BTREE, BITMAP, LABEL_LIST, IVF_FLAT, IVF_PQ, IVF_HNSW_SQ, FTS)") @@ -42,7 +43,7 @@ class CreateTableIndexRequest(BaseModel): stem: Optional[StrictBool] = Field(default=None, description="Optional FTS parameter for stemming") remove_stop_words: Optional[StrictBool] = Field(default=None, description="Optional FTS parameter for stop word removal") ascii_folding: Optional[StrictBool] = Field(default=None, description="Optional FTS parameter for ASCII folding") - __properties: ClassVar[List[str]] = ["identity", "id", "column", "index_type", "name", "distance_type", "with_position", "base_tokenizer", "language", "max_token_length", "lower_case", "stem", "remove_stop_words", "ascii_folding"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "column", "index_type", "name", "distance_type", "with_position", "base_tokenizer", "language", "max_token_length", "lower_case", "stem", "remove_stop_words", "ascii_folding"] model_config = ConfigDict( populate_by_name=True, @@ -99,6 +100,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "column": obj.get("column"), "index_type": obj.get("index_type"), diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_request.py index fbfda3ed..fef5fe44 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_request.py @@ -28,9 +28,10 @@ class CreateTableRequest(BaseModel): Request for creating a table, excluding the Arrow IPC stream. """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None mode: Optional[StrictStr] = Field(default=None, description="There are three modes when trying to create a table, to differentiate the behavior when a table of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create: the operation fails with 409. * ExistOk: the operation succeeds and the existing table is kept. * Overwrite: the existing table is dropped and a new table with this name is created. ") - __properties: ClassVar[List[str]] = ["identity", "id", "mode"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "mode"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "mode": obj.get("mode") }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_tag_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_tag_request.py index 25317536..8436c40e 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_tag_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/create_table_tag_request.py @@ -29,10 +29,11 @@ class CreateTableTagRequest(BaseModel): CreateTableTagRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None tag: StrictStr = Field(description="Name of the tag to create") version: Annotated[int, Field(strict=True, ge=0)] = Field(description="Version number for the tag to point to") - __properties: ClassVar[List[str]] = ["identity", "id", "tag", "version"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "tag", "version"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "tag": obj.get("tag"), "version": obj.get("version") diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/declare_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/declare_table_request.py index 3a463d1c..1bbc629f 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/declare_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/declare_table_request.py @@ -28,9 +28,10 @@ class DeclareTableRequest(BaseModel): Request for declaring a table. """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None location: Optional[StrictStr] = Field(default=None, description="Optional storage location for the table. If not provided, the namespace implementation should determine the table location. ") - __properties: ClassVar[List[str]] = ["identity", "id", "location"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "location"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "location": obj.get("location") }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/delete_from_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/delete_from_table_request.py index 4f4c2b3f..a68c80f9 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/delete_from_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/delete_from_table_request.py @@ -28,9 +28,10 @@ class DeleteFromTableRequest(BaseModel): Delete data from table based on a SQL predicate. Returns the number of rows that were deleted. """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = Field(default=None, description="The namespace identifier") predicate: StrictStr = Field(description="SQL predicate to filter rows for deletion") - __properties: ClassVar[List[str]] = ["identity", "id", "predicate"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "predicate"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "predicate": obj.get("predicate") }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/delete_table_tag_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/delete_table_tag_request.py index ca96eab8..a1cf2a9a 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/delete_table_tag_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/delete_table_tag_request.py @@ -28,9 +28,10 @@ class DeleteTableTagRequest(BaseModel): DeleteTableTagRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None tag: StrictStr = Field(description="Name of the tag to delete") - __properties: ClassVar[List[str]] = ["identity", "id", "tag"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "tag"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "tag": obj.get("tag") }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/deregister_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/deregister_table_request.py index 7595d427..7e2afa58 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/deregister_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/deregister_table_request.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set @@ -28,8 +28,9 @@ class DeregisterTableRequest(BaseModel): The table content remains available in the storage. """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["identity", "id"] + __properties: ClassVar[List[str]] = ["identity", "context", "id"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id") }) return _obj diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_namespace_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_namespace_request.py index 18367a7f..01578d34 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_namespace_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_namespace_request.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set @@ -28,8 +28,9 @@ class DescribeNamespaceRequest(BaseModel): DescribeNamespaceRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["identity", "id"] + __properties: ClassVar[List[str]] = ["identity", "context", "id"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id") }) return _obj diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_table_index_stats_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_table_index_stats_request.py index 3a999749..a1a7f3f1 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_table_index_stats_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_table_index_stats_request.py @@ -29,10 +29,11 @@ class DescribeTableIndexStatsRequest(BaseModel): DescribeTableIndexStatsRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Optional table version to get stats for") index_name: Optional[StrictStr] = Field(default=None, description="Name of the index") - __properties: ClassVar[List[str]] = ["identity", "id", "version", "index_name"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "version", "index_name"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "version": obj.get("version"), "index_name": obj.get("index_name") diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_table_request.py index 60c4f1ac..a632907d 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_table_request.py @@ -29,12 +29,13 @@ class DescribeTableRequest(BaseModel): DescribeTableRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Version of the table to describe. If not specified, server should resolve it to the latest version. ") with_table_uri: Optional[StrictBool] = Field(default=False, description="Whether to include the table URI in the response. Default is false. ") load_detailed_metadata: Optional[StrictBool] = Field(default=None, description="Whether to load detailed metadata that requires opening the dataset. When true, the response must include all detailed metadata such as `version`, `schema`, and `stats` which require reading the dataset. When not set, the implementation can decide whether to return detailed metadata and which parts of detailed metadata to return. ") vend_credentials: Optional[StrictBool] = Field(default=None, description="Whether to include vended credentials in the response `storage_options`. When true, the implementation should provide vended credentials for accessing storage. When not set, the implementation can decide whether to return vended credentials. ") - __properties: ClassVar[List[str]] = ["identity", "id", "version", "with_table_uri", "load_detailed_metadata", "vend_credentials"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "version", "with_table_uri", "load_detailed_metadata", "vend_credentials"] model_config = ConfigDict( populate_by_name=True, @@ -91,6 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "version": obj.get("version"), "with_table_uri": obj.get("with_table_uri") if obj.get("with_table_uri") is not None else False, diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_transaction_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_transaction_request.py index 75a75e17..af387f29 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_transaction_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_transaction_request.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set @@ -28,8 +28,9 @@ class DescribeTransactionRequest(BaseModel): DescribeTransactionRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["identity", "id"] + __properties: ClassVar[List[str]] = ["identity", "context", "id"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id") }) return _obj diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_namespace_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_namespace_request.py index a12213b1..cf800bba 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_namespace_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_namespace_request.py @@ -28,10 +28,11 @@ class DropNamespaceRequest(BaseModel): DropNamespaceRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None mode: Optional[StrictStr] = Field(default=None, description="The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. Case insensitive, supports both PascalCase and snake_case. Valid values are: - 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. ") behavior: Optional[StrictStr] = Field(default=None, description="The behavior for dropping a namespace. Case insensitive, supports both PascalCase and snake_case. Valid values are: - 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. ") - __properties: ClassVar[List[str]] = ["identity", "id", "mode", "behavior"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "mode", "behavior"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "mode": obj.get("mode"), "behavior": obj.get("behavior") diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_table_index_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_table_index_request.py index a1a222cf..7e0d21a8 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_table_index_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_table_index_request.py @@ -28,9 +28,10 @@ class DropTableIndexRequest(BaseModel): DropTableIndexRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None index_name: Optional[StrictStr] = Field(default=None, description="Name of the index to drop") - __properties: ClassVar[List[str]] = ["identity", "id", "index_name"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "index_name"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "index_name": obj.get("index_name") }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_table_request.py index eaff2776..85554d73 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_table_request.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set @@ -28,8 +28,9 @@ class DropTableRequest(BaseModel): If the table and its data can be immediately deleted, return information of the deleted table. Otherwise, return a transaction ID that client can use to track deletion progress. """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["identity", "id"] + __properties: ClassVar[List[str]] = ["identity", "context", "id"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id") }) return _obj diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/explain_table_query_plan_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/explain_table_query_plan_request.py index 03218004..a9a61fc5 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/explain_table_query_plan_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/explain_table_query_plan_request.py @@ -29,10 +29,11 @@ class ExplainTableQueryPlanRequest(BaseModel): ExplainTableQueryPlanRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None query: QueryTableRequest verbose: Optional[StrictBool] = Field(default=False, description="Whether to return verbose explanation") - __properties: ClassVar[List[str]] = ["identity", "id", "query", "verbose"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "query", "verbose"] model_config = ConfigDict( populate_by_name=True, @@ -92,6 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "query": QueryTableRequest.from_dict(obj["query"]) if obj.get("query") is not None else None, "verbose": obj.get("verbose") if obj.get("verbose") is not None else False diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/get_table_stats_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/get_table_stats_request.py index 887755a1..53a52d30 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/get_table_stats_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/get_table_stats_request.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set @@ -28,8 +28,9 @@ class GetTableStatsRequest(BaseModel): GetTableStatsRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["identity", "id"] + __properties: ClassVar[List[str]] = ["identity", "context", "id"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id") }) return _obj diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/get_table_tag_version_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/get_table_tag_version_request.py index 575d1641..f8e4df9b 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/get_table_tag_version_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/get_table_tag_version_request.py @@ -28,9 +28,10 @@ class GetTableTagVersionRequest(BaseModel): GetTableTagVersionRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None tag: StrictStr = Field(description="Name of the tag to get version for") - __properties: ClassVar[List[str]] = ["identity", "id", "tag"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "tag"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "tag": obj.get("tag") }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/insert_into_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/insert_into_table_request.py index b3b948c6..bf620ac1 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/insert_into_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/insert_into_table_request.py @@ -28,9 +28,10 @@ class InsertIntoTableRequest(BaseModel): Request for inserting records into a table, excluding the Arrow IPC stream. """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None mode: Optional[StrictStr] = Field(default='append', description="How the insert should behave. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Append (default): insert data to the existing table - Overwrite: remove all data in the table and then insert data to it ") - __properties: ClassVar[List[str]] = ["identity", "id", "mode"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "mode"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "mode": obj.get("mode") if obj.get("mode") is not None else 'append' }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_namespaces_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_namespaces_request.py index 301d69c9..77e892bc 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_namespaces_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_namespaces_request.py @@ -28,10 +28,11 @@ class ListNamespacesRequest(BaseModel): ListNamespacesRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None page_token: Optional[StrictStr] = Field(default=None, description="An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. ") limit: Optional[StrictInt] = Field(default=None, description="An inclusive upper bound of the number of results that a caller will receive. ") - __properties: ClassVar[List[str]] = ["identity", "id", "page_token", "limit"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "page_token", "limit"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "page_token": obj.get("page_token"), "limit": obj.get("limit") diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_table_indices_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_table_indices_request.py index 522388eb..94c05f87 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_table_indices_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_table_indices_request.py @@ -29,11 +29,12 @@ class ListTableIndicesRequest(BaseModel): ListTableIndicesRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = Field(default=None, description="The namespace identifier") version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Optional table version to list indexes from") page_token: Optional[StrictStr] = Field(default=None, description="An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. ") limit: Optional[StrictInt] = Field(default=None, description="An inclusive upper bound of the number of results that a caller will receive. ") - __properties: ClassVar[List[str]] = ["identity", "id", "version", "page_token", "limit"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "version", "page_token", "limit"] model_config = ConfigDict( populate_by_name=True, @@ -90,6 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "version": obj.get("version"), "page_token": obj.get("page_token"), diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_table_tags_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_table_tags_request.py index 21e3b410..7bce6e0a 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_table_tags_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_table_tags_request.py @@ -28,10 +28,11 @@ class ListTableTagsRequest(BaseModel): ListTableTagsRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = Field(default=None, description="The table identifier") page_token: Optional[StrictStr] = Field(default=None, description="An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. ") limit: Optional[StrictInt] = Field(default=None, description="An inclusive upper bound of the number of results that a caller will receive. ") - __properties: ClassVar[List[str]] = ["identity", "id", "page_token", "limit"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "page_token", "limit"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "page_token": obj.get("page_token"), "limit": obj.get("limit") diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_table_versions_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_table_versions_request.py index 9473a89c..d142c35b 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_table_versions_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_table_versions_request.py @@ -28,10 +28,11 @@ class ListTableVersionsRequest(BaseModel): ListTableVersionsRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None page_token: Optional[StrictStr] = Field(default=None, description="An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. ") limit: Optional[StrictInt] = Field(default=None, description="An inclusive upper bound of the number of results that a caller will receive. ") - __properties: ClassVar[List[str]] = ["identity", "id", "page_token", "limit"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "page_token", "limit"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "page_token": obj.get("page_token"), "limit": obj.get("limit") diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_tables_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_tables_request.py index 7cc93ede..af920a64 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_tables_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/list_tables_request.py @@ -28,10 +28,11 @@ class ListTablesRequest(BaseModel): ListTablesRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None page_token: Optional[StrictStr] = Field(default=None, description="An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. ") limit: Optional[StrictInt] = Field(default=None, description="An inclusive upper bound of the number of results that a caller will receive. ") - __properties: ClassVar[List[str]] = ["identity", "id", "page_token", "limit"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "page_token", "limit"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "page_token": obj.get("page_token"), "limit": obj.get("limit") diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/merge_insert_into_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/merge_insert_into_table_request.py index 0ab689bd..13f61bab 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/merge_insert_into_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/merge_insert_into_table_request.py @@ -28,6 +28,7 @@ class MergeInsertIntoTableRequest(BaseModel): Request for merging or inserting records into a table, excluding the Arrow IPC stream. """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None on: Optional[StrictStr] = Field(default=None, description="Column name to use for matching rows (required)") when_matched_update_all: Optional[StrictBool] = Field(default=False, description="Update all columns when rows match") @@ -37,7 +38,7 @@ class MergeInsertIntoTableRequest(BaseModel): when_not_matched_by_source_delete_filt: Optional[StrictStr] = Field(default=None, description="Delete rows from the target table if there is no match AND the SQL expression evaluates to true") timeout: Optional[StrictStr] = Field(default=None, description="Timeout for the operation (e.g., \"30s\", \"5m\")") use_index: Optional[StrictBool] = Field(default=False, description="Whether to use index for matching rows") - __properties: ClassVar[List[str]] = ["identity", "id", "on", "when_matched_update_all", "when_matched_update_all_filt", "when_not_matched_insert_all", "when_not_matched_by_source_delete", "when_not_matched_by_source_delete_filt", "timeout", "use_index"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "on", "when_matched_update_all", "when_matched_update_all_filt", "when_not_matched_insert_all", "when_not_matched_by_source_delete", "when_not_matched_by_source_delete_filt", "timeout", "use_index"] model_config = ConfigDict( populate_by_name=True, @@ -94,6 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "on": obj.get("on"), "when_matched_update_all": obj.get("when_matched_update_all") if obj.get("when_matched_update_all") is not None else False, diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/namespace_exists_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/namespace_exists_request.py index 943fcd25..65cb2f0f 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/namespace_exists_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/namespace_exists_request.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set @@ -28,8 +28,9 @@ class NamespaceExistsRequest(BaseModel): NamespaceExistsRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["identity", "id"] + __properties: ClassVar[List[str]] = ["identity", "context", "id"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id") }) return _obj diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/query_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/query_table_request.py index 1df81115..0efba656 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/query_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/query_table_request.py @@ -32,6 +32,7 @@ class QueryTableRequest(BaseModel): QueryTableRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None bypass_vector_index: Optional[StrictBool] = Field(default=None, description="Whether to bypass vector index") columns: Optional[QueryTableRequestColumns] = None @@ -51,7 +52,7 @@ class QueryTableRequest(BaseModel): vector_column: Optional[StrictStr] = Field(default=None, description="Name of the vector column to search") version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Table version to query") with_row_id: Optional[StrictBool] = Field(default=None, description="If true, return the row id as a column called `_rowid`") - __properties: ClassVar[List[str]] = ["identity", "id", "bypass_vector_index", "columns", "distance_type", "ef", "fast_search", "filter", "full_text_query", "k", "lower_bound", "nprobes", "offset", "prefilter", "refine_factor", "upper_bound", "vector", "vector_column", "version", "with_row_id"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "bypass_vector_index", "columns", "distance_type", "ef", "fast_search", "filter", "full_text_query", "k", "lower_bound", "nprobes", "offset", "prefilter", "refine_factor", "upper_bound", "vector", "vector_column", "version", "with_row_id"] model_config = ConfigDict( populate_by_name=True, @@ -117,6 +118,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "bypass_vector_index": obj.get("bypass_vector_index"), "columns": QueryTableRequestColumns.from_dict(obj["columns"]) if obj.get("columns") is not None else None, diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/register_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/register_table_request.py index 5c66c8cc..827f0d6c 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/register_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/register_table_request.py @@ -28,11 +28,12 @@ class RegisterTableRequest(BaseModel): RegisterTableRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None location: StrictStr mode: Optional[StrictStr] = Field(default=None, description="There are two modes when trying to register a table, to differentiate the behavior when a table of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create (default): the operation fails with 409. * Overwrite: the existing table registration is replaced with the new registration. ") properties: Optional[Dict[str, StrictStr]] = None - __properties: ClassVar[List[str]] = ["identity", "id", "location", "mode", "properties"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "location", "mode", "properties"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "location": obj.get("location"), "mode": obj.get("mode"), diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/rename_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/rename_table_request.py index 75a5c0a4..60db90be 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/rename_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/rename_table_request.py @@ -28,10 +28,11 @@ class RenameTableRequest(BaseModel): RenameTableRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = Field(default=None, description="The table identifier") new_table_name: StrictStr = Field(description="New name for the table") new_namespace_id: Optional[List[StrictStr]] = Field(default=None, description="New namespace identifier to move the table to (optional, if not specified the table stays in the same namespace)") - __properties: ClassVar[List[str]] = ["identity", "id", "new_table_name", "new_namespace_id"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "new_table_name", "new_namespace_id"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "new_table_name": obj.get("new_table_name"), "new_namespace_id": obj.get("new_namespace_id") diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/restore_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/restore_table_request.py index 3d1ca4b9..5cb14e93 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/restore_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/restore_table_request.py @@ -29,9 +29,10 @@ class RestoreTableRequest(BaseModel): RestoreTableRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None version: Annotated[int, Field(strict=True, ge=0)] = Field(description="Version to restore to") - __properties: ClassVar[List[str]] = ["identity", "id", "version"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "version"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "version": obj.get("version") }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_exists_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_exists_request.py index 87b4b3f2..c43f478e 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_exists_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/table_exists_request.py @@ -29,9 +29,10 @@ class TableExistsRequest(BaseModel): TableExistsRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Version of the table to check existence. If not specified, server should resolve it to the latest version. ") - __properties: ClassVar[List[str]] = ["identity", "id", "version"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "version"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "version": obj.get("version") }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_request.py index cbd6f58b..39a8ed4b 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_request.py @@ -29,10 +29,11 @@ class UpdateTableRequest(BaseModel): Each update consists of a column name and an SQL expression that will be evaluated against the current row's value. Optionally, a predicate can be provided to filter which rows to update. """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None predicate: Optional[StrictStr] = Field(default=None, description="Optional SQL predicate to filter rows for update") updates: List[Annotated[List[StrictStr], Field(min_length=2, max_length=2)]] = Field(description="List of column updates as [column_name, expression] pairs") - __properties: ClassVar[List[str]] = ["identity", "id", "predicate", "updates"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "predicate", "updates"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "predicate": obj.get("predicate"), "updates": obj.get("updates") diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_schema_metadata_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_schema_metadata_request.py index 9f455f53..6ec74991 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_schema_metadata_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_schema_metadata_request.py @@ -28,9 +28,10 @@ class UpdateTableSchemaMetadataRequest(BaseModel): UpdateTableSchemaMetadataRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = Field(default=None, description="The table identifier") metadata: Optional[Dict[str, StrictStr]] = Field(default=None, description="Schema metadata key-value pairs to set") - __properties: ClassVar[List[str]] = ["identity", "id", "metadata"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "metadata"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "metadata": obj.get("metadata") }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_tag_request.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_tag_request.py index 21587728..e69269a6 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_tag_request.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/update_table_tag_request.py @@ -29,10 +29,11 @@ class UpdateTableTagRequest(BaseModel): UpdateTableTagRequest """ # noqa: E501 identity: Optional[Identity] = None + context: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. ") id: Optional[List[StrictStr]] = None tag: StrictStr = Field(description="Name of the tag to update") version: Annotated[int, Field(strict=True, ge=0)] = Field(description="New version number for the tag to point to") - __properties: ClassVar[List[str]] = ["identity", "id", "tag", "version"] + __properties: ClassVar[List[str]] = ["identity", "context", "id", "tag", "version"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, + "context": obj.get("context"), "id": obj.get("id"), "tag": obj.get("tag"), "version": obj.get("version") diff --git a/python/lance_namespace_urllib3_client/test/test_alter_table_add_columns_request.py b/python/lance_namespace_urllib3_client/test/test_alter_table_add_columns_request.py index 684e871d..ca59e015 100644 --- a/python/lance_namespace_urllib3_client/test/test_alter_table_add_columns_request.py +++ b/python/lance_namespace_urllib3_client/test/test_alter_table_add_columns_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> AlterTableAddColumnsRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_alter_table_alter_columns_request.py b/python/lance_namespace_urllib3_client/test/test_alter_table_alter_columns_request.py index 04edd753..db5f07e9 100644 --- a/python/lance_namespace_urllib3_client/test/test_alter_table_alter_columns_request.py +++ b/python/lance_namespace_urllib3_client/test/test_alter_table_alter_columns_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> AlterTableAlterColumnsRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_alter_table_drop_columns_request.py b/python/lance_namespace_urllib3_client/test/test_alter_table_drop_columns_request.py index 40d80526..1b410c08 100644 --- a/python/lance_namespace_urllib3_client/test/test_alter_table_drop_columns_request.py +++ b/python/lance_namespace_urllib3_client/test/test_alter_table_drop_columns_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> AlterTableDropColumnsRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_alter_transaction_request.py b/python/lance_namespace_urllib3_client/test/test_alter_transaction_request.py index b0ee928c..234759ef 100644 --- a/python/lance_namespace_urllib3_client/test/test_alter_transaction_request.py +++ b/python/lance_namespace_urllib3_client/test/test_alter_transaction_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> AlterTransactionRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_analyze_table_query_plan_request.py b/python/lance_namespace_urllib3_client/test/test_analyze_table_query_plan_request.py index d7b2bdb5..83aff123 100644 --- a/python/lance_namespace_urllib3_client/test/test_analyze_table_query_plan_request.py +++ b/python/lance_namespace_urllib3_client/test/test_analyze_table_query_plan_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> AnalyzeTableQueryPlanRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_count_table_rows_request.py b/python/lance_namespace_urllib3_client/test/test_count_table_rows_request.py index 49143eb5..0be03007 100644 --- a/python/lance_namespace_urllib3_client/test/test_count_table_rows_request.py +++ b/python/lance_namespace_urllib3_client/test/test_count_table_rows_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> CountTableRowsRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_create_empty_table_request.py b/python/lance_namespace_urllib3_client/test/test_create_empty_table_request.py index 12e9c9f9..c0e65ac6 100644 --- a/python/lance_namespace_urllib3_client/test/test_create_empty_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_create_empty_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> CreateEmptyTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_create_namespace_request.py b/python/lance_namespace_urllib3_client/test/test_create_namespace_request.py index fd4d2075..3f6bf7f3 100644 --- a/python/lance_namespace_urllib3_client/test/test_create_namespace_request.py +++ b/python/lance_namespace_urllib3_client/test/test_create_namespace_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> CreateNamespaceRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_create_table_index_request.py b/python/lance_namespace_urllib3_client/test/test_create_table_index_request.py index 381ea599..32be6ac7 100644 --- a/python/lance_namespace_urllib3_client/test/test_create_table_index_request.py +++ b/python/lance_namespace_urllib3_client/test/test_create_table_index_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> CreateTableIndexRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_create_table_request.py b/python/lance_namespace_urllib3_client/test/test_create_table_request.py index 6980a32f..f6e45fc0 100644 --- a/python/lance_namespace_urllib3_client/test/test_create_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_create_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> CreateTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_create_table_tag_request.py b/python/lance_namespace_urllib3_client/test/test_create_table_tag_request.py index 3d7c128c..76abd1ec 100644 --- a/python/lance_namespace_urllib3_client/test/test_create_table_tag_request.py +++ b/python/lance_namespace_urllib3_client/test/test_create_table_tag_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> CreateTableTagRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_declare_table_request.py b/python/lance_namespace_urllib3_client/test/test_declare_table_request.py index ebbabe3d..afe5deef 100644 --- a/python/lance_namespace_urllib3_client/test/test_declare_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_declare_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> DeclareTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_delete_from_table_request.py b/python/lance_namespace_urllib3_client/test/test_delete_from_table_request.py index 46599a0a..d4499565 100644 --- a/python/lance_namespace_urllib3_client/test/test_delete_from_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_delete_from_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> DeleteFromTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_delete_table_tag_request.py b/python/lance_namespace_urllib3_client/test/test_delete_table_tag_request.py index b4e91a06..0a9f519c 100644 --- a/python/lance_namespace_urllib3_client/test/test_delete_table_tag_request.py +++ b/python/lance_namespace_urllib3_client/test/test_delete_table_tag_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> DeleteTableTagRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_deregister_table_request.py b/python/lance_namespace_urllib3_client/test/test_deregister_table_request.py index ec5f3cf7..a2beb5d8 100644 --- a/python/lance_namespace_urllib3_client/test/test_deregister_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_deregister_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> DeregisterTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ] diff --git a/python/lance_namespace_urllib3_client/test/test_describe_namespace_request.py b/python/lance_namespace_urllib3_client/test/test_describe_namespace_request.py index 7d2fa924..d591e41c 100644 --- a/python/lance_namespace_urllib3_client/test/test_describe_namespace_request.py +++ b/python/lance_namespace_urllib3_client/test/test_describe_namespace_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> DescribeNamespaceRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ] diff --git a/python/lance_namespace_urllib3_client/test/test_describe_table_index_stats_request.py b/python/lance_namespace_urllib3_client/test/test_describe_table_index_stats_request.py index bee352a1..44299fb3 100644 --- a/python/lance_namespace_urllib3_client/test/test_describe_table_index_stats_request.py +++ b/python/lance_namespace_urllib3_client/test/test_describe_table_index_stats_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> DescribeTableIndexStatsRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_describe_table_request.py b/python/lance_namespace_urllib3_client/test/test_describe_table_request.py index 5d49bf88..34cc757a 100644 --- a/python/lance_namespace_urllib3_client/test/test_describe_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_describe_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> DescribeTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_describe_transaction_request.py b/python/lance_namespace_urllib3_client/test/test_describe_transaction_request.py index f6e4d257..e8c7a2d1 100644 --- a/python/lance_namespace_urllib3_client/test/test_describe_transaction_request.py +++ b/python/lance_namespace_urllib3_client/test/test_describe_transaction_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> DescribeTransactionRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ] diff --git a/python/lance_namespace_urllib3_client/test/test_drop_namespace_request.py b/python/lance_namespace_urllib3_client/test/test_drop_namespace_request.py index a09c0adc..ae51f710 100644 --- a/python/lance_namespace_urllib3_client/test/test_drop_namespace_request.py +++ b/python/lance_namespace_urllib3_client/test/test_drop_namespace_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> DropNamespaceRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_drop_table_index_request.py b/python/lance_namespace_urllib3_client/test/test_drop_table_index_request.py index 41b631ab..beaf3b1f 100644 --- a/python/lance_namespace_urllib3_client/test/test_drop_table_index_request.py +++ b/python/lance_namespace_urllib3_client/test/test_drop_table_index_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> DropTableIndexRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_drop_table_request.py b/python/lance_namespace_urllib3_client/test/test_drop_table_request.py index bb6110e1..d4115631 100644 --- a/python/lance_namespace_urllib3_client/test/test_drop_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_drop_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> DropTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ] diff --git a/python/lance_namespace_urllib3_client/test/test_explain_table_query_plan_request.py b/python/lance_namespace_urllib3_client/test/test_explain_table_query_plan_request.py index 2997ccba..524b9025 100644 --- a/python/lance_namespace_urllib3_client/test/test_explain_table_query_plan_request.py +++ b/python/lance_namespace_urllib3_client/test/test_explain_table_query_plan_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> ExplainTableQueryPlanRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], @@ -45,6 +48,9 @@ def make_instance(self, include_optional) -> ExplainTableQueryPlanRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], @@ -142,6 +148,9 @@ def make_instance(self, include_optional) -> ExplainTableQueryPlanRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_get_table_stats_request.py b/python/lance_namespace_urllib3_client/test/test_get_table_stats_request.py index bf9aae17..7088d8b8 100644 --- a/python/lance_namespace_urllib3_client/test/test_get_table_stats_request.py +++ b/python/lance_namespace_urllib3_client/test/test_get_table_stats_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> GetTableStatsRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ] diff --git a/python/lance_namespace_urllib3_client/test/test_get_table_tag_version_request.py b/python/lance_namespace_urllib3_client/test/test_get_table_tag_version_request.py index 09cc8bd8..5dbe079c 100644 --- a/python/lance_namespace_urllib3_client/test/test_get_table_tag_version_request.py +++ b/python/lance_namespace_urllib3_client/test/test_get_table_tag_version_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> GetTableTagVersionRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_insert_into_table_request.py b/python/lance_namespace_urllib3_client/test/test_insert_into_table_request.py index 478ba399..3b8aa164 100644 --- a/python/lance_namespace_urllib3_client/test/test_insert_into_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_insert_into_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> InsertIntoTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_list_namespaces_request.py b/python/lance_namespace_urllib3_client/test/test_list_namespaces_request.py index 46682c6b..3e4c3063 100644 --- a/python/lance_namespace_urllib3_client/test/test_list_namespaces_request.py +++ b/python/lance_namespace_urllib3_client/test/test_list_namespaces_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> ListNamespacesRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_list_table_indices_request.py b/python/lance_namespace_urllib3_client/test/test_list_table_indices_request.py index e2431cb9..8e7d763a 100644 --- a/python/lance_namespace_urllib3_client/test/test_list_table_indices_request.py +++ b/python/lance_namespace_urllib3_client/test/test_list_table_indices_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> ListTableIndicesRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_list_table_tags_request.py b/python/lance_namespace_urllib3_client/test/test_list_table_tags_request.py index c914153b..14a042d5 100644 --- a/python/lance_namespace_urllib3_client/test/test_list_table_tags_request.py +++ b/python/lance_namespace_urllib3_client/test/test_list_table_tags_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> ListTableTagsRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_list_table_versions_request.py b/python/lance_namespace_urllib3_client/test/test_list_table_versions_request.py index 8fb29aec..30f818d0 100644 --- a/python/lance_namespace_urllib3_client/test/test_list_table_versions_request.py +++ b/python/lance_namespace_urllib3_client/test/test_list_table_versions_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> ListTableVersionsRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_list_tables_request.py b/python/lance_namespace_urllib3_client/test/test_list_tables_request.py index 2b9c821c..9e173989 100644 --- a/python/lance_namespace_urllib3_client/test/test_list_tables_request.py +++ b/python/lance_namespace_urllib3_client/test/test_list_tables_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> ListTablesRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_merge_insert_into_table_request.py b/python/lance_namespace_urllib3_client/test/test_merge_insert_into_table_request.py index bb8d7509..7c2206c9 100644 --- a/python/lance_namespace_urllib3_client/test/test_merge_insert_into_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_merge_insert_into_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> MergeInsertIntoTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_namespace_exists_request.py b/python/lance_namespace_urllib3_client/test/test_namespace_exists_request.py index ff4ec0c9..90aa8159 100644 --- a/python/lance_namespace_urllib3_client/test/test_namespace_exists_request.py +++ b/python/lance_namespace_urllib3_client/test/test_namespace_exists_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> NamespaceExistsRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ] diff --git a/python/lance_namespace_urllib3_client/test/test_query_table_request.py b/python/lance_namespace_urllib3_client/test/test_query_table_request.py index 4f797a49..5e50a7d4 100644 --- a/python/lance_namespace_urllib3_client/test/test_query_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_query_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> QueryTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_register_table_request.py b/python/lance_namespace_urllib3_client/test/test_register_table_request.py index d1ac9843..18e814f8 100644 --- a/python/lance_namespace_urllib3_client/test/test_register_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_register_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> RegisterTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_rename_table_request.py b/python/lance_namespace_urllib3_client/test/test_rename_table_request.py index d8e84931..815d5fdb 100644 --- a/python/lance_namespace_urllib3_client/test/test_rename_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_rename_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> RenameTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_restore_table_request.py b/python/lance_namespace_urllib3_client/test/test_restore_table_request.py index aae06903..1446980b 100644 --- a/python/lance_namespace_urllib3_client/test/test_restore_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_restore_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> RestoreTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_table_exists_request.py b/python/lance_namespace_urllib3_client/test/test_table_exists_request.py index 529067b3..3a8f66bc 100644 --- a/python/lance_namespace_urllib3_client/test/test_table_exists_request.py +++ b/python/lance_namespace_urllib3_client/test/test_table_exists_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> TableExistsRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_update_table_request.py b/python/lance_namespace_urllib3_client/test/test_update_table_request.py index adfbf777..6d542a6e 100644 --- a/python/lance_namespace_urllib3_client/test/test_update_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_update_table_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> UpdateTableRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_update_table_schema_metadata_request.py b/python/lance_namespace_urllib3_client/test/test_update_table_schema_metadata_request.py index b3e367da..2eecdbfd 100644 --- a/python/lance_namespace_urllib3_client/test/test_update_table_schema_metadata_request.py +++ b/python/lance_namespace_urllib3_client/test/test_update_table_schema_metadata_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> UpdateTableSchemaMetadataRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_update_table_tag_request.py b/python/lance_namespace_urllib3_client/test/test_update_table_tag_request.py index b7f3a70d..f9e2646e 100644 --- a/python/lance_namespace_urllib3_client/test/test_update_table_tag_request.py +++ b/python/lance_namespace_urllib3_client/test/test_update_table_tag_request.py @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> UpdateTableTagRequest: identity = lance_namespace_urllib3_client.models.identity.Identity( api_key = '', auth_token = '', ), + context = { + 'key' : '' + }, id = [ '' ], diff --git a/rust/lance-namespace-reqwest-client/docs/AlterTableAddColumnsRequest.md b/rust/lance-namespace-reqwest-client/docs/AlterTableAddColumnsRequest.md index e0a84ed1..d4e36846 100644 --- a/rust/lance-namespace-reqwest-client/docs/AlterTableAddColumnsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/AlterTableAddColumnsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **new_columns** | [**Vec**](NewColumnTransform.md) | List of new columns to add | diff --git a/rust/lance-namespace-reqwest-client/docs/AlterTableAlterColumnsRequest.md b/rust/lance-namespace-reqwest-client/docs/AlterTableAlterColumnsRequest.md index 71b2512e..a58124db 100644 --- a/rust/lance-namespace-reqwest-client/docs/AlterTableAlterColumnsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/AlterTableAlterColumnsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **alterations** | [**Vec**](AlterColumnsEntry.md) | List of column alterations to perform | diff --git a/rust/lance-namespace-reqwest-client/docs/AlterTableDropColumnsRequest.md b/rust/lance-namespace-reqwest-client/docs/AlterTableDropColumnsRequest.md index ed9ad12c..8e4590a0 100644 --- a/rust/lance-namespace-reqwest-client/docs/AlterTableDropColumnsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/AlterTableDropColumnsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **columns** | **Vec** | Names of columns to drop | diff --git a/rust/lance-namespace-reqwest-client/docs/AlterTransactionRequest.md b/rust/lance-namespace-reqwest-client/docs/AlterTransactionRequest.md index fdefa329..82ca051d 100644 --- a/rust/lance-namespace-reqwest-client/docs/AlterTransactionRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/AlterTransactionRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **actions** | [**Vec**](AlterTransactionAction.md) | | diff --git a/rust/lance-namespace-reqwest-client/docs/AnalyzeTableQueryPlanRequest.md b/rust/lance-namespace-reqwest-client/docs/AnalyzeTableQueryPlanRequest.md index beb72d96..a3498a49 100644 --- a/rust/lance-namespace-reqwest-client/docs/AnalyzeTableQueryPlanRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/AnalyzeTableQueryPlanRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **bypass_vector_index** | Option<**bool**> | Whether to bypass vector index | [optional] **columns** | Option<[**models::QueryTableRequestColumns**](QueryTableRequest_columns.md)> | | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/CountTableRowsRequest.md b/rust/lance-namespace-reqwest-client/docs/CountTableRowsRequest.md index 1c4d910e..c987df4b 100644 --- a/rust/lance-namespace-reqwest-client/docs/CountTableRowsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CountTableRowsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **version** | Option<**i64**> | Version of the table to describe. If not specified, server should resolve it to the latest version. | [optional] **predicate** | Option<**String**> | Optional SQL predicate to filter rows for counting | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/CreateEmptyTableRequest.md b/rust/lance-namespace-reqwest-client/docs/CreateEmptyTableRequest.md index 9842a905..5f17180a 100644 --- a/rust/lance-namespace-reqwest-client/docs/CreateEmptyTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CreateEmptyTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **location** | Option<**String**> | Optional storage location for the table. If not provided, the namespace implementation should determine the table location. | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/CreateNamespaceRequest.md b/rust/lance-namespace-reqwest-client/docs/CreateNamespaceRequest.md index 8b217adb..fb113670 100644 --- a/rust/lance-namespace-reqwest-client/docs/CreateNamespaceRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CreateNamespaceRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **mode** | Option<**String**> | There are three modes when trying to create a namespace, to differentiate the behavior when a namespace of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create: the operation fails with 409. * ExistOk: the operation succeeds and the existing namespace is kept. * Overwrite: the existing namespace is dropped and a new empty namespace with this name is created. | [optional] **properties** | Option<**std::collections::HashMap**> | | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/CreateTableIndexRequest.md b/rust/lance-namespace-reqwest-client/docs/CreateTableIndexRequest.md index dcea2ec2..7ac28219 100644 --- a/rust/lance-namespace-reqwest-client/docs/CreateTableIndexRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CreateTableIndexRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **column** | **String** | Name of the column to create index on | **index_type** | **String** | Type of index to create (e.g., BTREE, BITMAP, LABEL_LIST, IVF_FLAT, IVF_PQ, IVF_HNSW_SQ, FTS) | diff --git a/rust/lance-namespace-reqwest-client/docs/CreateTableRequest.md b/rust/lance-namespace-reqwest-client/docs/CreateTableRequest.md index 26fffc38..65bf35cf 100644 --- a/rust/lance-namespace-reqwest-client/docs/CreateTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CreateTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **mode** | Option<**String**> | There are three modes when trying to create a table, to differentiate the behavior when a table of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create: the operation fails with 409. * ExistOk: the operation succeeds and the existing table is kept. * Overwrite: the existing table is dropped and a new table with this name is created. | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/CreateTableTagRequest.md b/rust/lance-namespace-reqwest-client/docs/CreateTableTagRequest.md index 5619c180..45352d4a 100644 --- a/rust/lance-namespace-reqwest-client/docs/CreateTableTagRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CreateTableTagRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **tag** | **String** | Name of the tag to create | **version** | **i64** | Version number for the tag to point to | diff --git a/rust/lance-namespace-reqwest-client/docs/DeclareTableRequest.md b/rust/lance-namespace-reqwest-client/docs/DeclareTableRequest.md index 260bf2fe..e3352f20 100644 --- a/rust/lance-namespace-reqwest-client/docs/DeclareTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DeclareTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **location** | Option<**String**> | Optional storage location for the table. If not provided, the namespace implementation should determine the table location. | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/DeleteFromTableRequest.md b/rust/lance-namespace-reqwest-client/docs/DeleteFromTableRequest.md index 7e234f32..2bd3a7fd 100644 --- a/rust/lance-namespace-reqwest-client/docs/DeleteFromTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DeleteFromTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | The namespace identifier | [optional] **predicate** | **String** | SQL predicate to filter rows for deletion | diff --git a/rust/lance-namespace-reqwest-client/docs/DeleteTableTagRequest.md b/rust/lance-namespace-reqwest-client/docs/DeleteTableTagRequest.md index 6636d18e..c5a180ed 100644 --- a/rust/lance-namespace-reqwest-client/docs/DeleteTableTagRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DeleteTableTagRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **tag** | **String** | Name of the tag to delete | diff --git a/rust/lance-namespace-reqwest-client/docs/DeregisterTableRequest.md b/rust/lance-namespace-reqwest-client/docs/DeregisterTableRequest.md index 40d0a448..295e5c7f 100644 --- a/rust/lance-namespace-reqwest-client/docs/DeregisterTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DeregisterTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/lance-namespace-reqwest-client/docs/DescribeNamespaceRequest.md b/rust/lance-namespace-reqwest-client/docs/DescribeNamespaceRequest.md index bfdb8c91..10ffbabf 100644 --- a/rust/lance-namespace-reqwest-client/docs/DescribeNamespaceRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DescribeNamespaceRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/lance-namespace-reqwest-client/docs/DescribeTableIndexStatsRequest.md b/rust/lance-namespace-reqwest-client/docs/DescribeTableIndexStatsRequest.md index 2215167b..48071f2d 100644 --- a/rust/lance-namespace-reqwest-client/docs/DescribeTableIndexStatsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DescribeTableIndexStatsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **version** | Option<**i64**> | Optional table version to get stats for | [optional] **index_name** | Option<**String**> | Name of the index | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/DescribeTableRequest.md b/rust/lance-namespace-reqwest-client/docs/DescribeTableRequest.md index e6e87771..79d87f23 100644 --- a/rust/lance-namespace-reqwest-client/docs/DescribeTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DescribeTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **version** | Option<**i64**> | Version of the table to describe. If not specified, server should resolve it to the latest version. | [optional] **with_table_uri** | Option<**bool**> | Whether to include the table URI in the response. Default is false. | [optional][default to false] diff --git a/rust/lance-namespace-reqwest-client/docs/DescribeTransactionRequest.md b/rust/lance-namespace-reqwest-client/docs/DescribeTransactionRequest.md index 08bdf87d..c9e4f8e2 100644 --- a/rust/lance-namespace-reqwest-client/docs/DescribeTransactionRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DescribeTransactionRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/lance-namespace-reqwest-client/docs/DropNamespaceRequest.md b/rust/lance-namespace-reqwest-client/docs/DropNamespaceRequest.md index 1f37b205..90b5af22 100644 --- a/rust/lance-namespace-reqwest-client/docs/DropNamespaceRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DropNamespaceRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **mode** | Option<**String**> | The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. Case insensitive, supports both PascalCase and snake_case. Valid values are: - 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] **behavior** | Option<**String**> | The behavior for dropping a namespace. Case insensitive, supports both PascalCase and snake_case. Valid values are: - 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] diff --git a/rust/lance-namespace-reqwest-client/docs/DropTableIndexRequest.md b/rust/lance-namespace-reqwest-client/docs/DropTableIndexRequest.md index bb596ac3..7355d9d4 100644 --- a/rust/lance-namespace-reqwest-client/docs/DropTableIndexRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DropTableIndexRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **index_name** | Option<**String**> | Name of the index to drop | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/DropTableRequest.md b/rust/lance-namespace-reqwest-client/docs/DropTableRequest.md index b44caf86..2715a172 100644 --- a/rust/lance-namespace-reqwest-client/docs/DropTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DropTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/lance-namespace-reqwest-client/docs/ExplainTableQueryPlanRequest.md b/rust/lance-namespace-reqwest-client/docs/ExplainTableQueryPlanRequest.md index 951510f4..92bf6d72 100644 --- a/rust/lance-namespace-reqwest-client/docs/ExplainTableQueryPlanRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/ExplainTableQueryPlanRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **query** | [**models::QueryTableRequest**](QueryTableRequest.md) | | **verbose** | Option<**bool**> | Whether to return verbose explanation | [optional][default to false] diff --git a/rust/lance-namespace-reqwest-client/docs/GetTableStatsRequest.md b/rust/lance-namespace-reqwest-client/docs/GetTableStatsRequest.md index 32cecea5..62fc898d 100644 --- a/rust/lance-namespace-reqwest-client/docs/GetTableStatsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/GetTableStatsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/lance-namespace-reqwest-client/docs/GetTableTagVersionRequest.md b/rust/lance-namespace-reqwest-client/docs/GetTableTagVersionRequest.md index 6732e248..56b58d2f 100644 --- a/rust/lance-namespace-reqwest-client/docs/GetTableTagVersionRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/GetTableTagVersionRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **tag** | **String** | Name of the tag to get version for | diff --git a/rust/lance-namespace-reqwest-client/docs/InsertIntoTableRequest.md b/rust/lance-namespace-reqwest-client/docs/InsertIntoTableRequest.md index 36ad47ec..173d21f5 100644 --- a/rust/lance-namespace-reqwest-client/docs/InsertIntoTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/InsertIntoTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **mode** | Option<**String**> | How the insert should behave. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Append (default): insert data to the existing table - Overwrite: remove all data in the table and then insert data to it | [optional][default to append] diff --git a/rust/lance-namespace-reqwest-client/docs/ListNamespacesRequest.md b/rust/lance-namespace-reqwest-client/docs/ListNamespacesRequest.md index 8707cc98..f8c608c8 100644 --- a/rust/lance-namespace-reqwest-client/docs/ListNamespacesRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/ListNamespacesRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **page_token** | Option<**String**> | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] **limit** | Option<**i32**> | An inclusive upper bound of the number of results that a caller will receive. | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/ListTableIndicesRequest.md b/rust/lance-namespace-reqwest-client/docs/ListTableIndicesRequest.md index 7fe9174d..adf16961 100644 --- a/rust/lance-namespace-reqwest-client/docs/ListTableIndicesRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/ListTableIndicesRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | The namespace identifier | [optional] **version** | Option<**i64**> | Optional table version to list indexes from | [optional] **page_token** | Option<**String**> | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/ListTableTagsRequest.md b/rust/lance-namespace-reqwest-client/docs/ListTableTagsRequest.md index 025ada65..70d7ed19 100644 --- a/rust/lance-namespace-reqwest-client/docs/ListTableTagsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/ListTableTagsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | The table identifier | [optional] **page_token** | Option<**String**> | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] **limit** | Option<**i32**> | An inclusive upper bound of the number of results that a caller will receive. | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/ListTableVersionsRequest.md b/rust/lance-namespace-reqwest-client/docs/ListTableVersionsRequest.md index c707853b..19a80f3f 100644 --- a/rust/lance-namespace-reqwest-client/docs/ListTableVersionsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/ListTableVersionsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **page_token** | Option<**String**> | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] **limit** | Option<**i32**> | An inclusive upper bound of the number of results that a caller will receive. | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/ListTablesRequest.md b/rust/lance-namespace-reqwest-client/docs/ListTablesRequest.md index 68b735ff..9d77af9a 100644 --- a/rust/lance-namespace-reqwest-client/docs/ListTablesRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/ListTablesRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **page_token** | Option<**String**> | An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. | [optional] **limit** | Option<**i32**> | An inclusive upper bound of the number of results that a caller will receive. | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/MergeInsertIntoTableRequest.md b/rust/lance-namespace-reqwest-client/docs/MergeInsertIntoTableRequest.md index 8a5f03b7..111c6fa7 100644 --- a/rust/lance-namespace-reqwest-client/docs/MergeInsertIntoTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/MergeInsertIntoTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **on** | Option<**String**> | Column name to use for matching rows (required) | [optional] **when_matched_update_all** | Option<**bool**> | Update all columns when rows match | [optional][default to false] diff --git a/rust/lance-namespace-reqwest-client/docs/NamespaceExistsRequest.md b/rust/lance-namespace-reqwest-client/docs/NamespaceExistsRequest.md index 68ba5c66..a2207bc3 100644 --- a/rust/lance-namespace-reqwest-client/docs/NamespaceExistsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/NamespaceExistsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/lance-namespace-reqwest-client/docs/QueryTableRequest.md b/rust/lance-namespace-reqwest-client/docs/QueryTableRequest.md index c7c93d1d..9eb99140 100644 --- a/rust/lance-namespace-reqwest-client/docs/QueryTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/QueryTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **bypass_vector_index** | Option<**bool**> | Whether to bypass vector index | [optional] **columns** | Option<[**models::QueryTableRequestColumns**](QueryTableRequest_columns.md)> | | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/RegisterTableRequest.md b/rust/lance-namespace-reqwest-client/docs/RegisterTableRequest.md index 45685950..9a1580f7 100644 --- a/rust/lance-namespace-reqwest-client/docs/RegisterTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/RegisterTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **location** | **String** | | **mode** | Option<**String**> | There are two modes when trying to register a table, to differentiate the behavior when a table of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create (default): the operation fails with 409. * Overwrite: the existing table registration is replaced with the new registration. | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/RenameTableRequest.md b/rust/lance-namespace-reqwest-client/docs/RenameTableRequest.md index 33e91a3c..bae8473a 100644 --- a/rust/lance-namespace-reqwest-client/docs/RenameTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/RenameTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | The table identifier | [optional] **new_table_name** | **String** | New name for the table | **new_namespace_id** | Option<**Vec**> | New namespace identifier to move the table to (optional, if not specified the table stays in the same namespace) | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/RestoreTableRequest.md b/rust/lance-namespace-reqwest-client/docs/RestoreTableRequest.md index 1fe2d9e2..edd13772 100644 --- a/rust/lance-namespace-reqwest-client/docs/RestoreTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/RestoreTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **version** | **i64** | Version to restore to | diff --git a/rust/lance-namespace-reqwest-client/docs/TableExistsRequest.md b/rust/lance-namespace-reqwest-client/docs/TableExistsRequest.md index bfaeea2d..00a11a73 100644 --- a/rust/lance-namespace-reqwest-client/docs/TableExistsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/TableExistsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **version** | Option<**i64**> | Version of the table to check existence. If not specified, server should resolve it to the latest version. | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/UpdateTableRequest.md b/rust/lance-namespace-reqwest-client/docs/UpdateTableRequest.md index 911c32c2..4ce5b0da 100644 --- a/rust/lance-namespace-reqwest-client/docs/UpdateTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/UpdateTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **predicate** | Option<**String**> | Optional SQL predicate to filter rows for update | [optional] **updates** | [**Vec>**](Vec.md) | List of column updates as [column_name, expression] pairs | diff --git a/rust/lance-namespace-reqwest-client/docs/UpdateTableSchemaMetadataRequest.md b/rust/lance-namespace-reqwest-client/docs/UpdateTableSchemaMetadataRequest.md index 6c02c0e9..3638f3d1 100644 --- a/rust/lance-namespace-reqwest-client/docs/UpdateTableSchemaMetadataRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/UpdateTableSchemaMetadataRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | The table identifier | [optional] **metadata** | Option<**std::collections::HashMap**> | Schema metadata key-value pairs to set | [optional] diff --git a/rust/lance-namespace-reqwest-client/docs/UpdateTableTagRequest.md b/rust/lance-namespace-reqwest-client/docs/UpdateTableTagRequest.md index e9cb8bf4..3faf826b 100644 --- a/rust/lance-namespace-reqwest-client/docs/UpdateTableTagRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/UpdateTableTagRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | Option<[**models::Identity**](Identity.md)> | | [optional] +**context** | Option<**std::collections::HashMap**> | Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. | [optional] **id** | Option<**Vec**> | | [optional] **tag** | **String** | Name of the tag to update | **version** | **i64** | New version number for the tag to point to | diff --git a/rust/lance-namespace-reqwest-client/src/models/alter_table_add_columns_request.rs b/rust/lance-namespace-reqwest-client/src/models/alter_table_add_columns_request.rs index fec8a476..2456c91e 100644 --- a/rust/lance-namespace-reqwest-client/src/models/alter_table_add_columns_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/alter_table_add_columns_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct AlterTableAddColumnsRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// List of new columns to add @@ -26,6 +29,7 @@ impl AlterTableAddColumnsRequest { pub fn new(new_columns: Vec) -> AlterTableAddColumnsRequest { AlterTableAddColumnsRequest { identity: None, + context: None, id: None, new_columns, } diff --git a/rust/lance-namespace-reqwest-client/src/models/alter_table_alter_columns_request.rs b/rust/lance-namespace-reqwest-client/src/models/alter_table_alter_columns_request.rs index 93cdc293..aa0e97bd 100644 --- a/rust/lance-namespace-reqwest-client/src/models/alter_table_alter_columns_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/alter_table_alter_columns_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct AlterTableAlterColumnsRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// List of column alterations to perform @@ -26,6 +29,7 @@ impl AlterTableAlterColumnsRequest { pub fn new(alterations: Vec) -> AlterTableAlterColumnsRequest { AlterTableAlterColumnsRequest { identity: None, + context: None, id: None, alterations, } diff --git a/rust/lance-namespace-reqwest-client/src/models/alter_table_drop_columns_request.rs b/rust/lance-namespace-reqwest-client/src/models/alter_table_drop_columns_request.rs index 3de2c111..5ff4d5a0 100644 --- a/rust/lance-namespace-reqwest-client/src/models/alter_table_drop_columns_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/alter_table_drop_columns_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct AlterTableDropColumnsRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Names of columns to drop @@ -26,6 +29,7 @@ impl AlterTableDropColumnsRequest { pub fn new(columns: Vec) -> AlterTableDropColumnsRequest { AlterTableDropColumnsRequest { identity: None, + context: None, id: None, columns, } diff --git a/rust/lance-namespace-reqwest-client/src/models/alter_transaction_request.rs b/rust/lance-namespace-reqwest-client/src/models/alter_transaction_request.rs index 824a94dc..442a0322 100644 --- a/rust/lance-namespace-reqwest-client/src/models/alter_transaction_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/alter_transaction_request.rs @@ -16,6 +16,9 @@ use serde::{Deserialize, Serialize}; pub struct AlterTransactionRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, #[serde(rename = "actions")] @@ -27,6 +30,7 @@ impl AlterTransactionRequest { pub fn new(actions: Vec) -> AlterTransactionRequest { AlterTransactionRequest { identity: None, + context: None, id: None, actions, } diff --git a/rust/lance-namespace-reqwest-client/src/models/analyze_table_query_plan_request.rs b/rust/lance-namespace-reqwest-client/src/models/analyze_table_query_plan_request.rs index 01002c89..50edb1ea 100644 --- a/rust/lance-namespace-reqwest-client/src/models/analyze_table_query_plan_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/analyze_table_query_plan_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct AnalyzeTableQueryPlanRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Whether to bypass vector index @@ -74,6 +77,7 @@ impl AnalyzeTableQueryPlanRequest { pub fn new(k: i32, vector: models::QueryTableRequestVector) -> AnalyzeTableQueryPlanRequest { AnalyzeTableQueryPlanRequest { identity: None, + context: None, id: None, bypass_vector_index: None, columns: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/count_table_rows_request.rs b/rust/lance-namespace-reqwest-client/src/models/count_table_rows_request.rs index c8af74a1..1607bc6c 100644 --- a/rust/lance-namespace-reqwest-client/src/models/count_table_rows_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/count_table_rows_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct CountTableRowsRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Version of the table to describe. If not specified, server should resolve it to the latest version. @@ -29,6 +32,7 @@ impl CountTableRowsRequest { pub fn new() -> CountTableRowsRequest { CountTableRowsRequest { identity: None, + context: None, id: None, version: None, predicate: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/create_empty_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/create_empty_table_request.rs index 855c8098..f03cbb52 100644 --- a/rust/lance-namespace-reqwest-client/src/models/create_empty_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/create_empty_table_request.rs @@ -16,6 +16,9 @@ use serde::{Deserialize, Serialize}; pub struct CreateEmptyTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Optional storage location for the table. If not provided, the namespace implementation should determine the table location. @@ -28,6 +31,7 @@ impl CreateEmptyTableRequest { pub fn new() -> CreateEmptyTableRequest { CreateEmptyTableRequest { identity: None, + context: None, id: None, location: None, } diff --git a/rust/lance-namespace-reqwest-client/src/models/create_namespace_request.rs b/rust/lance-namespace-reqwest-client/src/models/create_namespace_request.rs index 3582019e..45fa8088 100644 --- a/rust/lance-namespace-reqwest-client/src/models/create_namespace_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/create_namespace_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct CreateNamespaceRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// There are three modes when trying to create a namespace, to differentiate the behavior when a namespace of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create: the operation fails with 409. * ExistOk: the operation succeeds and the existing namespace is kept. * Overwrite: the existing namespace is dropped and a new empty namespace with this name is created. @@ -28,6 +31,7 @@ impl CreateNamespaceRequest { pub fn new() -> CreateNamespaceRequest { CreateNamespaceRequest { identity: None, + context: None, id: None, mode: None, properties: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/create_table_index_request.rs b/rust/lance-namespace-reqwest-client/src/models/create_table_index_request.rs index 66c4646f..aeb5007c 100644 --- a/rust/lance-namespace-reqwest-client/src/models/create_table_index_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/create_table_index_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct CreateTableIndexRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Name of the column to create index on @@ -59,6 +62,7 @@ impl CreateTableIndexRequest { pub fn new(column: String, index_type: String) -> CreateTableIndexRequest { CreateTableIndexRequest { identity: None, + context: None, id: None, column, index_type, diff --git a/rust/lance-namespace-reqwest-client/src/models/create_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/create_table_request.rs index b6459664..d8051345 100644 --- a/rust/lance-namespace-reqwest-client/src/models/create_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/create_table_request.rs @@ -16,6 +16,9 @@ use serde::{Deserialize, Serialize}; pub struct CreateTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// There are three modes when trying to create a table, to differentiate the behavior when a table of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: * Create: the operation fails with 409. * ExistOk: the operation succeeds and the existing table is kept. * Overwrite: the existing table is dropped and a new table with this name is created. @@ -28,6 +31,7 @@ impl CreateTableRequest { pub fn new() -> CreateTableRequest { CreateTableRequest { identity: None, + context: None, id: None, mode: None, } diff --git a/rust/lance-namespace-reqwest-client/src/models/create_table_tag_request.rs b/rust/lance-namespace-reqwest-client/src/models/create_table_tag_request.rs index 3f64ebbd..c755125e 100644 --- a/rust/lance-namespace-reqwest-client/src/models/create_table_tag_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/create_table_tag_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct CreateTableTagRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Name of the tag to create @@ -29,6 +32,7 @@ impl CreateTableTagRequest { pub fn new(tag: String, version: i64) -> CreateTableTagRequest { CreateTableTagRequest { identity: None, + context: None, id: None, tag, version, diff --git a/rust/lance-namespace-reqwest-client/src/models/declare_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/declare_table_request.rs index 9e079300..9d240d1e 100644 --- a/rust/lance-namespace-reqwest-client/src/models/declare_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/declare_table_request.rs @@ -16,6 +16,9 @@ use serde::{Deserialize, Serialize}; pub struct DeclareTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Optional storage location for the table. If not provided, the namespace implementation should determine the table location. @@ -28,6 +31,7 @@ impl DeclareTableRequest { pub fn new() -> DeclareTableRequest { DeclareTableRequest { identity: None, + context: None, id: None, location: None, } diff --git a/rust/lance-namespace-reqwest-client/src/models/delete_from_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/delete_from_table_request.rs index 7bcacb39..9c417f0b 100644 --- a/rust/lance-namespace-reqwest-client/src/models/delete_from_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/delete_from_table_request.rs @@ -16,6 +16,9 @@ use serde::{Deserialize, Serialize}; pub struct DeleteFromTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, /// The namespace identifier #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, @@ -29,6 +32,7 @@ impl DeleteFromTableRequest { pub fn new(predicate: String) -> DeleteFromTableRequest { DeleteFromTableRequest { identity: None, + context: None, id: None, predicate, } diff --git a/rust/lance-namespace-reqwest-client/src/models/delete_table_tag_request.rs b/rust/lance-namespace-reqwest-client/src/models/delete_table_tag_request.rs index 3342b0a2..21fbc8f4 100644 --- a/rust/lance-namespace-reqwest-client/src/models/delete_table_tag_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/delete_table_tag_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct DeleteTableTagRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Name of the tag to delete @@ -26,6 +29,7 @@ impl DeleteTableTagRequest { pub fn new(tag: String) -> DeleteTableTagRequest { DeleteTableTagRequest { identity: None, + context: None, id: None, tag, } diff --git a/rust/lance-namespace-reqwest-client/src/models/deregister_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/deregister_table_request.rs index c95a757d..d01d7914 100644 --- a/rust/lance-namespace-reqwest-client/src/models/deregister_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/deregister_table_request.rs @@ -16,6 +16,9 @@ use serde::{Deserialize, Serialize}; pub struct DeregisterTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, } @@ -25,6 +28,7 @@ impl DeregisterTableRequest { pub fn new() -> DeregisterTableRequest { DeregisterTableRequest { identity: None, + context: None, id: None, } } diff --git a/rust/lance-namespace-reqwest-client/src/models/describe_namespace_request.rs b/rust/lance-namespace-reqwest-client/src/models/describe_namespace_request.rs index 05383652..b94d6aad 100644 --- a/rust/lance-namespace-reqwest-client/src/models/describe_namespace_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/describe_namespace_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct DescribeNamespaceRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, } @@ -23,6 +26,7 @@ impl DescribeNamespaceRequest { pub fn new() -> DescribeNamespaceRequest { DescribeNamespaceRequest { identity: None, + context: None, id: None, } } diff --git a/rust/lance-namespace-reqwest-client/src/models/describe_table_index_stats_request.rs b/rust/lance-namespace-reqwest-client/src/models/describe_table_index_stats_request.rs index 8a6dc1a8..6a594cf3 100644 --- a/rust/lance-namespace-reqwest-client/src/models/describe_table_index_stats_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/describe_table_index_stats_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct DescribeTableIndexStatsRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Optional table version to get stats for @@ -29,6 +32,7 @@ impl DescribeTableIndexStatsRequest { pub fn new() -> DescribeTableIndexStatsRequest { DescribeTableIndexStatsRequest { identity: None, + context: None, id: None, version: None, index_name: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/describe_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/describe_table_request.rs index 7189a1d9..10437335 100644 --- a/rust/lance-namespace-reqwest-client/src/models/describe_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/describe_table_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct DescribeTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Version of the table to describe. If not specified, server should resolve it to the latest version. @@ -35,6 +38,7 @@ impl DescribeTableRequest { pub fn new() -> DescribeTableRequest { DescribeTableRequest { identity: None, + context: None, id: None, version: None, with_table_uri: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/describe_transaction_request.rs b/rust/lance-namespace-reqwest-client/src/models/describe_transaction_request.rs index 3b09f277..9340d40b 100644 --- a/rust/lance-namespace-reqwest-client/src/models/describe_transaction_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/describe_transaction_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct DescribeTransactionRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, } @@ -23,6 +26,7 @@ impl DescribeTransactionRequest { pub fn new() -> DescribeTransactionRequest { DescribeTransactionRequest { identity: None, + context: None, id: None, } } diff --git a/rust/lance-namespace-reqwest-client/src/models/drop_namespace_request.rs b/rust/lance-namespace-reqwest-client/src/models/drop_namespace_request.rs index fbd02ae1..d336b009 100644 --- a/rust/lance-namespace-reqwest-client/src/models/drop_namespace_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/drop_namespace_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct DropNamespaceRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. Case insensitive, supports both PascalCase and snake_case. Valid values are: - 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. @@ -29,6 +32,7 @@ impl DropNamespaceRequest { pub fn new() -> DropNamespaceRequest { DropNamespaceRequest { identity: None, + context: None, id: None, mode: None, behavior: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/drop_table_index_request.rs b/rust/lance-namespace-reqwest-client/src/models/drop_table_index_request.rs index 420a1883..88f9538c 100644 --- a/rust/lance-namespace-reqwest-client/src/models/drop_table_index_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/drop_table_index_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct DropTableIndexRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Name of the index to drop @@ -26,6 +29,7 @@ impl DropTableIndexRequest { pub fn new() -> DropTableIndexRequest { DropTableIndexRequest { identity: None, + context: None, id: None, index_name: None, } diff --git a/rust/lance-namespace-reqwest-client/src/models/drop_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/drop_table_request.rs index 8526b501..98c4fd0f 100644 --- a/rust/lance-namespace-reqwest-client/src/models/drop_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/drop_table_request.rs @@ -16,6 +16,9 @@ use serde::{Deserialize, Serialize}; pub struct DropTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, } @@ -25,6 +28,7 @@ impl DropTableRequest { pub fn new() -> DropTableRequest { DropTableRequest { identity: None, + context: None, id: None, } } diff --git a/rust/lance-namespace-reqwest-client/src/models/explain_table_query_plan_request.rs b/rust/lance-namespace-reqwest-client/src/models/explain_table_query_plan_request.rs index f26428c3..9890f8ca 100644 --- a/rust/lance-namespace-reqwest-client/src/models/explain_table_query_plan_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/explain_table_query_plan_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct ExplainTableQueryPlanRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, #[serde(rename = "query")] @@ -28,6 +31,7 @@ impl ExplainTableQueryPlanRequest { pub fn new(query: models::QueryTableRequest) -> ExplainTableQueryPlanRequest { ExplainTableQueryPlanRequest { identity: None, + context: None, id: None, query: Box::new(query), verbose: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/get_table_stats_request.rs b/rust/lance-namespace-reqwest-client/src/models/get_table_stats_request.rs index 33196890..a6b738c6 100644 --- a/rust/lance-namespace-reqwest-client/src/models/get_table_stats_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/get_table_stats_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct GetTableStatsRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, } @@ -23,6 +26,7 @@ impl GetTableStatsRequest { pub fn new() -> GetTableStatsRequest { GetTableStatsRequest { identity: None, + context: None, id: None, } } diff --git a/rust/lance-namespace-reqwest-client/src/models/get_table_tag_version_request.rs b/rust/lance-namespace-reqwest-client/src/models/get_table_tag_version_request.rs index 7c89df53..45a555af 100644 --- a/rust/lance-namespace-reqwest-client/src/models/get_table_tag_version_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/get_table_tag_version_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct GetTableTagVersionRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Name of the tag to get version for @@ -26,6 +29,7 @@ impl GetTableTagVersionRequest { pub fn new(tag: String) -> GetTableTagVersionRequest { GetTableTagVersionRequest { identity: None, + context: None, id: None, tag, } diff --git a/rust/lance-namespace-reqwest-client/src/models/insert_into_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/insert_into_table_request.rs index 1a9a1604..a41c7d51 100644 --- a/rust/lance-namespace-reqwest-client/src/models/insert_into_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/insert_into_table_request.rs @@ -16,6 +16,9 @@ use serde::{Deserialize, Serialize}; pub struct InsertIntoTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// How the insert should behave. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Append (default): insert data to the existing table - Overwrite: remove all data in the table and then insert data to it @@ -28,6 +31,7 @@ impl InsertIntoTableRequest { pub fn new() -> InsertIntoTableRequest { InsertIntoTableRequest { identity: None, + context: None, id: None, mode: None, } diff --git a/rust/lance-namespace-reqwest-client/src/models/list_namespaces_request.rs b/rust/lance-namespace-reqwest-client/src/models/list_namespaces_request.rs index 0686519b..04cf55f1 100644 --- a/rust/lance-namespace-reqwest-client/src/models/list_namespaces_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/list_namespaces_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct ListNamespacesRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. @@ -29,6 +32,7 @@ impl ListNamespacesRequest { pub fn new() -> ListNamespacesRequest { ListNamespacesRequest { identity: None, + context: None, id: None, page_token: None, limit: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/list_table_indices_request.rs b/rust/lance-namespace-reqwest-client/src/models/list_table_indices_request.rs index 0a5f3184..63b35a5c 100644 --- a/rust/lance-namespace-reqwest-client/src/models/list_table_indices_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/list_table_indices_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct ListTableIndicesRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, /// The namespace identifier #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, @@ -33,6 +36,7 @@ impl ListTableIndicesRequest { pub fn new() -> ListTableIndicesRequest { ListTableIndicesRequest { identity: None, + context: None, id: None, version: None, page_token: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/list_table_tags_request.rs b/rust/lance-namespace-reqwest-client/src/models/list_table_tags_request.rs index acad6006..eaad5d8e 100644 --- a/rust/lance-namespace-reqwest-client/src/models/list_table_tags_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/list_table_tags_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct ListTableTagsRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, /// The table identifier #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, @@ -30,6 +33,7 @@ impl ListTableTagsRequest { pub fn new() -> ListTableTagsRequest { ListTableTagsRequest { identity: None, + context: None, id: None, page_token: None, limit: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/list_table_versions_request.rs b/rust/lance-namespace-reqwest-client/src/models/list_table_versions_request.rs index 00392067..5a5669b7 100644 --- a/rust/lance-namespace-reqwest-client/src/models/list_table_versions_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/list_table_versions_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct ListTableVersionsRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. @@ -29,6 +32,7 @@ impl ListTableVersionsRequest { pub fn new() -> ListTableVersionsRequest { ListTableVersionsRequest { identity: None, + context: None, id: None, page_token: None, limit: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/list_tables_request.rs b/rust/lance-namespace-reqwest-client/src/models/list_tables_request.rs index 44c1095e..6fd00680 100644 --- a/rust/lance-namespace-reqwest-client/src/models/list_tables_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/list_tables_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct ListTablesRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// An opaque token that allows pagination for list operations (e.g. ListNamespaces). For an initial request of a list operation, if the implementation cannot return all items in one response, or if there are more items than the page limit specified in the request, the implementation must return a page token in the response, indicating there are more results available. After the initial request, the value of the page token from each response must be used as the page token value for the next request. Caller must interpret either `null`, missing value or empty string value of the page token from the implementation's response as the end of the listing results. @@ -29,6 +32,7 @@ impl ListTablesRequest { pub fn new() -> ListTablesRequest { ListTablesRequest { identity: None, + context: None, id: None, page_token: None, limit: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/merge_insert_into_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/merge_insert_into_table_request.rs index 369ec20b..4ee8967c 100644 --- a/rust/lance-namespace-reqwest-client/src/models/merge_insert_into_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/merge_insert_into_table_request.rs @@ -16,6 +16,9 @@ use serde::{Deserialize, Serialize}; pub struct MergeInsertIntoTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Column name to use for matching rows (required) @@ -49,6 +52,7 @@ impl MergeInsertIntoTableRequest { pub fn new() -> MergeInsertIntoTableRequest { MergeInsertIntoTableRequest { identity: None, + context: None, id: None, on: None, when_matched_update_all: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/namespace_exists_request.rs b/rust/lance-namespace-reqwest-client/src/models/namespace_exists_request.rs index 3ec7e6c6..9a828ddd 100644 --- a/rust/lance-namespace-reqwest-client/src/models/namespace_exists_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/namespace_exists_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct NamespaceExistsRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, } @@ -23,6 +26,7 @@ impl NamespaceExistsRequest { pub fn new() -> NamespaceExistsRequest { NamespaceExistsRequest { identity: None, + context: None, id: None, } } diff --git a/rust/lance-namespace-reqwest-client/src/models/query_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/query_table_request.rs index e7d4f8e0..0a923d24 100644 --- a/rust/lance-namespace-reqwest-client/src/models/query_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/query_table_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct QueryTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Whether to bypass vector index @@ -74,6 +77,7 @@ impl QueryTableRequest { pub fn new(k: i32, vector: models::QueryTableRequestVector) -> QueryTableRequest { QueryTableRequest { identity: None, + context: None, id: None, bypass_vector_index: None, columns: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/register_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/register_table_request.rs index 1499c853..b0a94a8c 100644 --- a/rust/lance-namespace-reqwest-client/src/models/register_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/register_table_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct RegisterTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, #[serde(rename = "location")] @@ -30,6 +33,7 @@ impl RegisterTableRequest { pub fn new(location: String) -> RegisterTableRequest { RegisterTableRequest { identity: None, + context: None, id: None, location, mode: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/rename_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/rename_table_request.rs index 7a24d2fd..69bca074 100644 --- a/rust/lance-namespace-reqwest-client/src/models/rename_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/rename_table_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct RenameTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, /// The table identifier #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, @@ -30,6 +33,7 @@ impl RenameTableRequest { pub fn new(new_table_name: String) -> RenameTableRequest { RenameTableRequest { identity: None, + context: None, id: None, new_table_name, new_namespace_id: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/restore_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/restore_table_request.rs index ac1db84c..17addeb4 100644 --- a/rust/lance-namespace-reqwest-client/src/models/restore_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/restore_table_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct RestoreTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Version to restore to @@ -26,6 +29,7 @@ impl RestoreTableRequest { pub fn new(version: i64) -> RestoreTableRequest { RestoreTableRequest { identity: None, + context: None, id: None, version, } diff --git a/rust/lance-namespace-reqwest-client/src/models/table_exists_request.rs b/rust/lance-namespace-reqwest-client/src/models/table_exists_request.rs index af29f0e4..71eea9c6 100644 --- a/rust/lance-namespace-reqwest-client/src/models/table_exists_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/table_exists_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct TableExistsRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Version of the table to check existence. If not specified, server should resolve it to the latest version. @@ -26,6 +29,7 @@ impl TableExistsRequest { pub fn new() -> TableExistsRequest { TableExistsRequest { identity: None, + context: None, id: None, version: None, } diff --git a/rust/lance-namespace-reqwest-client/src/models/update_table_request.rs b/rust/lance-namespace-reqwest-client/src/models/update_table_request.rs index 8ae36d35..e0505bda 100644 --- a/rust/lance-namespace-reqwest-client/src/models/update_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/update_table_request.rs @@ -16,6 +16,9 @@ use serde::{Deserialize, Serialize}; pub struct UpdateTableRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Optional SQL predicate to filter rows for update @@ -31,6 +34,7 @@ impl UpdateTableRequest { pub fn new(updates: Vec>) -> UpdateTableRequest { UpdateTableRequest { identity: None, + context: None, id: None, predicate: None, updates, diff --git a/rust/lance-namespace-reqwest-client/src/models/update_table_schema_metadata_request.rs b/rust/lance-namespace-reqwest-client/src/models/update_table_schema_metadata_request.rs index 7c8f0b92..57c894c3 100644 --- a/rust/lance-namespace-reqwest-client/src/models/update_table_schema_metadata_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/update_table_schema_metadata_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct UpdateTableSchemaMetadataRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, /// The table identifier #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, @@ -27,6 +30,7 @@ impl UpdateTableSchemaMetadataRequest { pub fn new() -> UpdateTableSchemaMetadataRequest { UpdateTableSchemaMetadataRequest { identity: None, + context: None, id: None, metadata: None, } diff --git a/rust/lance-namespace-reqwest-client/src/models/update_table_tag_request.rs b/rust/lance-namespace-reqwest-client/src/models/update_table_tag_request.rs index 57893fea..3f5e3786 100644 --- a/rust/lance-namespace-reqwest-client/src/models/update_table_tag_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/update_table_tag_request.rs @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct UpdateTableTagRequest { #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] pub identity: Option>, + /// Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention `x-lance-ctx-: `. For example, a context entry `{\"trace_id\": \"abc123\"}` would be sent as the header `x-lance-ctx-trace_id: abc123`. + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Name of the tag to update @@ -29,6 +32,7 @@ impl UpdateTableTagRequest { pub fn new(tag: String, version: i64) -> UpdateTableTagRequest { UpdateTableTagRequest { identity: None, + context: None, id: None, tag, version,