From 3cd1b528649a9844e58e4c2344356e672c65c140 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 24 Jan 2024 19:34:57 +0000 Subject: [PATCH 1/2] feat(api): OpenAPI spec update (#36) --- .../database_connections/database_connections.py | 12 ++---------- .../types/database_connection_create_params.py | 2 -- .../types/database_connection_update_params.py | 2 -- src/dataherald/types/db_connection_response.py | 2 -- tests/api_resources/test_database_connections.py | 4 ---- 5 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/dataherald/resources/database_connections/database_connections.py b/src/dataherald/resources/database_connections/database_connections.py index 3a9fb39..3e64301 100644 --- a/src/dataherald/resources/database_connections/database_connections.py +++ b/src/dataherald/resources/database_connections/database_connections.py @@ -56,7 +56,6 @@ def create( alias: str, connection_uri: str, bigquery_credential_file_content: Union[object, str] | NotGiven = NOT_GIVEN, - llm_api_key: str | NotGiven = NOT_GIVEN, metadata: object | NotGiven = NOT_GIVEN, ssh_settings: database_connection_create_params.SSHSettings | NotGiven = NOT_GIVEN, use_ssh: bool | NotGiven = NOT_GIVEN, @@ -86,7 +85,6 @@ def create( "alias": alias, "connection_uri": connection_uri, "bigquery_credential_file_content": bigquery_credential_file_content, - "llm_api_key": llm_api_key, "metadata": metadata, "ssh_settings": ssh_settings, "use_ssh": use_ssh, @@ -139,7 +137,6 @@ def update( alias: str, connection_uri: str, bigquery_credential_file_content: Union[object, str] | NotGiven = NOT_GIVEN, - llm_api_key: str | NotGiven = NOT_GIVEN, metadata: object | NotGiven = NOT_GIVEN, ssh_settings: database_connection_update_params.SSHSettings | NotGiven = NOT_GIVEN, use_ssh: bool | NotGiven = NOT_GIVEN, @@ -171,7 +168,6 @@ def update( "alias": alias, "connection_uri": connection_uri, "bigquery_credential_file_content": bigquery_credential_file_content, - "llm_api_key": llm_api_key, "metadata": metadata, "ssh_settings": ssh_settings, "use_ssh": use_ssh, @@ -194,7 +190,7 @@ def list( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> DatabaseConnectionListResponse: - """Api Get Db Connections""" + """Get Db Connections""" return self._get( "/api/database-connections", options=make_request_options( @@ -223,7 +219,6 @@ async def create( alias: str, connection_uri: str, bigquery_credential_file_content: Union[object, str] | NotGiven = NOT_GIVEN, - llm_api_key: str | NotGiven = NOT_GIVEN, metadata: object | NotGiven = NOT_GIVEN, ssh_settings: database_connection_create_params.SSHSettings | NotGiven = NOT_GIVEN, use_ssh: bool | NotGiven = NOT_GIVEN, @@ -253,7 +248,6 @@ async def create( "alias": alias, "connection_uri": connection_uri, "bigquery_credential_file_content": bigquery_credential_file_content, - "llm_api_key": llm_api_key, "metadata": metadata, "ssh_settings": ssh_settings, "use_ssh": use_ssh, @@ -306,7 +300,6 @@ async def update( alias: str, connection_uri: str, bigquery_credential_file_content: Union[object, str] | NotGiven = NOT_GIVEN, - llm_api_key: str | NotGiven = NOT_GIVEN, metadata: object | NotGiven = NOT_GIVEN, ssh_settings: database_connection_update_params.SSHSettings | NotGiven = NOT_GIVEN, use_ssh: bool | NotGiven = NOT_GIVEN, @@ -338,7 +331,6 @@ async def update( "alias": alias, "connection_uri": connection_uri, "bigquery_credential_file_content": bigquery_credential_file_content, - "llm_api_key": llm_api_key, "metadata": metadata, "ssh_settings": ssh_settings, "use_ssh": use_ssh, @@ -361,7 +353,7 @@ async def list( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> DatabaseConnectionListResponse: - """Api Get Db Connections""" + """Get Db Connections""" return await self._get( "/api/database-connections", options=make_request_options( diff --git a/src/dataherald/types/database_connection_create_params.py b/src/dataherald/types/database_connection_create_params.py index 1fa71aa..fbdf372 100644 --- a/src/dataherald/types/database_connection_create_params.py +++ b/src/dataherald/types/database_connection_create_params.py @@ -15,8 +15,6 @@ class DatabaseConnectionCreateParams(TypedDict, total=False): bigquery_credential_file_content: Union[object, str] - llm_api_key: str - metadata: object ssh_settings: SSHSettings diff --git a/src/dataherald/types/database_connection_update_params.py b/src/dataherald/types/database_connection_update_params.py index 2f51d0f..5ed096e 100644 --- a/src/dataherald/types/database_connection_update_params.py +++ b/src/dataherald/types/database_connection_update_params.py @@ -15,8 +15,6 @@ class DatabaseConnectionUpdateParams(TypedDict, total=False): bigquery_credential_file_content: Union[object, str] - llm_api_key: str - metadata: object ssh_settings: SSHSettings diff --git a/src/dataherald/types/db_connection_response.py b/src/dataherald/types/db_connection_response.py index c18f52b..da1589b 100644 --- a/src/dataherald/types/db_connection_response.py +++ b/src/dataherald/types/db_connection_response.py @@ -35,8 +35,6 @@ class DBConnectionResponse(BaseModel): created_at: Optional[datetime] = None - llm_api_key: Optional[str] = None - metadata: Optional[Metadata] = None path_to_credentials_file: Optional[str] = None diff --git a/tests/api_resources/test_database_connections.py b/tests/api_resources/test_database_connections.py index a11a6fb..cb71cb7 100644 --- a/tests/api_resources/test_database_connections.py +++ b/tests/api_resources/test_database_connections.py @@ -34,7 +34,6 @@ def test_method_create_with_all_params(self, client: Dataherald) -> None: alias="string", connection_uri="string", bigquery_credential_file_content={}, - llm_api_key="string", metadata={}, ssh_settings={ "host": "string", @@ -125,7 +124,6 @@ def test_method_update_with_all_params(self, client: Dataherald) -> None: alias="string", connection_uri="string", bigquery_credential_file_content={}, - llm_api_key="string", metadata={}, ssh_settings={ "host": "string", @@ -216,7 +214,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncDataherald alias="string", connection_uri="string", bigquery_credential_file_content={}, - llm_api_key="string", metadata={}, ssh_settings={ "host": "string", @@ -307,7 +304,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncDataherald alias="string", connection_uri="string", bigquery_credential_file_content={}, - llm_api_key="string", metadata={}, ssh_settings={ "host": "string", From c1b6a4a3feeaf240757d9fe7d255edb841d40b94 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 24 Jan 2024 19:35:09 +0000 Subject: [PATCH 2/2] release: 0.16.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/dataherald/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 8f3e0a4..b4e9013 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.15.0" + ".": "0.16.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 21f5612..244e8fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.16.0 (2024-01-24) + +Full Changelog: [v0.15.0...v0.16.0](https://github.com/Dataherald/dataherald-python/compare/v0.15.0...v0.16.0) + +### Features + +* **api:** OpenAPI spec update ([#36](https://github.com/Dataherald/dataherald-python/issues/36)) ([3cd1b52](https://github.com/Dataherald/dataherald-python/commit/3cd1b528649a9844e58e4c2344356e672c65c140)) + ## 0.15.0 (2024-01-24) Full Changelog: [v0.14.0...v0.15.0](https://github.com/Dataherald/dataherald-python/compare/v0.14.0...v0.15.0) diff --git a/pyproject.toml b/pyproject.toml index e80ac0d..896e58e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "dataherald" -version = "0.15.0" +version = "0.16.0" description = "The official Python library for the Dataherald API" readme = "README.md" license = "Apache-2.0" diff --git a/src/dataherald/_version.py b/src/dataherald/_version.py index 893cb09..c7dd448 100644 --- a/src/dataherald/_version.py +++ b/src/dataherald/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. __title__ = "dataherald" -__version__ = "0.15.0" # x-release-please-version +__version__ = "0.16.0" # x-release-please-version