Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.207.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Mar 13, 2024
1 parent 4d15283 commit 4a6993d
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 24 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] .
- [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] .
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
python:
version: 0.15.0
version: 0.15.1
additionalDependencies:
dependencies: {}
extraDependencies:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
31 changes: 18 additions & 13 deletions src/test/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
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

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
Expand All @@ -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()

Expand All @@ -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)

6 changes: 3 additions & 3 deletions src/test/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4a6993d

Please sign in to comment.