Makes the HTTP request (synchronous) and returns deserialized data. To make an async_req request, set the async_req parameter. :param resource_path: Path to method endpoint. :param method: Method to call. :param path_params: Path parameters in the url. :para
(self, resource_path, method,
path_params=None, query_params=None, header_params=None,
body=None, post_params=None, files=None,
response_types_map=None, auth_settings=None,
async_req=None, _return_http_data_only=None,
collection_formats=None,_preload_content=True,
_request_timeout=None, _host=None, _request_auth=None)
| 324 | return self.__deserialize_model(data, klass) |
| 325 | |
| 326 | def call_api(self, resource_path, method, |
| 327 | path_params=None, query_params=None, header_params=None, |
| 328 | body=None, post_params=None, files=None, |
| 329 | response_types_map=None, auth_settings=None, |
| 330 | async_req=None, _return_http_data_only=None, |
| 331 | collection_formats=None,_preload_content=True, |
| 332 | _request_timeout=None, _host=None, _request_auth=None): |
| 333 | """Makes the HTTP request (synchronous) and returns deserialized data. |
| 334 | |
| 335 | To make an async_req request, set the async_req parameter. |
| 336 | |
| 337 | :param resource_path: Path to method endpoint. |
| 338 | :param method: Method to call. |
| 339 | :param path_params: Path parameters in the url. |
| 340 | :param query_params: Query parameters in the url. |
| 341 | :param header_params: Header parameters to be |
| 342 | placed in the request header. |
| 343 | :param body: Request body. |
| 344 | :param post_params dict: Request post form parameters, |
| 345 | for `application/x-www-form-urlencoded`, `multipart/form-data`. |
| 346 | :param auth_settings list: Auth Settings names for the request. |
| 347 | :param response: Response data type. |
| 348 | :param files dict: key -> filename, value -> filepath, |
| 349 | for `multipart/form-data`. |
| 350 | :param async_req bool: execute request asynchronously |
| 351 | :param _return_http_data_only: response data without head status code |
| 352 | and headers |
| 353 | :param collection_formats: dict of collection formats for path, query, |
| 354 | header, and post parameters. |
| 355 | :param _preload_content: if False, the urllib3.HTTPResponse object will |
| 356 | be returned without reading/decoding response |
| 357 | data. Default is True. |
| 358 | :param _request_timeout: timeout setting for this request. If one |
| 359 | number provided, it will be total request |
| 360 | timeout. It can also be a pair (tuple) of |
| 361 | (connection, read) timeouts. |
| 362 | :param _request_auth: set to override the auth_settings for an a single |
| 363 | request; this effectively ignores the authentication |
| 364 | in the spec for a single request. |
| 365 | :type _request_token: dict, optional |
| 366 | :return: |
| 367 | If async_req parameter is True, |
| 368 | the request will be called asynchronously. |
| 369 | The method will return the request thread. |
| 370 | If parameter async_req is False or missing, |
| 371 | then the method will return the response directly. |
| 372 | """ |
| 373 | if not async_req: |
| 374 | return self.__call_api(resource_path, method, |
| 375 | path_params, query_params, header_params, |
| 376 | body, post_params, files, |
| 377 | response_types_map, auth_settings, |
| 378 | _return_http_data_only, collection_formats, |
| 379 | _preload_content, _request_timeout, _host, |
| 380 | _request_auth) |
| 381 | |
| 382 | return self.pool.apply_async(self.__call_api, (resource_path, |
| 383 | method, path_params, |
no test coverage detected