
    9i              	           S r SSKJr  SSKJr  SSKJr  SSKrSSKrSSK	J
r
  SSKJr   " S S	\5      r\R                  R                  r\R"                  R$                  rS
rSrSr\" \\\\\\
" 5       S9rg)z;
This module defines a common configuration class for BCE.
    )	iteritems)str)bytesN)BackOffRetryPolicy)compatc                   H    \ rS rSrSr                SS jrS rSrg)BceClientConfiguration   zConfiguration of Bce client.Nc                 T   Xl         Ub  [        R                  " U5      OUU l        X0l        X@l        XPl        X`l        Xpl        Xl	        Xl
        Uc  [        5       U l        OXl        Xl        Xl        Xl        Ub  [        R                  " U5      OUU l        Xl        UU l        g )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                    a/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/baidubce/bce_client_configuration.py__init__BceClientConfiguration.__init__   s    $ '=E=Q//9W_ +F(**$$ 2 4D ,,*!2KZKfv66Gl{$8!"4    c                 f    [        UR                  5       H  u  p#Uc  M
  X0R                  U'   M     g)z

:param other:
:return:
N)r   __dict__)r   otherkvs       r   merge_non_none_values,BceClientConfiguration.merge_non_none_valuesC   s*     enn-DA}#$a  .r!   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )NNNNNNNNNFNNNFFT)__name__
__module____qualname____firstlineno____doc__r   r'   __static_attributes__ r!   r   r	   r	      sB    & "-1##" $$!%  #(&+$(!$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%V 1%h $$)) (('0 $# ( ' D''#%'r!   