You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[delete_api_endpoint](docs/sdks/apiendpoints/README.md#delete_api_endpoint) - Delete an ApiEndpoint.
52
-
*[find_api_endpoint](docs/sdks/apiendpoints/README.md#find_api_endpoint) - Find an ApiEndpoint via its displayName.
53
-
*[generate_open_api_spec_for_api_endpoint](docs/sdks/apiendpoints/README.md#generate_open_api_spec_for_api_endpoint) - Generate an OpenAPI specification for a particular ApiEndpoint.
54
-
*[generate_postman_collection_for_api_endpoint](docs/sdks/apiendpoints/README.md#generate_postman_collection_for_api_endpoint) - Generate a Postman collection for a particular ApiEndpoint.
55
-
*[get_all_api_endpoints](docs/sdks/apiendpoints/README.md#get_all_api_endpoints) - Get all Api endpoints for a particular apiID.
56
-
*[get_all_for_version_api_endpoints](docs/sdks/apiendpoints/README.md#get_all_for_version_api_endpoints) - Get all ApiEndpoints for a particular apiID and versionID.
57
-
*[get_api_endpoint](docs/sdks/apiendpoints/README.md#get_api_endpoint) - Get an ApiEndpoint.
58
-
*[upsert_api_endpoint](docs/sdks/apiendpoints/README.md#upsert_api_endpoint) - Upsert an ApiEndpoint.
59
-
60
-
### [apis](docs/sdks/apis/README.md)
49
+
### [.apis](docs/sdks/apis/README.md)
61
50
62
51
*[delete_api](docs/sdks/apis/README.md#delete_api) - Delete an Api.
63
52
*[generate_open_api_spec](docs/sdks/apis/README.md#generate_open_api_spec) - Generate an OpenAPI specification for a particular Api.
@@ -66,31 +55,24 @@ if res.apis is not None:
66
55
*[get_apis](docs/sdks/apis/README.md#get_apis) - Get a list of Apis for a given workspace
67
56
*[upsert_api](docs/sdks/apis/README.md#upsert_api) - Upsert an Api
*[get_embed_access_token](docs/sdks/embeds/README.md#get_embed_access_token) - Get an embed access token for the current workspace.
72
-
*[get_valid_embed_access_tokens](docs/sdks/embeds/README.md#get_valid_embed_access_tokens) - Get all valid embed access tokens for the current workspace.
73
-
*[revoke_embed_access_token](docs/sdks/embeds/README.md#revoke_embed_access_token) - Revoke an embed access EmbedToken.
60
+
*[delete_api_endpoint](docs/sdks/apiendpoints/README.md#delete_api_endpoint) - Delete an ApiEndpoint.
61
+
*[find_api_endpoint](docs/sdks/apiendpoints/README.md#find_api_endpoint) - Find an ApiEndpoint via its displayName.
62
+
*[generate_open_api_spec_for_api_endpoint](docs/sdks/apiendpoints/README.md#generate_open_api_spec_for_api_endpoint) - Generate an OpenAPI specification for a particular ApiEndpoint.
63
+
*[generate_postman_collection_for_api_endpoint](docs/sdks/apiendpoints/README.md#generate_postman_collection_for_api_endpoint) - Generate a Postman collection for a particular ApiEndpoint.
64
+
*[get_all_api_endpoints](docs/sdks/apiendpoints/README.md#get_all_api_endpoints) - Get all Api endpoints for a particular apiID.
65
+
*[get_all_for_version_api_endpoints](docs/sdks/apiendpoints/README.md#get_all_for_version_api_endpoints) - Get all ApiEndpoints for a particular apiID and versionID.
66
+
*[get_api_endpoint](docs/sdks/apiendpoints/README.md#get_api_endpoint) - Get an ApiEndpoint.
67
+
*[upsert_api_endpoint](docs/sdks/apiendpoints/README.md#upsert_api_endpoint) - Upsert an ApiEndpoint.
74
68
75
-
### [metadata](docs/sdks/metadata/README.md)
69
+
### [.metadata](docs/sdks/metadata/README.md)
76
70
77
71
*[delete_version_metadata](docs/sdks/metadata/README.md#delete_version_metadata) - Delete metadata for a particular apiID and versionID.
78
72
*[get_version_metadata](docs/sdks/metadata/README.md#get_version_metadata) - Get all metadata for a particular apiID and versionID.
79
73
*[insert_version_metadata](docs/sdks/metadata/README.md#insert_version_metadata) - Insert metadata for a particular apiID and versionID.
80
74
81
-
### [plugins](docs/sdks/plugins/README.md)
82
-
83
-
*[get_plugins](docs/sdks/plugins/README.md#get_plugins) - Get all plugins for the current workspace.
84
-
*[run_plugin](docs/sdks/plugins/README.md#run_plugin) - Run a plugin
85
-
*[upsert_plugin](docs/sdks/plugins/README.md#upsert_plugin) - Upsert a plugin
86
-
87
-
### [requests](docs/sdks/requests/README.md)
88
-
89
-
*[generate_request_postman_collection](docs/sdks/requests/README.md#generate_request_postman_collection) - Generate a Postman collection for a particular request.
90
-
*[get_request_from_event_log](docs/sdks/requests/README.md#get_request_from_event_log) - Get information about a particular request.
91
-
*[query_event_log](docs/sdks/requests/README.md#query_event_log) - Query the event log to retrieve a list of requests.
92
-
93
-
### [schemas](docs/sdks/schemas/README.md)
75
+
### [.schemas](docs/sdks/schemas/README.md)
94
76
95
77
*[delete_schema](docs/sdks/schemas/README.md#delete_schema) - Delete a particular schema revision for an Api.
96
78
*[download_schema](docs/sdks/schemas/README.md#download_schema) - Download the latest schema for a particular apiID.
@@ -100,6 +82,24 @@ if res.apis is not None:
100
82
*[get_schema_revision](docs/sdks/schemas/README.md#get_schema_revision) - Get information about a particular schema revision for an Api.
101
83
*[get_schemas](docs/sdks/schemas/README.md#get_schemas) - Get information about all schemas associated with a particular apiID.
102
84
*[register_schema](docs/sdks/schemas/README.md#register_schema) - Register a schema.
85
+
86
+
### [.requests](docs/sdks/requests/README.md)
87
+
88
+
*[generate_request_postman_collection](docs/sdks/requests/README.md#generate_request_postman_collection) - Generate a Postman collection for a particular request.
89
+
*[get_request_from_event_log](docs/sdks/requests/README.md#get_request_from_event_log) - Get information about a particular request.
90
+
*[query_event_log](docs/sdks/requests/README.md#query_event_log) - Query the event log to retrieve a list of requests.
91
+
92
+
### [.plugins](docs/sdks/plugins/README.md)
93
+
94
+
*[get_plugins](docs/sdks/plugins/README.md#get_plugins) - Get all plugins for the current workspace.
95
+
*[run_plugin](docs/sdks/plugins/README.md#run_plugin) - Run a plugin
96
+
*[upsert_plugin](docs/sdks/plugins/README.md#upsert_plugin) - Upsert a plugin
97
+
98
+
### [.embeds](docs/sdks/embeds/README.md)
99
+
100
+
*[get_embed_access_token](docs/sdks/embeds/README.md#get_embed_access_token) - Get an embed access token for the current workspace.
101
+
*[get_valid_embed_access_tokens](docs/sdks/embeds/README.md#get_valid_embed_access_tokens) - Get all valid embed access tokens for the current workspace.
102
+
*[revoke_embed_access_token](docs/sdks/embeds/README.md#revoke_embed_access_token) - Revoke an embed access EmbedToken.
103
103
<!-- End SDK Available Operations -->
104
104
105
105
@@ -126,8 +126,6 @@ Here's an example of one such pagination call:
126
126
# Error Handling
127
127
128
128
Handling errors in your SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.
129
-
130
-
131
129
<!-- End Error Handling -->
132
130
133
131
@@ -145,20 +143,19 @@ You can override the default server globally by passing a server name to the `se
145
143
146
144
For example:
147
145
148
-
149
146
```python
150
147
import speakeasy
151
148
from speakeasy.models import shared
152
149
153
150
s = speakeasy.Speakeasy(
151
+
server="prod",
154
152
security=shared.Security(
155
153
api_key="",
156
154
),
157
-
server="prod"
158
155
)
159
156
160
157
161
-
res = s.speakeasy.validate_api_key()
158
+
res = s.validate_api_key()
162
159
163
160
if res.status_code ==200:
164
161
# handle response
@@ -170,20 +167,19 @@ if res.status_code == 200:
170
167
171
168
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
|`schema`|*Optional[requests_http.Response]*|:heavy_minus_sign:| OK |
11
12
|`status_code`|*int*|:heavy_check_mark:| HTTP response status code for this operation |
12
13
|`raw_response`|[requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response)|:heavy_minus_sign:| Raw HTTP response; suitable for custom response parsing |
|`schema`|*Optional[requests_http.Response]*|:heavy_minus_sign:| OK |
11
12
|`status_code`|*int*|:heavy_check_mark:| HTTP response status code for this operation |
12
13
|`raw_response`|[requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response)|:heavy_minus_sign:| Raw HTTP response; suitable for custom response parsing |
0 commit comments