Skip to content

Commit

Permalink
AlertManager release update
Browse files Browse the repository at this point in the history
  • Loading branch information
totvslabs committed Sep 22, 2023
1 parent e7e8b67 commit aedea6c
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 31 deletions.
6 changes: 3 additions & 3 deletions labs_alert_manager_client/api/channels_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']


Expand Down Expand Up @@ -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']


Expand Down Expand Up @@ -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']


Expand Down
4 changes: 2 additions & 2 deletions labs_alert_manager_client/api/events_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']


Expand Down Expand Up @@ -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']


Expand Down
4 changes: 2 additions & 2 deletions labs_alert_manager_client/api/notifications_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']


Expand Down Expand Up @@ -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']


Expand Down
6 changes: 3 additions & 3 deletions labs_alert_manager_client/api/policies_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']


Expand Down Expand Up @@ -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']


Expand Down Expand Up @@ -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']


Expand Down
43 changes: 22 additions & 21 deletions labs_alert_manager_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit aedea6c

Please sign in to comment.