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
<!-- Start Available Resources and Operations [operations]-->
40
44
## Available Resources and Operations
41
45
42
-
43
46
### [files](docs/sdks/files/README.md)
44
47
45
48
*[download_files](docs/sdks/files/README.md#download_files) - Download all files for a company
46
49
*[list_files](docs/sdks/files/README.md#list_files) - List all files uploaded by a company
47
50
*[upload_files](docs/sdks/files/README.md#upload_files) - Upload files for a company
48
-
<!-- End SDK Available Operations -->
51
+
<!-- End Available Resources and Operations [operations]-->
49
52
50
53
51
54
52
-
<!-- Start Dev Containers -->
55
+
<!-- Start Retries [retries] -->
56
+
## Retries
53
57
58
+
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.
54
59
60
+
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
61
+
```python
62
+
import codatfiles
63
+
from codatfiles.models import operations
64
+
from codatfiles.utils import BackoffStrategy, RetryConfig
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.
You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
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:
The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
216
+
217
+
For example, you could specify a header for every request that this sdk makes as follows:
|`raw_response`|[requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response)|:heavy_minus_sign:| Raw HTTP response; suitable for custom response parsing |
11
11
|`can_be_retried`|*Optional[str]*|:heavy_minus_sign:|`True` if the error occurred transiently and can be retried. |
12
12
|`correlation_id`|*Optional[str]*|:heavy_minus_sign:| Unique identifier used to propagate to all downstream services and determine the source of the error. |
13
13
|`detailed_error_code`|*Optional[int]*|:heavy_minus_sign:| Machine readable error code used to automate processes based on the code returned. |
|`raw_response`|[requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response)|:heavy_minus_sign:| Raw HTTP response; suitable for custom response parsing |
11
11
|`can_be_retried`|*Optional[str]*|:heavy_minus_sign:|`True` if the error occurred transiently and can be retried. |
12
12
|`correlation_id`|*Optional[str]*|:heavy_minus_sign:| Unique identifier used to propagate to all downstream services and determine the source of the error. |
13
13
|`detailed_error_code`|*Optional[int]*|:heavy_minus_sign:| Machine readable error code used to automate processes based on the code returned. |
|`raw_response`|[requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response)|:heavy_minus_sign:| Raw HTTP response; suitable for custom response parsing |
11
11
|`can_be_retried`|*Optional[str]*|:heavy_minus_sign:|`True` if the error occurred transiently and can be retried. |
12
12
|`correlation_id`|*Optional[str]*|:heavy_minus_sign:| Unique identifier used to propagate to all downstream services and determine the source of the error. |
13
13
|`detailed_error_code`|*Optional[int]*|:heavy_minus_sign:| Machine readable error code used to automate processes based on the code returned. |
0 commit comments