U vi% @ s` d Z ddlmZ ddlZddlZddlZddlZddlZG dd deZ G dd de e dZdS ) a InfluxDB OSS API Service. The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech )absolute_importNc s0 e Zd ZdZ fddZdd Zdd Z ZS )TypeWithDefaultNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. c s t t| ||| d| _dS )zInitialize with defaults.N)superr __init___default)clsnamebasesdct __class__ N/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/configuration.pyr s zTypeWithDefault.__init__c C s" | j dkrt| | _ t| j S )zCall self as a function.N)r type__call__copy)r r r r r # s zTypeWithDefault.__call__c C s t || _dS )z Set dafaults.N)r r )r defaultr r r set_default) s zTypeWithDefault.set_default)__name__ __module____qualname____doc__r r r __classcell__r r r r r s r c @ s e Zd ZdZdd Zedd Zejdd Zedd Zejd d Zed d Z e jdd Z d d Z dd Zdd Zdd Z eedddZedddZdS ) Configurationr c C s d| _ d| _i | _i | _d| _d| _i | _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _t d | _d| _d| _d| _d| _d| _dS )zInitialize configuration.zhttp://localhost/api/v2N z%%(asctime)s %(levelname)s %(message)sFT )hostZtemp_folder_pathapi_keyapi_key_prefixusernamepasswordloggers logger_formatZlogger_stream_handlerlogger_file_handlerlogger_filedebugZ verify_sslZssl_ca_cert cert_fileZ cert_key_fileZcert_key_passwordassert_hostnamessl_contextmultiprocessing cpu_countZconnection_pool_maxsizetimeoutZ auth_basicproxy proxy_headersZsafe_chars_for_path_paramselfr r r r 5 s2 zConfiguration.__init__c C s | j S )Logger file. If the logger_file is None, then add stream handler and remove file handler. Otherwise, add file handler and remove stream handler. :param value: The logger_file path. :type: str )_Configuration__logger_filer/ r r r r% y s zConfiguration.logger_filec C sL || _ | j rHt| j | _| j| j | j D ]\}}|| j q2dS )r1 N) r2 loggingFileHandlerr$ setFormatterlogger_formatterr" items addHandler)r0 value_loggerr r r r% s c C s | j S )bDebug status. :param value: The debug status, True or False. :type: bool )_Configuration__debugr/ r r r r&