Skip to content

Commit a3fa178

Browse files
authored
Merge pull request #192 from codatio/speakeasy-sdk-regen-1686700855
chore: speakeasy sdk regeneration - Generate Files SDK
2 parents fed9028 + 3039c77 commit a3fa178

File tree

8 files changed

+45
-19
lines changed

8 files changed

+45
-19
lines changed

files/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ venv/
22
src/*.egg-info/
33
__pycache__/
44
.pytest_cache/
5-
.python-version`
5+
.python-version`

files/RELEASES.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,4 +462,36 @@ Based on:
462462
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
463463
- Speakeasy CLI 1.47.1 (2.39.2) https://github.com/speakeasy-api/speakeasy
464464
### Releases
465-
- [PyPI v0.25.2] https://pypi.org/project/codat-files/0.25.2 - files
465+
- [PyPI v0.25.2] https://pypi.org/project/codat-files/0.25.2 - files
466+
467+
## 2023-06-14 00:00:52
468+
### Changes
469+
Based on:
470+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
471+
- Speakeasy CLI 1.47.2 (2.39.8) https://github.com/speakeasy-api/speakeasy
472+
### Releases
473+
- [PyPI v0.25.3] https://pypi.org/project/codat-files/0.25.3 - files
474+
475+
## 2023-06-15 00:01:02
476+
### Changes
477+
Based on:
478+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
479+
- Speakeasy CLI 1.47.4 (2.40.1) https://github.com/speakeasy-api/speakeasy
480+
### Releases
481+
- [PyPI v0.26.0] https://pypi.org/project/codat-files/0.26.0 - files
482+
483+
## 2023-06-16 00:00:42
484+
### Changes
485+
Based on:
486+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
487+
- Speakeasy CLI 1.48.0 (2.41.1) https://github.com/speakeasy-api/speakeasy
488+
### Releases
489+
- [PyPI v0.27.0] https://pypi.org/project/codat-files/0.27.0 - files
490+
491+
## 2023-06-16 11:03:54
492+
### Changes
493+
Based on:
494+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
495+
- Speakeasy CLI 1.48.0 (2.41.1) https://github.com/speakeasy-api/speakeasy
496+
### Releases
497+
- [PyPI v0.27.1] https://pypi.org/project/codat-files/0.27.1 - files

files/files.gen

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
src/codatfiles/sdkconfiguration.py
22
src/codatfiles/files.py
33
src/codatfiles/sdk.py
4-
.gitignore
54
pylintrc
65
setup.py
76
src/codatfiles/__init__.py

files/gen.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ configVersion: 1.0.0
22
management:
33
docChecksum: a840628ec16624727f01593d82c33746
44
docVersion: 2.1.0
5-
speakeasyVersion: 1.47.1
6-
generationVersion: 2.39.2
5+
speakeasyVersion: 1.48.0
6+
generationVersion: 2.41.1
77
generation:
88
sdkClassName: CodatFiles
99
singleTagPerOp: false
1010
telemetryEnabled: true
1111
python:
12-
version: 0.25.2
12+
version: 0.27.1
1313
author: Speakeasy
1414
description: Python Client SDK Generated by Speakeasy
1515
maxMethodParams: 0

files/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="codat-files",
13-
version="0.25.2",
13+
version="0.27.1",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

files/src/codatfiles/files.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ def download_files(self, request: operations.DownloadFilesRequest, retries: Opti
2929

3030
retry_config = retries
3131
if retry_config is None:
32-
retry_config = utils.RetryConfig('backoff', True)
33-
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
34-
32+
retry_config = utils.RetryConfig('backoff', utils.BackoffStrategy(500, 60000, 1.5, 3600000), True)
3533

3634
def do_request():
3735
return client.request('GET', url, params=query_params, headers=headers)
@@ -75,9 +73,7 @@ def list_files(self, request: operations.ListFilesRequest, retries: Optional[uti
7573

7674
retry_config = retries
7775
if retry_config is None:
78-
retry_config = utils.RetryConfig('backoff', True)
79-
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
80-
76+
retry_config = utils.RetryConfig('backoff', utils.BackoffStrategy(500, 60000, 1.5, 3600000), True)
8177

8278
def do_request():
8379
return client.request('GET', url, headers=headers)
@@ -125,9 +121,7 @@ def upload_files(self, request: operations.UploadFilesRequest, retries: Optional
125121

126122
retry_config = retries
127123
if retry_config is None:
128-
retry_config = utils.RetryConfig('backoff', True)
129-
retry_config.backoff = utils.BackoffStrategy(500, 60000, 1.5, 3600000)
130-
124+
retry_config = utils.RetryConfig('backoff', utils.BackoffStrategy(500, 60000, 1.5, 3600000), True)
131125

132126
def do_request():
133127
return client.request('POST', url, data=data, files=form, headers=headers)

files/src/codatfiles/sdkconfiguration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class SDKConfiguration:
1818
server_idx: int = 0
1919
language: str = 'python'
2020
openapi_doc_version: str = '2.1.0'
21-
sdk_version: str = '0.25.2'
22-
gen_version: str = '2.39.2'
21+
sdk_version: str = '0.27.1'
22+
gen_version: str = '2.41.1'
2323

2424
def get_server_details(self) -> tuple[str, dict[str, str]]:
2525
if self.server_url:

files/src/codatfiles/utils/retries.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ class RetryConfig:
2424
backoff: BackoffStrategy
2525
retry_connection_errors: bool
2626

27-
def __init__(self, strategy: str, retry_connection_errors: bool):
27+
def __init__(self, strategy: str, backoff: BackoffStrategy, retry_connection_errors: bool):
2828
self.strategy = strategy
29+
self.backoff = backoff
2930
self.retry_connection_errors = retry_connection_errors
3031

3132

0 commit comments

Comments
 (0)