diff --git a/modules/openapi-generator/src/main/resources/python/configuration.mustache b/modules/openapi-generator/src/main/resources/python/configuration.mustache index b6219f987cd..a1a7e9babf6 100644 --- a/modules/openapi-generator/src/main/resources/python/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python/configuration.mustache @@ -98,6 +98,8 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)): # Proxy URL self.proxy = None + # Proxy headers + self.proxy_headers = None # Safe chars for path_param self.safe_chars_for_path_param = '' # Adding retries to override urllib3 default value 3 diff --git a/modules/openapi-generator/src/main/resources/python/rest.mustache b/modules/openapi-generator/src/main/resources/python/rest.mustache index 0ce998c5f96..98f2c502a91 100644 --- a/modules/openapi-generator/src/main/resources/python/rest.mustache +++ b/modules/openapi-generator/src/main/resources/python/rest.mustache @@ -84,6 +84,7 @@ class RESTClientObject(object): cert_file=configuration.cert_file, key_file=configuration.key_file, proxy_url=configuration.proxy, + proxy_headers=configuration.proxy_headers, **addition_pool_args ) else: diff --git a/samples/client/petstore/python-asyncio/petstore_api/configuration.py b/samples/client/petstore/python-asyncio/petstore_api/configuration.py index 90b97758868..927c91d783f 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/configuration.py +++ b/samples/client/petstore/python-asyncio/petstore_api/configuration.py @@ -98,6 +98,8 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)): # Proxy URL self.proxy = None + # Proxy headers + self.proxy_headers = None # Safe chars for path_param self.safe_chars_for_path_param = '' # Adding retries to override urllib3 default value 3 diff --git a/samples/client/petstore/python-tornado/petstore_api/configuration.py b/samples/client/petstore/python-tornado/petstore_api/configuration.py index 90b97758868..927c91d783f 100644 --- a/samples/client/petstore/python-tornado/petstore_api/configuration.py +++ b/samples/client/petstore/python-tornado/petstore_api/configuration.py @@ -98,6 +98,8 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)): # Proxy URL self.proxy = None + # Proxy headers + self.proxy_headers = None # Safe chars for path_param self.safe_chars_for_path_param = '' # Adding retries to override urllib3 default value 3 diff --git a/samples/client/petstore/python/petstore_api/configuration.py b/samples/client/petstore/python/petstore_api/configuration.py index 90b97758868..927c91d783f 100644 --- a/samples/client/petstore/python/petstore_api/configuration.py +++ b/samples/client/petstore/python/petstore_api/configuration.py @@ -98,6 +98,8 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)): # Proxy URL self.proxy = None + # Proxy headers + self.proxy_headers = None # Safe chars for path_param self.safe_chars_for_path_param = '' # Adding retries to override urllib3 default value 3 diff --git a/samples/client/petstore/python/petstore_api/rest.py b/samples/client/petstore/python/petstore_api/rest.py index acae21745af..e1e032711e7 100644 --- a/samples/client/petstore/python/petstore_api/rest.py +++ b/samples/client/petstore/python/petstore_api/rest.py @@ -92,6 +92,7 @@ class RESTClientObject(object): cert_file=configuration.cert_file, key_file=configuration.key_file, proxy_url=configuration.proxy, + proxy_headers=configuration.proxy_headers, **addition_pool_args ) else: diff --git a/samples/openapi3/client/petstore/python/petstore_api/configuration.py b/samples/openapi3/client/petstore/python/petstore_api/configuration.py index d11d858b866..f023eb78382 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python/petstore_api/configuration.py @@ -98,6 +98,8 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)): # Proxy URL self.proxy = None + # Proxy headers + self.proxy_headers = None # Safe chars for path_param self.safe_chars_for_path_param = '' # Adding retries to override urllib3 default value 3 diff --git a/samples/openapi3/client/petstore/python/petstore_api/rest.py b/samples/openapi3/client/petstore/python/petstore_api/rest.py index acae21745af..e1e032711e7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/rest.py +++ b/samples/openapi3/client/petstore/python/petstore_api/rest.py @@ -92,6 +92,7 @@ class RESTClientObject(object): cert_file=configuration.cert_file, key_file=configuration.key_file, proxy_url=configuration.proxy, + proxy_headers=configuration.proxy_headers, **addition_pool_args ) else: