@@ -291,7 +291,9 @@ def _create_connection_serialize(
291291 _query_params : List [Tuple [str , str ]] = []
292292 _header_params : Dict [str , Optional [str ]] = _headers or {}
293293 _form_params : List [Tuple [str , str ]] = []
294- _files : Dict [str , str ] = {}
294+ _files : Dict [
295+ str , Union [str , bytes , List [str ], List [bytes ], List [Tuple [str , bytes ]]]
296+ ] = {}
295297 _body_params : Optional [bytes ] = None
296298
297299 # process the path parameters
@@ -308,11 +310,12 @@ def _create_connection_serialize(
308310
309311
310312 # set the HTTP header `Accept`
311- _header_params ['Accept' ] = self .api_client .select_header_accept (
312- [
313- 'application/json'
314- ]
315- )
313+ if 'Accept' not in _header_params :
314+ _header_params ['Accept' ] = self .api_client .select_header_accept (
315+ [
316+ 'application/json'
317+ ]
318+ )
316319
317320 # set the HTTP header `Content-Type`
318321 if _content_type :
@@ -591,7 +594,9 @@ def _create_connection_action_serialize(
591594 _query_params : List [Tuple [str , str ]] = []
592595 _header_params : Dict [str , Optional [str ]] = _headers or {}
593596 _form_params : List [Tuple [str , str ]] = []
594- _files : Dict [str , str ] = {}
597+ _files : Dict [
598+ str , Union [str , bytes , List [str ], List [bytes ], List [Tuple [str , bytes ]]]
599+ ] = {}
595600 _body_params : Optional [bytes ] = None
596601
597602 # process the path parameters
@@ -606,11 +611,12 @@ def _create_connection_action_serialize(
606611
607612
608613 # set the HTTP header `Accept`
609- _header_params ['Accept' ] = self .api_client .select_header_accept (
610- [
611- 'application/json'
612- ]
613- )
614+ if 'Accept' not in _header_params :
615+ _header_params ['Accept' ] = self .api_client .select_header_accept (
616+ [
617+ 'application/json'
618+ ]
619+ )
614620
615621 # set the HTTP header `Content-Type`
616622 if _content_type :
@@ -879,7 +885,9 @@ def _delete_connection_by_uuid_serialize(
879885 _query_params : List [Tuple [str , str ]] = []
880886 _header_params : Dict [str , Optional [str ]] = _headers or {}
881887 _form_params : List [Tuple [str , str ]] = []
882- _files : Dict [str , str ] = {}
888+ _files : Dict [
889+ str , Union [str , bytes , List [str ], List [bytes ], List [Tuple [str , bytes ]]]
890+ ] = {}
883891 _body_params : Optional [bytes ] = None
884892
885893 # process the path parameters
@@ -892,11 +900,12 @@ def _delete_connection_by_uuid_serialize(
892900
893901
894902 # set the HTTP header `Accept`
895- _header_params ['Accept' ] = self .api_client .select_header_accept (
896- [
897- 'application/json'
898- ]
899- )
903+ if 'Accept' not in _header_params :
904+ _header_params ['Accept' ] = self .api_client .select_header_accept (
905+ [
906+ 'application/json'
907+ ]
908+ )
900909
901910
902911 # authentication setting
@@ -1159,7 +1168,9 @@ def _get_connection_by_uuid_serialize(
11591168 _query_params : List [Tuple [str , str ]] = []
11601169 _header_params : Dict [str , Optional [str ]] = _headers or {}
11611170 _form_params : List [Tuple [str , str ]] = []
1162- _files : Dict [str , str ] = {}
1171+ _files : Dict [
1172+ str , Union [str , bytes , List [str ], List [bytes ], List [Tuple [str , bytes ]]]
1173+ ] = {}
11631174 _body_params : Optional [bytes ] = None
11641175
11651176 # process the path parameters
@@ -1176,11 +1187,12 @@ def _get_connection_by_uuid_serialize(
11761187
11771188
11781189 # set the HTTP header `Accept`
1179- _header_params ['Accept' ] = self .api_client .select_header_accept (
1180- [
1181- 'application/json'
1182- ]
1183- )
1190+ if 'Accept' not in _header_params :
1191+ _header_params ['Accept' ] = self .api_client .select_header_accept (
1192+ [
1193+ 'application/json'
1194+ ]
1195+ )
11841196
11851197
11861198 # authentication setting
@@ -1433,7 +1445,9 @@ def _search_connections_serialize(
14331445 _query_params : List [Tuple [str , str ]] = []
14341446 _header_params : Dict [str , Optional [str ]] = _headers or {}
14351447 _form_params : List [Tuple [str , str ]] = []
1436- _files : Dict [str , str ] = {}
1448+ _files : Dict [
1449+ str , Union [str , bytes , List [str ], List [bytes ], List [Tuple [str , bytes ]]]
1450+ ] = {}
14371451 _body_params : Optional [bytes ] = None
14381452
14391453 # process the path parameters
@@ -1446,11 +1460,12 @@ def _search_connections_serialize(
14461460
14471461
14481462 # set the HTTP header `Accept`
1449- _header_params ['Accept' ] = self .api_client .select_header_accept (
1450- [
1451- 'application/json'
1452- ]
1453- )
1463+ if 'Accept' not in _header_params :
1464+ _header_params ['Accept' ] = self .api_client .select_header_accept (
1465+ [
1466+ 'application/json'
1467+ ]
1468+ )
14541469
14551470 # set the HTTP header `Content-Type`
14561471 if _content_type :
@@ -1727,7 +1742,9 @@ def _update_connection_by_uuid_serialize(
17271742 _query_params : List [Tuple [str , str ]] = []
17281743 _header_params : Dict [str , Optional [str ]] = _headers or {}
17291744 _form_params : List [Tuple [str , str ]] = []
1730- _files : Dict [str , str ] = {}
1745+ _files : Dict [
1746+ str , Union [str , bytes , List [str ], List [bytes ], List [Tuple [str , bytes ]]]
1747+ ] = {}
17311748 _body_params : Optional [bytes ] = None
17321749
17331750 # process the path parameters
@@ -1742,11 +1759,12 @@ def _update_connection_by_uuid_serialize(
17421759
17431760
17441761 # set the HTTP header `Accept`
1745- _header_params ['Accept' ] = self .api_client .select_header_accept (
1746- [
1747- 'application/json'
1748- ]
1749- )
1762+ if 'Accept' not in _header_params :
1763+ _header_params ['Accept' ] = self .api_client .select_header_accept (
1764+ [
1765+ 'application/json'
1766+ ]
1767+ )
17501768
17511769 # set the HTTP header `Content-Type`
17521770 if _content_type :
@@ -2003,7 +2021,9 @@ def _validate_connections_serialize(
20032021 _query_params : List [Tuple [str , str ]] = []
20042022 _header_params : Dict [str , Optional [str ]] = _headers or {}
20052023 _form_params : List [Tuple [str , str ]] = []
2006- _files : Dict [str , str ] = {}
2024+ _files : Dict [
2025+ str , Union [str , bytes , List [str ], List [bytes ], List [Tuple [str , bytes ]]]
2026+ ] = {}
20072027 _body_params : Optional [bytes ] = None
20082028
20092029 # process the path parameters
@@ -2016,11 +2036,12 @@ def _validate_connections_serialize(
20162036
20172037
20182038 # set the HTTP header `Accept`
2019- _header_params ['Accept' ] = self .api_client .select_header_accept (
2020- [
2021- 'application/json'
2022- ]
2023- )
2039+ if 'Accept' not in _header_params :
2040+ _header_params ['Accept' ] = self .api_client .select_header_accept (
2041+ [
2042+ 'application/json'
2043+ ]
2044+ )
20242045
20252046 # set the HTTP header `Content-Type`
20262047 if _content_type :
0 commit comments