
    -pj              	           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                   J    \ rS rSrSr                 SS jrS rSrg)BceClientConfiguration   zConfiguration of Bce client.Nc                    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        Ub   ['        U[(        5      (       d  [+        S5      eUU l        g )Ns"   request_payer must be a bool value)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
isinstancebool	TypeErrorrequest_payer)selfr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    s                     ]/var/www/html/pdf-tiff/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$Zt-L-LABB*    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_valuesG   s*     enn-DA}#$a  .r%   )r   r   r   r   r   r   r   r   r   r   r   r   r    r   r   r   r   )NNNNNNNNNFNNNFFTF)__name__
__module____qualname____firstlineno____doc__r#   r+   __static_attributes__ r%   r"   r	   r	      sE    & "-1##" $$!%  #(&+$($#(+T%r%   r	   iP  i   i   )r   r   r   r   r   r   )r1   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_CONFIGr3   r%   r"   <module>rC      s    #     : 5%V 5%p $$)) (('0 $# ( ' D''#%'r%   