diff --git a/labs_alert_manager_client/api/channels_api.py b/labs_alert_manager_client/api/channels_api.py index 3cd8467..250bc9b 100644 --- a/labs_alert_manager_client/api/channels_api.py +++ b/labs_alert_manager_client/api/channels_api.py @@ -142,7 +142,7 @@ def delete_policy_channels_delete_with_http_info(self, id : StrictStr, **kwargs) # process the path parameters _path_params = {} - if _params['id']: + if _params['id'] is not None: _path_params['id'] = _params['id'] @@ -280,7 +280,7 @@ def get_policy_channels_get_with_http_info(self, id : StrictStr, **kwargs) -> Ap # process the path parameters _path_params = {} - if _params['id']: + if _params['id'] is not None: _path_params['id'] = _params['id'] @@ -829,7 +829,7 @@ def put_policy_channels_put_with_http_info(self, id : StrictStr, request_body : # process the path parameters _path_params = {} - if _params['id']: + if _params['id'] is not None: _path_params['id'] = _params['id'] diff --git a/labs_alert_manager_client/api/events_api.py b/labs_alert_manager_client/api/events_api.py index 507fe50..7593fef 100644 --- a/labs_alert_manager_client/api/events_api.py +++ b/labs_alert_manager_client/api/events_api.py @@ -142,7 +142,7 @@ def delete_events_parameters_delete_with_http_info(self, app_key : StrictStr, ** # process the path parameters _path_params = {} - if _params['app_key']: + if _params['app_key'] is not None: _path_params['app_key'] = _params['app_key'] @@ -280,7 +280,7 @@ def get_events_get_with_http_info(self, id : StrictStr, **kwargs) -> ApiResponse # process the path parameters _path_params = {} - if _params['id']: + if _params['id'] is not None: _path_params['id'] = _params['id'] diff --git a/labs_alert_manager_client/api/notifications_api.py b/labs_alert_manager_client/api/notifications_api.py index e59553f..e171f7d 100644 --- a/labs_alert_manager_client/api/notifications_api.py +++ b/labs_alert_manager_client/api/notifications_api.py @@ -140,7 +140,7 @@ def get_notification_log_get_with_http_info(self, id : StrictStr, **kwargs) -> A # process the path parameters _path_params = {} - if _params['id']: + if _params['id'] is not None: _path_params['id'] = _params['id'] @@ -408,7 +408,7 @@ def post_notification_log_resend_with_http_info(self, id : StrictStr, **kwargs) # process the path parameters _path_params = {} - if _params['id']: + if _params['id'] is not None: _path_params['id'] = _params['id'] diff --git a/labs_alert_manager_client/api/policies_api.py b/labs_alert_manager_client/api/policies_api.py index f143a0d..cbdd569 100644 --- a/labs_alert_manager_client/api/policies_api.py +++ b/labs_alert_manager_client/api/policies_api.py @@ -142,7 +142,7 @@ def delete_policies_delete_with_http_info(self, id : StrictStr, **kwargs) -> Api # process the path parameters _path_params = {} - if _params['id']: + if _params['id'] is not None: _path_params['id'] = _params['id'] @@ -280,7 +280,7 @@ def get_policies_get_with_http_info(self, id : StrictStr, **kwargs) -> ApiRespon # process the path parameters _path_params = {} - if _params['id']: + if _params['id'] is not None: _path_params['id'] = _params['id'] @@ -691,7 +691,7 @@ def put_policies_put_with_http_info(self, id : StrictStr, request_body : Optiona # process the path parameters _path_params = {} - if _params['id']: + if _params['id'] is not None: _path_params['id'] = _params['id'] diff --git a/labs_alert_manager_client/api_client.py b/labs_alert_manager_client/api_client.py index cb86fc5..22dcf09 100644 --- a/labs_alert_manager_client/api_client.py +++ b/labs_alert_manager_client/api_client.py @@ -222,7 +222,7 @@ def __call_api( self.last_response = response_data - return_data = None # assuming derialization is not needed + return_data = None # assuming deserialization is not needed # data needs deserialization or returns HTTP data (deserialized) only if _preload_content or _return_http_data_only: response_type = response_types_map.get(str(response_data.status), None) @@ -405,27 +405,28 @@ def call_api(self, resource_path, method, If parameter async_req is False or missing, then the method will return the response directly. """ + args = ( + resource_path, + method, + path_params, + query_params, + header_params, + body, + post_params, + files, + response_types_map, + auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, + _request_timeout, + _host, + _request_auth, + ) if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_types_map, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout, _host, - _request_auth) - - return self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, - query_params, - header_params, body, - post_params, files, - response_types_map, - auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, - _request_timeout, - _host, _request_auth)) + return self.__call_api(*args) + + return self.pool.apply_async(self.__call_api, args) def request(self, method, url, query_params=None, headers=None, post_params=None, body=None, _preload_content=True,