Ë
    €Ïv
  ã                   óL   — d Z ddlmZ ddlmZ ddlmZ ddlmZ 	 	 	 	 	 	 dd„Zy)	z8A module to get a transport object for making API calls.é    )Úabsolute_import)Údivision)Úunicode_literals)ÚbaseNc                 ó  — t        j                  «       r.ddlm} |j	                  | |||¬«      }|j                  ||¬«      S ddlm} |j                  | ||¬«      }	|	j                  j                  j                  d|||df«       |	S )aè  Get an unauthenticated transport client for use with apitools.

  Args:
    timeout: double, The request timeout in seconds.  This is the
      socket level timeout.  If timeout is None, timeout is infinite.  If
      default argument 'unset' is given, a sensible default is selected.
    response_encoding: str, the encoding to use to decode the response.
    ca_certs: str, absolute filename of a ca_certs file that overrides the
      default
    client_certificate: str, absolute filename of a client_certificate file
    client_key: str, absolute filename of a client_key file
    client_cert_domain: str, domain we are connecting to (used only by httplib2)

  Returns:
    1. A httplib2.Http-like object backed by httplib2 or requests.
  r   )Úrequests)ÚtimeoutÚca_certsÚclient_certificateÚ
client_key)Úresponse_encoding)Úhttp)r	   r   r
   Ú )r   ÚUseRequestsÚgooglecloudsdk.corer   Ú
GetSessionÚGetApitoolsRequestsr   ÚHttpÚcertificatesÚcredentialsÚinsert)
r	   r   r
   r   r   Úclient_cert_domainr   Úsessionr   Úhttp_clients
             ú%lib/googlecloudsdk/core/transports.pyÚGetApitoolsTransportr      s¨   € ô, 
×ÑÔå,Ø×!Ñ!ØØØ-Øð	 "ó €Gð ×'Ñ'ØÐ#4ð (ó 6ð 6õ )Ø—)‘)ØÐ+<Àxð ó Q€Kð ×Ñ×(Ñ(×/Ñ/Ø	Ð 
Ð,>ÀÐCôEàÐó    )ÚunsetNNNNN)Ú__doc__Ú
__future__r   r   r   Úgooglecloudsdk.callioper   r   © r   r   Ú<module>r#      s1   ðñ  ?õ 'Ý Ý 'å (ð ")Ø+/Ø"&Ø,0Ø$(Ø,0ô)r   