diff --git a/docs/src/operations/models/AlterTransactionResponse.md b/docs/src/operations/models/AlterTransactionResponse.md index 65cfad1fe..26dad8c45 100644 --- a/docs/src/operations/models/AlterTransactionResponse.md +++ b/docs/src/operations/models/AlterTransactionResponse.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **TransactionStatus** | | | +|**status** | **String** | The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled | | |**properties** | **Map<String, String>** | | [optional] | diff --git a/docs/src/operations/models/AlterTransactionSetProperty.md b/docs/src/operations/models/AlterTransactionSetProperty.md index 44e32cd6f..e9cf8efca 100644 --- a/docs/src/operations/models/AlterTransactionSetProperty.md +++ b/docs/src/operations/models/AlterTransactionSetProperty.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**key** | **String** | | [optional] | |**value** | **String** | | [optional] | -|**mode** | **SetPropertyMode** | | [optional] | +|**mode** | **String** | The behavior if the property key already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Overwrite (default): overwrite the existing value with the provided value - Fail: fail the entire operation - Skip: keep the existing value and skip setting the provided value | [optional] | diff --git a/docs/src/operations/models/AlterTransactionSetStatus.md b/docs/src/operations/models/AlterTransactionSetStatus.md index a86375ab8..faf8aef9b 100644 --- a/docs/src/operations/models/AlterTransactionSetStatus.md +++ b/docs/src/operations/models/AlterTransactionSetStatus.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **TransactionStatus** | | [optional] | +|**status** | **String** | The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled | [optional] | diff --git a/docs/src/operations/models/AlterTransactionUnsetProperty.md b/docs/src/operations/models/AlterTransactionUnsetProperty.md index 921d0a826..67fbe94db 100644 --- a/docs/src/operations/models/AlterTransactionUnsetProperty.md +++ b/docs/src/operations/models/AlterTransactionUnsetProperty.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**key** | **String** | | [optional] | -|**mode** | **UnsetPropertyMode** | | [optional] | +|**mode** | **String** | The behavior if the property key to unset does not exist. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Skip (default): skip the property to unset - Fail: fail the entire operation | [optional] | diff --git a/docs/src/operations/models/CreateNamespaceRequest.md b/docs/src/operations/models/CreateNamespaceRequest.md index ad4fe063a..8f3d1c368 100644 --- a/docs/src/operations/models/CreateNamespaceRequest.md +++ b/docs/src/operations/models/CreateNamespaceRequest.md @@ -8,18 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**id** | **List<String>** | | [optional] | -|**mode** | [**ModeEnum**](#ModeEnum) | There are three modes when trying to create a namespace, to differentiate the behavior when a namespace of the same name already exists: * create: the operation fails with 409. * exist_ok: 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] | +|**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] | -## Enum: ModeEnum - -| Name | Value | -|---- | -----| -| CREATE | "create" | -| EXIST_OK | "exist_ok" | -| OVERWRITE | "overwrite" | - - - diff --git a/docs/src/operations/models/CreateTableRequest.md b/docs/src/operations/models/CreateTableRequest.md index 17948e584..9d35c375c 100644 --- a/docs/src/operations/models/CreateTableRequest.md +++ b/docs/src/operations/models/CreateTableRequest.md @@ -9,17 +9,7 @@ Request for creating a table, excluding the Arrow IPC stream. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**id** | **List<String>** | | [optional] | -|**mode** | [**ModeEnum**](#ModeEnum) | There are three modes when trying to create a table, to differentiate the behavior when a table of the same name already exists: * 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] | - - - -## Enum: ModeEnum - -| Name | Value | -|---- | -----| -| CREATE | "Create" | -| EXIST_OK | "ExistOk" | -| OVERWRITE | "Overwrite" | +|**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/operations/models/DescribeNamespaceResponse.md b/docs/src/operations/models/DescribeNamespaceResponse.md index d0e3a4d8d..44b52ed56 100644 --- a/docs/src/operations/models/DescribeNamespaceResponse.md +++ b/docs/src/operations/models/DescribeNamespaceResponse.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**id** | **List<String>** | The namespace identifier as a list of parts | | |**properties** | **Map<String, String>** | Properties stored on the namespace, if supported by the server. If the server does not support namespace properties, it should return null for this field. If namespace properties are supported, but none are set, it should return an empty object. | [optional] | diff --git a/docs/src/operations/models/DescribeTransactionResponse.md b/docs/src/operations/models/DescribeTransactionResponse.md index 434343519..3c496cbc4 100644 --- a/docs/src/operations/models/DescribeTransactionResponse.md +++ b/docs/src/operations/models/DescribeTransactionResponse.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **TransactionStatus** | | | +|**status** | **String** | The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled | | |**properties** | **Map<String, String>** | | [optional] | diff --git a/docs/src/operations/models/DropNamespaceRequest.md b/docs/src/operations/models/DropNamespaceRequest.md index 9d3f67ec7..072ed7098 100644 --- a/docs/src/operations/models/DropNamespaceRequest.md +++ b/docs/src/operations/models/DropNamespaceRequest.md @@ -8,26 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**id** | **List<String>** | | [optional] | -|**mode** | [**ModeEnum**](#ModeEnum) | The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. - FAIL (default): the server must return 400 indicating the namespace to drop does not exist. - SKIP: the server must return 204 indicating the drop operation has succeeded. | [optional] | -|**behavior** | [**BehaviorEnum**](#BehaviorEnum) | The behavior for dropping a namespace. - RESTRICT (default): the namespace should not contain any table or child namespace when drop is initiated. If tables are found, the server should return error and not drop the namespace. - CASCADE: all tables and child namespaces in the namespace are dropped before the namespace is dropped. | [optional] | - - - -## Enum: ModeEnum - -| Name | Value | -|---- | -----| -| SKIP | "SKIP" | -| FAIL | "FAIL" | - - - -## Enum: BehaviorEnum - -| Name | Value | -|---- | -----| -| RESTRICT | "RESTRICT" | -| CASCADE | "CASCADE" | +|**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/operations/models/DropNamespaceResponse.md b/docs/src/operations/models/DropNamespaceResponse.md index a065e9358..faa225d7f 100644 --- a/docs/src/operations/models/DropNamespaceResponse.md +++ b/docs/src/operations/models/DropNamespaceResponse.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**properties** | **Map<String, String>** | | [optional] | -|**transactionId** | **List<String>** | If present, indicating the operation is long running and should be tracked using GetTransaction | [optional] | +|**transactionId** | **List<String>** | If present, indicating the operation is long running and should be tracked using DescribeTransaction | [optional] | diff --git a/docs/src/operations/models/InsertIntoTableRequest.md b/docs/src/operations/models/InsertIntoTableRequest.md index 5d69df32a..4c37cdf22 100644 --- a/docs/src/operations/models/InsertIntoTableRequest.md +++ b/docs/src/operations/models/InsertIntoTableRequest.md @@ -9,17 +9,7 @@ Request for inserting records into a table, excluding the Arrow IPC stream. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**id** | **List<String>** | | [optional] | -|**mode** | [**ModeEnum**](#ModeEnum) | | [optional] | - - - -## Enum: ModeEnum - -| Name | Value | -|---- | -----| -| CREATE | "create" | -| APPEND | "append" | -| OVERWRITE | "overwrite" | +|**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/operations/models/MatchQuery.md b/docs/src/operations/models/MatchQuery.md index 2a123367f..db14a6a04 100644 --- a/docs/src/operations/models/MatchQuery.md +++ b/docs/src/operations/models/MatchQuery.md @@ -11,7 +11,7 @@ |**column** | **String** | | [optional] | |**fuzziness** | **Integer** | | [optional] | |**maxExpansions** | **Integer** | The maximum number of terms to expand for fuzzy matching. Default to 50. | [optional] | -|**operator** | **Operator** | The operator to use for combining terms. This can be either `And` or `Or`, it's 'Or' by default. - `And`: All terms must match. - `Or`: At least one term must match. | [optional] | +|**operator** | **String** | The operator to use for combining terms. Case insensitive, supports both PascalCase and snake_case. Valid values are: - And: All terms must match. - Or: At least one term must match. | [optional] | |**prefixLength** | **Integer** | The number of beginning characters being unchanged for fuzzy matching. Default to 0. | [optional] | |**terms** | **String** | | | diff --git a/docs/src/operations/models/Operator.md b/docs/src/operations/models/Operator.md deleted file mode 100644 index 1008ccc58..000000000 --- a/docs/src/operations/models/Operator.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# Operator - -## Enum - - -* `AND` (value: `"And"`) - -* `OR` (value: `"Or"`) - - - diff --git a/docs/src/operations/models/RegisterTableRequest.md b/docs/src/operations/models/RegisterTableRequest.md index e5d92a29a..f83899eb3 100644 --- a/docs/src/operations/models/RegisterTableRequest.md +++ b/docs/src/operations/models/RegisterTableRequest.md @@ -9,17 +9,8 @@ |------------ | ------------- | ------------- | -------------| |**id** | **List<String>** | | [optional] | |**location** | **String** | | | -|**mode** | [**ModeEnum**](#ModeEnum) | There are two modes when trying to register a table, to differentiate the behavior when a table of the same name already exists: * CREATE (default): the operation fails with 409. * OVERWRITE: the existing table registration is replaced with the new registration. | [optional] | +|**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] | |**properties** | **Map<String, String>** | | [optional] | -## Enum: ModeEnum - -| Name | Value | -|---- | -----| -| CREATE | "CREATE" | -| OVERWRITE | "OVERWRITE" | - - - diff --git a/docs/src/operations/models/RegisterTableResponse.md b/docs/src/operations/models/RegisterTableResponse.md index 5d6818e9b..5f2d01c2e 100644 --- a/docs/src/operations/models/RegisterTableResponse.md +++ b/docs/src/operations/models/RegisterTableResponse.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**transactionId** | **String** | Optional transaction identifier | [optional] | -|**location** | **String** | | | +|**location** | **String** | | [optional] | |**properties** | **Map<String, String>** | | [optional] | diff --git a/docs/src/operations/models/SetPropertyMode.md b/docs/src/operations/models/SetPropertyMode.md deleted file mode 100644 index 7c3a106d0..000000000 --- a/docs/src/operations/models/SetPropertyMode.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SetPropertyMode - -## Enum - - -* `OVERWRITE` (value: `"OVERWRITE"`) - -* `FAIL` (value: `"FAIL"`) - -* `SKIP` (value: `"SKIP"`) - - - diff --git a/docs/src/operations/models/TransactionStatus.md b/docs/src/operations/models/TransactionStatus.md deleted file mode 100644 index b44dae75c..000000000 --- a/docs/src/operations/models/TransactionStatus.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# TransactionStatus - -## Enum - - -* `QUEUED` (value: `"QUEUED"`) - -* `RUNNING` (value: `"RUNNING"`) - -* `SUCCEEDED` (value: `"SUCCEEDED"`) - -* `FAILED` (value: `"FAILED"`) - -* `CANCELED` (value: `"CANCELED"`) - - - diff --git a/docs/src/operations/models/UnsetPropertyMode.md b/docs/src/operations/models/UnsetPropertyMode.md deleted file mode 100644 index d2378d8c7..000000000 --- a/docs/src/operations/models/UnsetPropertyMode.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# UnsetPropertyMode - -## Enum - - -* `SKIP` (value: `"SKIP"`) - -* `FAIL` (value: `"FAIL"`) - - - diff --git a/docs/src/rest.yaml b/docs/src/rest.yaml index 2e49bbc34..d0df4f8f2 100644 --- a/docs/src/rest.yaml +++ b/docs/src/rest.yaml @@ -795,16 +795,12 @@ paths: - name: mode in: query description: | - How the insert should behave: - - append (default): insert data to the existing table - - overwrite: remove all data in the table and then insert data to it + 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 required: false schema: type: string - enum: - - create - - append - - overwrite default: append post: tags: @@ -1850,14 +1846,11 @@ components: type: string description: | There are three modes when trying to create a namespace, - to differentiate the behavior when a namespace of the same name already exists: - * create: the operation fails with 409. - * exist_ok: 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. - enum: - - create - - exist_ok - - overwrite + 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: type: object additionalProperties: @@ -1916,14 +1909,7 @@ components: DescribeNamespaceResponse: type: object - required: - - id properties: - id: - type: array - items: - type: string - description: The namespace identifier as a list of parts properties: type: object description: @@ -1947,21 +1933,17 @@ components: type: string description: | The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. - - FAIL (default): the server must return 400 indicating the namespace to drop does not exist. - - SKIP: the server must return 204 indicating the drop operation has succeeded. - enum: - - SKIP - - FAIL + 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: type: string description: | The behavior for dropping a namespace. - - RESTRICT (default): the namespace should not contain any table or child namespace when drop is initiated. + 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. - enum: - - RESTRICT - - CASCADE + - Cascade: all tables and child namespaces in the namespace are dropped before the namespace is dropped. DropNamespaceResponse: type: object @@ -1972,7 +1954,7 @@ components: type: string transaction_id: description: | - If present, indicating the operation is long running and should be tracked using GetTransaction + If present, indicating the operation is long running and should be tracked using DescribeTransaction type: array items: type: string @@ -2027,12 +2009,10 @@ components: type: string description: | There are two modes when trying to register a table, - to differentiate the behavior when a table of the same name already exists: - * CREATE (default): the operation fails with 409. - * OVERWRITE: the existing table registration is replaced with the new registration. - enum: - - CREATE - - OVERWRITE + 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: type: object additionalProperties: @@ -2040,8 +2020,6 @@ components: RegisterTableResponse: type: object - required: - - location properties: transaction_id: type: string @@ -2193,10 +2171,10 @@ components: type: string mode: type: string - enum: - - create - - append - - overwrite + 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 default: append InsertIntoTableResponse: @@ -2710,14 +2688,11 @@ components: type: string description: | There are three modes when trying to create a table, - to differentiate the behavior when a table of the same name already exists: + 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. - enum: - - Create - - ExistOk - - Overwrite CreateTableResponse: type: object @@ -2799,12 +2774,14 @@ components: TransactionStatus: type: string - enum: - - QUEUED - - RUNNING - - SUCCEEDED - - FAILED - - CANCELED + description: | + The status of a transaction. + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - Queued: the transaction is queued and not yet started + - Running: the transaction is currently running + - Succeeded: the transaction has completed successfully + - Failed: the transaction has failed + - Canceled: the transaction was canceled DescribeTransactionRequest: type: object @@ -2846,13 +2823,10 @@ components: type: string description: | The behavior if the property key already exists. - - OVERWRITE (default): overwrite the existing value with the provided value - - FAIL: fail the entire operation - - SKIP: keep the existing value and skip setting the provided value - enum: - - OVERWRITE - - FAIL - - SKIP + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - Overwrite (default): overwrite the existing value with the provided value + - Fail: fail the entire operation + - Skip: keep the existing value and skip setting the provided value AlterTransactionUnsetProperty: type: object @@ -2866,11 +2840,9 @@ components: type: string description: | The behavior if the property key to unset does not exist. - - SKIP (default): skip the property to unset - - FAIL: fail the entire operation - enum: - - SKIP - - FAIL + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - Skip (default): skip the property to unset + - Fail: fail the entire operation AlterTransactionAction: type: object @@ -3115,9 +3087,11 @@ components: Operator: type: string - enum: - - And - - Or + description: | + The operator to use for combining terms. + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - And: All terms must match. + - Or: At least one term must match. GetTableTagVersionRequest: type: object @@ -3920,7 +3894,7 @@ components: $ref: '#/components/schemas/RegisterTableResponse' DescribeTransactionResponse: - description: Response of GetTransaction + description: Response of DescribeTransaction content: application/json: schema: diff --git a/java/lance-namespace-apache-client/README.md b/java/lance-namespace-apache-client/README.md index 77987915a..4681fc14b 100644 --- a/java/lance-namespace-apache-client/README.md +++ b/java/lance-namespace-apache-client/README.md @@ -314,7 +314,6 @@ Class | Method | HTTP request | Description - [MultiMatchQuery](docs/MultiMatchQuery.md) - [NamespaceExistsRequest](docs/NamespaceExistsRequest.md) - [NewColumnTransform](docs/NewColumnTransform.md) - - [Operator](docs/Operator.md) - [PhraseQuery](docs/PhraseQuery.md) - [QueryTableRequest](docs/QueryTableRequest.md) - [QueryTableRequestColumns](docs/QueryTableRequestColumns.md) @@ -326,15 +325,12 @@ Class | Method | HTTP request | Description - [RenameTableResponse](docs/RenameTableResponse.md) - [RestoreTableRequest](docs/RestoreTableRequest.md) - [RestoreTableResponse](docs/RestoreTableResponse.md) - - [SetPropertyMode](docs/SetPropertyMode.md) - [StringFtsQuery](docs/StringFtsQuery.md) - [StructuredFtsQuery](docs/StructuredFtsQuery.md) - [TableBasicStats](docs/TableBasicStats.md) - [TableExistsRequest](docs/TableExistsRequest.md) - [TableVersion](docs/TableVersion.md) - [TagContents](docs/TagContents.md) - - [TransactionStatus](docs/TransactionStatus.md) - - [UnsetPropertyMode](docs/UnsetPropertyMode.md) - [UpdateTableRequest](docs/UpdateTableRequest.md) - [UpdateTableResponse](docs/UpdateTableResponse.md) - [UpdateTableSchemaMetadataRequest](docs/UpdateTableSchemaMetadataRequest.md) diff --git a/java/lance-namespace-apache-client/api/openapi.yaml b/java/lance-namespace-apache-client/api/openapi.yaml index ad580a8f1..919804ffe 100644 --- a/java/lance-namespace-apache-client/api/openapi.yaml +++ b/java/lance-namespace-apache-client/api/openapi.yaml @@ -852,19 +852,15 @@ paths: - $ref: '#/components/parameters/id' - $ref: '#/components/parameters/delimiter' - description: | - How the insert should behave: - - append (default): insert data to the existing table - - overwrite: remove all data in the table and then insert data to it + 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 explode: true in: query name: mode required: false schema: default: append - enum: - - create - - append - - overwrite type: string style: form post: @@ -881,19 +877,15 @@ paths: - $ref: '#/components/parameters/id' - $ref: '#/components/parameters/delimiter' - description: | - How the insert should behave: - - append (default): insert data to the existing table - - overwrite: remove all data in the table and then insert data to it + 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 explode: true in: query name: mode required: false schema: default: append - enum: - - create - - append - - overwrite type: string style: form requestBody: @@ -2202,7 +2194,7 @@ components: application/json: schema: $ref: '#/components/schemas/DescribeTransactionResponse' - description: Response of GetTransaction + description: Response of DescribeTransaction AlterTransactionResponse: content: application/json: @@ -2512,7 +2504,7 @@ components: type: string CreateNamespaceRequest: example: - mode: create + mode: mode id: - id - id @@ -2526,14 +2518,11 @@ components: mode: description: | There are three modes when trying to create a namespace, - to differentiate the behavior when a namespace of the same name already exists: - * create: the operation fails with 409. - * exist_ok: 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. - enum: - - create - - exist_ok - - overwrite + 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. type: string properties: additionalProperties: @@ -2620,18 +2609,10 @@ components: type: array DescribeNamespaceResponse: example: - id: - - id - - id properties: owner: Ralph created_at: "1452120468" properties: - id: - description: The namespace identifier as a list of parts - items: - type: string - type: array properties: additionalProperties: type: string @@ -2644,15 +2625,13 @@ components: owner: Ralph created_at: "1452120468" nullable: true - required: - - id DropNamespaceRequest: example: - mode: SKIP + mode: mode id: - id - id - behavior: RESTRICT + behavior: behavior properties: id: items: @@ -2661,21 +2640,17 @@ components: mode: description: | The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. - - FAIL (default): the server must return 400 indicating the namespace to drop does not exist. - - SKIP: the server must return 204 indicating the drop operation has succeeded. - enum: - - SKIP - - FAIL + 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. type: string behavior: description: | The behavior for dropping a namespace. - - RESTRICT (default): the namespace should not contain any table or child namespace when drop is initiated. + 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. - enum: - - RESTRICT - - CASCADE + - Cascade: all tables and child namespaces in the namespace are dropped before the namespace is dropped. type: string DropNamespaceResponse: example: @@ -2690,7 +2665,7 @@ components: type: string transaction_id: description: | - If present, indicating the operation is long running and should be tracked using GetTransaction + If present, indicating the operation is long running and should be tracked using DescribeTransaction items: type: string type: array @@ -2724,7 +2699,7 @@ components: nullable: true RegisterTableRequest: example: - mode: CREATE + mode: mode location: location id: - id @@ -2741,12 +2716,10 @@ components: mode: description: | There are two modes when trying to register a table, - to differentiate the behavior when a table of the same name already exists: - * CREATE (default): the operation fails with 409. - * OVERWRITE: the existing table registration is replaced with the new registration. - enum: - - CREATE - - OVERWRITE + 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. type: string properties: additionalProperties: @@ -2768,8 +2741,6 @@ components: properties: additionalProperties: type: string - required: - - location ListTablesRequest: properties: id: @@ -2974,10 +2945,10 @@ components: type: array mode: default: append - enum: - - create - - append - - overwrite + 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 type: string InsertIntoTableResponse: description: Response from inserting records into a table @@ -3195,7 +3166,7 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 boost: negative: null @@ -3208,14 +3179,14 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 - fuzziness: 0 terms: terms column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 distance_type: distance_type lower_bound: 3.6160767 @@ -3653,14 +3624,11 @@ components: mode: description: | There are three modes when trying to create a table, - to differentiate the behavior when a table of the same name already exists: + 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. - enum: - - Create - - ExistOk - - Overwrite type: string CreateTableResponse: example: @@ -3754,12 +3722,14 @@ components: minimum: 0 type: integer TransactionStatus: - enum: - - QUEUED - - RUNNING - - SUCCEEDED - - FAILED - - CANCELED + description: | + The status of a transaction. + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - Queued: the transaction is queued and not yet started + - Running: the transaction is currently running + - Succeeded: the transaction has completed successfully + - Failed: the transaction has failed + - Canceled: the transaction was canceled type: string DescribeTransactionRequest: example: @@ -3775,10 +3745,18 @@ components: example: properties: key: properties - status: QUEUED + status: status properties: status: - $ref: '#/components/schemas/TransactionStatus' + description: | + The status of a transaction. + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - Queued: the transaction is queued and not yet started + - Running: the transaction is currently running + - Succeeded: the transaction has completed successfully + - Failed: the transaction has failed + - Canceled: the transaction was canceled + type: string properties: additionalProperties: type: string @@ -3786,13 +3764,21 @@ components: - status AlterTransactionSetStatus: example: - status: QUEUED + status: status properties: status: - $ref: '#/components/schemas/TransactionStatus' + description: | + The status of a transaction. + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - Queued: the transaction is queued and not yet started + - Running: the transaction is currently running + - Succeeded: the transaction has completed successfully + - Failed: the transaction has failed + - Canceled: the transaction was canceled + type: string AlterTransactionSetProperty: example: - mode: OVERWRITE + mode: mode value: value key: key properties: @@ -3801,35 +3787,41 @@ components: value: type: string mode: - $ref: '#/components/schemas/SetPropertyMode' + description: | + The behavior if the property key already exists. + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - Overwrite (default): overwrite the existing value with the provided value + - Fail: fail the entire operation + - Skip: keep the existing value and skip setting the provided value + type: string SetPropertyMode: description: | The behavior if the property key already exists. - - OVERWRITE (default): overwrite the existing value with the provided value - - FAIL: fail the entire operation - - SKIP: keep the existing value and skip setting the provided value - enum: - - OVERWRITE - - FAIL - - SKIP + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - Overwrite (default): overwrite the existing value with the provided value + - Fail: fail the entire operation + - Skip: keep the existing value and skip setting the provided value type: string AlterTransactionUnsetProperty: example: - mode: SKIP + mode: mode key: key properties: key: type: string mode: - $ref: '#/components/schemas/UnsetPropertyMode' + description: | + The behavior if the property key to unset does not exist. + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - Skip (default): skip the property to unset + - Fail: fail the entire operation + type: string UnsetPropertyMode: description: | The behavior if the property key to unset does not exist. - - SKIP (default): skip the property to unset - - FAIL: fail the entire operation - enum: - - SKIP - - FAIL + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - Skip (default): skip the property to unset + - Fail: fail the entire operation type: string AlterTransactionAction: description: | @@ -3840,12 +3832,12 @@ components: If you would like to perform multiple actions, set a list of actions in the AlterTransactionRequest. example: setStatusAction: - status: QUEUED + status: status unsetPropertyAction: - mode: SKIP + mode: mode key: key setPropertyAction: - mode: OVERWRITE + mode: mode value: value key: key properties: @@ -3865,21 +3857,21 @@ components: - id actions: - setStatusAction: - status: QUEUED + status: status unsetPropertyAction: - mode: SKIP + mode: mode key: key setPropertyAction: - mode: OVERWRITE + mode: mode value: value key: key - setStatusAction: - status: QUEUED + status: status unsetPropertyAction: - mode: SKIP + mode: mode key: key setPropertyAction: - mode: OVERWRITE + mode: mode value: value key: key properties: @@ -3898,10 +3890,18 @@ components: example: properties: key: properties - status: QUEUED + status: status properties: status: - $ref: '#/components/schemas/TransactionStatus' + description: | + The status of a transaction. + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - Queued: the transaction is queued and not yet started + - Running: the transaction is currently running + - Succeeded: the transaction has completed successfully + - Failed: the transaction has failed + - Canceled: the transaction was canceled + type: string properties: additionalProperties: type: string @@ -4010,7 +4010,7 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 boost: negative: null @@ -4023,14 +4023,14 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 - fuzziness: 0 terms: terms column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 properties: query: @@ -4063,7 +4063,7 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 boost: negative: null @@ -4076,14 +4076,14 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 - fuzziness: 0 terms: terms column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 properties: match: @@ -4103,7 +4103,7 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 properties: boost: @@ -4122,7 +4122,12 @@ components: minimum: 0 type: integer operator: - $ref: '#/components/schemas/Operator' + description: | + The operator to use for combining terms. + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - And: All terms must match. + - Or: At least one term must match. + type: string prefix_length: description: |- The number of beginning characters being unchanged for fuzzy matching. @@ -4178,14 +4183,14 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 - fuzziness: 0 terms: terms column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 properties: match_queries: @@ -4227,9 +4232,11 @@ components: - must_not - should Operator: - enum: - - And - - Or + description: | + The operator to use for combining terms. + Case insensitive, supports both PascalCase and snake_case. Valid values are: + - And: All terms must match. + - Or: At least one term must match. type: string GetTableTagVersionRequest: example: @@ -4628,7 +4635,7 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 boost: negative: null @@ -4641,14 +4648,14 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 - fuzziness: 0 terms: terms column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 distance_type: distance_type lower_bound: 3.6160767 @@ -4737,7 +4744,7 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 boost: negative: null @@ -4750,14 +4757,14 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 - fuzziness: 0 terms: terms column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 distance_type: distance_type lower_bound: 3.6160767 @@ -5320,7 +5327,7 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 boost: negative: null @@ -5333,14 +5340,14 @@ components: column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 - fuzziness: 0 terms: terms column: column boost: 6.0274563 prefix_length: 0 - operator: And + operator: operator max_expansions: 0 properties: string_query: diff --git a/java/lance-namespace-apache-client/docs/AlterTransactionResponse.md b/java/lance-namespace-apache-client/docs/AlterTransactionResponse.md index 65cfad1fe..26dad8c45 100644 --- a/java/lance-namespace-apache-client/docs/AlterTransactionResponse.md +++ b/java/lance-namespace-apache-client/docs/AlterTransactionResponse.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **TransactionStatus** | | | +|**status** | **String** | The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled | | |**properties** | **Map<String, String>** | | [optional] | diff --git a/java/lance-namespace-apache-client/docs/AlterTransactionSetProperty.md b/java/lance-namespace-apache-client/docs/AlterTransactionSetProperty.md index 44e32cd6f..e9cf8efca 100644 --- a/java/lance-namespace-apache-client/docs/AlterTransactionSetProperty.md +++ b/java/lance-namespace-apache-client/docs/AlterTransactionSetProperty.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**key** | **String** | | [optional] | |**value** | **String** | | [optional] | -|**mode** | **SetPropertyMode** | | [optional] | +|**mode** | **String** | The behavior if the property key already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Overwrite (default): overwrite the existing value with the provided value - Fail: fail the entire operation - Skip: keep the existing value and skip setting the provided value | [optional] | diff --git a/java/lance-namespace-apache-client/docs/AlterTransactionSetStatus.md b/java/lance-namespace-apache-client/docs/AlterTransactionSetStatus.md index a86375ab8..faf8aef9b 100644 --- a/java/lance-namespace-apache-client/docs/AlterTransactionSetStatus.md +++ b/java/lance-namespace-apache-client/docs/AlterTransactionSetStatus.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **TransactionStatus** | | [optional] | +|**status** | **String** | The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled | [optional] | diff --git a/java/lance-namespace-apache-client/docs/AlterTransactionUnsetProperty.md b/java/lance-namespace-apache-client/docs/AlterTransactionUnsetProperty.md index 921d0a826..67fbe94db 100644 --- a/java/lance-namespace-apache-client/docs/AlterTransactionUnsetProperty.md +++ b/java/lance-namespace-apache-client/docs/AlterTransactionUnsetProperty.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**key** | **String** | | [optional] | -|**mode** | **UnsetPropertyMode** | | [optional] | +|**mode** | **String** | The behavior if the property key to unset does not exist. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Skip (default): skip the property to unset - Fail: fail the entire operation | [optional] | diff --git a/java/lance-namespace-apache-client/docs/CreateNamespaceRequest.md b/java/lance-namespace-apache-client/docs/CreateNamespaceRequest.md index ad4fe063a..8f3d1c368 100644 --- a/java/lance-namespace-apache-client/docs/CreateNamespaceRequest.md +++ b/java/lance-namespace-apache-client/docs/CreateNamespaceRequest.md @@ -8,18 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**id** | **List<String>** | | [optional] | -|**mode** | [**ModeEnum**](#ModeEnum) | There are three modes when trying to create a namespace, to differentiate the behavior when a namespace of the same name already exists: * create: the operation fails with 409. * exist_ok: 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] | +|**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] | -## Enum: ModeEnum - -| Name | Value | -|---- | -----| -| CREATE | "create" | -| EXIST_OK | "exist_ok" | -| OVERWRITE | "overwrite" | - - - diff --git a/java/lance-namespace-apache-client/docs/CreateTableRequest.md b/java/lance-namespace-apache-client/docs/CreateTableRequest.md index 17948e584..9d35c375c 100644 --- a/java/lance-namespace-apache-client/docs/CreateTableRequest.md +++ b/java/lance-namespace-apache-client/docs/CreateTableRequest.md @@ -9,17 +9,7 @@ Request for creating a table, excluding the Arrow IPC stream. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**id** | **List<String>** | | [optional] | -|**mode** | [**ModeEnum**](#ModeEnum) | There are three modes when trying to create a table, to differentiate the behavior when a table of the same name already exists: * 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] | - - - -## Enum: ModeEnum - -| Name | Value | -|---- | -----| -| CREATE | "Create" | -| EXIST_OK | "ExistOk" | -| OVERWRITE | "Overwrite" | +|**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/DataApi.md b/java/lance-namespace-apache-client/docs/DataApi.md index 6b492b2db..83e4109bf 100644 --- a/java/lance-namespace-apache-client/docs/DataApi.md +++ b/java/lance-namespace-apache-client/docs/DataApi.md @@ -607,7 +607,7 @@ public class Example { String id = "id_example"; // String | `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. byte[] body = null; // byte[] | Arrow IPC stream containing the records to insert String delimiter = "delimiter_example"; // String | An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. - String mode = "create"; // String | How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it + String mode = "append"; // 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 try { InsertIntoTableResponse result = apiInstance.insertIntoTable(id, body, delimiter, mode); System.out.println(result); @@ -630,7 +630,7 @@ public class Example { | **id** | **String**| `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. | | | **body** | **byte[]**| Arrow IPC stream containing the records to insert | | | **delimiter** | **String**| An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. | [optional] | -| **mode** | **String**| How the insert should behave: - 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] [enum: create, append, overwrite] | +| **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] [default to append] | ### Return type diff --git a/java/lance-namespace-apache-client/docs/DescribeNamespaceResponse.md b/java/lance-namespace-apache-client/docs/DescribeNamespaceResponse.md index d0e3a4d8d..44b52ed56 100644 --- a/java/lance-namespace-apache-client/docs/DescribeNamespaceResponse.md +++ b/java/lance-namespace-apache-client/docs/DescribeNamespaceResponse.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**id** | **List<String>** | The namespace identifier as a list of parts | | |**properties** | **Map<String, String>** | Properties stored on the namespace, if supported by the server. If the server does not support namespace properties, it should return null for this field. If namespace properties are supported, but none are set, it should return an empty object. | [optional] | diff --git a/java/lance-namespace-apache-client/docs/DescribeTransactionResponse.md b/java/lance-namespace-apache-client/docs/DescribeTransactionResponse.md index 434343519..3c496cbc4 100644 --- a/java/lance-namespace-apache-client/docs/DescribeTransactionResponse.md +++ b/java/lance-namespace-apache-client/docs/DescribeTransactionResponse.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **TransactionStatus** | | | +|**status** | **String** | The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled | | |**properties** | **Map<String, String>** | | [optional] | diff --git a/java/lance-namespace-apache-client/docs/DropNamespaceRequest.md b/java/lance-namespace-apache-client/docs/DropNamespaceRequest.md index 9d3f67ec7..072ed7098 100644 --- a/java/lance-namespace-apache-client/docs/DropNamespaceRequest.md +++ b/java/lance-namespace-apache-client/docs/DropNamespaceRequest.md @@ -8,26 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**id** | **List<String>** | | [optional] | -|**mode** | [**ModeEnum**](#ModeEnum) | The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. - FAIL (default): the server must return 400 indicating the namespace to drop does not exist. - SKIP: the server must return 204 indicating the drop operation has succeeded. | [optional] | -|**behavior** | [**BehaviorEnum**](#BehaviorEnum) | The behavior for dropping a namespace. - RESTRICT (default): the namespace should not contain any table or child namespace when drop is initiated. If tables are found, the server should return error and not drop the namespace. - CASCADE: all tables and child namespaces in the namespace are dropped before the namespace is dropped. | [optional] | - - - -## Enum: ModeEnum - -| Name | Value | -|---- | -----| -| SKIP | "SKIP" | -| FAIL | "FAIL" | - - - -## Enum: BehaviorEnum - -| Name | Value | -|---- | -----| -| RESTRICT | "RESTRICT" | -| CASCADE | "CASCADE" | +|**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/DropNamespaceResponse.md b/java/lance-namespace-apache-client/docs/DropNamespaceResponse.md index a065e9358..faa225d7f 100644 --- a/java/lance-namespace-apache-client/docs/DropNamespaceResponse.md +++ b/java/lance-namespace-apache-client/docs/DropNamespaceResponse.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**properties** | **Map<String, String>** | | [optional] | -|**transactionId** | **List<String>** | If present, indicating the operation is long running and should be tracked using GetTransaction | [optional] | +|**transactionId** | **List<String>** | If present, indicating the operation is long running and should be tracked using DescribeTransaction | [optional] | diff --git a/java/lance-namespace-apache-client/docs/InsertIntoTableRequest.md b/java/lance-namespace-apache-client/docs/InsertIntoTableRequest.md index 5d69df32a..4c37cdf22 100644 --- a/java/lance-namespace-apache-client/docs/InsertIntoTableRequest.md +++ b/java/lance-namespace-apache-client/docs/InsertIntoTableRequest.md @@ -9,17 +9,7 @@ Request for inserting records into a table, excluding the Arrow IPC stream. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**id** | **List<String>** | | [optional] | -|**mode** | [**ModeEnum**](#ModeEnum) | | [optional] | - - - -## Enum: ModeEnum - -| Name | Value | -|---- | -----| -| CREATE | "create" | -| APPEND | "append" | -| OVERWRITE | "overwrite" | +|**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/MatchQuery.md b/java/lance-namespace-apache-client/docs/MatchQuery.md index 2a123367f..db14a6a04 100644 --- a/java/lance-namespace-apache-client/docs/MatchQuery.md +++ b/java/lance-namespace-apache-client/docs/MatchQuery.md @@ -11,7 +11,7 @@ |**column** | **String** | | [optional] | |**fuzziness** | **Integer** | | [optional] | |**maxExpansions** | **Integer** | The maximum number of terms to expand for fuzzy matching. Default to 50. | [optional] | -|**operator** | **Operator** | The operator to use for combining terms. This can be either `And` or `Or`, it's 'Or' by default. - `And`: All terms must match. - `Or`: At least one term must match. | [optional] | +|**operator** | **String** | The operator to use for combining terms. Case insensitive, supports both PascalCase and snake_case. Valid values are: - And: All terms must match. - Or: At least one term must match. | [optional] | |**prefixLength** | **Integer** | The number of beginning characters being unchanged for fuzzy matching. Default to 0. | [optional] | |**terms** | **String** | | | diff --git a/java/lance-namespace-apache-client/docs/MetadataApi.md b/java/lance-namespace-apache-client/docs/MetadataApi.md index 2b45d1dfd..275767b38 100644 --- a/java/lance-namespace-apache-client/docs/MetadataApi.md +++ b/java/lance-namespace-apache-client/docs/MetadataApi.md @@ -1312,7 +1312,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Response of GetTransaction | - | +| **200** | Response of DescribeTransaction | - | | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | diff --git a/java/lance-namespace-apache-client/docs/Operator.md b/java/lance-namespace-apache-client/docs/Operator.md deleted file mode 100644 index 1008ccc58..000000000 --- a/java/lance-namespace-apache-client/docs/Operator.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# Operator - -## Enum - - -* `AND` (value: `"And"`) - -* `OR` (value: `"Or"`) - - - diff --git a/java/lance-namespace-apache-client/docs/RegisterTableRequest.md b/java/lance-namespace-apache-client/docs/RegisterTableRequest.md index e5d92a29a..f83899eb3 100644 --- a/java/lance-namespace-apache-client/docs/RegisterTableRequest.md +++ b/java/lance-namespace-apache-client/docs/RegisterTableRequest.md @@ -9,17 +9,8 @@ |------------ | ------------- | ------------- | -------------| |**id** | **List<String>** | | [optional] | |**location** | **String** | | | -|**mode** | [**ModeEnum**](#ModeEnum) | There are two modes when trying to register a table, to differentiate the behavior when a table of the same name already exists: * CREATE (default): the operation fails with 409. * OVERWRITE: the existing table registration is replaced with the new registration. | [optional] | +|**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] | |**properties** | **Map<String, String>** | | [optional] | -## Enum: ModeEnum - -| Name | Value | -|---- | -----| -| CREATE | "CREATE" | -| OVERWRITE | "OVERWRITE" | - - - diff --git a/java/lance-namespace-apache-client/docs/RegisterTableResponse.md b/java/lance-namespace-apache-client/docs/RegisterTableResponse.md index 5d6818e9b..5f2d01c2e 100644 --- a/java/lance-namespace-apache-client/docs/RegisterTableResponse.md +++ b/java/lance-namespace-apache-client/docs/RegisterTableResponse.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**transactionId** | **String** | Optional transaction identifier | [optional] | -|**location** | **String** | | | +|**location** | **String** | | [optional] | |**properties** | **Map<String, String>** | | [optional] | diff --git a/java/lance-namespace-apache-client/docs/SetPropertyMode.md b/java/lance-namespace-apache-client/docs/SetPropertyMode.md deleted file mode 100644 index 7c3a106d0..000000000 --- a/java/lance-namespace-apache-client/docs/SetPropertyMode.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# SetPropertyMode - -## Enum - - -* `OVERWRITE` (value: `"OVERWRITE"`) - -* `FAIL` (value: `"FAIL"`) - -* `SKIP` (value: `"SKIP"`) - - - diff --git a/java/lance-namespace-apache-client/docs/TableApi.md b/java/lance-namespace-apache-client/docs/TableApi.md index fd71d4e81..76b6a61d3 100644 --- a/java/lance-namespace-apache-client/docs/TableApi.md +++ b/java/lance-namespace-apache-client/docs/TableApi.md @@ -1910,7 +1910,7 @@ public class Example { String id = "id_example"; // String | `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. byte[] body = null; // byte[] | Arrow IPC stream containing the records to insert String delimiter = "delimiter_example"; // String | An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. - String mode = "create"; // String | How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it + String mode = "append"; // 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 try { InsertIntoTableResponse result = apiInstance.insertIntoTable(id, body, delimiter, mode); System.out.println(result); @@ -1933,7 +1933,7 @@ public class Example { | **id** | **String**| `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. | | | **body** | **byte[]**| Arrow IPC stream containing the records to insert | | | **delimiter** | **String**| An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. | [optional] | -| **mode** | **String**| How the insert should behave: - 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] [enum: create, append, overwrite] | +| **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] [default to append] | ### Return type diff --git a/java/lance-namespace-apache-client/docs/TransactionApi.md b/java/lance-namespace-apache-client/docs/TransactionApi.md index 11f6c4763..69430e442 100644 --- a/java/lance-namespace-apache-client/docs/TransactionApi.md +++ b/java/lance-namespace-apache-client/docs/TransactionApi.md @@ -183,7 +183,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Response of GetTransaction | - | +| **200** | Response of DescribeTransaction | - | | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | diff --git a/java/lance-namespace-apache-client/docs/TransactionStatus.md b/java/lance-namespace-apache-client/docs/TransactionStatus.md deleted file mode 100644 index b44dae75c..000000000 --- a/java/lance-namespace-apache-client/docs/TransactionStatus.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# TransactionStatus - -## Enum - - -* `QUEUED` (value: `"QUEUED"`) - -* `RUNNING` (value: `"RUNNING"`) - -* `SUCCEEDED` (value: `"SUCCEEDED"`) - -* `FAILED` (value: `"FAILED"`) - -* `CANCELED` (value: `"CANCELED"`) - - - diff --git a/java/lance-namespace-apache-client/docs/UnsetPropertyMode.md b/java/lance-namespace-apache-client/docs/UnsetPropertyMode.md deleted file mode 100644 index d2378d8c7..000000000 --- a/java/lance-namespace-apache-client/docs/UnsetPropertyMode.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# UnsetPropertyMode - -## Enum - - -* `SKIP` (value: `"SKIP"`) - -* `FAIL` (value: `"FAIL"`) - - - diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/client/apache/api/DataApi.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/client/apache/api/DataApi.java index 60ae3e46b..0e40665a8 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/client/apache/api/DataApi.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/client/apache/api/DataApi.java @@ -693,8 +693,9 @@ public String explainTableQueryPlan( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @param mode How the insert should behave: - append (default): insert data to the existing table - * - overwrite: remove all data in the table and then insert data to it (optional, default to + * @param mode 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) * @return InsertIntoTableResponse * @throws ApiException if fails to make API call @@ -719,8 +720,9 @@ public InsertIntoTableResponse insertIntoTable( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @param mode How the insert should behave: - append (default): insert data to the existing table - * - overwrite: remove all data in the table and then insert data to it (optional, default to + * @param mode 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) * @param additionalHeaders additionalHeaders for this call * @return InsertIntoTableResponse diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/client/apache/api/TableApi.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/client/apache/api/TableApi.java index 67384b8b1..3b1d7bada 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/client/apache/api/TableApi.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/client/apache/api/TableApi.java @@ -2185,8 +2185,9 @@ public GetTableTagVersionResponse getTableTagVersion( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @param mode How the insert should behave: - append (default): insert data to the existing table - * - overwrite: remove all data in the table and then insert data to it (optional, default to + * @param mode 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) * @return InsertIntoTableResponse * @throws ApiException if fails to make API call @@ -2211,8 +2212,9 @@ public InsertIntoTableResponse insertIntoTable( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @param mode How the insert should behave: - append (default): insert data to the existing table - * - overwrite: remove all data in the table and then insert data to it (optional, default to + * @param mode 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) * @param additionalHeaders additionalHeaders for this call * @return InsertIntoTableResponse diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionResponse.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionResponse.java index 208bfb41f..96de96df7 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionResponse.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionResponse.java @@ -34,34 +34,37 @@ comments = "Generator version: 7.12.0") public class AlterTransactionResponse { public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nonnull private TransactionStatus status; + @javax.annotation.Nonnull private String status; public static final String JSON_PROPERTY_PROPERTIES = "properties"; @javax.annotation.Nullable private Map properties = new HashMap<>(); public AlterTransactionResponse() {} - public AlterTransactionResponse status(@javax.annotation.Nonnull TransactionStatus status) { + public AlterTransactionResponse status(@javax.annotation.Nonnull String status) { this.status = status; return this; } /** - * Get status + * The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid + * values are: - Queued: the transaction is queued and not yet started - Running: the transaction + * is currently running - Succeeded: the transaction has completed successfully - Failed: the + * transaction has failed - Canceled: the transaction was canceled * * @return status */ @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TransactionStatus getStatus() { + public String getStatus() { return status; } @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@javax.annotation.Nonnull TransactionStatus status) { + public void setStatus(@javax.annotation.Nonnull String status) { this.status = status; } diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionSetProperty.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionSetProperty.java index 26a462448..13bedc4ad 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionSetProperty.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionSetProperty.java @@ -39,7 +39,7 @@ public class AlterTransactionSetProperty { @javax.annotation.Nullable private String value; public static final String JSON_PROPERTY_MODE = "mode"; - @javax.annotation.Nullable private SetPropertyMode mode; + @javax.annotation.Nullable private String mode; public AlterTransactionSetProperty() {} @@ -91,27 +91,30 @@ public void setValue(@javax.annotation.Nullable String value) { this.value = value; } - public AlterTransactionSetProperty mode(@javax.annotation.Nullable SetPropertyMode mode) { + public AlterTransactionSetProperty mode(@javax.annotation.Nullable String mode) { this.mode = mode; return this; } /** - * Get mode + * The behavior if the property key already exists. Case insensitive, supports both PascalCase and + * snake_case. Valid values are: - Overwrite (default): overwrite the existing value with the + * provided value - Fail: fail the entire operation - Skip: keep the existing value and skip + * setting the provided value * * @return mode */ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SetPropertyMode getMode() { + public String getMode() { return mode; } @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMode(@javax.annotation.Nullable SetPropertyMode mode) { + public void setMode(@javax.annotation.Nullable String mode) { this.mode = mode; } diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionSetStatus.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionSetStatus.java index e5c037d1a..49f32f782 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionSetStatus.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionSetStatus.java @@ -29,31 +29,34 @@ comments = "Generator version: 7.12.0") public class AlterTransactionSetStatus { public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable private TransactionStatus status; + @javax.annotation.Nullable private String status; public AlterTransactionSetStatus() {} - public AlterTransactionSetStatus status(@javax.annotation.Nullable TransactionStatus status) { + public AlterTransactionSetStatus status(@javax.annotation.Nullable String status) { this.status = status; return this; } /** - * Get status + * The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid + * values are: - Queued: the transaction is queued and not yet started - Running: the transaction + * is currently running - Succeeded: the transaction has completed successfully - Failed: the + * transaction has failed - Canceled: the transaction was canceled * * @return status */ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransactionStatus getStatus() { + public String getStatus() { return status; } @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(@javax.annotation.Nullable TransactionStatus status) { + public void setStatus(@javax.annotation.Nullable String status) { this.status = status; } diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionUnsetProperty.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionUnsetProperty.java index 54d75d458..f1c5faff5 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionUnsetProperty.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/AlterTransactionUnsetProperty.java @@ -35,7 +35,7 @@ public class AlterTransactionUnsetProperty { @javax.annotation.Nullable private String key; public static final String JSON_PROPERTY_MODE = "mode"; - @javax.annotation.Nullable private UnsetPropertyMode mode; + @javax.annotation.Nullable private String mode; public AlterTransactionUnsetProperty() {} @@ -63,27 +63,29 @@ public void setKey(@javax.annotation.Nullable String key) { this.key = key; } - public AlterTransactionUnsetProperty mode(@javax.annotation.Nullable UnsetPropertyMode mode) { + public AlterTransactionUnsetProperty mode(@javax.annotation.Nullable String mode) { this.mode = mode; return this; } /** - * Get mode + * The behavior if the property key to unset does not exist. Case insensitive, supports both + * PascalCase and snake_case. Valid values are: - Skip (default): skip the property to unset - + * Fail: fail the entire operation * * @return mode */ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UnsetPropertyMode getMode() { + public String getMode() { return mode; } @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMode(@javax.annotation.Nullable UnsetPropertyMode mode) { + public void setMode(@javax.annotation.Nullable String mode) { this.mode = mode; } 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 e7c098a4d..de248048d 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 @@ -13,11 +13,9 @@ */ package org.lance.namespace.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; @@ -41,48 +39,8 @@ public class CreateNamespaceRequest { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); - /** - * There are three modes when trying to create a namespace, to differentiate the behavior when a - * namespace of the same name already exists: * create: the operation fails with 409. * exist_ok: - * 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. - */ - public enum ModeEnum { - CREATE(String.valueOf("create")), - - EXIST_OK(String.valueOf("exist_ok")), - - OVERWRITE(String.valueOf("overwrite")); - - private String value; - - ModeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ModeEnum fromValue(String value) { - for (ModeEnum b : ModeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_MODE = "mode"; - @javax.annotation.Nullable private ModeEnum mode; + @javax.annotation.Nullable private String mode; public static final String JSON_PROPERTY_PROPERTIES = "properties"; @javax.annotation.Nullable private Map properties = new HashMap<>(); @@ -121,7 +79,7 @@ public void setId(@javax.annotation.Nullable List id) { this.id = id; } - public CreateNamespaceRequest mode(@javax.annotation.Nullable ModeEnum mode) { + public CreateNamespaceRequest mode(@javax.annotation.Nullable String mode) { this.mode = mode; return this; @@ -129,22 +87,23 @@ public CreateNamespaceRequest mode(@javax.annotation.Nullable ModeEnum mode) { /** * There are three modes when trying to create a namespace, to differentiate the behavior when a - * namespace of the same name already exists: * create: the operation fails with 409. * exist_ok: - * 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. + * 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. * * @return mode */ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ModeEnum getMode() { + public String getMode() { return mode; } @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMode(@javax.annotation.Nullable ModeEnum mode) { + public void setMode(@javax.annotation.Nullable String mode) { this.mode = mode; } 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 cb22dccf7..ca1f0e508 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 @@ -13,11 +13,9 @@ */ package org.lance.namespace.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; @@ -35,48 +33,8 @@ public class CreateTableRequest { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); - /** - * There are three modes when trying to create a table, to differentiate the behavior when a table - * of the same name already exists: * 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. - */ - public enum ModeEnum { - CREATE(String.valueOf("Create")), - - EXIST_OK(String.valueOf("ExistOk")), - - OVERWRITE(String.valueOf("Overwrite")); - - private String value; - - ModeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ModeEnum fromValue(String value) { - for (ModeEnum b : ModeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_MODE = "mode"; - @javax.annotation.Nullable private ModeEnum mode; + @javax.annotation.Nullable private String mode; public CreateTableRequest() {} @@ -112,7 +70,7 @@ public void setId(@javax.annotation.Nullable List id) { this.id = id; } - public CreateTableRequest mode(@javax.annotation.Nullable ModeEnum mode) { + public CreateTableRequest mode(@javax.annotation.Nullable String mode) { this.mode = mode; return this; @@ -120,22 +78,23 @@ public CreateTableRequest mode(@javax.annotation.Nullable ModeEnum mode) { /** * There are three modes when trying to create a table, to differentiate the behavior when a table - * of the same name already exists: * 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. + * 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. * * @return mode */ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ModeEnum getMode() { + public String getMode() { return mode; } @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMode(@javax.annotation.Nullable ModeEnum mode) { + public void setMode(@javax.annotation.Nullable String mode) { this.mode = mode; } diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeNamespaceResponse.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeNamespaceResponse.java index 65fbf6e2d..fd3761315 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeNamespaceResponse.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeNamespaceResponse.java @@ -19,62 +19,22 @@ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; -import java.util.ArrayList; import java.util.HashMap; -import java.util.List; import java.util.Map; import java.util.Objects; import java.util.StringJoiner; /** DescribeNamespaceResponse */ -@JsonPropertyOrder({ - DescribeNamespaceResponse.JSON_PROPERTY_ID, - DescribeNamespaceResponse.JSON_PROPERTY_PROPERTIES -}) +@JsonPropertyOrder({DescribeNamespaceResponse.JSON_PROPERTY_PROPERTIES}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class DescribeNamespaceResponse { - public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nonnull private List id = new ArrayList<>(); - public static final String JSON_PROPERTY_PROPERTIES = "properties"; @javax.annotation.Nullable private Map properties = new HashMap<>(); public DescribeNamespaceResponse() {} - public DescribeNamespaceResponse id(@javax.annotation.Nonnull List id) { - - this.id = id; - return this; - } - - public DescribeNamespaceResponse addIdItem(String idItem) { - if (this.id == null) { - this.id = new ArrayList<>(); - } - this.id.add(idItem); - return this; - } - - /** - * The namespace identifier as a list of parts - * - * @return id - */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(@javax.annotation.Nonnull List id) { - this.id = id; - } - public DescribeNamespaceResponse properties( @javax.annotation.Nullable Map properties) { @@ -119,20 +79,18 @@ public boolean equals(Object o) { return false; } DescribeNamespaceResponse describeNamespaceResponse = (DescribeNamespaceResponse) o; - return Objects.equals(this.id, describeNamespaceResponse.id) - && Objects.equals(this.properties, describeNamespaceResponse.properties); + return Objects.equals(this.properties, describeNamespaceResponse.properties); } @Override public int hashCode() { - return Objects.hash(id, properties); + return Objects.hash(properties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeNamespaceResponse {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); sb.append("}"); return sb.toString(); @@ -180,27 +138,6 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `id` to the URL query string - if (getId() != null) { - for (int i = 0; i < getId().size(); i++) { - try { - joiner.add( - String.format( - "%sid%s%s=%s", - prefix, - suffix, - "".equals(suffix) - ? "" - : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getId().get(i)), "UTF-8") - .replaceAll("\\+", "%20"))); - } catch (UnsupportedEncodingException e) { - // Should never happen, UTF-8 is always supported - throw new RuntimeException(e); - } - } - } - // add `properties` to the URL query string if (getProperties() != null) { for (String _key : getProperties().keySet()) { diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTransactionResponse.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTransactionResponse.java index 2be388410..acb05bc10 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTransactionResponse.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DescribeTransactionResponse.java @@ -34,34 +34,37 @@ comments = "Generator version: 7.12.0") public class DescribeTransactionResponse { public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nonnull private TransactionStatus status; + @javax.annotation.Nonnull private String status; public static final String JSON_PROPERTY_PROPERTIES = "properties"; @javax.annotation.Nullable private Map properties = new HashMap<>(); public DescribeTransactionResponse() {} - public DescribeTransactionResponse status(@javax.annotation.Nonnull TransactionStatus status) { + public DescribeTransactionResponse status(@javax.annotation.Nonnull String status) { this.status = status; return this; } /** - * Get status + * The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid + * values are: - Queued: the transaction is queued and not yet started - Running: the transaction + * is currently running - Succeeded: the transaction has completed successfully - Failed: the + * transaction has failed - Canceled: the transaction was canceled * * @return status */ @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TransactionStatus getStatus() { + public String getStatus() { return status; } @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatus(@javax.annotation.Nonnull TransactionStatus status) { + public void setStatus(@javax.annotation.Nonnull String status) { this.status = status; } 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 feb3977e7..98c45b583 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 @@ -13,11 +13,9 @@ */ package org.lance.namespace.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; @@ -39,86 +37,11 @@ public class DropNamespaceRequest { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); - /** - * The mode for dropping a namespace, deciding the server behavior when the namespace to drop is - * not found. - FAIL (default): the server must return 400 indicating the namespace to drop does - * not exist. - SKIP: the server must return 204 indicating the drop operation has succeeded. - */ - public enum ModeEnum { - SKIP(String.valueOf("SKIP")), - - FAIL(String.valueOf("FAIL")); - - private String value; - - ModeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ModeEnum fromValue(String value) { - for (ModeEnum b : ModeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_MODE = "mode"; - @javax.annotation.Nullable private ModeEnum mode; - - /** - * The behavior for dropping a namespace. - RESTRICT (default): the namespace should not contain - * any table or child namespace when drop is initiated. If tables are found, the server should - * return error and not drop the namespace. - CASCADE: all tables and child namespaces in the - * namespace are dropped before the namespace is dropped. - */ - public enum BehaviorEnum { - RESTRICT(String.valueOf("RESTRICT")), - - CASCADE(String.valueOf("CASCADE")); - - private String value; - - BehaviorEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static BehaviorEnum fromValue(String value) { - for (BehaviorEnum b : BehaviorEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } + @javax.annotation.Nullable private String mode; public static final String JSON_PROPERTY_BEHAVIOR = "behavior"; - @javax.annotation.Nullable private BehaviorEnum behavior; + @javax.annotation.Nullable private String behavior; public DropNamespaceRequest() {} @@ -154,7 +77,7 @@ public void setId(@javax.annotation.Nullable List id) { this.id = id; } - public DropNamespaceRequest mode(@javax.annotation.Nullable ModeEnum mode) { + public DropNamespaceRequest mode(@javax.annotation.Nullable String mode) { this.mode = mode; return this; @@ -162,48 +85,50 @@ public DropNamespaceRequest mode(@javax.annotation.Nullable ModeEnum mode) { /** * The mode for dropping a namespace, deciding the server behavior when the namespace to drop is - * not found. - FAIL (default): the server must return 400 indicating the namespace to drop does - * not exist. - SKIP: the server must return 204 indicating the drop operation has succeeded. + * 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. * * @return mode */ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ModeEnum getMode() { + public String getMode() { return mode; } @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMode(@javax.annotation.Nullable ModeEnum mode) { + public void setMode(@javax.annotation.Nullable String mode) { this.mode = mode; } - public DropNamespaceRequest behavior(@javax.annotation.Nullable BehaviorEnum behavior) { + public DropNamespaceRequest behavior(@javax.annotation.Nullable String behavior) { this.behavior = behavior; return this; } /** - * The behavior for dropping a namespace. - RESTRICT (default): the namespace should not contain - * any table or child namespace when drop is initiated. If tables are found, the server should - * return error and not drop the namespace. - CASCADE: all tables and child namespaces in the - * namespace are dropped before the namespace is dropped. + * 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. * * @return behavior */ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BEHAVIOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BehaviorEnum getBehavior() { + public String getBehavior() { return behavior; } @JsonProperty(JSON_PROPERTY_BEHAVIOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBehavior(@javax.annotation.Nullable BehaviorEnum behavior) { + public void setBehavior(@javax.annotation.Nullable String behavior) { this.behavior = behavior; } diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropNamespaceResponse.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropNamespaceResponse.java index 51095df1e..cb45e965b 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropNamespaceResponse.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/DropNamespaceResponse.java @@ -92,7 +92,8 @@ public DropNamespaceResponse addTransactionIdItem(String transactionIdItem) { } /** - * If present, indicating the operation is long running and should be tracked using GetTransaction + * If present, indicating the operation is long running and should be tracked using + * DescribeTransaction * * @return transactionId */ 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 270e37792..5be1288d1 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 @@ -13,11 +13,9 @@ */ package org.lance.namespace.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; @@ -38,43 +36,8 @@ public class InsertIntoTableRequest { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable private List id = new ArrayList<>(); - /** Gets or Sets mode */ - public enum ModeEnum { - CREATE(String.valueOf("create")), - - APPEND(String.valueOf("append")), - - OVERWRITE(String.valueOf("overwrite")); - - private String value; - - ModeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ModeEnum fromValue(String value) { - for (ModeEnum b : ModeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_MODE = "mode"; - @javax.annotation.Nullable private ModeEnum mode = ModeEnum.APPEND; + @javax.annotation.Nullable private String mode = "append"; public InsertIntoTableRequest() {} @@ -110,27 +73,29 @@ public void setId(@javax.annotation.Nullable List id) { this.id = id; } - public InsertIntoTableRequest mode(@javax.annotation.Nullable ModeEnum mode) { + public InsertIntoTableRequest mode(@javax.annotation.Nullable String mode) { this.mode = mode; return this; } /** - * Get mode + * 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 * * @return mode */ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ModeEnum getMode() { + public String getMode() { return mode; } @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMode(@javax.annotation.Nullable ModeEnum mode) { + public void setMode(@javax.annotation.Nullable String mode) { this.mode = mode; } diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/MatchQuery.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/MatchQuery.java index d4459f05e..b76eb93c1 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/MatchQuery.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/MatchQuery.java @@ -49,7 +49,7 @@ public class MatchQuery { @javax.annotation.Nullable private Integer maxExpansions; public static final String JSON_PROPERTY_OPERATOR = "operator"; - @javax.annotation.Nullable private Operator operator; + @javax.annotation.Nullable private String operator; public static final String JSON_PROPERTY_PREFIX_LENGTH = "prefix_length"; @javax.annotation.Nullable private Integer prefixLength; @@ -155,29 +155,28 @@ public void setMaxExpansions(@javax.annotation.Nullable Integer maxExpansions) { this.maxExpansions = maxExpansions; } - public MatchQuery operator(@javax.annotation.Nullable Operator operator) { + public MatchQuery operator(@javax.annotation.Nullable String operator) { this.operator = operator; return this; } /** - * The operator to use for combining terms. This can be either `And` or `Or`, - * it's 'Or' by default. - `And`: All terms must match. - `Or`: At - * least one term must match. + * The operator to use for combining terms. Case insensitive, supports both PascalCase and + * snake_case. Valid values are: - And: All terms must match. - Or: At least one term must match. * * @return operator */ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPERATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Operator getOperator() { + public String getOperator() { return operator; } @JsonProperty(JSON_PROPERTY_OPERATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOperator(@javax.annotation.Nullable Operator operator) { + public void setOperator(@javax.annotation.Nullable String operator) { this.operator = operator; } diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/Operator.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/Operator.java deleted file mode 100644 index 24363b17a..000000000 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/Operator.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets Operator */ -public enum Operator { - AND("And"), - - OR("Or"); - - private String value; - - Operator(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static Operator fromValue(String value) { - for (Operator b : Operator.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} 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 394454938..ecb5be030 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 @@ -13,11 +13,9 @@ */ package org.lance.namespace.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; @@ -45,45 +43,8 @@ public class RegisterTableRequest { public static final String JSON_PROPERTY_LOCATION = "location"; @javax.annotation.Nonnull private String location; - /** - * There are two modes when trying to register a table, to differentiate the behavior when a table - * of the same name already exists: * CREATE (default): the operation fails with 409. * OVERWRITE: - * the existing table registration is replaced with the new registration. - */ - public enum ModeEnum { - CREATE(String.valueOf("CREATE")), - - OVERWRITE(String.valueOf("OVERWRITE")); - - private String value; - - ModeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ModeEnum fromValue(String value) { - for (ModeEnum b : ModeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_MODE = "mode"; - @javax.annotation.Nullable private ModeEnum mode; + @javax.annotation.Nullable private String mode; public static final String JSON_PROPERTY_PROPERTIES = "properties"; @javax.annotation.Nullable private Map properties = new HashMap<>(); @@ -146,7 +107,7 @@ public void setLocation(@javax.annotation.Nonnull String location) { this.location = location; } - public RegisterTableRequest mode(@javax.annotation.Nullable ModeEnum mode) { + public RegisterTableRequest mode(@javax.annotation.Nullable String mode) { this.mode = mode; return this; @@ -154,21 +115,22 @@ public RegisterTableRequest mode(@javax.annotation.Nullable ModeEnum mode) { /** * There are two modes when trying to register a table, to differentiate the behavior when a table - * of the same name already exists: * CREATE (default): the operation fails with 409. * OVERWRITE: - * the existing table registration is replaced with the new registration. + * 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. * * @return mode */ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ModeEnum getMode() { + public String getMode() { return mode; } @JsonProperty(JSON_PROPERTY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMode(@javax.annotation.Nullable ModeEnum mode) { + public void setMode(@javax.annotation.Nullable String mode) { this.mode = mode; } diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RegisterTableResponse.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RegisterTableResponse.java index 1cdb62e2c..8b73d8fdf 100644 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RegisterTableResponse.java +++ b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/RegisterTableResponse.java @@ -38,7 +38,7 @@ public class RegisterTableResponse { @javax.annotation.Nullable private String transactionId; public static final String JSON_PROPERTY_LOCATION = "location"; - @javax.annotation.Nonnull private String location; + @javax.annotation.Nullable private String location; public static final String JSON_PROPERTY_PROPERTIES = "properties"; @javax.annotation.Nullable private Map properties = new HashMap<>(); @@ -69,7 +69,7 @@ public void setTransactionId(@javax.annotation.Nullable String transactionId) { this.transactionId = transactionId; } - public RegisterTableResponse location(@javax.annotation.Nonnull String location) { + public RegisterTableResponse location(@javax.annotation.Nullable String location) { this.location = location; return this; @@ -80,16 +80,16 @@ public RegisterTableResponse location(@javax.annotation.Nonnull String location) * * @return location */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOCATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLocation() { return location; } @JsonProperty(JSON_PROPERTY_LOCATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLocation(@javax.annotation.Nonnull String location) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLocation(@javax.annotation.Nullable String location) { this.location = location; } diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/SetPropertyMode.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/SetPropertyMode.java deleted file mode 100644 index e03f2dc81..000000000 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/SetPropertyMode.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * The behavior if the property key already exists. - OVERWRITE (default): overwrite the existing - * value with the provided value - FAIL: fail the entire operation - SKIP: keep the existing value - * and skip setting the provided value - */ -public enum SetPropertyMode { - OVERWRITE("OVERWRITE"), - - FAIL("FAIL"), - - SKIP("SKIP"); - - private String value; - - SetPropertyMode(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SetPropertyMode fromValue(String value) { - for (SetPropertyMode b : SetPropertyMode.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TransactionStatus.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TransactionStatus.java deleted file mode 100644 index d35688ad6..000000000 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/TransactionStatus.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Gets or Sets TransactionStatus */ -public enum TransactionStatus { - QUEUED("QUEUED"), - - RUNNING("RUNNING"), - - SUCCEEDED("SUCCEEDED"), - - FAILED("FAILED"), - - CANCELED("CANCELED"); - - private String value; - - TransactionStatus(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TransactionStatus fromValue(String value) { - for (TransactionStatus b : TransactionStatus.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UnsetPropertyMode.java b/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UnsetPropertyMode.java deleted file mode 100644 index 42f7610b9..000000000 --- a/java/lance-namespace-apache-client/src/main/java/org/lance/namespace/model/UnsetPropertyMode.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * The behavior if the property key to unset does not exist. - SKIP (default): skip the property to - * unset - FAIL: fail the entire operation - */ -public enum UnsetPropertyMode { - SKIP("SKIP"), - - FAIL("FAIL"); - - private String value; - - UnsetPropertyMode(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static UnsetPropertyMode fromValue(String value) { - for (UnsetPropertyMode b : UnsetPropertyMode.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format("%s=%s", prefix, this.toString()); - } -} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/NamespaceApi.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/NamespaceApi.java index 61c409bb9..0ac4d6ee6 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/NamespaceApi.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/NamespaceApi.java @@ -395,7 +395,7 @@ default ResponseEntity describeNamespace( for (MediaType mediaType : MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"id\" : [ \"id\", \"id\" ], \"properties\" : { \"owner\" : \"Ralph\", \"created_at\" : \"1452120468\" } }"; + "{ \"properties\" : { \"owner\" : \"Ralph\", \"created_at\" : \"1452120468\" } }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TableApi.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TableApi.java index 00e08b40b..ec323b22e 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TableApi.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TableApi.java @@ -3663,8 +3663,9 @@ default ResponseEntity getTableTagVersion( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @param mode How the insert should behave: - append (default): insert data to the existing table - * - overwrite: remove all data in the table and then insert data to it (optional, default to + * @param mode 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) * @return Result of inserting records into a table (status code 200) or Indicates a bad request * error. It could be caused by an unexpected request body format or other forms of request @@ -3784,7 +3785,7 @@ default ResponseEntity insertIntoTable( @Parameter( name = "mode", description = - "How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it ", + "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 ", in = ParameterIn.QUERY) @Valid @RequestParam(value = "mode", required = false, defaultValue = "append") diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TransactionApi.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TransactionApi.java index c2d80ef80..06bda0fd1 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TransactionApi.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/api/TransactionApi.java @@ -190,7 +190,7 @@ default ResponseEntity alterTransaction( for (MediaType mediaType : MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"properties\" : { \"key\" : \"properties\" }, \"status\" : \"QUEUED\" }"; + "{ \"properties\" : { \"key\" : \"properties\" }, \"status\" : \"status\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } @@ -253,8 +253,8 @@ default ResponseEntity alterTransaction( * @param delimiter An optional delimiter of the `string identifier`, following the * Lance Namespace spec. When not specified, the `$` delimiter must be used. * (optional) - * @return Response of GetTransaction (status code 200) or Indicates a bad request error. It could - * be caused by an unexpected request body format or other forms of request validation + * @return Response of DescribeTransaction (status code 200) or Indicates a bad request error. It + * could be caused by an unexpected request body format or other forms of request validation * failure, such as invalid json. Usually serves application/json content, although in some * cases simple text/plain content might be returned by the server's middleware. (status * code 400) or Unauthorized. The request lacks valid authentication credentials for the @@ -274,7 +274,7 @@ default ResponseEntity alterTransaction( responses = { @ApiResponse( responseCode = "200", - description = "Response of GetTransaction", + description = "Response of DescribeTransaction", content = { @Content( mediaType = "application/json", @@ -370,7 +370,7 @@ default ResponseEntity describeTransaction( for (MediaType mediaType : MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { String exampleString = - "{ \"properties\" : { \"key\" : \"properties\" }, \"status\" : \"QUEUED\" }"; + "{ \"properties\" : { \"key\" : \"properties\" }, \"status\" : \"status\" }"; ApiUtil.setExampleResponse(request, "application/json", exampleString); break; } diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionResponse.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionResponse.java index dfb881a8e..84f245a41 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionResponse.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionResponse.java @@ -30,7 +30,7 @@ comments = "Generator version: 7.12.0") public class AlterTransactionResponse { - private TransactionStatus status; + private String status; @Valid private Map properties = new HashMap<>(); @@ -39,29 +39,35 @@ public AlterTransactionResponse() { } /** Constructor with only required parameters */ - public AlterTransactionResponse(TransactionStatus status) { + public AlterTransactionResponse(String status) { this.status = status; } - public AlterTransactionResponse status(TransactionStatus status) { + public AlterTransactionResponse status(String status) { this.status = status; return this; } /** - * Get status + * The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid + * values are: - Queued: the transaction is queued and not yet started - Running: the transaction + * is currently running - Succeeded: the transaction has completed successfully - Failed: the + * transaction has failed - Canceled: the transaction was canceled * * @return status */ @NotNull - @Valid - @Schema(name = "status", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema( + name = "status", + description = + "The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled ", + requiredMode = Schema.RequiredMode.REQUIRED) @JsonProperty("status") - public TransactionStatus getStatus() { + public String getStatus() { return status; } - public void setStatus(TransactionStatus status) { + public void setStatus(String status) { this.status = status; } diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionSetProperty.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionSetProperty.java index 6fcea7227..66a448ace 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionSetProperty.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionSetProperty.java @@ -16,7 +16,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.annotation.Generated; -import jakarta.validation.Valid; import jakarta.validation.constraints.*; import java.util.*; @@ -32,7 +31,7 @@ public class AlterTransactionSetProperty { private String value; - private SetPropertyMode mode; + private String mode; public AlterTransactionSetProperty key(String key) { this.key = key; @@ -74,24 +73,30 @@ public void setValue(String value) { this.value = value; } - public AlterTransactionSetProperty mode(SetPropertyMode mode) { + public AlterTransactionSetProperty mode(String mode) { this.mode = mode; return this; } /** - * Get mode + * The behavior if the property key already exists. Case insensitive, supports both PascalCase and + * snake_case. Valid values are: - Overwrite (default): overwrite the existing value with the + * provided value - Fail: fail the entire operation - Skip: keep the existing value and skip + * setting the provided value * * @return mode */ - @Valid - @Schema(name = "mode", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema( + name = "mode", + description = + "The behavior if the property key already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Overwrite (default): overwrite the existing value with the provided value - Fail: fail the entire operation - Skip: keep the existing value and skip setting the provided value ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("mode") - public SetPropertyMode getMode() { + public String getMode() { return mode; } - public void setMode(SetPropertyMode mode) { + public void setMode(String mode) { this.mode = mode; } diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionSetStatus.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionSetStatus.java index 23702d577..5c086b359 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionSetStatus.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionSetStatus.java @@ -16,7 +16,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.annotation.Generated; -import jakarta.validation.Valid; import jakarta.validation.constraints.*; import java.util.*; @@ -28,26 +27,32 @@ comments = "Generator version: 7.12.0") public class AlterTransactionSetStatus { - private TransactionStatus status; + private String status; - public AlterTransactionSetStatus status(TransactionStatus status) { + public AlterTransactionSetStatus status(String status) { this.status = status; return this; } /** - * Get status + * The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid + * values are: - Queued: the transaction is queued and not yet started - Running: the transaction + * is currently running - Succeeded: the transaction has completed successfully - Failed: the + * transaction has failed - Canceled: the transaction was canceled * * @return status */ - @Valid - @Schema(name = "status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema( + name = "status", + description = + "The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") - public TransactionStatus getStatus() { + public String getStatus() { return status; } - public void setStatus(TransactionStatus status) { + public void setStatus(String status) { this.status = status; } diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionUnsetProperty.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionUnsetProperty.java index 00d557ee1..7b39251fa 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionUnsetProperty.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/AlterTransactionUnsetProperty.java @@ -16,7 +16,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.annotation.Generated; -import jakarta.validation.Valid; import jakarta.validation.constraints.*; import java.util.*; @@ -30,7 +29,7 @@ public class AlterTransactionUnsetProperty { private String key; - private UnsetPropertyMode mode; + private String mode; public AlterTransactionUnsetProperty key(String key) { this.key = key; @@ -52,24 +51,29 @@ public void setKey(String key) { this.key = key; } - public AlterTransactionUnsetProperty mode(UnsetPropertyMode mode) { + public AlterTransactionUnsetProperty mode(String mode) { this.mode = mode; return this; } /** - * Get mode + * The behavior if the property key to unset does not exist. Case insensitive, supports both + * PascalCase and snake_case. Valid values are: - Skip (default): skip the property to unset - + * Fail: fail the entire operation * * @return mode */ - @Valid - @Schema(name = "mode", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema( + name = "mode", + description = + "The behavior if the property key to unset does not exist. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Skip (default): skip the property to unset - Fail: fail the entire operation ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("mode") - public UnsetPropertyMode getMode() { + public String getMode() { return mode; } - public void setMode(UnsetPropertyMode mode) { + public void setMode(String mode) { this.mode = mode; } 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 74d5fa9e5..a0900d05e 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 @@ -13,9 +13,7 @@ */ package org.lance.namespace.server.springboot.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.annotation.Generated; import jakarta.validation.Valid; @@ -36,47 +34,7 @@ public class CreateNamespaceRequest { @Valid private List id = new ArrayList<>(); - /** - * There are three modes when trying to create a namespace, to differentiate the behavior when a - * namespace of the same name already exists: * create: the operation fails with 409. * exist_ok: - * 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. - */ - public enum ModeEnum { - CREATE("create"), - - EXIST_OK("exist_ok"), - - OVERWRITE("overwrite"); - - private String value; - - ModeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ModeEnum fromValue(String value) { - for (ModeEnum b : ModeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - private ModeEnum mode; + private String mode; @Valid private Map properties = new HashMap<>(); @@ -108,30 +66,31 @@ public void setId(List id) { this.id = id; } - public CreateNamespaceRequest mode(ModeEnum mode) { + public CreateNamespaceRequest mode(String mode) { this.mode = mode; return this; } /** * There are three modes when trying to create a namespace, to differentiate the behavior when a - * namespace of the same name already exists: * create: the operation fails with 409. * exist_ok: - * 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. + * 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. * * @return mode */ @Schema( name = "mode", description = - "There are three modes when trying to create a namespace, to differentiate the behavior when a namespace of the same name already exists: * create: the operation fails with 409. * exist_ok: 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. ", + "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. ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("mode") - public ModeEnum getMode() { + public String getMode() { return mode; } - public void setMode(ModeEnum mode) { + public void setMode(String mode) { this.mode = mode; } 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 78fbeb6ca..b92c12f13 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 @@ -13,9 +13,7 @@ */ package org.lance.namespace.server.springboot.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.annotation.Generated; import jakarta.validation.Valid; @@ -37,47 +35,7 @@ public class CreateTableRequest { @Valid private List id = new ArrayList<>(); - /** - * There are three modes when trying to create a table, to differentiate the behavior when a table - * of the same name already exists: * 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. - */ - public enum ModeEnum { - CREATE("Create"), - - EXIST_OK("ExistOk"), - - OVERWRITE("Overwrite"); - - private String value; - - ModeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ModeEnum fromValue(String value) { - for (ModeEnum b : ModeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - private ModeEnum mode; + private String mode; public CreateTableRequest id(List id) { this.id = id; @@ -107,30 +65,31 @@ public void setId(List id) { this.id = id; } - public CreateTableRequest mode(ModeEnum mode) { + public CreateTableRequest mode(String mode) { this.mode = mode; return this; } /** * There are three modes when trying to create a table, to differentiate the behavior when a table - * of the same name already exists: * 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. + * 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. * * @return mode */ @Schema( name = "mode", description = - "There are three modes when trying to create a table, to differentiate the behavior when a table of the same name already exists: * 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. ", + "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. ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("mode") - public ModeEnum getMode() { + public String getMode() { return mode; } - public void setMode(ModeEnum mode) { + public void setMode(String mode) { this.mode = mode; } diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeNamespaceResponse.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeNamespaceResponse.java index 6da25eecf..cfb0e1c28 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeNamespaceResponse.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeNamespaceResponse.java @@ -20,9 +20,7 @@ import jakarta.validation.constraints.*; import java.util.*; -import java.util.ArrayList; import java.util.HashMap; -import java.util.List; import java.util.Map; import java.util.Objects; @@ -32,51 +30,8 @@ comments = "Generator version: 7.12.0") public class DescribeNamespaceResponse { - @Valid private List id = new ArrayList<>(); - @Valid private Map properties = new HashMap<>(); - public DescribeNamespaceResponse() { - super(); - } - - /** Constructor with only required parameters */ - public DescribeNamespaceResponse(List id) { - this.id = id; - } - - public DescribeNamespaceResponse id(List id) { - this.id = id; - return this; - } - - public DescribeNamespaceResponse addIdItem(String idItem) { - if (this.id == null) { - this.id = new ArrayList<>(); - } - this.id.add(idItem); - return this; - } - - /** - * The namespace identifier as a list of parts - * - * @return id - */ - @NotNull - @Schema( - name = "id", - description = "The namespace identifier as a list of parts", - requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public List getId() { - return id; - } - - public void setId(List id) { - this.id = id; - } - public DescribeNamespaceResponse properties(Map properties) { this.properties = properties; return this; @@ -121,20 +76,18 @@ public boolean equals(Object o) { return false; } DescribeNamespaceResponse describeNamespaceResponse = (DescribeNamespaceResponse) o; - return Objects.equals(this.id, describeNamespaceResponse.id) - && Objects.equals(this.properties, describeNamespaceResponse.properties); + return Objects.equals(this.properties, describeNamespaceResponse.properties); } @Override public int hashCode() { - return Objects.hash(id, properties); + return Objects.hash(properties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeNamespaceResponse {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTransactionResponse.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTransactionResponse.java index ec4d5b21a..df6c7c5c2 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTransactionResponse.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DescribeTransactionResponse.java @@ -30,7 +30,7 @@ comments = "Generator version: 7.12.0") public class DescribeTransactionResponse { - private TransactionStatus status; + private String status; @Valid private Map properties = new HashMap<>(); @@ -39,29 +39,35 @@ public DescribeTransactionResponse() { } /** Constructor with only required parameters */ - public DescribeTransactionResponse(TransactionStatus status) { + public DescribeTransactionResponse(String status) { this.status = status; } - public DescribeTransactionResponse status(TransactionStatus status) { + public DescribeTransactionResponse status(String status) { this.status = status; return this; } /** - * Get status + * The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid + * values are: - Queued: the transaction is queued and not yet started - Running: the transaction + * is currently running - Succeeded: the transaction has completed successfully - Failed: the + * transaction has failed - Canceled: the transaction was canceled * * @return status */ @NotNull - @Valid - @Schema(name = "status", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema( + name = "status", + description = + "The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled ", + requiredMode = Schema.RequiredMode.REQUIRED) @JsonProperty("status") - public TransactionStatus getStatus() { + public String getStatus() { return status; } - public void setStatus(TransactionStatus status) { + public void setStatus(String status) { this.status = status; } 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 dd6146658..c4819079a 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 @@ -13,9 +13,7 @@ */ package org.lance.namespace.server.springboot.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.annotation.Generated; import jakarta.validation.Valid; @@ -34,84 +32,9 @@ public class DropNamespaceRequest { @Valid private List id = new ArrayList<>(); - /** - * The mode for dropping a namespace, deciding the server behavior when the namespace to drop is - * not found. - FAIL (default): the server must return 400 indicating the namespace to drop does - * not exist. - SKIP: the server must return 204 indicating the drop operation has succeeded. - */ - public enum ModeEnum { - SKIP("SKIP"), - - FAIL("FAIL"); - - private String value; - - ModeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ModeEnum fromValue(String value) { - for (ModeEnum b : ModeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - private ModeEnum mode; - - /** - * The behavior for dropping a namespace. - RESTRICT (default): the namespace should not contain - * any table or child namespace when drop is initiated. If tables are found, the server should - * return error and not drop the namespace. - CASCADE: all tables and child namespaces in the - * namespace are dropped before the namespace is dropped. - */ - public enum BehaviorEnum { - RESTRICT("RESTRICT"), - - CASCADE("CASCADE"); - - private String value; - - BehaviorEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static BehaviorEnum fromValue(String value) { - for (BehaviorEnum b : BehaviorEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } + private String mode; - private BehaviorEnum behavior; + private String behavior; public DropNamespaceRequest id(List id) { this.id = id; @@ -141,56 +64,58 @@ public void setId(List id) { this.id = id; } - public DropNamespaceRequest mode(ModeEnum mode) { + public DropNamespaceRequest mode(String mode) { this.mode = mode; return this; } /** * The mode for dropping a namespace, deciding the server behavior when the namespace to drop is - * not found. - FAIL (default): the server must return 400 indicating the namespace to drop does - * not exist. - SKIP: the server must return 204 indicating the drop operation has succeeded. + * 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. * * @return mode */ @Schema( name = "mode", description = - "The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. - FAIL (default): the server must return 400 indicating the namespace to drop does not exist. - SKIP: the server must return 204 indicating the drop operation has succeeded. ", + "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. ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("mode") - public ModeEnum getMode() { + public String getMode() { return mode; } - public void setMode(ModeEnum mode) { + public void setMode(String mode) { this.mode = mode; } - public DropNamespaceRequest behavior(BehaviorEnum behavior) { + public DropNamespaceRequest behavior(String behavior) { this.behavior = behavior; return this; } /** - * The behavior for dropping a namespace. - RESTRICT (default): the namespace should not contain - * any table or child namespace when drop is initiated. If tables are found, the server should - * return error and not drop the namespace. - CASCADE: all tables and child namespaces in the - * namespace are dropped before the namespace is dropped. + * 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. * * @return behavior */ @Schema( name = "behavior", description = - "The behavior for dropping a namespace. - RESTRICT (default): the namespace should not contain any table or child namespace when drop is initiated. If tables are found, the server should return error and not drop the namespace. - CASCADE: all tables and child namespaces in the namespace are dropped before the namespace is dropped. ", + "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. ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("behavior") - public BehaviorEnum getBehavior() { + public String getBehavior() { return behavior; } - public void setBehavior(BehaviorEnum behavior) { + public void setBehavior(String behavior) { this.behavior = behavior; } diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropNamespaceResponse.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropNamespaceResponse.java index 27dca07f3..1bee19818 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropNamespaceResponse.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/DropNamespaceResponse.java @@ -78,14 +78,15 @@ public DropNamespaceResponse addTransactionIdItem(String transactionIdItem) { } /** - * If present, indicating the operation is long running and should be tracked using GetTransaction + * If present, indicating the operation is long running and should be tracked using + * DescribeTransaction * * @return transactionId */ @Schema( name = "transaction_id", description = - "If present, indicating the operation is long running and should be tracked using GetTransaction ", + "If present, indicating the operation is long running and should be tracked using DescribeTransaction ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("transaction_id") public List getTransactionId() { 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 f934540a7..361d6553c 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 @@ -13,9 +13,7 @@ */ package org.lance.namespace.server.springboot.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.annotation.Generated; import jakarta.validation.Valid; @@ -37,42 +35,7 @@ public class InsertIntoTableRequest { @Valid private List id = new ArrayList<>(); - /** Gets or Sets mode */ - public enum ModeEnum { - CREATE("create"), - - APPEND("append"), - - OVERWRITE("overwrite"); - - private String value; - - ModeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ModeEnum fromValue(String value) { - for (ModeEnum b : ModeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - private ModeEnum mode = ModeEnum.APPEND; + private String mode = "append"; public InsertIntoTableRequest id(List id) { this.id = id; @@ -102,23 +65,29 @@ public void setId(List id) { this.id = id; } - public InsertIntoTableRequest mode(ModeEnum mode) { + public InsertIntoTableRequest mode(String mode) { this.mode = mode; return this; } /** - * Get mode + * 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 * * @return mode */ - @Schema(name = "mode", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema( + name = "mode", + 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 ", + requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("mode") - public ModeEnum getMode() { + public String getMode() { return mode; } - public void setMode(ModeEnum mode) { + public void setMode(String mode) { this.mode = mode; } diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/MatchQuery.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/MatchQuery.java index d8e44e2c3..ee40f29aa 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/MatchQuery.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/MatchQuery.java @@ -16,7 +16,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.annotation.Generated; -import jakarta.validation.Valid; import jakarta.validation.constraints.*; import java.util.*; @@ -36,7 +35,7 @@ public class MatchQuery { private Integer maxExpansions; - private Operator operator; + private String operator; private Integer prefixLength; @@ -136,29 +135,28 @@ public void setMaxExpansions(Integer maxExpansions) { this.maxExpansions = maxExpansions; } - public MatchQuery operator(Operator operator) { + public MatchQuery operator(String operator) { this.operator = operator; return this; } /** - * The operator to use for combining terms. This can be either `And` or `Or`, it's 'Or' by - * default. - `And`: All terms must match. - `Or`: At least one term must match. + * The operator to use for combining terms. Case insensitive, supports both PascalCase and + * snake_case. Valid values are: - And: All terms must match. - Or: At least one term must match. * * @return operator */ - @Valid @Schema( name = "operator", description = - "The operator to use for combining terms. This can be either `And` or `Or`, it's 'Or' by default. - `And`: All terms must match. - `Or`: At least one term must match.", + "The operator to use for combining terms. Case insensitive, supports both PascalCase and snake_case. Valid values are: - And: All terms must match. - Or: At least one term must match. ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("operator") - public Operator getOperator() { + public String getOperator() { return operator; } - public void setOperator(Operator operator) { + public void setOperator(String operator) { this.operator = operator; } diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/Operator.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/Operator.java deleted file mode 100644 index 001790d1f..000000000 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/Operator.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.annotation.Generated; -import jakarta.validation.constraints.*; - -import java.util.*; - -/** Gets or Sets Operator */ -@Generated( - value = "org.openapitools.codegen.languages.SpringCodegen", - comments = "Generator version: 7.12.0") -public enum Operator { - AND("And"), - - OR("Or"); - - private String value; - - Operator(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static Operator fromValue(String value) { - for (Operator b : Operator.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } -} 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 b21b5d51a..a02f3a7b7 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 @@ -13,9 +13,7 @@ */ package org.lance.namespace.server.springboot.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.annotation.Generated; import jakarta.validation.Valid; @@ -38,44 +36,7 @@ public class RegisterTableRequest { private String location; - /** - * There are two modes when trying to register a table, to differentiate the behavior when a table - * of the same name already exists: * CREATE (default): the operation fails with 409. * OVERWRITE: - * the existing table registration is replaced with the new registration. - */ - public enum ModeEnum { - CREATE("CREATE"), - - OVERWRITE("OVERWRITE"); - - private String value; - - ModeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ModeEnum fromValue(String value) { - for (ModeEnum b : ModeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - private ModeEnum mode; + private String mode; @Valid private Map properties = new HashMap<>(); @@ -137,29 +98,30 @@ public void setLocation(String location) { this.location = location; } - public RegisterTableRequest mode(ModeEnum mode) { + public RegisterTableRequest mode(String mode) { this.mode = mode; return this; } /** * There are two modes when trying to register a table, to differentiate the behavior when a table - * of the same name already exists: * CREATE (default): the operation fails with 409. * OVERWRITE: - * the existing table registration is replaced with the new registration. + * 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. * * @return mode */ @Schema( name = "mode", description = - "There are two modes when trying to register a table, to differentiate the behavior when a table of the same name already exists: * CREATE (default): the operation fails with 409. * OVERWRITE: the existing table registration is replaced with the new registration. ", + "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. ", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("mode") - public ModeEnum getMode() { + public String getMode() { return mode; } - public void setMode(ModeEnum mode) { + public void setMode(String mode) { this.mode = mode; } diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RegisterTableResponse.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RegisterTableResponse.java index 8951deef1..a031cb46c 100644 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RegisterTableResponse.java +++ b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/RegisterTableResponse.java @@ -36,15 +36,6 @@ public class RegisterTableResponse { @Valid private Map properties = new HashMap<>(); - public RegisterTableResponse() { - super(); - } - - /** Constructor with only required parameters */ - public RegisterTableResponse(String location) { - this.location = location; - } - public RegisterTableResponse transactionId(String transactionId) { this.transactionId = transactionId; return this; @@ -78,8 +69,7 @@ public RegisterTableResponse location(String location) { * * @return location */ - @NotNull - @Schema(name = "location", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(name = "location", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("location") public String getLocation() { return location; diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/SetPropertyMode.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/SetPropertyMode.java deleted file mode 100644 index 8ce07e53b..000000000 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/SetPropertyMode.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.annotation.Generated; -import jakarta.validation.constraints.*; - -import java.util.*; - -/** - * The behavior if the property key already exists. - OVERWRITE (default): overwrite the existing - * value with the provided value - FAIL: fail the entire operation - SKIP: keep the existing value - * and skip setting the provided value - */ -@Generated( - value = "org.openapitools.codegen.languages.SpringCodegen", - comments = "Generator version: 7.12.0") -public enum SetPropertyMode { - OVERWRITE("OVERWRITE"), - - FAIL("FAIL"), - - SKIP("SKIP"); - - private String value; - - SetPropertyMode(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static SetPropertyMode fromValue(String value) { - for (SetPropertyMode b : SetPropertyMode.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } -} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TransactionStatus.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TransactionStatus.java deleted file mode 100644 index 1df78d688..000000000 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/TransactionStatus.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.annotation.Generated; -import jakarta.validation.constraints.*; - -import java.util.*; - -/** Gets or Sets TransactionStatus */ -@Generated( - value = "org.openapitools.codegen.languages.SpringCodegen", - comments = "Generator version: 7.12.0") -public enum TransactionStatus { - QUEUED("QUEUED"), - - RUNNING("RUNNING"), - - SUCCEEDED("SUCCEEDED"), - - FAILED("FAILED"), - - CANCELED("CANCELED"); - - private String value; - - TransactionStatus(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TransactionStatus fromValue(String value) { - for (TransactionStatus b : TransactionStatus.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } -} diff --git a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UnsetPropertyMode.java b/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UnsetPropertyMode.java deleted file mode 100644 index 517505ef4..000000000 --- a/java/lance-namespace-springboot-server/src/main/java/org/lance/namespace/server/springboot/model/UnsetPropertyMode.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import jakarta.annotation.Generated; -import jakarta.validation.constraints.*; - -import java.util.*; - -/** - * The behavior if the property key to unset does not exist. - SKIP (default): skip the property to - * unset - FAIL: fail the entire operation - */ -@Generated( - value = "org.openapitools.codegen.languages.SpringCodegen", - comments = "Generator version: 7.12.0") -public enum UnsetPropertyMode { - SKIP("SKIP"), - - FAIL("FAIL"); - - private String value; - - UnsetPropertyMode(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static UnsetPropertyMode fromValue(String value) { - for (UnsetPropertyMode b : UnsetPropertyMode.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } -} diff --git a/python/lance_namespace_urllib3_client/README.md b/python/lance_namespace_urllib3_client/README.md index 3fa3a514c..80a73483c 100644 --- a/python/lance_namespace_urllib3_client/README.md +++ b/python/lance_namespace_urllib3_client/README.md @@ -294,7 +294,6 @@ Class | Method | HTTP request | Description - [MultiMatchQuery](docs/MultiMatchQuery.md) - [NamespaceExistsRequest](docs/NamespaceExistsRequest.md) - [NewColumnTransform](docs/NewColumnTransform.md) - - [Operator](docs/Operator.md) - [PhraseQuery](docs/PhraseQuery.md) - [QueryTableRequest](docs/QueryTableRequest.md) - [QueryTableRequestColumns](docs/QueryTableRequestColumns.md) @@ -306,15 +305,12 @@ Class | Method | HTTP request | Description - [RenameTableResponse](docs/RenameTableResponse.md) - [RestoreTableRequest](docs/RestoreTableRequest.md) - [RestoreTableResponse](docs/RestoreTableResponse.md) - - [SetPropertyMode](docs/SetPropertyMode.md) - [StringFtsQuery](docs/StringFtsQuery.md) - [StructuredFtsQuery](docs/StructuredFtsQuery.md) - [TableBasicStats](docs/TableBasicStats.md) - [TableExistsRequest](docs/TableExistsRequest.md) - [TableVersion](docs/TableVersion.md) - [TagContents](docs/TagContents.md) - - [TransactionStatus](docs/TransactionStatus.md) - - [UnsetPropertyMode](docs/UnsetPropertyMode.md) - [UpdateTableRequest](docs/UpdateTableRequest.md) - [UpdateTableResponse](docs/UpdateTableResponse.md) - [UpdateTableSchemaMetadataRequest](docs/UpdateTableSchemaMetadataRequest.md) diff --git a/python/lance_namespace_urllib3_client/docs/AlterTransactionResponse.md b/python/lance_namespace_urllib3_client/docs/AlterTransactionResponse.md index eefd8e8a6..684729a47 100644 --- a/python/lance_namespace_urllib3_client/docs/AlterTransactionResponse.md +++ b/python/lance_namespace_urllib3_client/docs/AlterTransactionResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**TransactionStatus**](TransactionStatus.md) | | +**status** | **str** | The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled | **properties** | **Dict[str, str]** | | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/AlterTransactionSetProperty.md b/python/lance_namespace_urllib3_client/docs/AlterTransactionSetProperty.md index d1b730520..4ebe23b0a 100644 --- a/python/lance_namespace_urllib3_client/docs/AlterTransactionSetProperty.md +++ b/python/lance_namespace_urllib3_client/docs/AlterTransactionSetProperty.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **str** | | [optional] **value** | **str** | | [optional] -**mode** | [**SetPropertyMode**](SetPropertyMode.md) | | [optional] +**mode** | **str** | The behavior if the property key already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Overwrite (default): overwrite the existing value with the provided value - Fail: fail the entire operation - Skip: keep the existing value and skip setting the provided value | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/AlterTransactionSetStatus.md b/python/lance_namespace_urllib3_client/docs/AlterTransactionSetStatus.md index 7b105efeb..573fd741e 100644 --- a/python/lance_namespace_urllib3_client/docs/AlterTransactionSetStatus.md +++ b/python/lance_namespace_urllib3_client/docs/AlterTransactionSetStatus.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**TransactionStatus**](TransactionStatus.md) | | [optional] +**status** | **str** | The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/AlterTransactionUnsetProperty.md b/python/lance_namespace_urllib3_client/docs/AlterTransactionUnsetProperty.md index 182001c0a..2108cd41c 100644 --- a/python/lance_namespace_urllib3_client/docs/AlterTransactionUnsetProperty.md +++ b/python/lance_namespace_urllib3_client/docs/AlterTransactionUnsetProperty.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **str** | | [optional] -**mode** | [**UnsetPropertyMode**](UnsetPropertyMode.md) | | [optional] +**mode** | **str** | The behavior if the property key to unset does not exist. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Skip (default): skip the property to unset - Fail: fail the entire operation | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/CreateNamespaceRequest.md b/python/lance_namespace_urllib3_client/docs/CreateNamespaceRequest.md index a93b931bc..368542801 100644 --- a/python/lance_namespace_urllib3_client/docs/CreateNamespaceRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CreateNamespaceRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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: * create: the operation fails with 409. * exist_ok: 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] +**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] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/CreateTableRequest.md b/python/lance_namespace_urllib3_client/docs/CreateTableRequest.md index 118ea8290..1aa63b5d4 100644 --- a/python/lance_namespace_urllib3_client/docs/CreateTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/CreateTableRequest.md @@ -7,7 +7,7 @@ Request for creating a table, excluding the Arrow IPC stream. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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: * 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] +**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] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/DataApi.md b/python/lance_namespace_urllib3_client/docs/DataApi.md index ee7c4c6a0..0e8a6ace0 100644 --- a/python/lance_namespace_urllib3_client/docs/DataApi.md +++ b/python/lance_namespace_urllib3_client/docs/DataApi.md @@ -694,7 +694,7 @@ with lance_namespace_urllib3_client.ApiClient(configuration) as api_client: id = 'id_example' # str | `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. body = None # bytearray | Arrow IPC stream containing the records to insert delimiter = 'delimiter_example' # str | An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. (optional) - mode = append # str | How the insert should behave: - 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) + mode = 'append' # 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') try: # Insert records into a table @@ -715,7 +715,7 @@ Name | Type | Description | Notes **id** | **str**| `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. | **body** | **bytearray**| Arrow IPC stream containing the records to insert | **delimiter** | **str**| An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. | [optional] - **mode** | **str**| How the insert should behave: - 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] + **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'] ### Return type diff --git a/python/lance_namespace_urllib3_client/docs/DescribeNamespaceResponse.md b/python/lance_namespace_urllib3_client/docs/DescribeNamespaceResponse.md index 25c0a38e4..969fd7df8 100644 --- a/python/lance_namespace_urllib3_client/docs/DescribeNamespaceResponse.md +++ b/python/lance_namespace_urllib3_client/docs/DescribeNamespaceResponse.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **List[str]** | The namespace identifier as a list of parts | **properties** | **Dict[str, str]** | Properties stored on the namespace, if supported by the server. If the server does not support namespace properties, it should return null for this field. If namespace properties are supported, but none are set, it should return an empty object. | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/DescribeTransactionResponse.md b/python/lance_namespace_urllib3_client/docs/DescribeTransactionResponse.md index 704a2a7de..af6c25d59 100644 --- a/python/lance_namespace_urllib3_client/docs/DescribeTransactionResponse.md +++ b/python/lance_namespace_urllib3_client/docs/DescribeTransactionResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**TransactionStatus**](TransactionStatus.md) | | +**status** | **str** | The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled | **properties** | **Dict[str, str]** | | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/DropNamespaceRequest.md b/python/lance_namespace_urllib3_client/docs/DropNamespaceRequest.md index e9140ebc3..aed165bca 100644 --- a/python/lance_namespace_urllib3_client/docs/DropNamespaceRequest.md +++ b/python/lance_namespace_urllib3_client/docs/DropNamespaceRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **List[str]** | | [optional] -**mode** | **str** | The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. - FAIL (default): the server must return 400 indicating the namespace to drop does not exist. - SKIP: the server must return 204 indicating the drop operation has succeeded. | [optional] -**behavior** | **str** | The behavior for dropping a namespace. - RESTRICT (default): the namespace should not contain any table or child namespace when drop is initiated. If tables are found, the server should return error and not drop the namespace. - CASCADE: all tables and child namespaces in the namespace are dropped before the namespace is dropped. | [optional] +**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] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/DropNamespaceResponse.md b/python/lance_namespace_urllib3_client/docs/DropNamespaceResponse.md index 4d6e16615..cd9f9abab 100644 --- a/python/lance_namespace_urllib3_client/docs/DropNamespaceResponse.md +++ b/python/lance_namespace_urllib3_client/docs/DropNamespaceResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **properties** | **Dict[str, str]** | | [optional] -**transaction_id** | **List[str]** | If present, indicating the operation is long running and should be tracked using GetTransaction | [optional] +**transaction_id** | **List[str]** | If present, indicating the operation is long running and should be tracked using DescribeTransaction | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/InsertIntoTableRequest.md b/python/lance_namespace_urllib3_client/docs/InsertIntoTableRequest.md index f515ce80a..661d3ac2d 100644 --- a/python/lance_namespace_urllib3_client/docs/InsertIntoTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/InsertIntoTableRequest.md @@ -7,7 +7,7 @@ Request for inserting records into a table, excluding the Arrow IPC stream. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **List[str]** | | [optional] -**mode** | **str** | | [optional] [default to 'append'] +**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'] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/MatchQuery.md b/python/lance_namespace_urllib3_client/docs/MatchQuery.md index 5da7c9d91..793a9e423 100644 --- a/python/lance_namespace_urllib3_client/docs/MatchQuery.md +++ b/python/lance_namespace_urllib3_client/docs/MatchQuery.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **column** | **str** | | [optional] **fuzziness** | **int** | | [optional] **max_expansions** | **int** | The maximum number of terms to expand for fuzzy matching. Default to 50. | [optional] -**operator** | [**Operator**](Operator.md) | The operator to use for combining terms. This can be either `And` or `Or`, it's 'Or' by default. - `And`: All terms must match. - `Or`: At least one term must match. | [optional] +**operator** | **str** | The operator to use for combining terms. Case insensitive, supports both PascalCase and snake_case. Valid values are: - And: All terms must match. - Or: At least one term must match. | [optional] **prefix_length** | **int** | The number of beginning characters being unchanged for fuzzy matching. Default to 0. | [optional] **terms** | **str** | | diff --git a/python/lance_namespace_urllib3_client/docs/MetadataApi.md b/python/lance_namespace_urllib3_client/docs/MetadataApi.md index 53d5bec07..d44e483e4 100644 --- a/python/lance_namespace_urllib3_client/docs/MetadataApi.md +++ b/python/lance_namespace_urllib3_client/docs/MetadataApi.md @@ -1456,7 +1456,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Response of GetTransaction | - | +**200** | Response of DescribeTransaction | - | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | diff --git a/python/lance_namespace_urllib3_client/docs/Operator.md b/python/lance_namespace_urllib3_client/docs/Operator.md deleted file mode 100644 index eb5a4d182..000000000 --- a/python/lance_namespace_urllib3_client/docs/Operator.md +++ /dev/null @@ -1,12 +0,0 @@ -# Operator - - -## Enum - -* `AND` (value: `'And'`) - -* `OR` (value: `'Or'`) - -[[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/RegisterTableRequest.md b/python/lance_namespace_urllib3_client/docs/RegisterTableRequest.md index 0b0970461..3ab70bbe8 100644 --- a/python/lance_namespace_urllib3_client/docs/RegisterTableRequest.md +++ b/python/lance_namespace_urllib3_client/docs/RegisterTableRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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: * CREATE (default): the operation fails with 409. * OVERWRITE: the existing table registration is replaced with the new registration. | [optional] +**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] **properties** | **Dict[str, str]** | | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/RegisterTableResponse.md b/python/lance_namespace_urllib3_client/docs/RegisterTableResponse.md index 6df9480ea..f4149fbbf 100644 --- a/python/lance_namespace_urllib3_client/docs/RegisterTableResponse.md +++ b/python/lance_namespace_urllib3_client/docs/RegisterTableResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **transaction_id** | **str** | Optional transaction identifier | [optional] -**location** | **str** | | +**location** | **str** | | [optional] **properties** | **Dict[str, str]** | | [optional] ## Example diff --git a/python/lance_namespace_urllib3_client/docs/SetPropertyMode.md b/python/lance_namespace_urllib3_client/docs/SetPropertyMode.md deleted file mode 100644 index 3b411f555..000000000 --- a/python/lance_namespace_urllib3_client/docs/SetPropertyMode.md +++ /dev/null @@ -1,15 +0,0 @@ -# SetPropertyMode - -The behavior if the property key already exists. - OVERWRITE (default): overwrite the existing value with the provided value - FAIL: fail the entire operation - SKIP: keep the existing value and skip setting the provided value - -## Enum - -* `OVERWRITE` (value: `'OVERWRITE'`) - -* `FAIL` (value: `'FAIL'`) - -* `SKIP` (value: `'SKIP'`) - -[[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/TableApi.md b/python/lance_namespace_urllib3_client/docs/TableApi.md index 29647de74..15bbaddd9 100644 --- a/python/lance_namespace_urllib3_client/docs/TableApi.md +++ b/python/lance_namespace_urllib3_client/docs/TableApi.md @@ -2147,7 +2147,7 @@ with lance_namespace_urllib3_client.ApiClient(configuration) as api_client: id = 'id_example' # str | `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. body = None # bytearray | Arrow IPC stream containing the records to insert delimiter = 'delimiter_example' # str | An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. (optional) - mode = append # str | How the insert should behave: - 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) + mode = 'append' # 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') try: # Insert records into a table @@ -2168,7 +2168,7 @@ Name | Type | Description | Notes **id** | **str**| `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. | **body** | **bytearray**| Arrow IPC stream containing the records to insert | **delimiter** | **str**| An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. | [optional] - **mode** | **str**| How the insert should behave: - 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] + **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'] ### Return type diff --git a/python/lance_namespace_urllib3_client/docs/TransactionApi.md b/python/lance_namespace_urllib3_client/docs/TransactionApi.md index 9c0c0df77..c2c530165 100644 --- a/python/lance_namespace_urllib3_client/docs/TransactionApi.md +++ b/python/lance_namespace_urllib3_client/docs/TransactionApi.md @@ -200,7 +200,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Response of GetTransaction | - | +**200** | Response of DescribeTransaction | - | **400** | Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware. | - | **401** | Unauthorized. The request lacks valid authentication credentials for the operation. | - | **403** | Forbidden. Authenticated user does not have the necessary permissions. | - | diff --git a/python/lance_namespace_urllib3_client/docs/TransactionStatus.md b/python/lance_namespace_urllib3_client/docs/TransactionStatus.md deleted file mode 100644 index 67a8a3c3b..000000000 --- a/python/lance_namespace_urllib3_client/docs/TransactionStatus.md +++ /dev/null @@ -1,18 +0,0 @@ -# TransactionStatus - - -## Enum - -* `QUEUED` (value: `'QUEUED'`) - -* `RUNNING` (value: `'RUNNING'`) - -* `SUCCEEDED` (value: `'SUCCEEDED'`) - -* `FAILED` (value: `'FAILED'`) - -* `CANCELED` (value: `'CANCELED'`) - -[[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/UnsetPropertyMode.md b/python/lance_namespace_urllib3_client/docs/UnsetPropertyMode.md deleted file mode 100644 index 995c3fcf0..000000000 --- a/python/lance_namespace_urllib3_client/docs/UnsetPropertyMode.md +++ /dev/null @@ -1,13 +0,0 @@ -# UnsetPropertyMode - -The behavior if the property key to unset does not exist. - SKIP (default): skip the property to unset - FAIL: fail the entire operation - -## Enum - -* `SKIP` (value: `'SKIP'`) - -* `FAIL` (value: `'FAIL'`) - -[[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/lance_namespace_urllib3_client/__init__.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/__init__.py index 83413612a..019a01d61 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 @@ -120,7 +120,6 @@ from lance_namespace_urllib3_client.models.multi_match_query import MultiMatchQuery from lance_namespace_urllib3_client.models.namespace_exists_request import NamespaceExistsRequest from lance_namespace_urllib3_client.models.new_column_transform import NewColumnTransform -from lance_namespace_urllib3_client.models.operator import Operator from lance_namespace_urllib3_client.models.phrase_query import PhraseQuery from lance_namespace_urllib3_client.models.query_table_request import QueryTableRequest from lance_namespace_urllib3_client.models.query_table_request_columns import QueryTableRequestColumns @@ -132,15 +131,12 @@ from lance_namespace_urllib3_client.models.rename_table_response import RenameTableResponse from lance_namespace_urllib3_client.models.restore_table_request import RestoreTableRequest from lance_namespace_urllib3_client.models.restore_table_response import RestoreTableResponse -from lance_namespace_urllib3_client.models.set_property_mode import SetPropertyMode from lance_namespace_urllib3_client.models.string_fts_query import StringFtsQuery from lance_namespace_urllib3_client.models.structured_fts_query import StructuredFtsQuery from lance_namespace_urllib3_client.models.table_basic_stats import TableBasicStats from lance_namespace_urllib3_client.models.table_exists_request import TableExistsRequest from lance_namespace_urllib3_client.models.table_version import TableVersion from lance_namespace_urllib3_client.models.tag_contents import TagContents -from lance_namespace_urllib3_client.models.transaction_status import TransactionStatus -from lance_namespace_urllib3_client.models.unset_property_mode import UnsetPropertyMode from lance_namespace_urllib3_client.models.update_table_request import UpdateTableRequest from lance_namespace_urllib3_client.models.update_table_response import UpdateTableResponse from lance_namespace_urllib3_client.models.update_table_schema_metadata_request import UpdateTableSchemaMetadataRequest diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/data_api.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/data_api.py index 7b8df9b2e..6533595d3 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/data_api.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/data_api.py @@ -16,7 +16,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictBytes, StrictStr, field_validator +from pydantic import Field, StrictBool, StrictBytes, StrictStr from typing import Optional, Tuple, Union from typing_extensions import Annotated from lance_namespace_urllib3_client.models.alter_table_add_columns_request import AlterTableAddColumnsRequest @@ -2038,7 +2038,7 @@ def insert_into_table( id: Annotated[StrictStr, Field(description="`string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. ")], body: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="Arrow IPC stream containing the records to insert")], delimiter: Annotated[Optional[StrictStr], Field(description="An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. ")] = None, - mode: Annotated[Optional[StrictStr], Field(description="How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it ")] = None, + mode: Annotated[Optional[StrictStr], Field(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 ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2062,7 +2062,7 @@ def insert_into_table( :type body: bytearray :param delimiter: An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. :type delimiter: str - :param mode: How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it + :param mode: 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 :type mode: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2123,7 +2123,7 @@ def insert_into_table_with_http_info( id: Annotated[StrictStr, Field(description="`string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. ")], body: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="Arrow IPC stream containing the records to insert")], delimiter: Annotated[Optional[StrictStr], Field(description="An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. ")] = None, - mode: Annotated[Optional[StrictStr], Field(description="How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it ")] = None, + mode: Annotated[Optional[StrictStr], Field(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 ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2147,7 +2147,7 @@ def insert_into_table_with_http_info( :type body: bytearray :param delimiter: An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. :type delimiter: str - :param mode: How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it + :param mode: 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 :type mode: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2208,7 +2208,7 @@ def insert_into_table_without_preload_content( id: Annotated[StrictStr, Field(description="`string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. ")], body: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="Arrow IPC stream containing the records to insert")], delimiter: Annotated[Optional[StrictStr], Field(description="An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. ")] = None, - mode: Annotated[Optional[StrictStr], Field(description="How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it ")] = None, + mode: Annotated[Optional[StrictStr], Field(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 ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2232,7 +2232,7 @@ def insert_into_table_without_preload_content( :type body: bytearray :param delimiter: An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. :type delimiter: str - :param mode: How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it + :param mode: 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 :type mode: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/table_api.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/table_api.py index e65585052..1625031cf 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/table_api.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/api/table_api.py @@ -16,7 +16,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator +from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr from typing import Dict, Optional, Tuple, Union from typing_extensions import Annotated from lance_namespace_urllib3_client.models.alter_table_add_columns_request import AlterTableAddColumnsRequest @@ -6638,7 +6638,7 @@ def insert_into_table( id: Annotated[StrictStr, Field(description="`string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. ")], body: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="Arrow IPC stream containing the records to insert")], delimiter: Annotated[Optional[StrictStr], Field(description="An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. ")] = None, - mode: Annotated[Optional[StrictStr], Field(description="How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it ")] = None, + mode: Annotated[Optional[StrictStr], Field(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 ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6662,7 +6662,7 @@ def insert_into_table( :type body: bytearray :param delimiter: An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. :type delimiter: str - :param mode: How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it + :param mode: 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 :type mode: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -6723,7 +6723,7 @@ def insert_into_table_with_http_info( id: Annotated[StrictStr, Field(description="`string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. ")], body: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="Arrow IPC stream containing the records to insert")], delimiter: Annotated[Optional[StrictStr], Field(description="An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. ")] = None, - mode: Annotated[Optional[StrictStr], Field(description="How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it ")] = None, + mode: Annotated[Optional[StrictStr], Field(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 ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6747,7 +6747,7 @@ def insert_into_table_with_http_info( :type body: bytearray :param delimiter: An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. :type delimiter: str - :param mode: How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it + :param mode: 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 :type mode: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -6808,7 +6808,7 @@ def insert_into_table_without_preload_content( id: Annotated[StrictStr, Field(description="`string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. ")], body: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="Arrow IPC stream containing the records to insert")], delimiter: Annotated[Optional[StrictStr], Field(description="An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. ")] = None, - mode: Annotated[Optional[StrictStr], Field(description="How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it ")] = None, + mode: Annotated[Optional[StrictStr], Field(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 ")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6832,7 +6832,7 @@ def insert_into_table_without_preload_content( :type body: bytearray :param delimiter: An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. :type delimiter: str - :param mode: How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it + :param mode: 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 :type mode: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request 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 46d6fcab6..7747c9947 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 @@ -97,7 +97,6 @@ from lance_namespace_urllib3_client.models.multi_match_query import MultiMatchQuery from lance_namespace_urllib3_client.models.namespace_exists_request import NamespaceExistsRequest from lance_namespace_urllib3_client.models.new_column_transform import NewColumnTransform -from lance_namespace_urllib3_client.models.operator import Operator from lance_namespace_urllib3_client.models.phrase_query import PhraseQuery from lance_namespace_urllib3_client.models.query_table_request import QueryTableRequest from lance_namespace_urllib3_client.models.query_table_request_columns import QueryTableRequestColumns @@ -109,15 +108,12 @@ from lance_namespace_urllib3_client.models.rename_table_response import RenameTableResponse from lance_namespace_urllib3_client.models.restore_table_request import RestoreTableRequest from lance_namespace_urllib3_client.models.restore_table_response import RestoreTableResponse -from lance_namespace_urllib3_client.models.set_property_mode import SetPropertyMode from lance_namespace_urllib3_client.models.string_fts_query import StringFtsQuery from lance_namespace_urllib3_client.models.structured_fts_query import StructuredFtsQuery from lance_namespace_urllib3_client.models.table_basic_stats import TableBasicStats from lance_namespace_urllib3_client.models.table_exists_request import TableExistsRequest from lance_namespace_urllib3_client.models.table_version import TableVersion from lance_namespace_urllib3_client.models.tag_contents import TagContents -from lance_namespace_urllib3_client.models.transaction_status import TransactionStatus -from lance_namespace_urllib3_client.models.unset_property_mode import UnsetPropertyMode from lance_namespace_urllib3_client.models.update_table_request import UpdateTableRequest from lance_namespace_urllib3_client.models.update_table_response import UpdateTableResponse from lance_namespace_urllib3_client.models.update_table_schema_metadata_request import UpdateTableSchemaMetadataRequest diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_response.py index c32190e26..895a64e7d 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_response.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_response.py @@ -17,9 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from lance_namespace_urllib3_client.models.transaction_status import TransactionStatus from typing import Optional, Set from typing_extensions import Self @@ -27,7 +26,7 @@ class AlterTransactionResponse(BaseModel): """ AlterTransactionResponse """ # noqa: E501 - status: TransactionStatus + status: StrictStr = Field(description="The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled ") properties: Optional[Dict[str, StrictStr]] = None __properties: ClassVar[List[str]] = ["status", "properties"] diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_set_property.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_set_property.py index bed92f618..b2783a0a2 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_set_property.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_set_property.py @@ -17,9 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from lance_namespace_urllib3_client.models.set_property_mode import SetPropertyMode from typing import Optional, Set from typing_extensions import Self @@ -29,7 +28,7 @@ class AlterTransactionSetProperty(BaseModel): """ # noqa: E501 key: Optional[StrictStr] = None value: Optional[StrictStr] = None - mode: Optional[SetPropertyMode] = None + mode: Optional[StrictStr] = Field(default=None, description="The behavior if the property key already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Overwrite (default): overwrite the existing value with the provided value - Fail: fail the entire operation - Skip: keep the existing value and skip setting the provided value ") __properties: ClassVar[List[str]] = ["key", "value", "mode"] model_config = ConfigDict( diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_set_status.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_set_status.py index fdc688ac0..38221ca33 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_set_status.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_set_status.py @@ -17,9 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from lance_namespace_urllib3_client.models.transaction_status import TransactionStatus from typing import Optional, Set from typing_extensions import Self @@ -27,7 +26,7 @@ class AlterTransactionSetStatus(BaseModel): """ AlterTransactionSetStatus """ # noqa: E501 - status: Optional[TransactionStatus] = None + status: Optional[StrictStr] = Field(default=None, description="The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled ") __properties: ClassVar[List[str]] = ["status"] model_config = ConfigDict( diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_unset_property.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_unset_property.py index df0cbdf65..d2fe1119a 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_unset_property.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/alter_transaction_unset_property.py @@ -17,9 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from lance_namespace_urllib3_client.models.unset_property_mode import UnsetPropertyMode from typing import Optional, Set from typing_extensions import Self @@ -28,7 +27,7 @@ class AlterTransactionUnsetProperty(BaseModel): AlterTransactionUnsetProperty """ # noqa: E501 key: Optional[StrictStr] = None - mode: Optional[UnsetPropertyMode] = None + mode: Optional[StrictStr] = Field(default=None, description="The behavior if the property key to unset does not exist. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Skip (default): skip the property to unset - Fail: fail the entire operation ") __properties: ClassVar[List[str]] = ["key", "mode"] model_config = ConfigDict( 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 be655111f..0971c3fd9 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 @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +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 @@ -27,20 +27,10 @@ class CreateNamespaceRequest(BaseModel): CreateNamespaceRequest """ # noqa: E501 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: * create: the operation fails with 409. * exist_ok: 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. ") + 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"] - @field_validator('mode') - def mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['create', 'exist_ok', 'overwrite']): - raise ValueError("must be one of enum values ('create', 'exist_ok', 'overwrite')") - return value - model_config = ConfigDict( populate_by_name=True, validate_assignment=True, 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 3320f0287..c83ebf078 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 @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +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 @@ -27,19 +27,9 @@ class CreateTableRequest(BaseModel): Request for creating a table, excluding the Arrow IPC stream. """ # noqa: E501 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: * 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. ") + 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"] - @field_validator('mode') - def mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['Create', 'ExistOk', 'Overwrite']): - raise ValueError("must be one of enum values ('Create', 'ExistOk', 'Overwrite')") - return value - model_config = ConfigDict( populate_by_name=True, validate_assignment=True, diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_namespace_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_namespace_response.py index bc1d825b3..5ff469ea0 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_namespace_response.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_namespace_response.py @@ -26,9 +26,8 @@ class DescribeNamespaceResponse(BaseModel): """ DescribeNamespaceResponse """ # noqa: E501 - id: List[StrictStr] = Field(description="The namespace identifier as a list of parts") properties: Optional[Dict[str, StrictStr]] = Field(default=None, description="Properties stored on the namespace, if supported by the server. If the server does not support namespace properties, it should return null for this field. If namespace properties are supported, but none are set, it should return an empty object.") - __properties: ClassVar[List[str]] = ["id", "properties"] + __properties: ClassVar[List[str]] = ["properties"] model_config = ConfigDict( populate_by_name=True, @@ -81,7 +80,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "id": obj.get("id"), "properties": obj.get("properties") }) return _obj diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_transaction_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_transaction_response.py index 866a540da..765778c9c 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_transaction_response.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/describe_transaction_response.py @@ -17,9 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from lance_namespace_urllib3_client.models.transaction_status import TransactionStatus from typing import Optional, Set from typing_extensions import Self @@ -27,7 +26,7 @@ class DescribeTransactionResponse(BaseModel): """ DescribeTransactionResponse """ # noqa: E501 - status: TransactionStatus + status: StrictStr = Field(description="The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled ") properties: Optional[Dict[str, StrictStr]] = None __properties: ClassVar[List[str]] = ["status", "properties"] 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 c11c58822..c1dc49755 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 @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +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 @@ -27,30 +27,10 @@ class DropNamespaceRequest(BaseModel): DropNamespaceRequest """ # noqa: E501 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. - 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. - 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. ") + 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"] - @field_validator('mode') - def mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['SKIP', 'FAIL']): - raise ValueError("must be one of enum values ('SKIP', 'FAIL')") - return value - - @field_validator('behavior') - def behavior_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['RESTRICT', 'CASCADE']): - raise ValueError("must be one of enum values ('RESTRICT', 'CASCADE')") - return value - model_config = ConfigDict( populate_by_name=True, validate_assignment=True, diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_namespace_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_namespace_response.py index 007ce9790..fcc3fd50a 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_namespace_response.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/drop_namespace_response.py @@ -27,7 +27,7 @@ class DropNamespaceResponse(BaseModel): DropNamespaceResponse """ # noqa: E501 properties: Optional[Dict[str, StrictStr]] = None - transaction_id: Optional[List[StrictStr]] = Field(default=None, description="If present, indicating the operation is long running and should be tracked using GetTransaction ") + transaction_id: Optional[List[StrictStr]] = Field(default=None, description="If present, indicating the operation is long running and should be tracked using DescribeTransaction ") __properties: ClassVar[List[str]] = ["properties", "transaction_id"] model_config = ConfigDict( 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 e885b3b5c..0bffba87b 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 @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +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 @@ -27,19 +27,9 @@ class InsertIntoTableRequest(BaseModel): Request for inserting records into a table, excluding the Arrow IPC stream. """ # noqa: E501 id: Optional[List[StrictStr]] = None - mode: Optional[StrictStr] = 'append' + 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"] - @field_validator('mode') - def mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['create', 'append', 'overwrite']): - raise ValueError("must be one of enum values ('create', 'append', 'overwrite')") - return value - model_config = ConfigDict( populate_by_name=True, validate_assignment=True, diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/match_query.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/match_query.py index c1cdd3b94..e11db4efc 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/match_query.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/match_query.py @@ -20,7 +20,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated -from lance_namespace_urllib3_client.models.operator import Operator from typing import Optional, Set from typing_extensions import Self @@ -32,7 +31,7 @@ class MatchQuery(BaseModel): column: Optional[StrictStr] = None fuzziness: Optional[Annotated[int, Field(strict=True, ge=0)]] = None max_expansions: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The maximum number of terms to expand for fuzzy matching. Default to 50.") - operator: Optional[Operator] = Field(default=None, description="The operator to use for combining terms. This can be either `And` or `Or`, it's 'Or' by default. - `And`: All terms must match. - `Or`: At least one term must match.") + operator: Optional[StrictStr] = Field(default=None, description="The operator to use for combining terms. Case insensitive, supports both PascalCase and snake_case. Valid values are: - And: All terms must match. - Or: At least one term must match. ") prefix_length: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The number of beginning characters being unchanged for fuzzy matching. Default to 0.") terms: StrictStr __properties: ClassVar[List[str]] = ["boost", "column", "fuzziness", "max_expansions", "operator", "prefix_length", "terms"] diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/operator.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/operator.py deleted file mode 100644 index 1b8bf13dc..000000000 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/operator.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 json -from enum import Enum -from typing_extensions import Self - - -class Operator(str, Enum): - """ - Operator - """ - - """ - allowed enum values - """ - AND = 'And' - OR = 'Or' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Operator from a JSON string""" - return cls(json.loads(json_str)) - - 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 d4cdcfc88..6b6f20450 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 @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +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 @@ -28,20 +28,10 @@ class RegisterTableRequest(BaseModel): """ # noqa: E501 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: * CREATE (default): the operation fails with 409. * OVERWRITE: the existing table registration is replaced with the new registration. ") + 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"] - @field_validator('mode') - def mode_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['CREATE', 'OVERWRITE']): - raise ValueError("must be one of enum values ('CREATE', 'OVERWRITE')") - return value - model_config = ConfigDict( populate_by_name=True, validate_assignment=True, diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/register_table_response.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/register_table_response.py index 796688a62..4025ab225 100644 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/register_table_response.py +++ b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/register_table_response.py @@ -27,7 +27,7 @@ class RegisterTableResponse(BaseModel): RegisterTableResponse """ # noqa: E501 transaction_id: Optional[StrictStr] = Field(default=None, description="Optional transaction identifier") - location: StrictStr + location: Optional[StrictStr] = None properties: Optional[Dict[str, StrictStr]] = None __properties: ClassVar[List[str]] = ["transaction_id", "location", "properties"] diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/set_property_mode.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/set_property_mode.py deleted file mode 100644 index d584eecfa..000000000 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/set_property_mode.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 json -from enum import Enum -from typing_extensions import Self - - -class SetPropertyMode(str, Enum): - """ - The behavior if the property key already exists. - OVERWRITE (default): overwrite the existing value with the provided value - FAIL: fail the entire operation - SKIP: keep the existing value and skip setting the provided value - """ - - """ - allowed enum values - """ - OVERWRITE = 'OVERWRITE' - FAIL = 'FAIL' - SKIP = 'SKIP' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SetPropertyMode from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/transaction_status.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/transaction_status.py deleted file mode 100644 index a8b66ebdc..000000000 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/transaction_status.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 json -from enum import Enum -from typing_extensions import Self - - -class TransactionStatus(str, Enum): - """ - TransactionStatus - """ - - """ - allowed enum values - """ - QUEUED = 'QUEUED' - RUNNING = 'RUNNING' - SUCCEEDED = 'SUCCEEDED' - FAILED = 'FAILED' - CANCELED = 'CANCELED' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TransactionStatus from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/unset_property_mode.py b/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/unset_property_mode.py deleted file mode 100644 index 8bcb0fbd2..000000000 --- a/python/lance_namespace_urllib3_client/lance_namespace_urllib3_client/models/unset_property_mode.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 json -from enum import Enum -from typing_extensions import Self - - -class UnsetPropertyMode(str, Enum): - """ - The behavior if the property key to unset does not exist. - SKIP (default): skip the property to unset - FAIL: fail the entire operation - """ - - """ - allowed enum values - """ - SKIP = 'SKIP' - FAIL = 'FAIL' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of UnsetPropertyMode from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/python/lance_namespace_urllib3_client/test/test_alter_transaction_action.py b/python/lance_namespace_urllib3_client/test/test_alter_transaction_action.py index 844229067..01448cb02 100644 --- a/python/lance_namespace_urllib3_client/test/test_alter_transaction_action.py +++ b/python/lance_namespace_urllib3_client/test/test_alter_transaction_action.py @@ -36,14 +36,14 @@ def make_instance(self, include_optional) -> AlterTransactionAction: if include_optional: return AlterTransactionAction( set_status_action = lance_namespace_urllib3_client.models.alter_transaction_set_status.AlterTransactionSetStatus( - status = 'QUEUED', ), + status = '', ), set_property_action = lance_namespace_urllib3_client.models.alter_transaction_set_property.AlterTransactionSetProperty( key = '', value = '', - mode = 'OVERWRITE', ), + mode = '', ), unset_property_action = lance_namespace_urllib3_client.models.alter_transaction_unset_property.AlterTransactionUnsetProperty( key = '', - mode = 'SKIP', ) + mode = '', ) ) else: return AlterTransactionAction( 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 6f5b79485..10e884a51 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 @@ -41,13 +41,14 @@ def make_instance(self, include_optional) -> AlterTransactionRequest: actions = [ lance_namespace_urllib3_client.models.alter_transaction_action.AlterTransactionAction( set_status_action = lance_namespace_urllib3_client.models.alter_transaction_set_status.AlterTransactionSetStatus( - status = 'QUEUED', ), + status = '', ), set_property_action = lance_namespace_urllib3_client.models.alter_transaction_set_property.AlterTransactionSetProperty( key = '', value = '', - mode = 'OVERWRITE', ), + mode = '', ), unset_property_action = lance_namespace_urllib3_client.models.alter_transaction_unset_property.AlterTransactionUnsetProperty( - key = '', ), ) + key = '', + mode = '', ), ) ] ) else: @@ -55,13 +56,14 @@ def make_instance(self, include_optional) -> AlterTransactionRequest: actions = [ lance_namespace_urllib3_client.models.alter_transaction_action.AlterTransactionAction( set_status_action = lance_namespace_urllib3_client.models.alter_transaction_set_status.AlterTransactionSetStatus( - status = 'QUEUED', ), + status = '', ), set_property_action = lance_namespace_urllib3_client.models.alter_transaction_set_property.AlterTransactionSetProperty( key = '', value = '', - mode = 'OVERWRITE', ), + mode = '', ), unset_property_action = lance_namespace_urllib3_client.models.alter_transaction_unset_property.AlterTransactionUnsetProperty( - key = '', ), ) + key = '', + mode = '', ), ) ], ) """ diff --git a/python/lance_namespace_urllib3_client/test/test_alter_transaction_response.py b/python/lance_namespace_urllib3_client/test/test_alter_transaction_response.py index 4dadcf84a..edff98e5f 100644 --- a/python/lance_namespace_urllib3_client/test/test_alter_transaction_response.py +++ b/python/lance_namespace_urllib3_client/test/test_alter_transaction_response.py @@ -35,14 +35,14 @@ def make_instance(self, include_optional) -> AlterTransactionResponse: model = AlterTransactionResponse() if include_optional: return AlterTransactionResponse( - status = 'QUEUED', + status = '', properties = { 'key' : '' } ) else: return AlterTransactionResponse( - status = 'QUEUED', + status = '', ) """ diff --git a/python/lance_namespace_urllib3_client/test/test_alter_transaction_set_property.py b/python/lance_namespace_urllib3_client/test/test_alter_transaction_set_property.py index 36e0af4da..ecc67edda 100644 --- a/python/lance_namespace_urllib3_client/test/test_alter_transaction_set_property.py +++ b/python/lance_namespace_urllib3_client/test/test_alter_transaction_set_property.py @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> AlterTransactionSetProperty: return AlterTransactionSetProperty( key = '', value = '', - mode = 'OVERWRITE' + mode = '' ) else: return AlterTransactionSetProperty( diff --git a/python/lance_namespace_urllib3_client/test/test_alter_transaction_set_status.py b/python/lance_namespace_urllib3_client/test/test_alter_transaction_set_status.py index 38b62c92e..439d59eae 100644 --- a/python/lance_namespace_urllib3_client/test/test_alter_transaction_set_status.py +++ b/python/lance_namespace_urllib3_client/test/test_alter_transaction_set_status.py @@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> AlterTransactionSetStatus: model = AlterTransactionSetStatus() if include_optional: return AlterTransactionSetStatus( - status = 'QUEUED' + status = '' ) else: return AlterTransactionSetStatus( diff --git a/python/lance_namespace_urllib3_client/test/test_alter_transaction_unset_property.py b/python/lance_namespace_urllib3_client/test/test_alter_transaction_unset_property.py index ad7674f64..955d19968 100644 --- a/python/lance_namespace_urllib3_client/test/test_alter_transaction_unset_property.py +++ b/python/lance_namespace_urllib3_client/test/test_alter_transaction_unset_property.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> AlterTransactionUnsetProperty: if include_optional: return AlterTransactionUnsetProperty( key = '', - mode = 'SKIP' + mode = '' ) else: return AlterTransactionUnsetProperty( 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 1967e189a..3d8b15092 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 @@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> AnalyzeTableQueryPlanRequest: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -78,6 +78,7 @@ def make_instance(self, include_optional) -> AnalyzeTableQueryPlanRequest: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), diff --git a/python/lance_namespace_urllib3_client/test/test_boolean_query.py b/python/lance_namespace_urllib3_client/test/test_boolean_query.py index 25272b1a3..017e5c397 100644 --- a/python/lance_namespace_urllib3_client/test/test_boolean_query.py +++ b/python/lance_namespace_urllib3_client/test/test_boolean_query.py @@ -42,7 +42,7 @@ def make_instance(self, include_optional) -> BooleanQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -57,6 +57,7 @@ def make_instance(self, include_optional) -> BooleanQuery: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), @@ -92,7 +93,7 @@ def make_instance(self, include_optional) -> BooleanQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -107,6 +108,7 @@ def make_instance(self, include_optional) -> BooleanQuery: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), @@ -142,7 +144,7 @@ def make_instance(self, include_optional) -> BooleanQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -157,6 +159,7 @@ def make_instance(self, include_optional) -> BooleanQuery: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), @@ -195,7 +198,7 @@ def make_instance(self, include_optional) -> BooleanQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -210,6 +213,7 @@ def make_instance(self, include_optional) -> BooleanQuery: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), @@ -245,7 +249,7 @@ def make_instance(self, include_optional) -> BooleanQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -260,6 +264,7 @@ def make_instance(self, include_optional) -> BooleanQuery: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), @@ -295,7 +300,7 @@ def make_instance(self, include_optional) -> BooleanQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -310,6 +315,7 @@ def make_instance(self, include_optional) -> BooleanQuery: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), diff --git a/python/lance_namespace_urllib3_client/test/test_boost_query.py b/python/lance_namespace_urllib3_client/test/test_boost_query.py index 2f5a91e35..95fd76dd6 100644 --- a/python/lance_namespace_urllib3_client/test/test_boost_query.py +++ b/python/lance_namespace_urllib3_client/test/test_boost_query.py @@ -41,7 +41,7 @@ def make_instance(self, include_optional) -> BoostQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -56,6 +56,7 @@ def make_instance(self, include_optional) -> BoostQuery: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), @@ -91,7 +92,7 @@ def make_instance(self, include_optional) -> BoostQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -106,6 +107,7 @@ def make_instance(self, include_optional) -> BoostQuery: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), @@ -145,7 +147,7 @@ def make_instance(self, include_optional) -> BoostQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -160,6 +162,7 @@ def make_instance(self, include_optional) -> BoostQuery: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), @@ -195,7 +198,7 @@ def make_instance(self, include_optional) -> BoostQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -210,6 +213,7 @@ def make_instance(self, include_optional) -> BoostQuery: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), 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 0c37ef441..398cc1e32 100644 --- a/python/lance_namespace_urllib3_client/test/test_create_namespace_request.py +++ b/python/lance_namespace_urllib3_client/test/test_create_namespace_request.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> CreateNamespaceRequest: id = [ '' ], - mode = 'create', + mode = '', properties = { 'key' : '' } 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 7b4de0028..a10fd6c2c 100644 --- a/python/lance_namespace_urllib3_client/test/test_create_table_request.py +++ b/python/lance_namespace_urllib3_client/test/test_create_table_request.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> CreateTableRequest: id = [ '' ], - mode = 'Create' + mode = '' ) else: return CreateTableRequest( diff --git a/python/lance_namespace_urllib3_client/test/test_describe_namespace_response.py b/python/lance_namespace_urllib3_client/test/test_describe_namespace_response.py index 0773f696e..4edfb78e1 100644 --- a/python/lance_namespace_urllib3_client/test/test_describe_namespace_response.py +++ b/python/lance_namespace_urllib3_client/test/test_describe_namespace_response.py @@ -35,16 +35,10 @@ def make_instance(self, include_optional) -> DescribeNamespaceResponse: model = DescribeNamespaceResponse() if include_optional: return DescribeNamespaceResponse( - id = [ - '' - ], properties = {owner=Ralph, created_at=1452120468} ) else: return DescribeNamespaceResponse( - id = [ - '' - ], ) """ diff --git a/python/lance_namespace_urllib3_client/test/test_describe_transaction_response.py b/python/lance_namespace_urllib3_client/test/test_describe_transaction_response.py index 3d3c6d6a4..23acac6b3 100644 --- a/python/lance_namespace_urllib3_client/test/test_describe_transaction_response.py +++ b/python/lance_namespace_urllib3_client/test/test_describe_transaction_response.py @@ -35,14 +35,14 @@ def make_instance(self, include_optional) -> DescribeTransactionResponse: model = DescribeTransactionResponse() if include_optional: return DescribeTransactionResponse( - status = 'QUEUED', + status = '', properties = { 'key' : '' } ) else: return DescribeTransactionResponse( - status = 'QUEUED', + status = '', ) """ 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 04bd97538..a3768815f 100644 --- a/python/lance_namespace_urllib3_client/test/test_drop_namespace_request.py +++ b/python/lance_namespace_urllib3_client/test/test_drop_namespace_request.py @@ -38,8 +38,8 @@ def make_instance(self, include_optional) -> DropNamespaceRequest: id = [ '' ], - mode = 'SKIP', - behavior = 'RESTRICT' + mode = '', + behavior = '' ) else: return DropNamespaceRequest( 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 0a7026d34..5a13be685 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 @@ -64,7 +64,7 @@ def make_instance(self, include_optional) -> ExplainTableQueryPlanRequest: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -79,6 +79,7 @@ def make_instance(self, include_optional) -> ExplainTableQueryPlanRequest: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), @@ -157,7 +158,7 @@ def make_instance(self, include_optional) -> ExplainTableQueryPlanRequest: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -172,6 +173,7 @@ def make_instance(self, include_optional) -> ExplainTableQueryPlanRequest: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), diff --git a/python/lance_namespace_urllib3_client/test/test_fts_query.py b/python/lance_namespace_urllib3_client/test/test_fts_query.py index d0d739da8..5f045171d 100644 --- a/python/lance_namespace_urllib3_client/test/test_fts_query.py +++ b/python/lance_namespace_urllib3_client/test/test_fts_query.py @@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> FtsQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -53,7 +53,7 @@ def make_instance(self, include_optional) -> FtsQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -88,7 +88,7 @@ def make_instance(self, include_optional) -> FtsQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ) ], ), @@ -100,7 +100,7 @@ def make_instance(self, include_optional) -> FtsQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( diff --git a/python/lance_namespace_urllib3_client/test/test_match_query.py b/python/lance_namespace_urllib3_client/test/test_match_query.py index 11e8925a1..addc03573 100644 --- a/python/lance_namespace_urllib3_client/test/test_match_query.py +++ b/python/lance_namespace_urllib3_client/test/test_match_query.py @@ -39,7 +39,7 @@ def make_instance(self, include_optional) -> MatchQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '' ) diff --git a/python/lance_namespace_urllib3_client/test/test_multi_match_query.py b/python/lance_namespace_urllib3_client/test/test_multi_match_query.py index bace120db..7594edcc3 100644 --- a/python/lance_namespace_urllib3_client/test/test_multi_match_query.py +++ b/python/lance_namespace_urllib3_client/test/test_multi_match_query.py @@ -41,7 +41,7 @@ def make_instance(self, include_optional) -> MultiMatchQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ) ] @@ -54,7 +54,7 @@ def make_instance(self, include_optional) -> MultiMatchQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ) ], diff --git a/python/lance_namespace_urllib3_client/test/test_operator.py b/python/lance_namespace_urllib3_client/test/test_operator.py deleted file mode 100644 index f9d24459a..000000000 --- a/python/lance_namespace_urllib3_client/test/test_operator.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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.operator import Operator - -class TestOperator(unittest.TestCase): - """Operator unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOperator(self): - """Test Operator""" - # inst = Operator() - -if __name__ == '__main__': - unittest.main() 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 394e84ac4..916a89deb 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 @@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> QueryTableRequest: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( diff --git a/python/lance_namespace_urllib3_client/test/test_query_table_request_full_text_query.py b/python/lance_namespace_urllib3_client/test/test_query_table_request_full_text_query.py index 3fcff4d00..7d685ba7f 100644 --- a/python/lance_namespace_urllib3_client/test/test_query_table_request_full_text_query.py +++ b/python/lance_namespace_urllib3_client/test/test_query_table_request_full_text_query.py @@ -47,7 +47,7 @@ def make_instance(self, include_optional) -> QueryTableRequestFullTextQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -62,6 +62,7 @@ def make_instance(self, include_optional) -> QueryTableRequestFullTextQuery: column = '', fuzziness = 0, max_expansions = 0, + operator = '', prefix_length = 0, terms = '', ) ], ), 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 263983b69..724ab667a 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 @@ -39,7 +39,7 @@ def make_instance(self, include_optional) -> RegisterTableRequest: '' ], location = '', - mode = 'CREATE', + mode = '', properties = { 'key' : '' } diff --git a/python/lance_namespace_urllib3_client/test/test_register_table_response.py b/python/lance_namespace_urllib3_client/test/test_register_table_response.py index 1460e6fe0..8319654eb 100644 --- a/python/lance_namespace_urllib3_client/test/test_register_table_response.py +++ b/python/lance_namespace_urllib3_client/test/test_register_table_response.py @@ -43,7 +43,6 @@ def make_instance(self, include_optional) -> RegisterTableResponse: ) else: return RegisterTableResponse( - location = '', ) """ diff --git a/python/lance_namespace_urllib3_client/test/test_set_property_mode.py b/python/lance_namespace_urllib3_client/test/test_set_property_mode.py deleted file mode 100644 index 690d3d3a5..000000000 --- a/python/lance_namespace_urllib3_client/test/test_set_property_mode.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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.set_property_mode import SetPropertyMode - -class TestSetPropertyMode(unittest.TestCase): - """SetPropertyMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSetPropertyMode(self): - """Test SetPropertyMode""" - # inst = SetPropertyMode() - -if __name__ == '__main__': - unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_structured_fts_query.py b/python/lance_namespace_urllib3_client/test/test_structured_fts_query.py index 361d14d0f..39916155e 100644 --- a/python/lance_namespace_urllib3_client/test/test_structured_fts_query.py +++ b/python/lance_namespace_urllib3_client/test/test_structured_fts_query.py @@ -41,7 +41,7 @@ def make_instance(self, include_optional) -> StructuredFtsQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( @@ -94,7 +94,7 @@ def make_instance(self, include_optional) -> StructuredFtsQuery: column = '', fuzziness = 0, max_expansions = 0, - operator = 'And', + operator = '', prefix_length = 0, terms = '', ), phrase = lance_namespace_urllib3_client.models.phrase_query.PhraseQuery( diff --git a/python/lance_namespace_urllib3_client/test/test_transaction_status.py b/python/lance_namespace_urllib3_client/test/test_transaction_status.py deleted file mode 100644 index 41c63d4fb..000000000 --- a/python/lance_namespace_urllib3_client/test/test_transaction_status.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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.transaction_status import TransactionStatus - -class TestTransactionStatus(unittest.TestCase): - """TransactionStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTransactionStatus(self): - """Test TransactionStatus""" - # inst = TransactionStatus() - -if __name__ == '__main__': - unittest.main() diff --git a/python/lance_namespace_urllib3_client/test/test_unset_property_mode.py b/python/lance_namespace_urllib3_client/test/test_unset_property_mode.py deleted file mode 100644 index 031fba8c3..000000000 --- a/python/lance_namespace_urllib3_client/test/test_unset_property_mode.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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.unset_property_mode import UnsetPropertyMode - -class TestUnsetPropertyMode(unittest.TestCase): - """UnsetPropertyMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUnsetPropertyMode(self): - """Test UnsetPropertyMode""" - # inst = UnsetPropertyMode() - -if __name__ == '__main__': - unittest.main() diff --git a/rust/lance-namespace-reqwest-client/README.md b/rust/lance-namespace-reqwest-client/README.md index 530842bb9..1e426e9b8 100644 --- a/rust/lance-namespace-reqwest-client/README.md +++ b/rust/lance-namespace-reqwest-client/README.md @@ -216,7 +216,6 @@ Class | Method | HTTP request | Description - [MultiMatchQuery](docs/MultiMatchQuery.md) - [NamespaceExistsRequest](docs/NamespaceExistsRequest.md) - [NewColumnTransform](docs/NewColumnTransform.md) - - [Operator](docs/Operator.md) - [PhraseQuery](docs/PhraseQuery.md) - [QueryTableRequest](docs/QueryTableRequest.md) - [QueryTableRequestColumns](docs/QueryTableRequestColumns.md) @@ -228,15 +227,12 @@ Class | Method | HTTP request | Description - [RenameTableResponse](docs/RenameTableResponse.md) - [RestoreTableRequest](docs/RestoreTableRequest.md) - [RestoreTableResponse](docs/RestoreTableResponse.md) - - [SetPropertyMode](docs/SetPropertyMode.md) - [StringFtsQuery](docs/StringFtsQuery.md) - [StructuredFtsQuery](docs/StructuredFtsQuery.md) - [TableBasicStats](docs/TableBasicStats.md) - [TableExistsRequest](docs/TableExistsRequest.md) - [TableVersion](docs/TableVersion.md) - [TagContents](docs/TagContents.md) - - [TransactionStatus](docs/TransactionStatus.md) - - [UnsetPropertyMode](docs/UnsetPropertyMode.md) - [UpdateTableRequest](docs/UpdateTableRequest.md) - [UpdateTableResponse](docs/UpdateTableResponse.md) - [UpdateTableSchemaMetadataRequest](docs/UpdateTableSchemaMetadataRequest.md) diff --git a/rust/lance-namespace-reqwest-client/docs/AlterTransactionResponse.md b/rust/lance-namespace-reqwest-client/docs/AlterTransactionResponse.md index ec70b7962..6af512aea 100644 --- a/rust/lance-namespace-reqwest-client/docs/AlterTransactionResponse.md +++ b/rust/lance-namespace-reqwest-client/docs/AlterTransactionResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**models::TransactionStatus**](TransactionStatus.md) | | +**status** | **String** | The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled | **properties** | Option<**std::collections::HashMap**> | | [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/AlterTransactionSetProperty.md b/rust/lance-namespace-reqwest-client/docs/AlterTransactionSetProperty.md index 8f1e57f47..688e0748d 100644 --- a/rust/lance-namespace-reqwest-client/docs/AlterTransactionSetProperty.md +++ b/rust/lance-namespace-reqwest-client/docs/AlterTransactionSetProperty.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | Option<**String**> | | [optional] **value** | Option<**String**> | | [optional] -**mode** | Option<[**models::SetPropertyMode**](SetPropertyMode.md)> | | [optional] +**mode** | Option<**String**> | The behavior if the property key already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Overwrite (default): overwrite the existing value with the provided value - Fail: fail the entire operation - Skip: keep the existing value and skip setting the provided value | [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/AlterTransactionSetStatus.md b/rust/lance-namespace-reqwest-client/docs/AlterTransactionSetStatus.md index 0fdf2bec9..24bdd7752 100644 --- a/rust/lance-namespace-reqwest-client/docs/AlterTransactionSetStatus.md +++ b/rust/lance-namespace-reqwest-client/docs/AlterTransactionSetStatus.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | Option<[**models::TransactionStatus**](TransactionStatus.md)> | | [optional] +**status** | Option<**String**> | The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled | [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/AlterTransactionUnsetProperty.md b/rust/lance-namespace-reqwest-client/docs/AlterTransactionUnsetProperty.md index 6a68d2e62..b99be1572 100644 --- a/rust/lance-namespace-reqwest-client/docs/AlterTransactionUnsetProperty.md +++ b/rust/lance-namespace-reqwest-client/docs/AlterTransactionUnsetProperty.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | Option<**String**> | | [optional] -**mode** | Option<[**models::UnsetPropertyMode**](UnsetPropertyMode.md)> | | [optional] +**mode** | Option<**String**> | The behavior if the property key to unset does not exist. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Skip (default): skip the property to unset - Fail: fail the entire operation | [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/CreateNamespaceRequest.md b/rust/lance-namespace-reqwest-client/docs/CreateNamespaceRequest.md index 7a918fe58..8741731c6 100644 --- a/rust/lance-namespace-reqwest-client/docs/CreateNamespaceRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CreateNamespaceRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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: * create: the operation fails with 409. * exist_ok: 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] +**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] [[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/CreateTableRequest.md b/rust/lance-namespace-reqwest-client/docs/CreateTableRequest.md index b9fd94914..afb6f9628 100644 --- a/rust/lance-namespace-reqwest-client/docs/CreateTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/CreateTableRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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: * 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] +**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] [[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/DataApi.md b/rust/lance-namespace-reqwest-client/docs/DataApi.md index 8c2cb8db7..f4e0725fa 100644 --- a/rust/lance-namespace-reqwest-client/docs/DataApi.md +++ b/rust/lance-namespace-reqwest-client/docs/DataApi.md @@ -225,7 +225,7 @@ Name | Type | Description | Required | Notes **id** | **String** | `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. | [required] | **body** | **Vec** | Arrow IPC stream containing the records to insert | [required] | **delimiter** | Option<**String**> | An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. | | -**mode** | Option<**String**> | How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it | |[default to append] +**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 | |[default to append] ### Return type diff --git a/rust/lance-namespace-reqwest-client/docs/DescribeNamespaceResponse.md b/rust/lance-namespace-reqwest-client/docs/DescribeNamespaceResponse.md index e08de2805..d2a1b8394 100644 --- a/rust/lance-namespace-reqwest-client/docs/DescribeNamespaceResponse.md +++ b/rust/lance-namespace-reqwest-client/docs/DescribeNamespaceResponse.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Vec** | The namespace identifier as a list of parts | **properties** | Option<**std::collections::HashMap**> | Properties stored on the namespace, if supported by the server. If the server does not support namespace properties, it should return null for this field. If namespace properties are supported, but none are set, it should return an empty object. | [optional][default to {}] [[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/DescribeTransactionResponse.md b/rust/lance-namespace-reqwest-client/docs/DescribeTransactionResponse.md index be8e4b16d..1f07c656f 100644 --- a/rust/lance-namespace-reqwest-client/docs/DescribeTransactionResponse.md +++ b/rust/lance-namespace-reqwest-client/docs/DescribeTransactionResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**models::TransactionStatus**](TransactionStatus.md) | | +**status** | **String** | The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled | **properties** | Option<**std::collections::HashMap**> | | [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 358d9755e..c71e480f8 100644 --- a/rust/lance-namespace-reqwest-client/docs/DropNamespaceRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/DropNamespaceRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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. - 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. - 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] +**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] [[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/DropNamespaceResponse.md b/rust/lance-namespace-reqwest-client/docs/DropNamespaceResponse.md index 2d3934b18..cb49f7f02 100644 --- a/rust/lance-namespace-reqwest-client/docs/DropNamespaceResponse.md +++ b/rust/lance-namespace-reqwest-client/docs/DropNamespaceResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **properties** | Option<**std::collections::HashMap**> | | [optional] -**transaction_id** | Option<**Vec**> | If present, indicating the operation is long running and should be tracked using GetTransaction | [optional] +**transaction_id** | Option<**Vec**> | If present, indicating the operation is long running and should be tracked using DescribeTransaction | [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 4db17bcf4..07ec512e4 100644 --- a/rust/lance-namespace-reqwest-client/docs/InsertIntoTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/InsertIntoTableRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | Option<**Vec**> | | [optional] -**mode** | Option<**String**> | | [optional][default to Append] +**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] [[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/MatchQuery.md b/rust/lance-namespace-reqwest-client/docs/MatchQuery.md index 096d0931b..aae553f43 100644 --- a/rust/lance-namespace-reqwest-client/docs/MatchQuery.md +++ b/rust/lance-namespace-reqwest-client/docs/MatchQuery.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **column** | Option<**String**> | | [optional] **fuzziness** | Option<**i32**> | | [optional] **max_expansions** | Option<**i32**> | The maximum number of terms to expand for fuzzy matching. Default to 50. | [optional] -**operator** | Option<[**models::Operator**](Operator.md)> | The operator to use for combining terms. This can be either `And` or `Or`, it's 'Or' by default. - `And`: All terms must match. - `Or`: At least one term must match. | [optional] +**operator** | Option<**String**> | The operator to use for combining terms. Case insensitive, supports both PascalCase and snake_case. Valid values are: - And: All terms must match. - Or: At least one term must match. | [optional] **prefix_length** | Option<**i32**> | The number of beginning characters being unchanged for fuzzy matching. Default to 0. | [optional] **terms** | **String** | | diff --git a/rust/lance-namespace-reqwest-client/docs/Operator.md b/rust/lance-namespace-reqwest-client/docs/Operator.md deleted file mode 100644 index e88cd3264..000000000 --- a/rust/lance-namespace-reqwest-client/docs/Operator.md +++ /dev/null @@ -1,13 +0,0 @@ -# Operator - -## Enum Variants - -| Name | Value | -|---- | -----| -| And | And | -| Or | Or | - - -[[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/RegisterTableRequest.md b/rust/lance-namespace-reqwest-client/docs/RegisterTableRequest.md index e516061f2..3108e5751 100644 --- a/rust/lance-namespace-reqwest-client/docs/RegisterTableRequest.md +++ b/rust/lance-namespace-reqwest-client/docs/RegisterTableRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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: * CREATE (default): the operation fails with 409. * OVERWRITE: the existing table registration is replaced with the new registration. | [optional] +**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] **properties** | Option<**std::collections::HashMap**> | | [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/RegisterTableResponse.md b/rust/lance-namespace-reqwest-client/docs/RegisterTableResponse.md index 8f576547c..69a1f9b2c 100644 --- a/rust/lance-namespace-reqwest-client/docs/RegisterTableResponse.md +++ b/rust/lance-namespace-reqwest-client/docs/RegisterTableResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **transaction_id** | Option<**String**> | Optional transaction identifier | [optional] -**location** | **String** | | +**location** | Option<**String**> | | [optional] **properties** | Option<**std::collections::HashMap**> | | [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/SetPropertyMode.md b/rust/lance-namespace-reqwest-client/docs/SetPropertyMode.md deleted file mode 100644 index 2b30ee423..000000000 --- a/rust/lance-namespace-reqwest-client/docs/SetPropertyMode.md +++ /dev/null @@ -1,14 +0,0 @@ -# SetPropertyMode - -## Enum Variants - -| Name | Value | -|---- | -----| -| Overwrite | OVERWRITE | -| Fail | FAIL | -| Skip | SKIP | - - -[[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/TableApi.md b/rust/lance-namespace-reqwest-client/docs/TableApi.md index e10821d03..fd7767c6e 100644 --- a/rust/lance-namespace-reqwest-client/docs/TableApi.md +++ b/rust/lance-namespace-reqwest-client/docs/TableApi.md @@ -699,7 +699,7 @@ Name | Type | Description | Required | Notes **id** | **String** | `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. | [required] | **body** | **Vec** | Arrow IPC stream containing the records to insert | [required] | **delimiter** | Option<**String**> | An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. | | -**mode** | Option<**String**> | How the insert should behave: - append (default): insert data to the existing table - overwrite: remove all data in the table and then insert data to it | |[default to append] +**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 | |[default to append] ### Return type diff --git a/rust/lance-namespace-reqwest-client/docs/TransactionStatus.md b/rust/lance-namespace-reqwest-client/docs/TransactionStatus.md deleted file mode 100644 index 593fe9caa..000000000 --- a/rust/lance-namespace-reqwest-client/docs/TransactionStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# TransactionStatus - -## Enum Variants - -| Name | Value | -|---- | -----| -| Queued | QUEUED | -| Running | RUNNING | -| Succeeded | SUCCEEDED | -| Failed | FAILED | -| Canceled | CANCELED | - - -[[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/UnsetPropertyMode.md b/rust/lance-namespace-reqwest-client/docs/UnsetPropertyMode.md deleted file mode 100644 index 6475c3c3f..000000000 --- a/rust/lance-namespace-reqwest-client/docs/UnsetPropertyMode.md +++ /dev/null @@ -1,13 +0,0 @@ -# UnsetPropertyMode - -## Enum Variants - -| Name | Value | -|---- | -----| -| Skip | SKIP | -| Fail | FAIL | - - -[[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/src/models/alter_transaction_response.rs b/rust/lance-namespace-reqwest-client/src/models/alter_transaction_response.rs index 373710697..4d6d649c0 100644 --- a/rust/lance-namespace-reqwest-client/src/models/alter_transaction_response.rs +++ b/rust/lance-namespace-reqwest-client/src/models/alter_transaction_response.rs @@ -13,14 +13,15 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct AlterTransactionResponse { + /// The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled #[serde(rename = "status")] - pub status: models::TransactionStatus, + pub status: String, #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] pub properties: Option>, } impl AlterTransactionResponse { - pub fn new(status: models::TransactionStatus) -> AlterTransactionResponse { + pub fn new(status: String) -> AlterTransactionResponse { AlterTransactionResponse { status, properties: None, diff --git a/rust/lance-namespace-reqwest-client/src/models/alter_transaction_set_property.rs b/rust/lance-namespace-reqwest-client/src/models/alter_transaction_set_property.rs index ba8d3d4dc..7aa869d7f 100644 --- a/rust/lance-namespace-reqwest-client/src/models/alter_transaction_set_property.rs +++ b/rust/lance-namespace-reqwest-client/src/models/alter_transaction_set_property.rs @@ -17,8 +17,9 @@ pub struct AlterTransactionSetProperty { pub key: Option, #[serde(rename = "value", skip_serializing_if = "Option::is_none")] pub value: Option, + /// The behavior if the property key already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Overwrite (default): overwrite the existing value with the provided value - Fail: fail the entire operation - Skip: keep the existing value and skip setting the provided value #[serde(rename = "mode", skip_serializing_if = "Option::is_none")] - pub mode: Option, + pub mode: Option, } impl AlterTransactionSetProperty { diff --git a/rust/lance-namespace-reqwest-client/src/models/alter_transaction_set_status.rs b/rust/lance-namespace-reqwest-client/src/models/alter_transaction_set_status.rs index bf515820d..81e8685cb 100644 --- a/rust/lance-namespace-reqwest-client/src/models/alter_transaction_set_status.rs +++ b/rust/lance-namespace-reqwest-client/src/models/alter_transaction_set_status.rs @@ -13,8 +13,9 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct AlterTransactionSetStatus { + /// The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled #[serde(rename = "status", skip_serializing_if = "Option::is_none")] - pub status: Option, + pub status: Option, } impl AlterTransactionSetStatus { diff --git a/rust/lance-namespace-reqwest-client/src/models/alter_transaction_unset_property.rs b/rust/lance-namespace-reqwest-client/src/models/alter_transaction_unset_property.rs index 133d68325..d80e4fe87 100644 --- a/rust/lance-namespace-reqwest-client/src/models/alter_transaction_unset_property.rs +++ b/rust/lance-namespace-reqwest-client/src/models/alter_transaction_unset_property.rs @@ -15,8 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct AlterTransactionUnsetProperty { #[serde(rename = "key", skip_serializing_if = "Option::is_none")] pub key: Option, + /// The behavior if the property key to unset does not exist. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Skip (default): skip the property to unset - Fail: fail the entire operation #[serde(rename = "mode", skip_serializing_if = "Option::is_none")] - pub mode: Option, + pub mode: Option, } impl AlterTransactionUnsetProperty { 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 656994522..e0d422ef5 100644 --- a/rust/lance-namespace-reqwest-client/src/models/create_namespace_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/create_namespace_request.rs @@ -15,9 +15,9 @@ use serde::{Deserialize, Serialize}; pub struct CreateNamespaceRequest { #[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: * create: the operation fails with 409. * exist_ok: 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. + /// 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. #[serde(rename = "mode", skip_serializing_if = "Option::is_none")] - pub mode: Option, + pub mode: Option, #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] pub properties: Option>, } @@ -31,20 +31,4 @@ impl CreateNamespaceRequest { } } } -/// There are three modes when trying to create a namespace, to differentiate the behavior when a namespace of the same name already exists: * create: the operation fails with 409. * exist_ok: 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. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Mode { - #[serde(rename = "create")] - Create, - #[serde(rename = "exist_ok")] - ExistOk, - #[serde(rename = "overwrite")] - Overwrite, -} - -impl Default for Mode { - fn default() -> Mode { - Self::Create - } -} 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 c4b3c1a66..466051ca2 100644 --- a/rust/lance-namespace-reqwest-client/src/models/create_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/create_table_request.rs @@ -16,9 +16,9 @@ use serde::{Deserialize, Serialize}; pub struct CreateTableRequest { #[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: * 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. + /// 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. #[serde(rename = "mode", skip_serializing_if = "Option::is_none")] - pub mode: Option, + pub mode: Option, } impl CreateTableRequest { @@ -30,20 +30,4 @@ impl CreateTableRequest { } } } -/// There are three modes when trying to create a table, to differentiate the behavior when a table of the same name already exists: * 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. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Mode { - #[serde(rename = "Create")] - Create, - #[serde(rename = "ExistOk")] - ExistOk, - #[serde(rename = "Overwrite")] - Overwrite, -} - -impl Default for Mode { - fn default() -> Mode { - Self::Create - } -} diff --git a/rust/lance-namespace-reqwest-client/src/models/describe_namespace_response.rs b/rust/lance-namespace-reqwest-client/src/models/describe_namespace_response.rs index 33a8e561e..ad4352477 100644 --- a/rust/lance-namespace-reqwest-client/src/models/describe_namespace_response.rs +++ b/rust/lance-namespace-reqwest-client/src/models/describe_namespace_response.rs @@ -13,18 +13,14 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DescribeNamespaceResponse { - /// The namespace identifier as a list of parts - #[serde(rename = "id")] - pub id: Vec, /// Properties stored on the namespace, if supported by the server. If the server does not support namespace properties, it should return null for this field. If namespace properties are supported, but none are set, it should return an empty object. #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] pub properties: Option>, } impl DescribeNamespaceResponse { - pub fn new(id: Vec) -> DescribeNamespaceResponse { + pub fn new() -> DescribeNamespaceResponse { DescribeNamespaceResponse { - id, properties: None, } } diff --git a/rust/lance-namespace-reqwest-client/src/models/describe_transaction_response.rs b/rust/lance-namespace-reqwest-client/src/models/describe_transaction_response.rs index fe6b9ca85..1db60b29c 100644 --- a/rust/lance-namespace-reqwest-client/src/models/describe_transaction_response.rs +++ b/rust/lance-namespace-reqwest-client/src/models/describe_transaction_response.rs @@ -13,14 +13,15 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DescribeTransactionResponse { + /// The status of a transaction. Case insensitive, supports both PascalCase and snake_case. Valid values are: - Queued: the transaction is queued and not yet started - Running: the transaction is currently running - Succeeded: the transaction has completed successfully - Failed: the transaction has failed - Canceled: the transaction was canceled #[serde(rename = "status")] - pub status: models::TransactionStatus, + pub status: String, #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] pub properties: Option>, } impl DescribeTransactionResponse { - pub fn new(status: models::TransactionStatus) -> DescribeTransactionResponse { + pub fn new(status: String) -> DescribeTransactionResponse { DescribeTransactionResponse { status, properties: 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 c89dc6def..df8b4f4be 100644 --- a/rust/lance-namespace-reqwest-client/src/models/drop_namespace_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/drop_namespace_request.rs @@ -15,12 +15,12 @@ use serde::{Deserialize, Serialize}; pub struct DropNamespaceRequest { #[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. - 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. + /// 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. #[serde(rename = "mode", skip_serializing_if = "Option::is_none")] - pub mode: Option, - /// The behavior for dropping a namespace. - RESTRICT (default): the namespace should not contain any table or child namespace when drop is initiated. If tables are found, the server should return error and not drop the namespace. - CASCADE: all tables and child namespaces in the namespace are dropped before the namespace is dropped. + pub mode: Option, + /// 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. #[serde(rename = "behavior", skip_serializing_if = "Option::is_none")] - pub behavior: Option, + pub behavior: Option, } impl DropNamespaceRequest { @@ -32,32 +32,4 @@ impl DropNamespaceRequest { } } } -/// The mode for dropping a namespace, deciding the server behavior when the namespace to drop is not found. - FAIL (default): the server must return 400 indicating the namespace to drop does not exist. - SKIP: the server must return 204 indicating the drop operation has succeeded. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Mode { - #[serde(rename = "SKIP")] - Skip, - #[serde(rename = "FAIL")] - Fail, -} - -impl Default for Mode { - fn default() -> Mode { - Self::Skip - } -} -/// The behavior for dropping a namespace. - RESTRICT (default): the namespace should not contain any table or child namespace when drop is initiated. If tables are found, the server should return error and not drop the namespace. - CASCADE: all tables and child namespaces in the namespace are dropped before the namespace is dropped. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Behavior { - #[serde(rename = "RESTRICT")] - Restrict, - #[serde(rename = "CASCADE")] - Cascade, -} - -impl Default for Behavior { - fn default() -> Behavior { - Self::Restrict - } -} diff --git a/rust/lance-namespace-reqwest-client/src/models/drop_namespace_response.rs b/rust/lance-namespace-reqwest-client/src/models/drop_namespace_response.rs index d1458d9ab..0b8d6829b 100644 --- a/rust/lance-namespace-reqwest-client/src/models/drop_namespace_response.rs +++ b/rust/lance-namespace-reqwest-client/src/models/drop_namespace_response.rs @@ -15,7 +15,7 @@ use serde::{Deserialize, Serialize}; pub struct DropNamespaceResponse { #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] pub properties: Option>, - /// If present, indicating the operation is long running and should be tracked using GetTransaction + /// If present, indicating the operation is long running and should be tracked using DescribeTransaction #[serde(rename = "transaction_id", skip_serializing_if = "Option::is_none")] pub transaction_id: Option>, } 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 6865279a0..c19d3cd6a 100644 --- a/rust/lance-namespace-reqwest-client/src/models/insert_into_table_request.rs +++ b/rust/lance-namespace-reqwest-client/src/models/insert_into_table_request.rs @@ -16,8 +16,9 @@ use serde::{Deserialize, Serialize}; pub struct InsertIntoTableRequest { #[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 #[serde(rename = "mode", skip_serializing_if = "Option::is_none")] - pub mode: Option, + pub mode: Option, } impl InsertIntoTableRequest { @@ -29,20 +30,4 @@ impl InsertIntoTableRequest { } } } -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Mode { - #[serde(rename = "create")] - Create, - #[serde(rename = "append")] - Append, - #[serde(rename = "overwrite")] - Overwrite, -} - -impl Default for Mode { - fn default() -> Mode { - Self::Create - } -} diff --git a/rust/lance-namespace-reqwest-client/src/models/match_query.rs b/rust/lance-namespace-reqwest-client/src/models/match_query.rs index 0970035ae..296269484 100644 --- a/rust/lance-namespace-reqwest-client/src/models/match_query.rs +++ b/rust/lance-namespace-reqwest-client/src/models/match_query.rs @@ -22,9 +22,9 @@ pub struct MatchQuery { /// The maximum number of terms to expand for fuzzy matching. Default to 50. #[serde(rename = "max_expansions", skip_serializing_if = "Option::is_none")] pub max_expansions: Option, - /// The operator to use for combining terms. This can be either `And` or `Or`, it's 'Or' by default. - `And`: All terms must match. - `Or`: At least one term must match. + /// The operator to use for combining terms. Case insensitive, supports both PascalCase and snake_case. Valid values are: - And: All terms must match. - Or: At least one term must match. #[serde(rename = "operator", skip_serializing_if = "Option::is_none")] - pub operator: Option, + pub operator: Option, /// The number of beginning characters being unchanged for fuzzy matching. Default to 0. #[serde(rename = "prefix_length", skip_serializing_if = "Option::is_none")] pub prefix_length: Option, diff --git a/rust/lance-namespace-reqwest-client/src/models/mod.rs b/rust/lance-namespace-reqwest-client/src/models/mod.rs index e3d04e571..7fdb679b5 100644 --- a/rust/lance-namespace-reqwest-client/src/models/mod.rs +++ b/rust/lance-namespace-reqwest-client/src/models/mod.rs @@ -164,8 +164,6 @@ pub mod namespace_exists_request; pub use self::namespace_exists_request::NamespaceExistsRequest; pub mod new_column_transform; pub use self::new_column_transform::NewColumnTransform; -pub mod operator; -pub use self::operator::Operator; pub mod phrase_query; pub use self::phrase_query::PhraseQuery; pub mod query_table_request; @@ -188,8 +186,6 @@ pub mod restore_table_request; pub use self::restore_table_request::RestoreTableRequest; pub mod restore_table_response; pub use self::restore_table_response::RestoreTableResponse; -pub mod set_property_mode; -pub use self::set_property_mode::SetPropertyMode; pub mod string_fts_query; pub use self::string_fts_query::StringFtsQuery; pub mod structured_fts_query; @@ -202,10 +198,6 @@ pub mod table_version; pub use self::table_version::TableVersion; pub mod tag_contents; pub use self::tag_contents::TagContents; -pub mod transaction_status; -pub use self::transaction_status::TransactionStatus; -pub mod unset_property_mode; -pub use self::unset_property_mode::UnsetPropertyMode; pub mod update_table_request; pub use self::update_table_request::UpdateTableRequest; pub mod update_table_response; diff --git a/rust/lance-namespace-reqwest-client/src/models/operator.rs b/rust/lance-namespace-reqwest-client/src/models/operator.rs deleted file mode 100644 index bfc73f935..000000000 --- a/rust/lance-namespace-reqwest-client/src/models/operator.rs +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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}; - -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Operator { - #[serde(rename = "And")] - And, - #[serde(rename = "Or")] - Or, - -} - -impl std::fmt::Display for Operator { - fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Self::And => write!(f, "And"), - Self::Or => write!(f, "Or"), - } - } -} - -impl Default for Operator { - fn default() -> Operator { - Self::And - } -} - 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 7b4c167f7..8d8b4c1d5 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 @@ -17,9 +17,9 @@ pub struct RegisterTableRequest { pub id: Option>, #[serde(rename = "location")] pub location: String, - /// There are two modes when trying to register a table, to differentiate the behavior when a table of the same name already exists: * CREATE (default): the operation fails with 409. * OVERWRITE: the existing table registration is replaced with the new registration. + /// 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. #[serde(rename = "mode", skip_serializing_if = "Option::is_none")] - pub mode: Option, + pub mode: Option, #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] pub properties: Option>, } @@ -34,18 +34,4 @@ impl RegisterTableRequest { } } } -/// There are two modes when trying to register a table, to differentiate the behavior when a table of the same name already exists: * CREATE (default): the operation fails with 409. * OVERWRITE: the existing table registration is replaced with the new registration. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Mode { - #[serde(rename = "CREATE")] - Create, - #[serde(rename = "OVERWRITE")] - Overwrite, -} - -impl Default for Mode { - fn default() -> Mode { - Self::Create - } -} diff --git a/rust/lance-namespace-reqwest-client/src/models/register_table_response.rs b/rust/lance-namespace-reqwest-client/src/models/register_table_response.rs index 1d50f2c08..d215132b2 100644 --- a/rust/lance-namespace-reqwest-client/src/models/register_table_response.rs +++ b/rust/lance-namespace-reqwest-client/src/models/register_table_response.rs @@ -16,17 +16,17 @@ pub struct RegisterTableResponse { /// Optional transaction identifier #[serde(rename = "transaction_id", skip_serializing_if = "Option::is_none")] pub transaction_id: Option, - #[serde(rename = "location")] - pub location: String, + #[serde(rename = "location", skip_serializing_if = "Option::is_none")] + pub location: Option, #[serde(rename = "properties", skip_serializing_if = "Option::is_none")] pub properties: Option>, } impl RegisterTableResponse { - pub fn new(location: String) -> RegisterTableResponse { + pub fn new() -> RegisterTableResponse { RegisterTableResponse { transaction_id: None, - location, + location: None, properties: None, } } diff --git a/rust/lance-namespace-reqwest-client/src/models/set_property_mode.rs b/rust/lance-namespace-reqwest-client/src/models/set_property_mode.rs deleted file mode 100644 index 398385227..000000000 --- a/rust/lance-namespace-reqwest-client/src/models/set_property_mode.rs +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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}; - -/// SetPropertyMode : The behavior if the property key already exists. - OVERWRITE (default): overwrite the existing value with the provided value - FAIL: fail the entire operation - SKIP: keep the existing value and skip setting the provided value -/// The behavior if the property key already exists. - OVERWRITE (default): overwrite the existing value with the provided value - FAIL: fail the entire operation - SKIP: keep the existing value and skip setting the provided value -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum SetPropertyMode { - #[serde(rename = "OVERWRITE")] - Overwrite, - #[serde(rename = "FAIL")] - Fail, - #[serde(rename = "SKIP")] - Skip, - -} - -impl std::fmt::Display for SetPropertyMode { - fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Self::Overwrite => write!(f, "OVERWRITE"), - Self::Fail => write!(f, "FAIL"), - Self::Skip => write!(f, "SKIP"), - } - } -} - -impl Default for SetPropertyMode { - fn default() -> SetPropertyMode { - Self::Overwrite - } -} - diff --git a/rust/lance-namespace-reqwest-client/src/models/transaction_status.rs b/rust/lance-namespace-reqwest-client/src/models/transaction_status.rs deleted file mode 100644 index d52af5e6e..000000000 --- a/rust/lance-namespace-reqwest-client/src/models/transaction_status.rs +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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}; - -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum TransactionStatus { - #[serde(rename = "QUEUED")] - Queued, - #[serde(rename = "RUNNING")] - Running, - #[serde(rename = "SUCCEEDED")] - Succeeded, - #[serde(rename = "FAILED")] - Failed, - #[serde(rename = "CANCELED")] - Canceled, - -} - -impl std::fmt::Display for TransactionStatus { - fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Self::Queued => write!(f, "QUEUED"), - Self::Running => write!(f, "RUNNING"), - Self::Succeeded => write!(f, "SUCCEEDED"), - Self::Failed => write!(f, "FAILED"), - Self::Canceled => write!(f, "CANCELED"), - } - } -} - -impl Default for TransactionStatus { - fn default() -> TransactionStatus { - Self::Queued - } -} - diff --git a/rust/lance-namespace-reqwest-client/src/models/unset_property_mode.rs b/rust/lance-namespace-reqwest-client/src/models/unset_property_mode.rs deleted file mode 100644 index 70ea27d5a..000000000 --- a/rust/lance-namespace-reqwest-client/src/models/unset_property_mode.rs +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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}; - -/// UnsetPropertyMode : The behavior if the property key to unset does not exist. - SKIP (default): skip the property to unset - FAIL: fail the entire operation -/// The behavior if the property key to unset does not exist. - SKIP (default): skip the property to unset - FAIL: fail the entire operation -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum UnsetPropertyMode { - #[serde(rename = "SKIP")] - Skip, - #[serde(rename = "FAIL")] - Fail, - -} - -impl std::fmt::Display for UnsetPropertyMode { - fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Self::Skip => write!(f, "SKIP"), - Self::Fail => write!(f, "FAIL"), - } - } -} - -impl Default for UnsetPropertyMode { - fn default() -> UnsetPropertyMode { - Self::Skip - } -} -