Skip to content

Commit 3678e7e

Browse files
committed
ci: regenerated with OpenAPI Doc 0.3.0, Speakeay CLI 1.8.2
1 parent 0ac837f commit 3678e7e

12 files changed

+51
-7
lines changed

RELEASES.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,12 @@ Based on:
126126
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
127127
- Speakeasy CLI 1.8.1 https://github.com/speakeasy-api/speakeasy
128128
### Releases
129-
- [PyPI v1.8.0] https://pypi.org/project/speakeasy-client-sdk-python/1.8.0 - .
129+
- [PyPI v1.8.0] https://pypi.org/project/speakeasy-client-sdk-python/1.8.0 - .
130+
131+
## 2023-03-03 16:47:01
132+
### Changes
133+
Based on:
134+
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
135+
- Speakeasy CLI 1.8.2 https://github.com/speakeasy-api/speakeasy
136+
### Releases
137+
- [PyPI v1.8.1] https://pypi.org/project/speakeasy-client-sdk-python/1.8.1 - .

gen.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ configVersion: 1.0.0
22
management:
33
docChecksum: 2bba3b8f9d211b02569b3f9aff0d34b4
44
docVersion: 0.3.0
5-
speakeasyVersion: 1.8.1
5+
speakeasyVersion: 1.8.2
66
generation:
77
telemetryEnabled: true
88
sdkClassName: speakeasy
99
sdkFlattening: true
1010
python:
11-
version: 1.8.0
11+
version: 1.8.1
1212
author: Speakeasy
1313
description: Speakeasy API Client SDK for Python
1414
packageName: speakeasy-client-sdk-python

pylintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@ disable=raw-checker-failed,
434434
too-few-public-methods,
435435
too-many-branches,
436436
chained-comparison,
437-
duplicate-code
437+
duplicate-code,
438+
trailing-newlines
438439

439440
# Enable the message, report, category or checker with the given id(s). You can
440441
# either give multiple identifier separated by comma (,) or put this option

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setuptools.setup(
1010
name="speakeasy-client-sdk-python",
11-
version="1.8.0",
11+
version="1.8.1",
1212
author="Speakeasy",
1313
description="Speakeasy API Client SDK for Python",
1414
long_description=long_description,

src/speakeasy/apiendpoints.py

+8
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def delete_api_endpoint(self, request: operations.DeleteAPIEndpointRequest) -> o
4646
res.error = out
4747

4848
return res
49+
4950
def find_api_endpoint(self, request: operations.FindAPIEndpointRequest) -> operations.FindAPIEndpointResponse:
5051
r"""Find an ApiEndpoint via its displayName.
5152
Find an ApiEndpoint via its displayName (set by operationId from a registered OpenAPI schema).
@@ -76,6 +77,7 @@ def find_api_endpoint(self, request: operations.FindAPIEndpointRequest) -> opera
7677
res.error = out
7778

7879
return res
80+
7981
def generate_open_api_spec_for_api_endpoint(self, request: operations.GenerateOpenAPISpecForAPIEndpointRequest) -> operations.GenerateOpenAPISpecForAPIEndpointResponse:
8082
r"""Generate an OpenAPI specification for a particular ApiEndpoint.
8183
This endpoint will generate a new operation in any registered OpenAPI document if the operation does not already exist in the document.
@@ -106,6 +108,7 @@ def generate_open_api_spec_for_api_endpoint(self, request: operations.GenerateOp
106108
res.error = out
107109

108110
return res
111+
109112
def generate_postman_collection_for_api_endpoint(self, request: operations.GeneratePostmanCollectionForAPIEndpointRequest) -> operations.GeneratePostmanCollectionForAPIEndpointResponse:
110113
r"""Generate a Postman collection for a particular ApiEndpoint.
111114
Generates a postman collection that allows the endpoint to be called from postman variables produced for any path/query/header parameters included in the OpenAPI document.
@@ -134,6 +137,7 @@ def generate_postman_collection_for_api_endpoint(self, request: operations.Gener
134137
res.error = out
135138

136139
return res
140+
137141
def get_all_api_endpoints(self, request: operations.GetAllAPIEndpointsRequest) -> operations.GetAllAPIEndpointsResponse:
138142
r"""Get all Api endpoints for a particular apiID.
139143
"""
@@ -162,6 +166,7 @@ def get_all_api_endpoints(self, request: operations.GetAllAPIEndpointsRequest) -
162166
res.error = out
163167

164168
return res
169+
165170
def get_all_for_version_api_endpoints(self, request: operations.GetAllForVersionAPIEndpointsRequest) -> operations.GetAllForVersionAPIEndpointsResponse:
166171
r"""Get all ApiEndpoints for a particular apiID and versionID.
167172
"""
@@ -190,6 +195,7 @@ def get_all_for_version_api_endpoints(self, request: operations.GetAllForVersion
190195
res.error = out
191196

192197
return res
198+
193199
def get_api_endpoint(self, request: operations.GetAPIEndpointRequest) -> operations.GetAPIEndpointResponse:
194200
r"""Get an ApiEndpoint.
195201
"""
@@ -218,6 +224,7 @@ def get_api_endpoint(self, request: operations.GetAPIEndpointRequest) -> operati
218224
res.error = out
219225

220226
return res
227+
221228
def upsert_api_endpoint(self, request: operations.UpsertAPIEndpointRequest) -> operations.UpsertAPIEndpointResponse:
222229
r"""Upsert an ApiEndpoint.
223230
Upsert an ApiEndpoint. If the ApiEndpoint does not exist it will be created, otherwise it will be updated.
@@ -252,4 +259,5 @@ def upsert_api_endpoint(self, request: operations.UpsertAPIEndpointRequest) -> o
252259
res.error = out
253260

254261
return res
262+
255263

src/speakeasy/apis.py

+6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def delete_api(self, request: operations.DeleteAPIRequest) -> operations.DeleteA
4646
res.error = out
4747

4848
return res
49+
4950
def generate_open_api_spec(self, request: operations.GenerateOpenAPISpecRequest) -> operations.GenerateOpenAPISpecResponse:
5051
r"""Generate an OpenAPI specification for a particular Api.
5152
This endpoint will generate any missing operations in any registered OpenAPI document if the operation does not already exist in the document.
@@ -76,6 +77,7 @@ def generate_open_api_spec(self, request: operations.GenerateOpenAPISpecRequest)
7677
res.error = out
7778

7879
return res
80+
7981
def generate_postman_collection(self, request: operations.GeneratePostmanCollectionRequest) -> operations.GeneratePostmanCollectionResponse:
8082
r"""Generate a Postman collection for a particular Api.
8183
Generates a postman collection containing all endpoints for a particular API. Includes variables produced for any path/query/header parameters included in the OpenAPI document.
@@ -104,6 +106,7 @@ def generate_postman_collection(self, request: operations.GeneratePostmanCollect
104106
res.error = out
105107

106108
return res
109+
107110
def get_all_api_versions(self, request: operations.GetAllAPIVersionsRequest) -> operations.GetAllAPIVersionsResponse:
108111
r"""Get all Api versions for a particular ApiEndpoint.
109112
Get all Api versions for a particular ApiEndpoint.
@@ -135,6 +138,7 @@ def get_all_api_versions(self, request: operations.GetAllAPIVersionsRequest) ->
135138
res.error = out
136139

137140
return res
141+
138142
def get_apis(self, request: operations.GetApisRequest) -> operations.GetApisResponse:
139143
r"""Get a list of Apis for a given workspace
140144
Get a list of all Apis and their versions for a given workspace.
@@ -166,6 +170,7 @@ def get_apis(self, request: operations.GetApisRequest) -> operations.GetApisResp
166170
res.error = out
167171

168172
return res
173+
169174
def upsert_api(self, request: operations.UpsertAPIRequest) -> operations.UpsertAPIResponse:
170175
r"""Upsert an Api
171176
Upsert an Api. If the Api does not exist, it will be created.
@@ -201,4 +206,5 @@ def upsert_api(self, request: operations.UpsertAPIRequest) -> operations.UpsertA
201206
res.error = out
202207

203208
return res
209+
204210

src/speakeasy/embeds.py

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def get_embed_access_token(self, request: operations.GetEmbedAccessTokenRequest)
5050
res.error = out
5151

5252
return res
53+
5354
def get_valid_embed_access_tokens(self) -> operations.GetValidEmbedAccessTokensResponse:
5455
r"""Get all valid embed access tokens for the current workspace.
5556
"""
@@ -78,6 +79,7 @@ def get_valid_embed_access_tokens(self) -> operations.GetValidEmbedAccessTokensR
7879
res.error = out
7980

8081
return res
82+
8183
def revoke_embed_access_token(self, request: operations.RevokeEmbedAccessTokenRequest) -> operations.RevokeEmbedAccessTokenResponse:
8284
r"""Revoke an embed access EmbedToken.
8385
"""
@@ -104,4 +106,5 @@ def revoke_embed_access_token(self, request: operations.RevokeEmbedAccessTokenRe
104106
res.error = out
105107

106108
return res
109+
107110

src/speakeasy/metadata.py

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def delete_version_metadata(self, request: operations.DeleteVersionMetadataReque
4545
res.error = out
4646

4747
return res
48+
4849
def get_version_metadata(self, request: operations.GetVersionMetadataRequest) -> operations.GetVersionMetadataResponse:
4950
r"""Get all metadata for a particular apiID and versionID.
5051
"""
@@ -73,6 +74,7 @@ def get_version_metadata(self, request: operations.GetVersionMetadataRequest) ->
7374
res.error = out
7475

7576
return res
77+
7678
def insert_version_metadata(self, request: operations.InsertVersionMetadataRequest) -> operations.InsertVersionMetadataResponse:
7779
r"""Insert metadata for a particular apiID and versionID.
7880
"""
@@ -106,4 +108,5 @@ def insert_version_metadata(self, request: operations.InsertVersionMetadataReque
106108
res.error = out
107109

108110
return res
111+
109112

src/speakeasy/plugins.py

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def get_plugins(self) -> operations.GetPluginsResponse:
4747
res.error = out
4848

4949
return res
50+
5051
def run_plugin(self, request: operations.RunPluginRequest) -> operations.RunPluginResponse:
5152
r"""Run a plugin
5253
"""
@@ -76,6 +77,7 @@ def run_plugin(self, request: operations.RunPluginRequest) -> operations.RunPlug
7677
res.error = out
7778

7879
return res
80+
7981
def upsert_plugin(self, request: operations.UpsertPluginRequest) -> operations.UpsertPluginResponse:
8082
r"""Upsert a plugin
8183
"""
@@ -109,4 +111,5 @@ def upsert_plugin(self, request: operations.UpsertPluginRequest) -> operations.U
109111
res.error = out
110112

111113
return res
114+
112115

src/speakeasy/requests.py

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def generate_request_postman_collection(self, request: operations.GenerateReques
4848
res.error = out
4949

5050
return res
51+
5152
def get_request_from_event_log(self, request: operations.GetRequestFromEventLogRequest) -> operations.GetRequestFromEventLogResponse:
5253
r"""Get information about a particular request.
5354
"""
@@ -76,6 +77,7 @@ def get_request_from_event_log(self, request: operations.GetRequestFromEventLogR
7677
res.error = out
7778

7879
return res
80+
7981
def query_event_log(self, request: operations.QueryEventLogRequest) -> operations.QueryEventLogResponse:
8082
r"""Query the event log to retrieve a list of requests.
8183
Supports retrieving a list of request captured by the SDK for this workspace.
@@ -107,4 +109,5 @@ def query_event_log(self, request: operations.QueryEventLogRequest) -> operation
107109
res.error = out
108110

109111
return res
112+
110113

src/speakeasy/schemas.py

+8
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def delete_schema(self, request: operations.DeleteSchemaRequest) -> operations.D
4545
res.error = out
4646

4747
return res
48+
4849
def download_schema(self, request: operations.DownloadSchemaRequest) -> operations.DownloadSchemaResponse:
4950
r"""Download the latest schema for a particular apiID.
5051
"""
@@ -75,6 +76,7 @@ def download_schema(self, request: operations.DownloadSchemaRequest) -> operatio
7576
res.error = out
7677

7778
return res
79+
7880
def download_schema_revision(self, request: operations.DownloadSchemaRevisionRequest) -> operations.DownloadSchemaRevisionResponse:
7981
r"""Download a particular schema revision for an Api.
8082
"""
@@ -105,6 +107,7 @@ def download_schema_revision(self, request: operations.DownloadSchemaRevisionReq
105107
res.error = out
106108

107109
return res
110+
108111
def get_schema(self, request: operations.GetSchemaRequest) -> operations.GetSchemaResponse:
109112
r"""Get information about the latest schema.
110113
Returns information about the last uploaded schema for a particular API version.
@@ -135,6 +138,7 @@ def get_schema(self, request: operations.GetSchemaRequest) -> operations.GetSche
135138
res.error = out
136139

137140
return res
141+
138142
def get_schema_diff(self, request: operations.GetSchemaDiffRequest) -> operations.GetSchemaDiffResponse:
139143
r"""Get a diff of two schema revisions for an Api.
140144
"""
@@ -163,6 +167,7 @@ def get_schema_diff(self, request: operations.GetSchemaDiffRequest) -> operation
163167
res.error = out
164168

165169
return res
170+
166171
def get_schema_revision(self, request: operations.GetSchemaRevisionRequest) -> operations.GetSchemaRevisionResponse:
167172
r"""Get information about a particular schema revision for an Api.
168173
Returns information about the last uploaded schema for a particular schema revision.
@@ -193,6 +198,7 @@ def get_schema_revision(self, request: operations.GetSchemaRevisionRequest) -> o
193198
res.error = out
194199

195200
return res
201+
196202
def get_schemas(self, request: operations.GetSchemasRequest) -> operations.GetSchemasResponse:
197203
r"""Get information about all schemas associated with a particular apiID.
198204
Returns information the schemas associated with a particular apiID.
@@ -223,6 +229,7 @@ def get_schemas(self, request: operations.GetSchemasRequest) -> operations.GetSc
223229
res.error = out
224230

225231
return res
232+
226233
def register_schema(self, request: operations.RegisterSchemaRequest) -> operations.RegisterSchemaResponse:
227234
r"""Register a schema.
228235
Allows uploading a schema for a particular API version.
@@ -256,4 +263,5 @@ def register_schema(self, request: operations.RegisterSchemaRequest) -> operatio
256263
res.error = out
257264

258265
return res
266+
259267

src/speakeasy/sdk.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class Speakeasy:
3333
_security: shared.Security
3434
_server_url: str = SERVERS[SERVER_PROD]
3535
_language: str = "python"
36-
_sdk_version: str = "1.8.0"
37-
_gen_version: str = "1.8.1"
36+
_sdk_version: str = "1.8.1"
37+
_gen_version: str = "1.8.2"
3838

3939
def __init__(self) -> None:
4040
self._client = requests.Session()
@@ -157,4 +157,5 @@ def validate_api_key(self) -> operations.ValidateAPIKeyResponse:
157157
res.error = out
158158

159159
return res
160+
160161

0 commit comments

Comments
 (0)