diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0b90519..2f670af 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,17 +3,17 @@ id: 45d697d3-6c8d-4d6e-8825-3af8be149b31 management: docChecksum: 2516596125ef223fbbef6c434d22eaac docVersion: 1.0.0 - speakeasyVersion: 1.204.1 - generationVersion: 2.279.1 - releaseVersion: 0.15.0 - configChecksum: e98e35505f2d6906edfeade8cc7d4974 + speakeasyVersion: 1.207.1 + generationVersion: 2.280.6 + releaseVersion: 0.15.1 + configChecksum: 5cb958cc9bc723b73c983eede48b38e3 repoURL: https://github.com/speakeasy-sdks/test-repo-test2.git repoSubDirectory: . installationURL: https://github.com/speakeasy-sdks/test-repo-test2.git features: python: core: 4.5.1 - globalServerURLs: 2.82.1 + globalServerURLs: 2.82.2 responseFormat: 0.1.0 generatedFiles: - src/test/sdkconfiguration.py diff --git a/RELEASES.md b/RELEASES.md index 35a1568..2c924cf 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -326,4 +326,12 @@ Based on: - OpenAPI Doc 1.0.0 - Speakeasy CLI 1.204.1 (2.279.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v0.15.0] . \ No newline at end of file +- [python v0.15.0] . + +## 2024-03-13 01:14:40 +### Changes +Based on: +- OpenAPI Doc 1.0.0 +- Speakeasy CLI 1.207.1 (2.280.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.15.1] . \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 12d8f5f..c0fc955 100644 --- a/gen.yaml +++ b/gen.yaml @@ -10,7 +10,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false python: - version: 0.15.0 + version: 0.15.1 additionalDependencies: dependencies: {} extraDependencies: diff --git a/setup.py b/setup.py index d11b260..fffea34 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="test", - version="0.15.0", + version="0.15.1", author="my-test", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/src/test/sdk.py b/src/test/sdk.py index 76d383a..427483f 100644 --- a/src/test/sdk.py +++ b/src/test/sdk.py @@ -5,7 +5,7 @@ from .sdkconfiguration import SDKConfiguration from test import utils from test._hooks import SDKHooks -from typing import Dict +from typing import Dict, Optional class Test: pets: Pets @@ -13,14 +13,14 @@ class Test: sdk_configuration: SDKConfiguration def __init__(self, - server_idx: int = None, - server_url: str = None, - url_params: Dict[str, str] = None, - client: requests_http.Session = None, - retry_config: utils.RetryConfig = None + server_idx: Optional[int] = None, + server_url: Optional[str] = None, + url_params: Optional[Dict[str, str]] = None, + client: Optional[requests_http.Session] = None, + retry_config: Optional[utils.RetryConfig] = None ) -> None: """Instantiates the SDK configuring it with the provided parameters. - + :param server_idx: The index of the server to use for all operations :type server_idx: int :param server_url: The server URL to use for all operations @@ -34,12 +34,17 @@ def __init__(self, """ if client is None: client = requests_http.Session() - + if server_url is not None: if url_params is not None: server_url = utils.template_url(server_url, url_params) - self.sdk_configuration = SDKConfiguration(client, None, server_url, server_idx, retry_config=retry_config) + self.sdk_configuration = SDKConfiguration( + client, + server_url, + server_idx, + retry_config=retry_config + ) hooks = SDKHooks() @@ -49,10 +54,10 @@ def __init__(self, self.sdk_configuration.server_url = server_url # pylint: disable=protected-access - self.sdk_configuration._hooks=hooks - + self.sdk_configuration._hooks = hooks + self._init_sdks() - + + def _init_sdks(self): self.pets = Pets(self.sdk_configuration) - \ No newline at end of file diff --git a/src/test/sdkconfiguration.py b/src/test/sdkconfiguration.py index 7145dbb..1e8fe5a 100644 --- a/src/test/sdkconfiguration.py +++ b/src/test/sdkconfiguration.py @@ -21,9 +21,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '0.15.0' - gen_version: str = '2.279.1' - user_agent: str = 'speakeasy-sdk/python 0.15.0 2.279.1 1.0.0 test' + sdk_version: str = '0.15.1' + gen_version: str = '2.280.6' + user_agent: str = 'speakeasy-sdk/python 0.15.1 2.280.6 1.0.0 test' retry_config: RetryConfig = None _hooks: SDKHooks = None