Expose mtls certificate config params in python and php configuration templates (#22229)

* Expose mtls config params in python template

* Expose certFile and keyFile configuration items to support mtls in php generated client

* Regenerate of examples
This commit is contained in:
Eddie Sholl
2025-10-28 15:33:05 +11:00
committed by GitHub
parent 31e462dc3e
commit 68b0dfe6d1
18 changed files with 277 additions and 14 deletions

View File

@@ -165,6 +165,8 @@ class Configuration:
:param retries: Number of retries for API requests.
:param ca_cert_data: verify the peer using concatenated CA certificate data
in PEM (str) or DER (bytes) format.
:param cert_file: the path to a client certificate file, for mTLS.
:param key_file: the path to a client key file, for mTLS.
:Example:
@@ -203,6 +205,8 @@ conf = openapi_client.Configuration(
ssl_ca_cert: Optional[str]=None,
retries: Optional[int] = None,
ca_cert_data: Optional[Union[str, bytes]] = None,
cert_file: Optional[str]=None,
key_file: Optional[str]=None,
*,
debug: Optional[bool] = None,
) -> None:
@@ -284,10 +288,10 @@ conf = openapi_client.Configuration(
"""Set this to verify the peer using PEM (str) or DER (bytes)
certificate data.
"""
self.cert_file = None
self.cert_file = cert_file
"""client certificate file
"""
self.key_file = None
self.key_file = key_file
"""client key file
"""
self.assert_hostname = None