o
    R+ i                     @   s   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	 d	eZejjZejjZd
ZdZdZeeeeeee
 dZdS )z;
This module defines a common configuration class for BCE.
    )	iteritems)str)bytesN)BackOffRetryPolicy)compatc                   @   sB   e Zd ZdZ																d	ddZdd ZdS )
BceClientConfigurationzConfiguration of Bce client.NFTc                 C   s   || _ |d urt|n|| _|| _|| _|| _|| _|| _|| _	|| _
|d u r-t | _n|| _|	| _|
| _|| _|d urBt|n|| _|| _|| _d S )N)credentialsr   Z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    r   m/home/app/PaddleOCR-VL-test/.venv_paddleocr/lib/python3.10/site-packages/baidubce/bce_client_configuration.py__init__   s$   

zBceClientConfiguration.__init__c                 C   s*   t |jD ]\}}|dur|| j|< qdS )z1

        :param other:
        :return:
        N)r   __dict__)r   otherkvr   r   r   merge_non_none_valuesC   s
   
z,BceClientConfiguration.merge_non_none_values)NNNNNNNNNFNNNFFT)__name__
__module____qualname____doc__r   r    r   r   r   r   r      s(    
&r   iP  i   i   )r
   r   r   r   r   r   )r$   Zfuture.utilsr   builtinsr   r   Zbaidubce.protocolZbaidubceZbaidubce.regionZbaidubce.retry.retry_policyr   r   objectr   r
   HTTPDEFAULT_PROTOCOLr   ZBEIJINGZDEFAULT_REGIONZ$DEFAULT_CONNECTION_TIMEOUT_IN_MILLISZDEFAULT_SEND_BUF_SIZEZDEFAULT_RECV_BUF_SIZEZDEFAULT_CONFIGr   r   r   r   <module>   s,   4
