Skip to content

Commit a673a53

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0, Speakeasy CLI 1.178.0
1 parent 65abbd9 commit a673a53

File tree

10 files changed

+34
-89
lines changed

10 files changed

+34
-89
lines changed

.speakeasy/gen.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ management:
44
docChecksum: 557634d4bb5964b949ae70f79f40d856
55
docVersion: 0.4.0
66
speakeasyVersion: internal
7-
generationVersion: 2.250.22
8-
releaseVersion: 5.2.0
9-
configChecksum: d1c2bec8a16d1c1fedb94c617e5344dc
7+
generationVersion: 2.253.0
8+
releaseVersion: 5.2.1
9+
configChecksum: c7cf88f22624c91877992d2516e05c24
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-python.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-python.git
@@ -19,7 +19,7 @@ features:
1919
globalSecurity: 2.83.2
2020
globalServerURLs: 2.82.1
2121
globals: 2.81.1
22-
inputOutputModels: 2.83.0
22+
inputOutputModels: 2.83.1
2323
retries: 2.82.1
2424
serverIDs: 2.81.1
2525
generatedFiles:

README.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,7 @@ s = speakeasy.Speakeasy(
2424
workspace_id='string',
2525
)
2626

27-
req = operations.GetApisRequest(
28-
metadata={
29-
'key': [
30-
'string',
31-
],
32-
},
33-
op=operations.QueryParamOp(
34-
and_=False,
35-
),
36-
)
27+
req = operations.GetApisRequest()
3728

3829
res = s.apis.get_apis(req)
3930

@@ -125,7 +116,7 @@ Handling errors in this SDK should largely match your expectations. All operati
125116
```python
126117
import dateutil.parser
127118
import speakeasy
128-
from speakeasy.models import operations, shared
119+
from speakeasy.models import errors, operations, shared
129120

130121
s = speakeasy.Speakeasy(
131122
security=shared.Security(
@@ -154,10 +145,10 @@ res = None
154145
try:
155146
res = s.events.post_workspace_events(req)
156147
except errors.Error as e:
157-
print(e) # handle exception
148+
# handle exception
158149
raise(e)
159150
except errors.SDKError as e:
160-
print(e) # handle exception
151+
# handle exception
161152
raise(e)
162153

163154
if res.status_code == 200:

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,4 +1206,14 @@ Based on:
12061206
### Generated
12071207
- [python v5.2.0] .
12081208
### Releases
1209-
- [PyPI v5.2.0] https://pypi.org/project/speakeasy-client-sdk-python/5.2.0 - .
1209+
- [PyPI v5.2.0] https://pypi.org/project/speakeasy-client-sdk-python/5.2.0 - .
1210+
1211+
## 2024-02-13 00:10:55
1212+
### Changes
1213+
Based on:
1214+
- OpenAPI Doc 0.4.0 https://docs.speakeasyapi.dev/openapi.yaml
1215+
- Speakeasy CLI 1.178.0 (2.253.0) https://github.com/speakeasy-api/speakeasy
1216+
### Generated
1217+
- [python v5.2.1] .
1218+
### Releases
1219+
- [PyPI v5.2.1] https://pypi.org/project/speakeasy-client-sdk-python/5.2.1 - .

USAGE.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,7 @@ s = speakeasy.Speakeasy(
1010
workspace_id='string',
1111
)
1212

13-
req = operations.GetApisRequest(
14-
metadata={
15-
'key': [
16-
'string',
17-
],
18-
},
19-
op=operations.QueryParamOp(
20-
and_=False,
21-
),
22-
)
13+
req = operations.GetApisRequest()
2314

2415
res = s.apis.get_apis(req)
2516

docs/sdks/apis/README.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,6 @@ s = speakeasy.Speakeasy(
170170

171171
req = operations.GetAllAPIVersionsRequest(
172172
api_id='string',
173-
metadata={
174-
'key': [
175-
'string',
176-
],
177-
},
178-
op=operations.Op(
179-
and_=False,
180-
),
181173
)
182174

183175
res = s.apis.get_all_api_versions(req)
@@ -221,16 +213,7 @@ s = speakeasy.Speakeasy(
221213
workspace_id='string',
222214
)
223215

224-
req = operations.GetApisRequest(
225-
metadata={
226-
'key': [
227-
'string',
228-
],
229-
},
230-
op=operations.QueryParamOp(
231-
and_=False,
232-
),
233-
)
216+
req = operations.GetApisRequest()
234217

235218
res = s.apis.get_apis(req)
236219

@@ -278,11 +261,6 @@ req = operations.UpsertAPIRequest(
278261
api_id='string',
279262
description='Synchronised 5th generation knowledge user',
280263
version_id='string',
281-
meta_data={
282-
'key': [
283-
'string',
284-
],
285-
},
286264
),
287265
api_id='string',
288266
)

docs/sdks/embeds/README.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,7 @@ s = speakeasy.Speakeasy(
2929
workspace_id='string',
3030
)
3131

32-
req = operations.GetEmbedAccessTokenRequest(
33-
filters=shared.Filters(
34-
filters=[
35-
shared.Filter(
36-
key='<key>',
37-
operator='string',
38-
value='string',
39-
),
40-
],
41-
limit=964408,
42-
offset=95617,
43-
operator='string',
44-
),
45-
)
32+
req = operations.GetEmbedAccessTokenRequest()
4633

4734
res = s.embeds.get_embed_access_token(req)
4835

docs/sdks/requests/README.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,7 @@ s = speakeasy.Speakeasy(
118118
workspace_id='string',
119119
)
120120

121-
req = operations.QueryEventLogRequest(
122-
filters=shared.Filters(
123-
filters=[
124-
shared.Filter(
125-
key='<key>',
126-
operator='string',
127-
value='string',
128-
),
129-
],
130-
limit=241978,
131-
offset=451388,
132-
operator='string',
133-
),
134-
)
121+
req = operations.QueryEventLogRequest()
135122

136123
res = s.requests.query_event_log(req)
137124

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ generation:
88
parameterOrderingFeb2024: false
99
requestResponseComponentNamesFeb2024: false
1010
python:
11-
version: 5.2.0
11+
version: 5.2.1
1212
author: Speakeasy
1313
clientServerStatusCodesAsErrors: true
1414
description: Speakeasy API Client SDK for Python

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="speakeasy-client-sdk-python",
13-
version="5.2.0",
13+
version="5.2.1",
1414
author="Speakeasy",
1515
description="Speakeasy API Client SDK for Python",
1616
long_description=long_description,

src/speakeasy/sdkconfiguration.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
22

3-
import requests
4-
from dataclasses import dataclass, field
5-
from typing import Any, Dict, Tuple, Callable, Union
6-
from .utils.retries import RetryConfig
3+
4+
import requests as requests_http
75
from .utils import utils
6+
from .utils.retries import RetryConfig
7+
from dataclasses import dataclass, field
88
from speakeasy.models import shared
9+
from typing import Any, Callable, Dict, Tuple, Union
910

1011

1112
SERVER_PROD = 'prod'
@@ -17,16 +18,16 @@
1718

1819
@dataclass
1920
class SDKConfiguration:
20-
client: requests.Session
21+
client: requests_http.Session
2122
security: Union[shared.Security,Callable[[], shared.Security]] = None
2223
server_url: str = ''
2324
server: str = ''
2425
globals: Dict[str, Dict[str, Dict[str, Any]]] = field(default_factory=Dict)
2526
language: str = 'python'
2627
openapi_doc_version: str = '0.4.0'
27-
sdk_version: str = '5.2.0'
28-
gen_version: str = '2.250.22'
29-
user_agent: str = 'speakeasy-sdk/python 5.2.0 2.250.22 0.4.0 speakeasy-client-sdk-python'
28+
sdk_version: str = '5.2.1'
29+
gen_version: str = '2.253.0'
30+
user_agent: str = 'speakeasy-sdk/python 5.2.1 2.253.0 0.4.0 speakeasy-client-sdk-python'
3031
retry_config: RetryConfig = None
3132

3233
def get_server_details(self) -> Tuple[str, Dict[str, str]]:

0 commit comments

Comments
 (0)