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
Copy file name to clipboardExpand all lines: README.md
+105-7Lines changed: 105 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,13 +115,15 @@ if res.apis is not None:
115
115
116
116
Handling errors in this 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.
<!-- End Global Parameters [global-parameters] -->
331
347
348
+
<!-- Start Retries [retries] -->
349
+
## Retries
350
+
351
+
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
352
+
353
+
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
354
+
```python
355
+
import dateutil.parser
356
+
import speakeasy
357
+
from speakeasy.models import operations, shared
358
+
from speakeasy.utils import BackoffStrategy, RetryConfig
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
392
+
```python
393
+
import dateutil.parser
394
+
import speakeasy
395
+
from speakeasy.models import operations, shared
396
+
from speakeasy.utils import BackoffStrategy, RetryConfig
Copy file name to clipboardExpand all lines: docs/models/operations/deleteapiendpointresponse.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,4 +8,4 @@
8
8
|`content_type`|*str*|:heavy_check_mark:| HTTP response content type for this operation |
9
9
|`status_code`|*int*|:heavy_check_mark:| HTTP response status code for this operation |
10
10
|`raw_response`|[requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response)|:heavy_check_mark:| Raw HTTP response; suitable for custom response parsing |
Copy file name to clipboardExpand all lines: docs/models/operations/deleteapiresponse.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,4 +8,4 @@
8
8
|`content_type`|*str*|:heavy_check_mark:| HTTP response content type for this operation |
9
9
|`status_code`|*int*|:heavy_check_mark:| HTTP response status code for this operation |
10
10
|`raw_response`|[requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response)|:heavy_check_mark:| Raw HTTP response; suitable for custom response parsing |
Copy file name to clipboardExpand all lines: docs/models/operations/deleteschemaresponse.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,4 +8,4 @@
8
8
|`content_type`|*str*|:heavy_check_mark:| HTTP response content type for this operation |
9
9
|`status_code`|*int*|:heavy_check_mark:| HTTP response status code for this operation |
10
10
|`raw_response`|[requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response)|:heavy_check_mark:| Raw HTTP response; suitable for custom response parsing |
Copy file name to clipboardExpand all lines: docs/models/operations/deleteversionmetadataresponse.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,4 +8,4 @@
8
8
|`content_type`|*str*|:heavy_check_mark:| HTTP response content type for this operation |
9
9
|`status_code`|*int*|:heavy_check_mark:| HTTP response status code for this operation |
10
10
|`raw_response`|[requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response)|:heavy_check_mark:| Raw HTTP response; suitable for custom response parsing |
Copy file name to clipboardExpand all lines: docs/models/operations/downloadschemaresponse.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,4 +10,4 @@
10
10
|`raw_response`|[requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response)|:heavy_check_mark:| Raw HTTP response; suitable for custom response parsing |
11
11
|`two_hundred_application_json_schema`|*Optional[requests_http.Response]*|:heavy_minus_sign:| OK |
12
12
|`two_hundred_application_x_yaml_schema`|*Optional[requests_http.Response]*|:heavy_minus_sign:| OK |
Copy file name to clipboardExpand all lines: docs/models/operations/downloadschemarevisionresponse.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,4 +10,4 @@
10
10
|`raw_response`|[requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response)|:heavy_check_mark:| Raw HTTP response; suitable for custom response parsing |
11
11
|`two_hundred_application_json_schema`|*Optional[requests_http.Response]*|:heavy_minus_sign:| OK |
12
12
|`two_hundred_application_x_yaml_schema`|*Optional[requests_http.Response]*|:heavy_minus_sign:| OK |
0 commit comments