Ë
    dQêjÄm  ã                   ó  — d Z ddlZddlmZ ddlmZ ddl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 ddlmZmZmZmZmZ ddlmZ ddlmZ dd	lmZmZ ddlZdd
lmZ ddlm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z& ee'e'ee'e'f   ee'   ee'   f   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)Úparse)ÚEnum)Úquote)ÚTupleÚOptionalÚListÚDictÚUnion)Ú	SecretStr)ÚConfiguration)ÚApiResponseÚT)Úrest)ÚApiValueErrorÚApiExceptionÚBadRequestExceptionÚUnauthorizedExceptionÚForbiddenExceptionÚNotFoundExceptionÚServiceExceptionc                   óT  — e Zd ZdZeeeeefZ	eeeeee
j                  e
j                  ej                  edœ	ZdZ	 	 	 	 d(	 d)d„Zd„ Zd„ Zed„ «       Zej,                  d	„ «       Zd
„ ZdZed„ «       Zed„ «       Z	 	 	 	 	 	 	 	 	 d*defd„Z	 	 	 	 d(dej>                  fd„Z 	 d+dej>                  de!e"ee#f      de$e#   fd„Z%d„ Z&dedede!e   fd„Z'd„ Z(d„ Z)d„ Z*de"ee+eee,e   e,e   e-eef   f   f   fd„Z.de,e   de!e   fd„Z/d„ Z0	 d+	 d)d„Z1	 	 d)d „Z2d!„ Z3d"„ Z4d#„ Z5d$„ Z6d%„ Z7d&„ Z8d'„ Z9y),Ú	ApiClientaa  Generic API client for OpenAPI client library builds.

    OpenAPI generic API client. This client handles the client-
    server communication, and is invariant across implementations. Specifics of
    the methods and models for each application are generated from the OpenAPI
    templates.

    :param configuration: .Configuration object for this client
    :param header_name: a header to pass when making calls to the API.
    :param header_value: a header value to pass when making calls to
        the API.
    :param cookie: a cookie to include in the header when making calls
        to the API
    )	ÚintÚlongÚfloatÚstrÚboolÚdateÚdatetimeÚdecimalÚobjectNÚreturnc                 óà   — |€t        j                  «       }|| _        t        j                  |«      | _        i | _        |�|| j                  |<   || _        d| _        |j                  | _	        y )NzOpenAPI-Generator/0.13.0/python)
r   Úget_defaultÚconfigurationr   ÚRESTClientObjectÚrest_clientÚdefault_headersÚcookieÚ
user_agentÚclient_side_validation)Úselfr%   Úheader_nameÚheader_valuer)   s        ún/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/lance_namespace_urllib3_client/api_client.pyÚ__init__zApiClient.__init__K   sm   € ð Ð Ü)×5Ñ5Ó7ˆMØ*ˆÔä×0Ñ0°Ó?ˆÔØ!ˆÔØÐ"Ø0<ˆD× Ñ  Ñ-ØˆŒà;ˆŒØ&3×&JÑ&JˆÕ#ó    c                 ó   — | S ©N© ©r,   s    r/   Ú	__enter__zApiClient.__enter__`   s   € Øˆr1   c                  ó   — y r3   r4   )r,   Úexc_typeÚ	exc_valueÚ	tracebacks       r/   Ú__exit__zApiClient.__exit__c   s   € Ør1   c                 ó    — | j                   d   S )zUser agent for this API clientú
User-Agent©r(   r5   s    r/   r*   zApiClient.user_agentf   s   € ð ×#Ñ# LÑ1Ð1r1   c                 ó"   — || j                   d<   y )Nr=   r>   ©r,   Úvalues     r/   r*   zApiClient.user_agentk   s   € à-2ˆ×Ñ˜\Ò*r1   c                 ó"   — || j                   |<   y r3   r>   )r,   r-   r.   s      r/   Úset_default_headerzApiClient.set_default_headero   s   € Ø,8ˆ×Ñ˜[Ò)r1   c                 óP   — | j                   €t        «       | _         | j                   S )zîReturn new instance of ApiClient.

        This method returns newly created, based on default constructor,
        object of ApiClient class or returns a copy of default
        ApiClient.

        :return: The ApiClient object.
        )Ú_defaultr   )Úclss    r/   r$   zApiClient.get_defaultu   s!   € ð �<‰<ÐÜ$›;ˆCŒLØ�|‰|Ðr1   c                 ó   — || _         y)zSet default instance of ApiClient.

        It stores default ApiClient.

        :param default: object of ApiClient.
        N)rE   )rF   Údefaults     r/   Úset_defaultzApiClient.set_defaultƒ   s   € ð ˆ�r1   c           	      ó|  — | j                   }|xs i }|j                  | j                  «       | j                  r| j                  |d<   |r,| j	                  |«      }t        | j                  ||
«      «      }|r`| j	                  |«      }| j                  ||
«      }|D ]8  \  }}|j                  d|z  t        t        |«      |j                  ¬«      «      }Œ: |s|rK|r|ng }| j	                  |«      }| j                  ||
«      }|r |j                  | j                  |«      «       | j                  |||	||||¬«       |r| j	                  |«      }|�| j                   j                  r| j                   j                  |z   }n||z   }|r+| j	                  |«      }| j!                  ||
«      }|d|z   z  }|||||fS )a›  Builds the HTTP request params needed by the request.
        :param method: Method to call.
        :param resource_path: Path to method endpoint.
        :param path_params: Path parameters in the url.
        :param query_params: Query parameters in the url.
        :param header_params: Header parameters to be
            placed in the request header.
        :param body: Request body.
        :param post_params dict: Request post form parameters,
            for `application/x-www-form-urlencoded`, `multipart/form-data`.
        :param auth_settings list: Auth Settings names for the request.
        :param files dict: key -> filename, value -> filepath,
            for `multipart/form-data`.
        :param collection_formats: dict of collection formats for path, query,
            header, and post parameters.
        :param _request_auth: set to override the auth_settings for an a single
                              request; this effectively ignores the authentication
                              in the spec for a single request.
        :return: tuple of form (path, http_method, query_params, header_params,
            body, post_params, files)
        ÚCookiez{%s})Úsafe)Úrequest_authú?)r%   Úupdater(   r)   Úsanitize_for_serializationÚdictÚparameters_to_tuplesÚreplacer   r   Úsafe_chars_for_path_paramÚextendÚfiles_parametersÚupdate_params_for_authÚignore_operation_serversÚhostÚparameters_to_url_query)r,   ÚmethodÚresource_pathÚpath_paramsÚquery_paramsÚheader_paramsÚbodyÚpost_paramsÚfilesÚauth_settingsÚcollection_formatsÚ_hostÚ_request_authÚconfigÚkÚvÚurlÚ	url_querys                     r/   Úparam_serializezApiClient.param_serialize�   sô  € ðJ ×#Ñ#ˆð &Ò+¨ˆØ×Ñ˜T×1Ñ1Ô2Ø�;Š;Ø&*§k¡kˆM˜(Ñ#ÙØ ×;Ñ;¸MÓJˆMÜ Ø×)Ñ)¨-Ð8JÓKóˆMñ
 Ø×9Ñ9¸+ÓFˆKØ×3Ñ3ØØ"óˆKð $ò ‘��1à -× 5Ñ 5Ø˜Q‘JÜœ#˜a›& v×'GÑ'GÔHó!‘ðñ ™%Ù)4™+¸"ˆKØ×9Ñ9¸+ÓFˆKØ×3Ñ3ØØ"óˆKñ Ø×"Ñ" 4×#8Ñ#8¸Ó#?Ô@ð 	×#Ñ#ØØØØØØØ&ð 	$ô 	
ñ Ø×2Ñ2°4Ó8ˆDð ˆ=˜D×.Ñ.×GÒGØ×$Ñ$×)Ñ)¨MÑ9‰Cð ˜-Ñ'ˆCñ Ø×:Ñ:¸<ÓHˆLØ×4Ñ4ØØ"óˆIð �3˜‘?Ñ"ˆCà�s˜M¨4°Ð<Ð<r1   c                 óp   — 	 | j                   j                  ||||||¬«      }|S # t        $ r}|‚d}~ww xY w)að  Makes the HTTP request (synchronous)
        :param method: Method to call.
        :param url: Path to method endpoint.
        :param header_params: Header parameters to be
            placed in the request header.
        :param body: Request body.
        :param post_params dict: Request post form parameters,
            for `application/x-www-form-urlencoded`, `multipart/form-data`.
        :param _request_timeout: timeout setting for this request.
        :return: RESTResponse
        )Úheadersr`   ra   Ú_request_timeoutN)r'   Úrequestr   )	r,   r[   rj   r_   r`   ra   ro   Úresponse_dataÚes	            r/   Úcall_apizApiClient.call_apiú   sQ   € ð*
	à ×,Ñ,×4Ñ4Ø˜Ø%Ø {Ø!1ð	 5ó ˆMð Ðøô ò 	ØˆGûð	ús   ‚!% ¥	5®0°5rq   Úresponse_types_mapc                 ó˜  — d}|j                   €J |«       ‚|j                  t        |j                  «      d«      }|s]t	        |j                  t
        «      rCd|j                  cxk  rdk  r.n n+|j                  t        |j                  «      d   dz   d«      }d}d}	 |dk(  r|j                   }n‡|dk(  r| j                  |«      }np|�nd}|j                  d	«      }|�t        j                  d
|«      }|r|j                  d«      nd}	|j                   j                  |	«      }| j                  |||«      }d|j                  cxk  rdk  sn t        j                  |||¬«      ‚t        |j                  ||j!                  «       |j                   ¬«      S # d|j                  cxk  rdk  sn t        j                  |||¬«      ‚w xY w)zÌDeserializes response into an object.
        :param response_data: RESTResponse object to be deserialized.
        :param response_types_map: dict of response types.
        :return: ApiResponse
        zNRESTResponse.read() must be called before passing it to response_deserialize()Néd   iW  r   ÚXXÚ	bytearrayÚfilezcontent-typezcharset=([a-zA-Z\-\d]+)[\s;]?é   zutf-8éÈ   i+  )Ú	http_respr`   Údata)Ústatus_coder}   rn   Úraw_data)r}   Úgetr   ÚstatusÚ
isinstancer   Ú_ApiClient__deserialize_fileÚ	getheaderÚreÚsearchÚgroupÚdecodeÚdeserializer   Úfrom_responser   Ú
getheaders)
r,   rq   rt   ÚmsgÚresponse_typeÚresponse_textÚreturn_dataÚmatchÚcontent_typeÚencodings
             r/   Úresponse_deserializezApiClient.response_deserialize  sÍ  € ð _ˆØ×!Ñ!Ð-Ð2¨sÓ2Ð-à*×.Ñ.¬s°=×3GÑ3GÓ/HÈ$ÓOˆÙ¤¨M×,@Ñ,@Ä#Ô!FÈ3ÐR_×RfÑRfÔKmÐjmÕKmà.×2Ñ2´3°}×7KÑ7KÓ3LÈQÑ3OÐRVÑ3VÐX\Ó]ˆMð ˆØˆð	Ø Ò+Ø+×0Ñ0‘Ø &Ò(Ø"×5Ñ5°mÓD‘ØÐ*Ø�Ø,×6Ñ6°~ÓF�ØÐ+ÜŸI™IÐ&FÈÓU�EÙ-2˜5Ÿ;™; qœ>¸�Ø -× 2Ñ 2× 9Ñ 9¸(Ó C�Ø"×.Ñ.¨}¸mÈ\ÓZ�à˜-×.Ñ.Ô5°#Ô5Ü"×0Ñ0Ø+Ø&Ø$ôð ô Ø'×.Ñ.ØØ#×.Ñ.Ó0Ø$×)Ñ)ô	
ð 	
øð ˜-×.Ñ.Ô5°#Ô5Ü"×0Ñ0Ø+Ø&Ø$ôð ð 6ús   ÂBF Æ1G	c                 ó4  ‡ — |€yt        |t        «      r|j                  S t        |t        «      r|j	                  «       S t        |‰ j
                  «      r|S t        |t        «      r|D �cg c]  }‰ j                  |«      ‘Œ c}S t        |t        «      rt        ˆ fd„|D «       «      S t        |t        j                  t        j                  f«      r|j                  «       S t        |t        j                  «      rt        |«      S t        |t        «      r|}n>t!        |d«      r&t#        t%        |d«      «      r|j'                  «       }n|j(                  }|j+                  «       D ��ci c]  \  }}|‰ j                  |«      “Œ c}}S c c}w c c}}w )ac  Builds a JSON POST object.

        If obj is None, return None.
        If obj is SecretStr, return obj.get_secret_value()
        If obj is str, int, long, float, bool, return directly.
        If obj is datetime.datetime, datetime.date
            convert to string in iso8601 format.
        If obj is decimal.Decimal return string representation.
        If obj is list, sanitize each element in the list.
        If obj is dict, return the dict.
        If obj is OpenAPI model, return the properties dict.

        :param obj: The data to serialize.
        :return: The serialized form of data.
        Nc              3   ó@   •K  — | ]  }‰j                  |«      –— Œ y ­wr3   )rP   )Ú.0Úsub_objr,   s     €r/   ú	<genexpr>z7ApiClient.sanitize_for_serialization.<locals>.<genexpr>l  s!   øè ø€ ò Ø=D�×/Ñ/°×8ñùs   ƒÚto_dict)r‚   r   rA   r   Úget_secret_valueÚPRIMITIVE_TYPESÚlistrP   Útupler   r   Ú	isoformatr    ÚDecimalr   rQ   ÚhasattrÚcallableÚgetattrr™   Ú__dict__Úitems)r,   Úobjr—   Úobj_dictÚkeyÚvals   `     r/   rP   z$ApiClient.sanitize_for_serializationO  s_  ø€ ð  ˆ;ØÜ˜œTÔ"Ø—9‘9ÐÜ˜œYÔ'Ø×'Ñ'Ó)Ð)Ü˜˜T×1Ñ1Ô2ØˆJÜ˜œTÔ"àHKöØ=D�×/Ñ/°Õ8òð ô ˜œUÔ#Üó ØHKôó ð ô ˜œh×/Ñ/´·±Ð?Ô@Ø—=‘=“?Ð"Ü˜œWŸ_™_Ô-Ü�s“8ˆOä˜œTÔ"Ø‰Hô �s˜IÔ&¬8´G¸CÀÓ4KÔ+LØŸ;™;›=‘àŸ<™<�ð %ŸN™NÓ,÷
á��Sð �×0Ñ0°Ó5Ñ5ó
ð 	
ùò3ùó2
s   Á-FÅ/FrŽ   r�   r‘   c                 óˆ  — |€	 t        j                  |«      }n‡t        j                  d|t        j
                  «      r|dk(  rd}nZt        j                  |«      }nDt        j                  d|t        j
                  «      r|}nt        ddj                  |«      ¬«      ‚| j                  ||«      S # t        $ r |}Y Œw xY w)a8  Deserializes response into an object.

        :param response: RESTResponse object to be deserialized.
        :param response_type: class literal for
            deserialized object, or string of class name.
        :param content_type: content type of response.

        :return: deserialized object.
        z0^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)Ú z^text\/[a-z.+-]+\s*(;|$)r   zUnsupported content type: {0}©r�   Úreason)	ÚjsonÚloadsÚ
ValueErrorr…   r�   Ú
IGNORECASEr   ÚformatÚ_ApiClient__deserialize)r,   rŽ   r�   r‘   r}   s        r/   r‰   zApiClient.deserialize†  sµ   € ð Ðð%Ü—z‘z -Ó0‘ô �X‰XÐIÈ<ÔY[×YfÑYfÔgØ Ò"Ø‘ä—z‘z -Ó0‘Ü�X‰XÐ1°<ÄÇÁÔOØ ‰DäØØ6×=Ñ=¸lÓKôð ð
 ×!Ñ! $¨Ó6Ð6øô ò %Ø$’ð%ús   „B3 Â3CÃ Cc           	      ó  — |€yt        |t        «      �r|j                  d«      rPt        j                  d|«      }|€J d«       ‚|j                  d«      }|D �cg c]  }| j                  ||«      ‘Œ c}S |j                  d«      rdt        j                  d|«      }|€J d«       ‚|j                  d	«      }|j                  «       D ��ci c]  \  }}|| j                  ||«      “Œ c}}S || j                  v r| j                  |   }nt        t        j                  |«      }|| j                  v r| j                  ||«      S |t        k(  r| j                  |«      S |t         j"                  k(  r| j%                  |«      S |t         j                   k(  r| j'                  |«      S |t(        j*                  k(  rt)        j*                  |«      S t-        |t.        «      r| j1                  ||«      S | j3                  ||«      S c c}w c c}}w )
z¶Deserializes dict, list, str into an object.

        :param data: dict, list or str.
        :param klass: class literal, or string of class name.

        :return: object.
        NzList[zList\[(.*)]zMalformed List type definitionrz   zDict[zDict\[([^,]*), (.*)]zMalformed Dict type definitioné   )r‚   r   Ú
startswithr…   r�   r‡   r²   r¤   ÚNATIVE_TYPES_MAPPINGr¢   Úlance_namespace_urllib3_clientÚmodelsr›   Ú!_ApiClient__deserialize_primitiver!   Ú_ApiClient__deserialize_objectr   r   Ú_ApiClient__deserialize_dateÚ _ApiClient__deserialize_datetimer    rŸ   Ú
issubclassr   Ú_ApiClient__deserialize_enumÚ_ApiClient__deserialize_model)r,   r}   ÚklassÚmÚsub_klsÚsub_datarh   ri   s           r/   Ú__deserializezApiClient.__deserialize¦  së  € ð ˆ<Øä�eœSÕ!Ø×Ñ Ô(Ü—H‘H˜^¨UÓ3�Ø�}ÐFÐ&FÓF�}ØŸ'™' !›*�à(,ö.Ø$ð ×*Ñ*¨8°WÕ=ò .ð .ð ×Ñ Ô(Ü—H‘HÐ4°eÓ<�Ø�}ÐFÐ&FÓF�}ØŸ'™' !›*�à$(§J¡J£L÷2Ù ˜A˜qð ˜4×-Ñ-¨a°Ó9Ñ9ó 2ð 2ð ˜×1Ñ1Ñ1Ø×1Ñ1°%Ñ8‘äÔ >× EÑ EÀuÓM�à�D×(Ñ(Ñ(Ø×/Ñ/°°eÓ<Ð<Ø”fŠ_Ø×,Ñ,¨TÓ2Ð2Ø”h—m‘mÒ#Ø×*Ñ*¨4Ó0Ð0Ø”h×'Ñ'Ò'Ø×.Ñ.¨tÓ4Ð4Ø”g—o‘oÒ%Ü—?‘? 4Ó(Ð(Ü˜œtÔ$Ø×*Ñ*¨4°Ó7Ð7à×+Ñ+¨D°%Ó8Ð8ùò;.ùó2s   ÁHÃ
Hc                 óh  ‡— g }|€i }t        |t        «      r|j                  «       n|D ]…  \  Š}‰|v ri|‰   }|dk(  r|j                  ˆfd„|D «       «       Œ/|dk(  rd}n|dk(  rd}n
|dk(  rd}nd	}|j	                  ‰|j                  d
„ |D «       «      f«       Œs|j	                  ‰|f«       Œ‡ |S )a  Get parameters as list of tuples, formatting collections.

        :param params: Parameters as dict or list of two-tuples
        :param dict collection_formats: Parameter collection formats
        :return: Parameters as list of tuples, collections formatted
        Úmultic              3   ó&   •K  — | ]  }‰|f–— Œ
 y ­wr3   r4   ©r–   rA   rh   s     €r/   r˜   z1ApiClient.parameters_to_tuples.<locals>.<genexpr>ã  s   øè ø€ Ò%@°U q¨%¤jÑ%@ùs   ƒÚssvú Útsvú	Úpipesú|ú,c              3   ó2   K  — | ]  }t        |«      –— Œ y ­wr3   )r   ©r–   rA   s     r/   r˜   z1ApiClient.parameters_to_tuples.<locals>.<genexpr>î  s   è ø€ Ò*E¸%¬3¨u¯:Ñ*Eùs   ‚)r‚   rQ   r¤   rU   ÚappendÚjoin)r,   Úparamsrd   Ú
new_paramsri   Úcollection_formatÚ	delimiterrh   s          @r/   rR   zApiClient.parameters_to_tuplesÕ  sØ   ø€ ð -/ˆ
ØÐ%Ø!#ÐÜ&0°¼Ô&>�F—L‘L”NÀFò 	*‰DˆAˆqØÐ&Ñ&Ø$6°qÑ$9Ð!Ø$¨Ò/Ø×%Ñ%Ó%@¸aÔ%@Õ@à(¨EÒ1Ø$'™	Ø*¨eÒ3Ø$(™	Ø*¨gÒ5Ø$'™	à$'˜	Ø×%Ñ%Ø˜IŸN™NÑ*EÀ1Ô*EÓEÐFõHð ×!Ñ! 1 a &Õ)ð#	*ð$ Ðr1   c                 óì  ‡— g }|€i }t        |t        «      r|j                  «       n|D �]  \  Š}t        |t        «      rt	        |«      j                  «       }t        |t        t        f«      rt	        |«      }t        |t        «      rt        j                  |«      }‰|v ri|‰   }|dk(  r|j                  ˆfd„|D «       «       ŒŸ|dk(  rd}n|dk(  rd}n
|dk(  rd}nd	}|j                  ‰|j                  d
„ |D «       «      f«       Œã|j                  ‰t        t	        |«      «      f«       �Œ
 dj                  |D �cg c]!  }dj                  t        t        |«      «      ‘Œ# c}«      S c c}w )a  Get parameters as list of tuples, formatting collections.

        :param params: Parameters as dict or list of two-tuples
        :param dict collection_formats: Parameter collection formats
        :return: URL query string (e.g. a=Hello%20World&b=123)
        rÆ   c              3   óJ   •K  — | ]  }‰t        t        |«      «      f–— Œ y ­wr3   ©r   r   rÈ   s     €r/   r˜   z4ApiClient.parameters_to_url_query.<locals>.<genexpr>  s   øè ø€ Ò%LÀ q¬%´°E³
Ó*;Ô&<Ñ%Lùs   ƒ #rÉ   rÊ   rË   rÌ   rÍ   rÎ   rÏ   c              3   óD   K  — | ]  }t        t        |«      «      –— Œ y ­wr3   rÚ   rÑ   s     r/   r˜   z4ApiClient.parameters_to_url_query.<locals>.<genexpr>  s   è ø€ Ò*LÀ¬5´°U³×+<Ñ*Lùs   ‚ ú&ú=)r‚   rQ   r¤   r   r   Úlowerr   r   r­   ÚdumpsrU   rÒ   rÓ   r   Úmap)	r,   rÔ   rd   rÕ   ri   rÖ   r×   Úitemrh   s	           @r/   rZ   z!ApiClient.parameters_to_url_queryó  sM  ø€ ð -/ˆ
ØÐ%Ø!#ÐÜ&0°¼Ô&>�F—L‘L”NÀFó 	6‰DˆAˆqÜ˜!œTÔ"Ü˜“F—L‘L“N�Ü˜!œc¤5˜\Ô*Ü˜“F�Ü˜!œTÔ"Ü—J‘J˜q“M�àÐ&Ñ&Ø$6°qÑ$9Ð!Ø$¨Ò/Ø×%Ñ%Ó%LÈ!Ô%LÕLà(¨EÒ1Ø$'™	Ø*¨eÒ3Ø$(™	Ø*¨gÒ5Ø$'™	à$'˜	Ø×%Ñ%Ø˜IŸN™NÑ*LÈ!Ô*LÓLÐMõð ×!Ñ! 1¤e¬C°«F£mÐ"4Ö5ð3	6ð6 �x‰x¸jÖI°d˜Ÿ™¤#¤c¨4£.Õ1ÒIÓJÐJùÒIs   Å&E1rb   c                 ó|  — g }|j                  «       D �]  \  }}t        |t        «      rOt        |d«      5 }t        j
                  j                  |j                  «      }|j                  «       }ddd«       npt        |t        «      r|}|}n[t        |t        «      r|\  }}nEt        |t        «      r*|D ]$  }|j                  | j                  ||i«      «       Œ& ŒËt        d«      ‚t        j                   «      d   xs d}	|j#                  t        |t        ||	g«      g«      «       �Œ |S # 1 sw Y   ŒRxY w)zuBuilds form parameters.

        :param files: File parameters.
        :return: Form parameters with files.
        ÚrbNzUnsupported file valuer   zapplication/octet-stream)r¤   r‚   r   ÚopenÚosÚpathÚbasenameÚnameÚreadÚbytesr�   rœ   rU   rV   r¯   Ú	mimetypesÚ
guess_typerÒ   )
r,   rb   rÔ   rh   ri   ÚfÚfilenameÚfiledataÚ
file_paramÚmimetypes
             r/   rV   zApiClient.files_parameters  s1  € ð ˆØ—K‘K“Mó 	‰DˆAˆqÜ˜!œSÔ!Ü˜!˜T“]ð ( aÜ!Ÿw™w×/Ñ/°·±Ó7�HØ Ÿv™v›x�H÷(ð (ô ˜AœuÔ%Ø�Ø‘Ü˜AœuÔ%Ø%&Ñ"�™(Ü˜AœtÔ$Ø"#ò J�JØ—M‘M $×"7Ñ"7¸¸J¸Ó"HÕIðJàä Ð!9Ó:Ð:ä×$Ñ$ XÓ.¨qÑ1ò .Ø-ð ð �M‰MÜ�qœ% ¨8°XÐ >Ó?Ð@ÓAöð)	ð. ˆ÷+(ð (ús   ¶:D2Ä2D;	Úacceptsc                 ór   — |sy|D ]+  }t        j                  d|t         j                  «      sŒ)|c S  |d   S )z›Returns `Accept` based on an array of accepts provided.

        :param accepts: List of headers.
        :return: Accept (e.g. application/json).
        Nr­   r   ©r…   r†   r°   )r,   rò   Úaccepts      r/   Úselect_header_acceptzApiClient.select_header_accept=  s>   € ñ Øàò 	ˆFÜ�y‰y˜ ¬¯©Õ7Ø’ð	ð �q‰zÐr1   c                 ór   — |sy|D ]+  }t        j                  d|t         j                  «      sŒ)|c S  |d   S )z¹Returns `Content-Type` based on an array of content_types provided.

        :param content_types: List of content-types.
        :return: Content-Type (e.g. application/json).
        Nr­   r   rô   )r,   Úcontent_typesr‘   s      r/   Úselect_header_content_typez$ApiClient.select_header_content_typeL  s@   € ñ Øà)ò 	$ˆLÜ�y‰y˜ ¬r¯}©}Õ=Ø#Ò#ð	$ð ˜QÑÐr1   c           	      óÎ   — |sy|r| j                  ||||||«       y|D ]D  }| j                  j                  «       j                  |«      }	|	sŒ/| j                  ||||||	«       ŒF y)aÀ  Updates header and query params based on authentication setting.

        :param headers: Header parameters dict to be updated.
        :param queries: Query parameters tuple list to be updated.
        :param auth_settings: Authentication setting identifiers list.
        :resource_path: A string representation of the HTTP request resource path.
        :method: A string representation of the HTTP request method.
        :body: A object representing the body of the HTTP request.
        The object type is the return value of sanitize_for_serialization().
        :param request_auth: if set, the provided settings will
                             override the token in the configuration.
        N)Ú_apply_auth_paramsr%   rc   r€   )
r,   rn   Úqueriesrc   r\   r[   r`   rM   ÚauthÚauth_settings
             r/   rW   z ApiClient.update_params_for_auth[  s€   € ñ, ØáØ×#Ñ#ØØØØØØõð &ò 
�Ø#×1Ñ1×?Ñ?ÓA×EÑEÀdÓK�ÚØ×+Ñ+ØØØ%ØØØ$õñ
r1   c                 ó¸   — |d   dk(  r	|d   |d<   y|d   dk(  r|d   dk7  r|d   ||d   <   yy|d   d	k(  r|j                  |d   |d   f«       yt        d
«      ‚)a,  Updates the request parameters based on a single auth_setting

        :param headers: Header parameters dict to be updated.
        :param queries: Query parameters tuple list to be updated.
        :resource_path: A string representation of the HTTP request resource path.
        :method: A string representation of the HTTP request method.
        :body: A object representing the body of the HTTP request.
        The object type is the return value of sanitize_for_serialization().
        :param auth_setting: auth settings for the endpoint
        Úinr)   rA   rK   ÚheaderÚtypezhttp-signaturer§   Úqueryz3Authentication token must be in `query` or `header`N)rÒ   r   )r,   rn   rü   r\   r[   r`   rþ   s          r/   rû   zApiClient._apply_auth_paramsŠ  sŒ   € ð& ˜Ñ Ò)Ø ,¨WÑ 5ˆG�HÒØ˜$Ñ 8Ò+Ø˜FÑ#Ð'7Ò7Ø/;¸GÑ/D�˜ UÑ+Ò,ð 8à˜$Ñ 7Ò*Ø�N‰N˜L¨Ñ/°¸gÑ1FÐGÕHäØEóð r1   c                 ó.  — t        j                  | j                  j                  ¬«      \  }}t	        j
                  |«       t	        j                  |«       |j                  d«      }|rmt        j                  d|«      }|€J d«       ‚|j                  d«      }t        j                  j                  t        j                  j                  |«      |«      }t        |d«      5 }|j                  |j                   «       ddd«       |S # 1 sw Y   |S xY w)aY  Deserializes body to file

        Saves response body into a file in a temporary folder,
        using the filename from the `Content-Disposition` header if provided.

        handle file downloading
        save response body into a tmp file and return the instance

        :param response:  RESTResponse.
        :return: file path.
        )ÚdirzContent-Dispositionz filename=[\'"]?([^\'"\s]+)[\'"]?Nz-Unexpected 'content-disposition' header valuerz   Úwb)ÚtempfileÚmkstempr%   Útemp_folder_pathrå   ÚcloseÚremover„   r…   r†   r‡   ræ   rÓ   Údirnamerä   Úwriter}   )r,   ÚresponseÚfdræ   Úcontent_dispositionrÁ   rî   rí   s           r/   Ú__deserialize_filezApiClient.__deserialize_file©  sÝ   € ô ×#Ñ#¨×(:Ñ(:×(KÑ(KÔL‰ˆˆDÜ
�‰�ŒÜ
�	‰	�$Œà&×0Ñ0Ð1FÓGÐÙÜ—	‘	Ø3Ø#óˆAð �=ÐQÐ"QÓQ�=Ø—w‘w˜q“zˆHÜ—7‘7—<‘<¤§¡§¡°Ó 5°xÓ@ˆDä�$˜Óð 	# Ø�G‰G�H—M‘MÔ"÷	#ð ˆ÷	#ð ˆús   Ã$D
Ä
Dc                 ó`   — 	  ||«      S # t         $ r t        |«      cY S t        $ r |cY S w xY w)zžDeserializes string to primitive type.

        :param data: str.
        :param klass: class literal.

        :return: int, long, float, str, bool.
        )ÚUnicodeEncodeErrorr   Ú	TypeError©r,   r}   rÀ   s      r/   Ú__deserialize_primitivez!ApiClient.__deserialize_primitiveÈ  s7   € ð	Ù˜“;ÐøÜ!ò 	Ü�t“9ÒÜò 	ØŠKð	ús   ‚
 Š- 
-¬-c                 ó   — |S )z<Return an original value.

        :return: object.
        r4   r@   s     r/   Ú__deserialize_objectzApiClient.__deserialize_object×  s	   € ð
 ˆr1   c                 ó´   — 	 t        |«      j                  «       S # t        $ r |cY S t        $ r' t	        j
                  ddj                  |«      ¬«      ‚w xY w)zYDeserializes string to date.

        :param string: str.
        :return: date.
        r   z$Failed to parse `{0}` as date objectr«   )r   r   ÚImportErrorr¯   r   r   r±   ©r,   Ústrings     r/   Ú__deserialize_datezApiClient.__deserialize_dateÞ  sZ   € ð	Ü˜“=×%Ñ%Ó'Ð'øÜò 	ØŠMÜò 	Ü×#Ñ#ØØ=×DÑDÀVÓLôð ð	ús   ‚ ›A¨/Ac                 ó˜   — 	 t        |«      S # t        $ r |cY S t        $ r' t        j                  ddj                  |«      ¬«      ‚w xY w)z›Deserializes string to datetime.

        The string should be in iso8601 datetime format.

        :param string: str.
        :return: datetime.
        r   z(Failed to parse `{0}` as datetime objectr«   )r   r  r¯   r   r   r±   r  s     r/   Ú__deserialize_datetimez ApiClient.__deserialize_datetimeî  sO   € ð	Ü˜“=Ð øÜò 	ØŠMÜò 	Ü×#Ñ#Øà>ß‘V˜F“^ô	ð ð	ús   ‚
 �A	š/A	c                 ó|   — 	  ||«      S # t         $ r( t        j                  ddj                  ||«      ¬«      ‚w xY w)z•Deserializes primitive type to enum.

        :param data: primitive type.
        :param klass: class literal.
        :return: enum value.
        r   zFailed to parse `{0}` as `{1}`r«   )r¯   r   r   r±   r  s      r/   Ú__deserialize_enumzApiClient.__deserialize_enum  sE   € ð		Ù˜“;ÐøÜò 	Ü×#Ñ#Øà4ß‘V˜D %Ó(ô	ð ð	ús   ‚
 Š1;c                 ó$   — |j                  |«      S )z’Deserializes list or dict to model.

        :param data: dict, list.
        :param klass: class literal.
        :return: model object.
        )Ú	from_dictr  s      r/   Ú__deserialize_modelzApiClient.__deserialize_model  s   € ð �‰˜tÓ$Ð$r1   )NNNN)r"   N)
NNNNNNNNNNr3   ):Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   rê   r   r   r›   r   r   r    rŸ   r!   r¶   Ú_poolr0   r6   r;   Úpropertyr*   ÚsetterrC   rE   Úclassmethodr$   rI   ÚRequestSerializedrl   r   ÚRESTResponsers   r   r	   ÚApiResponseTr   r“   rP   r‰   r²   rR   rZ   r
   r   r   rV   rö   rù   rW   rû   rƒ   r¹   rº   r»   r¼   r¾   r¿   r4   r1   r/   r   r   -   sI  „ ñð ˜d E¨3°Ð4€OàØØØØØ—‘Ø×%Ñ%Ø—?‘?Øñ
Ðð €Eð ØØØðKð 
óKò*òð ñ2ó ð2ð ×Ññ3ó ð3ò9ð €Hàñó ðð ñó ðð ØØØØØ"&ØØØñj=ð 
ój=ðb ØØØñ!ð 
×	Ñ	ó!ðL ?Cñ0
à×(Ñ(ð0
ð % T¨#¨|Ð*;Ñ%<Ñ=ð0
ð 
�\Ñ	"ó	0
òd5
ðn7¨ð 7¸Sð 7ÐPXÐY\ÑP]ó 7ò@-9ò^ò<%KðN!à�C˜˜s E¨4°©9°d¸5±kÀ5ÈÈeÈÑCTÐTÑUÐUÑVó!ðF¨D°©Ið ¸(À3¹-ó ò ð. ð-ð 
ó-ð^ð 
óò>ò>òòò ò*ó$%r1   r   )*r(  r   Údateutil.parserr   Úenumr   r    r­   rë   rå   r…   r  Úurllib.parser   Útypingr   r   r   r	   r
   Úpydanticr   Ú,lance_namespace_urllib3_client.configurationr   Ú+lance_namespace_urllib3_client.api_responser   r   r/  Ú%lance_namespace_urllib3_client.modelsr·   r   Ú)lance_namespace_urllib3_client.exceptionsr   r   r   r   r   r   r   r   r-  r   r4   r1   r/   ú<module>r9     s‚   ðñ	ó Ý !Ý Û Û Û Û 	Û 	Û å ß 5Õ 5Ý å Fß VÛ ,Ý /÷÷ ñ ð ˜#˜s D¨¨c¨¡N°H¸S±MÀ4ÈÁ9ÐLÑMÐ ÷p%ò p%r1   