diff --git a/docs/src/client/operations/models/AlterTableAddColumnsRequest.md b/docs/src/client/operations/models/AlterTableAddColumnsRequest.md index b27908d9..a43d37aa 100644 --- a/docs/src/client/operations/models/AlterTableAddColumnsRequest.md +++ b/docs/src/client/operations/models/AlterTableAddColumnsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 c01f8c30..b387bd23 100644 --- a/docs/src/client/operations/models/AlterTableAlterColumnsRequest.md +++ b/docs/src/client/operations/models/AlterTableAlterColumnsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 14a3c80a..b85f73b2 100644 --- a/docs/src/client/operations/models/AlterTableDropColumnsRequest.md +++ b/docs/src/client/operations/models/AlterTableDropColumnsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 ef50c025..f5a70fd2 100644 --- a/docs/src/client/operations/models/AlterTransactionRequest.md +++ b/docs/src/client/operations/models/AlterTransactionRequest.md @@ -8,6 +8,7 @@ Alter a transaction with a list of actions. The server should either succeed and | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 7a2b1470..169c50ac 100644 --- a/docs/src/client/operations/models/AnalyzeTableQueryPlanRequest.md +++ b/docs/src/client/operations/models/AnalyzeTableQueryPlanRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 ce78c344..76f0642e 100644 --- a/docs/src/client/operations/models/CountTableRowsRequest.md +++ b/docs/src/client/operations/models/CountTableRowsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 dd83b63c..12a851e7 100644 --- a/docs/src/client/operations/models/CreateEmptyTableRequest.md +++ b/docs/src/client/operations/models/CreateEmptyTableRequest.md @@ -8,6 +8,7 @@ Request for creating an empty table. **Deprecated**: Use `DeclareTableRequest` | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 8f3d1c36..4f2e0292 100644 --- a/docs/src/client/operations/models/CreateNamespaceRequest.md +++ b/docs/src/client/operations/models/CreateNamespaceRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 9bd084f1..6932b83b 100644 --- a/docs/src/client/operations/models/CreateTableIndexRequest.md +++ b/docs/src/client/operations/models/CreateTableIndexRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 9d35c375..0ee9ec96 100644 --- a/docs/src/client/operations/models/CreateTableRequest.md +++ b/docs/src/client/operations/models/CreateTableRequest.md @@ -8,6 +8,7 @@ Request for creating a table, excluding the Arrow IPC stream. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 87fec0e8..7943a746 100644 --- a/docs/src/client/operations/models/CreateTableTagRequest.md +++ b/docs/src/client/operations/models/CreateTableTagRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 d201f369..46c916d7 100644 --- a/docs/src/client/operations/models/DeclareTableRequest.md +++ b/docs/src/client/operations/models/DeclareTableRequest.md @@ -8,6 +8,7 @@ Request for declaring a table. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 a3201490..966d0bb3 100644 --- a/docs/src/client/operations/models/DeleteFromTableRequest.md +++ b/docs/src/client/operations/models/DeleteFromTableRequest.md @@ -8,6 +8,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] | |**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 89512d83..99701201 100644 --- a/docs/src/client/operations/models/DeleteTableTagRequest.md +++ b/docs/src/client/operations/models/DeleteTableTagRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 61a2275f..7bf8637a 100644 --- a/docs/src/client/operations/models/DeregisterTableRequest.md +++ b/docs/src/client/operations/models/DeregisterTableRequest.md @@ -8,6 +8,7 @@ The table content remains available in the storage. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/docs/src/client/operations/models/DescribeNamespaceRequest.md b/docs/src/client/operations/models/DescribeNamespaceRequest.md index 7e3672f2..b36086c2 100644 --- a/docs/src/client/operations/models/DescribeNamespaceRequest.md +++ b/docs/src/client/operations/models/DescribeNamespaceRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/docs/src/client/operations/models/DescribeTableIndexStatsRequest.md b/docs/src/client/operations/models/DescribeTableIndexStatsRequest.md index 4a8af816..996eaa86 100644 --- a/docs/src/client/operations/models/DescribeTableIndexStatsRequest.md +++ b/docs/src/client/operations/models/DescribeTableIndexStatsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 d5512f2d..12f278be 100644 --- a/docs/src/client/operations/models/DescribeTableRequest.md +++ b/docs/src/client/operations/models/DescribeTableRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 76e85ed0..e6c08e7d 100644 --- a/docs/src/client/operations/models/DescribeTransactionRequest.md +++ b/docs/src/client/operations/models/DescribeTransactionRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/docs/src/client/operations/models/DropNamespaceRequest.md b/docs/src/client/operations/models/DropNamespaceRequest.md index 072ed709..16d23ccb 100644 --- a/docs/src/client/operations/models/DropNamespaceRequest.md +++ b/docs/src/client/operations/models/DropNamespaceRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 bb0ea947..77bf0b47 100644 --- a/docs/src/client/operations/models/DropTableIndexRequest.md +++ b/docs/src/client/operations/models/DropTableIndexRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 2308e884..507b5a77 100644 --- a/docs/src/client/operations/models/DropTableRequest.md +++ b/docs/src/client/operations/models/DropTableRequest.md @@ -8,6 +8,7 @@ If the table and its data can be immediately deleted, return information of the | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/docs/src/client/operations/models/ExplainTableQueryPlanRequest.md b/docs/src/client/operations/models/ExplainTableQueryPlanRequest.md index 97cac3c8..1b1cf649 100644 --- a/docs/src/client/operations/models/ExplainTableQueryPlanRequest.md +++ b/docs/src/client/operations/models/ExplainTableQueryPlanRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 f27fc47a..4215ed04 100644 --- a/docs/src/client/operations/models/GetTableStatsRequest.md +++ b/docs/src/client/operations/models/GetTableStatsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/docs/src/client/operations/models/GetTableTagVersionRequest.md b/docs/src/client/operations/models/GetTableTagVersionRequest.md index e0538610..33445977 100644 --- a/docs/src/client/operations/models/GetTableTagVersionRequest.md +++ b/docs/src/client/operations/models/GetTableTagVersionRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [optional] | |**id** | **List<String>** | | [optional] | |**tag** | **String** | Name of the tag to get version for | | diff --git a/docs/src/client/operations/models/Identity.md b/docs/src/client/operations/models/Identity.md new file mode 100644 index 00000000..a543e827 --- /dev/null +++ b/docs/src/client/operations/models/Identity.md @@ -0,0 +1,15 @@ + + +# Identity + +Identity information of a request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiKey** | **String** | API key for authentication. REST NAMESPACE ONLY This is passed via the `x-api-key` header. | [optional] | +|**authToken** | **String** | Bearer token for authentication. REST NAMESPACE ONLY This is passed via the `Authorization` header with the Bearer scheme (e.g., `Bearer <token>`). | [optional] | + + + diff --git a/docs/src/client/operations/models/InsertIntoTableRequest.md b/docs/src/client/operations/models/InsertIntoTableRequest.md index 4c37cdf2..7f098c03 100644 --- a/docs/src/client/operations/models/InsertIntoTableRequest.md +++ b/docs/src/client/operations/models/InsertIntoTableRequest.md @@ -8,6 +8,7 @@ Request for inserting records into a table, excluding the Arrow IPC stream. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 1d5f7394..d584efd6 100644 --- a/docs/src/client/operations/models/ListNamespacesRequest.md +++ b/docs/src/client/operations/models/ListNamespacesRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 213926b2..b37b7018 100644 --- a/docs/src/client/operations/models/ListTableIndicesRequest.md +++ b/docs/src/client/operations/models/ListTableIndicesRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 c732c9a5..6e021061 100644 --- a/docs/src/client/operations/models/ListTableTagsRequest.md +++ b/docs/src/client/operations/models/ListTableTagsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 54b27321..aed55926 100644 --- a/docs/src/client/operations/models/ListTableVersionsRequest.md +++ b/docs/src/client/operations/models/ListTableVersionsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 5f9d0766..b765f0e7 100644 --- a/docs/src/client/operations/models/ListTablesRequest.md +++ b/docs/src/client/operations/models/ListTablesRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 c4bf6fbb..9a75f9df 100644 --- a/docs/src/client/operations/models/MergeInsertIntoTableRequest.md +++ b/docs/src/client/operations/models/MergeInsertIntoTableRequest.md @@ -8,6 +8,7 @@ Request for merging or inserting records into a table, excluding the Arrow IPC s | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 b44f6177..a63b32b1 100644 --- a/docs/src/client/operations/models/NamespaceExistsRequest.md +++ b/docs/src/client/operations/models/NamespaceExistsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [optional] | |**id** | **List<String>** | | [optional] | diff --git a/docs/src/client/operations/models/QueryTableRequest.md b/docs/src/client/operations/models/QueryTableRequest.md index 75f0377b..9628ec35 100644 --- a/docs/src/client/operations/models/QueryTableRequest.md +++ b/docs/src/client/operations/models/QueryTableRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 f83899eb..67614cf2 100644 --- a/docs/src/client/operations/models/RegisterTableRequest.md +++ b/docs/src/client/operations/models/RegisterTableRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 4b47cd4a..fb951c6f 100644 --- a/docs/src/client/operations/models/RenameTableRequest.md +++ b/docs/src/client/operations/models/RenameTableRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 edf68c37..59cd4ef3 100644 --- a/docs/src/client/operations/models/RestoreTableRequest.md +++ b/docs/src/client/operations/models/RestoreTableRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 26ca2481..929758c9 100644 --- a/docs/src/client/operations/models/TableExistsRequest.md +++ b/docs/src/client/operations/models/TableExistsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 eac7285a..29ba3cfe 100644 --- a/docs/src/client/operations/models/UpdateTableRequest.md +++ b/docs/src/client/operations/models/UpdateTableRequest.md @@ -8,6 +8,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] | |**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 948e97db..69470ea3 100644 --- a/docs/src/client/operations/models/UpdateTableSchemaMetadataRequest.md +++ b/docs/src/client/operations/models/UpdateTableSchemaMetadataRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 51aae245..9ee43332 100644 --- a/docs/src/client/operations/models/UpdateTableTagRequest.md +++ b/docs/src/client/operations/models/UpdateTableTagRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 a2763cd8..52b76c2d 100644 --- a/docs/src/rest.yaml +++ b/docs/src/rest.yaml @@ -1902,9 +1902,32 @@ components: or anything that the implementation can recognize to trace specific occurrence of the error. example: /v1/table/production$users/describe + Identity: + type: object + description: | + Identity information of a request. + properties: + api_key: + 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 `). + CreateNamespaceRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -1942,6 +1965,8 @@ components: ListNamespacesRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -1969,6 +1994,8 @@ components: DescribeNamespaceRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -1992,6 +2019,8 @@ components: DropNamespaceRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2029,6 +2058,8 @@ components: NamespaceExistsRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2066,6 +2097,8 @@ components: required: - location properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2101,6 +2134,8 @@ components: ListTablesRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2130,6 +2165,8 @@ components: DescribeTableRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2240,6 +2277,8 @@ components: CountTableRowsRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2269,6 +2308,8 @@ components: description: | Request for inserting records into a table, excluding the Arrow IPC stream. properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2294,6 +2335,8 @@ components: description: | Request for merging or inserting records into a table, excluding the Arrow IPC stream. properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2364,6 +2407,8 @@ components: required: - updates properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2410,6 +2455,8 @@ components: required: - predicate properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2437,6 +2484,8 @@ components: - vector - k properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2547,6 +2596,8 @@ components: - column - index_type properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2617,6 +2668,8 @@ components: ListTableIndicesRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2672,6 +2725,8 @@ components: DescribeTableIndexStatsRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2784,6 +2839,8 @@ components: description: | Request for creating a table, excluding the Arrow IPC stream. properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2827,6 +2884,8 @@ components: **Deprecated**: Use `DeclareTableRequest` instead. properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2864,6 +2923,8 @@ components: description: | Request for declaring a table. properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2896,6 +2957,8 @@ components: TableExistsRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -2922,6 +2985,8 @@ components: DescribeTransactionRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3004,6 +3069,8 @@ components: required: - actions properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3032,6 +3099,8 @@ components: 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. properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3059,6 +3128,8 @@ components: description: | The table content remains available in the storage. properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3234,6 +3305,8 @@ components: required: - tag properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3259,6 +3332,8 @@ components: - tag - version properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3285,6 +3360,8 @@ components: required: - tag properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3307,6 +3384,8 @@ components: - tag - version properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3331,6 +3410,8 @@ components: ListTableTagsRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3380,6 +3461,8 @@ components: required: - version properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3403,6 +3486,8 @@ components: required: - new_table_name properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3427,6 +3512,8 @@ components: UpdateTableSchemaMetadataRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3453,6 +3540,8 @@ components: ListTableVersionsRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3502,6 +3591,8 @@ components: required: - query properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3528,6 +3619,8 @@ components: - vector - k properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3646,6 +3739,8 @@ components: required: - new_columns properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3723,6 +3818,8 @@ components: required: - alterations properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3803,6 +3900,8 @@ components: required: - columns properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3830,6 +3929,8 @@ components: GetTableStatsRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: @@ -3926,6 +4027,8 @@ components: DropTableIndexRequest: type: object properties: + identity: + $ref: '#/components/schemas/Identity' id: type: array items: diff --git a/docs/src/rest/catalog-spec.md b/docs/src/rest/catalog-spec.md index 34d1f3b1..9fb5bdc6 100644 --- a/docs/src/rest/catalog-spec.md +++ b/docs/src/rest/catalog-spec.md @@ -45,6 +45,20 @@ The information in the route could also present in the request body. When the information in the route and request body both present but do not match, the server must throw a 400 Bad Request error. When the information in the request body is missing, the server must use the information in the route instead. +## Identity Header Mapping + +All request schemas include an optional `identity` field for authentication. +For REST Namespace, the identity fields are mapped to HTTP headers: + +| Identity Field | REST Form | Location | +|----------------|-----------------|----------| +| `api_key` | `x-api-key` | Header | +| `auth_token` | `Authorization` | Header | + +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. + ## Non-Standard Operations For request and response that cannot be simply described as a JSON object diff --git a/java/lance-namespace-apache-client/README.md b/java/lance-namespace-apache-client/README.md index 1dd1d161..f6a061c6 100644 --- a/java/lance-namespace-apache-client/README.md +++ b/java/lance-namespace-apache-client/README.md @@ -296,6 +296,7 @@ Class | Method | HTTP request | Description - [GetTableStatsResponse](docs/GetTableStatsResponse.md) - [GetTableTagVersionRequest](docs/GetTableTagVersionRequest.md) - [GetTableTagVersionResponse](docs/GetTableTagVersionResponse.md) + - [Identity](docs/Identity.md) - [IndexContent](docs/IndexContent.md) - [InsertIntoTableRequest](docs/InsertIntoTableRequest.md) - [InsertIntoTableResponse](docs/InsertIntoTableResponse.md) diff --git a/java/lance-namespace-apache-client/api/openapi.yaml b/java/lance-namespace-apache-client/api/openapi.yaml index dea7ef27..51d82990 100644 --- a/java/lance-namespace-apache-client/api/openapi.yaml +++ b/java/lance-namespace-apache-client/api/openapi.yaml @@ -2585,15 +2585,42 @@ components: type: string required: - code + Identity: + description: | + Identity information of a request. + example: + api_key: api_key + auth_token: auth_token + properties: + api_key: + description: | + API key for authentication. + + REST NAMESPACE ONLY + This is passed via the `x-api-key` header. + type: string + auth_token: + description: | + Bearer token for authentication. + + REST NAMESPACE ONLY + This is passed via the `Authorization` header + with the Bearer scheme (e.g., `Bearer `). + type: string CreateNamespaceRequest: example: mode: mode + identity: + api_key: api_key + auth_token: auth_token id: - id - id properties: key: properties properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -2629,6 +2656,8 @@ components: If namespace properties are supported, but none are set, it should return an empty object. ListNamespacesRequest: properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -2682,10 +2711,15 @@ components: - namespaces DescribeNamespaceRequest: example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -2711,11 +2745,16 @@ components: DropNamespaceRequest: example: mode: mode + identity: + api_key: api_key + auth_token: auth_token id: - id - id behavior: behavior properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -2754,10 +2793,15 @@ components: type: array NamespaceExistsRequest: example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -2783,6 +2827,9 @@ components: RegisterTableRequest: example: mode: mode + identity: + api_key: api_key + auth_token: auth_token location: location id: - id @@ -2790,6 +2837,8 @@ components: properties: key: properties properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -2826,6 +2875,8 @@ components: type: string ListTablesRequest: properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -2881,6 +2932,9 @@ components: - tables DescribeTableRequest: example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id @@ -2889,6 +2943,8 @@ components: load_detailed_metadata: true vend_credentials: true properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -3027,11 +3083,16 @@ components: CountTableRowsRequest: example: predicate: predicate + identity: + api_key: api_key + auth_token: auth_token id: - id - id version: 0 properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -3057,6 +3118,8 @@ components: description: | Request for inserting records into a table, excluding the Arrow IPC stream. properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -3080,6 +3143,8 @@ components: description: | Request for merging or inserting records into a table, excluding the Arrow IPC stream. properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -3154,6 +3219,9 @@ components: provided to filter which rows to update. example: predicate: predicate + identity: + api_key: api_key + auth_token: auth_token id: - id - id @@ -3163,6 +3231,8 @@ components: - - updates - updates properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -3210,10 +3280,15 @@ components: Returns the number of rows that were deleted. example: predicate: predicate + identity: + api_key: api_key + auth_token: auth_token id: - id - id properties: + identity: + $ref: '#/components/schemas/Identity' id: description: The namespace identifier items: @@ -3308,6 +3383,9 @@ components: max_expansions: 0 distance_type: distance_type lower_bound: 3.6160767 + identity: + api_key: api_key + auth_token: auth_token bypass_vector_index: true nprobes: 0 vector: @@ -3323,6 +3401,8 @@ components: - id - id properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -3401,6 +3481,9 @@ components: with_position: true lower_case: true distance_type: distance_type + identity: + api_key: api_key + auth_token: auth_token name: name ascii_folding: true id: @@ -3409,6 +3492,8 @@ components: remove_stop_words: true stem: true properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -3483,6 +3568,9 @@ components: type: string ListTableIndicesRequest: example: + identity: + api_key: api_key + auth_token: auth_token page_token: page_token limit: 6 id: @@ -3490,6 +3578,8 @@ components: - id version: 0 properties: + identity: + $ref: '#/components/schemas/Identity' id: description: The namespace identifier items: @@ -3586,12 +3676,17 @@ components: - status DescribeTableIndexStatsRequest: example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id version: 0 index_name: index_name properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -3735,6 +3830,8 @@ components: description: | Request for creating a table, excluding the Arrow IPC stream. properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -3779,11 +3876,16 @@ components: **Deprecated**: Use `DeclareTableRequest` instead. example: + identity: + api_key: api_key + auth_token: auth_token location: location id: - id - id properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -3821,11 +3923,16 @@ components: description: | Request for declaring a table. example: + identity: + api_key: api_key + auth_token: auth_token location: location id: - id - id properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -3858,11 +3965,16 @@ components: passed directly to Lance to initialize storage access. TableExistsRequest: example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id version: 0 properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -3886,10 +3998,15 @@ components: type: string DescribeTransactionRequest: example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -4005,6 +4122,9 @@ components: Alter a transaction with a list of actions. The server should either succeed and apply all actions, or fail and apply no action. example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id @@ -4028,6 +4148,8 @@ components: value: value key: key properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -4065,6 +4187,8 @@ components: 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. properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -4095,10 +4219,15 @@ components: description: | The table content remains available in the storage. example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -4393,11 +4522,16 @@ components: type: string GetTableTagVersionRequest: example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id tag: tag properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -4420,12 +4554,17 @@ components: - version CreateTableTagRequest: example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id tag: tag version: 0 properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -4451,11 +4590,16 @@ components: type: string DeleteTableTagRequest: example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id tag: tag properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -4475,12 +4619,17 @@ components: type: string UpdateTableTagRequest: example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id tag: tag version: 0 properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -4506,6 +4655,8 @@ components: type: string ListTableTagsRequest: properties: + identity: + $ref: '#/components/schemas/Identity' id: description: The table identifier items: @@ -4582,11 +4733,16 @@ components: - version RestoreTableRequest: example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id version: 0 properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -4608,6 +4764,9 @@ components: type: string RenameTableRequest: example: + identity: + api_key: api_key + auth_token: auth_token new_table_name: new_table_name id: - id @@ -4616,6 +4775,8 @@ components: - new_namespace_id - new_namespace_id properties: + identity: + $ref: '#/components/schemas/Identity' id: description: The table identifier items: @@ -4641,6 +4802,8 @@ components: type: string UpdateTableSchemaMetadataRequest: properties: + identity: + $ref: '#/components/schemas/Identity' id: description: The table identifier items: @@ -4661,6 +4824,8 @@ components: type: string ListTableVersionsRequest: properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -4742,6 +4907,9 @@ components: - version ExplainTableQueryPlanRequest: example: + identity: + api_key: api_key + auth_token: auth_token query: ef: 0 offset: 0 @@ -4812,6 +4980,9 @@ components: max_expansions: 0 distance_type: distance_type lower_bound: 3.6160767 + identity: + api_key: api_key + auth_token: auth_token bypass_vector_index: true nprobes: 0 vector: @@ -4831,6 +5002,8 @@ components: - id verbose: false properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -4921,6 +5094,9 @@ components: max_expansions: 0 distance_type: distance_type lower_bound: 3.6160767 + identity: + api_key: api_key + auth_token: auth_token bypass_vector_index: true nprobes: 0 vector: @@ -4936,6 +5112,8 @@ components: - id - id properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -5013,6 +5191,9 @@ components: - analysis AlterTableAddColumnsRequest: example: + identity: + api_key: api_key + auth_token: auth_token new_columns: - expression: expression name: name @@ -5040,6 +5221,8 @@ components: - id - id properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -5132,6 +5315,9 @@ components: - version AlterTableAlterColumnsRequest: example: + identity: + api_key: api_key + auth_token: auth_token alterations: - path: path nullable: true @@ -5161,6 +5347,8 @@ components: - id - id properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -5255,6 +5443,9 @@ components: - version AlterTableDropColumnsRequest: example: + identity: + api_key: api_key + auth_token: auth_token columns: - columns - columns @@ -5262,6 +5453,8 @@ components: - id - id properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -5290,10 +5483,15 @@ components: - version GetTableStatsRequest: example: + identity: + api_key: api_key + auth_token: auth_token id: - id - id properties: + identity: + $ref: '#/components/schemas/Identity' id: items: type: string @@ -5414,6 +5612,8 @@ components: - p99 DropTableIndexRequest: properties: + identity: + $ref: '#/components/schemas/Identity' 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 b27908d9..a43d37aa 100644 --- a/java/lance-namespace-apache-client/docs/AlterTableAddColumnsRequest.md +++ b/java/lance-namespace-apache-client/docs/AlterTableAddColumnsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 c01f8c30..b387bd23 100644 --- a/java/lance-namespace-apache-client/docs/AlterTableAlterColumnsRequest.md +++ b/java/lance-namespace-apache-client/docs/AlterTableAlterColumnsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 14a3c80a..b85f73b2 100644 --- a/java/lance-namespace-apache-client/docs/AlterTableDropColumnsRequest.md +++ b/java/lance-namespace-apache-client/docs/AlterTableDropColumnsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 ef50c025..f5a70fd2 100644 --- a/java/lance-namespace-apache-client/docs/AlterTransactionRequest.md +++ b/java/lance-namespace-apache-client/docs/AlterTransactionRequest.md @@ -8,6 +8,7 @@ Alter a transaction with a list of actions. The server should either succeed and | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 7a2b1470..169c50ac 100644 --- a/java/lance-namespace-apache-client/docs/AnalyzeTableQueryPlanRequest.md +++ b/java/lance-namespace-apache-client/docs/AnalyzeTableQueryPlanRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 ce78c344..76f0642e 100644 --- a/java/lance-namespace-apache-client/docs/CountTableRowsRequest.md +++ b/java/lance-namespace-apache-client/docs/CountTableRowsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 dd83b63c..12a851e7 100644 --- a/java/lance-namespace-apache-client/docs/CreateEmptyTableRequest.md +++ b/java/lance-namespace-apache-client/docs/CreateEmptyTableRequest.md @@ -8,6 +8,7 @@ Request for creating an empty table. **Deprecated**: Use `DeclareTableRequest` | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 8f3d1c36..4f2e0292 100644 --- a/java/lance-namespace-apache-client/docs/CreateNamespaceRequest.md +++ b/java/lance-namespace-apache-client/docs/CreateNamespaceRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 9bd084f1..6932b83b 100644 --- a/java/lance-namespace-apache-client/docs/CreateTableIndexRequest.md +++ b/java/lance-namespace-apache-client/docs/CreateTableIndexRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 9d35c375..0ee9ec96 100644 --- a/java/lance-namespace-apache-client/docs/CreateTableRequest.md +++ b/java/lance-namespace-apache-client/docs/CreateTableRequest.md @@ -8,6 +8,7 @@ Request for creating a table, excluding the Arrow IPC stream. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 87fec0e8..7943a746 100644 --- a/java/lance-namespace-apache-client/docs/CreateTableTagRequest.md +++ b/java/lance-namespace-apache-client/docs/CreateTableTagRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 d201f369..46c916d7 100644 --- a/java/lance-namespace-apache-client/docs/DeclareTableRequest.md +++ b/java/lance-namespace-apache-client/docs/DeclareTableRequest.md @@ -8,6 +8,7 @@ Request for declaring a table. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 a3201490..966d0bb3 100644 --- a/java/lance-namespace-apache-client/docs/DeleteFromTableRequest.md +++ b/java/lance-namespace-apache-client/docs/DeleteFromTableRequest.md @@ -8,6 +8,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] | |**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 89512d83..99701201 100644 --- a/java/lance-namespace-apache-client/docs/DeleteTableTagRequest.md +++ b/java/lance-namespace-apache-client/docs/DeleteTableTagRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 61a2275f..7bf8637a 100644 --- a/java/lance-namespace-apache-client/docs/DeregisterTableRequest.md +++ b/java/lance-namespace-apache-client/docs/DeregisterTableRequest.md @@ -8,6 +8,7 @@ The table content remains available in the storage. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 7e3672f2..b36086c2 100644 --- a/java/lance-namespace-apache-client/docs/DescribeNamespaceRequest.md +++ b/java/lance-namespace-apache-client/docs/DescribeNamespaceRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 4a8af816..996eaa86 100644 --- a/java/lance-namespace-apache-client/docs/DescribeTableIndexStatsRequest.md +++ b/java/lance-namespace-apache-client/docs/DescribeTableIndexStatsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 d5512f2d..12f278be 100644 --- a/java/lance-namespace-apache-client/docs/DescribeTableRequest.md +++ b/java/lance-namespace-apache-client/docs/DescribeTableRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 76e85ed0..e6c08e7d 100644 --- a/java/lance-namespace-apache-client/docs/DescribeTransactionRequest.md +++ b/java/lance-namespace-apache-client/docs/DescribeTransactionRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 072ed709..16d23ccb 100644 --- a/java/lance-namespace-apache-client/docs/DropNamespaceRequest.md +++ b/java/lance-namespace-apache-client/docs/DropNamespaceRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 bb0ea947..77bf0b47 100644 --- a/java/lance-namespace-apache-client/docs/DropTableIndexRequest.md +++ b/java/lance-namespace-apache-client/docs/DropTableIndexRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 2308e884..507b5a77 100644 --- a/java/lance-namespace-apache-client/docs/DropTableRequest.md +++ b/java/lance-namespace-apache-client/docs/DropTableRequest.md @@ -8,6 +8,7 @@ If the table and its data can be immediately deleted, return information of the | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 97cac3c8..1b1cf649 100644 --- a/java/lance-namespace-apache-client/docs/ExplainTableQueryPlanRequest.md +++ b/java/lance-namespace-apache-client/docs/ExplainTableQueryPlanRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 f27fc47a..4215ed04 100644 --- a/java/lance-namespace-apache-client/docs/GetTableStatsRequest.md +++ b/java/lance-namespace-apache-client/docs/GetTableStatsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 e0538610..33445977 100644 --- a/java/lance-namespace-apache-client/docs/GetTableTagVersionRequest.md +++ b/java/lance-namespace-apache-client/docs/GetTableTagVersionRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [optional] | |**id** | **List<String>** | | [optional] | |**tag** | **String** | Name of the tag to get version for | | diff --git a/java/lance-namespace-apache-client/docs/Identity.md b/java/lance-namespace-apache-client/docs/Identity.md new file mode 100644 index 00000000..a543e827 --- /dev/null +++ b/java/lance-namespace-apache-client/docs/Identity.md @@ -0,0 +1,15 @@ + + +# Identity + +Identity information of a request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiKey** | **String** | API key for authentication. REST NAMESPACE ONLY This is passed via the `x-api-key` header. | [optional] | +|**authToken** | **String** | Bearer token for authentication. REST NAMESPACE ONLY This is passed via the `Authorization` header with the Bearer scheme (e.g., `Bearer <token>`). | [optional] | + + + diff --git a/java/lance-namespace-apache-client/docs/InsertIntoTableRequest.md b/java/lance-namespace-apache-client/docs/InsertIntoTableRequest.md index 4c37cdf2..7f098c03 100644 --- a/java/lance-namespace-apache-client/docs/InsertIntoTableRequest.md +++ b/java/lance-namespace-apache-client/docs/InsertIntoTableRequest.md @@ -8,6 +8,7 @@ Request for inserting records into a table, excluding the Arrow IPC stream. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 1d5f7394..d584efd6 100644 --- a/java/lance-namespace-apache-client/docs/ListNamespacesRequest.md +++ b/java/lance-namespace-apache-client/docs/ListNamespacesRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 213926b2..b37b7018 100644 --- a/java/lance-namespace-apache-client/docs/ListTableIndicesRequest.md +++ b/java/lance-namespace-apache-client/docs/ListTableIndicesRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 c732c9a5..6e021061 100644 --- a/java/lance-namespace-apache-client/docs/ListTableTagsRequest.md +++ b/java/lance-namespace-apache-client/docs/ListTableTagsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 54b27321..aed55926 100644 --- a/java/lance-namespace-apache-client/docs/ListTableVersionsRequest.md +++ b/java/lance-namespace-apache-client/docs/ListTableVersionsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 5f9d0766..b765f0e7 100644 --- a/java/lance-namespace-apache-client/docs/ListTablesRequest.md +++ b/java/lance-namespace-apache-client/docs/ListTablesRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 c4bf6fbb..9a75f9df 100644 --- a/java/lance-namespace-apache-client/docs/MergeInsertIntoTableRequest.md +++ b/java/lance-namespace-apache-client/docs/MergeInsertIntoTableRequest.md @@ -8,6 +8,7 @@ Request for merging or inserting records into a table, excluding the Arrow IPC s | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 b44f6177..a63b32b1 100644 --- a/java/lance-namespace-apache-client/docs/NamespaceExistsRequest.md +++ b/java/lance-namespace-apache-client/docs/NamespaceExistsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 75f0377b..9628ec35 100644 --- a/java/lance-namespace-apache-client/docs/QueryTableRequest.md +++ b/java/lance-namespace-apache-client/docs/QueryTableRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 f83899eb..67614cf2 100644 --- a/java/lance-namespace-apache-client/docs/RegisterTableRequest.md +++ b/java/lance-namespace-apache-client/docs/RegisterTableRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 4b47cd4a..fb951c6f 100644 --- a/java/lance-namespace-apache-client/docs/RenameTableRequest.md +++ b/java/lance-namespace-apache-client/docs/RenameTableRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 edf68c37..59cd4ef3 100644 --- a/java/lance-namespace-apache-client/docs/RestoreTableRequest.md +++ b/java/lance-namespace-apache-client/docs/RestoreTableRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 26ca2481..929758c9 100644 --- a/java/lance-namespace-apache-client/docs/TableExistsRequest.md +++ b/java/lance-namespace-apache-client/docs/TableExistsRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 eac7285a..29ba3cfe 100644 --- a/java/lance-namespace-apache-client/docs/UpdateTableRequest.md +++ b/java/lance-namespace-apache-client/docs/UpdateTableRequest.md @@ -8,6 +8,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] | |**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 948e97db..69470ea3 100644 --- a/java/lance-namespace-apache-client/docs/UpdateTableSchemaMetadataRequest.md +++ b/java/lance-namespace-apache-client/docs/UpdateTableSchemaMetadataRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 51aae245..9ee43332 100644 --- a/java/lance-namespace-apache-client/docs/UpdateTableTagRequest.md +++ b/java/lance-namespace-apache-client/docs/UpdateTableTagRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**identity** | [**Identity**](Identity.md) | | [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 5250344b..c06ef13f 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 @@ -26,6 +26,7 @@ /** AlterTableAddColumnsRequest */ @JsonPropertyOrder({ + AlterTableAddColumnsRequest.JSON_PROPERTY_IDENTITY, AlterTableAddColumnsRequest.JSON_PROPERTY_ID, AlterTableAddColumnsRequest.JSON_PROPERTY_NEW_COLUMNS }) @@ -33,6 +34,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class AlterTableAddColumnsRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -41,6 +45,30 @@ public class AlterTableAddColumnsRequest { public AlterTableAddColumnsRequest() {} + public AlterTableAddColumnsRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public AlterTableAddColumnsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -115,19 +143,21 @@ public boolean equals(Object o) { return false; } AlterTableAddColumnsRequest alterTableAddColumnsRequest = (AlterTableAddColumnsRequest) o; - return Objects.equals(this.id, alterTableAddColumnsRequest.id) + return Objects.equals(this.identity, alterTableAddColumnsRequest.identity) + && Objects.equals(this.id, alterTableAddColumnsRequest.id) && Objects.equals(this.newColumns, alterTableAddColumnsRequest.newColumns); } @Override public int hashCode() { - return Objects.hash(id, newColumns); + return Objects.hash(identity, id, newColumns); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTableAddColumnsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" newColumns: ").append(toIndentedString(newColumns)).append("\n"); sb.append("}"); @@ -176,6 +206,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 7f3831da..50f4331e 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 @@ -26,6 +26,7 @@ /** AlterTableAlterColumnsRequest */ @JsonPropertyOrder({ + AlterTableAlterColumnsRequest.JSON_PROPERTY_IDENTITY, AlterTableAlterColumnsRequest.JSON_PROPERTY_ID, AlterTableAlterColumnsRequest.JSON_PROPERTY_ALTERATIONS }) @@ -33,6 +34,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class AlterTableAlterColumnsRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -41,6 +45,30 @@ public class AlterTableAlterColumnsRequest { public AlterTableAlterColumnsRequest() {} + public AlterTableAlterColumnsRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public AlterTableAlterColumnsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -115,19 +143,21 @@ public boolean equals(Object o) { return false; } AlterTableAlterColumnsRequest alterTableAlterColumnsRequest = (AlterTableAlterColumnsRequest) o; - return Objects.equals(this.id, alterTableAlterColumnsRequest.id) + return Objects.equals(this.identity, alterTableAlterColumnsRequest.identity) + && Objects.equals(this.id, alterTableAlterColumnsRequest.id) && Objects.equals(this.alterations, alterTableAlterColumnsRequest.alterations); } @Override public int hashCode() { - return Objects.hash(id, alterations); + return Objects.hash(identity, id, alterations); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTableAlterColumnsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" alterations: ").append(toIndentedString(alterations)).append("\n"); sb.append("}"); @@ -176,6 +206,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 efe90ab4..22e2b4cf 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 @@ -26,6 +26,7 @@ /** AlterTableDropColumnsRequest */ @JsonPropertyOrder({ + AlterTableDropColumnsRequest.JSON_PROPERTY_IDENTITY, AlterTableDropColumnsRequest.JSON_PROPERTY_ID, AlterTableDropColumnsRequest.JSON_PROPERTY_COLUMNS }) @@ -33,6 +34,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class AlterTableDropColumnsRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -41,6 +45,30 @@ public class AlterTableDropColumnsRequest { public AlterTableDropColumnsRequest() {} + public AlterTableDropColumnsRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public AlterTableDropColumnsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -114,19 +142,21 @@ public boolean equals(Object o) { return false; } AlterTableDropColumnsRequest alterTableDropColumnsRequest = (AlterTableDropColumnsRequest) o; - return Objects.equals(this.id, alterTableDropColumnsRequest.id) + return Objects.equals(this.identity, alterTableDropColumnsRequest.identity) + && Objects.equals(this.id, alterTableDropColumnsRequest.id) && Objects.equals(this.columns, alterTableDropColumnsRequest.columns); } @Override public int hashCode() { - return Objects.hash(id, columns); + return Objects.hash(identity, id, columns); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTableDropColumnsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); sb.append("}"); @@ -175,6 +205,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 7eaebe3e..1ad43c1e 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 @@ -29,6 +29,7 @@ * actions, or fail and apply no action. */ @JsonPropertyOrder({ + AlterTransactionRequest.JSON_PROPERTY_IDENTITY, AlterTransactionRequest.JSON_PROPERTY_ID, AlterTransactionRequest.JSON_PROPERTY_ACTIONS }) @@ -36,6 +37,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class AlterTransactionRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -44,6 +48,30 @@ public class AlterTransactionRequest { public AlterTransactionRequest() {} + public AlterTransactionRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public AlterTransactionRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -118,19 +146,21 @@ public boolean equals(Object o) { return false; } AlterTransactionRequest alterTransactionRequest = (AlterTransactionRequest) o; - return Objects.equals(this.id, alterTransactionRequest.id) + return Objects.equals(this.identity, alterTransactionRequest.identity) + && Objects.equals(this.id, alterTransactionRequest.id) && Objects.equals(this.actions, alterTransactionRequest.actions); } @Override public int hashCode() { - return Objects.hash(id, actions); + return Objects.hash(identity, id, actions); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTransactionRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append("}"); @@ -179,6 +209,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 47deeaa9..c1730fb0 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 @@ -26,6 +26,7 @@ /** AnalyzeTableQueryPlanRequest */ @JsonPropertyOrder({ + AnalyzeTableQueryPlanRequest.JSON_PROPERTY_IDENTITY, AnalyzeTableQueryPlanRequest.JSON_PROPERTY_ID, AnalyzeTableQueryPlanRequest.JSON_PROPERTY_BYPASS_VECTOR_INDEX, AnalyzeTableQueryPlanRequest.JSON_PROPERTY_COLUMNS, @@ -50,6 +51,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class AnalyzeTableQueryPlanRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -109,6 +113,30 @@ public class AnalyzeTableQueryPlanRequest { public AnalyzeTableQueryPlanRequest() {} + public AnalyzeTableQueryPlanRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public AnalyzeTableQueryPlanRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -588,7 +616,8 @@ public boolean equals(Object o) { return false; } AnalyzeTableQueryPlanRequest analyzeTableQueryPlanRequest = (AnalyzeTableQueryPlanRequest) o; - return Objects.equals(this.id, analyzeTableQueryPlanRequest.id) + return Objects.equals(this.identity, analyzeTableQueryPlanRequest.identity) + && Objects.equals(this.id, analyzeTableQueryPlanRequest.id) && Objects.equals(this.bypassVectorIndex, analyzeTableQueryPlanRequest.bypassVectorIndex) && Objects.equals(this.columns, analyzeTableQueryPlanRequest.columns) && Objects.equals(this.distanceType, analyzeTableQueryPlanRequest.distanceType) @@ -612,6 +641,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + identity, id, bypassVectorIndex, columns, @@ -637,6 +667,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AnalyzeTableQueryPlanRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -702,6 +733,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 b567595f..fa69c65f 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 @@ -26,6 +26,7 @@ /** CountTableRowsRequest */ @JsonPropertyOrder({ + CountTableRowsRequest.JSON_PROPERTY_IDENTITY, CountTableRowsRequest.JSON_PROPERTY_ID, CountTableRowsRequest.JSON_PROPERTY_VERSION, CountTableRowsRequest.JSON_PROPERTY_PREDICATE @@ -34,6 +35,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class CountTableRowsRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -45,6 +49,30 @@ public class CountTableRowsRequest { public CountTableRowsRequest() {} + public CountTableRowsRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public CountTableRowsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -135,20 +163,22 @@ public boolean equals(Object o) { return false; } CountTableRowsRequest countTableRowsRequest = (CountTableRowsRequest) o; - return Objects.equals(this.id, countTableRowsRequest.id) + return Objects.equals(this.identity, countTableRowsRequest.identity) + && Objects.equals(this.id, countTableRowsRequest.id) && Objects.equals(this.version, countTableRowsRequest.version) && Objects.equals(this.predicate, countTableRowsRequest.predicate); } @Override public int hashCode() { - return Objects.hash(id, version, predicate); + return Objects.hash(identity, id, version, predicate); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CountTableRowsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -198,6 +228,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 b53c1a21..4315e426 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 @@ -31,6 +31,7 @@ */ @Deprecated @JsonPropertyOrder({ + CreateEmptyTableRequest.JSON_PROPERTY_IDENTITY, CreateEmptyTableRequest.JSON_PROPERTY_ID, CreateEmptyTableRequest.JSON_PROPERTY_LOCATION }) @@ -38,6 +39,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class CreateEmptyTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -46,6 +50,30 @@ public class CreateEmptyTableRequest { public CreateEmptyTableRequest() {} + public CreateEmptyTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public CreateEmptyTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -112,19 +140,21 @@ public boolean equals(Object o) { return false; } CreateEmptyTableRequest createEmptyTableRequest = (CreateEmptyTableRequest) o; - return Objects.equals(this.id, createEmptyTableRequest.id) + return Objects.equals(this.identity, createEmptyTableRequest.identity) + && Objects.equals(this.id, createEmptyTableRequest.id) && Objects.equals(this.location, createEmptyTableRequest.location); } @Override public int hashCode() { - return Objects.hash(id, location); + return Objects.hash(identity, id, location); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateEmptyTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" location: ").append(toIndentedString(location)).append("\n"); sb.append("}"); @@ -173,6 +203,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 de248048..a825ee03 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 @@ -28,6 +28,7 @@ /** CreateNamespaceRequest */ @JsonPropertyOrder({ + CreateNamespaceRequest.JSON_PROPERTY_IDENTITY, CreateNamespaceRequest.JSON_PROPERTY_ID, CreateNamespaceRequest.JSON_PROPERTY_MODE, CreateNamespaceRequest.JSON_PROPERTY_PROPERTIES @@ -36,6 +37,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class CreateNamespaceRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -47,6 +51,30 @@ public class CreateNamespaceRequest { public CreateNamespaceRequest() {} + public CreateNamespaceRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public CreateNamespaceRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -149,20 +177,22 @@ public boolean equals(Object o) { return false; } CreateNamespaceRequest createNamespaceRequest = (CreateNamespaceRequest) o; - return Objects.equals(this.id, createNamespaceRequest.id) + return Objects.equals(this.identity, createNamespaceRequest.identity) + && Objects.equals(this.id, createNamespaceRequest.id) && Objects.equals(this.mode, createNamespaceRequest.mode) && Objects.equals(this.properties, createNamespaceRequest.properties); } @Override public int hashCode() { - return Objects.hash(id, mode, properties); + return Objects.hash(identity, id, mode, properties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateNamespaceRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -212,6 +242,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 62aebabe..5f5abd9a 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 @@ -26,6 +26,7 @@ /** CreateTableIndexRequest */ @JsonPropertyOrder({ + CreateTableIndexRequest.JSON_PROPERTY_IDENTITY, CreateTableIndexRequest.JSON_PROPERTY_ID, CreateTableIndexRequest.JSON_PROPERTY_COLUMN, CreateTableIndexRequest.JSON_PROPERTY_INDEX_TYPE, @@ -44,6 +45,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class CreateTableIndexRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -85,6 +89,30 @@ public class CreateTableIndexRequest { public CreateTableIndexRequest() {} + public CreateTableIndexRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public CreateTableIndexRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -415,7 +443,8 @@ public boolean equals(Object o) { return false; } CreateTableIndexRequest createTableIndexRequest = (CreateTableIndexRequest) o; - return Objects.equals(this.id, createTableIndexRequest.id) + return Objects.equals(this.identity, createTableIndexRequest.identity) + && Objects.equals(this.id, createTableIndexRequest.id) && Objects.equals(this.column, createTableIndexRequest.column) && Objects.equals(this.indexType, createTableIndexRequest.indexType) && Objects.equals(this.name, createTableIndexRequest.name) @@ -433,6 +462,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + identity, id, column, indexType, @@ -452,6 +482,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTableIndexRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -511,6 +542,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 ca1f0e50..bb525cbb 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 @@ -25,11 +25,18 @@ import java.util.StringJoiner; /** Request for creating a table, excluding the Arrow IPC stream. */ -@JsonPropertyOrder({CreateTableRequest.JSON_PROPERTY_ID, CreateTableRequest.JSON_PROPERTY_MODE}) +@JsonPropertyOrder({ + CreateTableRequest.JSON_PROPERTY_IDENTITY, + CreateTableRequest.JSON_PROPERTY_ID, + CreateTableRequest.JSON_PROPERTY_MODE +}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class CreateTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -38,6 +45,30 @@ public class CreateTableRequest { public CreateTableRequest() {} + public CreateTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public CreateTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -107,19 +138,21 @@ public boolean equals(Object o) { return false; } CreateTableRequest createTableRequest = (CreateTableRequest) o; - return Objects.equals(this.id, createTableRequest.id) + return Objects.equals(this.identity, createTableRequest.identity) + && Objects.equals(this.id, createTableRequest.id) && Objects.equals(this.mode, createTableRequest.mode); } @Override public int hashCode() { - return Objects.hash(id, mode); + return Objects.hash(identity, id, mode); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append("}"); @@ -168,6 +201,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 09903dee..27d8d193 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 @@ -26,6 +26,7 @@ /** CreateTableTagRequest */ @JsonPropertyOrder({ + CreateTableTagRequest.JSON_PROPERTY_IDENTITY, CreateTableTagRequest.JSON_PROPERTY_ID, CreateTableTagRequest.JSON_PROPERTY_TAG, CreateTableTagRequest.JSON_PROPERTY_VERSION @@ -34,6 +35,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class CreateTableTagRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -45,6 +49,30 @@ public class CreateTableTagRequest { public CreateTableTagRequest() {} + public CreateTableTagRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public CreateTableTagRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -134,20 +162,22 @@ public boolean equals(Object o) { return false; } CreateTableTagRequest createTableTagRequest = (CreateTableTagRequest) o; - return Objects.equals(this.id, createTableTagRequest.id) + return Objects.equals(this.identity, createTableTagRequest.identity) + && Objects.equals(this.id, createTableTagRequest.id) && Objects.equals(this.tag, createTableTagRequest.tag) && Objects.equals(this.version, createTableTagRequest.version); } @Override public int hashCode() { - return Objects.hash(id, tag, version); + return Objects.hash(identity, id, tag, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTableTagRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -197,6 +227,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 af148d9b..4083fda8 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 @@ -26,6 +26,7 @@ /** Request for declaring a table. */ @JsonPropertyOrder({ + DeclareTableRequest.JSON_PROPERTY_IDENTITY, DeclareTableRequest.JSON_PROPERTY_ID, DeclareTableRequest.JSON_PROPERTY_LOCATION }) @@ -33,6 +34,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class DeclareTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -41,6 +45,30 @@ public class DeclareTableRequest { public DeclareTableRequest() {} + public DeclareTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public DeclareTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -107,19 +135,21 @@ public boolean equals(Object o) { return false; } DeclareTableRequest declareTableRequest = (DeclareTableRequest) o; - return Objects.equals(this.id, declareTableRequest.id) + return Objects.equals(this.identity, declareTableRequest.identity) + && Objects.equals(this.id, declareTableRequest.id) && Objects.equals(this.location, declareTableRequest.location); } @Override public int hashCode() { - return Objects.hash(id, location); + return Objects.hash(identity, id, location); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeclareTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" location: ").append(toIndentedString(location)).append("\n"); sb.append("}"); @@ -168,6 +198,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 804c159a..5e7dcfea 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 @@ -28,6 +28,7 @@ * Delete data from table based on a SQL predicate. Returns the number of rows that were deleted. */ @JsonPropertyOrder({ + DeleteFromTableRequest.JSON_PROPERTY_IDENTITY, DeleteFromTableRequest.JSON_PROPERTY_ID, DeleteFromTableRequest.JSON_PROPERTY_PREDICATE }) @@ -35,6 +36,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class DeleteFromTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -43,6 +47,30 @@ public class DeleteFromTableRequest { public DeleteFromTableRequest() {} + public DeleteFromTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public DeleteFromTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -108,19 +136,21 @@ public boolean equals(Object o) { return false; } DeleteFromTableRequest deleteFromTableRequest = (DeleteFromTableRequest) o; - return Objects.equals(this.id, deleteFromTableRequest.id) + return Objects.equals(this.identity, deleteFromTableRequest.identity) + && Objects.equals(this.id, deleteFromTableRequest.id) && Objects.equals(this.predicate, deleteFromTableRequest.predicate); } @Override public int hashCode() { - return Objects.hash(id, predicate); + return Objects.hash(identity, id, predicate); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteFromTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" predicate: ").append(toIndentedString(predicate)).append("\n"); sb.append("}"); @@ -169,6 +199,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 3c37156e..25eae536 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 @@ -26,6 +26,7 @@ /** DeleteTableTagRequest */ @JsonPropertyOrder({ + DeleteTableTagRequest.JSON_PROPERTY_IDENTITY, DeleteTableTagRequest.JSON_PROPERTY_ID, DeleteTableTagRequest.JSON_PROPERTY_TAG }) @@ -33,6 +34,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class DeleteTableTagRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -41,6 +45,30 @@ public class DeleteTableTagRequest { public DeleteTableTagRequest() {} + public DeleteTableTagRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public DeleteTableTagRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -106,19 +134,21 @@ public boolean equals(Object o) { return false; } DeleteTableTagRequest deleteTableTagRequest = (DeleteTableTagRequest) o; - return Objects.equals(this.id, deleteTableTagRequest.id) + return Objects.equals(this.identity, deleteTableTagRequest.identity) + && Objects.equals(this.id, deleteTableTagRequest.id) && Objects.equals(this.tag, deleteTableTagRequest.tag); } @Override public int hashCode() { - return Objects.hash(id, tag); + return Objects.hash(identity, id, tag); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteTableTagRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append("}"); @@ -167,6 +197,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 fc3f2dc7..db5904e4 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 @@ -25,16 +25,46 @@ import java.util.StringJoiner; /** The table content remains available in the storage. */ -@JsonPropertyOrder({DeregisterTableRequest.JSON_PROPERTY_ID}) +@JsonPropertyOrder({ + DeregisterTableRequest.JSON_PROPERTY_IDENTITY, + DeregisterTableRequest.JSON_PROPERTY_ID +}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class DeregisterTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); public DeregisterTableRequest() {} + public DeregisterTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public DeregisterTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -76,18 +106,20 @@ public boolean equals(Object o) { return false; } DeregisterTableRequest deregisterTableRequest = (DeregisterTableRequest) o; - return Objects.equals(this.id, deregisterTableRequest.id); + return Objects.equals(this.identity, deregisterTableRequest.identity) + && Objects.equals(this.id, deregisterTableRequest.id); } @Override public int hashCode() { - return Objects.hash(id); + return Objects.hash(identity, id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeregisterTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); @@ -135,6 +167,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 e2ae6f13..9f2d6ec7 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 @@ -25,16 +25,46 @@ import java.util.StringJoiner; /** DescribeNamespaceRequest */ -@JsonPropertyOrder({DescribeNamespaceRequest.JSON_PROPERTY_ID}) +@JsonPropertyOrder({ + DescribeNamespaceRequest.JSON_PROPERTY_IDENTITY, + DescribeNamespaceRequest.JSON_PROPERTY_ID +}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class DescribeNamespaceRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); public DescribeNamespaceRequest() {} + public DescribeNamespaceRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public DescribeNamespaceRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -76,18 +106,20 @@ public boolean equals(Object o) { return false; } DescribeNamespaceRequest describeNamespaceRequest = (DescribeNamespaceRequest) o; - return Objects.equals(this.id, describeNamespaceRequest.id); + return Objects.equals(this.identity, describeNamespaceRequest.identity) + && Objects.equals(this.id, describeNamespaceRequest.id); } @Override public int hashCode() { - return Objects.hash(id); + return Objects.hash(identity, id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeNamespaceRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); @@ -135,6 +167,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 6d56c14f..2b824bb7 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 @@ -26,6 +26,7 @@ /** DescribeTableIndexStatsRequest */ @JsonPropertyOrder({ + DescribeTableIndexStatsRequest.JSON_PROPERTY_IDENTITY, DescribeTableIndexStatsRequest.JSON_PROPERTY_ID, DescribeTableIndexStatsRequest.JSON_PROPERTY_VERSION, DescribeTableIndexStatsRequest.JSON_PROPERTY_INDEX_NAME @@ -34,6 +35,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class DescribeTableIndexStatsRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -45,6 +49,30 @@ public class DescribeTableIndexStatsRequest { public DescribeTableIndexStatsRequest() {} + public DescribeTableIndexStatsRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public DescribeTableIndexStatsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -135,20 +163,22 @@ public boolean equals(Object o) { } DescribeTableIndexStatsRequest describeTableIndexStatsRequest = (DescribeTableIndexStatsRequest) o; - return Objects.equals(this.id, describeTableIndexStatsRequest.id) + return Objects.equals(this.identity, describeTableIndexStatsRequest.identity) + && Objects.equals(this.id, describeTableIndexStatsRequest.id) && Objects.equals(this.version, describeTableIndexStatsRequest.version) && Objects.equals(this.indexName, describeTableIndexStatsRequest.indexName); } @Override public int hashCode() { - return Objects.hash(id, version, indexName); + return Objects.hash(identity, id, version, indexName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeTableIndexStatsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -198,6 +228,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 82c2bd14..547ff249 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 @@ -26,6 +26,7 @@ /** DescribeTableRequest */ @JsonPropertyOrder({ + DescribeTableRequest.JSON_PROPERTY_IDENTITY, DescribeTableRequest.JSON_PROPERTY_ID, DescribeTableRequest.JSON_PROPERTY_VERSION, DescribeTableRequest.JSON_PROPERTY_WITH_TABLE_URI, @@ -36,6 +37,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class DescribeTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -53,6 +57,30 @@ public class DescribeTableRequest { public DescribeTableRequest() {} + public DescribeTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public DescribeTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -197,7 +225,8 @@ public boolean equals(Object o) { return false; } DescribeTableRequest describeTableRequest = (DescribeTableRequest) o; - return Objects.equals(this.id, describeTableRequest.id) + return Objects.equals(this.identity, describeTableRequest.identity) + && Objects.equals(this.id, describeTableRequest.id) && Objects.equals(this.version, describeTableRequest.version) && Objects.equals(this.withTableUri, describeTableRequest.withTableUri) && Objects.equals(this.loadDetailedMetadata, describeTableRequest.loadDetailedMetadata) @@ -206,13 +235,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, version, withTableUri, loadDetailedMetadata, vendCredentials); + return Objects.hash(identity, id, version, withTableUri, loadDetailedMetadata, vendCredentials); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -266,6 +296,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 47e4eac6..0749677e 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 @@ -25,16 +25,46 @@ import java.util.StringJoiner; /** DescribeTransactionRequest */ -@JsonPropertyOrder({DescribeTransactionRequest.JSON_PROPERTY_ID}) +@JsonPropertyOrder({ + DescribeTransactionRequest.JSON_PROPERTY_IDENTITY, + DescribeTransactionRequest.JSON_PROPERTY_ID +}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class DescribeTransactionRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); public DescribeTransactionRequest() {} + public DescribeTransactionRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public DescribeTransactionRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -76,18 +106,20 @@ public boolean equals(Object o) { return false; } DescribeTransactionRequest describeTransactionRequest = (DescribeTransactionRequest) o; - return Objects.equals(this.id, describeTransactionRequest.id); + return Objects.equals(this.identity, describeTransactionRequest.identity) + && Objects.equals(this.id, describeTransactionRequest.id); } @Override public int hashCode() { - return Objects.hash(id); + return Objects.hash(identity, id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeTransactionRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); @@ -135,6 +167,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 98c45b58..2684d500 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 @@ -26,6 +26,7 @@ /** DropNamespaceRequest */ @JsonPropertyOrder({ + DropNamespaceRequest.JSON_PROPERTY_IDENTITY, DropNamespaceRequest.JSON_PROPERTY_ID, DropNamespaceRequest.JSON_PROPERTY_MODE, DropNamespaceRequest.JSON_PROPERTY_BEHAVIOR @@ -34,6 +35,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class DropNamespaceRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -45,6 +49,30 @@ public class DropNamespaceRequest { public DropNamespaceRequest() {} + public DropNamespaceRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public DropNamespaceRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -141,20 +169,22 @@ public boolean equals(Object o) { return false; } DropNamespaceRequest dropNamespaceRequest = (DropNamespaceRequest) o; - return Objects.equals(this.id, dropNamespaceRequest.id) + return Objects.equals(this.identity, dropNamespaceRequest.identity) + && Objects.equals(this.id, dropNamespaceRequest.id) && Objects.equals(this.mode, dropNamespaceRequest.mode) && Objects.equals(this.behavior, dropNamespaceRequest.behavior); } @Override public int hashCode() { - return Objects.hash(id, mode, behavior); + return Objects.hash(identity, id, mode, behavior); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DropNamespaceRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -204,6 +234,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 84b88ac0..55cb8f33 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 @@ -26,6 +26,7 @@ /** DropTableIndexRequest */ @JsonPropertyOrder({ + DropTableIndexRequest.JSON_PROPERTY_IDENTITY, DropTableIndexRequest.JSON_PROPERTY_ID, DropTableIndexRequest.JSON_PROPERTY_INDEX_NAME }) @@ -33,6 +34,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class DropTableIndexRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -41,6 +45,30 @@ public class DropTableIndexRequest { public DropTableIndexRequest() {} + public DropTableIndexRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public DropTableIndexRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -106,19 +134,21 @@ public boolean equals(Object o) { return false; } DropTableIndexRequest dropTableIndexRequest = (DropTableIndexRequest) o; - return Objects.equals(this.id, dropTableIndexRequest.id) + return Objects.equals(this.identity, dropTableIndexRequest.identity) + && Objects.equals(this.id, dropTableIndexRequest.id) && Objects.equals(this.indexName, dropTableIndexRequest.indexName); } @Override public int hashCode() { - return Objects.hash(id, indexName); + return Objects.hash(identity, id, indexName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DropTableIndexRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" indexName: ").append(toIndentedString(indexName)).append("\n"); sb.append("}"); @@ -167,6 +197,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 9e52077f..af5818d7 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 @@ -28,16 +28,43 @@ * 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_ID}) +@JsonPropertyOrder({DropTableRequest.JSON_PROPERTY_IDENTITY, DropTableRequest.JSON_PROPERTY_ID}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class DropTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); public DropTableRequest() {} + public DropTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public DropTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -79,18 +106,20 @@ public boolean equals(Object o) { return false; } DropTableRequest dropTableRequest = (DropTableRequest) o; - return Objects.equals(this.id, dropTableRequest.id); + return Objects.equals(this.identity, dropTableRequest.identity) + && Objects.equals(this.id, dropTableRequest.id); } @Override public int hashCode() { - return Objects.hash(id); + return Objects.hash(identity, id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DropTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); @@ -138,6 +167,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 515d84e5..1d7edc01 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 @@ -26,6 +26,7 @@ /** ExplainTableQueryPlanRequest */ @JsonPropertyOrder({ + ExplainTableQueryPlanRequest.JSON_PROPERTY_IDENTITY, ExplainTableQueryPlanRequest.JSON_PROPERTY_ID, ExplainTableQueryPlanRequest.JSON_PROPERTY_QUERY, ExplainTableQueryPlanRequest.JSON_PROPERTY_VERBOSE @@ -34,6 +35,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class ExplainTableQueryPlanRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -45,6 +49,30 @@ public class ExplainTableQueryPlanRequest { public ExplainTableQueryPlanRequest() {} + public ExplainTableQueryPlanRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public ExplainTableQueryPlanRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -134,20 +162,22 @@ public boolean equals(Object o) { return false; } ExplainTableQueryPlanRequest explainTableQueryPlanRequest = (ExplainTableQueryPlanRequest) o; - return Objects.equals(this.id, explainTableQueryPlanRequest.id) + return Objects.equals(this.identity, explainTableQueryPlanRequest.identity) + && Objects.equals(this.id, explainTableQueryPlanRequest.id) && Objects.equals(this.query, explainTableQueryPlanRequest.query) && Objects.equals(this.verbose, explainTableQueryPlanRequest.verbose); } @Override public int hashCode() { - return Objects.hash(id, query, verbose); + return Objects.hash(identity, id, query, verbose); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExplainTableQueryPlanRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -197,6 +227,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 6d5e9c68..748e4a7d 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 @@ -25,16 +25,46 @@ import java.util.StringJoiner; /** GetTableStatsRequest */ -@JsonPropertyOrder({GetTableStatsRequest.JSON_PROPERTY_ID}) +@JsonPropertyOrder({ + GetTableStatsRequest.JSON_PROPERTY_IDENTITY, + GetTableStatsRequest.JSON_PROPERTY_ID +}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class GetTableStatsRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); public GetTableStatsRequest() {} + public GetTableStatsRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public GetTableStatsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -76,18 +106,20 @@ public boolean equals(Object o) { return false; } GetTableStatsRequest getTableStatsRequest = (GetTableStatsRequest) o; - return Objects.equals(this.id, getTableStatsRequest.id); + return Objects.equals(this.identity, getTableStatsRequest.identity) + && Objects.equals(this.id, getTableStatsRequest.id); } @Override public int hashCode() { - return Objects.hash(id); + return Objects.hash(identity, id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTableStatsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); @@ -135,6 +167,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 7265425b..5f4c7367 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 @@ -26,6 +26,7 @@ /** GetTableTagVersionRequest */ @JsonPropertyOrder({ + GetTableTagVersionRequest.JSON_PROPERTY_IDENTITY, GetTableTagVersionRequest.JSON_PROPERTY_ID, GetTableTagVersionRequest.JSON_PROPERTY_TAG }) @@ -33,6 +34,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class GetTableTagVersionRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -41,6 +45,30 @@ public class GetTableTagVersionRequest { public GetTableTagVersionRequest() {} + public GetTableTagVersionRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public GetTableTagVersionRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -106,19 +134,21 @@ public boolean equals(Object o) { return false; } GetTableTagVersionRequest getTableTagVersionRequest = (GetTableTagVersionRequest) o; - return Objects.equals(this.id, getTableTagVersionRequest.id) + return Objects.equals(this.identity, getTableTagVersionRequest.identity) + && Objects.equals(this.id, getTableTagVersionRequest.id) && Objects.equals(this.tag, getTableTagVersionRequest.tag); } @Override public int hashCode() { - return Objects.hash(id, tag); + return Objects.hash(identity, id, tag); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTableTagVersionRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append("}"); @@ -167,6 +197,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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/Identity.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/Identity.java new file mode 100644 index 00000000..e9074971 --- /dev/null +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/Identity.java @@ -0,0 +1,193 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.Objects; +import java.util.StringJoiner; + +/** Identity information of a request. */ +@JsonPropertyOrder({Identity.JSON_PROPERTY_API_KEY, Identity.JSON_PROPERTY_AUTH_TOKEN}) +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.12.0") +public class Identity { + public static final String JSON_PROPERTY_API_KEY = "api_key"; + @javax.annotation.Nullable private String apiKey; + + public static final String JSON_PROPERTY_AUTH_TOKEN = "auth_token"; + @javax.annotation.Nullable private String authToken; + + public Identity() {} + + public Identity apiKey(@javax.annotation.Nullable String apiKey) { + + this.apiKey = apiKey; + return this; + } + + /** + * API key for authentication. REST NAMESPACE ONLY This is passed via the `x-api-key` + * header. + * + * @return apiKey + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_API_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getApiKey() { + return apiKey; + } + + @JsonProperty(JSON_PROPERTY_API_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setApiKey(@javax.annotation.Nullable String apiKey) { + this.apiKey = apiKey; + } + + public Identity authToken(@javax.annotation.Nullable String authToken) { + + this.authToken = authToken; + return this; + } + + /** + * Bearer token for authentication. REST NAMESPACE ONLY This is passed via the + * `Authorization` header with the Bearer scheme (e.g., `Bearer + * <token>`). + * + * @return authToken + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AUTH_TOKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAuthToken() { + return authToken; + } + + @JsonProperty(JSON_PROPERTY_AUTH_TOKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAuthToken(@javax.annotation.Nullable String authToken) { + this.authToken = authToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Identity identity = (Identity) o; + return Objects.equals(this.apiKey, identity.apiKey) + && Objects.equals(this.authToken, identity.authToken); + } + + @Override + public int hashCode() { + return Objects.hash(apiKey, authToken); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Identity {\n"); + sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n"); + sb.append(" authToken: ").append(toIndentedString(authToken)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `api_key` to the URL query string + if (getApiKey() != null) { + try { + joiner.add( + String.format( + "%sapi_key%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getApiKey()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `auth_token` to the URL query string + if (getAuthToken() != null) { + try { + joiner.add( + String.format( + "%sauth_token%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getAuthToken()), "UTF-8") + .replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } +} 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 5be1288d..071268fd 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 @@ -26,6 +26,7 @@ /** Request for inserting records into a table, excluding the Arrow IPC stream. */ @JsonPropertyOrder({ + InsertIntoTableRequest.JSON_PROPERTY_IDENTITY, InsertIntoTableRequest.JSON_PROPERTY_ID, InsertIntoTableRequest.JSON_PROPERTY_MODE }) @@ -33,6 +34,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class InsertIntoTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -41,6 +45,30 @@ public class InsertIntoTableRequest { public InsertIntoTableRequest() {} + public InsertIntoTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public InsertIntoTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -108,19 +136,21 @@ public boolean equals(Object o) { return false; } InsertIntoTableRequest insertIntoTableRequest = (InsertIntoTableRequest) o; - return Objects.equals(this.id, insertIntoTableRequest.id) + return Objects.equals(this.identity, insertIntoTableRequest.identity) + && Objects.equals(this.id, insertIntoTableRequest.id) && Objects.equals(this.mode, insertIntoTableRequest.mode); } @Override public int hashCode() { - return Objects.hash(id, mode); + return Objects.hash(identity, id, mode); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InsertIntoTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append("}"); @@ -169,6 +199,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 172f928d..7df0e765 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 @@ -26,6 +26,7 @@ /** ListNamespacesRequest */ @JsonPropertyOrder({ + ListNamespacesRequest.JSON_PROPERTY_IDENTITY, ListNamespacesRequest.JSON_PROPERTY_ID, ListNamespacesRequest.JSON_PROPERTY_PAGE_TOKEN, ListNamespacesRequest.JSON_PROPERTY_LIMIT @@ -34,6 +35,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class ListNamespacesRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -45,6 +49,30 @@ public class ListNamespacesRequest { public ListNamespacesRequest() {} + public ListNamespacesRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public ListNamespacesRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -141,20 +169,22 @@ public boolean equals(Object o) { return false; } ListNamespacesRequest listNamespacesRequest = (ListNamespacesRequest) o; - return Objects.equals(this.id, listNamespacesRequest.id) + return Objects.equals(this.identity, listNamespacesRequest.identity) + && Objects.equals(this.id, listNamespacesRequest.id) && Objects.equals(this.pageToken, listNamespacesRequest.pageToken) && Objects.equals(this.limit, listNamespacesRequest.limit); } @Override public int hashCode() { - return Objects.hash(id, pageToken, limit); + return Objects.hash(identity, id, pageToken, limit); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListNamespacesRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -204,6 +234,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 4e9d854c..2fbcd663 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 @@ -26,6 +26,7 @@ /** ListTableIndicesRequest */ @JsonPropertyOrder({ + ListTableIndicesRequest.JSON_PROPERTY_IDENTITY, ListTableIndicesRequest.JSON_PROPERTY_ID, ListTableIndicesRequest.JSON_PROPERTY_VERSION, ListTableIndicesRequest.JSON_PROPERTY_PAGE_TOKEN, @@ -35,6 +36,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class ListTableIndicesRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -49,6 +53,30 @@ public class ListTableIndicesRequest { public ListTableIndicesRequest() {} + public ListTableIndicesRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public ListTableIndicesRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -169,7 +197,8 @@ public boolean equals(Object o) { return false; } ListTableIndicesRequest listTableIndicesRequest = (ListTableIndicesRequest) o; - return Objects.equals(this.id, listTableIndicesRequest.id) + return Objects.equals(this.identity, listTableIndicesRequest.identity) + && Objects.equals(this.id, listTableIndicesRequest.id) && Objects.equals(this.version, listTableIndicesRequest.version) && Objects.equals(this.pageToken, listTableIndicesRequest.pageToken) && Objects.equals(this.limit, listTableIndicesRequest.limit); @@ -177,13 +206,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, version, pageToken, limit); + return Objects.hash(identity, id, version, pageToken, limit); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTableIndicesRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -234,6 +264,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 8cb7bc3a..86532a4c 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 @@ -26,6 +26,7 @@ /** ListTableTagsRequest */ @JsonPropertyOrder({ + ListTableTagsRequest.JSON_PROPERTY_IDENTITY, ListTableTagsRequest.JSON_PROPERTY_ID, ListTableTagsRequest.JSON_PROPERTY_PAGE_TOKEN, ListTableTagsRequest.JSON_PROPERTY_LIMIT @@ -34,6 +35,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class ListTableTagsRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -45,6 +49,30 @@ public class ListTableTagsRequest { public ListTableTagsRequest() {} + public ListTableTagsRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public ListTableTagsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -141,20 +169,22 @@ public boolean equals(Object o) { return false; } ListTableTagsRequest listTableTagsRequest = (ListTableTagsRequest) o; - return Objects.equals(this.id, listTableTagsRequest.id) + return Objects.equals(this.identity, listTableTagsRequest.identity) + && Objects.equals(this.id, listTableTagsRequest.id) && Objects.equals(this.pageToken, listTableTagsRequest.pageToken) && Objects.equals(this.limit, listTableTagsRequest.limit); } @Override public int hashCode() { - return Objects.hash(id, pageToken, limit); + return Objects.hash(identity, id, pageToken, limit); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTableTagsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -204,6 +234,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 7a48c896..e80eb360 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 @@ -26,6 +26,7 @@ /** ListTableVersionsRequest */ @JsonPropertyOrder({ + ListTableVersionsRequest.JSON_PROPERTY_IDENTITY, ListTableVersionsRequest.JSON_PROPERTY_ID, ListTableVersionsRequest.JSON_PROPERTY_PAGE_TOKEN, ListTableVersionsRequest.JSON_PROPERTY_LIMIT @@ -34,6 +35,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class ListTableVersionsRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -45,6 +49,30 @@ public class ListTableVersionsRequest { public ListTableVersionsRequest() {} + public ListTableVersionsRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public ListTableVersionsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -141,20 +169,22 @@ public boolean equals(Object o) { return false; } ListTableVersionsRequest listTableVersionsRequest = (ListTableVersionsRequest) o; - return Objects.equals(this.id, listTableVersionsRequest.id) + return Objects.equals(this.identity, listTableVersionsRequest.identity) + && Objects.equals(this.id, listTableVersionsRequest.id) && Objects.equals(this.pageToken, listTableVersionsRequest.pageToken) && Objects.equals(this.limit, listTableVersionsRequest.limit); } @Override public int hashCode() { - return Objects.hash(id, pageToken, limit); + return Objects.hash(identity, id, pageToken, limit); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTableVersionsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -204,6 +234,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 a61cdd83..f6e3d3ce 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 @@ -26,6 +26,7 @@ /** ListTablesRequest */ @JsonPropertyOrder({ + ListTablesRequest.JSON_PROPERTY_IDENTITY, ListTablesRequest.JSON_PROPERTY_ID, ListTablesRequest.JSON_PROPERTY_PAGE_TOKEN, ListTablesRequest.JSON_PROPERTY_LIMIT @@ -34,6 +35,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class ListTablesRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -45,6 +49,30 @@ public class ListTablesRequest { public ListTablesRequest() {} + public ListTablesRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public ListTablesRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -141,20 +169,22 @@ public boolean equals(Object o) { return false; } ListTablesRequest listTablesRequest = (ListTablesRequest) o; - return Objects.equals(this.id, listTablesRequest.id) + return Objects.equals(this.identity, listTablesRequest.identity) + && Objects.equals(this.id, listTablesRequest.id) && Objects.equals(this.pageToken, listTablesRequest.pageToken) && Objects.equals(this.limit, listTablesRequest.limit); } @Override public int hashCode() { - return Objects.hash(id, pageToken, limit); + return Objects.hash(identity, id, pageToken, limit); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTablesRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -204,6 +234,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 4a8d4ec3..370590a7 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 @@ -26,6 +26,7 @@ /** Request for merging or inserting records into a table, excluding the Arrow IPC stream. */ @JsonPropertyOrder({ + MergeInsertIntoTableRequest.JSON_PROPERTY_IDENTITY, MergeInsertIntoTableRequest.JSON_PROPERTY_ID, MergeInsertIntoTableRequest.JSON_PROPERTY_ON, MergeInsertIntoTableRequest.JSON_PROPERTY_WHEN_MATCHED_UPDATE_ALL, @@ -40,6 +41,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class MergeInsertIntoTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -73,6 +77,30 @@ public class MergeInsertIntoTableRequest { public MergeInsertIntoTableRequest() {} + public MergeInsertIntoTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public MergeInsertIntoTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -316,7 +344,8 @@ public boolean equals(Object o) { return false; } MergeInsertIntoTableRequest mergeInsertIntoTableRequest = (MergeInsertIntoTableRequest) o; - return Objects.equals(this.id, mergeInsertIntoTableRequest.id) + return Objects.equals(this.identity, mergeInsertIntoTableRequest.identity) + && Objects.equals(this.id, mergeInsertIntoTableRequest.id) && Objects.equals(this.on, mergeInsertIntoTableRequest.on) && Objects.equals( this.whenMatchedUpdateAll, mergeInsertIntoTableRequest.whenMatchedUpdateAll) @@ -337,6 +366,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + identity, id, on, whenMatchedUpdateAll, @@ -352,6 +382,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MergeInsertIntoTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" on: ").append(toIndentedString(on)).append("\n"); sb.append(" whenMatchedUpdateAll: ") @@ -417,6 +448,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 da88cd77..ecb80488 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 @@ -25,16 +25,46 @@ import java.util.StringJoiner; /** NamespaceExistsRequest */ -@JsonPropertyOrder({NamespaceExistsRequest.JSON_PROPERTY_ID}) +@JsonPropertyOrder({ + NamespaceExistsRequest.JSON_PROPERTY_IDENTITY, + NamespaceExistsRequest.JSON_PROPERTY_ID +}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class NamespaceExistsRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); public NamespaceExistsRequest() {} + public NamespaceExistsRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public NamespaceExistsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -76,18 +106,20 @@ public boolean equals(Object o) { return false; } NamespaceExistsRequest namespaceExistsRequest = (NamespaceExistsRequest) o; - return Objects.equals(this.id, namespaceExistsRequest.id); + return Objects.equals(this.identity, namespaceExistsRequest.identity) + && Objects.equals(this.id, namespaceExistsRequest.id); } @Override public int hashCode() { - return Objects.hash(id); + return Objects.hash(identity, id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NamespaceExistsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); @@ -135,6 +167,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 3cc19328..11169879 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 @@ -26,6 +26,7 @@ /** QueryTableRequest */ @JsonPropertyOrder({ + QueryTableRequest.JSON_PROPERTY_IDENTITY, QueryTableRequest.JSON_PROPERTY_ID, QueryTableRequest.JSON_PROPERTY_BYPASS_VECTOR_INDEX, QueryTableRequest.JSON_PROPERTY_COLUMNS, @@ -50,6 +51,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class QueryTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -109,6 +113,30 @@ public class QueryTableRequest { public QueryTableRequest() {} + public QueryTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public QueryTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -584,7 +612,8 @@ public boolean equals(Object o) { return false; } QueryTableRequest queryTableRequest = (QueryTableRequest) o; - return Objects.equals(this.id, queryTableRequest.id) + return Objects.equals(this.identity, queryTableRequest.identity) + && Objects.equals(this.id, queryTableRequest.id) && Objects.equals(this.bypassVectorIndex, queryTableRequest.bypassVectorIndex) && Objects.equals(this.columns, queryTableRequest.columns) && Objects.equals(this.distanceType, queryTableRequest.distanceType) @@ -608,6 +637,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + identity, id, bypassVectorIndex, columns, @@ -633,6 +663,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class QueryTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -698,6 +729,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 ecb5be03..c8f21121 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 @@ -28,6 +28,7 @@ /** RegisterTableRequest */ @JsonPropertyOrder({ + RegisterTableRequest.JSON_PROPERTY_IDENTITY, RegisterTableRequest.JSON_PROPERTY_ID, RegisterTableRequest.JSON_PROPERTY_LOCATION, RegisterTableRequest.JSON_PROPERTY_MODE, @@ -37,6 +38,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class RegisterTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -51,6 +55,30 @@ public class RegisterTableRequest { public RegisterTableRequest() {} + public RegisterTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public RegisterTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -176,7 +204,8 @@ public boolean equals(Object o) { return false; } RegisterTableRequest registerTableRequest = (RegisterTableRequest) o; - return Objects.equals(this.id, registerTableRequest.id) + return Objects.equals(this.identity, registerTableRequest.identity) + && Objects.equals(this.id, registerTableRequest.id) && Objects.equals(this.location, registerTableRequest.location) && Objects.equals(this.mode, registerTableRequest.mode) && Objects.equals(this.properties, registerTableRequest.properties); @@ -184,13 +213,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, location, mode, properties); + return Objects.hash(identity, id, location, mode, properties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RegisterTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -241,6 +271,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 2e322e4c..e142382b 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 @@ -26,6 +26,7 @@ /** RenameTableRequest */ @JsonPropertyOrder({ + RenameTableRequest.JSON_PROPERTY_IDENTITY, RenameTableRequest.JSON_PROPERTY_ID, RenameTableRequest.JSON_PROPERTY_NEW_TABLE_NAME, RenameTableRequest.JSON_PROPERTY_NEW_NAMESPACE_ID @@ -34,6 +35,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class RenameTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -45,6 +49,30 @@ public class RenameTableRequest { public RenameTableRequest() {} + public RenameTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public RenameTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -143,20 +171,22 @@ public boolean equals(Object o) { return false; } RenameTableRequest renameTableRequest = (RenameTableRequest) o; - return Objects.equals(this.id, renameTableRequest.id) + return Objects.equals(this.identity, renameTableRequest.identity) + && Objects.equals(this.id, renameTableRequest.id) && Objects.equals(this.newTableName, renameTableRequest.newTableName) && Objects.equals(this.newNamespaceId, renameTableRequest.newNamespaceId); } @Override public int hashCode() { - return Objects.hash(id, newTableName, newNamespaceId); + return Objects.hash(identity, id, newTableName, newNamespaceId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RenameTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -206,6 +236,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 460c0c13..eb6babe4 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 @@ -26,6 +26,7 @@ /** RestoreTableRequest */ @JsonPropertyOrder({ + RestoreTableRequest.JSON_PROPERTY_IDENTITY, RestoreTableRequest.JSON_PROPERTY_ID, RestoreTableRequest.JSON_PROPERTY_VERSION }) @@ -33,6 +34,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class RestoreTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -41,6 +45,30 @@ public class RestoreTableRequest { public RestoreTableRequest() {} + public RestoreTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public RestoreTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -106,19 +134,21 @@ public boolean equals(Object o) { return false; } RestoreTableRequest restoreTableRequest = (RestoreTableRequest) o; - return Objects.equals(this.id, restoreTableRequest.id) + return Objects.equals(this.identity, restoreTableRequest.identity) + && Objects.equals(this.id, restoreTableRequest.id) && Objects.equals(this.version, restoreTableRequest.version); } @Override public int hashCode() { - return Objects.hash(id, version); + return Objects.hash(identity, id, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RestoreTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); @@ -167,6 +197,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 6efa2b62..88fb7988 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 @@ -25,11 +25,18 @@ import java.util.StringJoiner; /** TableExistsRequest */ -@JsonPropertyOrder({TableExistsRequest.JSON_PROPERTY_ID, TableExistsRequest.JSON_PROPERTY_VERSION}) +@JsonPropertyOrder({ + TableExistsRequest.JSON_PROPERTY_IDENTITY, + TableExistsRequest.JSON_PROPERTY_ID, + TableExistsRequest.JSON_PROPERTY_VERSION +}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class TableExistsRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -38,6 +45,30 @@ public class TableExistsRequest { public TableExistsRequest() {} + public TableExistsRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public TableExistsRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -104,19 +135,21 @@ public boolean equals(Object o) { return false; } TableExistsRequest tableExistsRequest = (TableExistsRequest) o; - return Objects.equals(this.id, tableExistsRequest.id) + return Objects.equals(this.identity, tableExistsRequest.identity) + && Objects.equals(this.id, tableExistsRequest.id) && Objects.equals(this.version, tableExistsRequest.version); } @Override public int hashCode() { - return Objects.hash(id, version); + return Objects.hash(identity, id, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TableExistsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); @@ -165,6 +198,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 5254d860..db5847cf 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 @@ -29,6 +29,7 @@ * current row's value. Optionally, a predicate can be provided to filter which rows to update. */ @JsonPropertyOrder({ + UpdateTableRequest.JSON_PROPERTY_IDENTITY, UpdateTableRequest.JSON_PROPERTY_ID, UpdateTableRequest.JSON_PROPERTY_PREDICATE, UpdateTableRequest.JSON_PROPERTY_UPDATES @@ -37,6 +38,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class UpdateTableRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -48,6 +52,30 @@ public class UpdateTableRequest { public UpdateTableRequest() {} + public UpdateTableRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public UpdateTableRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -145,20 +173,22 @@ public boolean equals(Object o) { return false; } UpdateTableRequest updateTableRequest = (UpdateTableRequest) o; - return Objects.equals(this.id, updateTableRequest.id) + return Objects.equals(this.identity, updateTableRequest.identity) + && Objects.equals(this.id, updateTableRequest.id) && Objects.equals(this.predicate, updateTableRequest.predicate) && Objects.equals(this.updates, updateTableRequest.updates); } @Override public int hashCode() { - return Objects.hash(id, predicate, updates); + return Objects.hash(identity, id, predicate, updates); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -208,6 +238,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 3c3d57b8..f6e0f175 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 @@ -28,6 +28,7 @@ /** UpdateTableSchemaMetadataRequest */ @JsonPropertyOrder({ + UpdateTableSchemaMetadataRequest.JSON_PROPERTY_IDENTITY, UpdateTableSchemaMetadataRequest.JSON_PROPERTY_ID, UpdateTableSchemaMetadataRequest.JSON_PROPERTY_METADATA }) @@ -35,6 +36,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class UpdateTableSchemaMetadataRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -43,6 +47,30 @@ public class UpdateTableSchemaMetadataRequest { public UpdateTableSchemaMetadataRequest() {} + public UpdateTableSchemaMetadataRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public UpdateTableSchemaMetadataRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -118,19 +146,21 @@ public boolean equals(Object o) { } UpdateTableSchemaMetadataRequest updateTableSchemaMetadataRequest = (UpdateTableSchemaMetadataRequest) o; - return Objects.equals(this.id, updateTableSchemaMetadataRequest.id) + return Objects.equals(this.identity, updateTableSchemaMetadataRequest.identity) + && Objects.equals(this.id, updateTableSchemaMetadataRequest.id) && Objects.equals(this.metadata, updateTableSchemaMetadataRequest.metadata); } @Override public int hashCode() { - return Objects.hash(id, metadata); + return Objects.hash(identity, id, metadata); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateTableSchemaMetadataRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append("}"); @@ -179,6 +209,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 42434a01..7d6c6187 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 @@ -26,6 +26,7 @@ /** UpdateTableTagRequest */ @JsonPropertyOrder({ + UpdateTableTagRequest.JSON_PROPERTY_IDENTITY, UpdateTableTagRequest.JSON_PROPERTY_ID, UpdateTableTagRequest.JSON_PROPERTY_TAG, UpdateTableTagRequest.JSON_PROPERTY_VERSION @@ -34,6 +35,9 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class UpdateTableTagRequest { + public static final String JSON_PROPERTY_IDENTITY = "identity"; + @javax.annotation.Nullable private Identity identity; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); @@ -45,6 +49,30 @@ public class UpdateTableTagRequest { public UpdateTableTagRequest() {} + public UpdateTableTagRequest identity(@javax.annotation.Nullable Identity identity) { + + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Identity getIdentity() { + return identity; + } + + @JsonProperty(JSON_PROPERTY_IDENTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdentity(@javax.annotation.Nullable Identity identity) { + this.identity = identity; + } + public UpdateTableTagRequest id(@javax.annotation.Nullable List id) { this.id = id; @@ -134,20 +162,22 @@ public boolean equals(Object o) { return false; } UpdateTableTagRequest updateTableTagRequest = (UpdateTableTagRequest) o; - return Objects.equals(this.id, updateTableTagRequest.id) + return Objects.equals(this.identity, updateTableTagRequest.identity) + && Objects.equals(this.id, updateTableTagRequest.id) && Objects.equals(this.tag, updateTableTagRequest.tag) && Objects.equals(this.version, updateTableTagRequest.version); } @Override public int hashCode() { - return Objects.hash(id, tag, version); + return Objects.hash(identity, id, tag, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateTableTagRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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"); @@ -197,6 +227,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `identity` to the URL query string + if (getIdentity() != null) { + joiner.add(getIdentity().toUrlQueryString(prefix + "identity" + suffix)); + } + // 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 3457c1f5..3e72e89f 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class AlterTableAddColumnsRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); @Valid private List<@Valid NewColumnTransform> newColumns = new ArrayList<>(); @@ -43,6 +45,27 @@ public AlterTableAddColumnsRequest(List<@Valid NewColumnTransform> newColumns) { this.newColumns = newColumns; } + public AlterTableAddColumnsRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public AlterTableAddColumnsRequest id(List id) { this.id = id; return this; @@ -113,19 +136,21 @@ public boolean equals(Object o) { return false; } AlterTableAddColumnsRequest alterTableAddColumnsRequest = (AlterTableAddColumnsRequest) o; - return Objects.equals(this.id, alterTableAddColumnsRequest.id) + return Objects.equals(this.identity, alterTableAddColumnsRequest.identity) + && Objects.equals(this.id, alterTableAddColumnsRequest.id) && Objects.equals(this.newColumns, alterTableAddColumnsRequest.newColumns); } @Override public int hashCode() { - return Objects.hash(id, newColumns); + return Objects.hash(identity, id, newColumns); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTableAddColumnsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 37104672..31f42ee7 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class AlterTableAlterColumnsRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); @Valid private List<@Valid AlterColumnsEntry> alterations = new ArrayList<>(); @@ -43,6 +45,27 @@ public AlterTableAlterColumnsRequest(List<@Valid AlterColumnsEntry> alterations) this.alterations = alterations; } + public AlterTableAlterColumnsRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public AlterTableAlterColumnsRequest id(List id) { this.id = id; return this; @@ -113,19 +136,21 @@ public boolean equals(Object o) { return false; } AlterTableAlterColumnsRequest alterTableAlterColumnsRequest = (AlterTableAlterColumnsRequest) o; - return Objects.equals(this.id, alterTableAlterColumnsRequest.id) + return Objects.equals(this.identity, alterTableAlterColumnsRequest.identity) + && Objects.equals(this.id, alterTableAlterColumnsRequest.id) && Objects.equals(this.alterations, alterTableAlterColumnsRequest.alterations); } @Override public int hashCode() { - return Objects.hash(id, alterations); + return Objects.hash(identity, id, alterations); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTableAlterColumnsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 eaa75bd2..ef8bf4db 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class AlterTableDropColumnsRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); @Valid private List columns = new ArrayList<>(); @@ -43,6 +45,27 @@ public AlterTableDropColumnsRequest(List columns) { this.columns = columns; } + public AlterTableDropColumnsRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public AlterTableDropColumnsRequest id(List id) { this.id = id; return this; @@ -112,19 +135,21 @@ public boolean equals(Object o) { return false; } AlterTableDropColumnsRequest alterTableDropColumnsRequest = (AlterTableDropColumnsRequest) o; - return Objects.equals(this.id, alterTableDropColumnsRequest.id) + return Objects.equals(this.identity, alterTableDropColumnsRequest.identity) + && Objects.equals(this.id, alterTableDropColumnsRequest.id) && Objects.equals(this.columns, alterTableDropColumnsRequest.columns); } @Override public int hashCode() { - return Objects.hash(id, columns); + return Objects.hash(identity, id, columns); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTableDropColumnsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 fcaceffd..5ef5f445 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 @@ -37,6 +37,8 @@ comments = "Generator version: 7.12.0") public class AlterTransactionRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); @Valid private List<@Valid AlterTransactionAction> actions = new ArrayList<>(); @@ -50,6 +52,27 @@ public AlterTransactionRequest(List<@Valid AlterTransactionAction> actions) { this.actions = actions; } + public AlterTransactionRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public AlterTransactionRequest id(List id) { this.id = id; return this; @@ -118,19 +141,21 @@ public boolean equals(Object o) { return false; } AlterTransactionRequest alterTransactionRequest = (AlterTransactionRequest) o; - return Objects.equals(this.id, alterTransactionRequest.id) + return Objects.equals(this.identity, alterTransactionRequest.identity) + && Objects.equals(this.id, alterTransactionRequest.id) && Objects.equals(this.actions, alterTransactionRequest.actions); } @Override public int hashCode() { - return Objects.hash(id, actions); + return Objects.hash(identity, id, actions); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlterTransactionRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 d9b74de6..157389db 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class AnalyzeTableQueryPlanRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private Boolean bypassVectorIndex; @@ -78,6 +80,27 @@ public AnalyzeTableQueryPlanRequest(Integer k, QueryTableRequestVector vector) { this.vector = vector; } + public AnalyzeTableQueryPlanRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public AnalyzeTableQueryPlanRequest id(List id) { this.id = id; return this; @@ -531,7 +554,8 @@ public boolean equals(Object o) { return false; } AnalyzeTableQueryPlanRequest analyzeTableQueryPlanRequest = (AnalyzeTableQueryPlanRequest) o; - return Objects.equals(this.id, analyzeTableQueryPlanRequest.id) + return Objects.equals(this.identity, analyzeTableQueryPlanRequest.identity) + && Objects.equals(this.id, analyzeTableQueryPlanRequest.id) && Objects.equals(this.bypassVectorIndex, analyzeTableQueryPlanRequest.bypassVectorIndex) && Objects.equals(this.columns, analyzeTableQueryPlanRequest.columns) && Objects.equals(this.distanceType, analyzeTableQueryPlanRequest.distanceType) @@ -555,6 +579,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + identity, id, bypassVectorIndex, columns, @@ -580,6 +605,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AnalyzeTableQueryPlanRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 4d097b7a..3a7dde11 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 @@ -30,12 +30,35 @@ comments = "Generator version: 7.12.0") public class CountTableRowsRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private Long version; private String predicate; + public CountTableRowsRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public CountTableRowsRequest id(List id) { this.id = id; return this; @@ -122,20 +145,22 @@ public boolean equals(Object o) { return false; } CountTableRowsRequest countTableRowsRequest = (CountTableRowsRequest) o; - return Objects.equals(this.id, countTableRowsRequest.id) + return Objects.equals(this.identity, countTableRowsRequest.identity) + && Objects.equals(this.id, countTableRowsRequest.id) && Objects.equals(this.version, countTableRowsRequest.version) && Objects.equals(this.predicate, countTableRowsRequest.predicate); } @Override public int hashCode() { - return Objects.hash(id, version, predicate); + return Objects.hash(identity, id, version, predicate); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CountTableRowsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 1c6dffd7..20e43e08 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 @@ -39,10 +39,33 @@ comments = "Generator version: 7.12.0") public class CreateEmptyTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String location; + public CreateEmptyTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public CreateEmptyTableRequest id(List id) { this.id = id; return this; @@ -105,19 +128,21 @@ public boolean equals(Object o) { return false; } CreateEmptyTableRequest createEmptyTableRequest = (CreateEmptyTableRequest) o; - return Objects.equals(this.id, createEmptyTableRequest.id) + return Objects.equals(this.identity, createEmptyTableRequest.identity) + && Objects.equals(this.id, createEmptyTableRequest.id) && Objects.equals(this.location, createEmptyTableRequest.location); } @Override public int hashCode() { - return Objects.hash(id, location); + return Objects.hash(identity, id, location); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateEmptyTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 a0900d05..7013bfa4 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 @@ -32,12 +32,35 @@ comments = "Generator version: 7.12.0") public class CreateNamespaceRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String mode; @Valid private Map properties = new HashMap<>(); + public CreateNamespaceRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public CreateNamespaceRequest id(List id) { this.id = id; return this; @@ -131,20 +154,22 @@ public boolean equals(Object o) { return false; } CreateNamespaceRequest createNamespaceRequest = (CreateNamespaceRequest) o; - return Objects.equals(this.id, createNamespaceRequest.id) + return Objects.equals(this.identity, createNamespaceRequest.identity) + && Objects.equals(this.id, createNamespaceRequest.id) && Objects.equals(this.mode, createNamespaceRequest.mode) && Objects.equals(this.properties, createNamespaceRequest.properties); } @Override public int hashCode() { - return Objects.hash(id, mode, properties); + return Objects.hash(identity, id, mode, properties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateNamespaceRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 3ae020a5..fc1fa7bf 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class CreateTableIndexRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String column; @@ -66,6 +68,27 @@ public CreateTableIndexRequest(String column, String indexType) { this.indexType = indexType; } + public CreateTableIndexRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public CreateTableIndexRequest id(List id) { this.id = id; return this; @@ -383,7 +406,8 @@ public boolean equals(Object o) { return false; } CreateTableIndexRequest createTableIndexRequest = (CreateTableIndexRequest) o; - return Objects.equals(this.id, createTableIndexRequest.id) + return Objects.equals(this.identity, createTableIndexRequest.identity) + && Objects.equals(this.id, createTableIndexRequest.id) && Objects.equals(this.column, createTableIndexRequest.column) && Objects.equals(this.indexType, createTableIndexRequest.indexType) && Objects.equals(this.name, createTableIndexRequest.name) @@ -401,6 +425,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + identity, id, column, indexType, @@ -420,6 +445,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTableIndexRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 b92c12f1..2ab41512 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 @@ -33,10 +33,33 @@ comments = "Generator version: 7.12.0") public class CreateTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String mode; + public CreateTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public CreateTableRequest id(List id) { this.id = id; return this; @@ -102,19 +125,21 @@ public boolean equals(Object o) { return false; } CreateTableRequest createTableRequest = (CreateTableRequest) o; - return Objects.equals(this.id, createTableRequest.id) + return Objects.equals(this.identity, createTableRequest.identity) + && Objects.equals(this.id, createTableRequest.id) && Objects.equals(this.mode, createTableRequest.mode); } @Override public int hashCode() { - return Objects.hash(id, mode); + return Objects.hash(identity, id, mode); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 220b76c2..3a0ef859 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class CreateTableTagRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String tag; @@ -46,6 +48,27 @@ public CreateTableTagRequest(String tag, Long version) { this.version = version; } + public CreateTableTagRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public CreateTableTagRequest id(List id) { this.id = id; return this; @@ -132,20 +155,22 @@ public boolean equals(Object o) { return false; } CreateTableTagRequest createTableTagRequest = (CreateTableTagRequest) o; - return Objects.equals(this.id, createTableTagRequest.id) + return Objects.equals(this.identity, createTableTagRequest.identity) + && Objects.equals(this.id, createTableTagRequest.id) && Objects.equals(this.tag, createTableTagRequest.tag) && Objects.equals(this.version, createTableTagRequest.version); } @Override public int hashCode() { - return Objects.hash(id, tag, version); + return Objects.hash(identity, id, tag, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateTableTagRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 b2daff6e..3b85a6ac 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 @@ -31,10 +31,33 @@ comments = "Generator version: 7.12.0") public class DeclareTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String location; + public DeclareTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public DeclareTableRequest id(List id) { this.id = id; return this; @@ -97,19 +120,21 @@ public boolean equals(Object o) { return false; } DeclareTableRequest declareTableRequest = (DeclareTableRequest) o; - return Objects.equals(this.id, declareTableRequest.id) + return Objects.equals(this.identity, declareTableRequest.identity) + && Objects.equals(this.id, declareTableRequest.id) && Objects.equals(this.location, declareTableRequest.location); } @Override public int hashCode() { - return Objects.hash(id, location); + return Objects.hash(identity, id, location); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeclareTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 b27a23b1..e302c227 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 @@ -36,6 +36,8 @@ comments = "Generator version: 7.12.0") public class DeleteFromTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String predicate; @@ -49,6 +51,27 @@ public DeleteFromTableRequest(String predicate) { this.predicate = predicate; } + public DeleteFromTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public DeleteFromTableRequest id(List id) { this.id = id; return this; @@ -113,19 +136,21 @@ public boolean equals(Object o) { return false; } DeleteFromTableRequest deleteFromTableRequest = (DeleteFromTableRequest) o; - return Objects.equals(this.id, deleteFromTableRequest.id) + return Objects.equals(this.identity, deleteFromTableRequest.identity) + && Objects.equals(this.id, deleteFromTableRequest.id) && Objects.equals(this.predicate, deleteFromTableRequest.predicate); } @Override public int hashCode() { - return Objects.hash(id, predicate); + return Objects.hash(identity, id, predicate); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteFromTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 0e4d9419..cc5782c5 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class DeleteTableTagRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String tag; @@ -43,6 +45,27 @@ public DeleteTableTagRequest(String tag) { this.tag = tag; } + public DeleteTableTagRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public DeleteTableTagRequest id(List id) { this.id = id; return this; @@ -104,19 +127,21 @@ public boolean equals(Object o) { return false; } DeleteTableTagRequest deleteTableTagRequest = (DeleteTableTagRequest) o; - return Objects.equals(this.id, deleteTableTagRequest.id) + return Objects.equals(this.identity, deleteTableTagRequest.identity) + && Objects.equals(this.id, deleteTableTagRequest.id) && Objects.equals(this.tag, deleteTableTagRequest.tag); } @Override public int hashCode() { - return Objects.hash(id, tag); + return Objects.hash(identity, id, tag); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteTableTagRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 6ec41624..4048db9e 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 @@ -33,8 +33,31 @@ comments = "Generator version: 7.12.0") public class DeregisterTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); + public DeregisterTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public DeregisterTableRequest id(List id) { this.id = id; return this; @@ -72,18 +95,20 @@ public boolean equals(Object o) { return false; } DeregisterTableRequest deregisterTableRequest = (DeregisterTableRequest) o; - return Objects.equals(this.id, deregisterTableRequest.id); + return Objects.equals(this.identity, deregisterTableRequest.identity) + && Objects.equals(this.id, deregisterTableRequest.id); } @Override public int hashCode() { - return Objects.hash(id); + return Objects.hash(identity, id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeregisterTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 5d598069..a01b70d6 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 @@ -30,8 +30,31 @@ comments = "Generator version: 7.12.0") public class DescribeNamespaceRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); + public DescribeNamespaceRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public DescribeNamespaceRequest id(List id) { this.id = id; return this; @@ -69,18 +92,20 @@ public boolean equals(Object o) { return false; } DescribeNamespaceRequest describeNamespaceRequest = (DescribeNamespaceRequest) o; - return Objects.equals(this.id, describeNamespaceRequest.id); + return Objects.equals(this.identity, describeNamespaceRequest.identity) + && Objects.equals(this.id, describeNamespaceRequest.id); } @Override public int hashCode() { - return Objects.hash(id); + return Objects.hash(identity, id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeNamespaceRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 b9e48b95..f352305f 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 @@ -30,12 +30,35 @@ comments = "Generator version: 7.12.0") public class DescribeTableIndexStatsRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private Long version; private String indexName; + public DescribeTableIndexStatsRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public DescribeTableIndexStatsRequest id(List id) { this.id = id; return this; @@ -121,20 +144,22 @@ public boolean equals(Object o) { } DescribeTableIndexStatsRequest describeTableIndexStatsRequest = (DescribeTableIndexStatsRequest) o; - return Objects.equals(this.id, describeTableIndexStatsRequest.id) + return Objects.equals(this.identity, describeTableIndexStatsRequest.identity) + && Objects.equals(this.id, describeTableIndexStatsRequest.id) && Objects.equals(this.version, describeTableIndexStatsRequest.version) && Objects.equals(this.indexName, describeTableIndexStatsRequest.indexName); } @Override public int hashCode() { - return Objects.hash(id, version, indexName); + return Objects.hash(identity, id, version, indexName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeTableIndexStatsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 0e37b08a..ab6bc435 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class DescribeTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private Long version; @@ -40,6 +42,27 @@ public class DescribeTableRequest { private Boolean vendCredentials; + public DescribeTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public DescribeTableRequest id(List id) { this.id = id; return this; @@ -179,7 +202,8 @@ public boolean equals(Object o) { return false; } DescribeTableRequest describeTableRequest = (DescribeTableRequest) o; - return Objects.equals(this.id, describeTableRequest.id) + return Objects.equals(this.identity, describeTableRequest.identity) + && Objects.equals(this.id, describeTableRequest.id) && Objects.equals(this.version, describeTableRequest.version) && Objects.equals(this.withTableUri, describeTableRequest.withTableUri) && Objects.equals(this.loadDetailedMetadata, describeTableRequest.loadDetailedMetadata) @@ -188,13 +212,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, version, withTableUri, loadDetailedMetadata, vendCredentials); + return Objects.hash(identity, id, version, withTableUri, loadDetailedMetadata, vendCredentials); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 e93eaf8d..7135ee65 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 @@ -30,8 +30,31 @@ comments = "Generator version: 7.12.0") public class DescribeTransactionRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); + public DescribeTransactionRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public DescribeTransactionRequest id(List id) { this.id = id; return this; @@ -69,18 +92,20 @@ public boolean equals(Object o) { return false; } DescribeTransactionRequest describeTransactionRequest = (DescribeTransactionRequest) o; - return Objects.equals(this.id, describeTransactionRequest.id); + return Objects.equals(this.identity, describeTransactionRequest.identity) + && Objects.equals(this.id, describeTransactionRequest.id); } @Override public int hashCode() { - return Objects.hash(id); + return Objects.hash(identity, id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeTransactionRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 c4819079..19c554fd 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 @@ -30,12 +30,35 @@ comments = "Generator version: 7.12.0") public class DropNamespaceRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String mode; private String behavior; + public DropNamespaceRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public DropNamespaceRequest id(List id) { this.id = id; return this; @@ -128,20 +151,22 @@ public boolean equals(Object o) { return false; } DropNamespaceRequest dropNamespaceRequest = (DropNamespaceRequest) o; - return Objects.equals(this.id, dropNamespaceRequest.id) + return Objects.equals(this.identity, dropNamespaceRequest.identity) + && Objects.equals(this.id, dropNamespaceRequest.id) && Objects.equals(this.mode, dropNamespaceRequest.mode) && Objects.equals(this.behavior, dropNamespaceRequest.behavior); } @Override public int hashCode() { - return Objects.hash(id, mode, behavior); + return Objects.hash(identity, id, mode, behavior); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DropNamespaceRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 67a16876..bac5f50f 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 @@ -30,10 +30,33 @@ comments = "Generator version: 7.12.0") public class DropTableIndexRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String indexName; + public DropTableIndexRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public DropTableIndexRequest id(List id) { this.id = id; return this; @@ -94,19 +117,21 @@ public boolean equals(Object o) { return false; } DropTableIndexRequest dropTableIndexRequest = (DropTableIndexRequest) o; - return Objects.equals(this.id, dropTableIndexRequest.id) + return Objects.equals(this.identity, dropTableIndexRequest.identity) + && Objects.equals(this.id, dropTableIndexRequest.id) && Objects.equals(this.indexName, dropTableIndexRequest.indexName); } @Override public int hashCode() { - return Objects.hash(id, indexName); + return Objects.hash(identity, id, indexName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DropTableIndexRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 bae67bc2..66136f01 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 @@ -37,8 +37,31 @@ comments = "Generator version: 7.12.0") public class DropTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); + public DropTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public DropTableRequest id(List id) { this.id = id; return this; @@ -76,18 +99,20 @@ public boolean equals(Object o) { return false; } DropTableRequest dropTableRequest = (DropTableRequest) o; - return Objects.equals(this.id, dropTableRequest.id); + return Objects.equals(this.identity, dropTableRequest.identity) + && Objects.equals(this.id, dropTableRequest.id); } @Override public int hashCode() { - return Objects.hash(id); + return Objects.hash(identity, id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DropTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 b680f39a..ea3b9e10 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class ExplainTableQueryPlanRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private QueryTableRequest query; @@ -45,6 +47,27 @@ public ExplainTableQueryPlanRequest(QueryTableRequest query) { this.query = query; } + public ExplainTableQueryPlanRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public ExplainTableQueryPlanRequest id(List id) { this.id = id; return this; @@ -127,20 +150,22 @@ public boolean equals(Object o) { return false; } ExplainTableQueryPlanRequest explainTableQueryPlanRequest = (ExplainTableQueryPlanRequest) o; - return Objects.equals(this.id, explainTableQueryPlanRequest.id) + return Objects.equals(this.identity, explainTableQueryPlanRequest.identity) + && Objects.equals(this.id, explainTableQueryPlanRequest.id) && Objects.equals(this.query, explainTableQueryPlanRequest.query) && Objects.equals(this.verbose, explainTableQueryPlanRequest.verbose); } @Override public int hashCode() { - return Objects.hash(id, query, verbose); + return Objects.hash(identity, id, query, verbose); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExplainTableQueryPlanRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 e811a74c..e02fe975 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 @@ -30,8 +30,31 @@ comments = "Generator version: 7.12.0") public class GetTableStatsRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); + public GetTableStatsRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public GetTableStatsRequest id(List id) { this.id = id; return this; @@ -69,18 +92,20 @@ public boolean equals(Object o) { return false; } GetTableStatsRequest getTableStatsRequest = (GetTableStatsRequest) o; - return Objects.equals(this.id, getTableStatsRequest.id); + return Objects.equals(this.identity, getTableStatsRequest.identity) + && Objects.equals(this.id, getTableStatsRequest.id); } @Override public int hashCode() { - return Objects.hash(id); + return Objects.hash(identity, id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTableStatsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 6df36b66..dbab6fd9 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class GetTableTagVersionRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String tag; @@ -43,6 +45,27 @@ public GetTableTagVersionRequest(String tag) { this.tag = tag; } + public GetTableTagVersionRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public GetTableTagVersionRequest id(List id) { this.id = id; return this; @@ -104,19 +127,21 @@ public boolean equals(Object o) { return false; } GetTableTagVersionRequest getTableTagVersionRequest = (GetTableTagVersionRequest) o; - return Objects.equals(this.id, getTableTagVersionRequest.id) + return Objects.equals(this.identity, getTableTagVersionRequest.identity) + && Objects.equals(this.id, getTableTagVersionRequest.id) && Objects.equals(this.tag, getTableTagVersionRequest.tag); } @Override public int hashCode() { - return Objects.hash(id, tag); + return Objects.hash(identity, id, tag); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTableTagVersionRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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/Identity.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/Identity.java new file mode 100644 index 00000000..7353ae4d --- /dev/null +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/Identity.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.lance.namespace.server.springboot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.annotation.Generated; +import jakarta.validation.constraints.*; + +import java.util.*; +import java.util.Objects; + +/** Identity information of a request. */ +@Schema(name = "Identity", description = "Identity information of a request. ") +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.12.0") +public class Identity { + + private String apiKey; + + private String authToken; + + public Identity apiKey(String apiKey) { + this.apiKey = apiKey; + return this; + } + + /** + * API key for authentication. REST NAMESPACE ONLY This is passed via the `x-api-key` header. + * + * @return apiKey + */ + @Schema( + name = "api_key", + description = + "API key for authentication. REST NAMESPACE ONLY This is passed via the `x-api-key` header. ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("api_key") + public String getApiKey() { + return apiKey; + } + + public void setApiKey(String apiKey) { + this.apiKey = apiKey; + } + + public Identity authToken(String authToken) { + this.authToken = authToken; + return this; + } + + /** + * Bearer token for authentication. REST NAMESPACE ONLY This is passed via the `Authorization` + * header with the Bearer scheme (e.g., `Bearer `). + * + * @return authToken + */ + @Schema( + name = "auth_token", + description = + "Bearer token for authentication. REST NAMESPACE ONLY This is passed via the `Authorization` header with the Bearer scheme (e.g., `Bearer `). ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("auth_token") + public String getAuthToken() { + return authToken; + } + + public void setAuthToken(String authToken) { + this.authToken = authToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Identity identity = (Identity) o; + return Objects.equals(this.apiKey, identity.apiKey) + && Objects.equals(this.authToken, identity.authToken); + } + + @Override + public int hashCode() { + return Objects.hash(apiKey, authToken); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Identity {\n"); + sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n"); + sb.append(" authToken: ").append(toIndentedString(authToken)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} 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 361d6553..97830a8a 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 @@ -33,10 +33,33 @@ comments = "Generator version: 7.12.0") public class InsertIntoTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String mode = "append"; + public InsertIntoTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public InsertIntoTableRequest id(List id) { this.id = id; return this; @@ -100,19 +123,21 @@ public boolean equals(Object o) { return false; } InsertIntoTableRequest insertIntoTableRequest = (InsertIntoTableRequest) o; - return Objects.equals(this.id, insertIntoTableRequest.id) + return Objects.equals(this.identity, insertIntoTableRequest.identity) + && Objects.equals(this.id, insertIntoTableRequest.id) && Objects.equals(this.mode, insertIntoTableRequest.mode); } @Override public int hashCode() { - return Objects.hash(id, mode); + return Objects.hash(identity, id, mode); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InsertIntoTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 70886953..90e51e3e 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 @@ -30,12 +30,35 @@ comments = "Generator version: 7.12.0") public class ListNamespacesRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String pageToken; private Integer limit; + public ListNamespacesRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public ListNamespacesRequest id(List id) { this.id = id; return this; @@ -128,20 +151,22 @@ public boolean equals(Object o) { return false; } ListNamespacesRequest listNamespacesRequest = (ListNamespacesRequest) o; - return Objects.equals(this.id, listNamespacesRequest.id) + return Objects.equals(this.identity, listNamespacesRequest.identity) + && Objects.equals(this.id, listNamespacesRequest.id) && Objects.equals(this.pageToken, listNamespacesRequest.pageToken) && Objects.equals(this.limit, listNamespacesRequest.limit); } @Override public int hashCode() { - return Objects.hash(id, pageToken, limit); + return Objects.hash(identity, id, pageToken, limit); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListNamespacesRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 7731fdc1..b11b26da 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class ListTableIndicesRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private Long version; @@ -38,6 +40,27 @@ public class ListTableIndicesRequest { private Integer limit; + public ListTableIndicesRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public ListTableIndicesRequest id(List id) { this.id = id; return this; @@ -157,7 +180,8 @@ public boolean equals(Object o) { return false; } ListTableIndicesRequest listTableIndicesRequest = (ListTableIndicesRequest) o; - return Objects.equals(this.id, listTableIndicesRequest.id) + return Objects.equals(this.identity, listTableIndicesRequest.identity) + && Objects.equals(this.id, listTableIndicesRequest.id) && Objects.equals(this.version, listTableIndicesRequest.version) && Objects.equals(this.pageToken, listTableIndicesRequest.pageToken) && Objects.equals(this.limit, listTableIndicesRequest.limit); @@ -165,13 +189,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, version, pageToken, limit); + return Objects.hash(identity, id, version, pageToken, limit); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTableIndicesRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 548840e0..e6c6fb1d 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 @@ -30,12 +30,35 @@ comments = "Generator version: 7.12.0") public class ListTableTagsRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String pageToken; private Integer limit; + public ListTableTagsRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public ListTableTagsRequest id(List id) { this.id = id; return this; @@ -131,20 +154,22 @@ public boolean equals(Object o) { return false; } ListTableTagsRequest listTableTagsRequest = (ListTableTagsRequest) o; - return Objects.equals(this.id, listTableTagsRequest.id) + return Objects.equals(this.identity, listTableTagsRequest.identity) + && Objects.equals(this.id, listTableTagsRequest.id) && Objects.equals(this.pageToken, listTableTagsRequest.pageToken) && Objects.equals(this.limit, listTableTagsRequest.limit); } @Override public int hashCode() { - return Objects.hash(id, pageToken, limit); + return Objects.hash(identity, id, pageToken, limit); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTableTagsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 c3f0a929..b821a7f6 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 @@ -30,12 +30,35 @@ comments = "Generator version: 7.12.0") public class ListTableVersionsRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String pageToken; private Integer limit; + public ListTableVersionsRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public ListTableVersionsRequest id(List id) { this.id = id; return this; @@ -128,20 +151,22 @@ public boolean equals(Object o) { return false; } ListTableVersionsRequest listTableVersionsRequest = (ListTableVersionsRequest) o; - return Objects.equals(this.id, listTableVersionsRequest.id) + return Objects.equals(this.identity, listTableVersionsRequest.identity) + && Objects.equals(this.id, listTableVersionsRequest.id) && Objects.equals(this.pageToken, listTableVersionsRequest.pageToken) && Objects.equals(this.limit, listTableVersionsRequest.limit); } @Override public int hashCode() { - return Objects.hash(id, pageToken, limit); + return Objects.hash(identity, id, pageToken, limit); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTableVersionsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 d5c8de22..e6a52360 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 @@ -30,12 +30,35 @@ comments = "Generator version: 7.12.0") public class ListTablesRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String pageToken; private Integer limit; + public ListTablesRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public ListTablesRequest id(List id) { this.id = id; return this; @@ -128,20 +151,22 @@ public boolean equals(Object o) { return false; } ListTablesRequest listTablesRequest = (ListTablesRequest) o; - return Objects.equals(this.id, listTablesRequest.id) + return Objects.equals(this.identity, listTablesRequest.identity) + && Objects.equals(this.id, listTablesRequest.id) && Objects.equals(this.pageToken, listTablesRequest.pageToken) && Objects.equals(this.limit, listTablesRequest.limit); } @Override public int hashCode() { - return Objects.hash(id, pageToken, limit); + return Objects.hash(identity, id, pageToken, limit); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListTablesRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 a71098d2..08e08c5d 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 @@ -34,6 +34,8 @@ comments = "Generator version: 7.12.0") public class MergeInsertIntoTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String on; @@ -52,6 +54,27 @@ public class MergeInsertIntoTableRequest { private Boolean useIndex = false; + public MergeInsertIntoTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public MergeInsertIntoTableRequest id(List id) { this.id = id; return this; @@ -278,7 +301,8 @@ public boolean equals(Object o) { return false; } MergeInsertIntoTableRequest mergeInsertIntoTableRequest = (MergeInsertIntoTableRequest) o; - return Objects.equals(this.id, mergeInsertIntoTableRequest.id) + return Objects.equals(this.identity, mergeInsertIntoTableRequest.identity) + && Objects.equals(this.id, mergeInsertIntoTableRequest.id) && Objects.equals(this.on, mergeInsertIntoTableRequest.on) && Objects.equals( this.whenMatchedUpdateAll, mergeInsertIntoTableRequest.whenMatchedUpdateAll) @@ -299,6 +323,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + identity, id, on, whenMatchedUpdateAll, @@ -314,6 +339,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MergeInsertIntoTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 6731057b..759d976d 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 @@ -30,8 +30,31 @@ comments = "Generator version: 7.12.0") public class NamespaceExistsRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); + public NamespaceExistsRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public NamespaceExistsRequest id(List id) { this.id = id; return this; @@ -69,18 +92,20 @@ public boolean equals(Object o) { return false; } NamespaceExistsRequest namespaceExistsRequest = (NamespaceExistsRequest) o; - return Objects.equals(this.id, namespaceExistsRequest.id); + return Objects.equals(this.identity, namespaceExistsRequest.identity) + && Objects.equals(this.id, namespaceExistsRequest.id); } @Override public int hashCode() { - return Objects.hash(id); + return Objects.hash(identity, id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NamespaceExistsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 94d2d942..ae19e5e7 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class QueryTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private Boolean bypassVectorIndex; @@ -78,6 +80,27 @@ public QueryTableRequest(Integer k, QueryTableRequestVector vector) { this.vector = vector; } + public QueryTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public QueryTableRequest id(List id) { this.id = id; return this; @@ -531,7 +554,8 @@ public boolean equals(Object o) { return false; } QueryTableRequest queryTableRequest = (QueryTableRequest) o; - return Objects.equals(this.id, queryTableRequest.id) + return Objects.equals(this.identity, queryTableRequest.identity) + && Objects.equals(this.id, queryTableRequest.id) && Objects.equals(this.bypassVectorIndex, queryTableRequest.bypassVectorIndex) && Objects.equals(this.columns, queryTableRequest.columns) && Objects.equals(this.distanceType, queryTableRequest.distanceType) @@ -555,6 +579,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + identity, id, bypassVectorIndex, columns, @@ -580,6 +605,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class QueryTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 a02f3a7b..18a8a0e7 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 @@ -32,6 +32,8 @@ comments = "Generator version: 7.12.0") public class RegisterTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String location; @@ -49,6 +51,27 @@ public RegisterTableRequest(String location) { this.location = location; } + public RegisterTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public RegisterTableRequest id(List id) { this.id = id; return this; @@ -162,7 +185,8 @@ public boolean equals(Object o) { return false; } RegisterTableRequest registerTableRequest = (RegisterTableRequest) o; - return Objects.equals(this.id, registerTableRequest.id) + return Objects.equals(this.identity, registerTableRequest.identity) + && Objects.equals(this.id, registerTableRequest.id) && Objects.equals(this.location, registerTableRequest.location) && Objects.equals(this.mode, registerTableRequest.mode) && Objects.equals(this.properties, registerTableRequest.properties); @@ -170,13 +194,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, location, mode, properties); + return Objects.hash(identity, id, location, mode, properties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RegisterTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 bbd19a05..3cf37099 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class RenameTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String newTableName; @@ -45,6 +47,27 @@ public RenameTableRequest(String newTableName) { this.newTableName = newTableName; } + public RenameTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public RenameTableRequest id(List id) { this.id = id; return this; @@ -142,20 +165,22 @@ public boolean equals(Object o) { return false; } RenameTableRequest renameTableRequest = (RenameTableRequest) o; - return Objects.equals(this.id, renameTableRequest.id) + return Objects.equals(this.identity, renameTableRequest.identity) + && Objects.equals(this.id, renameTableRequest.id) && Objects.equals(this.newTableName, renameTableRequest.newTableName) && Objects.equals(this.newNamespaceId, renameTableRequest.newNamespaceId); } @Override public int hashCode() { - return Objects.hash(id, newTableName, newNamespaceId); + return Objects.hash(identity, id, newTableName, newNamespaceId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RenameTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 3ec7fc70..fd5ae4dd 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class RestoreTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private Long version; @@ -43,6 +45,27 @@ public RestoreTableRequest(Long version) { this.version = version; } + public RestoreTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public RestoreTableRequest id(List id) { this.id = id; return this; @@ -105,19 +128,21 @@ public boolean equals(Object o) { return false; } RestoreTableRequest restoreTableRequest = (RestoreTableRequest) o; - return Objects.equals(this.id, restoreTableRequest.id) + return Objects.equals(this.identity, restoreTableRequest.identity) + && Objects.equals(this.id, restoreTableRequest.id) && Objects.equals(this.version, restoreTableRequest.version); } @Override public int hashCode() { - return Objects.hash(id, version); + return Objects.hash(identity, id, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RestoreTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 09c88a36..a7699db2 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 @@ -30,10 +30,33 @@ comments = "Generator version: 7.12.0") public class TableExistsRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private Long version; + public TableExistsRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public TableExistsRequest id(List id) { this.id = id; return this; @@ -97,19 +120,21 @@ public boolean equals(Object o) { return false; } TableExistsRequest tableExistsRequest = (TableExistsRequest) o; - return Objects.equals(this.id, tableExistsRequest.id) + return Objects.equals(this.identity, tableExistsRequest.identity) + && Objects.equals(this.id, tableExistsRequest.id) && Objects.equals(this.version, tableExistsRequest.version); } @Override public int hashCode() { - return Objects.hash(id, version); + return Objects.hash(identity, id, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TableExistsRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 517cc804..9de1f44e 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 @@ -37,6 +37,8 @@ comments = "Generator version: 7.12.0") public class UpdateTableRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String predicate; @@ -52,6 +54,27 @@ public UpdateTableRequest(List> updates) { this.updates = updates; } + public UpdateTableRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public UpdateTableRequest id(List id) { this.id = id; return this; @@ -145,20 +168,22 @@ public boolean equals(Object o) { return false; } UpdateTableRequest updateTableRequest = (UpdateTableRequest) o; - return Objects.equals(this.id, updateTableRequest.id) + return Objects.equals(this.identity, updateTableRequest.identity) + && Objects.equals(this.id, updateTableRequest.id) && Objects.equals(this.predicate, updateTableRequest.predicate) && Objects.equals(this.updates, updateTableRequest.updates); } @Override public int hashCode() { - return Objects.hash(id, predicate, updates); + return Objects.hash(identity, id, predicate, updates); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateTableRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 628bbf83..b4fd6dd8 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 @@ -32,10 +32,33 @@ comments = "Generator version: 7.12.0") public class UpdateTableSchemaMetadataRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); @Valid private Map metadata = new HashMap<>(); + public UpdateTableSchemaMetadataRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public UpdateTableSchemaMetadataRequest id(List id) { this.id = id; return this; @@ -108,19 +131,21 @@ public boolean equals(Object o) { } UpdateTableSchemaMetadataRequest updateTableSchemaMetadataRequest = (UpdateTableSchemaMetadataRequest) o; - return Objects.equals(this.id, updateTableSchemaMetadataRequest.id) + return Objects.equals(this.identity, updateTableSchemaMetadataRequest.identity) + && Objects.equals(this.id, updateTableSchemaMetadataRequest.id) && Objects.equals(this.metadata, updateTableSchemaMetadataRequest.metadata); } @Override public int hashCode() { - return Objects.hash(id, metadata); + return Objects.hash(identity, id, metadata); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateTableSchemaMetadataRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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 e15111f1..cc42dd9d 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 @@ -30,6 +30,8 @@ comments = "Generator version: 7.12.0") public class UpdateTableTagRequest { + private Identity identity; + @Valid private List id = new ArrayList<>(); private String tag; @@ -46,6 +48,27 @@ public UpdateTableTagRequest(String tag, Long version) { this.version = version; } + public UpdateTableTagRequest identity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get identity + * + * @return identity + */ + @Valid + @Schema(name = "identity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("identity") + public Identity getIdentity() { + return identity; + } + + public void setIdentity(Identity identity) { + this.identity = identity; + } + public UpdateTableTagRequest id(List id) { this.id = id; return this; @@ -132,20 +155,22 @@ public boolean equals(Object o) { return false; } UpdateTableTagRequest updateTableTagRequest = (UpdateTableTagRequest) o; - return Objects.equals(this.id, updateTableTagRequest.id) + return Objects.equals(this.identity, updateTableTagRequest.identity) + && Objects.equals(this.id, updateTableTagRequest.id) && Objects.equals(this.tag, updateTableTagRequest.tag) && Objects.equals(this.version, updateTableTagRequest.version); } @Override public int hashCode() { - return Objects.hash(id, tag, version); + return Objects.hash(identity, id, tag, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateTableTagRequest {\n"); + sb.append(" identity: ").append(toIndentedString(identity)).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/README.md b/python/lance_namespace_urllib3_client/README.md index 8dd65204..acfde0df 100644 --- a/python/lance_namespace_urllib3_client/README.md +++ b/python/lance_namespace_urllib3_client/README.md @@ -276,6 +276,7 @@ Class | Method | HTTP request | Description - [GetTableStatsResponse](docs/GetTableStatsResponse.md) - [GetTableTagVersionRequest](docs/GetTableTagVersionRequest.md) - [GetTableTagVersionResponse](docs/GetTableTagVersionResponse.md) + - [Identity](docs/Identity.md) - [IndexContent](docs/IndexContent.md) - [InsertIntoTableRequest](docs/InsertIntoTableRequest.md) - [InsertIntoTableResponse](docs/InsertIntoTableResponse.md) diff --git a/python/lance_namespace_urllib3_client/docs/AlterTableAddColumnsRequest.md b/python/lance_namespace_urllib3_client/docs/AlterTableAddColumnsRequest.md index 50273d45..b53a2ad8 100644 --- a/python/lance_namespace_urllib3_client/docs/AlterTableAddColumnsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/AlterTableAddColumnsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 829eeb36..991da047 100644 --- a/python/lance_namespace_urllib3_client/docs/AlterTableAlterColumnsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/AlterTableAlterColumnsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 18882979..ada02c44 100644 --- a/python/lance_namespace_urllib3_client/docs/AlterTableDropColumnsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/AlterTableDropColumnsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 c869a355..afe56927 100644 --- a/python/lance_namespace_urllib3_client/docs/AlterTransactionRequest.md +++ b/python/lance_namespace_urllib3_client/docs/AlterTransactionRequest.md @@ -6,6 +6,7 @@ Alter a transaction with a list of actions. The server should either succeed and Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 0b9e200f..b4f392e4 100644 --- a/python/lance_namespace_urllib3_client/docs/AnalyzeTableQueryPlanRequest.md +++ b/python/lance_namespace_urllib3_client/docs/AnalyzeTableQueryPlanRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 a1d99ecd..c45ed2ad 100644 --- a/python/lance_namespace_urllib3_client/docs/CountTableRowsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CountTableRowsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 5d6358c9..877f9a4a 100644 --- a/python/lance_namespace_urllib3_client/docs/CreateEmptyTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CreateEmptyTableRequest.md @@ -6,6 +6,7 @@ Request for creating an empty table. **Deprecated**: Use `DeclareTableRequest` Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 36854280..5c136ea9 100644 --- a/python/lance_namespace_urllib3_client/docs/CreateNamespaceRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CreateNamespaceRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 c1af69b3..f164c9e4 100644 --- a/python/lance_namespace_urllib3_client/docs/CreateTableIndexRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CreateTableIndexRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 1aa63b5d..9477d2d1 100644 --- a/python/lance_namespace_urllib3_client/docs/CreateTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CreateTableRequest.md @@ -6,6 +6,7 @@ Request for creating a table, excluding the Arrow IPC stream. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 390b470b..061eef80 100644 --- a/python/lance_namespace_urllib3_client/docs/CreateTableTagRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CreateTableTagRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 1af4a51b..b491cd76 100644 --- a/python/lance_namespace_urllib3_client/docs/DeclareTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DeclareTableRequest.md @@ -6,6 +6,7 @@ Request for declaring a table. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 3f8f6d95..0e1da65d 100644 --- a/python/lance_namespace_urllib3_client/docs/DeleteFromTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DeleteFromTableRequest.md @@ -6,6 +6,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] **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 02e2c74c..9a176d1c 100644 --- a/python/lance_namespace_urllib3_client/docs/DeleteTableTagRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DeleteTableTagRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 1d64b480..1f59cf70 100644 --- a/python/lance_namespace_urllib3_client/docs/DeregisterTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DeregisterTableRequest.md @@ -6,6 +6,7 @@ The table content remains available in the storage. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 4d78eb7d..5ee0b9c1 100644 --- a/python/lance_namespace_urllib3_client/docs/DescribeNamespaceRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DescribeNamespaceRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 c21ea830..d77fba18 100644 --- a/python/lance_namespace_urllib3_client/docs/DescribeTableIndexStatsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DescribeTableIndexStatsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 dd4194be..d919f2ee 100644 --- a/python/lance_namespace_urllib3_client/docs/DescribeTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DescribeTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 64deb65e..167bcbd9 100644 --- a/python/lance_namespace_urllib3_client/docs/DescribeTransactionRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DescribeTransactionRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 aed165bc..92362f02 100644 --- a/python/lance_namespace_urllib3_client/docs/DropNamespaceRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DropNamespaceRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 7aeb8b09..afb3ad93 100644 --- a/python/lance_namespace_urllib3_client/docs/DropTableIndexRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DropTableIndexRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 faf53637..9fe533e1 100644 --- a/python/lance_namespace_urllib3_client/docs/DropTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DropTableRequest.md @@ -6,6 +6,7 @@ If the table and its data can be immediately deleted, return information of the Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 add277c3..db628414 100644 --- a/python/lance_namespace_urllib3_client/docs/ExplainTableQueryPlanRequest.md +++ b/python/lance_namespace_urllib3_client/docs/ExplainTableQueryPlanRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 f903fb46..6c01aeda 100644 --- a/python/lance_namespace_urllib3_client/docs/GetTableStatsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/GetTableStatsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 b0aed643..17cd31a4 100644 --- a/python/lance_namespace_urllib3_client/docs/GetTableTagVersionRequest.md +++ b/python/lance_namespace_urllib3_client/docs/GetTableTagVersionRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [optional] **id** | **List[str]** | | [optional] **tag** | **str** | Name of the tag to get version for | diff --git a/python/lance_namespace_urllib3_client/docs/Identity.md b/python/lance_namespace_urllib3_client/docs/Identity.md new file mode 100644 index 00000000..adc9f3ed --- /dev/null +++ b/python/lance_namespace_urllib3_client/docs/Identity.md @@ -0,0 +1,31 @@ +# Identity + +Identity information of a request. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_key** | **str** | API key for authentication. REST NAMESPACE ONLY This is passed via the `x-api-key` header. | [optional] +**auth_token** | **str** | Bearer token for authentication. REST NAMESPACE ONLY This is passed via the `Authorization` header with the Bearer scheme (e.g., `Bearer <token>`). | [optional] + +## Example + +```python +from lance_namespace_urllib3_client.models.identity import Identity + +# TODO update the JSON string below +json = "{}" +# create an instance of Identity from a JSON string +identity_instance = Identity.from_json(json) +# print the JSON string representation of the object +print(Identity.to_json()) + +# convert the object into a dict +identity_dict = identity_instance.to_dict() +# create an instance of Identity from a dict +identity_from_dict = Identity.from_dict(identity_dict) +``` +[[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/python/lance_namespace_urllib3_client/docs/InsertIntoTableRequest.md b/python/lance_namespace_urllib3_client/docs/InsertIntoTableRequest.md index 661d3ac2..78ea1715 100644 --- a/python/lance_namespace_urllib3_client/docs/InsertIntoTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/InsertIntoTableRequest.md @@ -6,6 +6,7 @@ Request for inserting records into a table, excluding the Arrow IPC stream. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 81db2a4f..8d9df311 100644 --- a/python/lance_namespace_urllib3_client/docs/ListNamespacesRequest.md +++ b/python/lance_namespace_urllib3_client/docs/ListNamespacesRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 dfd700a6..09b06a37 100644 --- a/python/lance_namespace_urllib3_client/docs/ListTableIndicesRequest.md +++ b/python/lance_namespace_urllib3_client/docs/ListTableIndicesRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 f518825b..fb81d7a3 100644 --- a/python/lance_namespace_urllib3_client/docs/ListTableTagsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/ListTableTagsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 7508825f..7fa0c72a 100644 --- a/python/lance_namespace_urllib3_client/docs/ListTableVersionsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/ListTableVersionsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 7fa311f4..acc0a10d 100644 --- a/python/lance_namespace_urllib3_client/docs/ListTablesRequest.md +++ b/python/lance_namespace_urllib3_client/docs/ListTablesRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 06c11e70..8783bbf9 100644 --- a/python/lance_namespace_urllib3_client/docs/MergeInsertIntoTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/MergeInsertIntoTableRequest.md @@ -6,6 +6,7 @@ Request for merging or inserting records into a table, excluding the Arrow IPC s Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 ea26b578..befac04f 100644 --- a/python/lance_namespace_urllib3_client/docs/NamespaceExistsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/NamespaceExistsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 0fea4a8d..bb69686b 100644 --- a/python/lance_namespace_urllib3_client/docs/QueryTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/QueryTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 3ab70bbe..143c5485 100644 --- a/python/lance_namespace_urllib3_client/docs/RegisterTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/RegisterTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 01f71eca..91ff9e24 100644 --- a/python/lance_namespace_urllib3_client/docs/RenameTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/RenameTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 feb8a4ed..ff8bed95 100644 --- a/python/lance_namespace_urllib3_client/docs/RestoreTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/RestoreTableRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 37dad639..c5e79a29 100644 --- a/python/lance_namespace_urllib3_client/docs/TableExistsRequest.md +++ b/python/lance_namespace_urllib3_client/docs/TableExistsRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 79b15f01..bdebe715 100644 --- a/python/lance_namespace_urllib3_client/docs/UpdateTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/UpdateTableRequest.md @@ -6,6 +6,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] **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 ba873db6..3a316c7e 100644 --- a/python/lance_namespace_urllib3_client/docs/UpdateTableSchemaMetadataRequest.md +++ b/python/lance_namespace_urllib3_client/docs/UpdateTableSchemaMetadataRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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 3e2e0cec..c646d190 100644 --- a/python/lance_namespace_urllib3_client/docs/UpdateTableTagRequest.md +++ b/python/lance_namespace_urllib3_client/docs/UpdateTableTagRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | [**Identity**](Identity.md) | | [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/__init__.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/__init__.py index 952d4dec..3ced1fc6 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/__init__.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/__init__.py @@ -100,6 +100,7 @@ from lance_namespace_urllib3_client.models.get_table_stats_response import GetTableStatsResponse from lance_namespace_urllib3_client.models.get_table_tag_version_request import GetTableTagVersionRequest from lance_namespace_urllib3_client.models.get_table_tag_version_response import GetTableTagVersionResponse +from lance_namespace_urllib3_client.models.identity import Identity from lance_namespace_urllib3_client.models.index_content import IndexContent from lance_namespace_urllib3_client.models.insert_into_table_request import InsertIntoTableRequest from lance_namespace_urllib3_client.models.insert_into_table_response import InsertIntoTableResponse diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/__init__.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/__init__.py index 4dfa4b5e..e85e8f5c 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/__init__.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/__init__.py @@ -77,6 +77,7 @@ from lance_namespace_urllib3_client.models.get_table_stats_response import GetTableStatsResponse from lance_namespace_urllib3_client.models.get_table_tag_version_request import GetTableTagVersionRequest from lance_namespace_urllib3_client.models.get_table_tag_version_response import GetTableTagVersionResponse +from lance_namespace_urllib3_client.models.identity import Identity from lance_namespace_urllib3_client.models.index_content import IndexContent from lance_namespace_urllib3_client.models.insert_into_table_request import InsertIntoTableRequest from lance_namespace_urllib3_client.models.insert_into_table_response import InsertIntoTableResponse 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 b7605b45..b8df650d 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 @@ -19,6 +19,7 @@ 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 lance_namespace_urllib3_client.models.new_column_transform import NewColumnTransform from typing import Optional, Set from typing_extensions import Self @@ -27,9 +28,10 @@ class AlterTableAddColumnsRequest(BaseModel): """ AlterTableAddColumnsRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None new_columns: List[NewColumnTransform] = Field(description="List of new columns to add") - __properties: ClassVar[List[str]] = ["id", "new_columns"] + __properties: ClassVar[List[str]] = ["identity", "id", "new_columns"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +72,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in new_columns (list) _items = [] if self.new_columns: @@ -89,6 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 f78c9865..ebd59963 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from lance_namespace_urllib3_client.models.alter_columns_entry import AlterColumnsEntry +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -27,9 +28,10 @@ class AlterTableAlterColumnsRequest(BaseModel): """ AlterTableAlterColumnsRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None alterations: List[AlterColumnsEntry] = Field(description="List of column alterations to perform") - __properties: ClassVar[List[str]] = ["id", "alterations"] + __properties: ClassVar[List[str]] = ["identity", "id", "alterations"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +72,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in alterations (list) _items = [] if self.alterations: @@ -89,6 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 2e2c80ae..8d5ac6d7 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,9 +27,10 @@ class AlterTableDropColumnsRequest(BaseModel): """ AlterTableDropColumnsRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None columns: List[StrictStr] = Field(description="Names of columns to drop") - __properties: ClassVar[List[str]] = ["id", "columns"] + __properties: ClassVar[List[str]] = ["identity", "id", "columns"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +71,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -81,6 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 c683bbed..d548d39e 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 @@ -21,6 +21,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from lance_namespace_urllib3_client.models.alter_transaction_action import AlterTransactionAction +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -28,9 +29,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 id: Optional[List[StrictStr]] = None actions: Annotated[List[AlterTransactionAction], Field(min_length=1)] - __properties: ClassVar[List[str]] = ["id", "actions"] + __properties: ClassVar[List[str]] = ["identity", "id", "actions"] model_config = ConfigDict( populate_by_name=True, @@ -71,6 +73,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in actions (list) _items = [] if self.actions: @@ -90,6 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 662db939..878cb417 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated +from lance_namespace_urllib3_client.models.identity import Identity from lance_namespace_urllib3_client.models.query_table_request_columns import QueryTableRequestColumns from lance_namespace_urllib3_client.models.query_table_request_full_text_query import QueryTableRequestFullTextQuery from lance_namespace_urllib3_client.models.query_table_request_vector import QueryTableRequestVector @@ -30,6 +31,7 @@ class AnalyzeTableQueryPlanRequest(BaseModel): """ AnalyzeTableQueryPlanRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None bypass_vector_index: Optional[StrictBool] = Field(default=None, description="Whether to bypass vector index") columns: Optional[QueryTableRequestColumns] = None @@ -49,7 +51,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]] = ["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", "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, @@ -90,6 +92,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() # override the default output from pydantic by calling `to_dict()` of columns if self.columns: _dict['columns'] = self.columns.to_dict() @@ -111,6 +116,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 3c21723c..2b5a7cc6 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -27,10 +28,11 @@ class CountTableRowsRequest(BaseModel): """ CountTableRowsRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "version", "predicate"] + __properties: ClassVar[List[str]] = ["identity", "id", "version", "predicate"] model_config = ConfigDict( populate_by_name=True, @@ -71,6 +73,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -83,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 2bead8d6..59014d97 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,9 +27,10 @@ class CreateEmptyTableRequest(BaseModel): """ Request for creating an empty table. **Deprecated**: Use `DeclareTableRequest` instead. """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "location"] + __properties: ClassVar[List[str]] = ["identity", "id", "location"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +71,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -81,6 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 0971c3fd..25e69ef5 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,10 +27,11 @@ class CreateNamespaceRequest(BaseModel): """ CreateNamespaceRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "mode", "properties"] + __properties: ClassVar[List[str]] = ["identity", "id", "mode", "properties"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +72,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -82,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 e5975c93..b15a7c87 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -27,6 +28,7 @@ class CreateTableIndexRequest(BaseModel): """ CreateTableIndexRequest """ # noqa: E501 + identity: Optional[Identity] = None 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)") @@ -40,7 +42,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]] = ["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", "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, @@ -81,6 +83,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -93,6 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 c83ebf07..fbfda3ed 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,9 +27,10 @@ class CreateTableRequest(BaseModel): """ Request for creating a table, excluding the Arrow IPC stream. """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "mode"] + __properties: ClassVar[List[str]] = ["identity", "id", "mode"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +71,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -81,6 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 fff6d9b1..25317536 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -27,10 +28,11 @@ class CreateTableTagRequest(BaseModel): """ CreateTableTagRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "tag", "version"] + __properties: ClassVar[List[str]] = ["identity", "id", "tag", "version"] model_config = ConfigDict( populate_by_name=True, @@ -71,6 +73,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -83,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 55c904f7..3a463d1c 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,9 +27,10 @@ class DeclareTableRequest(BaseModel): """ Request for declaring a table. """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "location"] + __properties: ClassVar[List[str]] = ["identity", "id", "location"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +71,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -81,6 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 167f126e..4f4c2b3f 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,9 +27,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 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]] = ["id", "predicate"] + __properties: ClassVar[List[str]] = ["identity", "id", "predicate"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +71,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -81,6 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 c925117b..ca96eab8 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,9 +27,10 @@ class DeleteTableTagRequest(BaseModel): """ DeleteTableTagRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None tag: StrictStr = Field(description="Name of the tag to delete") - __properties: ClassVar[List[str]] = ["id", "tag"] + __properties: ClassVar[List[str]] = ["identity", "id", "tag"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +71,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -81,6 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 3fe9eb6f..7595d427 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 @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -26,8 +27,9 @@ class DeregisterTableRequest(BaseModel): """ The table content remains available in the storage. """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["id"] + __properties: ClassVar[List[str]] = ["identity", "id"] model_config = ConfigDict( populate_by_name=True, @@ -68,6 +70,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -80,6 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 f21c6a40..18367a7f 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 @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -26,8 +27,9 @@ class DescribeNamespaceRequest(BaseModel): """ DescribeNamespaceRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["id"] + __properties: ClassVar[List[str]] = ["identity", "id"] model_config = ConfigDict( populate_by_name=True, @@ -68,6 +70,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -80,6 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 b79dd28c..3a999749 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -27,10 +28,11 @@ class DescribeTableIndexStatsRequest(BaseModel): """ DescribeTableIndexStatsRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "version", "index_name"] + __properties: ClassVar[List[str]] = ["identity", "id", "version", "index_name"] model_config = ConfigDict( populate_by_name=True, @@ -71,6 +73,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -83,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 3aca7b3b..60c4f1ac 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -27,12 +28,13 @@ class DescribeTableRequest(BaseModel): """ DescribeTableRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "version", "with_table_uri", "load_detailed_metadata", "vend_credentials"] + __properties: ClassVar[List[str]] = ["identity", "id", "version", "with_table_uri", "load_detailed_metadata", "vend_credentials"] model_config = ConfigDict( populate_by_name=True, @@ -73,6 +75,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -85,6 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 91c02d77..75a75e17 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 @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -26,8 +27,9 @@ class DescribeTransactionRequest(BaseModel): """ DescribeTransactionRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["id"] + __properties: ClassVar[List[str]] = ["identity", "id"] model_config = ConfigDict( populate_by_name=True, @@ -68,6 +70,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -80,6 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 c1dc4975..a12213b1 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,10 +27,11 @@ class DropNamespaceRequest(BaseModel): """ DropNamespaceRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "mode", "behavior"] + __properties: ClassVar[List[str]] = ["identity", "id", "mode", "behavior"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +72,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -82,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 b92ac5f2..a1a222cf 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,9 +27,10 @@ class DropTableIndexRequest(BaseModel): """ DropTableIndexRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None index_name: Optional[StrictStr] = Field(default=None, description="Name of the index to drop") - __properties: ClassVar[List[str]] = ["id", "index_name"] + __properties: ClassVar[List[str]] = ["identity", "id", "index_name"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +71,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -81,6 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 165e6639..eaff2776 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 @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -26,8 +27,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 id: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["id"] + __properties: ClassVar[List[str]] = ["identity", "id"] model_config = ConfigDict( populate_by_name=True, @@ -68,6 +70,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -80,6 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 272ffa80..03218004 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 @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from lance_namespace_urllib3_client.models.identity import Identity from lance_namespace_urllib3_client.models.query_table_request import QueryTableRequest from typing import Optional, Set from typing_extensions import Self @@ -27,10 +28,11 @@ class ExplainTableQueryPlanRequest(BaseModel): """ ExplainTableQueryPlanRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None query: QueryTableRequest verbose: Optional[StrictBool] = Field(default=False, description="Whether to return verbose explanation") - __properties: ClassVar[List[str]] = ["id", "query", "verbose"] + __properties: ClassVar[List[str]] = ["identity", "id", "query", "verbose"] model_config = ConfigDict( populate_by_name=True, @@ -71,6 +73,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() # override the default output from pydantic by calling `to_dict()` of query if self.query: _dict['query'] = self.query.to_dict() @@ -86,6 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 68d34bc0..887755a1 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 @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -26,8 +27,9 @@ class GetTableStatsRequest(BaseModel): """ GetTableStatsRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["id"] + __properties: ClassVar[List[str]] = ["identity", "id"] model_config = ConfigDict( populate_by_name=True, @@ -68,6 +70,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -80,6 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 6412a0a7..575d1641 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,9 +27,10 @@ class GetTableTagVersionRequest(BaseModel): """ GetTableTagVersionRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None tag: StrictStr = Field(description="Name of the tag to get version for") - __properties: ClassVar[List[str]] = ["id", "tag"] + __properties: ClassVar[List[str]] = ["identity", "id", "tag"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +71,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -81,6 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "id": obj.get("id"), "tag": obj.get("tag") }) diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/identity.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/identity.py new file mode 100644 index 00000000..4822cfbd --- /dev/null +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/identity.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Identity(BaseModel): + """ + Identity information of a request. + """ # noqa: E501 + api_key: Optional[StrictStr] = Field(default=None, description="API key for authentication. REST NAMESPACE ONLY This is passed via the `x-api-key` header. ") + auth_token: Optional[StrictStr] = Field(default=None, description="Bearer token for authentication. REST NAMESPACE ONLY This is passed via the `Authorization` header with the Bearer scheme (e.g., `Bearer `). ") + __properties: ClassVar[List[str]] = ["api_key", "auth_token"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Identity from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Identity from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "api_key": obj.get("api_key"), + "auth_token": obj.get("auth_token") + }) + return _obj + + 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 0bffba87..b3b948c6 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,9 +27,10 @@ class InsertIntoTableRequest(BaseModel): """ Request for inserting records into a table, excluding the Arrow IPC stream. """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "mode"] + __properties: ClassVar[List[str]] = ["identity", "id", "mode"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +71,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -81,6 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 1e2599d1..301d69c9 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 @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -26,10 +27,11 @@ class ListNamespacesRequest(BaseModel): """ ListNamespacesRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "page_token", "limit"] + __properties: ClassVar[List[str]] = ["identity", "id", "page_token", "limit"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +72,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -82,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 e5015499..522388eb 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -27,11 +28,12 @@ class ListTableIndicesRequest(BaseModel): """ ListTableIndicesRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "version", "page_token", "limit"] + __properties: ClassVar[List[str]] = ["identity", "id", "version", "page_token", "limit"] model_config = ConfigDict( populate_by_name=True, @@ -72,6 +74,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -84,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 5e43392b..21e3b410 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 @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -26,10 +27,11 @@ class ListTableTagsRequest(BaseModel): """ ListTableTagsRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "page_token", "limit"] + __properties: ClassVar[List[str]] = ["identity", "id", "page_token", "limit"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +72,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -82,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 64e768c6..9473a89c 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 @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -26,10 +27,11 @@ class ListTableVersionsRequest(BaseModel): """ ListTableVersionsRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "page_token", "limit"] + __properties: ClassVar[List[str]] = ["identity", "id", "page_token", "limit"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +72,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -82,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 76153043..7cc93ede 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 @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -26,10 +27,11 @@ class ListTablesRequest(BaseModel): """ ListTablesRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "page_token", "limit"] + __properties: ClassVar[List[str]] = ["identity", "id", "page_token", "limit"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +72,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -82,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 0b48de3f..0ab689bd 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 @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -26,6 +27,7 @@ class MergeInsertIntoTableRequest(BaseModel): """ Request for merging or inserting records into a table, excluding the Arrow IPC stream. """ # noqa: E501 + identity: Optional[Identity] = None 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") @@ -35,7 +37,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]] = ["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", "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, @@ -76,6 +78,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -88,6 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 fb2d7537..943fcd25 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 @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -26,8 +27,9 @@ class NamespaceExistsRequest(BaseModel): """ NamespaceExistsRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["id"] + __properties: ClassVar[List[str]] = ["identity", "id"] model_config = ConfigDict( populate_by_name=True, @@ -68,6 +70,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -80,6 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 729ed122..1df81115 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated +from lance_namespace_urllib3_client.models.identity import Identity from lance_namespace_urllib3_client.models.query_table_request_columns import QueryTableRequestColumns from lance_namespace_urllib3_client.models.query_table_request_full_text_query import QueryTableRequestFullTextQuery from lance_namespace_urllib3_client.models.query_table_request_vector import QueryTableRequestVector @@ -30,6 +31,7 @@ class QueryTableRequest(BaseModel): """ QueryTableRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None bypass_vector_index: Optional[StrictBool] = Field(default=None, description="Whether to bypass vector index") columns: Optional[QueryTableRequestColumns] = None @@ -49,7 +51,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]] = ["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", "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, @@ -90,6 +92,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() # override the default output from pydantic by calling `to_dict()` of columns if self.columns: _dict['columns'] = self.columns.to_dict() @@ -111,6 +116,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 6b6f2045..5c66c8cc 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,11 +27,12 @@ class RegisterTableRequest(BaseModel): """ RegisterTableRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "location", "mode", "properties"] + __properties: ClassVar[List[str]] = ["identity", "id", "location", "mode", "properties"] model_config = ConfigDict( populate_by_name=True, @@ -71,6 +73,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -83,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 4e514a27..75a5c0a4 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,10 +27,11 @@ class RenameTableRequest(BaseModel): """ RenameTableRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "new_table_name", "new_namespace_id"] + __properties: ClassVar[List[str]] = ["identity", "id", "new_table_name", "new_namespace_id"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +72,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -82,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 96fde003..3d1ca4b9 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -27,9 +28,10 @@ class RestoreTableRequest(BaseModel): """ RestoreTableRequest """ # noqa: E501 + identity: Optional[Identity] = None id: Optional[List[StrictStr]] = None version: Annotated[int, Field(strict=True, ge=0)] = Field(description="Version to restore to") - __properties: ClassVar[List[str]] = ["id", "version"] + __properties: ClassVar[List[str]] = ["identity", "id", "version"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +72,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -82,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 1e2ceb13..87b4b3f2 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -27,9 +28,10 @@ class TableExistsRequest(BaseModel): """ TableExistsRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "version"] + __properties: ClassVar[List[str]] = ["identity", "id", "version"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +72,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -82,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 4e0a28f1..cbd6f58b 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -27,10 +28,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 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]] = ["id", "predicate", "updates"] + __properties: ClassVar[List[str]] = ["identity", "id", "predicate", "updates"] model_config = ConfigDict( populate_by_name=True, @@ -71,6 +73,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -83,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 78d1294f..9f455f53 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 @@ -19,6 +19,7 @@ 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 from typing_extensions import Self @@ -26,9 +27,10 @@ class UpdateTableSchemaMetadataRequest(BaseModel): """ UpdateTableSchemaMetadataRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "metadata"] + __properties: ClassVar[List[str]] = ["identity", "id", "metadata"] model_config = ConfigDict( populate_by_name=True, @@ -69,6 +71,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -81,6 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 d76de8c2..21587728 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 @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from lance_namespace_urllib3_client.models.identity import Identity from typing import Optional, Set from typing_extensions import Self @@ -27,10 +28,11 @@ class UpdateTableTagRequest(BaseModel): """ UpdateTableTagRequest """ # noqa: E501 + identity: Optional[Identity] = None 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]] = ["id", "tag", "version"] + __properties: ClassVar[List[str]] = ["identity", "id", "tag", "version"] model_config = ConfigDict( populate_by_name=True, @@ -71,6 +73,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of identity + if self.identity: + _dict['identity'] = self.identity.to_dict() return _dict @classmethod @@ -83,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "identity": Identity.from_dict(obj["identity"]) if obj.get("identity") is not None else None, "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 03268078..684e871d 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> AlterTableAddColumnsRequest: model = AlterTableAddColumnsRequest() if include_optional: return AlterTableAddColumnsRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 8bfbf0ea..04edd753 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> AlterTableAlterColumnsRequest: model = AlterTableAlterColumnsRequest() if include_optional: return AlterTableAlterColumnsRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 28a19eb0..40d80526 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> AlterTableDropColumnsRequest: model = AlterTableDropColumnsRequest() if include_optional: return AlterTableDropColumnsRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 10e884a5..b0ee928c 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> AlterTransactionRequest: model = AlterTransactionRequest() if include_optional: return AlterTransactionRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 3d8b1509..d7b2bdb5 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> AnalyzeTableQueryPlanRequest: model = AnalyzeTableQueryPlanRequest() if include_optional: return AnalyzeTableQueryPlanRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 c19993dc..49143eb5 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> CountTableRowsRequest: model = CountTableRowsRequest() if include_optional: return CountTableRowsRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 ccb2e4ff..12e9c9f9 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> CreateEmptyTableRequest: model = CreateEmptyTableRequest() if include_optional: return CreateEmptyTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 398cc1e3..fd4d2075 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> CreateNamespaceRequest: model = CreateNamespaceRequest() if include_optional: return CreateNamespaceRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 ad1eccd4..381ea599 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> CreateTableIndexRequest: model = CreateTableIndexRequest() if include_optional: return CreateTableIndexRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 a10fd6c2..6980a32f 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> CreateTableRequest: model = CreateTableRequest() if include_optional: return CreateTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 950c1ed8..3d7c128c 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> CreateTableTagRequest: model = CreateTableTagRequest() if include_optional: return CreateTableTagRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 ab863d41..ebbabe3d 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> DeclareTableRequest: model = DeclareTableRequest() if include_optional: return DeclareTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 137d2701..46599a0a 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> DeleteFromTableRequest: model = DeleteFromTableRequest() if include_optional: return DeleteFromTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 566c86a9..b4e91a06 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> DeleteTableTagRequest: model = DeleteTableTagRequest() if include_optional: return DeleteTableTagRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 5558b391..ec5f3cf7 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> DeregisterTableRequest: model = DeregisterTableRequest() if include_optional: return DeregisterTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 f8297a94..7d2fa924 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> DescribeNamespaceRequest: model = DescribeNamespaceRequest() if include_optional: return DescribeNamespaceRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 5f7e13f5..bee352a1 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> DescribeTableIndexStatsRequest: model = DescribeTableIndexStatsRequest() if include_optional: return DescribeTableIndexStatsRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 4d61aa92..5d49bf88 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> DescribeTableRequest: model = DescribeTableRequest() if include_optional: return DescribeTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 d8d6c5b4..f6e4d257 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> DescribeTransactionRequest: model = DescribeTransactionRequest() if include_optional: return DescribeTransactionRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 a3768815..a09c0adc 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> DropNamespaceRequest: model = DropNamespaceRequest() if include_optional: return DropNamespaceRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 a88eb6fd..41b631ab 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> DropTableIndexRequest: model = DropTableIndexRequest() if include_optional: return DropTableIndexRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 69f80b21..bb6110e1 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> DropTableRequest: model = DropTableRequest() if include_optional: return DropTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 5a13be68..2997ccba 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 @@ -35,10 +35,16 @@ def make_instance(self, include_optional) -> ExplainTableQueryPlanRequest: model = ExplainTableQueryPlanRequest() if include_optional: return ExplainTableQueryPlanRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), id = [ '' ], query = lance_namespace_urllib3_client.models.query_table_request.QueryTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), id = [ '' ], @@ -133,6 +139,9 @@ def make_instance(self, include_optional) -> ExplainTableQueryPlanRequest: else: return ExplainTableQueryPlanRequest( query = lance_namespace_urllib3_client.models.query_table_request.QueryTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 57d3b878..bf9aae17 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> GetTableStatsRequest: model = GetTableStatsRequest() if include_optional: return GetTableStatsRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 d634ddd8..09cc8bd8 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> GetTableTagVersionRequest: model = GetTableTagVersionRequest() if include_optional: return GetTableTagVersionRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), id = [ '' ], diff --git a/python/lance_namespace_urllib3_client/test/test_identity.py b/python/lance_namespace_urllib3_client/test/test_identity.py new file mode 100644 index 00000000..ba972606 --- /dev/null +++ b/python/lance_namespace_urllib3_client/test/test_identity.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Lance Namespace Specification + + This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from lance_namespace_urllib3_client.models.identity import Identity + +class TestIdentity(unittest.TestCase): + """Identity unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Identity: + """Test Identity + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Identity` + """ + model = Identity() + if include_optional: + return Identity( + api_key = '', + auth_token = '' + ) + else: + return Identity( + ) + """ + + def testIdentity(self): + """Test Identity""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() 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 cb4f407f..478ba399 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> InsertIntoTableRequest: model = InsertIntoTableRequest() if include_optional: return InsertIntoTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 afa13dd4..46682c6b 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> ListNamespacesRequest: model = ListNamespacesRequest() if include_optional: return ListNamespacesRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 acf16cca..e2431cb9 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> ListTableIndicesRequest: model = ListTableIndicesRequest() if include_optional: return ListTableIndicesRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 2c5c2a21..c914153b 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> ListTableTagsRequest: model = ListTableTagsRequest() if include_optional: return ListTableTagsRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 5fc48d9c..8fb29aec 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> ListTableVersionsRequest: model = ListTableVersionsRequest() if include_optional: return ListTableVersionsRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 9da2fd4e..2b9c821c 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> ListTablesRequest: model = ListTablesRequest() if include_optional: return ListTablesRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 9f5137c9..bb8d7509 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> MergeInsertIntoTableRequest: model = MergeInsertIntoTableRequest() if include_optional: return MergeInsertIntoTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 b4453348..ff4ec0c9 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> NamespaceExistsRequest: model = NamespaceExistsRequest() if include_optional: return NamespaceExistsRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 916a89de..4f797a49 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> QueryTableRequest: model = QueryTableRequest() if include_optional: return QueryTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 724ab667..d1ac9843 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> RegisterTableRequest: model = RegisterTableRequest() if include_optional: return RegisterTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 5681353b..d8e84931 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> RenameTableRequest: model = RenameTableRequest() if include_optional: return RenameTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 261dd119..aae06903 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> RestoreTableRequest: model = RestoreTableRequest() if include_optional: return RestoreTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 1451f2a1..529067b3 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> TableExistsRequest: model = TableExistsRequest() if include_optional: return TableExistsRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 1637fd2d..adfbf777 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> UpdateTableRequest: model = UpdateTableRequest() if include_optional: return UpdateTableRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 750b9b09..b3e367da 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> UpdateTableSchemaMetadataRequest: model = UpdateTableSchemaMetadataRequest() if include_optional: return UpdateTableSchemaMetadataRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), 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 66807d44..b7f3a70d 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 @@ -35,6 +35,9 @@ def make_instance(self, include_optional) -> UpdateTableTagRequest: model = UpdateTableTagRequest() if include_optional: return UpdateTableTagRequest( + identity = lance_namespace_urllib3_client.models.identity.Identity( + api_key = '', + auth_token = '', ), id = [ '' ], diff --git a/rust/lance-namespace-reqwest-client/README.md b/rust/lance-namespace-reqwest-client/README.md index a144b922..cf63a282 100644 --- a/rust/lance-namespace-reqwest-client/README.md +++ b/rust/lance-namespace-reqwest-client/README.md @@ -198,6 +198,7 @@ Class | Method | HTTP request | Description - [GetTableStatsResponse](docs/GetTableStatsResponse.md) - [GetTableTagVersionRequest](docs/GetTableTagVersionRequest.md) - [GetTableTagVersionResponse](docs/GetTableTagVersionResponse.md) + - [Identity](docs/Identity.md) - [IndexContent](docs/IndexContent.md) - [InsertIntoTableRequest](docs/InsertIntoTableRequest.md) - [InsertIntoTableResponse](docs/InsertIntoTableResponse.md) diff --git a/rust/lance-namespace-reqwest-client/docs/AlterTableAddColumnsRequest.md b/rust/lance-namespace-reqwest-client/docs/AlterTableAddColumnsRequest.md index 33e1b66a..e0a84ed1 100644 --- a/rust/lance-namespace-reqwest-client/docs/AlterTableAddColumnsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/AlterTableAddColumnsRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 48851a97..71b2512e 100644 --- a/rust/lance-namespace-reqwest-client/docs/AlterTableAlterColumnsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/AlterTableAlterColumnsRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 6c222aec..ed9ad12c 100644 --- a/rust/lance-namespace-reqwest-client/docs/AlterTableDropColumnsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/AlterTableDropColumnsRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 5ac69a9f..fdefa329 100644 --- a/rust/lance-namespace-reqwest-client/docs/AlterTransactionRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/AlterTransactionRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 7d4f5bfd..beb72d96 100644 --- a/rust/lance-namespace-reqwest-client/docs/AnalyzeTableQueryPlanRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/AnalyzeTableQueryPlanRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 724c409f..1c4d910e 100644 --- a/rust/lance-namespace-reqwest-client/docs/CountTableRowsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CountTableRowsRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 538b4e7c..9842a905 100644 --- a/rust/lance-namespace-reqwest-client/docs/CreateEmptyTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CreateEmptyTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 8741731c..8b217adb 100644 --- a/rust/lance-namespace-reqwest-client/docs/CreateNamespaceRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CreateNamespaceRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 57069fb0..dcea2ec2 100644 --- a/rust/lance-namespace-reqwest-client/docs/CreateTableIndexRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CreateTableIndexRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 afb6f962..26fffc38 100644 --- a/rust/lance-namespace-reqwest-client/docs/CreateTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CreateTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 7a326637..5619c180 100644 --- a/rust/lance-namespace-reqwest-client/docs/CreateTableTagRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CreateTableTagRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 ab4741e8..260bf2fe 100644 --- a/rust/lance-namespace-reqwest-client/docs/DeclareTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DeclareTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 501be880..7e234f32 100644 --- a/rust/lance-namespace-reqwest-client/docs/DeleteFromTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DeleteFromTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 05a4a313..6636d18e 100644 --- a/rust/lance-namespace-reqwest-client/docs/DeleteTableTagRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DeleteTableTagRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 33df71cb..40d0a448 100644 --- a/rust/lance-namespace-reqwest-client/docs/DeregisterTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DeregisterTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 f15353bc..bfdb8c91 100644 --- a/rust/lance-namespace-reqwest-client/docs/DescribeNamespaceRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DescribeNamespaceRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 76fc4e0c..2215167b 100644 --- a/rust/lance-namespace-reqwest-client/docs/DescribeTableIndexStatsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DescribeTableIndexStatsRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 92a3ec43..e6e87771 100644 --- a/rust/lance-namespace-reqwest-client/docs/DescribeTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DescribeTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 a51d9b37..08bdf87d 100644 --- a/rust/lance-namespace-reqwest-client/docs/DescribeTransactionRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DescribeTransactionRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 c71e480f..1f37b205 100644 --- a/rust/lance-namespace-reqwest-client/docs/DropNamespaceRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DropNamespaceRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 5e641d6a..bb596ac3 100644 --- a/rust/lance-namespace-reqwest-client/docs/DropTableIndexRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DropTableIndexRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 1d549dd9..b44caf86 100644 --- a/rust/lance-namespace-reqwest-client/docs/DropTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DropTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 d199438a..951510f4 100644 --- a/rust/lance-namespace-reqwest-client/docs/ExplainTableQueryPlanRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/ExplainTableQueryPlanRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 b4ebdb13..32cecea5 100644 --- a/rust/lance-namespace-reqwest-client/docs/GetTableStatsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/GetTableStatsRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 03242c89..6732e248 100644 --- a/rust/lance-namespace-reqwest-client/docs/GetTableTagVersionRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/GetTableTagVersionRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [optional] **id** | Option<**Vec**> | | [optional] **tag** | **String** | Name of the tag to get version for | diff --git a/rust/lance-namespace-reqwest-client/docs/Identity.md b/rust/lance-namespace-reqwest-client/docs/Identity.md new file mode 100644 index 00000000..b1e4a7c3 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/docs/Identity.md @@ -0,0 +1,12 @@ +# Identity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_key** | Option<**String**> | API key for authentication. REST NAMESPACE ONLY This is passed via the `x-api-key` header. | [optional] +**auth_token** | Option<**String**> | Bearer token for authentication. REST NAMESPACE ONLY This is passed via the `Authorization` header with the Bearer scheme (e.g., `Bearer `). | [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/InsertIntoTableRequest.md b/rust/lance-namespace-reqwest-client/docs/InsertIntoTableRequest.md index 07ec512e..36ad47ec 100644 --- a/rust/lance-namespace-reqwest-client/docs/InsertIntoTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/InsertIntoTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 f7d2d179..8707cc98 100644 --- a/rust/lance-namespace-reqwest-client/docs/ListNamespacesRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/ListNamespacesRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 b3bc81f6..7fe9174d 100644 --- a/rust/lance-namespace-reqwest-client/docs/ListTableIndicesRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/ListTableIndicesRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 f167447c..025ada65 100644 --- a/rust/lance-namespace-reqwest-client/docs/ListTableTagsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/ListTableTagsRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 8ad0b1d6..c707853b 100644 --- a/rust/lance-namespace-reqwest-client/docs/ListTableVersionsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/ListTableVersionsRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 aa56f1f3..68b735ff 100644 --- a/rust/lance-namespace-reqwest-client/docs/ListTablesRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/ListTablesRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 50e5a73f..8a5f03b7 100644 --- a/rust/lance-namespace-reqwest-client/docs/MergeInsertIntoTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/MergeInsertIntoTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 247ac235..68ba5c66 100644 --- a/rust/lance-namespace-reqwest-client/docs/NamespaceExistsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/NamespaceExistsRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 1878dff9..c7c93d1d 100644 --- a/rust/lance-namespace-reqwest-client/docs/QueryTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/QueryTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 3108e575..45685950 100644 --- a/rust/lance-namespace-reqwest-client/docs/RegisterTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/RegisterTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 9ad70c6d..33e91a3c 100644 --- a/rust/lance-namespace-reqwest-client/docs/RenameTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/RenameTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 747d8376..1fe2d9e2 100644 --- a/rust/lance-namespace-reqwest-client/docs/RestoreTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/RestoreTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 561683ff..bfaeea2d 100644 --- a/rust/lance-namespace-reqwest-client/docs/TableExistsRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/TableExistsRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 4af2b480..911c32c2 100644 --- a/rust/lance-namespace-reqwest-client/docs/UpdateTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/UpdateTableRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 aa816eb0..6c02c0e9 100644 --- a/rust/lance-namespace-reqwest-client/docs/UpdateTableSchemaMetadataRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/UpdateTableSchemaMetadataRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 986b6ee6..e9cb8bf4 100644 --- a/rust/lance-namespace-reqwest-client/docs/UpdateTableTagRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/UpdateTableTagRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**identity** | Option<[**models::Identity**](Identity.md)> | | [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 9d55065e..fec8a476 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct AlterTableAddColumnsRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// List of new columns to add @@ -23,6 +25,7 @@ pub struct AlterTableAddColumnsRequest { impl AlterTableAddColumnsRequest { pub fn new(new_columns: Vec) -> AlterTableAddColumnsRequest { AlterTableAddColumnsRequest { + identity: 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 98eddd44..93cdc293 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct AlterTableAlterColumnsRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// List of column alterations to perform @@ -23,6 +25,7 @@ pub struct AlterTableAlterColumnsRequest { impl AlterTableAlterColumnsRequest { pub fn new(alterations: Vec) -> AlterTableAlterColumnsRequest { AlterTableAlterColumnsRequest { + identity: 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 7e2330da..3de2c111 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct AlterTableDropColumnsRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Names of columns to drop @@ -23,6 +25,7 @@ pub struct AlterTableDropColumnsRequest { impl AlterTableDropColumnsRequest { pub fn new(columns: Vec) -> AlterTableDropColumnsRequest { AlterTableDropColumnsRequest { + identity: 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 cb889090..824a94dc 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 @@ -14,6 +14,8 @@ use serde::{Deserialize, Serialize}; /// AlterTransactionRequest : Alter a transaction with a list of actions. The server should either succeed and apply all actions, or fail and apply no action. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct AlterTransactionRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, #[serde(rename = "actions")] @@ -24,6 +26,7 @@ impl AlterTransactionRequest { /// Alter a transaction with a list of actions. The server should either succeed and apply all actions, or fail and apply no action. pub fn new(actions: Vec) -> AlterTransactionRequest { AlterTransactionRequest { + identity: 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 a9be5b23..01002c89 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct AnalyzeTableQueryPlanRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Whether to bypass vector index @@ -71,6 +73,7 @@ pub struct AnalyzeTableQueryPlanRequest { impl AnalyzeTableQueryPlanRequest { pub fn new(k: i32, vector: models::QueryTableRequestVector) -> AnalyzeTableQueryPlanRequest { AnalyzeTableQueryPlanRequest { + identity: 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 222d60df..c8af74a1 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CountTableRowsRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: 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. @@ -26,6 +28,7 @@ pub struct CountTableRowsRequest { impl CountTableRowsRequest { pub fn new() -> CountTableRowsRequest { CountTableRowsRequest { + identity: 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 4f457a51..855c8098 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 @@ -14,6 +14,8 @@ use serde::{Deserialize, Serialize}; /// CreateEmptyTableRequest : Request for creating an empty table. **Deprecated**: Use `DeclareTableRequest` instead. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CreateEmptyTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: 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. @@ -25,6 +27,7 @@ impl CreateEmptyTableRequest { /// Request for creating an empty table. **Deprecated**: Use `DeclareTableRequest` instead. pub fn new() -> CreateEmptyTableRequest { CreateEmptyTableRequest { + identity: 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 e0d422ef..3582019e 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CreateNamespaceRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: 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. @@ -25,6 +27,7 @@ pub struct CreateNamespaceRequest { impl CreateNamespaceRequest { pub fn new() -> CreateNamespaceRequest { CreateNamespaceRequest { + identity: 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 f1ed3a8a..66c4646f 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CreateTableIndexRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Name of the column to create index on @@ -56,6 +58,7 @@ pub struct CreateTableIndexRequest { impl CreateTableIndexRequest { pub fn new(column: String, index_type: String) -> CreateTableIndexRequest { CreateTableIndexRequest { + identity: 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 466051ca..b6459664 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 @@ -14,6 +14,8 @@ use serde::{Deserialize, Serialize}; /// CreateTableRequest : Request for creating a table, excluding the Arrow IPC stream. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CreateTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: 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. @@ -25,6 +27,7 @@ impl CreateTableRequest { /// Request for creating a table, excluding the Arrow IPC stream. pub fn new() -> CreateTableRequest { CreateTableRequest { + identity: 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 36e572aa..3f64ebbd 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CreateTableTagRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Name of the tag to create @@ -26,6 +28,7 @@ pub struct CreateTableTagRequest { impl CreateTableTagRequest { pub fn new(tag: String, version: i64) -> CreateTableTagRequest { CreateTableTagRequest { + identity: 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 3a84d12d..9e079300 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 @@ -14,6 +14,8 @@ use serde::{Deserialize, Serialize}; /// DeclareTableRequest : Request for declaring a table. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DeclareTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: 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. @@ -25,6 +27,7 @@ impl DeclareTableRequest { /// Request for declaring a table. pub fn new() -> DeclareTableRequest { DeclareTableRequest { + identity: 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 47bea2a8..7bcacb39 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 @@ -14,6 +14,8 @@ use serde::{Deserialize, Serialize}; /// DeleteFromTableRequest : Delete data from table based on a SQL predicate. Returns the number of rows that were deleted. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DeleteFromTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, /// The namespace identifier #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, @@ -26,6 +28,7 @@ impl DeleteFromTableRequest { /// Delete data from table based on a SQL predicate. Returns the number of rows that were deleted. pub fn new(predicate: String) -> DeleteFromTableRequest { DeleteFromTableRequest { + identity: 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 31ba6459..3342b0a2 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DeleteTableTagRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Name of the tag to delete @@ -23,6 +25,7 @@ pub struct DeleteTableTagRequest { impl DeleteTableTagRequest { pub fn new(tag: String) -> DeleteTableTagRequest { DeleteTableTagRequest { + identity: 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 af04f16a..c95a757d 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 @@ -14,6 +14,8 @@ use serde::{Deserialize, Serialize}; /// DeregisterTableRequest : The table content remains available in the storage. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DeregisterTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, } @@ -22,6 +24,7 @@ impl DeregisterTableRequest { /// The table content remains available in the storage. pub fn new() -> DeregisterTableRequest { DeregisterTableRequest { + identity: 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 0e30319a..05383652 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DescribeNamespaceRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, } @@ -20,6 +22,7 @@ pub struct DescribeNamespaceRequest { impl DescribeNamespaceRequest { pub fn new() -> DescribeNamespaceRequest { DescribeNamespaceRequest { + identity: 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 22de8606..8a6dc1a8 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DescribeTableIndexStatsRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Optional table version to get stats for @@ -26,6 +28,7 @@ pub struct DescribeTableIndexStatsRequest { impl DescribeTableIndexStatsRequest { pub fn new() -> DescribeTableIndexStatsRequest { DescribeTableIndexStatsRequest { + identity: 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 ddcbd5ca..7189a1d9 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DescribeTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: 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. @@ -32,6 +34,7 @@ pub struct DescribeTableRequest { impl DescribeTableRequest { pub fn new() -> DescribeTableRequest { DescribeTableRequest { + identity: 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 1631b222..3b09f277 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DescribeTransactionRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, } @@ -20,6 +22,7 @@ pub struct DescribeTransactionRequest { impl DescribeTransactionRequest { pub fn new() -> DescribeTransactionRequest { DescribeTransactionRequest { + identity: 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 df8b4f4b..fbd02ae1 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DropNamespaceRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: 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. @@ -26,6 +28,7 @@ pub struct DropNamespaceRequest { impl DropNamespaceRequest { pub fn new() -> DropNamespaceRequest { DropNamespaceRequest { + identity: 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 1d96c109..420a1883 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DropTableIndexRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Name of the index to drop @@ -23,6 +25,7 @@ pub struct DropTableIndexRequest { impl DropTableIndexRequest { pub fn new() -> DropTableIndexRequest { DropTableIndexRequest { + identity: 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 f59cb125..8526b501 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 @@ -14,6 +14,8 @@ use serde::{Deserialize, Serialize}; /// DropTableRequest : 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. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DropTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, } @@ -22,6 +24,7 @@ impl DropTableRequest { /// 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. pub fn new() -> DropTableRequest { DropTableRequest { + identity: 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 546e9a02..f26428c3 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ExplainTableQueryPlanRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, #[serde(rename = "query")] @@ -25,6 +27,7 @@ pub struct ExplainTableQueryPlanRequest { impl ExplainTableQueryPlanRequest { pub fn new(query: models::QueryTableRequest) -> ExplainTableQueryPlanRequest { ExplainTableQueryPlanRequest { + identity: 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 98bb6c90..33196890 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct GetTableStatsRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, } @@ -20,6 +22,7 @@ pub struct GetTableStatsRequest { impl GetTableStatsRequest { pub fn new() -> GetTableStatsRequest { GetTableStatsRequest { + identity: 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 c2fd74aa..7c89df53 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct GetTableTagVersionRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Name of the tag to get version for @@ -23,6 +25,7 @@ pub struct GetTableTagVersionRequest { impl GetTableTagVersionRequest { pub fn new(tag: String) -> GetTableTagVersionRequest { GetTableTagVersionRequest { + identity: None, id: None, tag, } diff --git a/rust/lance-namespace-reqwest-client/src/models/identity.rs b/rust/lance-namespace-reqwest-client/src/models/identity.rs new file mode 100644 index 00000000..dfe1e647 --- /dev/null +++ b/rust/lance-namespace-reqwest-client/src/models/identity.rs @@ -0,0 +1,34 @@ +/* + * Lance Namespace Specification + * + * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts: The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details. The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// Identity : Identity information of a request. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Identity { + /// API key for authentication. REST NAMESPACE ONLY This is passed via the `x-api-key` header. + #[serde(rename = "api_key", skip_serializing_if = "Option::is_none")] + pub api_key: Option, + /// Bearer token for authentication. REST NAMESPACE ONLY This is passed via the `Authorization` header with the Bearer scheme (e.g., `Bearer `). + #[serde(rename = "auth_token", skip_serializing_if = "Option::is_none")] + pub auth_token: Option, +} + +impl Identity { + /// Identity information of a request. + pub fn new() -> Identity { + Identity { + api_key: None, + auth_token: None, + } + } +} + 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 c19d3cd6..1a9a1604 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 @@ -14,6 +14,8 @@ use serde::{Deserialize, Serialize}; /// InsertIntoTableRequest : Request for inserting records into a table, excluding the Arrow IPC stream. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct InsertIntoTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: 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 @@ -25,6 +27,7 @@ impl InsertIntoTableRequest { /// Request for inserting records into a table, excluding the Arrow IPC stream. pub fn new() -> InsertIntoTableRequest { InsertIntoTableRequest { + identity: 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 ca197dab..0686519b 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ListNamespacesRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: 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. @@ -26,6 +28,7 @@ pub struct ListNamespacesRequest { impl ListNamespacesRequest { pub fn new() -> ListNamespacesRequest { ListNamespacesRequest { + identity: 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 2dc6bca4..0a5f3184 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ListTableIndicesRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, /// The namespace identifier #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, @@ -30,6 +32,7 @@ pub struct ListTableIndicesRequest { impl ListTableIndicesRequest { pub fn new() -> ListTableIndicesRequest { ListTableIndicesRequest { + identity: 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 63f4b592..acad6006 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ListTableTagsRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, /// The table identifier #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, @@ -27,6 +29,7 @@ pub struct ListTableTagsRequest { impl ListTableTagsRequest { pub fn new() -> ListTableTagsRequest { ListTableTagsRequest { + identity: 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 ac407fdb..00392067 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ListTableVersionsRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: 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. @@ -26,6 +28,7 @@ pub struct ListTableVersionsRequest { impl ListTableVersionsRequest { pub fn new() -> ListTableVersionsRequest { ListTableVersionsRequest { + identity: 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 9be2fa99..44c1095e 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ListTablesRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: 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. @@ -26,6 +28,7 @@ pub struct ListTablesRequest { impl ListTablesRequest { pub fn new() -> ListTablesRequest { ListTablesRequest { + identity: 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 9bbdfb51..369ec20b 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 @@ -14,6 +14,8 @@ use serde::{Deserialize, Serialize}; /// MergeInsertIntoTableRequest : Request for merging or inserting records into a table, excluding the Arrow IPC stream. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct MergeInsertIntoTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Column name to use for matching rows (required) @@ -46,6 +48,7 @@ impl MergeInsertIntoTableRequest { /// Request for merging or inserting records into a table, excluding the Arrow IPC stream. pub fn new() -> MergeInsertIntoTableRequest { MergeInsertIntoTableRequest { + identity: None, id: None, on: None, when_matched_update_all: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/mod.rs b/rust/lance-namespace-reqwest-client/src/models/mod.rs index 91431507..d515fae0 100644 --- a/rust/lance-namespace-reqwest-client/src/models/mod.rs +++ b/rust/lance-namespace-reqwest-client/src/models/mod.rs @@ -124,6 +124,8 @@ pub mod get_table_tag_version_request; pub use self::get_table_tag_version_request::GetTableTagVersionRequest; pub mod get_table_tag_version_response; pub use self::get_table_tag_version_response::GetTableTagVersionResponse; +pub mod identity; +pub use self::identity::Identity; pub mod index_content; pub use self::index_content::IndexContent; pub mod insert_into_table_request; 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 173c9fc3..3ec7e6c6 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct NamespaceExistsRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, } @@ -20,6 +22,7 @@ pub struct NamespaceExistsRequest { impl NamespaceExistsRequest { pub fn new() -> NamespaceExistsRequest { NamespaceExistsRequest { + identity: 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 bbf70d84..e7d4f8e0 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct QueryTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Whether to bypass vector index @@ -71,6 +73,7 @@ pub struct QueryTableRequest { impl QueryTableRequest { pub fn new(k: i32, vector: models::QueryTableRequestVector) -> QueryTableRequest { QueryTableRequest { + identity: 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 8d8b4c1d..1499c853 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct RegisterTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, #[serde(rename = "location")] @@ -27,6 +29,7 @@ pub struct RegisterTableRequest { impl RegisterTableRequest { pub fn new(location: String) -> RegisterTableRequest { RegisterTableRequest { + identity: 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 b60c4c6f..7a24d2fd 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct RenameTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, /// The table identifier #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, @@ -27,6 +29,7 @@ pub struct RenameTableRequest { impl RenameTableRequest { pub fn new(new_table_name: String) -> RenameTableRequest { RenameTableRequest { + identity: 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 d77c9fe0..ac1db84c 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct RestoreTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Version to restore to @@ -23,6 +25,7 @@ pub struct RestoreTableRequest { impl RestoreTableRequest { pub fn new(version: i64) -> RestoreTableRequest { RestoreTableRequest { + identity: 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 0fd1fe9d..af29f0e4 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct TableExistsRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: 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. @@ -23,6 +25,7 @@ pub struct TableExistsRequest { impl TableExistsRequest { pub fn new() -> TableExistsRequest { TableExistsRequest { + identity: 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 8ac47a6a..8ae36d35 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 @@ -14,6 +14,8 @@ use serde::{Deserialize, Serialize}; /// UpdateTableRequest : 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. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct UpdateTableRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Optional SQL predicate to filter rows for update @@ -28,6 +30,7 @@ impl UpdateTableRequest { /// 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. pub fn new(updates: Vec>) -> UpdateTableRequest { UpdateTableRequest { + identity: 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 6f502fd8..7c8f0b92 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct UpdateTableSchemaMetadataRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, /// The table identifier #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, @@ -24,6 +26,7 @@ pub struct UpdateTableSchemaMetadataRequest { impl UpdateTableSchemaMetadataRequest { pub fn new() -> UpdateTableSchemaMetadataRequest { UpdateTableSchemaMetadataRequest { + identity: 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 e9e81b47..57893fea 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 @@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct UpdateTableTagRequest { + #[serde(rename = "identity", skip_serializing_if = "Option::is_none")] + pub identity: Option>, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option>, /// Name of the tag to update @@ -26,6 +28,7 @@ pub struct UpdateTableTagRequest { impl UpdateTableTagRequest { pub fn new(tag: String, version: i64) -> UpdateTableTagRequest { UpdateTableTagRequest { + identity: None, id: None, tag, version,