@@ -157,13 +157,25 @@ class Configuration:
157157 string values to replace variables in templated server configuration.
158158 The validation of enums is performed for variables with defined enum
159159 values before.
160+ :param verify_ssl: bool - Set this to false to skip verifying SSL certificate
161+ when calling API from https server.
160162 :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
161163 in PEM format.
162164 :param retries: int | urllib3.util.retry.Retry - Retry configuration.
163165 :param ca_cert_data: verify the peer using concatenated CA certificate data
164166 in PEM (str) or DER (bytes) format.
165167 :param cert_file: the path to a client certificate file, for mTLS.
166168 :param key_file: the path to a client key file, for mTLS.
169+ :param assert_hostname: Set this to True/False to enable/disable SSL hostname verification.
170+ :param tls_server_name: SSL/TLS Server Name Indication (SNI). Set this to the SNI value expected by the server.
171+ :param connection_pool_maxsize: Connection pool max size. None in the constructor is coerced to 100 for async and cpu_count * 5 for sync.
172+ :param proxy: Proxy URL.
173+ :param proxy_headers: Proxy headers.
174+ :param safe_chars_for_path_param: Safe characters for path parameter encoding.
175+ :param client_side_validation: Enable client-side validation. Default True.
176+ :param socket_options: Options to pass down to the underlying urllib3 socket.
177+ :param datetime_format: Datetime format string for serialization.
178+ :param date_format: Date format string for serialization.
167179
168180 :Example:
169181
@@ -207,6 +219,17 @@ def __init__(
207219 ca_cert_data : Optional [Union [str , bytes ]] = None ,
208220 cert_file : Optional [str ]= None ,
209221 key_file : Optional [str ]= None ,
222+ verify_ssl : bool = True ,
223+ assert_hostname : Optional [bool ]= None ,
224+ tls_server_name : Optional [str ]= None ,
225+ connection_pool_maxsize : Optional [int ]= None ,
226+ proxy : Optional [str ]= None ,
227+ proxy_headers : Optional [Any ]= None ,
228+ safe_chars_for_path_param : str = '' ,
229+ client_side_validation : bool = True ,
230+ socket_options : Optional [Any ]= None ,
231+ datetime_format : str = "%Y-%m-%dT%H:%M:%S.%f%z" ,
232+ date_format : str = "%Y-%m-%d" ,
210233 * ,
211234 debug : Optional [bool ] = None ,
212235 ) -> None :
@@ -276,7 +299,7 @@ def __init__(
276299 """Debug switch
277300 """
278301
279- self .verify_ssl = True
302+ self .verify_ssl = verify_ssl
280303 """SSL/TLS verification
281304 Set this to false to skip verifying SSL certificate when calling API
282305 from https server.
@@ -294,46 +317,43 @@ def __init__(
294317 self .key_file = key_file
295318 """client key file
296319 """
297- self .assert_hostname = None
320+ self .assert_hostname = assert_hostname
298321 """Set this to True/False to enable/disable SSL hostname verification.
299322 """
300- self .tls_server_name = None
323+ self .tls_server_name = tls_server_name
301324 """SSL/TLS Server Name Indication (SNI)
302325 Set this to the SNI value expected by the server.
303326 """
304327
305- self .connection_pool_maxsize = multiprocessing .cpu_count () * 5
328+ self .connection_pool_maxsize = connection_pool_maxsize if connection_pool_maxsize is not None else multiprocessing .cpu_count () * 5
306329 """urllib3 connection pool's maximum number of connections saved
307- per pool. urllib3 uses 1 connection as default value, but this is
308- not the best value when you are making a lot of possibly parallel
309- requests to the same host, which is often the case here.
310- cpu_count * 5 is used as default value to increase performance.
330+ per pool. None in the constructor is coerced to cpu_count * 5.
311331 """
312332
313- self .proxy : Optional [ str ] = None
333+ self .proxy = proxy
314334 """Proxy URL
315335 """
316- self .proxy_headers = None
336+ self .proxy_headers = proxy_headers
317337 """Proxy headers
318338 """
319- self .safe_chars_for_path_param = ''
339+ self .safe_chars_for_path_param = safe_chars_for_path_param
320340 """Safe chars for path_param
321341 """
322342 self .retries = retries
323343 """Retry configuration
324344 """
325345 # Enable client side validation
326- self .client_side_validation = True
346+ self .client_side_validation = client_side_validation
327347
328- self .socket_options = None
348+ self .socket_options = socket_options
329349 """Options to pass down to the underlying urllib3 socket
330350 """
331351
332- self .datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z"
352+ self .datetime_format = datetime_format
333353 """datetime format
334354 """
335355
336- self .date_format = "%Y-%m-%d"
356+ self .date_format = date_format
337357 """date format
338358 """
339359
0 commit comments