Skip to content

Commit 6ec0c8c

Browse files
authored
Merge pull request #73 from hotdata-dev/openapi-update-26299984976
chore: regenerate client from updated OpenAPI spec
2 parents 262165d + 2ddc73f commit 6ec0c8c

39 files changed

Lines changed: 4045 additions & 6 deletions

.openapi-generator/FILES

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
docs/ApiErrorDetail.md
55
docs/ApiErrorResponse.md
66
docs/AsyncQueryResponse.md
7+
docs/AttachDatabaseCatalogRequest.md
78
docs/BooleanProfileDetail.md
89
docs/CategoricalProfileDetail.md
910
docs/CategoryValueInfo.md
@@ -26,6 +27,8 @@ docs/ConnectionTypesApi.md
2627
docs/ConnectionsApi.md
2728
docs/CreateConnectionRequest.md
2829
docs/CreateConnectionResponse.md
30+
docs/CreateDatabaseRequest.md
31+
docs/CreateDatabaseResponse.md
2932
docs/CreateDatasetRequest.md
3033
docs/CreateDatasetResponse.md
3134
docs/CreateEmbeddingProviderRequest.md
@@ -37,6 +40,12 @@ docs/CreateSecretRequest.md
3740
docs/CreateSecretResponse.md
3841
docs/CreateWorkspaceRequest.md
3942
docs/CreateWorkspaceResponse.md
43+
docs/DatabaseAttachmentInfo.md
44+
docs/DatabaseDefaultSchemaDecl.md
45+
docs/DatabaseDefaultTableDecl.md
46+
docs/DatabaseDetailResponse.md
47+
docs/DatabaseSummary.md
48+
docs/DatabasesApi.md
4049
docs/DatasetSource.md
4150
docs/DatasetSourceOneOf.md
4251
docs/DatasetSourceOneOf1.md
@@ -71,6 +80,7 @@ docs/JobType.md
7180
docs/JobsApi.md
7281
docs/ListConnectionTypesResponse.md
7382
docs/ListConnectionsResponse.md
83+
docs/ListDatabasesResponse.md
7484
docs/ListDatasetVersionsResponse.md
7585
docs/ListDatasetsResponse.md
7686
docs/ListEmbeddingProvidersResponse.md
@@ -144,6 +154,7 @@ hotdata/__init__.py
144154
hotdata/api/__init__.py
145155
hotdata/api/connection_types_api.py
146156
hotdata/api/connections_api.py
157+
hotdata/api/databases_api.py
147158
hotdata/api/datasets_api.py
148159
hotdata/api/embedding_providers_api.py
149160
hotdata/api/indexes_api.py
@@ -167,6 +178,7 @@ hotdata/models/__init__.py
167178
hotdata/models/api_error_detail.py
168179
hotdata/models/api_error_response.py
169180
hotdata/models/async_query_response.py
181+
hotdata/models/attach_database_catalog_request.py
170182
hotdata/models/boolean_profile_detail.py
171183
hotdata/models/categorical_profile_detail.py
172184
hotdata/models/category_value_info.py
@@ -187,6 +199,8 @@ hotdata/models/connection_type_detail.py
187199
hotdata/models/connection_type_summary.py
188200
hotdata/models/create_connection_request.py
189201
hotdata/models/create_connection_response.py
202+
hotdata/models/create_database_request.py
203+
hotdata/models/create_database_response.py
190204
hotdata/models/create_dataset_request.py
191205
hotdata/models/create_dataset_response.py
192206
hotdata/models/create_embedding_provider_request.py
@@ -198,6 +212,11 @@ hotdata/models/create_secret_request.py
198212
hotdata/models/create_secret_response.py
199213
hotdata/models/create_workspace_request.py
200214
hotdata/models/create_workspace_response.py
215+
hotdata/models/database_attachment_info.py
216+
hotdata/models/database_default_schema_decl.py
217+
hotdata/models/database_default_table_decl.py
218+
hotdata/models/database_detail_response.py
219+
hotdata/models/database_summary.py
201220
hotdata/models/dataset_source.py
202221
hotdata/models/dataset_source_one_of.py
203222
hotdata/models/dataset_source_one_of1.py
@@ -227,6 +246,7 @@ hotdata/models/job_status_response.py
227246
hotdata/models/job_type.py
228247
hotdata/models/list_connection_types_response.py
229248
hotdata/models/list_connections_response.py
249+
hotdata/models/list_databases_response.py
230250
hotdata/models/list_dataset_versions_response.py
231251
hotdata/models/list_datasets_response.py
232252
hotdata/models/list_embedding_providers_response.py
@@ -293,4 +313,14 @@ requirements.txt
293313
setup.cfg
294314
test-requirements.txt
295315
test/__init__.py
316+
test/test_attach_database_catalog_request.py
317+
test/test_create_database_request.py
318+
test/test_create_database_response.py
319+
test/test_database_attachment_info.py
320+
test/test_database_default_schema_decl.py
321+
test/test_database_default_table_decl.py
322+
test/test_database_detail_response.py
323+
test/test_database_summary.py
324+
test/test_databases_api.py
325+
test/test_list_databases_response.py
296326
tox.ini
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# AttachDatabaseCatalogRequest
2+
3+
Request body for POST /databases/{database_id}/catalogs
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**alias** | **str** | Optional alias under which this catalog is reachable inside the database. When omitted, it is reachable by the connection's name. | [optional]
10+
**connection_id** | **str** | |
11+
12+
## Example
13+
14+
```python
15+
from hotdata.models.attach_database_catalog_request import AttachDatabaseCatalogRequest
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of AttachDatabaseCatalogRequest from a JSON string
20+
attach_database_catalog_request_instance = AttachDatabaseCatalogRequest.from_json(json)
21+
# print the JSON string representation of the object
22+
print(AttachDatabaseCatalogRequest.to_json())
23+
24+
# convert the object into a dict
25+
attach_database_catalog_request_dict = attach_database_catalog_request_instance.to_dict()
26+
# create an instance of AttachDatabaseCatalogRequest from a dict
27+
attach_database_catalog_request_from_dict = AttachDatabaseCatalogRequest.from_dict(attach_database_catalog_request_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

docs/ConnectionsApi.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ void (empty response body)
270270
|-------------|-------------|------------------|
271271
**204** | Connection deleted | - |
272272
**404** | Connection not found | - |
273+
**409** | Connection backs a database's default catalog and cannot be deleted directly | - |
273274

274275
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
275276

@@ -792,7 +793,9 @@ void (empty response body)
792793
| Status code | Description | Response headers |
793794
|-------------|-------------|------------------|
794795
**204** | Cache purged | - |
796+
**400** | Managed catalogs own their parquet generations and cannot be purged | - |
795797
**404** | Connection not found | - |
798+
**409** | Connection backs a database's default catalog and cannot be purged directly | - |
796799

797800
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
798801

docs/CreateDatabaseRequest.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# CreateDatabaseRequest
2+
3+
Request body for POST /databases
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**description** | **str** | Optional free-form display label (for UIs/CLIs). Not unique. Not an identifier — databases are always addressed by `id`. | [optional]
10+
**schemas** | [**List[DatabaseDefaultSchemaDecl]**](DatabaseDefaultSchemaDecl.md) | Optional schemas/tables to declare on the database's auto-created `default` catalog. Mirrors the `config.schemas` field of a managed `POST /v1/connections`. Tables declared here can be loaded via the standard managed-table load endpoint targeting `default_connection_id`. Omitted or empty means the default catalog starts empty. | [optional]
11+
12+
## Example
13+
14+
```python
15+
from hotdata.models.create_database_request import CreateDatabaseRequest
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of CreateDatabaseRequest from a JSON string
20+
create_database_request_instance = CreateDatabaseRequest.from_json(json)
21+
# print the JSON string representation of the object
22+
print(CreateDatabaseRequest.to_json())
23+
24+
# convert the object into a dict
25+
create_database_request_dict = create_database_request_instance.to_dict()
26+
# create an instance of CreateDatabaseRequest from a dict
27+
create_database_request_from_dict = CreateDatabaseRequest.from_dict(create_database_request_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

docs/CreateDatabaseResponse.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# CreateDatabaseResponse
2+
3+
Response body for POST /databases
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**default_connection_id** | **str** | Internal id of the connection that backs this database's `default` catalog. Workspace-level connection endpoints (list, get, health, delete, cache purge) refuse to act on this id — it is exposed only for the managed-tables load endpoint (`POST /v1/connections/{id}/schemas/{s}/tables/{t}/loads`) so callers can publish parquet into tables declared at database-create time. Addressing it directly in SQL is not the recommended path — use `default` inside an `X-Database-Id` scope instead. |
10+
**description** | **str** | | [optional]
11+
**id** | **str** | |
12+
13+
## Example
14+
15+
```python
16+
from hotdata.models.create_database_response import CreateDatabaseResponse
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of CreateDatabaseResponse from a JSON string
21+
create_database_response_instance = CreateDatabaseResponse.from_json(json)
22+
# print the JSON string representation of the object
23+
print(CreateDatabaseResponse.to_json())
24+
25+
# convert the object into a dict
26+
create_database_response_dict = create_database_response_instance.to_dict()
27+
# create an instance of CreateDatabaseResponse from a dict
28+
create_database_response_from_dict = CreateDatabaseResponse.from_dict(create_database_response_dict)
29+
```
30+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
31+
32+

docs/DatabaseAttachmentInfo.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# DatabaseAttachmentInfo
2+
3+
One attached catalog inside a database.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**alias** | **str** | Alias under which this catalog is reachable inside the database. When `None`, the catalog is reachable by its original connection name. | [optional]
10+
**connection_id** | **str** | |
11+
12+
## Example
13+
14+
```python
15+
from hotdata.models.database_attachment_info import DatabaseAttachmentInfo
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of DatabaseAttachmentInfo from a JSON string
20+
database_attachment_info_instance = DatabaseAttachmentInfo.from_json(json)
21+
# print the JSON string representation of the object
22+
print(DatabaseAttachmentInfo.to_json())
23+
24+
# convert the object into a dict
25+
database_attachment_info_dict = database_attachment_info_instance.to_dict()
26+
# create an instance of DatabaseAttachmentInfo from a dict
27+
database_attachment_info_from_dict = DatabaseAttachmentInfo.from_dict(database_attachment_info_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

docs/DatabaseDefaultSchemaDecl.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# DatabaseDefaultSchemaDecl
2+
3+
One schema declaration inside the database's default catalog at create time. Mirrors `crate::source::ManagedSchemaDecl`. Tables default to empty so callers can declare just a schema name and add tables later via the managed-tables API on the default connection.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**name** | **str** | |
10+
**tables** | [**List[DatabaseDefaultTableDecl]**](DatabaseDefaultTableDecl.md) | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from hotdata.models.database_default_schema_decl import DatabaseDefaultSchemaDecl
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of DatabaseDefaultSchemaDecl from a JSON string
20+
database_default_schema_decl_instance = DatabaseDefaultSchemaDecl.from_json(json)
21+
# print the JSON string representation of the object
22+
print(DatabaseDefaultSchemaDecl.to_json())
23+
24+
# convert the object into a dict
25+
database_default_schema_decl_dict = database_default_schema_decl_instance.to_dict()
26+
# create an instance of DatabaseDefaultSchemaDecl from a dict
27+
database_default_schema_decl_from_dict = DatabaseDefaultSchemaDecl.from_dict(database_default_schema_decl_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

docs/DatabaseDefaultTableDecl.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# DatabaseDefaultTableDecl
2+
3+
One table declaration inside a default-catalog schema at database-create time. Mirrors `crate::source::ManagedTableDecl` shape so the controller can convert with a simple `.map`.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**name** | **str** | |
10+
11+
## Example
12+
13+
```python
14+
from hotdata.models.database_default_table_decl import DatabaseDefaultTableDecl
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of DatabaseDefaultTableDecl from a JSON string
19+
database_default_table_decl_instance = DatabaseDefaultTableDecl.from_json(json)
20+
# print the JSON string representation of the object
21+
print(DatabaseDefaultTableDecl.to_json())
22+
23+
# convert the object into a dict
24+
database_default_table_decl_dict = database_default_table_decl_instance.to_dict()
25+
# create an instance of DatabaseDefaultTableDecl from a dict
26+
database_default_table_decl_from_dict = DatabaseDefaultTableDecl.from_dict(database_default_table_decl_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/DatabaseDetailResponse.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# DatabaseDetailResponse
2+
3+
Response body for GET /databases/{database_id}
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**attachments** | [**List[DatabaseAttachmentInfo]**](DatabaseAttachmentInfo.md) | |
10+
**default_connection_id** | **str** | |
11+
**description** | **str** | | [optional]
12+
**id** | **str** | |
13+
14+
## Example
15+
16+
```python
17+
from hotdata.models.database_detail_response import DatabaseDetailResponse
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of DatabaseDetailResponse from a JSON string
22+
database_detail_response_instance = DatabaseDetailResponse.from_json(json)
23+
# print the JSON string representation of the object
24+
print(DatabaseDetailResponse.to_json())
25+
26+
# convert the object into a dict
27+
database_detail_response_dict = database_detail_response_instance.to_dict()
28+
# create an instance of DatabaseDetailResponse from a dict
29+
database_detail_response_from_dict = DatabaseDetailResponse.from_dict(database_detail_response_dict)
30+
```
31+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32+
33+

docs/DatabaseSummary.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# DatabaseSummary
2+
3+
Summary item in GET /databases
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**description** | **str** | | [optional]
10+
**id** | **str** | |
11+
12+
## Example
13+
14+
```python
15+
from hotdata.models.database_summary import DatabaseSummary
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of DatabaseSummary from a JSON string
20+
database_summary_instance = DatabaseSummary.from_json(json)
21+
# print the JSON string representation of the object
22+
print(DatabaseSummary.to_json())
23+
24+
# convert the object into a dict
25+
database_summary_dict = database_summary_instance.to_dict()
26+
# create an instance of DatabaseSummary from a dict
27+
database_summary_from_dict = DatabaseSummary.from_dict(database_summary_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

0 commit comments

Comments
 (0)