Skip to content

Commit 86f1157

Browse files
authored
Merge branch 'master' into therve/async-retry
2 parents ac97b0a + afbd1f4 commit 86f1157

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

.generator/src/generator/templates/configuration.j2

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,25 @@ class Configuration:
123123
Default is True.
124124
:type preload_content: bool
125125
:param request_timeout: Timeout setting for this request. If one
126-
number provided, it will be total request timeout. It can also be a
126+
number is provided, it will be total request timeout. It can also be a
127127
pair (tuple) of (connection, read) timeouts. Default is None.
128128
:type request_timeout: float/tuple
129-
:param check_input_type: Specifies if type checking should be done one
129+
:param check_input_type: Specifies if type checking should be done on
130130
the data sent to the server. Default is True.
131131
:type check_input_type: bool
132132
:param check_return_type: Specifies if type checking should be done
133-
one the data received from the server. Default is True.
133+
on the data received from the server. Default is True.
134134
:type check_return_type: bool
135135
:param spec_property_naming: Whether names in properties are expected to respect the spec or use snake case.
136136
:type spec_property_naming: bool
137+
:param enable_retry: If set, the client will retry requests on backend errors (5xx status codes), and 429.
138+
On 429 if will use the returned headers to wait until the next requests, otherwise it will retry using
139+
the backoff factor.
140+
:type enable_retry: bool
141+
:param retry_backoff_factor: Factor used to space out retried requests on backend errors.
142+
:type retry_backoff_factor: int
143+
:param max_retries: The maximum number of times a single request can be retried.
144+
:type max_retries: int
137145
"""
138146

139147
def __init__(

src/datadog_api_client/configuration.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,25 @@ class Configuration:
124124
Default is True.
125125
:type preload_content: bool
126126
:param request_timeout: Timeout setting for this request. If one
127-
number provided, it will be total request timeout. It can also be a
127+
number is provided, it will be total request timeout. It can also be a
128128
pair (tuple) of (connection, read) timeouts. Default is None.
129129
:type request_timeout: float/tuple
130-
:param check_input_type: Specifies if type checking should be done one
130+
:param check_input_type: Specifies if type checking should be done on
131131
the data sent to the server. Default is True.
132132
:type check_input_type: bool
133133
:param check_return_type: Specifies if type checking should be done
134-
one the data received from the server. Default is True.
134+
on the data received from the server. Default is True.
135135
:type check_return_type: bool
136136
:param spec_property_naming: Whether names in properties are expected to respect the spec or use snake case.
137137
:type spec_property_naming: bool
138+
:param enable_retry: If set, the client will retry requests on backend errors (5xx status codes), and 429.
139+
On 429 if will use the returned headers to wait until the next requests, otherwise it will retry using
140+
the backoff factor.
141+
:type enable_retry: bool
142+
:param retry_backoff_factor: Factor used to space out retried requests on backend errors.
143+
:type retry_backoff_factor: int
144+
:param max_retries: The maximum number of times a single request can be retried.
145+
:type max_retries: int
138146
"""
139147

140148
def __init__(

0 commit comments

Comments
 (0)