From 08670bc0305d1202f4686b63c8f6d4d0bf2f63d6 Mon Sep 17 00:00:00 2001 From: zfarrell <1420220+zfarrell@users.noreply.github.com> Date: Wed, 10 Jun 2026 01:27:21 +0000 Subject: [PATCH 1/4] chore: regenerate client, drop orphaned sandbox files --- .openapi-generator/FILES | 147 ++ CHANGELOG.md | 6 + docs/ColumnDefinition.md | 34 - docs/CreateSandboxRequest.md | 30 - docs/CreateWorkspace201Response.md | 30 - docs/DeleteSandboxResponse.md | 30 - docs/GetWorkspaceContextResponse.md | 30 - docs/ListSandboxesResponse.md | 30 - docs/ListWorkspaceContextsResponse.md | 30 - docs/ListWorkspaces200Response.md | 30 - docs/Sandbox.md | 33 - docs/SandboxResponse.md | 30 - docs/SandboxesApi.md | 452 ------ docs/UpdateSandboxRequest.md | 31 - docs/UpsertWorkspaceContextRequest.md | 31 - docs/UpsertWorkspaceContextResponse.md | 30 - docs/WorkspaceContextApi.md | 348 ---- docs/WorkspaceContextEntry.md | 32 - hotdata/api/sandboxes_api.py | 1426 ----------------- hotdata/api/workspace_context_api.py | 1099 ------------- hotdata/api_client.py | 2 +- hotdata/models/column_definition.py | 140 -- hotdata/models/create_sandbox_request.py | 90 -- .../models/create_workspace201_response.py | 93 -- hotdata/models/delete_sandbox_response.py | 90 -- .../models/get_workspace_context_response.py | 92 -- hotdata/models/list_sandboxes_response.py | 98 -- .../list_workspace_contexts_response.py | 96 -- hotdata/models/list_workspaces200_response.py | 97 -- hotdata/models/sandbox.py | 97 -- hotdata/models/sandbox_response.py | 94 -- hotdata/models/update_sandbox_request.py | 90 -- .../upsert_workspace_context_request.py | 90 -- .../upsert_workspace_context_response.py | 92 -- hotdata/models/workspace_context_entry.py | 93 -- pyproject.toml | 2 +- test/test_api_client_close.py | 28 - test/test_api_error_detail.py | 3 +- test/test_api_error_response.py | 3 +- test/test_boolean_profile_detail.py | 2 +- test/test_categorical_profile_detail.py | 2 +- test/test_category_value_info.py | 6 +- test/test_column_definition.py | 56 - test/test_column_info.py | 3 +- test/test_column_profile_detail.py | 11 +- test/test_column_profile_detail_one_of.py | 13 +- test/test_column_profile_detail_one_of1.py | 3 +- test/test_column_profile_detail_one_of2.py | 3 +- test/test_column_profile_detail_one_of3.py | 3 +- test/test_column_profile_detail_one_of4.py | 3 +- test/test_column_profile_info.py | 3 +- test/test_column_type_spec.py | 11 +- test/test_connection_health_response.py | 5 +- test/test_connection_info.py | 3 +- test/test_connection_refresh_result.py | 13 +- test/test_connection_schema_error.py | 3 +- test/test_connection_type_detail.py | 2 +- test/test_connection_type_summary.py | 2 +- test/test_connection_types_api.py | 2 +- test/test_connections_api.py | 63 +- test/test_create_connection_request.py | 19 +- test/test_create_connection_response.py | 5 +- test/test_create_database_request.py | 7 +- test/test_create_database_response.py | 7 +- test/test_create_dataset_request.py | 6 +- test/test_create_dataset_response.py | 5 +- test/test_create_sandbox_request.py | 53 - test/test_create_saved_query_request.py | 5 +- test/test_create_secret_request.py | 3 +- test/test_create_secret_response.py | 3 +- test/test_create_workspace201_response.py | 62 - test/test_create_workspace_request.py | 3 +- test/test_create_workspace_response.py | 12 +- test/test_database_detail_response.py | 7 +- test/test_database_summary.py | 7 +- test/test_databases_api.py | 14 + test/test_dataset_source.py | 22 +- test/test_dataset_source_one_of.py | 11 +- test/test_dataset_source_one_of1.py | 20 +- test/test_dataset_summary.py | 8 +- test/test_datasets_api.py | 10 +- test/test_delete_sandbox_response.py | 55 - test/test_discovery_status.py | 3 +- test/test_error.py | 3 +- test/test_execute_saved_query_request.py | 5 +- test/test_get_connection_response.py | 3 +- test/test_get_dataset_response.py | 6 +- test/test_get_result_response.py | 7 +- test/test_get_secret_response.py | 3 +- test/test_get_workspace_context_response.py | 59 - test/test_indexes_api.py | 28 + test/test_information_schema_api.py | 7 +- test/test_information_schema_response.py | 9 +- test/test_inline_data.py | 5 +- test/test_inline_dataset_source.py | 2 +- test/test_job_result.py | 12 +- test/test_list_connection_types_response.py | 2 +- test/test_list_connections_response.py | 3 +- test/test_list_databases_response.py | 12 +- test/test_list_datasets_response.py | 9 +- test/test_list_query_runs_response.py | 45 +- test/test_list_results_response.py | 7 +- test/test_list_sandboxes_response.py | 69 - test/test_list_saved_queries_response.py | 3 +- ...test_list_saved_query_versions_response.py | 39 +- test/test_list_secrets_response.py | 3 +- test/test_list_uploads_response.py | 7 +- test/test_list_workspace_contexts_response.py | 63 - test/test_list_workspaces200_response.py | 70 - test/test_list_workspaces_response.py | 12 +- test/test_numeric_profile_detail.py | 2 +- test/test_query_api.py | 7 +- test/test_query_request.py | 8 +- test/test_query_response.py | 7 +- test/test_query_run_info.py | 23 +- test/test_query_runs_api.py | 14 +- test/test_refresh_api.py | 7 +- test/test_refresh_request.py | 11 +- test/test_refresh_response.py | 25 +- test/test_refresh_warning.py | 7 +- test/test_result_info.py | 5 +- test/test_results_api.py | 11 +- test/test_sandbox.py | 61 - test/test_sandbox_response.py | 65 - test/test_sandboxes_api.py | 67 - test/test_saved_queries_api.py | 3 +- test/test_saved_query_detail.py | 21 +- test/test_saved_query_summary.py | 3 +- test/test_saved_query_version_info.py | 21 +- test/test_schema_refresh_result.py | 3 +- test/test_secret_metadata_response.py | 3 +- test/test_secrets_api.py | 23 +- test/test_table_info.py | 5 +- test/test_table_profile_response.py | 5 +- test/test_table_refresh_error.py | 3 +- test/test_table_refresh_result.py | 7 +- test/test_temporal_profile_detail.py | 2 +- test/test_text_profile_detail.py | 2 +- test/test_update_dataset_request.py | 8 +- test/test_update_dataset_response.py | 6 +- test/test_update_sandbox_request.py | 53 - test/test_update_saved_query_request.py | 13 +- test/test_update_secret_request.py | 3 +- test/test_update_secret_response.py | 3 +- test/test_upload_dataset_source.py | 2 +- test/test_upload_info.py | 5 +- test/test_upload_response.py | 5 +- test/test_uploads_api.py | 3 +- test/test_upsert_workspace_context_request.py | 55 - .../test_upsert_workspace_context_response.py | 59 - test/test_workspace_context_api.py | 53 - test/test_workspace_context_entry.py | 57 - test/test_workspace_detail.py | 11 +- test/test_workspace_list_item.py | 11 +- test/test_workspaces_api.py | 10 +- 155 files changed, 708 insertions(+), 6421 deletions(-) delete mode 100644 docs/ColumnDefinition.md delete mode 100644 docs/CreateSandboxRequest.md delete mode 100644 docs/CreateWorkspace201Response.md delete mode 100644 docs/DeleteSandboxResponse.md delete mode 100644 docs/GetWorkspaceContextResponse.md delete mode 100644 docs/ListSandboxesResponse.md delete mode 100644 docs/ListWorkspaceContextsResponse.md delete mode 100644 docs/ListWorkspaces200Response.md delete mode 100644 docs/Sandbox.md delete mode 100644 docs/SandboxResponse.md delete mode 100644 docs/SandboxesApi.md delete mode 100644 docs/UpdateSandboxRequest.md delete mode 100644 docs/UpsertWorkspaceContextRequest.md delete mode 100644 docs/UpsertWorkspaceContextResponse.md delete mode 100644 docs/WorkspaceContextApi.md delete mode 100644 docs/WorkspaceContextEntry.md delete mode 100644 hotdata/api/sandboxes_api.py delete mode 100644 hotdata/api/workspace_context_api.py delete mode 100644 hotdata/models/column_definition.py delete mode 100644 hotdata/models/create_sandbox_request.py delete mode 100644 hotdata/models/create_workspace201_response.py delete mode 100644 hotdata/models/delete_sandbox_response.py delete mode 100644 hotdata/models/get_workspace_context_response.py delete mode 100644 hotdata/models/list_sandboxes_response.py delete mode 100644 hotdata/models/list_workspace_contexts_response.py delete mode 100644 hotdata/models/list_workspaces200_response.py delete mode 100644 hotdata/models/sandbox.py delete mode 100644 hotdata/models/sandbox_response.py delete mode 100644 hotdata/models/update_sandbox_request.py delete mode 100644 hotdata/models/upsert_workspace_context_request.py delete mode 100644 hotdata/models/upsert_workspace_context_response.py delete mode 100644 hotdata/models/workspace_context_entry.py delete mode 100644 test/test_api_client_close.py delete mode 100644 test/test_column_definition.py delete mode 100644 test/test_create_sandbox_request.py delete mode 100644 test/test_create_workspace201_response.py delete mode 100644 test/test_delete_sandbox_response.py delete mode 100644 test/test_get_workspace_context_response.py delete mode 100644 test/test_list_sandboxes_response.py delete mode 100644 test/test_list_workspace_contexts_response.py delete mode 100644 test/test_list_workspaces200_response.py delete mode 100644 test/test_sandbox.py delete mode 100644 test/test_sandbox_response.py delete mode 100644 test/test_sandboxes_api.py delete mode 100644 test/test_update_sandbox_request.py delete mode 100644 test/test_upsert_workspace_context_request.py delete mode 100644 test/test_upsert_workspace_context_response.py delete mode 100644 test/test_workspace_context_api.py delete mode 100644 test/test_workspace_context_entry.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 6123818..30f4ef8 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -310,6 +310,153 @@ hotdata/py.typed hotdata/rest.py setup.cfg test/__init__.py +test/test_add_managed_schema_request.py +test/test_add_managed_table_decl.py +test/test_add_managed_table_request.py +test/test_api_error_detail.py +test/test_api_error_response.py +test/test_async_query_response.py +test/test_attach_database_catalog_request.py +test/test_boolean_profile_detail.py +test/test_categorical_profile_detail.py +test/test_category_value_info.py +test/test_column_info.py +test/test_column_profile_detail.py +test/test_column_profile_detail_one_of.py +test/test_column_profile_detail_one_of1.py +test/test_column_profile_detail_one_of2.py +test/test_column_profile_detail_one_of3.py +test/test_column_profile_detail_one_of4.py +test/test_column_profile_info.py +test/test_column_type_spec.py +test/test_connection_health_response.py +test/test_connection_info.py +test/test_connection_refresh_result.py +test/test_connection_schema_error.py +test/test_connection_type_detail.py +test/test_connection_type_summary.py +test/test_connection_types_api.py +test/test_connections_api.py +test/test_create_connection_request.py +test/test_create_connection_response.py +test/test_create_database_request.py +test/test_create_database_response.py +test/test_create_dataset_request.py +test/test_create_dataset_response.py +test/test_create_embedding_provider_request.py +test/test_create_embedding_provider_response.py +test/test_create_index_request.py +test/test_create_saved_query_request.py +test/test_create_secret_request.py +test/test_create_secret_response.py +test/test_create_workspace_request.py +test/test_create_workspace_response.py +test/test_database_attachment_info.py +test/test_database_context_api.py +test/test_database_context_entry.py +test/test_database_default_schema_decl.py +test/test_database_default_table_decl.py +test/test_database_detail_response.py +test/test_database_summary.py +test/test_databases_api.py +test/test_dataset_source.py +test/test_dataset_source_one_of.py +test/test_dataset_source_one_of1.py +test/test_dataset_source_one_of2.py +test/test_dataset_source_one_of3.py +test/test_dataset_source_one_of4.py +test/test_dataset_summary.py +test/test_dataset_version_summary.py +test/test_datasets_api.py +test/test_discovery_status.py +test/test_embedding_provider_response.py +test/test_embedding_providers_api.py +test/test_error.py +test/test_execute_saved_query_request.py +test/test_get_connection_response.py +test/test_get_database_context_response.py +test/test_get_dataset_response.py +test/test_get_result_response.py +test/test_get_secret_response.py test/test_index_entry_response.py +test/test_index_info_response.py +test/test_index_status.py +test/test_indexes_api.py +test/test_information_schema_api.py +test/test_information_schema_response.py +test/test_inline_data.py +test/test_inline_dataset_source.py +test/test_job_result.py +test/test_job_status.py +test/test_job_status_response.py +test/test_job_type.py +test/test_jobs_api.py +test/test_list_connection_types_response.py +test/test_list_connections_response.py +test/test_list_database_contexts_response.py +test/test_list_databases_response.py +test/test_list_dataset_versions_response.py +test/test_list_datasets_response.py +test/test_list_embedding_providers_response.py test/test_list_indexes_page_response.py +test/test_list_indexes_response.py +test/test_list_jobs_response.py +test/test_list_query_runs_response.py +test/test_list_results_response.py +test/test_list_saved_queries_response.py +test/test_list_saved_query_versions_response.py +test/test_list_secrets_response.py +test/test_list_uploads_response.py +test/test_list_workspaces_response.py +test/test_load_managed_table_request.py +test/test_load_managed_table_response.py +test/test_managed_schema_response.py +test/test_managed_table_response.py +test/test_numeric_profile_detail.py +test/test_query_api.py +test/test_query_request.py +test/test_query_response.py +test/test_query_run_info.py +test/test_query_runs_api.py +test/test_refresh_api.py +test/test_refresh_dataset_response.py +test/test_refresh_request.py +test/test_refresh_response.py +test/test_refresh_warning.py +test/test_result_info.py +test/test_results_api.py +test/test_results_format_query.py +test/test_saved_queries_api.py +test/test_saved_query_dataset_source.py +test/test_saved_query_detail.py +test/test_saved_query_summary.py +test/test_saved_query_version_info.py +test/test_schema_refresh_result.py +test/test_secret_metadata_response.py +test/test_secrets_api.py +test/test_sql_query_dataset_source.py +test/test_submit_job_response.py +test/test_table_info.py +test/test_table_profile_response.py +test/test_table_refresh_error.py +test/test_table_refresh_result.py +test/test_temporal_profile_detail.py +test/test_text_profile_detail.py +test/test_update_dataset_request.py +test/test_update_dataset_response.py +test/test_update_embedding_provider_request.py +test/test_update_embedding_provider_response.py +test/test_update_saved_query_request.py +test/test_update_secret_request.py +test/test_update_secret_response.py +test/test_upload_dataset_source.py +test/test_upload_info.py +test/test_upload_response.py +test/test_uploads_api.py +test/test_upsert_database_context_request.py +test/test_upsert_database_context_response.py +test/test_url_dataset_source.py +test/test_workspace_detail.py +test/test_workspace_list_item.py +test/test_workspaces_api.py tox.ini diff --git a/CHANGELOG.md b/CHANGELOG.md index f8762d5..fb49750 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.3.3] - 2026-06-10 + +### Changed + +- chore: regenerate client, drop orphaned sandbox files + ## [0.3.1] - 2026-06-06 ### Security diff --git a/docs/ColumnDefinition.md b/docs/ColumnDefinition.md deleted file mode 100644 index ccf656f..0000000 --- a/docs/ColumnDefinition.md +++ /dev/null @@ -1,34 +0,0 @@ -# ColumnDefinition - -Column type specification - either a simple type string or detailed spec with properties. Simple form: `\"VARCHAR\"`, `\"INT\"`, `\"DATE\"` Detailed form: `{ \"type\": \"DECIMAL\", \"precision\": 10, \"scale\": 2 }` - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**geometry_type** | **object** | Geometry type for GEOMETRY/GEOGRAPHY columns. E.g., \"Point\", \"LineString\", \"Polygon\", \"MultiPoint\", \"MultiLineString\", \"MultiPolygon\", \"GeometryCollection\", or \"Geometry\" (any). | [optional] -**precision** | **object** | Precision for DECIMAL type (1-38) | [optional] -**scale** | **object** | Scale for DECIMAL type | [optional] -**srid** | **object** | Spatial Reference System Identifier for GEOMETRY/GEOGRAPHY types. Common values: 4326 (WGS84), 3857 (Web Mercator). | [optional] -**type** | **str** | The data type name (e.g., \"DECIMAL\", \"TIMESTAMP\", \"GEOMETRY\") | - -## Example - -```python -from hotdata.models.column_definition import ColumnDefinition - -# TODO update the JSON string below -json = "{}" -# create an instance of ColumnDefinition from a JSON string -column_definition_instance = ColumnDefinition.from_json(json) -# print the JSON string representation of the object -print(ColumnDefinition.to_json()) - -# convert the object into a dict -column_definition_dict = column_definition_instance.to_dict() -# create an instance of ColumnDefinition from a dict -column_definition_from_dict = ColumnDefinition.from_dict(column_definition_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateSandboxRequest.md b/docs/CreateSandboxRequest.md deleted file mode 100644 index c6068ed..0000000 --- a/docs/CreateSandboxRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# CreateSandboxRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Human-readable name for the sandbox. | [optional] -**markdown** | **str** | Optional markdown notes. | [optional] - -## Example - -```python -from hotdata.models.create_sandbox_request import CreateSandboxRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateSandboxRequest from a JSON string -create_sandbox_request_instance = CreateSandboxRequest.from_json(json) -# print the JSON string representation of the object -print(CreateSandboxRequest.to_json()) - -# convert the object into a dict -create_sandbox_request_dict = create_sandbox_request_instance.to_dict() -# create an instance of CreateSandboxRequest from a dict -create_sandbox_request_from_dict = CreateSandboxRequest.from_dict(create_sandbox_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateWorkspace201Response.md b/docs/CreateWorkspace201Response.md deleted file mode 100644 index 2dcb02e..0000000 --- a/docs/CreateWorkspace201Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# CreateWorkspace201Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ok** | **bool** | | -**workspace** | [**WorkspaceDetail**](WorkspaceDetail.md) | | - -## Example - -```python -from hotdata.models.create_workspace201_response import CreateWorkspace201Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateWorkspace201Response from a JSON string -create_workspace201_response_instance = CreateWorkspace201Response.from_json(json) -# print the JSON string representation of the object -print(CreateWorkspace201Response.to_json()) - -# convert the object into a dict -create_workspace201_response_dict = create_workspace201_response_instance.to_dict() -# create an instance of CreateWorkspace201Response from a dict -create_workspace201_response_from_dict = CreateWorkspace201Response.from_dict(create_workspace201_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DeleteSandboxResponse.md b/docs/DeleteSandboxResponse.md deleted file mode 100644 index 982583d..0000000 --- a/docs/DeleteSandboxResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# DeleteSandboxResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ok** | **bool** | | -**deleted** | **bool** | | - -## Example - -```python -from hotdata.models.delete_sandbox_response import DeleteSandboxResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of DeleteSandboxResponse from a JSON string -delete_sandbox_response_instance = DeleteSandboxResponse.from_json(json) -# print the JSON string representation of the object -print(DeleteSandboxResponse.to_json()) - -# convert the object into a dict -delete_sandbox_response_dict = delete_sandbox_response_instance.to_dict() -# create an instance of DeleteSandboxResponse from a dict -delete_sandbox_response_from_dict = DeleteSandboxResponse.from_dict(delete_sandbox_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetWorkspaceContextResponse.md b/docs/GetWorkspaceContextResponse.md deleted file mode 100644 index c99bdd9..0000000 --- a/docs/GetWorkspaceContextResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetWorkspaceContextResponse - -Response body for GET `/v1/context/{name}`. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**WorkspaceContextEntry**](WorkspaceContextEntry.md) | | - -## Example - -```python -from hotdata.models.get_workspace_context_response import GetWorkspaceContextResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetWorkspaceContextResponse from a JSON string -get_workspace_context_response_instance = GetWorkspaceContextResponse.from_json(json) -# print the JSON string representation of the object -print(GetWorkspaceContextResponse.to_json()) - -# convert the object into a dict -get_workspace_context_response_dict = get_workspace_context_response_instance.to_dict() -# create an instance of GetWorkspaceContextResponse from a dict -get_workspace_context_response_from_dict = GetWorkspaceContextResponse.from_dict(get_workspace_context_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ListSandboxesResponse.md b/docs/ListSandboxesResponse.md deleted file mode 100644 index 81f44fb..0000000 --- a/docs/ListSandboxesResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# ListSandboxesResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ok** | **bool** | | -**sandboxes** | [**List[Sandbox]**](Sandbox.md) | | - -## Example - -```python -from hotdata.models.list_sandboxes_response import ListSandboxesResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ListSandboxesResponse from a JSON string -list_sandboxes_response_instance = ListSandboxesResponse.from_json(json) -# print the JSON string representation of the object -print(ListSandboxesResponse.to_json()) - -# convert the object into a dict -list_sandboxes_response_dict = list_sandboxes_response_instance.to_dict() -# create an instance of ListSandboxesResponse from a dict -list_sandboxes_response_from_dict = ListSandboxesResponse.from_dict(list_sandboxes_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ListWorkspaceContextsResponse.md b/docs/ListWorkspaceContextsResponse.md deleted file mode 100644 index 63d63cd..0000000 --- a/docs/ListWorkspaceContextsResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# ListWorkspaceContextsResponse - -Response body for GET `/v1/context`. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**contexts** | [**List[WorkspaceContextEntry]**](WorkspaceContextEntry.md) | | - -## Example - -```python -from hotdata.models.list_workspace_contexts_response import ListWorkspaceContextsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ListWorkspaceContextsResponse from a JSON string -list_workspace_contexts_response_instance = ListWorkspaceContextsResponse.from_json(json) -# print the JSON string representation of the object -print(ListWorkspaceContextsResponse.to_json()) - -# convert the object into a dict -list_workspace_contexts_response_dict = list_workspace_contexts_response_instance.to_dict() -# create an instance of ListWorkspaceContextsResponse from a dict -list_workspace_contexts_response_from_dict = ListWorkspaceContextsResponse.from_dict(list_workspace_contexts_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ListWorkspaces200Response.md b/docs/ListWorkspaces200Response.md deleted file mode 100644 index 58a85e3..0000000 --- a/docs/ListWorkspaces200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# ListWorkspaces200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ok** | **bool** | | -**workspaces** | [**List[WorkspaceListItem]**](WorkspaceListItem.md) | | - -## Example - -```python -from hotdata.models.list_workspaces200_response import ListWorkspaces200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of ListWorkspaces200Response from a JSON string -list_workspaces200_response_instance = ListWorkspaces200Response.from_json(json) -# print the JSON string representation of the object -print(ListWorkspaces200Response.to_json()) - -# convert the object into a dict -list_workspaces200_response_dict = list_workspaces200_response_instance.to_dict() -# create an instance of ListWorkspaces200Response from a dict -list_workspaces200_response_from_dict = ListWorkspaces200Response.from_dict(list_workspaces200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Sandbox.md b/docs/Sandbox.md deleted file mode 100644 index 9ec171c..0000000 --- a/docs/Sandbox.md +++ /dev/null @@ -1,33 +0,0 @@ -# Sandbox - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**public_id** | **str** | | -**name** | **str** | | -**markdown** | **str** | Freeform markdown notes attached to the sandbox. | -**created_at** | **datetime** | | -**updated_at** | **datetime** | | - -## Example - -```python -from hotdata.models.sandbox import Sandbox - -# TODO update the JSON string below -json = "{}" -# create an instance of Sandbox from a JSON string -sandbox_instance = Sandbox.from_json(json) -# print the JSON string representation of the object -print(Sandbox.to_json()) - -# convert the object into a dict -sandbox_dict = sandbox_instance.to_dict() -# create an instance of Sandbox from a dict -sandbox_from_dict = Sandbox.from_dict(sandbox_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SandboxResponse.md b/docs/SandboxResponse.md deleted file mode 100644 index 87e1dbe..0000000 --- a/docs/SandboxResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# SandboxResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ok** | **bool** | | -**sandbox** | [**Sandbox**](Sandbox.md) | | - -## Example - -```python -from hotdata.models.sandbox_response import SandboxResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SandboxResponse from a JSON string -sandbox_response_instance = SandboxResponse.from_json(json) -# print the JSON string representation of the object -print(SandboxResponse.to_json()) - -# convert the object into a dict -sandbox_response_dict = sandbox_response_instance.to_dict() -# create an instance of SandboxResponse from a dict -sandbox_response_from_dict = SandboxResponse.from_dict(sandbox_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SandboxesApi.md b/docs/SandboxesApi.md deleted file mode 100644 index cc260ea..0000000 --- a/docs/SandboxesApi.md +++ /dev/null @@ -1,452 +0,0 @@ -# hotdata.SandboxesApi - -All URIs are relative to *https://api.hotdata.dev* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_sandbox**](SandboxesApi.md#create_sandbox) | **POST** /v1/sandboxes | Create a sandbox -[**delete_sandbox**](SandboxesApi.md#delete_sandbox) | **DELETE** /v1/sandboxes/{public_id} | Delete sandbox -[**get_sandbox**](SandboxesApi.md#get_sandbox) | **GET** /v1/sandboxes/{public_id} | Get sandbox -[**list_sandboxes**](SandboxesApi.md#list_sandboxes) | **GET** /v1/sandboxes | List sandboxes -[**update_sandbox**](SandboxesApi.md#update_sandbox) | **PATCH** /v1/sandboxes/{public_id} | Update sandbox - - -# **create_sandbox** -> SandboxResponse create_sandbox(create_sandbox_request) - -Create a sandbox - -Creates a sandbox in the requested workspace. The returned `public_id` is the value to pass as `X-Session-Id` on scoped ops. - -### Example - -* Api Key Authentication (WorkspaceId): -* Bearer Authentication (BearerAuth): - -```python -import hotdata -from hotdata.models.create_sandbox_request import CreateSandboxRequest -from hotdata.models.sandbox_response import SandboxResponse -from hotdata.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.hotdata.dev -# See configuration.py for a list of all supported configuration parameters. -configuration = hotdata.Configuration( - host = "https://api.hotdata.dev" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: WorkspaceId -configuration.api_key['WorkspaceId'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['WorkspaceId'] = 'Bearer' - -# Configure Bearer authorization: BearerAuth -configuration = hotdata.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with hotdata.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = hotdata.SandboxesApi(api_client) - create_sandbox_request = hotdata.CreateSandboxRequest() # CreateSandboxRequest | - - try: - # Create a sandbox - api_response = api_instance.create_sandbox(create_sandbox_request) - print("The response of SandboxesApi->create_sandbox:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SandboxesApi->create_sandbox: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **create_sandbox_request** | [**CreateSandboxRequest**](CreateSandboxRequest.md)| | - -### Return type - -[**SandboxResponse**](SandboxResponse.md) - -### Authorization - -[WorkspaceId](../README.md#WorkspaceId), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | Sandbox created | - | -**400** | Invalid JSON body or missing X-Workspace-Id header | - | -**401** | Missing or invalid authorization | - | -**403** | Not a member of the target workspace's organization | - | -**404** | Workspace not found | - | - -[[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) - -# **delete_sandbox** -> DeleteSandboxResponse delete_sandbox(public_id) - -Delete sandbox - -### Example - -* Api Key Authentication (WorkspaceId): -* Bearer Authentication (BearerAuth): - -```python -import hotdata -from hotdata.models.delete_sandbox_response import DeleteSandboxResponse -from hotdata.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.hotdata.dev -# See configuration.py for a list of all supported configuration parameters. -configuration = hotdata.Configuration( - host = "https://api.hotdata.dev" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: WorkspaceId -configuration.api_key['WorkspaceId'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['WorkspaceId'] = 'Bearer' - -# Configure Bearer authorization: BearerAuth -configuration = hotdata.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with hotdata.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = hotdata.SandboxesApi(api_client) - public_id = 'public_id_example' # str | Public id of the sandbox. - - try: - # Delete sandbox - api_response = api_instance.delete_sandbox(public_id) - print("The response of SandboxesApi->delete_sandbox:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SandboxesApi->delete_sandbox: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **public_id** | **str**| Public id of the sandbox. | - -### Return type - -[**DeleteSandboxResponse**](DeleteSandboxResponse.md) - -### Authorization - -[WorkspaceId](../README.md#WorkspaceId), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Sandbox deleted | - | -**401** | Missing or invalid authorization | - | -**403** | Not a member of the target workspace's organization | - | -**404** | Sandbox not found | - | - -[[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) - -# **get_sandbox** -> SandboxResponse get_sandbox(public_id) - -Get sandbox - -### Example - -* Api Key Authentication (WorkspaceId): -* Bearer Authentication (BearerAuth): - -```python -import hotdata -from hotdata.models.sandbox_response import SandboxResponse -from hotdata.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.hotdata.dev -# See configuration.py for a list of all supported configuration parameters. -configuration = hotdata.Configuration( - host = "https://api.hotdata.dev" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: WorkspaceId -configuration.api_key['WorkspaceId'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['WorkspaceId'] = 'Bearer' - -# Configure Bearer authorization: BearerAuth -configuration = hotdata.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with hotdata.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = hotdata.SandboxesApi(api_client) - public_id = 'public_id_example' # str | Public id of the sandbox. - - try: - # Get sandbox - api_response = api_instance.get_sandbox(public_id) - print("The response of SandboxesApi->get_sandbox:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SandboxesApi->get_sandbox: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **public_id** | **str**| Public id of the sandbox. | - -### Return type - -[**SandboxResponse**](SandboxResponse.md) - -### Authorization - -[WorkspaceId](../README.md#WorkspaceId), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful response | - | -**401** | Missing or invalid authorization | - | -**403** | Not a member of the target workspace's organization | - | -**404** | Sandbox not found | - | - -[[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) - -# **list_sandboxes** -> ListSandboxesResponse list_sandboxes() - -List sandboxes - -Lists sandboxes for the caller in the requested workspace. - -### Example - -* Api Key Authentication (WorkspaceId): -* Bearer Authentication (BearerAuth): - -```python -import hotdata -from hotdata.models.list_sandboxes_response import ListSandboxesResponse -from hotdata.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.hotdata.dev -# See configuration.py for a list of all supported configuration parameters. -configuration = hotdata.Configuration( - host = "https://api.hotdata.dev" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: WorkspaceId -configuration.api_key['WorkspaceId'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['WorkspaceId'] = 'Bearer' - -# Configure Bearer authorization: BearerAuth -configuration = hotdata.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with hotdata.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = hotdata.SandboxesApi(api_client) - - try: - # List sandboxes - api_response = api_instance.list_sandboxes() - print("The response of SandboxesApi->list_sandboxes:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SandboxesApi->list_sandboxes: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**ListSandboxesResponse**](ListSandboxesResponse.md) - -### Authorization - -[WorkspaceId](../README.md#WorkspaceId), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful response | - | -**400** | Missing or invalid X-Workspace-Id header | - | -**401** | Missing or invalid authorization | - | -**403** | Not a member of the target workspace's organization | - | -**404** | Workspace not found | - | - -[[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) - -# **update_sandbox** -> SandboxResponse update_sandbox(public_id, update_sandbox_request) - -Update sandbox - -Partial update. Only the provided fields are changed. - -### Example - -* Api Key Authentication (WorkspaceId): -* Bearer Authentication (BearerAuth): - -```python -import hotdata -from hotdata.models.sandbox_response import SandboxResponse -from hotdata.models.update_sandbox_request import UpdateSandboxRequest -from hotdata.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.hotdata.dev -# See configuration.py for a list of all supported configuration parameters. -configuration = hotdata.Configuration( - host = "https://api.hotdata.dev" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: WorkspaceId -configuration.api_key['WorkspaceId'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['WorkspaceId'] = 'Bearer' - -# Configure Bearer authorization: BearerAuth -configuration = hotdata.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with hotdata.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = hotdata.SandboxesApi(api_client) - public_id = 'public_id_example' # str | Public id of the sandbox. - update_sandbox_request = hotdata.UpdateSandboxRequest() # UpdateSandboxRequest | - - try: - # Update sandbox - api_response = api_instance.update_sandbox(public_id, update_sandbox_request) - print("The response of SandboxesApi->update_sandbox:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SandboxesApi->update_sandbox: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **public_id** | **str**| Public id of the sandbox. | - **update_sandbox_request** | [**UpdateSandboxRequest**](UpdateSandboxRequest.md)| | - -### Return type - -[**SandboxResponse**](SandboxResponse.md) - -### Authorization - -[WorkspaceId](../README.md#WorkspaceId), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Sandbox updated | - | -**400** | Invalid JSON body | - | -**401** | Missing or invalid authorization | - | -**403** | Not a member of the target workspace's organization | - | -**404** | Sandbox not found | - | - -[[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) - diff --git a/docs/UpdateSandboxRequest.md b/docs/UpdateSandboxRequest.md deleted file mode 100644 index 0d05582..0000000 --- a/docs/UpdateSandboxRequest.md +++ /dev/null @@ -1,31 +0,0 @@ -# UpdateSandboxRequest - -Partial update — only the provided fields are changed. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | [optional] -**markdown** | **str** | | [optional] - -## Example - -```python -from hotdata.models.update_sandbox_request import UpdateSandboxRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of UpdateSandboxRequest from a JSON string -update_sandbox_request_instance = UpdateSandboxRequest.from_json(json) -# print the JSON string representation of the object -print(UpdateSandboxRequest.to_json()) - -# convert the object into a dict -update_sandbox_request_dict = update_sandbox_request_instance.to_dict() -# create an instance of UpdateSandboxRequest from a dict -update_sandbox_request_from_dict = UpdateSandboxRequest.from_dict(update_sandbox_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UpsertWorkspaceContextRequest.md b/docs/UpsertWorkspaceContextRequest.md deleted file mode 100644 index b240806..0000000 --- a/docs/UpsertWorkspaceContextRequest.md +++ /dev/null @@ -1,31 +0,0 @@ -# UpsertWorkspaceContextRequest - -Request body for POST `/v1/context`. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **str** | | -**name** | **str** | Upsert key in the catalog. Validated with dataset table-name rules (preserves case): ASCII letter or `_` first; then alphanumeric or `_` only; 1–128 chars; not a SQL reserved word. | - -## Example - -```python -from hotdata.models.upsert_workspace_context_request import UpsertWorkspaceContextRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of UpsertWorkspaceContextRequest from a JSON string -upsert_workspace_context_request_instance = UpsertWorkspaceContextRequest.from_json(json) -# print the JSON string representation of the object -print(UpsertWorkspaceContextRequest.to_json()) - -# convert the object into a dict -upsert_workspace_context_request_dict = upsert_workspace_context_request_instance.to_dict() -# create an instance of UpsertWorkspaceContextRequest from a dict -upsert_workspace_context_request_from_dict = UpsertWorkspaceContextRequest.from_dict(upsert_workspace_context_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UpsertWorkspaceContextResponse.md b/docs/UpsertWorkspaceContextResponse.md deleted file mode 100644 index ecd1425..0000000 --- a/docs/UpsertWorkspaceContextResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# UpsertWorkspaceContextResponse - -Response body for POST `/v1/context`. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**WorkspaceContextEntry**](WorkspaceContextEntry.md) | | - -## Example - -```python -from hotdata.models.upsert_workspace_context_response import UpsertWorkspaceContextResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of UpsertWorkspaceContextResponse from a JSON string -upsert_workspace_context_response_instance = UpsertWorkspaceContextResponse.from_json(json) -# print the JSON string representation of the object -print(UpsertWorkspaceContextResponse.to_json()) - -# convert the object into a dict -upsert_workspace_context_response_dict = upsert_workspace_context_response_instance.to_dict() -# create an instance of UpsertWorkspaceContextResponse from a dict -upsert_workspace_context_response_from_dict = UpsertWorkspaceContextResponse.from_dict(upsert_workspace_context_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/WorkspaceContextApi.md b/docs/WorkspaceContextApi.md deleted file mode 100644 index 66f7235..0000000 --- a/docs/WorkspaceContextApi.md +++ /dev/null @@ -1,348 +0,0 @@ -# hotdata.WorkspaceContextApi - -All URIs are relative to *https://api.hotdata.dev* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**delete_workspace_context**](WorkspaceContextApi.md#delete_workspace_context) | **DELETE** /v1/context/{name} | Delete workspace context -[**get_workspace_context**](WorkspaceContextApi.md#get_workspace_context) | **GET** /v1/context/{name} | Get one workspace context -[**list_workspace_contexts**](WorkspaceContextApi.md#list_workspace_contexts) | **GET** /v1/context | List workspace contexts -[**upsert_workspace_context**](WorkspaceContextApi.md#upsert_workspace_context) | **POST** /v1/context | Create or update workspace context - - -# **delete_workspace_context** -> delete_workspace_context(name) - -Delete workspace context - -Removes a named context document from the catalog. - -### Example - -* Api Key Authentication (WorkspaceId): -* Bearer Authentication (BearerAuth): - -```python -import hotdata -from hotdata.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.hotdata.dev -# See configuration.py for a list of all supported configuration parameters. -configuration = hotdata.Configuration( - host = "https://api.hotdata.dev" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: WorkspaceId -configuration.api_key['WorkspaceId'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['WorkspaceId'] = 'Bearer' - -# Configure Bearer authorization: BearerAuth -configuration = hotdata.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with hotdata.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = hotdata.WorkspaceContextApi(api_client) - name = 'name_example' # str | Context key: same character rules as a dataset table name (letter or underscore first; no hyphens) - - try: - # Delete workspace context - api_instance.delete_workspace_context(name) - except Exception as e: - print("Exception when calling WorkspaceContextApi->delete_workspace_context: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Context key: same character rules as a dataset table name (letter or underscore first; no hyphens) | - -### Return type - -void (empty response body) - -### Authorization - -[WorkspaceId](../README.md#WorkspaceId), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**204** | Context deleted | - | -**400** | Invalid request | - | -**404** | Context not found | - | - -[[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) - -# **get_workspace_context** -> GetWorkspaceContextResponse get_workspace_context(name) - -Get one workspace context - -### Example - -* Api Key Authentication (WorkspaceId): -* Bearer Authentication (BearerAuth): - -```python -import hotdata -from hotdata.models.get_workspace_context_response import GetWorkspaceContextResponse -from hotdata.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.hotdata.dev -# See configuration.py for a list of all supported configuration parameters. -configuration = hotdata.Configuration( - host = "https://api.hotdata.dev" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: WorkspaceId -configuration.api_key['WorkspaceId'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['WorkspaceId'] = 'Bearer' - -# Configure Bearer authorization: BearerAuth -configuration = hotdata.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with hotdata.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = hotdata.WorkspaceContextApi(api_client) - name = 'name_example' # str | Context key: same character rules as a dataset table name (letter or underscore first; no hyphens) - - try: - # Get one workspace context - api_response = api_instance.get_workspace_context(name) - print("The response of WorkspaceContextApi->get_workspace_context:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling WorkspaceContextApi->get_workspace_context: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| Context key: same character rules as a dataset table name (letter or underscore first; no hyphens) | - -### Return type - -[**GetWorkspaceContextResponse**](GetWorkspaceContextResponse.md) - -### Authorization - -[WorkspaceId](../README.md#WorkspaceId), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Context found | - | -**400** | Invalid request | - | -**404** | Context not found | - | - -[[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) - -# **list_workspace_contexts** -> ListWorkspaceContextsResponse list_workspace_contexts() - -List workspace contexts - -### Example - -* Api Key Authentication (WorkspaceId): -* Bearer Authentication (BearerAuth): - -```python -import hotdata -from hotdata.models.list_workspace_contexts_response import ListWorkspaceContextsResponse -from hotdata.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.hotdata.dev -# See configuration.py for a list of all supported configuration parameters. -configuration = hotdata.Configuration( - host = "https://api.hotdata.dev" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: WorkspaceId -configuration.api_key['WorkspaceId'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['WorkspaceId'] = 'Bearer' - -# Configure Bearer authorization: BearerAuth -configuration = hotdata.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with hotdata.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = hotdata.WorkspaceContextApi(api_client) - - try: - # List workspace contexts - api_response = api_instance.list_workspace_contexts() - print("The response of WorkspaceContextApi->list_workspace_contexts:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling WorkspaceContextApi->list_workspace_contexts: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**ListWorkspaceContextsResponse**](ListWorkspaceContextsResponse.md) - -### Authorization - -[WorkspaceId](../README.md#WorkspaceId), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Contexts | - | -**400** | Invalid request | - | - -[[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) - -# **upsert_workspace_context** -> UpsertWorkspaceContextResponse upsert_workspace_context(upsert_workspace_context_request) - -Create or update workspace context - -Stores a named document (for example Markdown). Reuses the same name to replace content. Scoped to the deployment catalog like other metadata (connections, secrets, etc.). - -### Example - -* Api Key Authentication (WorkspaceId): -* Bearer Authentication (BearerAuth): - -```python -import hotdata -from hotdata.models.upsert_workspace_context_request import UpsertWorkspaceContextRequest -from hotdata.models.upsert_workspace_context_response import UpsertWorkspaceContextResponse -from hotdata.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.hotdata.dev -# See configuration.py for a list of all supported configuration parameters. -configuration = hotdata.Configuration( - host = "https://api.hotdata.dev" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: WorkspaceId -configuration.api_key['WorkspaceId'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['WorkspaceId'] = 'Bearer' - -# Configure Bearer authorization: BearerAuth -configuration = hotdata.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with hotdata.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = hotdata.WorkspaceContextApi(api_client) - upsert_workspace_context_request = hotdata.UpsertWorkspaceContextRequest() # UpsertWorkspaceContextRequest | - - try: - # Create or update workspace context - api_response = api_instance.upsert_workspace_context(upsert_workspace_context_request) - print("The response of WorkspaceContextApi->upsert_workspace_context:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling WorkspaceContextApi->upsert_workspace_context: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upsert_workspace_context_request** | [**UpsertWorkspaceContextRequest**](UpsertWorkspaceContextRequest.md)| | - -### Return type - -[**UpsertWorkspaceContextResponse**](UpsertWorkspaceContextResponse.md) - -### Authorization - -[WorkspaceId](../README.md#WorkspaceId), [BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Context saved | - | -**400** | Invalid request | - | - -[[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) - diff --git a/docs/WorkspaceContextEntry.md b/docs/WorkspaceContextEntry.md deleted file mode 100644 index e24d552..0000000 --- a/docs/WorkspaceContextEntry.md +++ /dev/null @@ -1,32 +0,0 @@ -# WorkspaceContextEntry - -One context entry returned by the API. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **str** | | -**name** | **str** | | -**updated_at** | **datetime** | | - -## Example - -```python -from hotdata.models.workspace_context_entry import WorkspaceContextEntry - -# TODO update the JSON string below -json = "{}" -# create an instance of WorkspaceContextEntry from a JSON string -workspace_context_entry_instance = WorkspaceContextEntry.from_json(json) -# print the JSON string representation of the object -print(WorkspaceContextEntry.to_json()) - -# convert the object into a dict -workspace_context_entry_dict = workspace_context_entry_instance.to_dict() -# create an instance of WorkspaceContextEntry from a dict -workspace_context_entry_from_dict = WorkspaceContextEntry.from_dict(workspace_context_entry_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/hotdata/api/sandboxes_api.py b/hotdata/api/sandboxes_api.py deleted file mode 100644 index dfc89f5..0000000 --- a/hotdata/api/sandboxes_api.py +++ /dev/null @@ -1,1426 +0,0 @@ -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictStr -from typing_extensions import Annotated -from hotdata.models.create_sandbox_request import CreateSandboxRequest -from hotdata.models.delete_sandbox_response import DeleteSandboxResponse -from hotdata.models.list_sandboxes_response import ListSandboxesResponse -from hotdata.models.sandbox_response import SandboxResponse -from hotdata.models.update_sandbox_request import UpdateSandboxRequest - -from hotdata.api_client import ApiClient, RequestSerialized -from hotdata.api_response import ApiResponse -from hotdata.rest import RESTResponseType - - -class SandboxesApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_sandbox( - self, - create_sandbox_request: CreateSandboxRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SandboxResponse: - """Create a sandbox - - Creates a sandbox in the requested workspace. The returned `public_id` is the value to pass as `X-Session-Id` on scoped ops. - - :param create_sandbox_request: (required) - :type create_sandbox_request: CreateSandboxRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_sandbox_serialize( - create_sandbox_request=create_sandbox_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SandboxResponse", - '400': "Error", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_sandbox_with_http_info( - self, - create_sandbox_request: CreateSandboxRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SandboxResponse]: - """Create a sandbox - - Creates a sandbox in the requested workspace. The returned `public_id` is the value to pass as `X-Session-Id` on scoped ops. - - :param create_sandbox_request: (required) - :type create_sandbox_request: CreateSandboxRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_sandbox_serialize( - create_sandbox_request=create_sandbox_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SandboxResponse", - '400': "Error", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_sandbox_without_preload_content( - self, - create_sandbox_request: CreateSandboxRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a sandbox - - Creates a sandbox in the requested workspace. The returned `public_id` is the value to pass as `X-Session-Id` on scoped ops. - - :param create_sandbox_request: (required) - :type create_sandbox_request: CreateSandboxRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_sandbox_serialize( - create_sandbox_request=create_sandbox_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SandboxResponse", - '400': "Error", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_sandbox_serialize( - self, - create_sandbox_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if create_sandbox_request is not None: - _body_params = create_sandbox_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'WorkspaceId', - 'BearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v1/sandboxes', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_sandbox( - self, - public_id: Annotated[StrictStr, Field(description="Public id of the sandbox.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteSandboxResponse: - """Delete sandbox - - - :param public_id: Public id of the sandbox. (required) - :type public_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_sandbox_serialize( - public_id=public_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteSandboxResponse", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_sandbox_with_http_info( - self, - public_id: Annotated[StrictStr, Field(description="Public id of the sandbox.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteSandboxResponse]: - """Delete sandbox - - - :param public_id: Public id of the sandbox. (required) - :type public_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_sandbox_serialize( - public_id=public_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteSandboxResponse", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_sandbox_without_preload_content( - self, - public_id: Annotated[StrictStr, Field(description="Public id of the sandbox.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete sandbox - - - :param public_id: Public id of the sandbox. (required) - :type public_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_sandbox_serialize( - public_id=public_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteSandboxResponse", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_sandbox_serialize( - self, - public_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if public_id is not None: - _path_params['public_id'] = public_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'WorkspaceId', - 'BearerAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/sandboxes/{public_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_sandbox( - self, - public_id: Annotated[StrictStr, Field(description="Public id of the sandbox.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SandboxResponse: - """Get sandbox - - - :param public_id: Public id of the sandbox. (required) - :type public_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_sandbox_serialize( - public_id=public_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SandboxResponse", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_sandbox_with_http_info( - self, - public_id: Annotated[StrictStr, Field(description="Public id of the sandbox.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SandboxResponse]: - """Get sandbox - - - :param public_id: Public id of the sandbox. (required) - :type public_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_sandbox_serialize( - public_id=public_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SandboxResponse", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_sandbox_without_preload_content( - self, - public_id: Annotated[StrictStr, Field(description="Public id of the sandbox.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get sandbox - - - :param public_id: Public id of the sandbox. (required) - :type public_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_sandbox_serialize( - public_id=public_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SandboxResponse", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_sandbox_serialize( - self, - public_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if public_id is not None: - _path_params['public_id'] = public_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'WorkspaceId', - 'BearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/sandboxes/{public_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_sandboxes( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListSandboxesResponse: - """List sandboxes - - Lists sandboxes for the caller in the requested workspace. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_sandboxes_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListSandboxesResponse", - '400': "Error", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def list_sandboxes_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListSandboxesResponse]: - """List sandboxes - - Lists sandboxes for the caller in the requested workspace. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_sandboxes_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListSandboxesResponse", - '400': "Error", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def list_sandboxes_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List sandboxes - - Lists sandboxes for the caller in the requested workspace. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_sandboxes_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListSandboxesResponse", - '400': "Error", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _list_sandboxes_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'WorkspaceId', - 'BearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/sandboxes', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_sandbox( - self, - public_id: Annotated[StrictStr, Field(description="Public id of the sandbox.")], - update_sandbox_request: UpdateSandboxRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SandboxResponse: - """Update sandbox - - Partial update. Only the provided fields are changed. - - :param public_id: Public id of the sandbox. (required) - :type public_id: str - :param update_sandbox_request: (required) - :type update_sandbox_request: UpdateSandboxRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_sandbox_serialize( - public_id=public_id, - update_sandbox_request=update_sandbox_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SandboxResponse", - '400': "Error", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_sandbox_with_http_info( - self, - public_id: Annotated[StrictStr, Field(description="Public id of the sandbox.")], - update_sandbox_request: UpdateSandboxRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SandboxResponse]: - """Update sandbox - - Partial update. Only the provided fields are changed. - - :param public_id: Public id of the sandbox. (required) - :type public_id: str - :param update_sandbox_request: (required) - :type update_sandbox_request: UpdateSandboxRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_sandbox_serialize( - public_id=public_id, - update_sandbox_request=update_sandbox_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SandboxResponse", - '400': "Error", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_sandbox_without_preload_content( - self, - public_id: Annotated[StrictStr, Field(description="Public id of the sandbox.")], - update_sandbox_request: UpdateSandboxRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update sandbox - - Partial update. Only the provided fields are changed. - - :param public_id: Public id of the sandbox. (required) - :type public_id: str - :param update_sandbox_request: (required) - :type update_sandbox_request: UpdateSandboxRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_sandbox_serialize( - public_id=public_id, - update_sandbox_request=update_sandbox_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SandboxResponse", - '400': "Error", - '401': "Error", - '403': "Error", - '404': "Error", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_sandbox_serialize( - self, - public_id, - update_sandbox_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if public_id is not None: - _path_params['public_id'] = public_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if update_sandbox_request is not None: - _body_params = update_sandbox_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'WorkspaceId', - 'BearerAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/v1/sandboxes/{public_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/hotdata/api/workspace_context_api.py b/hotdata/api/workspace_context_api.py deleted file mode 100644 index fa7499c..0000000 --- a/hotdata/api/workspace_context_api.py +++ /dev/null @@ -1,1099 +0,0 @@ -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictStr -from typing_extensions import Annotated -from hotdata.models.get_workspace_context_response import GetWorkspaceContextResponse -from hotdata.models.list_workspace_contexts_response import ListWorkspaceContextsResponse -from hotdata.models.upsert_workspace_context_request import UpsertWorkspaceContextRequest -from hotdata.models.upsert_workspace_context_response import UpsertWorkspaceContextResponse - -from hotdata.api_client import ApiClient, RequestSerialized -from hotdata.api_response import ApiResponse -from hotdata.rest import RESTResponseType - - -class WorkspaceContextApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def delete_workspace_context( - self, - name: Annotated[StrictStr, Field(description="Context key: same character rules as a dataset table name (letter or underscore first; no hyphens)")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """Delete workspace context - - Removes a named context document from the catalog. - - :param name: Context key: same character rules as a dataset table name (letter or underscore first; no hyphens) (required) - :type name: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_workspace_context_serialize( - name=name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': "ApiErrorResponse", - '404': "ApiErrorResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_workspace_context_with_http_info( - self, - name: Annotated[StrictStr, Field(description="Context key: same character rules as a dataset table name (letter or underscore first; no hyphens)")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """Delete workspace context - - Removes a named context document from the catalog. - - :param name: Context key: same character rules as a dataset table name (letter or underscore first; no hyphens) (required) - :type name: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_workspace_context_serialize( - name=name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': "ApiErrorResponse", - '404': "ApiErrorResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_workspace_context_without_preload_content( - self, - name: Annotated[StrictStr, Field(description="Context key: same character rules as a dataset table name (letter or underscore first; no hyphens)")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete workspace context - - Removes a named context document from the catalog. - - :param name: Context key: same character rules as a dataset table name (letter or underscore first; no hyphens) (required) - :type name: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_workspace_context_serialize( - name=name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': "ApiErrorResponse", - '404': "ApiErrorResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_workspace_context_serialize( - self, - name, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if name is not None: - _path_params['name'] = name - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'WorkspaceId', - 'BearerAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/context/{name}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_workspace_context( - self, - name: Annotated[StrictStr, Field(description="Context key: same character rules as a dataset table name (letter or underscore first; no hyphens)")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetWorkspaceContextResponse: - """Get one workspace context - - - :param name: Context key: same character rules as a dataset table name (letter or underscore first; no hyphens) (required) - :type name: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_workspace_context_serialize( - name=name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetWorkspaceContextResponse", - '400': "ApiErrorResponse", - '404': "ApiErrorResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_workspace_context_with_http_info( - self, - name: Annotated[StrictStr, Field(description="Context key: same character rules as a dataset table name (letter or underscore first; no hyphens)")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetWorkspaceContextResponse]: - """Get one workspace context - - - :param name: Context key: same character rules as a dataset table name (letter or underscore first; no hyphens) (required) - :type name: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_workspace_context_serialize( - name=name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetWorkspaceContextResponse", - '400': "ApiErrorResponse", - '404': "ApiErrorResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_workspace_context_without_preload_content( - self, - name: Annotated[StrictStr, Field(description="Context key: same character rules as a dataset table name (letter or underscore first; no hyphens)")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get one workspace context - - - :param name: Context key: same character rules as a dataset table name (letter or underscore first; no hyphens) (required) - :type name: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_workspace_context_serialize( - name=name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetWorkspaceContextResponse", - '400': "ApiErrorResponse", - '404': "ApiErrorResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_workspace_context_serialize( - self, - name, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if name is not None: - _path_params['name'] = name - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'WorkspaceId', - 'BearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/context/{name}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def list_workspace_contexts( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListWorkspaceContextsResponse: - """List workspace contexts - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_workspace_contexts_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListWorkspaceContextsResponse", - '400': "ApiErrorResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def list_workspace_contexts_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListWorkspaceContextsResponse]: - """List workspace contexts - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_workspace_contexts_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListWorkspaceContextsResponse", - '400': "ApiErrorResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def list_workspace_contexts_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List workspace contexts - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_workspace_contexts_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ListWorkspaceContextsResponse", - '400': "ApiErrorResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _list_workspace_contexts_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'WorkspaceId', - 'BearerAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/context', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def upsert_workspace_context( - self, - upsert_workspace_context_request: UpsertWorkspaceContextRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UpsertWorkspaceContextResponse: - """Create or update workspace context - - Stores a named document (for example Markdown). Reuses the same name to replace content. Scoped to the deployment catalog like other metadata (connections, secrets, etc.). - - :param upsert_workspace_context_request: (required) - :type upsert_workspace_context_request: UpsertWorkspaceContextRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upsert_workspace_context_serialize( - upsert_workspace_context_request=upsert_workspace_context_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UpsertWorkspaceContextResponse", - '400': "ApiErrorResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def upsert_workspace_context_with_http_info( - self, - upsert_workspace_context_request: UpsertWorkspaceContextRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UpsertWorkspaceContextResponse]: - """Create or update workspace context - - Stores a named document (for example Markdown). Reuses the same name to replace content. Scoped to the deployment catalog like other metadata (connections, secrets, etc.). - - :param upsert_workspace_context_request: (required) - :type upsert_workspace_context_request: UpsertWorkspaceContextRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upsert_workspace_context_serialize( - upsert_workspace_context_request=upsert_workspace_context_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UpsertWorkspaceContextResponse", - '400': "ApiErrorResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def upsert_workspace_context_without_preload_content( - self, - upsert_workspace_context_request: UpsertWorkspaceContextRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create or update workspace context - - Stores a named document (for example Markdown). Reuses the same name to replace content. Scoped to the deployment catalog like other metadata (connections, secrets, etc.). - - :param upsert_workspace_context_request: (required) - :type upsert_workspace_context_request: UpsertWorkspaceContextRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upsert_workspace_context_serialize( - upsert_workspace_context_request=upsert_workspace_context_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UpsertWorkspaceContextResponse", - '400': "ApiErrorResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _upsert_workspace_context_serialize( - self, - upsert_workspace_context_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if upsert_workspace_context_request is not None: - _body_params = upsert_workspace_context_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'WorkspaceId', - 'BearerAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v1/context', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/hotdata/api_client.py b/hotdata/api_client.py index 1393125..eb55840 100644 --- a/hotdata/api_client.py +++ b/hotdata/api_client.py @@ -91,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/0.3.2/python' + self.user_agent = 'OpenAPI-Generator/0.3.3/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/hotdata/models/column_definition.py b/hotdata/models/column_definition.py deleted file mode 100644 index 0c69002..0000000 --- a/hotdata/models/column_definition.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -""" - HotData API - - Powerful data platform API for datasets, queries, and analytics. - - 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 -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from hotdata.models.column_type_spec import ColumnTypeSpec -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -COLUMNDEFINITION_ONE_OF_SCHEMAS = ["ColumnTypeSpec", "str"] - -class ColumnDefinition(BaseModel): - """ - Column type specification - either a simple type string or detailed spec with properties. Simple form: `\"VARCHAR\"`, `\"INT\"`, `\"DATE\"` Detailed form: `{ \"type\": \"DECIMAL\", \"precision\": 10, \"scale\": 2 }` - """ - # data type: str - oneof_schema_1_validator: Optional[StrictStr] = Field(default=None, description="Simple type name (e.g., \"VARCHAR\", \"INT\", \"DATE\")") - # data type: ColumnTypeSpec - oneof_schema_2_validator: Optional[ColumnTypeSpec] = None - actual_instance: Optional[Union[ColumnTypeSpec, str]] = None - one_of_schemas: Set[str] = { "ColumnTypeSpec", "str" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = ColumnDefinition.model_construct() - error_messages = [] - match = 0 - # validate data type: str - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: ColumnTypeSpec - if not isinstance(v, ColumnTypeSpec): - error_messages.append(f"Error! Input type `{type(v)}` is not `ColumnTypeSpec`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in ColumnDefinition with oneOf schemas: ColumnTypeSpec, str. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in ColumnDefinition with oneOf schemas: ColumnTypeSpec, str. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - match = 0 - - # deserialize data into str - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into ColumnTypeSpec - try: - instance.actual_instance = ColumnTypeSpec.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into ColumnDefinition with oneOf schemas: ColumnTypeSpec, str. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into ColumnDefinition with oneOf schemas: ColumnTypeSpec, str. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], ColumnTypeSpec, str]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/hotdata/models/create_sandbox_request.py b/hotdata/models/create_sandbox_request.py deleted file mode 100644 index 3a6796d..0000000 --- a/hotdata/models/create_sandbox_request.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CreateSandboxRequest(BaseModel): - """ - CreateSandboxRequest - """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="Human-readable name for the sandbox.") - markdown: Optional[StrictStr] = Field(default=None, description="Optional markdown notes.") - __properties: ClassVar[List[str]] = ["name", "markdown"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateSandboxRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreateSandboxRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "markdown": obj.get("markdown") - }) - return _obj - - diff --git a/hotdata/models/create_workspace201_response.py b/hotdata/models/create_workspace201_response.py deleted file mode 100644 index 3adc300..0000000 --- a/hotdata/models/create_workspace201_response.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - HotData API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool -from typing import Any, ClassVar, Dict, List -from hotdata.models.workspace_detail import WorkspaceDetail -from typing import Optional, Set -from typing_extensions import Self - -class CreateWorkspace201Response(BaseModel): - """ - CreateWorkspace201Response - """ # noqa: E501 - ok: StrictBool - workspace: WorkspaceDetail - __properties: ClassVar[List[str]] = ["ok", "workspace"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateWorkspace201Response from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of workspace - if self.workspace: - _dict['workspace'] = self.workspace.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreateWorkspace201Response from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "ok": obj.get("ok"), - "workspace": WorkspaceDetail.from_dict(obj["workspace"]) if obj.get("workspace") is not None else None - }) - return _obj - - diff --git a/hotdata/models/delete_sandbox_response.py b/hotdata/models/delete_sandbox_response.py deleted file mode 100644 index 95d8f3a..0000000 --- a/hotdata/models/delete_sandbox_response.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class DeleteSandboxResponse(BaseModel): - """ - DeleteSandboxResponse - """ # noqa: E501 - ok: StrictBool - deleted: StrictBool - __properties: ClassVar[List[str]] = ["ok", "deleted"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DeleteSandboxResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DeleteSandboxResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "ok": obj.get("ok"), - "deleted": obj.get("deleted") - }) - return _obj - - diff --git a/hotdata/models/get_workspace_context_response.py b/hotdata/models/get_workspace_context_response.py deleted file mode 100644 index cedb698..0000000 --- a/hotdata/models/get_workspace_context_response.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from hotdata.models.workspace_context_entry import WorkspaceContextEntry -from typing import Optional, Set -from typing_extensions import Self - -class GetWorkspaceContextResponse(BaseModel): - """ - Response body for GET `/v1/context/{name}`. - """ # noqa: E501 - context: WorkspaceContextEntry - __properties: ClassVar[List[str]] = ["context"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetWorkspaceContextResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of context - if self.context: - _dict['context'] = self.context.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetWorkspaceContextResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "context": WorkspaceContextEntry.from_dict(obj["context"]) if obj.get("context") is not None else None - }) - return _obj - - diff --git a/hotdata/models/list_sandboxes_response.py b/hotdata/models/list_sandboxes_response.py deleted file mode 100644 index 48fb643..0000000 --- a/hotdata/models/list_sandboxes_response.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool -from typing import Any, ClassVar, Dict, List -from hotdata.models.sandbox import Sandbox -from typing import Optional, Set -from typing_extensions import Self - -class ListSandboxesResponse(BaseModel): - """ - ListSandboxesResponse - """ # noqa: E501 - ok: StrictBool - sandboxes: List[Sandbox] - __properties: ClassVar[List[str]] = ["ok", "sandboxes"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ListSandboxesResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in sandboxes (list) - _items = [] - if self.sandboxes: - for _item_sandboxes in self.sandboxes: - if _item_sandboxes: - _items.append(_item_sandboxes.to_dict()) - _dict['sandboxes'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ListSandboxesResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "ok": obj.get("ok"), - "sandboxes": [Sandbox.from_dict(_item) for _item in obj["sandboxes"]] if obj.get("sandboxes") is not None else None - }) - return _obj - - diff --git a/hotdata/models/list_workspace_contexts_response.py b/hotdata/models/list_workspace_contexts_response.py deleted file mode 100644 index 1480954..0000000 --- a/hotdata/models/list_workspace_contexts_response.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from hotdata.models.workspace_context_entry import WorkspaceContextEntry -from typing import Optional, Set -from typing_extensions import Self - -class ListWorkspaceContextsResponse(BaseModel): - """ - Response body for GET `/v1/context`. - """ # noqa: E501 - contexts: List[WorkspaceContextEntry] - __properties: ClassVar[List[str]] = ["contexts"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ListWorkspaceContextsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in contexts (list) - _items = [] - if self.contexts: - for _item_contexts in self.contexts: - if _item_contexts: - _items.append(_item_contexts.to_dict()) - _dict['contexts'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ListWorkspaceContextsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "contexts": [WorkspaceContextEntry.from_dict(_item) for _item in obj["contexts"]] if obj.get("contexts") is not None else None - }) - return _obj - - diff --git a/hotdata/models/list_workspaces200_response.py b/hotdata/models/list_workspaces200_response.py deleted file mode 100644 index 7e94e56..0000000 --- a/hotdata/models/list_workspaces200_response.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - HotData API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool -from typing import Any, ClassVar, Dict, List -from hotdata.models.workspace_list_item import WorkspaceListItem -from typing import Optional, Set -from typing_extensions import Self - -class ListWorkspaces200Response(BaseModel): - """ - ListWorkspaces200Response - """ # noqa: E501 - ok: StrictBool - workspaces: List[WorkspaceListItem] - __properties: ClassVar[List[str]] = ["ok", "workspaces"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ListWorkspaces200Response from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in workspaces (list) - _items = [] - if self.workspaces: - for _item_workspaces in self.workspaces: - if _item_workspaces: - _items.append(_item_workspaces.to_dict()) - _dict['workspaces'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ListWorkspaces200Response from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "ok": obj.get("ok"), - "workspaces": [WorkspaceListItem.from_dict(_item) for _item in obj["workspaces"]] if obj.get("workspaces") is not None else None - }) - return _obj - - diff --git a/hotdata/models/sandbox.py b/hotdata/models/sandbox.py deleted file mode 100644 index 357e433..0000000 --- a/hotdata/models/sandbox.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class Sandbox(BaseModel): - """ - Sandbox - """ # noqa: E501 - public_id: StrictStr - name: StrictStr - markdown: StrictStr = Field(description="Freeform markdown notes attached to the sandbox.") - created_at: datetime - updated_at: datetime - __properties: ClassVar[List[str]] = ["public_id", "name", "markdown", "created_at", "updated_at"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Sandbox from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Sandbox from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "public_id": obj.get("public_id"), - "name": obj.get("name"), - "markdown": obj.get("markdown"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/hotdata/models/sandbox_response.py b/hotdata/models/sandbox_response.py deleted file mode 100644 index c0c27bd..0000000 --- a/hotdata/models/sandbox_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool -from typing import Any, ClassVar, Dict, List -from hotdata.models.sandbox import Sandbox -from typing import Optional, Set -from typing_extensions import Self - -class SandboxResponse(BaseModel): - """ - SandboxResponse - """ # noqa: E501 - ok: StrictBool - sandbox: Sandbox - __properties: ClassVar[List[str]] = ["ok", "sandbox"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SandboxResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of sandbox - if self.sandbox: - _dict['sandbox'] = self.sandbox.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SandboxResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "ok": obj.get("ok"), - "sandbox": Sandbox.from_dict(obj["sandbox"]) if obj.get("sandbox") is not None else None - }) - return _obj - - diff --git a/hotdata/models/update_sandbox_request.py b/hotdata/models/update_sandbox_request.py deleted file mode 100644 index 03471a8..0000000 --- a/hotdata/models/update_sandbox_request.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class UpdateSandboxRequest(BaseModel): - """ - Partial update — only the provided fields are changed. - """ # noqa: E501 - name: Optional[StrictStr] = None - markdown: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name", "markdown"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UpdateSandboxRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UpdateSandboxRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "markdown": obj.get("markdown") - }) - return _obj - - diff --git a/hotdata/models/upsert_workspace_context_request.py b/hotdata/models/upsert_workspace_context_request.py deleted file mode 100644 index 0ff0904..0000000 --- a/hotdata/models/upsert_workspace_context_request.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class UpsertWorkspaceContextRequest(BaseModel): - """ - Request body for POST `/v1/context`. - """ # noqa: E501 - content: StrictStr - name: StrictStr = Field(description="Upsert key in the catalog. Validated with dataset table-name rules (preserves case): ASCII letter or `_` first; then alphanumeric or `_` only; 1–128 chars; not a SQL reserved word.") - __properties: ClassVar[List[str]] = ["content", "name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UpsertWorkspaceContextRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UpsertWorkspaceContextRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "content": obj.get("content"), - "name": obj.get("name") - }) - return _obj - - diff --git a/hotdata/models/upsert_workspace_context_response.py b/hotdata/models/upsert_workspace_context_response.py deleted file mode 100644 index 16e3bad..0000000 --- a/hotdata/models/upsert_workspace_context_response.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from hotdata.models.workspace_context_entry import WorkspaceContextEntry -from typing import Optional, Set -from typing_extensions import Self - -class UpsertWorkspaceContextResponse(BaseModel): - """ - Response body for POST `/v1/context`. - """ # noqa: E501 - context: WorkspaceContextEntry - __properties: ClassVar[List[str]] = ["context"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UpsertWorkspaceContextResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of context - if self.context: - _dict['context'] = self.context.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UpsertWorkspaceContextResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "context": WorkspaceContextEntry.from_dict(obj["context"]) if obj.get("context") is not None else None - }) - return _obj - - diff --git a/hotdata/models/workspace_context_entry.py b/hotdata/models/workspace_context_entry.py deleted file mode 100644 index 3365dd2..0000000 --- a/hotdata/models/workspace_context_entry.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class WorkspaceContextEntry(BaseModel): - """ - One context entry returned by the API. - """ # noqa: E501 - content: StrictStr - name: StrictStr - updated_at: datetime - __properties: ClassVar[List[str]] = ["content", "name", "updated_at"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of WorkspaceContextEntry from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of WorkspaceContextEntry from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "content": obj.get("content"), - "name": obj.get("name"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/pyproject.toml b/pyproject.toml index 0a3020f..2d691f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "hotdata" -version = "0.3.2" +version = "0.3.3" description = "Hotdata API" authors = [ {name = "Hotdata",email = "developers@hotdata.dev"}, diff --git a/test/test_api_client_close.py b/test/test_api_client_close.py deleted file mode 100644 index 5dc3aaa..0000000 --- a/test/test_api_client_close.py +++ /dev/null @@ -1,28 +0,0 @@ -import unittest - -from hotdata import ApiClient - - -class TestApiClientClose(unittest.TestCase): - def test_close_does_not_raise(self) -> None: - client = ApiClient() - client.close() - - def test_context_manager_calls_close(self) -> None: - client = ApiClient() - called = False - original_close = client.rest_client.close - - def tracked_close() -> None: - nonlocal called - called = True - original_close() - - client.rest_client.close = tracked_close - with client: - pass - self.assertTrue(called) - - -if __name__ == "__main__": - unittest.main() diff --git a/test/test_api_error_detail.py b/test/test_api_error_detail.py index df214e6..6f2316e 100644 --- a/test/test_api_error_detail.py +++ b/test/test_api_error_detail.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_api_error_response.py b/test/test_api_error_response.py index 834cacc..30264fe 100644 --- a/test/test_api_error_response.py +++ b/test/test_api_error_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_boolean_profile_detail.py b/test/test_boolean_profile_detail.py index 8f241a8..eae8078 100644 --- a/test/test_boolean_profile_detail.py +++ b/test/test_boolean_profile_detail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. diff --git a/test/test_categorical_profile_detail.py b/test/test_categorical_profile_detail.py index d09747b..88d710d 100644 --- a/test/test_categorical_profile_detail.py +++ b/test/test_categorical_profile_detail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. diff --git a/test/test_category_value_info.py b/test/test_category_value_info.py index ba55964..201d0c5 100644 --- a/test/test_category_value_info.py +++ b/test/test_category_value_info.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,12 +37,11 @@ def make_instance(self, include_optional) -> CategoryValueInfo: if include_optional: return CategoryValueInfo( count = 0, - value = None + value = '' ) else: return CategoryValueInfo( count = 0, - value = None, ) """ diff --git a/test/test_column_definition.py b/test/test_column_definition.py deleted file mode 100644 index 9e67c24..0000000 --- a/test/test_column_definition.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - HotData API - - Powerful data platform API for datasets, queries, and analytics. - - 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 hotdata.models.column_definition import ColumnDefinition - -class TestColumnDefinition(unittest.TestCase): - """ColumnDefinition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ColumnDefinition: - """Test ColumnDefinition - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ColumnDefinition` - """ - model = ColumnDefinition() - if include_optional: - return ColumnDefinition( - geometry_type = hotdata.models.geometry_type.geometry_type(), - precision = hotdata.models.precision.precision(), - scale = hotdata.models.scale.scale(), - srid = hotdata.models.srid.srid(), - type = '' - ) - else: - return ColumnDefinition( - type = '', - ) - """ - - def testColumnDefinition(self): - """Test ColumnDefinition""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_column_info.py b/test/test_column_info.py index ece1d38..3a709ed 100644 --- a/test/test_column_info.py +++ b/test/test_column_info.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_column_profile_detail.py b/test/test_column_profile_detail.py index 6df2772..ed5b325 100644 --- a/test/test_column_profile_detail.py +++ b/test/test_column_profile_detail.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,12 +36,12 @@ def make_instance(self, include_optional) -> ColumnProfileDetail: model = ColumnProfileDetail() if include_optional: return ColumnProfileDetail( - type = 'categorical', values = [ hotdata.models.category_value_info.CategoryValueInfo( count = 0, - value = null, ) + value = '', ) ], + type = 'categorical', avg_length = 1.337, max_length = 0, min_length = 0, @@ -52,12 +53,12 @@ def make_instance(self, include_optional) -> ColumnProfileDetail: ) else: return ColumnProfileDetail( - type = 'categorical', values = [ hotdata.models.category_value_info.CategoryValueInfo( count = 0, - value = null, ) + value = '', ) ], + type = 'categorical', avg_length = 1.337, max_length = 0, min_length = 0, diff --git a/test/test_column_profile_detail_one_of.py b/test/test_column_profile_detail_one_of.py index 8cff9f0..40bfa27 100644 --- a/test/test_column_profile_detail_one_of.py +++ b/test/test_column_profile_detail_one_of.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,21 +36,21 @@ def make_instance(self, include_optional) -> ColumnProfileDetailOneOf: model = ColumnProfileDetailOneOf() if include_optional: return ColumnProfileDetailOneOf( - type = 'categorical', values = [ hotdata.models.category_value_info.CategoryValueInfo( count = 0, - value = null, ) - ] + value = '', ) + ], + type = 'categorical' ) else: return ColumnProfileDetailOneOf( - type = 'categorical', values = [ hotdata.models.category_value_info.CategoryValueInfo( count = 0, - value = null, ) + value = '', ) ], + type = 'categorical', ) """ diff --git a/test/test_column_profile_detail_one_of1.py b/test/test_column_profile_detail_one_of1.py index ff2c4c3..e95eb1a 100644 --- a/test/test_column_profile_detail_one_of1.py +++ b/test/test_column_profile_detail_one_of1.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_column_profile_detail_one_of2.py b/test/test_column_profile_detail_one_of2.py index af60ed7..83b0a0c 100644 --- a/test/test_column_profile_detail_one_of2.py +++ b/test/test_column_profile_detail_one_of2.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_column_profile_detail_one_of3.py b/test/test_column_profile_detail_one_of3.py index ef75b18..df8a144 100644 --- a/test/test_column_profile_detail_one_of3.py +++ b/test/test_column_profile_detail_one_of3.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_column_profile_detail_one_of4.py b/test/test_column_profile_detail_one_of4.py index 2986646..e30dcbc 100644 --- a/test/test_column_profile_detail_one_of4.py +++ b/test/test_column_profile_detail_one_of4.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_column_profile_info.py b/test/test_column_profile_info.py index 6de1cb6..269de3e 100644 --- a/test/test_column_profile_info.py +++ b/test/test_column_profile_info.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_column_type_spec.py b/test/test_column_type_spec.py index 1010277..ff1bbda 100644 --- a/test/test_column_type_spec.py +++ b/test/test_column_type_spec.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,10 +36,10 @@ def make_instance(self, include_optional) -> ColumnTypeSpec: model = ColumnTypeSpec() if include_optional: return ColumnTypeSpec( - geometry_type = None, - precision = None, - scale = None, - srid = None, + geometry_type = '', + precision = 0, + scale = 56, + srid = 56, type = '' ) else: diff --git a/test/test_connection_health_response.py b/test/test_connection_health_response.py index f5c61b5..a9612d9 100644 --- a/test/test_connection_health_response.py +++ b/test/test_connection_health_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,7 +37,7 @@ def make_instance(self, include_optional) -> ConnectionHealthResponse: if include_optional: return ConnectionHealthResponse( connection_id = '', - error = None, + error = '', healthy = True, latency_ms = 0 ) diff --git a/test/test_connection_info.py b/test/test_connection_info.py index fef94f6..385d148 100644 --- a/test/test_connection_info.py +++ b/test/test_connection_info.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_connection_refresh_result.py b/test/test_connection_refresh_result.py index dcc4da0..1a57dbb 100644 --- a/test/test_connection_refresh_result.py +++ b/test/test_connection_refresh_result.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -49,20 +50,14 @@ def make_instance(self, include_optional) -> ConnectionRefreshResult: warnings = [ hotdata.models.refresh_warning.RefreshWarning( message = '', - schema_name = null, - table_name = null, ) + schema_name = '', + table_name = '', ) ] ) else: return ConnectionRefreshResult( connection_id = '', duration_ms = 0, - errors = [ - hotdata.models.table_refresh_error.TableRefreshError( - error = '', - schema_name = '', - table_name = '', ) - ], tables_failed = 0, tables_refreshed = 0, total_rows = 0, diff --git a/test/test_connection_schema_error.py b/test/test_connection_schema_error.py index 4cc3829..a9daeec 100644 --- a/test/test_connection_schema_error.py +++ b/test/test_connection_schema_error.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_connection_type_detail.py b/test/test_connection_type_detail.py index 9ec6e0a..661ef2c 100644 --- a/test/test_connection_type_detail.py +++ b/test/test_connection_type_detail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. diff --git a/test/test_connection_type_summary.py b/test/test_connection_type_summary.py index 21cfae6..079c23a 100644 --- a/test/test_connection_type_summary.py +++ b/test/test_connection_type_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. diff --git a/test/test_connection_types_api.py b/test/test_connection_types_api.py index b9ae7af..a258dda 100644 --- a/test/test_connection_types_api.py +++ b/test/test_connection_types_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. diff --git a/test/test_connections_api.py b/test/test_connections_api.py index 150677c..9a5fc4f 100644 --- a/test/test_connections_api.py +++ b/test/test_connections_api.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,57 +27,85 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_check_connection_health_handler(self) -> None: - """Test case for check_connection_health_handler + def test_add_managed_schema(self) -> None: + """Test case for add_managed_schema + + Add managed schema + """ + pass + + def test_add_managed_table(self) -> None: + """Test case for add_managed_table + + Add managed table + """ + pass + + def test_check_connection_health(self) -> None: + """Test case for check_connection_health Check connection health """ pass - def test_create_connection_handler(self) -> None: - """Test case for create_connection_handler + def test_create_connection(self) -> None: + """Test case for create_connection Create connection """ pass - def test_delete_connection_handler(self) -> None: - """Test case for delete_connection_handler + def test_delete_connection(self) -> None: + """Test case for delete_connection Delete connection """ pass - def test_get_connection_handler(self) -> None: - """Test case for get_connection_handler + def test_delete_managed_table(self) -> None: + """Test case for delete_managed_table + + Delete managed table + """ + pass + + def test_get_connection(self) -> None: + """Test case for get_connection Get connection """ pass - def test_get_table_profile_handler(self) -> None: - """Test case for get_table_profile_handler + def test_get_table_profile(self) -> None: + """Test case for get_table_profile Get table profile """ pass - def test_list_connections_handler(self) -> None: - """Test case for list_connections_handler + def test_list_connections(self) -> None: + """Test case for list_connections List connections """ pass - def test_purge_connection_cache_handler(self) -> None: - """Test case for purge_connection_cache_handler + def test_load_managed_table(self) -> None: + """Test case for load_managed_table + + Load managed table from upload + """ + pass + + def test_purge_connection_cache(self) -> None: + """Test case for purge_connection_cache Purge connection cache """ pass - def test_purge_table_cache_handler(self) -> None: - """Test case for purge_table_cache_handler + def test_purge_table_cache(self) -> None: + """Test case for purge_table_cache Purge table cache """ diff --git a/test/test_create_connection_request.py b/test/test_create_connection_request.py index 0eff115..f7198d9 100644 --- a/test/test_create_connection_request.py +++ b/test/test_create_connection_request.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,15 +36,21 @@ def make_instance(self, include_optional) -> CreateConnectionRequest: model = CreateConnectionRequest() if include_optional: return CreateConnectionRequest( - config = None, + config = { + 'key' : null + }, name = '', - secret_id = None, - secret_name = None, - source_type = '' + secret_id = '', + secret_name = '', + skip_discovery = True, + source_type = '', + storage_backend = '' ) else: return CreateConnectionRequest( - config = None, + config = { + 'key' : null + }, name = '', source_type = '', ) diff --git a/test/test_create_connection_response.py b/test/test_create_connection_response.py index 289c7f6..7f170ed 100644 --- a/test/test_create_connection_response.py +++ b/test/test_create_connection_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,7 +36,7 @@ def make_instance(self, include_optional) -> CreateConnectionResponse: model = CreateConnectionResponse() if include_optional: return CreateConnectionResponse( - discovery_error = None, + discovery_error = '', discovery_status = 'success', id = '', name = '', diff --git a/test/test_create_database_request.py b/test/test_create_database_request.py index ba6e27f..cdd16ea 100644 --- a/test/test_create_database_request.py +++ b/test/test_create_database_request.py @@ -36,7 +36,9 @@ def make_instance(self, include_optional) -> CreateDatabaseRequest: model = CreateDatabaseRequest() if include_optional: return CreateDatabaseRequest( - description = '', + default_catalog = '', + expires_at = '', + name = '', schemas = [ hotdata.models.database_default_schema_decl.DatabaseDefaultSchemaDecl( name = '', @@ -44,7 +46,8 @@ def make_instance(self, include_optional) -> CreateDatabaseRequest: hotdata.models.database_default_table_decl.DatabaseDefaultTableDecl( name = '', ) ], ) - ] + ], + storage_backend = '' ) else: return CreateDatabaseRequest( diff --git a/test/test_create_database_response.py b/test/test_create_database_response.py index f8c42c7..4168f04 100644 --- a/test/test_create_database_response.py +++ b/test/test_create_database_response.py @@ -36,12 +36,15 @@ def make_instance(self, include_optional) -> CreateDatabaseResponse: model = CreateDatabaseResponse() if include_optional: return CreateDatabaseResponse( + default_catalog = '', default_connection_id = '', - description = '', - id = '' + expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + name = '' ) else: return CreateDatabaseResponse( + default_catalog = '', default_connection_id = '', id = '', ) diff --git a/test/test_create_dataset_request.py b/test/test_create_dataset_request.py index e7a0346..0687d88 100644 --- a/test/test_create_dataset_request.py +++ b/test/test_create_dataset_request.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,7 +38,8 @@ def make_instance(self, include_optional) -> CreateDatasetRequest: return CreateDatasetRequest( label = '', source = None, - table_name = None + storage_backend = '', + table_name = '' ) else: return CreateDatasetRequest( diff --git a/test/test_create_dataset_response.py b/test/test_create_dataset_response.py index e050fe2..4e08fb3 100644 --- a/test/test_create_dataset_response.py +++ b/test/test_create_dataset_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,6 +39,7 @@ def make_instance(self, include_optional) -> CreateDatasetResponse: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), id = '', label = '', + schema_name = '', status = '', table_name = '' ) @@ -46,6 +48,7 @@ def make_instance(self, include_optional) -> CreateDatasetResponse: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), id = '', label = '', + schema_name = '', status = '', table_name = '', ) diff --git a/test/test_create_sandbox_request.py b/test/test_create_sandbox_request.py deleted file mode 100644 index 96988e7..0000000 --- a/test/test_create_sandbox_request.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from hotdata.models.create_sandbox_request import CreateSandboxRequest - -class TestCreateSandboxRequest(unittest.TestCase): - """CreateSandboxRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateSandboxRequest: - """Test CreateSandboxRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateSandboxRequest` - """ - model = CreateSandboxRequest() - if include_optional: - return CreateSandboxRequest( - name = '', - markdown = '' - ) - else: - return CreateSandboxRequest( - ) - """ - - def testCreateSandboxRequest(self): - """Test CreateSandboxRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_saved_query_request.py b/test/test_create_saved_query_request.py index d926ff9..89d9880 100644 --- a/test/test_create_saved_query_request.py +++ b/test/test_create_saved_query_request.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,7 +36,7 @@ def make_instance(self, include_optional) -> CreateSavedQueryRequest: model = CreateSavedQueryRequest() if include_optional: return CreateSavedQueryRequest( - description = None, + description = '', name = '', sql = '', tags = [ diff --git a/test/test_create_secret_request.py b/test/test_create_secret_request.py index b616a5a..17e01c4 100644 --- a/test/test_create_secret_request.py +++ b/test/test_create_secret_request.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_secret_response.py b/test/test_create_secret_response.py index 553bc44..9f90c60 100644 --- a/test/test_create_secret_response.py +++ b/test/test_create_secret_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_workspace201_response.py b/test/test_create_workspace201_response.py deleted file mode 100644 index a804a97..0000000 --- a/test/test_create_workspace201_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - HotData API - - Powerful data platform API for datasets, queries, and analytics. - - 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 hotdata.models.create_workspace201_response import CreateWorkspace201Response - -class TestCreateWorkspace201Response(unittest.TestCase): - """CreateWorkspace201Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateWorkspace201Response: - """Test CreateWorkspace201Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateWorkspace201Response` - """ - model = CreateWorkspace201Response() - if include_optional: - return CreateWorkspace201Response( - ok = True, - workspace = hotdata.models.workspace_detail.WorkspaceDetail( - public_id = 'ws_abc123', - name = 'production-analytics', - provision_status = 'pending', - namespace = 'workspace-ws_abc123', ) - ) - else: - return CreateWorkspace201Response( - ok = True, - workspace = hotdata.models.workspace_detail.WorkspaceDetail( - public_id = 'ws_abc123', - name = 'production-analytics', - provision_status = 'pending', - namespace = 'workspace-ws_abc123', ), - ) - """ - - def testCreateWorkspace201Response(self): - """Test CreateWorkspace201Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_workspace_request.py b/test/test_create_workspace_request.py index 93cbc6c..c532d9f 100644 --- a/test/test_create_workspace_request.py +++ b/test/test_create_workspace_request.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_workspace_response.py b/test/test_create_workspace_response.py index 9c10ae7..876b917 100644 --- a/test/test_create_workspace_response.py +++ b/test/test_create_workspace_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. @@ -38,19 +38,17 @@ def make_instance(self, include_optional) -> CreateWorkspaceResponse: return CreateWorkspaceResponse( ok = True, workspace = hotdata.models.workspace_detail.WorkspaceDetail( - public_id = 'ws_abc123', + public_id = 'workm4lz2mp899l2i7h9lk9u84azg3', name = 'production-analytics', - provision_status = 'pending', - namespace = 'workspace-ws_abc123', ) + provision_status = 'pending', ) ) else: return CreateWorkspaceResponse( ok = True, workspace = hotdata.models.workspace_detail.WorkspaceDetail( - public_id = 'ws_abc123', + public_id = 'workm4lz2mp899l2i7h9lk9u84azg3', name = 'production-analytics', - provision_status = 'pending', - namespace = 'workspace-ws_abc123', ), + provision_status = 'pending', ), ) """ diff --git a/test/test_database_detail_response.py b/test/test_database_detail_response.py index a503538..98ea26e 100644 --- a/test/test_database_detail_response.py +++ b/test/test_database_detail_response.py @@ -41,9 +41,11 @@ def make_instance(self, include_optional) -> DatabaseDetailResponse: alias = '', connection_id = '', ) ], + default_catalog = '', default_connection_id = '', - description = '', - id = '' + expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + name = '' ) else: return DatabaseDetailResponse( @@ -52,6 +54,7 @@ def make_instance(self, include_optional) -> DatabaseDetailResponse: alias = '', connection_id = '', ) ], + default_catalog = '', default_connection_id = '', id = '', ) diff --git a/test/test_database_summary.py b/test/test_database_summary.py index 8e5eaea..f232183 100644 --- a/test/test_database_summary.py +++ b/test/test_database_summary.py @@ -36,11 +36,14 @@ def make_instance(self, include_optional) -> DatabaseSummary: model = DatabaseSummary() if include_optional: return DatabaseSummary( - description = '', - id = '' + default_catalog = '', + expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + name = '' ) else: return DatabaseSummary( + default_catalog = '', id = '', ) """ diff --git a/test/test_databases_api.py b/test/test_databases_api.py index 6a2c55e..920b905 100644 --- a/test/test_databases_api.py +++ b/test/test_databases_api.py @@ -27,6 +27,20 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_add_database_schema(self) -> None: + """Test case for add_database_schema + + Add schema to database default catalog + """ + pass + + def test_add_database_table(self) -> None: + """Test case for add_database_table + + Add table to database default catalog + """ + pass + def test_attach_database_catalog(self) -> None: """Test case for attach_database_catalog diff --git a/test/test_dataset_source.py b/test/test_dataset_source.py index 4173af4..d00966f 100644 --- a/test/test_dataset_source.py +++ b/test/test_dataset_source.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,13 +37,20 @@ def make_instance(self, include_optional) -> DatasetSource: if include_optional: return DatasetSource( columns = { - 'key' : null + 'key' : '' }, - format = hotdata.models.format.format(), + format = '', upload_id = '', + type = 'upload', + saved_query_id = '', + version = 56, + description = '', + name = '', + sql = '', + url = '', inline = hotdata.models.inline_data.InlineData( columns = { - 'key' : null + 'key' : '' }, content = '', format = '', ) @@ -50,9 +58,13 @@ def make_instance(self, include_optional) -> DatasetSource: else: return DatasetSource( upload_id = '', + type = 'upload', + saved_query_id = '', + sql = '', + url = '', inline = hotdata.models.inline_data.InlineData( columns = { - 'key' : null + 'key' : '' }, content = '', format = '', ), diff --git a/test/test_dataset_source_one_of.py b/test/test_dataset_source_one_of.py index 2b71068..0f9e2bc 100644 --- a/test/test_dataset_source_one_of.py +++ b/test/test_dataset_source_one_of.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,14 +37,16 @@ def make_instance(self, include_optional) -> DatasetSourceOneOf: if include_optional: return DatasetSourceOneOf( columns = { - 'key' : null + 'key' : '' }, - format = None, - upload_id = '' + format = '', + upload_id = '', + type = 'upload' ) else: return DatasetSourceOneOf( upload_id = '', + type = 'upload', ) """ diff --git a/test/test_dataset_source_one_of1.py b/test/test_dataset_source_one_of1.py index 97e4c8a..ac6de69 100644 --- a/test/test_dataset_source_one_of1.py +++ b/test/test_dataset_source_one_of1.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,21 +36,14 @@ def make_instance(self, include_optional) -> DatasetSourceOneOf1: model = DatasetSourceOneOf1() if include_optional: return DatasetSourceOneOf1( - inline = hotdata.models.inline_data.InlineData( - columns = { - 'key' : null - }, - content = '', - format = '', ) + saved_query_id = '', + version = 56, + type = 'saved_query' ) else: return DatasetSourceOneOf1( - inline = hotdata.models.inline_data.InlineData( - columns = { - 'key' : null - }, - content = '', - format = '', ), + saved_query_id = '', + type = 'saved_query', ) """ diff --git a/test/test_dataset_summary.py b/test/test_dataset_summary.py index 06a0807..36c71df 100644 --- a/test/test_dataset_summary.py +++ b/test/test_dataset_summary.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,6 +39,9 @@ def make_instance(self, include_optional) -> DatasetSummary: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), id = '', label = '', + latest_version = 56, + pinned_version = 56, + schema_name = '', table_name = '', updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') ) @@ -46,6 +50,8 @@ def make_instance(self, include_optional) -> DatasetSummary: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), id = '', label = '', + latest_version = 56, + schema_name = '', table_name = '', updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) diff --git a/test/test_datasets_api.py b/test/test_datasets_api.py index bad209c..be9dffe 100644 --- a/test/test_datasets_api.py +++ b/test/test_datasets_api.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -47,6 +48,13 @@ def test_get_dataset(self) -> None: """ pass + def test_list_dataset_versions(self) -> None: + """Test case for list_dataset_versions + + List dataset versions + """ + pass + def test_list_datasets(self) -> None: """Test case for list_datasets diff --git a/test/test_delete_sandbox_response.py b/test/test_delete_sandbox_response.py deleted file mode 100644 index 6ae784e..0000000 --- a/test/test_delete_sandbox_response.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from hotdata.models.delete_sandbox_response import DeleteSandboxResponse - -class TestDeleteSandboxResponse(unittest.TestCase): - """DeleteSandboxResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeleteSandboxResponse: - """Test DeleteSandboxResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DeleteSandboxResponse` - """ - model = DeleteSandboxResponse() - if include_optional: - return DeleteSandboxResponse( - ok = True, - deleted = True - ) - else: - return DeleteSandboxResponse( - ok = True, - deleted = True, - ) - """ - - def testDeleteSandboxResponse(self): - """Test DeleteSandboxResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_discovery_status.py b/test/test_discovery_status.py index ff423b9..69f483a 100644 --- a/test/test_discovery_status.py +++ b/test/test_discovery_status.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_error.py b/test/test_error.py index 280525f..f82c776 100644 --- a/test/test_error.py +++ b/test/test_error.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_execute_saved_query_request.py b/test/test_execute_saved_query_request.py index 7f6361f..1372e34 100644 --- a/test/test_execute_saved_query_request.py +++ b/test/test_execute_saved_query_request.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,7 +36,7 @@ def make_instance(self, include_optional) -> ExecuteSavedQueryRequest: model = ExecuteSavedQueryRequest() if include_optional: return ExecuteSavedQueryRequest( - version = None + version = 56 ) else: return ExecuteSavedQueryRequest( diff --git a/test/test_get_connection_response.py b/test/test_get_connection_response.py index 284a857..e880327 100644 --- a/test/test_get_connection_response.py +++ b/test/test_get_connection_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_dataset_response.py b/test/test_get_dataset_response.py index d8b9348..0a07b1b 100644 --- a/test/test_get_dataset_response.py +++ b/test/test_get_dataset_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -44,6 +45,8 @@ def make_instance(self, include_optional) -> GetDatasetResponse: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), id = '', label = '', + latest_version = 56, + pinned_version = 56, schema_name = '', source_type = '', table_name = '', @@ -60,6 +63,7 @@ def make_instance(self, include_optional) -> GetDatasetResponse: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), id = '', label = '', + latest_version = 56, schema_name = '', source_type = '', table_name = '', diff --git a/test/test_get_result_response.py b/test/test_get_result_response.py index 7b3a884..fb35b1c 100644 --- a/test/test_get_result_response.py +++ b/test/test_get_result_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,12 +39,12 @@ def make_instance(self, include_optional) -> GetResultResponse: columns = [ '' ], - error_message = None, + error_message = '', nullable = [ True ], result_id = '', - row_count = None, + row_count = 0, rows = [ [ null diff --git a/test/test_get_secret_response.py b/test/test_get_secret_response.py index 2ef9923..978e650 100644 --- a/test/test_get_secret_response.py +++ b/test/test_get_secret_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_workspace_context_response.py b/test/test_get_workspace_context_response.py deleted file mode 100644 index 4060208..0000000 --- a/test/test_get_workspace_context_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from hotdata.models.get_workspace_context_response import GetWorkspaceContextResponse - -class TestGetWorkspaceContextResponse(unittest.TestCase): - """GetWorkspaceContextResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetWorkspaceContextResponse: - """Test GetWorkspaceContextResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetWorkspaceContextResponse` - """ - model = GetWorkspaceContextResponse() - if include_optional: - return GetWorkspaceContextResponse( - context = hotdata.models.workspace_context_entry.WorkspaceContextEntry( - content = '', - name = '', - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ) - else: - return GetWorkspaceContextResponse( - context = hotdata.models.workspace_context_entry.WorkspaceContextEntry( - content = '', - name = '', - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - ) - """ - - def testGetWorkspaceContextResponse(self): - """Test GetWorkspaceContextResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_indexes_api.py b/test/test_indexes_api.py index 5f848c4..b4d502b 100644 --- a/test/test_indexes_api.py +++ b/test/test_indexes_api.py @@ -27,6 +27,13 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_create_dataset_index(self) -> None: + """Test case for create_dataset_index + + Create an index on a dataset + """ + pass + def test_create_index(self) -> None: """Test case for create_index @@ -34,6 +41,13 @@ def test_create_index(self) -> None: """ pass + def test_delete_dataset_index(self) -> None: + """Test case for delete_dataset_index + + Delete a dataset index + """ + pass + def test_delete_index(self) -> None: """Test case for delete_index @@ -41,6 +55,13 @@ def test_delete_index(self) -> None: """ pass + def test_list_dataset_indexes(self) -> None: + """Test case for list_dataset_indexes + + List indexes on a dataset + """ + pass + def test_list_indexes(self) -> None: """Test case for list_indexes @@ -48,6 +69,13 @@ def test_list_indexes(self) -> None: """ pass + def test_list_indexes_collection(self) -> None: + """Test case for list_indexes_collection + + List indexes across tables in a database + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/test/test_information_schema_api.py b/test/test_information_schema_api.py index 23aac2a..b23d67d 100644 --- a/test/test_information_schema_api.py +++ b/test/test_information_schema_api.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,8 +27,8 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_information_schema_handler(self) -> None: - """Test case for information_schema_handler + def test_information_schema(self) -> None: + """Test case for information_schema List tables """ diff --git a/test/test_information_schema_response.py b/test/test_information_schema_response.py index 819e8ad..809e30b 100644 --- a/test/test_information_schema_response.py +++ b/test/test_information_schema_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,7 +39,7 @@ def make_instance(self, include_optional) -> InformationSchemaResponse: count = 0, has_more = True, limit = 0, - next_cursor = None, + next_cursor = '', tables = [ hotdata.models.table_info.TableInfo( columns = [ @@ -48,7 +49,7 @@ def make_instance(self, include_optional) -> InformationSchemaResponse: nullable = True, ) ], connection = '', - last_sync = null, + last_sync = '', schema = '', synced = True, table = '', ) @@ -68,7 +69,7 @@ def make_instance(self, include_optional) -> InformationSchemaResponse: nullable = True, ) ], connection = '', - last_sync = null, + last_sync = '', schema = '', synced = True, table = '', ) diff --git a/test/test_inline_data.py b/test/test_inline_data.py index 42ede34..5ee0b3a 100644 --- a/test/test_inline_data.py +++ b/test/test_inline_data.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,7 +37,7 @@ def make_instance(self, include_optional) -> InlineData: if include_optional: return InlineData( columns = { - 'key' : null + 'key' : '' }, content = '', format = '' diff --git a/test/test_inline_dataset_source.py b/test/test_inline_dataset_source.py index 3b8fcd2..14caf54 100644 --- a/test/test_inline_dataset_source.py +++ b/test/test_inline_dataset_source.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. diff --git a/test/test_job_result.py b/test/test_job_result.py index ab452d3..2afb627 100644 --- a/test/test_job_result.py +++ b/test/test_job_result.py @@ -56,14 +56,16 @@ def make_instance(self, include_optional) -> JobResult: tables_failed = 0, tables_refreshed = 0, total_rows = 0, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + status = 'ready', + version = 56, columns = [ '' ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), index_name = '', index_type = '', metric = '', - status = 'ready', updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') ) else: @@ -76,13 +78,15 @@ def make_instance(self, include_optional) -> JobResult: tables_failed = 0, tables_refreshed = 0, total_rows = 0, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + status = 'ready', + version = 56, columns = [ '' ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), index_name = '', index_type = '', - status = 'ready', updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) """ diff --git a/test/test_list_connection_types_response.py b/test/test_list_connection_types_response.py index 5203345..f23f893 100644 --- a/test/test_list_connection_types_response.py +++ b/test/test_list_connection_types_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. diff --git a/test/test_list_connections_response.py b/test/test_list_connections_response.py index 85f132d..f403d7c 100644 --- a/test/test_list_connections_response.py +++ b/test/test_list_connections_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_databases_response.py b/test/test_list_databases_response.py index b7ff80e..e71d0aa 100644 --- a/test/test_list_databases_response.py +++ b/test/test_list_databases_response.py @@ -38,16 +38,20 @@ def make_instance(self, include_optional) -> ListDatabasesResponse: return ListDatabasesResponse( databases = [ hotdata.models.database_summary.DatabaseSummary( - description = '', - id = '', ) + default_catalog = '', + expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + name = '', ) ] ) else: return ListDatabasesResponse( databases = [ hotdata.models.database_summary.DatabaseSummary( - description = '', - id = '', ) + default_catalog = '', + expires_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + name = '', ) ], ) """ diff --git a/test/test_list_datasets_response.py b/test/test_list_datasets_response.py index 20446cc..e5395f5 100644 --- a/test/test_list_datasets_response.py +++ b/test/test_list_datasets_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -41,6 +42,9 @@ def make_instance(self, include_optional) -> ListDatasetsResponse: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), id = '', label = '', + latest_version = 56, + pinned_version = 56, + schema_name = '', table_name = '', updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) ], @@ -56,6 +60,9 @@ def make_instance(self, include_optional) -> ListDatasetsResponse: created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), id = '', label = '', + latest_version = 56, + pinned_version = 56, + schema_name = '', table_name = '', updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) ], diff --git a/test/test_list_query_runs_response.py b/test/test_list_query_runs_response.py index 0cfa9c6..ee78d90 100644 --- a/test/test_list_query_runs_response.py +++ b/test/test_list_query_runs_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,24 +39,26 @@ def make_instance(self, include_optional) -> ListQueryRunsResponse: count = 0, has_more = True, limit = 0, - next_cursor = None, + next_cursor = '', query_runs = [ hotdata.models.query_run_info.QueryRunInfo( - completed_at = null, + completed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - error_message = null, - execution_time_ms = null, + error_message = '', + execution_time_ms = 56, id = '', - result_id = null, - row_count = null, - saved_query_id = null, - saved_query_version = null, + result_id = '', + row_count = 56, + saved_query_id = '', + saved_query_version = 56, + server_processing_ms = 56, snapshot_id = '', sql_hash = '', sql_text = '', status = '', - trace_id = null, - warning_message = null, ) + trace_id = '', + user_public_id = '', + warning_message = '', ) ] ) else: @@ -65,21 +68,23 @@ def make_instance(self, include_optional) -> ListQueryRunsResponse: limit = 0, query_runs = [ hotdata.models.query_run_info.QueryRunInfo( - completed_at = null, + completed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - error_message = null, - execution_time_ms = null, + error_message = '', + execution_time_ms = 56, id = '', - result_id = null, - row_count = null, - saved_query_id = null, - saved_query_version = null, + result_id = '', + row_count = 56, + saved_query_id = '', + saved_query_version = 56, + server_processing_ms = 56, snapshot_id = '', sql_hash = '', sql_text = '', status = '', - trace_id = null, - warning_message = null, ) + trace_id = '', + user_public_id = '', + warning_message = '', ) ], ) """ diff --git a/test/test_list_results_response.py b/test/test_list_results_response.py index 4111e2a..716b1d5 100644 --- a/test/test_list_results_response.py +++ b/test/test_list_results_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -42,7 +43,7 @@ def make_instance(self, include_optional) -> ListResultsResponse: results = [ hotdata.models.result_info.ResultInfo( created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - error_message = null, + error_message = '', id = '', status = '', ) ] @@ -56,7 +57,7 @@ def make_instance(self, include_optional) -> ListResultsResponse: results = [ hotdata.models.result_info.ResultInfo( created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - error_message = null, + error_message = '', id = '', status = '', ) ], diff --git a/test/test_list_sandboxes_response.py b/test/test_list_sandboxes_response.py deleted file mode 100644 index 01e05c3..0000000 --- a/test/test_list_sandboxes_response.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from hotdata.models.list_sandboxes_response import ListSandboxesResponse - -class TestListSandboxesResponse(unittest.TestCase): - """ListSandboxesResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ListSandboxesResponse: - """Test ListSandboxesResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ListSandboxesResponse` - """ - model = ListSandboxesResponse() - if include_optional: - return ListSandboxesResponse( - ok = True, - sandboxes = [ - hotdata.models.sandbox.Sandbox( - public_id = 'sb_abc123', - name = '', - markdown = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ] - ) - else: - return ListSandboxesResponse( - ok = True, - sandboxes = [ - hotdata.models.sandbox.Sandbox( - public_id = 'sb_abc123', - name = '', - markdown = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - ) - """ - - def testListSandboxesResponse(self): - """Test ListSandboxesResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_list_saved_queries_response.py b/test/test_list_saved_queries_response.py index a1000ac..25b83ce 100644 --- a/test/test_list_saved_queries_response.py +++ b/test/test_list_saved_queries_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_saved_query_versions_response.py b/test/test_list_saved_query_versions_response.py index 3e4c629..ae6a0cb 100644 --- a/test/test_list_saved_query_versions_response.py +++ b/test/test_list_saved_query_versions_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -42,18 +43,18 @@ def make_instance(self, include_optional) -> ListSavedQueryVersionsResponse: saved_query_id = '', versions = [ hotdata.models.saved_query_version_info.SavedQueryVersionInfo( - category = null, + category = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - has_aggregation = null, - has_group_by = null, - has_join = null, - has_limit = null, - has_order_by = null, - has_predicate = null, - num_tables = null, + has_aggregation = True, + has_group_by = True, + has_join = True, + has_limit = True, + has_order_by = True, + has_predicate = True, + num_tables = 56, sql = '', sql_hash = '', - table_size = null, + table_size = '', version = 56, ) ] ) @@ -66,18 +67,18 @@ def make_instance(self, include_optional) -> ListSavedQueryVersionsResponse: saved_query_id = '', versions = [ hotdata.models.saved_query_version_info.SavedQueryVersionInfo( - category = null, + category = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - has_aggregation = null, - has_group_by = null, - has_join = null, - has_limit = null, - has_order_by = null, - has_predicate = null, - num_tables = null, + has_aggregation = True, + has_group_by = True, + has_join = True, + has_limit = True, + has_order_by = True, + has_predicate = True, + num_tables = 56, sql = '', sql_hash = '', - table_size = null, + table_size = '', version = 56, ) ], ) diff --git a/test/test_list_secrets_response.py b/test/test_list_secrets_response.py index 6e5e5bd..0397036 100644 --- a/test/test_list_secrets_response.py +++ b/test/test_list_secrets_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_uploads_response.py b/test/test_list_uploads_response.py index 6217748..c16dcef 100644 --- a/test/test_list_uploads_response.py +++ b/test/test_list_uploads_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,7 +38,7 @@ def make_instance(self, include_optional) -> ListUploadsResponse: return ListUploadsResponse( uploads = [ hotdata.models.upload_info.UploadInfo( - content_type = null, + content_type = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), id = '', size_bytes = 56, @@ -48,7 +49,7 @@ def make_instance(self, include_optional) -> ListUploadsResponse: return ListUploadsResponse( uploads = [ hotdata.models.upload_info.UploadInfo( - content_type = null, + content_type = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), id = '', size_bytes = 56, diff --git a/test/test_list_workspace_contexts_response.py b/test/test_list_workspace_contexts_response.py deleted file mode 100644 index 975cdcf..0000000 --- a/test/test_list_workspace_contexts_response.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from hotdata.models.list_workspace_contexts_response import ListWorkspaceContextsResponse - -class TestListWorkspaceContextsResponse(unittest.TestCase): - """ListWorkspaceContextsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ListWorkspaceContextsResponse: - """Test ListWorkspaceContextsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ListWorkspaceContextsResponse` - """ - model = ListWorkspaceContextsResponse() - if include_optional: - return ListWorkspaceContextsResponse( - contexts = [ - hotdata.models.workspace_context_entry.WorkspaceContextEntry( - content = '', - name = '', - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ] - ) - else: - return ListWorkspaceContextsResponse( - contexts = [ - hotdata.models.workspace_context_entry.WorkspaceContextEntry( - content = '', - name = '', - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - ) - """ - - def testListWorkspaceContextsResponse(self): - """Test ListWorkspaceContextsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_list_workspaces200_response.py b/test/test_list_workspaces200_response.py deleted file mode 100644 index 43a3c33..0000000 --- a/test/test_list_workspaces200_response.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - HotData API - - Powerful data platform API for datasets, queries, and analytics. - - 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 hotdata.models.list_workspaces200_response import ListWorkspaces200Response - -class TestListWorkspaces200Response(unittest.TestCase): - """ListWorkspaces200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ListWorkspaces200Response: - """Test ListWorkspaces200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ListWorkspaces200Response` - """ - model = ListWorkspaces200Response() - if include_optional: - return ListWorkspaces200Response( - ok = True, - workspaces = [ - hotdata.models.workspace_list_item.WorkspaceListItem( - public_id = 'ws_abc123', - name = 'production-analytics', - active = True, - favorite = True, - provision_status = 'provisioned', - namespace = 'workspace-ws_abc123', ) - ] - ) - else: - return ListWorkspaces200Response( - ok = True, - workspaces = [ - hotdata.models.workspace_list_item.WorkspaceListItem( - public_id = 'ws_abc123', - name = 'production-analytics', - active = True, - favorite = True, - provision_status = 'provisioned', - namespace = 'workspace-ws_abc123', ) - ], - ) - """ - - def testListWorkspaces200Response(self): - """Test ListWorkspaces200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_list_workspaces_response.py b/test/test_list_workspaces_response.py index 0865902..d2e9fb9 100644 --- a/test/test_list_workspaces_response.py +++ b/test/test_list_workspaces_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. @@ -39,12 +39,11 @@ def make_instance(self, include_optional) -> ListWorkspacesResponse: ok = True, workspaces = [ hotdata.models.workspace_list_item.WorkspaceListItem( - public_id = 'ws_abc123', + public_id = 'workm4lz2mp899l2i7h9lk9u84azg3', name = 'production-analytics', active = True, favorite = True, - provision_status = 'provisioned', - namespace = 'workspace-ws_abc123', ) + provision_status = 'provisioned', ) ] ) else: @@ -52,12 +51,11 @@ def make_instance(self, include_optional) -> ListWorkspacesResponse: ok = True, workspaces = [ hotdata.models.workspace_list_item.WorkspaceListItem( - public_id = 'ws_abc123', + public_id = 'workm4lz2mp899l2i7h9lk9u84azg3', name = 'production-analytics', active = True, favorite = True, - provision_status = 'provisioned', - namespace = 'workspace-ws_abc123', ) + provision_status = 'provisioned', ) ], ) """ diff --git a/test/test_numeric_profile_detail.py b/test/test_numeric_profile_detail.py index e336278..07a7302 100644 --- a/test/test_numeric_profile_detail.py +++ b/test/test_numeric_profile_detail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. diff --git a/test/test_query_api.py b/test/test_query_api.py index 6bacca0..900db7b 100644 --- a/test/test_query_api.py +++ b/test/test_query_api.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,8 +27,8 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_query_handler(self) -> None: - """Test case for query_handler + def test_query(self) -> None: + """Test case for query Execute SQL query """ diff --git a/test/test_query_request.py b/test/test_query_request.py index 623b520..5c6de46 100644 --- a/test/test_query_request.py +++ b/test/test_query_request.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,6 +36,11 @@ def make_instance(self, include_optional) -> QueryRequest: model = QueryRequest() if include_optional: return QueryRequest( + var_async = True, + async_after_ms = 1000, + database_id = '', + default_catalog = '', + default_schema = '', sql = '' ) else: diff --git a/test/test_query_response.py b/test/test_query_response.py index faa044f..b45a175 100644 --- a/test/test_query_response.py +++ b/test/test_query_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -43,14 +44,14 @@ def make_instance(self, include_optional) -> QueryResponse: True ], query_run_id = '', - result_id = None, + result_id = '', row_count = 0, rows = [ [ null ] ], - warning = None + warning = '' ) else: return QueryResponse( diff --git a/test/test_query_run_info.py b/test/test_query_run_info.py index 569ad7c..da3a982 100644 --- a/test/test_query_run_info.py +++ b/test/test_query_run_info.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,21 +36,23 @@ def make_instance(self, include_optional) -> QueryRunInfo: model = QueryRunInfo() if include_optional: return QueryRunInfo( - completed_at = None, + completed_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - error_message = None, - execution_time_ms = None, + error_message = '', + execution_time_ms = 56, id = '', - result_id = None, - row_count = None, - saved_query_id = None, - saved_query_version = None, + result_id = '', + row_count = 56, + saved_query_id = '', + saved_query_version = 56, + server_processing_ms = 56, snapshot_id = '', sql_hash = '', sql_text = '', status = '', - trace_id = None, - warning_message = None + trace_id = '', + user_public_id = '', + warning_message = '' ) else: return QueryRunInfo( diff --git a/test/test_query_runs_api.py b/test/test_query_runs_api.py index 4fbf1e4..04437e8 100644 --- a/test/test_query_runs_api.py +++ b/test/test_query_runs_api.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,8 +27,15 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_list_query_runs_handler(self) -> None: - """Test case for list_query_runs_handler + def test_get_query_run(self) -> None: + """Test case for get_query_run + + Get query run + """ + pass + + def test_list_query_runs(self) -> None: + """Test case for list_query_runs List query runs """ diff --git a/test/test_refresh_api.py b/test/test_refresh_api.py index 2c9e929..836e22d 100644 --- a/test/test_refresh_api.py +++ b/test/test_refresh_api.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,8 +27,8 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_refresh_handler(self) -> None: - """Test case for refresh_handler + def test_refresh(self) -> None: + """Test case for refresh Refresh connection data """ diff --git a/test/test_refresh_request.py b/test/test_refresh_request.py index 26ca8bf..77ec25c 100644 --- a/test/test_refresh_request.py +++ b/test/test_refresh_request.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,11 +36,13 @@ def make_instance(self, include_optional) -> RefreshRequest: model = RefreshRequest() if include_optional: return RefreshRequest( - connection_id = None, + var_async = True, + connection_id = '', data = True, + dataset_id = '', include_uncached = True, - schema_name = None, - table_name = None + schema_name = '', + table_name = '' ) else: return RefreshRequest( diff --git a/test/test_refresh_response.py b/test/test_refresh_response.py index 178754b..780baa2 100644 --- a/test/test_refresh_response.py +++ b/test/test_refresh_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -54,23 +55,22 @@ def make_instance(self, include_optional) -> RefreshResponse: warnings = [ hotdata.models.refresh_warning.RefreshWarning( message = '', - schema_name = null, - table_name = null, ) + schema_name = '', + table_name = '', ) ], tables_failed = 0, tables_refreshed = 0, - total_rows = 0 + total_rows = 0, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + status = 'pending', + version = 56, + status_url = '' ) else: return RefreshResponse( connections_failed = 0, connections_refreshed = 0, - errors = [ - hotdata.models.table_refresh_error.TableRefreshError( - error = '', - schema_name = '', - table_name = '', ) - ], tables_added = 0, tables_discovered = 0, tables_modified = 0, @@ -82,6 +82,11 @@ def make_instance(self, include_optional) -> RefreshResponse: tables_failed = 0, tables_refreshed = 0, total_rows = 0, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + status = 'pending', + version = 56, + status_url = '', ) """ diff --git a/test/test_refresh_warning.py b/test/test_refresh_warning.py index 21f0372..62b7bd5 100644 --- a/test/test_refresh_warning.py +++ b/test/test_refresh_warning.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,8 +37,8 @@ def make_instance(self, include_optional) -> RefreshWarning: if include_optional: return RefreshWarning( message = '', - schema_name = None, - table_name = None + schema_name = '', + table_name = '' ) else: return RefreshWarning( diff --git a/test/test_result_info.py b/test/test_result_info.py index 553da45..385729a 100644 --- a/test/test_result_info.py +++ b/test/test_result_info.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,7 +37,7 @@ def make_instance(self, include_optional) -> ResultInfo: if include_optional: return ResultInfo( created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - error_message = None, + error_message = '', id = '', status = '' ) diff --git a/test/test_results_api.py b/test/test_results_api.py index f89d17a..4b6901a 100644 --- a/test/test_results_api.py +++ b/test/test_results_api.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,15 +27,15 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_get_result_handler(self) -> None: - """Test case for get_result_handler + def test_get_result(self) -> None: + """Test case for get_result Get result """ pass - def test_list_results_handler(self) -> None: - """Test case for list_results_handler + def test_list_results(self) -> None: + """Test case for list_results List results """ diff --git a/test/test_sandbox.py b/test/test_sandbox.py deleted file mode 100644 index 42477c8..0000000 --- a/test/test_sandbox.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from hotdata.models.sandbox import Sandbox - -class TestSandbox(unittest.TestCase): - """Sandbox unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Sandbox: - """Test Sandbox - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Sandbox` - """ - model = Sandbox() - if include_optional: - return Sandbox( - public_id = 'sb_abc123', - name = '', - markdown = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return Sandbox( - public_id = 'sb_abc123', - name = '', - markdown = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ) - """ - - def testSandbox(self): - """Test Sandbox""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_sandbox_response.py b/test/test_sandbox_response.py deleted file mode 100644 index 2b7001b..0000000 --- a/test/test_sandbox_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from hotdata.models.sandbox_response import SandboxResponse - -class TestSandboxResponse(unittest.TestCase): - """SandboxResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SandboxResponse: - """Test SandboxResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SandboxResponse` - """ - model = SandboxResponse() - if include_optional: - return SandboxResponse( - ok = True, - sandbox = hotdata.models.sandbox.Sandbox( - public_id = 'sb_abc123', - name = '', - markdown = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ) - else: - return SandboxResponse( - ok = True, - sandbox = hotdata.models.sandbox.Sandbox( - public_id = 'sb_abc123', - name = '', - markdown = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - ) - """ - - def testSandboxResponse(self): - """Test SandboxResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_sandboxes_api.py b/test/test_sandboxes_api.py deleted file mode 100644 index 18e540a..0000000 --- a/test/test_sandboxes_api.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from hotdata.api.sandboxes_api import SandboxesApi - - -class TestSandboxesApi(unittest.TestCase): - """SandboxesApi unit test stubs""" - - def setUp(self) -> None: - self.api = SandboxesApi() - - def tearDown(self) -> None: - pass - - def test_create_sandbox(self) -> None: - """Test case for create_sandbox - - Create a sandbox - """ - pass - - def test_delete_sandbox(self) -> None: - """Test case for delete_sandbox - - Delete sandbox - """ - pass - - def test_get_sandbox(self) -> None: - """Test case for get_sandbox - - Get sandbox - """ - pass - - def test_list_sandboxes(self) -> None: - """Test case for list_sandboxes - - List sandboxes - """ - pass - - def test_update_sandbox(self) -> None: - """Test case for update_sandbox - - Update sandbox - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_saved_queries_api.py b/test/test_saved_queries_api.py index a806f4a..1f4cc33 100644 --- a/test/test_saved_queries_api.py +++ b/test/test_saved_queries_api.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_saved_query_detail.py b/test/test_saved_query_detail.py index 971d129..6d43b8d 100644 --- a/test/test_saved_query_detail.py +++ b/test/test_saved_query_detail.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,22 +36,22 @@ def make_instance(self, include_optional) -> SavedQueryDetail: model = SavedQueryDetail() if include_optional: return SavedQueryDetail( - category = None, + category = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), description = '', - has_aggregation = None, - has_group_by = None, - has_join = None, - has_limit = None, - has_order_by = None, - has_predicate = None, + has_aggregation = True, + has_group_by = True, + has_join = True, + has_limit = True, + has_order_by = True, + has_predicate = True, id = '', latest_version = 56, name = '', - num_tables = None, + num_tables = 56, sql = '', sql_hash = '', - table_size = None, + table_size = '', tags = [ '' ], diff --git a/test/test_saved_query_summary.py b/test/test_saved_query_summary.py index faeb7ad..78d89ab 100644 --- a/test/test_saved_query_summary.py +++ b/test/test_saved_query_summary.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_saved_query_version_info.py b/test/test_saved_query_version_info.py index 59e4501..09bf093 100644 --- a/test/test_saved_query_version_info.py +++ b/test/test_saved_query_version_info.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,18 +36,18 @@ def make_instance(self, include_optional) -> SavedQueryVersionInfo: model = SavedQueryVersionInfo() if include_optional: return SavedQueryVersionInfo( - category = None, + category = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - has_aggregation = None, - has_group_by = None, - has_join = None, - has_limit = None, - has_order_by = None, - has_predicate = None, - num_tables = None, + has_aggregation = True, + has_group_by = True, + has_join = True, + has_limit = True, + has_order_by = True, + has_predicate = True, + num_tables = 56, sql = '', sql_hash = '', - table_size = None, + table_size = '', version = 56 ) else: diff --git a/test/test_schema_refresh_result.py b/test/test_schema_refresh_result.py index 81f2a1b..1a5f708 100644 --- a/test/test_schema_refresh_result.py +++ b/test/test_schema_refresh_result.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_secret_metadata_response.py b/test/test_secret_metadata_response.py index e8fa28c..18a40ce 100644 --- a/test/test_secret_metadata_response.py +++ b/test/test_secret_metadata_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_secrets_api.py b/test/test_secrets_api.py index c689617..9ec60df 100644 --- a/test/test_secrets_api.py +++ b/test/test_secrets_api.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,36 +27,36 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_create_secret_handler(self) -> None: - """Test case for create_secret_handler + def test_create_secret(self) -> None: + """Test case for create_secret Create secret """ pass - def test_delete_secret_handler(self) -> None: - """Test case for delete_secret_handler + def test_delete_secret(self) -> None: + """Test case for delete_secret Delete secret """ pass - def test_get_secret_handler(self) -> None: - """Test case for get_secret_handler + def test_get_secret(self) -> None: + """Test case for get_secret Get secret """ pass - def test_list_secrets_handler(self) -> None: - """Test case for list_secrets_handler + def test_list_secrets(self) -> None: + """Test case for list_secrets List secrets """ pass - def test_update_secret_handler(self) -> None: - """Test case for update_secret_handler + def test_update_secret(self) -> None: + """Test case for update_secret Update secret """ diff --git a/test/test_table_info.py b/test/test_table_info.py index 0afa5e6..5a23bc1 100644 --- a/test/test_table_info.py +++ b/test/test_table_info.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -42,7 +43,7 @@ def make_instance(self, include_optional) -> TableInfo: nullable = True, ) ], connection = '', - last_sync = None, + last_sync = '', var_schema = '', synced = True, table = '' diff --git a/test/test_table_profile_response.py b/test/test_table_profile_response.py index 5805cc2..1d07e6a 100644 --- a/test/test_table_profile_response.py +++ b/test/test_table_profile_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -47,7 +48,7 @@ def make_instance(self, include_optional) -> TableProfileResponse: connection = '', row_count = 0, var_schema = '', - synced_at = None, + synced_at = '', table = '' ) else: diff --git a/test/test_table_refresh_error.py b/test/test_table_refresh_error.py index 6bbb2c2..a0afd4b 100644 --- a/test/test_table_refresh_error.py +++ b/test/test_table_refresh_error.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_table_refresh_result.py b/test/test_table_refresh_result.py index 2a543a6..7172bf1 100644 --- a/test/test_table_refresh_result.py +++ b/test/test_table_refresh_result.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -43,8 +44,8 @@ def make_instance(self, include_optional) -> TableRefreshResult: warnings = [ hotdata.models.refresh_warning.RefreshWarning( message = '', - schema_name = null, - table_name = null, ) + schema_name = '', + table_name = '', ) ] ) else: diff --git a/test/test_temporal_profile_detail.py b/test/test_temporal_profile_detail.py index 16dba1b..5a5bb5e 100644 --- a/test/test_temporal_profile_detail.py +++ b/test/test_temporal_profile_detail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. diff --git a/test/test_text_profile_detail.py b/test/test_text_profile_detail.py index 10e8487..8f4a185 100644 --- a/test/test_text_profile_detail.py +++ b/test/test_text_profile_detail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. diff --git a/test/test_update_dataset_request.py b/test/test_update_dataset_request.py index cd03b8d..79f1c2c 100644 --- a/test/test_update_dataset_request.py +++ b/test/test_update_dataset_request.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,8 +36,9 @@ def make_instance(self, include_optional) -> UpdateDatasetRequest: model = UpdateDatasetRequest() if include_optional: return UpdateDatasetRequest( - label = None, - table_name = None + label = '', + pinned_version = 56, + table_name = '' ) else: return UpdateDatasetRequest( diff --git a/test/test_update_dataset_response.py b/test/test_update_dataset_response.py index 5841c4f..6c579a6 100644 --- a/test/test_update_dataset_response.py +++ b/test/test_update_dataset_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,6 +38,8 @@ def make_instance(self, include_optional) -> UpdateDatasetResponse: return UpdateDatasetResponse( id = '', label = '', + latest_version = 56, + pinned_version = 56, table_name = '', updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') ) @@ -44,6 +47,7 @@ def make_instance(self, include_optional) -> UpdateDatasetResponse: return UpdateDatasetResponse( id = '', label = '', + latest_version = 56, table_name = '', updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) diff --git a/test/test_update_sandbox_request.py b/test/test_update_sandbox_request.py deleted file mode 100644 index d5ff62d..0000000 --- a/test/test_update_sandbox_request.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from hotdata.models.update_sandbox_request import UpdateSandboxRequest - -class TestUpdateSandboxRequest(unittest.TestCase): - """UpdateSandboxRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UpdateSandboxRequest: - """Test UpdateSandboxRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UpdateSandboxRequest` - """ - model = UpdateSandboxRequest() - if include_optional: - return UpdateSandboxRequest( - name = '', - markdown = '' - ) - else: - return UpdateSandboxRequest( - ) - """ - - def testUpdateSandboxRequest(self): - """Test UpdateSandboxRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_update_saved_query_request.py b/test/test_update_saved_query_request.py index 9642e60..50adc38 100644 --- a/test/test_update_saved_query_request.py +++ b/test/test_update_saved_query_request.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,11 +36,11 @@ def make_instance(self, include_optional) -> UpdateSavedQueryRequest: model = UpdateSavedQueryRequest() if include_optional: return UpdateSavedQueryRequest( - category_override = None, - description = None, - name = None, - sql = None, - table_size_override = None, + category_override = '', + description = '', + name = '', + sql = '', + table_size_override = '', tags = [ '' ] diff --git a/test/test_update_secret_request.py b/test/test_update_secret_request.py index 273d373..c9a5646 100644 --- a/test/test_update_secret_request.py +++ b/test/test_update_secret_request.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_secret_response.py b/test/test_update_secret_response.py index 26aef19..ee914ee 100644 --- a/test/test_update_secret_response.py +++ b/test/test_update_secret_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upload_dataset_source.py b/test/test_upload_dataset_source.py index 2386c20..a61b5a3 100644 --- a/test/test_upload_dataset_source.py +++ b/test/test_upload_dataset_source.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. diff --git a/test/test_upload_info.py b/test/test_upload_info.py index 68ff762..7acba5a 100644 --- a/test/test_upload_info.py +++ b/test/test_upload_info.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,7 +36,7 @@ def make_instance(self, include_optional) -> UploadInfo: model = UploadInfo() if include_optional: return UploadInfo( - content_type = None, + content_type = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), id = '', size_bytes = 56, diff --git a/test/test_upload_response.py b/test/test_upload_response.py index 6f63efc..b977507 100644 --- a/test/test_upload_response.py +++ b/test/test_upload_response.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,7 +36,7 @@ def make_instance(self, include_optional) -> UploadResponse: model = UploadResponse() if include_optional: return UploadResponse( - content_type = None, + content_type = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), id = '', size_bytes = 56, diff --git a/test/test_uploads_api.py b/test/test_uploads_api.py index cc22fbc..82a23a6 100644 --- a/test/test_uploads_api.py +++ b/test/test_uploads_api.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_upsert_workspace_context_request.py b/test/test_upsert_workspace_context_request.py deleted file mode 100644 index 071b558..0000000 --- a/test/test_upsert_workspace_context_request.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from hotdata.models.upsert_workspace_context_request import UpsertWorkspaceContextRequest - -class TestUpsertWorkspaceContextRequest(unittest.TestCase): - """UpsertWorkspaceContextRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UpsertWorkspaceContextRequest: - """Test UpsertWorkspaceContextRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UpsertWorkspaceContextRequest` - """ - model = UpsertWorkspaceContextRequest() - if include_optional: - return UpsertWorkspaceContextRequest( - content = '', - name = '' - ) - else: - return UpsertWorkspaceContextRequest( - content = '', - name = '', - ) - """ - - def testUpsertWorkspaceContextRequest(self): - """Test UpsertWorkspaceContextRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_upsert_workspace_context_response.py b/test/test_upsert_workspace_context_response.py deleted file mode 100644 index dd18887..0000000 --- a/test/test_upsert_workspace_context_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from hotdata.models.upsert_workspace_context_response import UpsertWorkspaceContextResponse - -class TestUpsertWorkspaceContextResponse(unittest.TestCase): - """UpsertWorkspaceContextResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UpsertWorkspaceContextResponse: - """Test UpsertWorkspaceContextResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UpsertWorkspaceContextResponse` - """ - model = UpsertWorkspaceContextResponse() - if include_optional: - return UpsertWorkspaceContextResponse( - context = hotdata.models.workspace_context_entry.WorkspaceContextEntry( - content = '', - name = '', - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ) - else: - return UpsertWorkspaceContextResponse( - context = hotdata.models.workspace_context_entry.WorkspaceContextEntry( - content = '', - name = '', - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - ) - """ - - def testUpsertWorkspaceContextResponse(self): - """Test UpsertWorkspaceContextResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_workspace_context_api.py b/test/test_workspace_context_api.py deleted file mode 100644 index 9aa3f47..0000000 --- a/test/test_workspace_context_api.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from hotdata.api.workspace_context_api import WorkspaceContextApi - - -class TestWorkspaceContextApi(unittest.TestCase): - """WorkspaceContextApi unit test stubs""" - - def setUp(self) -> None: - self.api = WorkspaceContextApi() - - def tearDown(self) -> None: - pass - - def test_get_workspace_context(self) -> None: - """Test case for get_workspace_context - - Get one workspace context - """ - pass - - def test_list_workspace_contexts(self) -> None: - """Test case for list_workspace_contexts - - List workspace contexts - """ - pass - - def test_upsert_workspace_context(self) -> None: - """Test case for upsert_workspace_context - - Create or update workspace context - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_workspace_context_entry.py b/test/test_workspace_context_entry.py deleted file mode 100644 index 1506a6b..0000000 --- a/test/test_workspace_context_entry.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Hotdata API - - Powerful data platform API for datasets, queries, and analytics. - - The version of the OpenAPI document: 1.0.0 - Contact: developers@hotdata.dev - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from hotdata.models.workspace_context_entry import WorkspaceContextEntry - -class TestWorkspaceContextEntry(unittest.TestCase): - """WorkspaceContextEntry unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> WorkspaceContextEntry: - """Test WorkspaceContextEntry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `WorkspaceContextEntry` - """ - model = WorkspaceContextEntry() - if include_optional: - return WorkspaceContextEntry( - content = '', - name = '', - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return WorkspaceContextEntry( - content = '', - name = '', - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ) - """ - - def testWorkspaceContextEntry(self): - """Test WorkspaceContextEntry""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_workspace_detail.py b/test/test_workspace_detail.py index 638938d..76db467 100644 --- a/test/test_workspace_detail.py +++ b/test/test_workspace_detail.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,17 +36,15 @@ def make_instance(self, include_optional) -> WorkspaceDetail: model = WorkspaceDetail() if include_optional: return WorkspaceDetail( - public_id = 'ws_abc123', + public_id = 'workm4lz2mp899l2i7h9lk9u84azg3', name = 'production-analytics', - provision_status = 'pending', - namespace = 'workspace-ws_abc123' + provision_status = 'pending' ) else: return WorkspaceDetail( - public_id = 'ws_abc123', + public_id = 'workm4lz2mp899l2i7h9lk9u84azg3', name = 'production-analytics', provision_status = 'pending', - namespace = 'workspace-ws_abc123', ) """ diff --git a/test/test_workspace_list_item.py b/test/test_workspace_list_item.py index 5d776c3..34b34a2 100644 --- a/test/test_workspace_list_item.py +++ b/test/test_workspace_list_item.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,21 +36,19 @@ def make_instance(self, include_optional) -> WorkspaceListItem: model = WorkspaceListItem() if include_optional: return WorkspaceListItem( - public_id = 'ws_abc123', + public_id = 'workm4lz2mp899l2i7h9lk9u84azg3', name = 'production-analytics', active = True, favorite = True, - provision_status = 'provisioned', - namespace = 'workspace-ws_abc123' + provision_status = 'provisioned' ) else: return WorkspaceListItem( - public_id = 'ws_abc123', + public_id = 'workm4lz2mp899l2i7h9lk9u84azg3', name = 'production-analytics', active = True, favorite = True, provision_status = 'provisioned', - namespace = 'workspace-ws_abc123', ) """ diff --git a/test/test_workspaces_api.py b/test/test_workspaces_api.py index 1bf095a..ae1c4a0 100644 --- a/test/test_workspaces_api.py +++ b/test/test_workspaces_api.py @@ -1,11 +1,12 @@ # coding: utf-8 """ - HotData API + Hotdata API Powerful data platform API for datasets, queries, and analytics. The version of the OpenAPI document: 1.0.0 + Contact: developers@hotdata.dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -33,6 +34,13 @@ def test_create_workspace(self) -> None: """ pass + def test_delete_workspace(self) -> None: + """Test case for delete_workspace + + Delete a workspace + """ + pass + def test_list_workspaces(self) -> None: """Test case for list_workspaces From 3e9e651da3d6e377631193e6fc0baf8c7d37245a Mon Sep 17 00:00:00 2001 From: Zac Farrell Date: Wed, 10 Jun 2026 07:50:36 -0700 Subject: [PATCH 2/4] test: restore hand-written ApiClient.close test dropped by regen --- test/test_api_client_close.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test/test_api_client_close.py diff --git a/test/test_api_client_close.py b/test/test_api_client_close.py new file mode 100644 index 0000000..5dc3aaa --- /dev/null +++ b/test/test_api_client_close.py @@ -0,0 +1,28 @@ +import unittest + +from hotdata import ApiClient + + +class TestApiClientClose(unittest.TestCase): + def test_close_does_not_raise(self) -> None: + client = ApiClient() + client.close() + + def test_context_manager_calls_close(self) -> None: + client = ApiClient() + called = False + original_close = client.rest_client.close + + def tracked_close() -> None: + nonlocal called + called = True + original_close() + + client.rest_client.close = tracked_close + with client: + pass + self.assertTrue(called) + + +if __name__ == "__main__": + unittest.main() From e6b09ae087f9e2cf4571939bebb48ef6b350a53a Mon Sep 17 00:00:00 2001 From: Zac Farrell Date: Wed, 10 Jun 2026 07:50:36 -0700 Subject: [PATCH 3/4] chore: mark test_api_client_close as generator-ignored --- .openapi-generator-ignore | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore index 858e82f..9518392 100644 --- a/.openapi-generator-ignore +++ b/.openapi-generator-ignore @@ -4,6 +4,12 @@ README.md setup.py hotdata/_auth.py +# Hand-written test for the patched ApiClient.close()/context-manager behavior +# (re-applied by scripts/patch_api_client_close.py). It lives in the generated +# test/ dir but isn't generator output; regenerate.yml's clean step preserves +# every path listed here so the regen doesn't delete it. +test/test_api_client_close.py + # Hand-maintained packaging files. The generator's versions would clobber # project-specific config (mypy/pylint settings, the `arrow` extra, security # version floors). regenerate.yml's drift check guards against the generated From 0017db9dbd3475786ceed3384d19bffef4fc1352 Mon Sep 17 00:00:00 2001 From: Zac Farrell Date: Wed, 10 Jun 2026 07:50:36 -0700 Subject: [PATCH 4/4] fix(ci): preserve generator-ignored files in regen clean step --- .github/workflows/regenerate.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/regenerate.yml b/.github/workflows/regenerate.yml index d4d45f5..4b6ac1d 100644 --- a/.github/workflows/regenerate.yml +++ b/.github/workflows/regenerate.yml @@ -51,8 +51,21 @@ jobs: # hand-written modules (hotdata/_auth.py, hotdata/arrow.py) live at the # package root and are untouched; the integration tests in tests/ (plural) # are distinct from the generated test/ (singular) unit tests. + # + # A few hand-written files DO live inside these subtrees (e.g. + # test/test_api_client_close.py). They're listed in .openapi-generator-ignore + # — the source of truth for "hand-maintained, don't touch" — so restore any + # ignored path under a cleaned subtree after the wipe. The generator already + # won't overwrite them; this makes the clean step honor the same list so a + # regen never deletes hand-maintained code. - name: Clean generated source - run: rm -rf hotdata/api hotdata/models docs test + run: | + rm -rf hotdata/api hotdata/models docs test + grep -vE '^[[:space:]]*(#|$)' .openapi-generator-ignore | while IFS= read -r path; do + case "$path" in + hotdata/api/*|hotdata/models/*|docs/*|test/*) git checkout -- "$path" ;; + esac + done # pyproject.toml is hand-maintained (see .openapi-generator-ignore), so the # generator no longer stamps the version. Bump the patch version directly,