Ë
    dQêj'  ã                   ó¤   — d Z ddlZddlZddlZddlZddlZddlmZmZ h d£Z	ej                  Zd„ Z G d„ dej                  «      Z G d„ d	«      Zy)
a'  
    Lance Namespace Specification

    This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts:  The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details.  The `servers`, `security`, `paths`, `components/parameters` sections are for the Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. 

    The version of the OpenAPI document: 1.0.0
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
é    N)ÚApiExceptionÚApiValueError>   Úsocks4Úsocks5Úsocks4aÚsocks5hc                 óz   — | €y| j                  d«      }t        |«      dk  ry|d   j                  «       t        v S )NFz://é   r   )ÚsplitÚlenÚlowerÚSUPPORTED_SOCKS_PROXIES)ÚurlÚsplit_sections     úh/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/lance_namespace_urllib3_client/rest.pyÚis_socks_proxy_urlr      sB   € Ø
€{ØØ—I‘I˜eÓ$€MÜ
ˆ=Ó˜AÒØà˜QÑ×%Ñ%Ó'Ô+BÐBÐBó    c                   ó(   — e Zd Zdd„Zd„ Zd„ Zdd„Zy)ÚRESTResponseNc                 ód   — || _         |j                  | _        |j                  | _        d | _        y ©N)ÚresponseÚstatusÚreasonÚdata)ÚselfÚresps     r   Ú__init__zRESTResponse.__init__(   s&   € ØˆŒØ—k‘kˆŒØ—k‘kˆŒØˆ�	r   c                 óh   — | j                   €| j                  j                   | _         | j                   S r   )r   r   ©r   s    r   ÚreadzRESTResponse.read.   s'   € Ø�9‰9ÐØŸ™×*Ñ*ˆDŒIØ�y‰yÐr   c                 ó.   — | j                   j                  S )z-Returns a dictionary of the response headers.)r   Úheadersr    s    r   Ú
getheaderszRESTResponse.getheaders3   s   € à�}‰}×$Ñ$Ð$r   c                 óN   — | j                   j                  j                  ||«      S )z Returns a given response header.)r   r#   Úget)r   ÚnameÚdefaults      r   Ú	getheaderzRESTResponse.getheader7   s   € à�}‰}×$Ñ$×(Ñ(¨¨wÓ7Ð7r   ©ÚreturnNr   )Ú__name__Ú
__module__Ú__qualname__r   r!   r$   r)   © r   r   r   r   &   s   „ óòò
%ô8r   r   c                   ó$   — e Zd Zdd„Z	 	 	 	 dd„Zy)ÚRESTClientObjectNc                 ó  — |j                   rt        j                  }nt        j                  }||j                  |j
                  |j                  |j                  dœ}|j                  �|j                  |d<   |j                  �|j                  |d<   |j                  r|j                  |d<   |j                  �|j                  |d<   |j                  �|j                  |d<   |  |j                  r€t        |j                  «      r2ddlm} |j                  |d	<   |j"                  |d
<    |di |¤Ž| _        y |j                  |d	<   |j"                  |d<   t'        j(                  di |¤Ž| _        y t'        j*                  di |¤Ž| _        y )N)Ú	cert_reqsÚca_certsÚ	cert_fileÚkey_fileÚca_cert_dataÚassert_hostnameÚretriesÚserver_hostnameÚsocket_optionsÚmaxsizer   )ÚSOCKSProxyManagerÚ	proxy_urlr#   Úproxy_headersr/   )Ú
verify_sslÚsslÚCERT_REQUIREDÚ	CERT_NONEÚssl_ca_certr5   r6   r7   r8   r9   Útls_server_namer;   Úconnection_pool_maxsizeÚproxyr   Úurllib3.contrib.socksr=   r?   Úpool_managerÚurllib3ÚProxyManagerÚPoolManager)r   Úconfigurationr3   Ú	pool_argsr=   s        r   r   zRESTClientObject.__init__>   s�  € ð ×#Ò#Ü×)Ñ)‰IäŸ™ˆIð #Ø%×1Ñ1Ø&×0Ñ0Ø%×.Ñ.Ø)×6Ñ6ñ
ˆ	ð ×(Ñ(Ð4à×-Ñ-ð Ð'Ñ(ð × Ñ Ð,Ø#0×#8Ñ#8ˆI�iÑ à×(Ò(Ø+8×+HÑ+HˆIÐ'Ñ(ð ×'Ñ'Ð3Ø*7×*FÑ*FˆIÐ&Ñ'à×0Ñ0Ð<Ø#0×#HÑ#HˆI�iÑ ñ 	à×ÒÜ! -×"5Ñ"5Ô6ÝCØ)6×)<Ñ)<�	˜+Ñ&Ø'4×'BÑ'B�	˜)Ñ$Ù$5Ñ$B¸	Ñ$B�Õ!à)6×)<Ñ)<�	˜+Ñ&Ø-:×-HÑ-H�	˜/Ñ*Ü$+×$8Ñ$8Ñ$E¸9Ñ$E�Õ!ä '× 3Ñ 3Ñ @°iÑ @ˆDÕr   c           	      ó²  — |j                  «       }|dv sJ ‚|r|rt        d«      ‚|xs i }|xs i }d}|rht        |t        t        f«      rt        j                  |¬«      }n;t        |t        «      r+t        |«      dk(  rt        j                  |d   |d   ¬«      }	 |d	v �r¢|j                  d
«      }|r%t        j                  d|t        j                  «      r<d}	|�t        j                  |«      }	| j                  j!                  |||	||d¬«      }
�nO|dk(  r$| j                  j!                  |||d||d¬«      }
�n&|dk(  rc|d
= |D ��cg c]0  \  }}t        |t"        «      r|t        j                  |«      fn||f‘Œ2 }}}| j                  j!                  |||d||d¬«      }
n¾t        |t$        «      st        |t&        «      r"| j                  j!                  |||||d¬«      }
n||d
   j)                  d«      r8t        |t*        «      r(|rdnd}	| j                  j!                  |||	d||¬«      }
n0d}t-        d|¬«      ‚| j                  j!                  ||i ||d¬«      }
t9        |
«      S c c}}w # t
        j.                  j0                  $ rA}dj3                  t5        |«      j6                  t%        |«      g«      }t-        d|¬«      ‚d}~ww xY w)a   Perform requests.

        :param method: http request method
        :param url: http request url
        :param headers: http request headers
        :param body: request json body, for `application/json`
        :param post_params: request post parameters,
                            `application/x-www-form-urlencoded`
                            and `multipart/form-data`
        :param _request_timeout: timeout setting for this request. If one
                                 number provided, it will be total request
                                 timeout. It can also be a pair (tuple) of
                                 (connection, read) timeouts.
        )ÚGETÚHEADÚDELETEÚPOSTÚPUTÚPATCHÚOPTIONSz9body parameter cannot be used with post_params parameter.N)Útotalr
   r   é   )Úconnectr!   )rS   rT   rU   rV   rR   zContent-TypeÚjsonF)ÚbodyÚtimeoutr#   Úpreload_contentz!application/x-www-form-urlencoded)ÚfieldsÚencode_multipartr\   r#   r]   zmultipart/form-dataTztext/ÚtrueÚfalse)r[   r]   r\   r#   z°Cannot prepare a request message for provided
                             arguments. Please check that your arguments match
                             declared content type.)r   r   )r^   r\   r#   r]   ú
)Úupperr   Ú
isinstanceÚintÚfloatrJ   ÚTimeoutÚtupler   r&   ÚreÚsearchÚ
IGNORECASErZ   ÚdumpsrI   ÚrequestÚdictÚstrÚbytesÚ
startswithÚboolr   Ú
exceptionsÚSSLErrorÚjoinÚtyper,   r   )r   Úmethodr   r#   r[   Úpost_paramsÚ_request_timeoutr\   Úcontent_typeÚrequest_bodyÚrÚaÚbÚmsgÚes                  r   rm   zRESTClientObject.requests   s$  € ð. —‘“ˆØð 
ñ 
ð 	
ð 
ñ ™4ÜØKóð ð "Ò' RˆØ’-˜RˆàˆÙÜÐ*¬S´%¨LÔ9Ü!Ÿ/™/Ð0@ÔA‘äÐ/´Ô7ÜÐ,Ó-°Ò2ä!Ÿ/™/Ø,¨QÑ/Ø)¨!Ñ,ô�ð
V	5àÐFÒFð  'Ÿ{™{¨>Ó:�á$Ü—y‘y ¨´r·}±}ÔEà#'�LØÐ'Ü'+§z¡z°$Ó'7˜Ø×)Ñ)×1Ñ1ØØØ)Ø 'Ø 'Ø(-ð 2ó ’Að "Ð%HÒHØ×)Ñ)×1Ñ1ØØØ*Ø).Ø 'Ø 'Ø(-ð 2ó ’Að "Ð%:Ò:ð   Ð/àdo×"pÑ\`Ð\]Ð_`¼ÀAÄtÔ9L A¤t§z¡z°!£}Ñ#5ÐSTÐUVÐRWÑ#WÐ"p�KÑ"pØ×)Ñ)×1Ñ1ØØØ*Ø)-Ø 'Ø 'Ø(-ð 2ó ‘Aô   ¤cÔ*¬j¸¼uÔ.EØ×)Ñ)×1Ñ1ØØØ!Ø 'Ø 'Ø(-ð 2ó ‘Að ˜^Ñ,×7Ñ7¸Ô@ÄZÐPTÔVZÔE[Ù-1¡6°w�LØ×)Ñ)×1Ñ1ØØØ)Ø(-Ø 'Ø 'ð 2ó )‘Að7�Cô '¨a¸Ô<Ð<ð ×%Ñ%×-Ñ-ØØØØ#Ø#Ø$)ð .ó �ô ˜A‹Ðùóg #qøô^ ×!Ñ!×*Ñ*ò 	5Ø—)‘)œT !›W×-Ñ-¬s°1«vÐ6Ó7ˆCÜ a°Ô4Ð4ûð	5ús,   ÂB/I8 Å5I2ÆC$I8 É2I8 É8KÊ<KËKr*   )NNNN)r,   r-   r.   r   rm   r/   r   r   r1   r1   <   s   „ ó3Aðr ØØØôOr   r1   )Ú__doc__ÚiorZ   ri   rA   rJ   Ú)lance_namespace_urllib3_client.exceptionsr   r   r   ÚHTTPResponseÚRESTResponseTyper   ÚIOBaser   r1   r/   r   r   ú<module>r‡      sR   ðñ	ó 
Û Û 	Û 
ã ç QâDÐ Ø×'Ñ'Ð òCô8�2—9‘9ô 8÷,Fò Fr   