
    rj              	           d Z ddlmZ ddlmZ ddlmZ ddlZddlZddl	m
Z
 ddlmZ  G d d	e          Zej        j        Zej        j        Zd
ZdZdZ eeeeee e
                      ZdS )z;
This module defines a common configuration class for BCE.
    )	iteritems)str)bytesN)BackOffRetryPolicy)compatc                   @    e Zd ZdZ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZd ZdS )BceClientConfigurationzConfiguration of Bce client.NFTc                 j   || _         |t          j        |          n|| _        || _        || _        || _        || _        || _        || _	        || _
        |t                      | _        n|| _        |	| _        |
| _        || _        |t          j        |          n|| _        || _        || _        d S )N)credentialsr   convert_to_bytesendpointprotocolregionconnection_timeout_in_millssend_buf_sizerecv_buf_size
proxy_host
proxy_portr   retry_policysecurity_tokencname_enabledpath_style_enablebackup_endpointauto_follow_redirectunder_line_headers)selfr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   s                    q/lsinfo/ai/hellotax_ai/data_center/backend/venv/lib/python3.11/site-packages/baidubce/bce_client_configuration.py__init__zBceClientConfiguration.__init__   s    $ '=E=Q/999W_ +F(**$$ 2 4 4D ,D,*!2KZKfv6GGGl{$8!"4    c                 R    t          |j                  D ]\  }}|
|| j        |<   dS )z1

        :param other:
        :return:
        N)r   __dict__)r   otherkvs       r   merge_non_none_valuesz,BceClientConfiguration.merge_non_none_valuesC   s=     en-- 	% 	%DAq}#$a 	% 	%r   )NNNNNNNNNFNNNFFT)__name__
__module____qualname____doc__r   r%    r   r   r	   r	      sp        && "-1##" $$!%  #(&+$(!$5 $5 $5 $5L% % % % %r   r	   iP  i   i   )r   r   r   r   r   r   )r)   future.utilsr   builtinsr   r   baidubce.protocolbaidubcebaidubce.regionbaidubce.retry.retry_policyr   r   objectr	   r   HTTPDEFAULT_PROTOCOLr   BEIJINGDEFAULT_REGION$DEFAULT_CONNECTION_TIMEOUT_IN_MILLISDEFAULT_SEND_BUF_SIZEDEFAULT_RECV_BUF_SIZEDEFAULT_CONFIGr*   r   r   <module>r:      s    # " " " " "                     : : : : : :      1% 1% 1% 1% 1%V 1% 1% 1%h $) ('0 $# ( '' D''##%%' ' 'r   