Skip to content

Commit 027d379

Browse files
committed
ci: regenerated with OpenAPI Doc 0.3.0, Speakeay CLI 1.13.0
1 parent 7309845 commit 027d379

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+636
-258
lines changed

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,12 @@ Based on:
230230
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
231231
- Speakeasy CLI 1.12.4 https://github.com/speakeasy-api/speakeasy
232232
### Releases
233-
- [PyPI v1.11.2] https://pypi.org/project/speakeasy-client-sdk-python/1.11.2 - .
233+
- [PyPI v1.11.2] https://pypi.org/project/speakeasy-client-sdk-python/1.11.2 - .
234+
235+
## 2023-03-22 00:08:40
236+
### Changes
237+
Based on:
238+
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
239+
- Speakeasy CLI 1.13.0 https://github.com/speakeasy-api/speakeasy
240+
### Releases
241+
- [PyPI v1.12.0] https://pypi.org/project/speakeasy-client-sdk-python/1.12.0 - .

gen.yaml

Lines changed: 2 additions & 2 deletions
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.12.4
5+
speakeasyVersion: 1.13.0
66
generation:
77
telemetryEnabled: true
88
sdkClassName: speakeasy
99
sdkFlattening: true
1010
python:
11-
version: 1.11.2
11+
version: 1.12.0
1212
author: Speakeasy
1313
description: Speakeasy API Client SDK for Python
1414
packageName: speakeasy-client-sdk-python

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
import setuptools
24

35
try:
@@ -8,7 +10,7 @@
810

911
setuptools.setup(
1012
name="speakeasy-client-sdk-python",
11-
version="1.11.2",
13+
version="1.12.0",
1214
author="Speakeasy",
1315
description="Speakeasy API Client SDK for Python",
1416
long_description=long_description,

src/speakeasy/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
from .sdk import *

src/speakeasy/apiendpoints.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
import requests as requests_http
24
from . import utils
35
from speakeasy.models import operations, shared
46
from typing import Optional
57

68
class APIEndpoints:
9+
r"""REST APIs for managing ApiEndpoint entities"""
710
_client: requests_http.Session
811
_security_client: requests_http.Session
912
_server_url: str
@@ -23,7 +26,6 @@ def delete_api_endpoint(self, request: operations.DeleteAPIEndpointRequest) -> o
2326
r"""Delete an ApiEndpoint.
2427
Delete an ApiEndpoint. This will also delete all associated Request Logs (if using a Postgres datastore).
2528
"""
26-
2729
base_url = self._server_url
2830

2931
url = utils.generate_url(operations.DeleteAPIEndpointRequest, base_url, '/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}', request)
@@ -52,7 +54,6 @@ def find_api_endpoint(self, request: operations.FindAPIEndpointRequest) -> opera
5254
Find an ApiEndpoint via its displayName (set by operationId from a registered OpenAPI schema).
5355
This is useful for finding the ID of an ApiEndpoint to use in the /v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID} endpoints.
5456
"""
55-
5657
base_url = self._server_url
5758

5859
url = utils.generate_url(operations.FindAPIEndpointRequest, base_url, '/v1/apis/{apiID}/version/{versionID}/api_endpoints/find/{displayName}', request)
@@ -83,7 +84,6 @@ def generate_open_api_spec_for_api_endpoint(self, request: operations.GenerateOp
8384
This endpoint will generate a new operation in any registered OpenAPI document if the operation does not already exist in the document.
8485
Returns the original document and the newly generated document allowing a diff to be performed to see what has changed.
8586
"""
86-
8787
base_url = self._server_url
8888

8989
url = utils.generate_url(operations.GenerateOpenAPISpecForAPIEndpointRequest, base_url, '/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/openapi', request)
@@ -113,7 +113,6 @@ def generate_postman_collection_for_api_endpoint(self, request: operations.Gener
113113
r"""Generate a Postman collection for a particular ApiEndpoint.
114114
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.
115115
"""
116-
117116
base_url = self._server_url
118117

119118
url = utils.generate_url(operations.GeneratePostmanCollectionForAPIEndpointRequest, base_url, '/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/postman', request)
@@ -139,9 +138,7 @@ def generate_postman_collection_for_api_endpoint(self, request: operations.Gener
139138
return res
140139

141140
def get_all_api_endpoints(self, request: operations.GetAllAPIEndpointsRequest) -> operations.GetAllAPIEndpointsResponse:
142-
r"""Get all Api endpoints for a particular apiID.
143-
"""
144-
141+
r"""Get all Api endpoints for a particular apiID."""
145142
base_url = self._server_url
146143

147144
url = utils.generate_url(operations.GetAllAPIEndpointsRequest, base_url, '/v1/apis/{apiID}/api_endpoints', request)
@@ -168,9 +165,7 @@ def get_all_api_endpoints(self, request: operations.GetAllAPIEndpointsRequest) -
168165
return res
169166

170167
def get_all_for_version_api_endpoints(self, request: operations.GetAllForVersionAPIEndpointsRequest) -> operations.GetAllForVersionAPIEndpointsResponse:
171-
r"""Get all ApiEndpoints for a particular apiID and versionID.
172-
"""
173-
168+
r"""Get all ApiEndpoints for a particular apiID and versionID."""
174169
base_url = self._server_url
175170

176171
url = utils.generate_url(operations.GetAllForVersionAPIEndpointsRequest, base_url, '/v1/apis/{apiID}/version/{versionID}/api_endpoints', request)
@@ -197,9 +192,7 @@ def get_all_for_version_api_endpoints(self, request: operations.GetAllForVersion
197192
return res
198193

199194
def get_api_endpoint(self, request: operations.GetAPIEndpointRequest) -> operations.GetAPIEndpointResponse:
200-
r"""Get an ApiEndpoint.
201-
"""
202-
195+
r"""Get an ApiEndpoint."""
203196
base_url = self._server_url
204197

205198
url = utils.generate_url(operations.GetAPIEndpointRequest, base_url, '/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}', request)
@@ -229,7 +222,6 @@ def upsert_api_endpoint(self, request: operations.UpsertAPIEndpointRequest) -> o
229222
r"""Upsert an ApiEndpoint.
230223
Upsert an ApiEndpoint. If the ApiEndpoint does not exist it will be created, otherwise it will be updated.
231224
"""
232-
233225
base_url = self._server_url
234226

235227
url = utils.generate_url(operations.UpsertAPIEndpointRequest, base_url, '/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}', request)

src/speakeasy/apis.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
import requests as requests_http
24
from . import utils
35
from speakeasy.models import operations, shared
46
from typing import Optional
57

68
class Apis:
9+
r"""REST APIs for managing Api entities"""
710
_client: requests_http.Session
811
_security_client: requests_http.Session
912
_server_url: str
@@ -23,7 +26,6 @@ def delete_api(self, request: operations.DeleteAPIRequest) -> operations.DeleteA
2326
r"""Delete an Api.
2427
Delete a particular version of an Api. The will also delete all associated ApiEndpoints, Metadata, Schemas & Request Logs (if using a Postgres datastore).
2528
"""
26-
2729
base_url = self._server_url
2830

2931
url = utils.generate_url(operations.DeleteAPIRequest, base_url, '/v1/apis/{apiID}/version/{versionID}', request)
@@ -52,7 +54,6 @@ def generate_open_api_spec(self, request: operations.GenerateOpenAPISpecRequest)
5254
This endpoint will generate any missing operations in any registered OpenAPI document if the operation does not already exist in the document.
5355
Returns the original document and the newly generated document allowing a diff to be performed to see what has changed.
5456
"""
55-
5657
base_url = self._server_url
5758

5859
url = utils.generate_url(operations.GenerateOpenAPISpecRequest, base_url, '/v1/apis/{apiID}/version/{versionID}/generate/openapi', request)
@@ -82,7 +83,6 @@ def generate_postman_collection(self, request: operations.GeneratePostmanCollect
8283
r"""Generate a Postman collection for a particular Api.
8384
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.
8485
"""
85-
8686
base_url = self._server_url
8787

8888
url = utils.generate_url(operations.GeneratePostmanCollectionRequest, base_url, '/v1/apis/{apiID}/version/{versionID}/generate/postman', request)
@@ -112,7 +112,6 @@ def get_all_api_versions(self, request: operations.GetAllAPIVersionsRequest) ->
112112
Get all Api versions for a particular ApiEndpoint.
113113
Supports filtering the versions based on metadata attributes.
114114
"""
115-
116115
base_url = self._server_url
117116

118117
url = utils.generate_url(operations.GetAllAPIVersionsRequest, base_url, '/v1/apis/{apiID}', request)
@@ -144,7 +143,6 @@ def get_apis(self, request: operations.GetApisRequest) -> operations.GetApisResp
144143
Get a list of all Apis and their versions for a given workspace.
145144
Supports filtering the APIs based on metadata attributes.
146145
"""
147-
148146
base_url = self._server_url
149147

150148
url = base_url.removesuffix('/') + '/v1/apis'
@@ -176,7 +174,6 @@ def upsert_api(self, request: operations.UpsertAPIRequest) -> operations.UpsertA
176174
Upsert an Api. If the Api does not exist, it will be created.
177175
If the Api exists, it will be updated.
178176
"""
179-
180177
base_url = self._server_url
181178

182179
url = utils.generate_url(operations.UpsertAPIRequest, base_url, '/v1/apis/{apiID}', request)

src/speakeasy/embeds.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
import requests as requests_http
24
from . import utils
35
from speakeasy.models import operations, shared
46
from typing import Optional
57

68
class Embeds:
9+
r"""REST APIs for managing embeds"""
710
_client: requests_http.Session
811
_security_client: requests_http.Session
912
_server_url: str
@@ -24,7 +27,6 @@ def get_embed_access_token(self, request: operations.GetEmbedAccessTokenRequest)
2427
Returns an embed access token for the current workspace. This can be used to authenticate access to externally embedded content.
2528
Filters can be applied allowing views to be filtered to things like particular customerIds.
2629
"""
27-
2830
base_url = self._server_url
2931

3032
url = base_url.removesuffix('/') + '/v1/workspace/embed-access-token'
@@ -52,9 +54,7 @@ def get_embed_access_token(self, request: operations.GetEmbedAccessTokenRequest)
5254
return res
5355

5456
def get_valid_embed_access_tokens(self) -> operations.GetValidEmbedAccessTokensResponse:
55-
r"""Get all valid embed access tokens for the current workspace.
56-
"""
57-
57+
r"""Get all valid embed access tokens for the current workspace."""
5858
base_url = self._server_url
5959

6060
url = base_url.removesuffix('/') + '/v1/workspace/embed-access-tokens/valid'
@@ -81,9 +81,7 @@ def get_valid_embed_access_tokens(self) -> operations.GetValidEmbedAccessTokensR
8181
return res
8282

8383
def revoke_embed_access_token(self, request: operations.RevokeEmbedAccessTokenRequest) -> operations.RevokeEmbedAccessTokenResponse:
84-
r"""Revoke an embed access EmbedToken.
85-
"""
86-
84+
r"""Revoke an embed access EmbedToken."""
8785
base_url = self._server_url
8886

8987
url = utils.generate_url(operations.RevokeEmbedAccessTokenRequest, base_url, '/v1/workspace/embed-access-tokens/{tokenID}', request)

src/speakeasy/metadata.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
import requests as requests_http
24
from . import utils
35
from speakeasy.models import operations, shared
46
from typing import Optional
57

68
class Metadata:
9+
r"""REST APIs for managing Version Metadata entities"""
710
_client: requests_http.Session
811
_security_client: requests_http.Session
912
_server_url: str
@@ -20,9 +23,7 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
2023
self._gen_version = gen_version
2124

2225
def delete_version_metadata(self, request: operations.DeleteVersionMetadataRequest) -> operations.DeleteVersionMetadataResponse:
23-
r"""Delete metadata for a particular apiID and versionID.
24-
"""
25-
26+
r"""Delete metadata for a particular apiID and versionID."""
2627
base_url = self._server_url
2728

2829
url = utils.generate_url(operations.DeleteVersionMetadataRequest, base_url, '/v1/apis/{apiID}/version/{versionID}/metadata/{metaKey}/{metaValue}', request)
@@ -47,9 +48,7 @@ def delete_version_metadata(self, request: operations.DeleteVersionMetadataReque
4748
return res
4849

4950
def get_version_metadata(self, request: operations.GetVersionMetadataRequest) -> operations.GetVersionMetadataResponse:
50-
r"""Get all metadata for a particular apiID and versionID.
51-
"""
52-
51+
r"""Get all metadata for a particular apiID and versionID."""
5352
base_url = self._server_url
5453

5554
url = utils.generate_url(operations.GetVersionMetadataRequest, base_url, '/v1/apis/{apiID}/version/{versionID}/metadata', request)
@@ -76,9 +75,7 @@ def get_version_metadata(self, request: operations.GetVersionMetadataRequest) ->
7675
return res
7776

7877
def insert_version_metadata(self, request: operations.InsertVersionMetadataRequest) -> operations.InsertVersionMetadataResponse:
79-
r"""Insert metadata for a particular apiID and versionID.
80-
"""
81-
78+
r"""Insert metadata for a particular apiID and versionID."""
8279
base_url = self._server_url
8380

8481
url = utils.generate_url(operations.InsertVersionMetadataRequest, base_url, '/v1/apis/{apiID}/version/{versionID}/metadata', request)

src/speakeasy/models/__init__.py

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

src/speakeasy/models/operations/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
from .deleteapi import *
24
from .deleteapiendpoint import *
35
from .deleteschema import *

0 commit comments

Comments
 (0)