@@ -282,7 +282,7 @@ def _create_cloud_router_serialize(
282282 _query_params : List [Tuple [str , str ]] = []
283283 _header_params : Dict [str , Optional [str ]] = _headers or {}
284284 _form_params : List [Tuple [str , str ]] = []
285- _files : Dict [str , str ] = {}
285+ _files : Dict [str , Union [ str , bytes ] ] = {}
286286 _body_params : Optional [bytes ] = None
287287
288288 # process the path parameters
@@ -295,11 +295,12 @@ def _create_cloud_router_serialize(
295295
296296
297297 # set the HTTP header `Accept`
298- _header_params ['Accept' ] = self .api_client .select_header_accept (
299- [
300- 'application/json'
301- ]
302- )
298+ if 'Accept' not in _header_params :
299+ _header_params ['Accept' ] = self .api_client .select_header_accept (
300+ [
301+ 'application/json'
302+ ]
303+ )
303304
304305 # set the HTTP header `Content-Type`
305306 if _content_type :
@@ -584,7 +585,7 @@ def _create_cloud_router_action_serialize(
584585 _query_params : List [Tuple [str , str ]] = []
585586 _header_params : Dict [str , Optional [str ]] = _headers or {}
586587 _form_params : List [Tuple [str , str ]] = []
587- _files : Dict [str , str ] = {}
588+ _files : Dict [str , Union [ str , bytes ] ] = {}
588589 _body_params : Optional [bytes ] = None
589590
590591 # process the path parameters
@@ -599,11 +600,12 @@ def _create_cloud_router_action_serialize(
599600
600601
601602 # set the HTTP header `Accept`
602- _header_params ['Accept' ] = self .api_client .select_header_accept (
603- [
604- 'application/json'
605- ]
606- )
603+ if 'Accept' not in _header_params :
604+ _header_params ['Accept' ] = self .api_client .select_header_accept (
605+ [
606+ 'application/json'
607+ ]
608+ )
607609
608610 # set the HTTP header `Content-Type`
609611 if _content_type :
@@ -872,7 +874,7 @@ def _delete_cloud_router_by_uuid_serialize(
872874 _query_params : List [Tuple [str , str ]] = []
873875 _header_params : Dict [str , Optional [str ]] = _headers or {}
874876 _form_params : List [Tuple [str , str ]] = []
875- _files : Dict [str , str ] = {}
877+ _files : Dict [str , Union [ str , bytes ] ] = {}
876878 _body_params : Optional [bytes ] = None
877879
878880 # process the path parameters
@@ -885,11 +887,12 @@ def _delete_cloud_router_by_uuid_serialize(
885887
886888
887889 # set the HTTP header `Accept`
888- _header_params ['Accept' ] = self .api_client .select_header_accept (
889- [
890- 'application/json'
891- ]
892- )
890+ if 'Accept' not in _header_params :
891+ _header_params ['Accept' ] = self .api_client .select_header_accept (
892+ [
893+ 'application/json'
894+ ]
895+ )
893896
894897
895898 # authentication setting
@@ -1161,7 +1164,7 @@ def _get_cloud_router_actions_serialize(
11611164 _query_params : List [Tuple [str , str ]] = []
11621165 _header_params : Dict [str , Optional [str ]] = _headers or {}
11631166 _form_params : List [Tuple [str , str ]] = []
1164- _files : Dict [str , str ] = {}
1167+ _files : Dict [str , Union [ str , bytes ] ] = {}
11651168 _body_params : Optional [bytes ] = None
11661169
11671170 # process the path parameters
@@ -1178,11 +1181,12 @@ def _get_cloud_router_actions_serialize(
11781181
11791182
11801183 # set the HTTP header `Accept`
1181- _header_params ['Accept' ] = self .api_client .select_header_accept (
1182- [
1183- 'application/json'
1184- ]
1185- )
1184+ if 'Accept' not in _header_params :
1185+ _header_params ['Accept' ] = self .api_client .select_header_accept (
1186+ [
1187+ 'application/json'
1188+ ]
1189+ )
11861190
11871191
11881192 # authentication setting
@@ -1435,7 +1439,7 @@ def _get_cloud_router_by_uuid_serialize(
14351439 _query_params : List [Tuple [str , str ]] = []
14361440 _header_params : Dict [str , Optional [str ]] = _headers or {}
14371441 _form_params : List [Tuple [str , str ]] = []
1438- _files : Dict [str , str ] = {}
1442+ _files : Dict [str , Union [ str , bytes ] ] = {}
14391443 _body_params : Optional [bytes ] = None
14401444
14411445 # process the path parameters
@@ -1448,11 +1452,12 @@ def _get_cloud_router_by_uuid_serialize(
14481452
14491453
14501454 # set the HTTP header `Accept`
1451- _header_params ['Accept' ] = self .api_client .select_header_accept (
1452- [
1453- 'application/json'
1454- ]
1455- )
1455+ if 'Accept' not in _header_params :
1456+ _header_params ['Accept' ] = self .api_client .select_header_accept (
1457+ [
1458+ 'application/json'
1459+ ]
1460+ )
14561461
14571462
14581463 # authentication setting
@@ -1708,7 +1713,7 @@ def _get_cloud_router_package_by_code_serialize(
17081713 _query_params : List [Tuple [str , str ]] = []
17091714 _header_params : Dict [str , Optional [str ]] = _headers or {}
17101715 _form_params : List [Tuple [str , str ]] = []
1711- _files : Dict [str , str ] = {}
1716+ _files : Dict [str , Union [ str , bytes ] ] = {}
17121717 _body_params : Optional [bytes ] = None
17131718
17141719 # process the path parameters
@@ -1721,11 +1726,12 @@ def _get_cloud_router_package_by_code_serialize(
17211726
17221727
17231728 # set the HTTP header `Accept`
1724- _header_params ['Accept' ] = self .api_client .select_header_accept (
1725- [
1726- 'application/json'
1727- ]
1728- )
1729+ if 'Accept' not in _header_params :
1730+ _header_params ['Accept' ] = self .api_client .select_header_accept (
1731+ [
1732+ 'application/json'
1733+ ]
1734+ )
17291735
17301736
17311737 # authentication setting
@@ -1991,7 +1997,7 @@ def _get_cloud_router_packages_serialize(
19911997 _query_params : List [Tuple [str , str ]] = []
19921998 _header_params : Dict [str , Optional [str ]] = _headers or {}
19931999 _form_params : List [Tuple [str , str ]] = []
1994- _files : Dict [str , str ] = {}
2000+ _files : Dict [str , Union [ str , bytes ] ] = {}
19952001 _body_params : Optional [bytes ] = None
19962002
19972003 # process the path parameters
@@ -2010,11 +2016,12 @@ def _get_cloud_router_packages_serialize(
20102016
20112017
20122018 # set the HTTP header `Accept`
2013- _header_params ['Accept' ] = self .api_client .select_header_accept (
2014- [
2015- 'application/json'
2016- ]
2017- )
2019+ if 'Accept' not in _header_params :
2020+ _header_params ['Accept' ] = self .api_client .select_header_accept (
2021+ [
2022+ 'application/json'
2023+ ]
2024+ )
20182025
20192026
20202027 # authentication setting
@@ -2286,7 +2293,7 @@ def _search_cloud_router_routes_serialize(
22862293 _query_params : List [Tuple [str , str ]] = []
22872294 _header_params : Dict [str , Optional [str ]] = _headers or {}
22882295 _form_params : List [Tuple [str , str ]] = []
2289- _files : Dict [str , str ] = {}
2296+ _files : Dict [str , Union [ str , bytes ] ] = {}
22902297 _body_params : Optional [bytes ] = None
22912298
22922299 # process the path parameters
@@ -2301,11 +2308,12 @@ def _search_cloud_router_routes_serialize(
23012308
23022309
23032310 # set the HTTP header `Accept`
2304- _header_params ['Accept' ] = self .api_client .select_header_accept (
2305- [
2306- 'application/json'
2307- ]
2308- )
2311+ if 'Accept' not in _header_params :
2312+ _header_params ['Accept' ] = self .api_client .select_header_accept (
2313+ [
2314+ 'application/json'
2315+ ]
2316+ )
23092317
23102318 # set the HTTP header `Content-Type`
23112319 if _content_type :
@@ -2574,7 +2582,7 @@ def _search_cloud_routers_serialize(
25742582 _query_params : List [Tuple [str , str ]] = []
25752583 _header_params : Dict [str , Optional [str ]] = _headers or {}
25762584 _form_params : List [Tuple [str , str ]] = []
2577- _files : Dict [str , str ] = {}
2585+ _files : Dict [str , Union [ str , bytes ] ] = {}
25782586 _body_params : Optional [bytes ] = None
25792587
25802588 # process the path parameters
@@ -2587,11 +2595,12 @@ def _search_cloud_routers_serialize(
25872595
25882596
25892597 # set the HTTP header `Accept`
2590- _header_params ['Accept' ] = self .api_client .select_header_accept (
2591- [
2592- 'application/json'
2593- ]
2594- )
2598+ if 'Accept' not in _header_params :
2599+ _header_params ['Accept' ] = self .api_client .select_header_accept (
2600+ [
2601+ 'application/json'
2602+ ]
2603+ )
25952604
25962605 # set the HTTP header `Content-Type`
25972606 if _content_type :
@@ -2877,7 +2886,7 @@ def _update_cloud_router_by_uuid_serialize(
28772886 _query_params : List [Tuple [str , str ]] = []
28782887 _header_params : Dict [str , Optional [str ]] = _headers or {}
28792888 _form_params : List [Tuple [str , str ]] = []
2880- _files : Dict [str , str ] = {}
2889+ _files : Dict [str , Union [ str , bytes ] ] = {}
28812890 _body_params : Optional [bytes ] = None
28822891
28832892 # process the path parameters
@@ -2892,11 +2901,12 @@ def _update_cloud_router_by_uuid_serialize(
28922901
28932902
28942903 # set the HTTP header `Accept`
2895- _header_params ['Accept' ] = self .api_client .select_header_accept (
2896- [
2897- 'application/json'
2898- ]
2899- )
2904+ if 'Accept' not in _header_params :
2905+ _header_params ['Accept' ] = self .api_client .select_header_accept (
2906+ [
2907+ 'application/json'
2908+ ]
2909+ )
29002910
29012911 # set the HTTP header `Content-Type`
29022912 if _content_type :
0 commit comments