@@ -139,14 +139,6 @@ class {{ classname }}:
139
139
{% if operation .description %}
140
140
{{ operation.description|docstring|indent(8) }}
141
141
{% endif %}
142
- This method makes a synchronous HTTP request by default. To make an
143
- asynchronous HTTP request, please pass async_req=True.
144
-
145
- >>> thread = api.{{ operation.operationId|safe_snake_case }}(
146
- {% - for name , parameter in operation |parameters if parameter .required %} {{name|attribute_name}}, {% endfor %} async_req=True)
147
- >>> result = thread.get()
148
- {# keep new line #}
149
-
150
142
{% - for name , parameter in operation |parameters if parameter .required %}
151
143
{% - if parameter .description %}
152
144
:param {{ name|attribute_name }}: {{ parameter.description|docstring|indent(12) }}{% if parameter .default %} Defaults to {{ parameter.default }}.{% endif %}{% endif %}
@@ -157,34 +149,10 @@ class {{ classname }}:
157
149
:param {{ name|attribute_name }}: {{ parameter.description|docstring|indent(12) }}{% - if parameter .default %} If omitted the server will use the default value of {{ parameter.default }}.{% endif %}{% endif %}
158
150
:type {{ name|attribute_name }}: {{ get_type_for_parameter(parameter) }}, optional
159
151
{% - endfor %}
160
- :param _return_http_data_only: Response data without head status
161
- code and headers. Default is True.
162
- :type _return_http_data_only: bool
163
- :param _preload_content: If False, the urllib3.HTTPResponse object
164
- will be returned without reading/decoding response data.
165
- Default is True.
166
- :type _preload_content: bool
167
- :param _request_timeout: Timeout setting for this request. If one
168
- number provided, it will be total request timeout. It can also be a
169
- pair (tuple) of (connection, read) timeouts. Default is None.
170
- :type _request_timeout: float/tuple
171
- :param _check_input_type: Specifies if type checking should be done one
172
- the data sent to the server. Default is True.
173
- :type _check_input_type: bool
174
- :param _check_return_type: Specifies if type checking should be done
175
- one the data received from the server. Default is True.
176
- :type _check_return_type: bool
177
- :param _host_index: Specifies the index of the server that we want to
178
- use. Default is read from the configuration.
179
- :type _host_index: int/None
180
- :param async_req: Execute request asynchronously.
181
- :type async_req: bool
182
152
183
- :return: If the method is called asynchronously, returns the request thread.
184
153
{% - set returnType = operation |return_type %}
185
154
:rtype: {% if returnType %} {{ returnType }}{% else %} None{% endif %}
186
155
"""
187
- kwargs = self._{{ operation.operationId|safe_snake_case }}_endpoint.default_arguments(kwargs)
188
156
{% - for name , parameter in operation |parameters if parameter .required %}
189
157
kwargs["{{ name|attribute_name }}"] = {{ name|attribute_name }}
190
158
{% endfor %}
@@ -207,24 +175,10 @@ class {{ classname }}:
207
175
:param {{ name|attribute_name }}: {{ parameter.description|docstring|indent(12) }}{% - if parameter .default %} If omitted the server will use the default value of {{ parameter.default }}.{% endif %}{% endif %}
208
176
:type {{ name|attribute_name }}: {{ get_type_for_parameter(parameter) }}, optional
209
177
{% - endfor %}
210
- :param _request_timeout: Timeout setting for this request. If one
211
- number provided, it will be total request timeout. It can also be a
212
- pair (tuple) of (connection, read) timeouts. Default is None.
213
- :type _request_timeout: float/tuple
214
- :param _check_input_type: Specifies if type checking should be done one
215
- the data sent to the server. Default is True.
216
- :type _check_input_type: bool
217
- :param _check_return_type: Specifies if type checking should be done
218
- one the data received from the server. Default is True.
219
- :type _check_return_type: bool
220
- :param _host_index: Specifies the index of the server that we want to
221
- use. Default is read from the configuration.
222
- :type _host_index: int/None
223
178
224
179
:return: A generator of paginated results.
225
180
:rtype: collections.abc.Iterable[{{ get_type_at_path(operation, pagination.resultsPath) }}]
226
181
"""
227
- kwargs = self._{{ operation.operationId|safe_snake_case }}_endpoint.default_arguments(kwargs)
228
182
{% - for name , parameter in operation |parameters if parameter .required %}
229
183
kwargs["{{ name|attribute_name }}"] = {{ name|attribute_name }}
230
184
{% endfor %}
0 commit comments