Skip to content

Commit aedea6c

Browse files
author
totvslabs
committed
AlertManager release update
1 parent e7e8b67 commit aedea6c

File tree

5 files changed

+32
-31
lines changed

5 files changed

+32
-31
lines changed

labs_alert_manager_client/api/channels_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def delete_policy_channels_delete_with_http_info(self, id : StrictStr, **kwargs)
142142

143143
# process the path parameters
144144
_path_params = {}
145-
if _params['id']:
145+
if _params['id'] is not None:
146146
_path_params['id'] = _params['id']
147147

148148

@@ -280,7 +280,7 @@ def get_policy_channels_get_with_http_info(self, id : StrictStr, **kwargs) -> Ap
280280

281281
# process the path parameters
282282
_path_params = {}
283-
if _params['id']:
283+
if _params['id'] is not None:
284284
_path_params['id'] = _params['id']
285285

286286

@@ -829,7 +829,7 @@ def put_policy_channels_put_with_http_info(self, id : StrictStr, request_body :
829829

830830
# process the path parameters
831831
_path_params = {}
832-
if _params['id']:
832+
if _params['id'] is not None:
833833
_path_params['id'] = _params['id']
834834

835835

labs_alert_manager_client/api/events_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def delete_events_parameters_delete_with_http_info(self, app_key : StrictStr, **
142142

143143
# process the path parameters
144144
_path_params = {}
145-
if _params['app_key']:
145+
if _params['app_key'] is not None:
146146
_path_params['app_key'] = _params['app_key']
147147

148148

@@ -280,7 +280,7 @@ def get_events_get_with_http_info(self, id : StrictStr, **kwargs) -> ApiResponse
280280

281281
# process the path parameters
282282
_path_params = {}
283-
if _params['id']:
283+
if _params['id'] is not None:
284284
_path_params['id'] = _params['id']
285285

286286

labs_alert_manager_client/api/notifications_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def get_notification_log_get_with_http_info(self, id : StrictStr, **kwargs) -> A
140140

141141
# process the path parameters
142142
_path_params = {}
143-
if _params['id']:
143+
if _params['id'] is not None:
144144
_path_params['id'] = _params['id']
145145

146146

@@ -408,7 +408,7 @@ def post_notification_log_resend_with_http_info(self, id : StrictStr, **kwargs)
408408

409409
# process the path parameters
410410
_path_params = {}
411-
if _params['id']:
411+
if _params['id'] is not None:
412412
_path_params['id'] = _params['id']
413413

414414

labs_alert_manager_client/api/policies_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def delete_policies_delete_with_http_info(self, id : StrictStr, **kwargs) -> Api
142142

143143
# process the path parameters
144144
_path_params = {}
145-
if _params['id']:
145+
if _params['id'] is not None:
146146
_path_params['id'] = _params['id']
147147

148148

@@ -280,7 +280,7 @@ def get_policies_get_with_http_info(self, id : StrictStr, **kwargs) -> ApiRespon
280280

281281
# process the path parameters
282282
_path_params = {}
283-
if _params['id']:
283+
if _params['id'] is not None:
284284
_path_params['id'] = _params['id']
285285

286286

@@ -691,7 +691,7 @@ def put_policies_put_with_http_info(self, id : StrictStr, request_body : Optiona
691691

692692
# process the path parameters
693693
_path_params = {}
694-
if _params['id']:
694+
if _params['id'] is not None:
695695
_path_params['id'] = _params['id']
696696

697697

labs_alert_manager_client/api_client.py

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def __call_api(
222222

223223
self.last_response = response_data
224224

225-
return_data = None # assuming derialization is not needed
225+
return_data = None # assuming deserialization is not needed
226226
# data needs deserialization or returns HTTP data (deserialized) only
227227
if _preload_content or _return_http_data_only:
228228
response_type = response_types_map.get(str(response_data.status), None)
@@ -405,27 +405,28 @@ def call_api(self, resource_path, method,
405405
If parameter async_req is False or missing,
406406
then the method will return the response directly.
407407
"""
408+
args = (
409+
resource_path,
410+
method,
411+
path_params,
412+
query_params,
413+
header_params,
414+
body,
415+
post_params,
416+
files,
417+
response_types_map,
418+
auth_settings,
419+
_return_http_data_only,
420+
collection_formats,
421+
_preload_content,
422+
_request_timeout,
423+
_host,
424+
_request_auth,
425+
)
408426
if not async_req:
409-
return self.__call_api(resource_path, method,
410-
path_params, query_params, header_params,
411-
body, post_params, files,
412-
response_types_map, auth_settings,
413-
_return_http_data_only, collection_formats,
414-
_preload_content, _request_timeout, _host,
415-
_request_auth)
416-
417-
return self.pool.apply_async(self.__call_api, (resource_path,
418-
method, path_params,
419-
query_params,
420-
header_params, body,
421-
post_params, files,
422-
response_types_map,
423-
auth_settings,
424-
_return_http_data_only,
425-
collection_formats,
426-
_preload_content,
427-
_request_timeout,
428-
_host, _request_auth))
427+
return self.__call_api(*args)
428+
429+
return self.pool.apply_async(self.__call_api, args)
429430

430431
def request(self, method, url, query_params=None, headers=None,
431432
post_params=None, body=None, _preload_content=True,

0 commit comments

Comments
 (0)