mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 08:46:55 +00:00
[Python] Add retries option to Configuration constructor (#18919)
* Python: add retries option to Configuration constructor * Update autogenerated sample clients
This commit is contained in:
@@ -55,6 +55,7 @@ class Configuration:
|
||||
values before.
|
||||
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
|
||||
in PEM format.
|
||||
:param retries: Number of retries for API requests.
|
||||
|
||||
:Example:
|
||||
|
||||
@@ -84,6 +85,7 @@ conf = openapi_client.Configuration(
|
||||
server_index=None, server_variables=None,
|
||||
server_operation_index=None, server_operation_variables=None,
|
||||
ssl_ca_cert=None,
|
||||
retries=None,
|
||||
) -> None:
|
||||
"""Constructor
|
||||
"""
|
||||
@@ -184,7 +186,7 @@ conf = openapi_client.Configuration(
|
||||
self.safe_chars_for_path_param = ''
|
||||
"""Safe chars for path_param
|
||||
"""
|
||||
self.retries = None
|
||||
self.retries = retries
|
||||
"""Adding retries to override urllib3 default value 3
|
||||
"""
|
||||
# Enable client side validation
|
||||
|
||||
Reference in New Issue
Block a user