def call_api(self, resource_path, method,<EOL>path_params=None, query_params=None, header_params=None,<EOL>body=None, post_params=None, files=None,<EOL>response_type=None, auth_settings=None, callback=None):
if callback is None:<EOL><INDENT>return self.__call_api(resource_path, method,<EOL>path_params, query_params, header_params,<EOL>body, post_params, files,<EOL>response_type, auth_settings, callback)<EOL><DEDENT>else:<EOL><INDENT>thread = threading.Thread(target=self.__call_api,<EOL>args=(resource_path, method,<EOL>path_params, query_params,<EOL>header_params, body,<EOL>post_params, files,<EOL>response_type, auth_settings,<EOL>callback))<EOL><DEDENT>thread.start()<EOL>return thread<EOL>
Makes the HTTP request (synchronous) and return the deserialized data.
To make an async request, define a function for callback.

:param resource_path: Path to method endpoint.
:param method: Method to call.
:param path_params: Path parameters in the url.
:param query_params: Query parameters in the url.
:param header_params: Header parameters to be
    placed in the request header.
:param body: Request body.
:param post_params dict: Request post form parameters,
    for `application/x-www-form-urlencoded`, `multipart/form-data`.
:param auth_settings list: Auth Settings names for the request.
:param response: Response data type.
:param files dict: key -> filename, value -> filepath,
    for `multipart/form-data`.
:param callback function: Callback function for asynchronous request.
    If provide this parameter,
    the request will be called asynchronously.
:return:
    If provide parameter callback,
    the request will be called asynchronously.
    The method will return the request thread.
    If parameter callback is None,
    then the method will return the response directly.