
    hjB                        d Z ddlZddlmZmZ ddlZddlmZmZm	Z	 e G d de                      Z
e G d de                      Z G d	 d
e          Zdede	e
df         deddfdZdede	edf         deddfdZdS )zACode generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.    N)Protocolruntime_checkable)AnyOptionalUnionc                   \   e Zd Zdej        ej        ddej        dedeej        j	        ej
        j        df         deeej
        j        f         dej        f
d	Zdddddddej        dd
	dedej        j        deej        j                 deej        j                 deej        j                 dee         deej        j                 deej        j                 deej        j                 deej        j        ej
        j        f         deej        j                 dej        fdZddZdS )
HttpClientFstreamauthfollow_redirectsrequestr   r   Nr   returnc                    d S N selfr   r   r   r   s        a/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/google/genai/_gaos/httpclient.pysendzHttpClient.send   s	     	    	contentdatafilesjsonparamsheaderscookiestimeout
extensionsmethodurlr   r   r   r   r   r   r   r    r!   c       	             d S r   r   r   r"   r#   r   r   r   r   r   r   r   r    r!   s               r   build_requestzHttpClient.build_request*   	    " 	r   c                     d S r   r   r   s    r   closezHttpClient.close=   s    r   r   N)__name__
__module____qualname__httpxUSE_CLIENT_DEFAULTRequestboolr   _types	AuthTypes_clientUseClientDefaultResponser   strURLTypesr   RequestContentRequestDataRequestFilesr   QueryParamTypesHeaderTypesCookieTypesTimeoutTypesRequestExtensionsr&   r*   r   r   r   r	   r	               $ $   	
 L"EM$BDH
  %-00
 
   & :>3759"9=6:6: $?C   \"
 %,56 u|/0 12 sm 56 %,23 %,23 L%u}'EE
 U\;<  
!   &     r   r	   c                   \   e Zd Zdej        ej        ddej        dedeej        j	        ej
        j        df         deeej
        j        f         dej        f
d	Zdddddddej        dd
	dedej        j        deej        j                 deej        j                 deej        j                 dee         deej        j                 deej        j                 deej        j                 deej        j        ej
        j        f         deej        j                 dej        fdZddZdS )AsyncHttpClientFr
   r   r   r   Nr   r   c                
   K   d S r   r   r   s        r   r   zAsyncHttpClient.sendC   s       	r   r   r"   r#   r   r   r   r   r   r   r   r    r!   c       	             d S r   r   r%   s               r   r&   zAsyncHttpClient.build_requestQ   r'   r   c                 
   K   d S r   r   r)   s    r   aclosezAsyncHttpClient.aclosed   s      r   r+   )r,   r-   r.   r/   r0   r1   r2   r   r3   r4   r5   r6   r7   r   r8   r9   r   r:   r;   r<   r   r=   r>   r?   r@   rA   r&   rH   r   r   r   rD   rD   A   rB   r   rD   c                   D    e Zd ZU eedf         ed<   eedf         ed<   dS )ClientOwnerNclientasync_client)r,   r-   r.   r   r	   __annotations__rD   r   r   r   rJ   rJ   h   s>         *d"####-......r   rJ   ownersync_clientsync_client_suppliedr   c                 p    d| _         |*|s*	 |                                 dS # t          $ r Y dS w xY wdS dS z
    A finalizer function that is meant to be used with weakref.finalize to close
    httpx clients used by an SDK so that underlying resources can be garbage
    collected.
    N)rK   r*   	Exception)rN   rO   rP   s      r   close_clientsrT   m   sd     EL';	 	 	 	DD	 s   # 
11rL   async_client_suppliedc                 .   d| _         ||s	 t          j                    }t          j        |                                |           dS # t
          $ r= 	 t          j        |                                           Y dS # t
          $ r Y Y dS w xY ww xY wdS dS rR   )rL   asyncioget_running_looprun_coroutine_threadsaferH   RuntimeErrorrun)rN   rL   rU   loops       r   close_clients_asyncr]      s     E(=	+--D,\-@-@-B-BDIIIII 	 	 	L//11222222   		  s)   :A	 	
B&A==
BBBB)__doc__rW   typing_extensionsr   r   r/   typingr   r   r   r	   rD   rJ   r2   rT   r]   r   r   r   <module>ra      s|  " H G  9 9 9 9 9 9 9 9  ' ' ' ' ' ' ' ' ' ' # # # # # # # #L # # # # #h # # #L/ / / / /( / / /
%*:t+;%<TX	   &-.   
	     r   