configuration module
Configuration
Parameters
host=None
api_key=None
api_key_prefix=None
username=None
password=None
access_token=None
server_index=None
server_variables=None
server_operation_index=None
server_operation_variables=None
ssl_ca_cert=None
Instance variables
access_token
Access tokenassert_hostname
Set this to True/False to enable/disable SSL hostname verification.cert_file
client certificate fileconnection_pool_maxsize
urllib3 connection pool's maximum number of connections saved per pool. urllib3 uses 1 connection as default value, but this is not the best value when you are making a lot of possibly parallel requests to the same host, which is often the case here. cpu_count * 5 is used as default value to increase performance.debug
Debug switchhost
Return generated host.key_file
client key filelogger
Logging Settingslogger_file
Debug file locationlogger_file_handler
Log file handlerlogger_format
Log formatlogger_stream_handler
Log stream handlerpassword
Password for HTTP basic authenticationproxy
Proxy URLproxy_headers
Proxy headersrefresh_api_key_hook
function hook to refresh API key if expiredretries
Adding retries to override urllib3 default value 3safe_chars_for_path_param
Safe chars for path_paramserver_operation_index
Default server indexserver_operation_variables
Default server variablessocket_options
Options to pass down to the underlying urllib3 socketssl_ca_cert
Set this to customize the certificate file to verify the peer.temp_folder_path
Temp file folder for downloading filesusername
Username for HTTP basic authenticationverify_ssl
SSL/TLS verification Set this to false to skip verifying SSL certificate when calling API from https server.
Static methods
get_default
Return the default configuration.
This method returns newly created, based on default constructor, object of Configuration class or returns a copy of default configuration.
get_default_copy
Deprecated. Please use get_default
instead.
Deprecated. Please use get_default
instead.
set_default
Set default instance of configuration.
It stores default configuration, which can be returned by get_default_copy method.
Parameters
default
Methods
auth_settings
Gets Auth Settings dict for api client.
Parameters
self
get_api_key_with_prefix
Gets API key (with prefix if set).
Parameters
self
identifier
alias=None
get_basic_auth_token
Gets HTTP basic authentication header (string).
Parameters
self
get_host_from_settings
Gets host URL based on the index and variables
Parameters
self
index
variables=None
servers=None
get_host_settings
Gets an array of host settings
Parameters
self
to_debug_report
Gets the essential information for debugging.
Parameters
self
Last updated