Ë
    dQêjªT  ã            	       ó,  — d Z ddlZddlmZ ddlZddlmZ ddlZddlZddl	m
Z
mZmZmZmZmZmZmZ ddlmZmZ ddlZh d£Zeeef   Z edeeeedœ«      Z ed	ed
   ed   ed   edœ«      Z eded   eeee   dœ«      Z eded   ed   ed   ee   dœ«      Z eded   ed   ed   ed   edœ«      Z eded   ed   ed   edœ«      Z eded   ed   ed   ddœ«      Z edeeedœd¬«      Z  G d„ de«      Z! G d„ de«      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)ÚFileHandler)ÚAnyÚClassVarÚDictÚListÚLiteralÚOptionalÚ	TypedDictÚUnion)ÚNotRequiredÚSelf>
   ÚmaximumÚminimumÚpatternÚmaxItemsÚminItemsÚ	maxLengthÚ	minLengthÚ
multipleOfÚexclusiveMaximumÚexclusiveMinimumÚGenericAuthSetting©ÚtypeÚinÚkeyÚvalueÚOAuth2AuthSettingÚoauth2ÚheaderÚAuthorizationÚAPIKeyAuthSettingÚapi_keyÚBasicAuthSettingÚbasicÚBearerFormatAuthSettingÚbearerÚJWT)r   r   Úformatr   r   ÚBearerAuthSettingÚHTTPSignatureAuthSettingzhttp-signatureÚAuthSettings)ÚOAuth2Ú
BearerAuthÚ
ApiKeyAuthF)Útotalc                   ó2   — e Zd ZU eed<   eed<   ee   ed<   y)ÚHostSettingVariableÚdescriptionÚdefault_valueÚenum_valuesN)Ú__name__Ú
__module__Ú__qualname__ÚstrÚ__annotations__r   © ó    úq/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/lance_namespace_urllib3_client/configuration.pyr2   r2   |   s   … ØÓØÓØ�c‘Ôr<   r2   c                   ó<   — e Zd ZU eed<   eed<   eeeef      ed<   y)ÚHostSettingÚurlr3   Ú	variablesN)r6   r7   r8   r9   r:   r   r   r2   r;   r<   r=   r?   r?   ‚   s#   … Ø	ƒHØÓØ˜4 Ð%8Ð 8Ñ9Ñ:Ô:r<   r?   c            "       óH  — e Zd ZU dZdZeee      ed<   	 	 	 	 	 	 	 	 	 	 	 	 	 	 d2ddœdee	   dee
e	e	f      dee
e	e	f      dee	   d	ee	   d
ee	   dee   dee   dee
eef      dee
eef      dedee	   dee   deee	ef      dee   ddf d„Zde
eef   defd„Zde	deddfd„Zedee   ddfd„«       Zedefd„«       Zedefd„«       Zedee	   fd„«       Zej4                  dee	   ddfd „«       Zedefd!„«       Zej4                  deddfd"„«       Zede	fd#„«       Zej4                  de	ddfd$„«       Zd3d%e	d&ee	   dee	   fd'„Zdee	   fd(„Zdefd)„Z de	fd*„Z!de"e#   fd+„Z$	 	 d4d,ee   d-ee   d.ee"e#      de	fd/„Z%ede	fd0„«       Z&e&j4                  de	ddfd1„«       Z&y)5ÚConfigurationaE	  This class contains various settings of the API client.

    :param host: Base url.
    :param ignore_operation_servers
      Boolean to ignore operation servers for the API client.
      Config will use `host` as the base url regardless of the operation servers.
    :param api_key: Dict to store API key(s).
      Each entry in the dict specifies an API key.
      The dict key is the name of the security scheme in the OAS specification.
      The dict value is the API key secret.
    :param api_key_prefix: Dict to store API prefix (e.g. Bearer).
      The dict key is the name of the security scheme in the OAS specification.
      The dict value is an API key prefix when generating the auth data.
    :param username: Username for HTTP basic authentication.
    :param password: Password for HTTP basic authentication.
    :param access_token: Access token.
    :param server_index: Index to servers configuration.
    :param server_variables: Mapping with string values to replace variables in
      templated server configuration. The validation of enums is performed for
      variables with defined enum values before.
    :param server_operation_index: Mapping from operation ID to an index to server
      configuration.
    :param server_operation_variables: Mapping from operation ID to a mapping with
      string values to replace variables in templated server configuration.
      The validation of enums is performed for variables with defined enum
      values before.
    :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
      in PEM format.
    :param retries: Number of retries for API requests.
    :param ca_cert_data: verify the peer using concatenated CA certificate data
      in PEM (str) or DER (bytes) format.

    :Example:

    API Key Authentication Example.
    Given the following security scheme in the OpenAPI specification:
      components:
        securitySchemes:
          cookieAuth:         # name for the security scheme
            type: apiKey
            in: cookie
            name: JSESSIONID  # cookie name

    You can programmatically set the cookie:

conf = lance_namespace_urllib3_client.Configuration(
    api_key={'cookieAuth': 'abc123'}
    api_key_prefix={'cookieAuth': 'JSESSIONID'}
)

    The following cookie will be added to the HTTP request:
       Cookie: JSESSIONID abc123
    NÚ_default)ÚdebugÚhostr#   Úapi_key_prefixÚusernameÚpasswordÚaccess_tokenÚserver_indexÚserver_variablesÚserver_operation_indexÚserver_operation_variablesÚignore_operation_serversÚssl_ca_certÚretriesÚca_cert_datarE   Úreturnc                óB  — |€dn|| _         	 |€|€dn|| _        |	xs i | _        	 |xs i | _        |
xs i | _        	 || _        	 d| _        	 i | _        |r|| _        	 i | _        |r|| _        	 d| _	        	 || _
        	 || _        	 || _        	 i | _        	 t        j                  d«      | j                  d<   t        j                  d«      | j                  d<   d| _        	 d| _        	 d| _        	 d| _        	 |�|| _        nd	| _        	 d
| _        	 || _        	 || _        	 d| _        	 d| _        	 d| _        	 d| _        	 t;        j<                  «       dz  | _        	 d| _         	 d| _!        	 d| _"        	 || _#        	 d
| _$        d| _%        	 d| _&        	 d| _'        y)zConstructor
        Núhttp://localhost:2333r   Úlance_namespace_urllib3_clientÚpackage_loggerÚurllib3Úurllib3_loggerz%%(asctime)s %(levelname)s %(message)sFTé   Ú z%Y-%m-%dT%H:%M:%S.%f%zz%Y-%m-%d)(Ú
_base_pathrK   rM   rL   rN   rO   Útemp_folder_pathr#   rG   Úrefresh_api_key_hookrH   rI   rJ   ÚloggerÚloggingÚ	getLoggerÚlogger_formatÚlogger_stream_handlerÚlogger_file_handlerÚlogger_filerE   Ú_Configuration__debugÚ
verify_sslrP   rR   Ú	cert_fileÚkey_fileÚassert_hostnameÚtls_server_nameÚmultiprocessingÚ	cpu_countÚconnection_pool_maxsizeÚproxyÚproxy_headersÚsafe_chars_for_path_paramrQ   Úclient_side_validationÚsocket_optionsÚdatetime_formatÚdate_format)ÚselfrF   r#   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rE   s                   r=   Ú__init__zConfiguration.__init__Á   sI  € ð* 6:°\Ñ1ÀtˆŒð	à!-Ð!5¸$¸,™AÈLˆÔØ&<Ò&BÀˆÔ#ð	à 0Ò 6°BˆÔØ*DÒ*JÈˆÔ'ð	à(@ˆÔ%ð	à $ˆÔð	ð ˆŒÙØ"ˆDŒLð	à ˆÔÙØ"0ˆDÔð	à$(ˆÔ!ð	à ˆŒð	à ˆŒð	à(ˆÔð	àˆŒð	ä(/×(9Ñ(9Ð:ZÓ([ˆ�‰Ð$Ñ%Ü(/×(9Ñ(9¸)Ó(Dˆ�‰Ð$Ñ%ØDˆÔð	à%)ˆÔ"ð	à:>ˆÔ ð	àˆÔð	àÐØˆD�Jà ˆDŒLð	ð ˆŒð	ð 'ˆÔð	à(ˆÔð	ð ˆŒð	àˆŒð	à#ˆÔð	à#ˆÔð	ô (7×'@Ñ'@Ó'BÀQÑ'FˆÔ$ð	ð %)ˆŒ
ð	à!ˆÔð	à)+ˆÔ&ð	àˆŒð	ð '+ˆÔ#à"ˆÔð	ð  8ˆÔð	ð &ˆÔð	r<   Úmemoc           	      óx  — | j                   }|j                  |«      }||t        | «      <   | j                  j	                  «       D ]+  \  }}|dvsŒt        ||t        j                  ||«      «       Œ- t        j                  | j                  «      |_        | j                  |_	        | j                  |_
        |S )N)r_   rd   )Ú	__class__Ú__new__ÚidÚ__dict__ÚitemsÚsetattrÚcopyÚdeepcopyr_   re   rE   )rv   rx   ÚclsÚresultÚkÚvs         r=   Ú__deepcopy__zConfiguration.__deepcopy__S  sš   € Ø�n‰nˆØ—‘˜SÓ!ˆØˆŒR�‹X‰Ø—M‘M×'Ñ'Ó)ò 	;‰DˆAˆqØÐ9Ò9Ü˜ ¤4§=¡=°°DÓ#9Õ:ð	;ô Ÿ	™	 $§+¡+Ó.ˆŒà!×-Ñ-ˆÔØ—z‘zˆŒØˆr<   Únamer   c                 ó2   — t         j                  | ||«       y ©N)ÚobjectÚ__setattr__)rv   r‡   r   s      r=   r‹   zConfiguration.__setattr__a  s   € Ü×Ñ˜4  uÕ-r<   Údefaultc                 ó   — || _         y)zÄSet default instance of configuration.

        It stores default configuration, which can be
        returned by get_default_copy method.

        :param default: object of Configuration
        N©rD   )r‚   rŒ   s     r=   Úset_defaultzConfiguration.set_defaultd  s   € ð ˆ�r<   c                 ó"   — | j                  «       S )z™Deprecated. Please use `get_default` instead.

        Deprecated. Please use `get_default` instead.

        :return: The configuration object.
        )Úget_default©r‚   s    r=   Úget_default_copyzConfiguration.get_default_copyo  s   € ð �‰Ó Ð r<   c                 óJ   — | j                   € | «       | _         | j                   S )zúReturn the default configuration.

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

        :return: The configuration object.
        rŽ   r’   s    r=   r‘   zConfiguration.get_defaulty  s!   € ð �<‰<ÐÙ›5ˆCŒLØ�|‰|Ðr<   c                 ó   — | j                   S )úîThe logger file.

        If the logger_file is None, then add stream handler and remove file
        handler. Otherwise, add file handler and remove stream handler.

        :param value: The logger_file path.
        :type: str
        )Ú_Configuration__logger_file©rv   s    r=   re   zConfiguration.logger_file‡  s   € ð ×!Ñ!Ð!r<   c                 ó8  — || _         | j                   r‡t        j                  | j                   «      | _        | j                  j	                  | j
                  «       | j                  j                  «       D ]   \  }}|j                  | j                  «       Œ" yy)r–   N)	r—   r`   r   rd   ÚsetFormatterÚlogger_formatterr_   r~   Ú
addHandler©rv   r   Ú_r_   s       r=   re   zConfiguration.logger_file“  sƒ   € ð #ˆÔØ×Òô (/×':Ñ':¸4×;MÑ;MÓ'NˆDÔ$Ø×$Ñ$×1Ñ1°$×2GÑ2GÔHØ!Ÿ[™[×.Ñ.Ó0ò <‘	��6Ø×!Ñ! $×":Ñ":Õ;ñ<ð r<   c                 ó   — | j                   S )úaDebug status

        :param value: The debug status, True or False.
        :type: bool
        )rf   r˜   s    r=   rE   zConfiguration.debug¦  s   € ð �|‰|Ðr<   c                 ó„  — || _         | j                   rW| j                  j                  «       D ]$  \  }}|j                  t        j
                  «       Œ& dt        j                  _        y| j                  j                  «       D ]$  \  }}|j                  t        j                  «       Œ& dt        j                  _        y)r    é   r   N)
rf   r_   r~   ÚsetLevelr`   ÚDEBUGÚhttplibÚHTTPConnectionÚ
debuglevelÚWARNINGr�   s       r=   rE   zConfiguration.debug¯  s”   € ð ˆŒØ�<Š<à!Ÿ[™[×.Ñ.Ó0ò /‘	��6Ø—‘¤§¡Õ.ð/ð 12ŒG×"Ñ"Õ-ð "Ÿ[™[×.Ñ.Ó0ò 1‘	��6Ø—‘¤§¡Õ0ð1ð 12ŒG×"Ñ"Õ-r<   c                 ó   — | j                   S )úŸThe logger format.

        The logger_formatter will be updated when sets logger_format.

        :param value: The format string.
        :type: str
        )Ú_Configuration__logger_formatr˜   s    r=   rb   zConfiguration.logger_formatÅ  s   € ð ×#Ñ#Ð#r<   c                 óZ   — || _         t        j                  | j                   «      | _        y)rª   N)r«   r`   Ú	Formatterr›   ©rv   r   s     r=   rb   zConfiguration.logger_formatÐ  s%   € ð  %ˆÔÜ '× 1Ñ 1°$×2FÑ2FÓ GˆÕr<   Ú
identifierÚaliasc                 ó   — | j                   �| j                  | «       | j                  j                  ||�| j                  j                  |«      nd«      }|r&| j                  j                  |«      }|r|›d|›�S |S y)zÔGets API key (with prefix if set).

        :param identifier: The identifier of apiKey.
        :param alias: The alternative identifier of apiKey.
        :return: The token for api key authentication.
        Nú )r^   r#   ÚgetrG   )rv   r¯   r°   r   Úprefixs        r=   Úget_api_key_with_prefixz%Configuration.get_api_key_with_prefixÜ  sz   € ð ×$Ñ$Ð0Ø×%Ñ% dÔ+Ø�l‰l×Ñ˜zÀeÐFW¨4¯<©<×+;Ñ+;¸EÔ+BÐ]aÓbˆÙØ×(Ñ(×,Ñ,¨ZÓ8ˆFÙÚ"(©#Ð.Ð.à�
àr<   c                 óÔ   — d}| j                   �| j                   }d}| j                  �| j                  }t        j                  j	                  |dz   |z   ¬«      j                  d«      S )zsGets HTTP basic authentication header (string).

        :return: The token for basic HTTP authentication.
        r[   ú:)Ú
basic_authÚauthorization)rH   rI   rX   ÚutilÚmake_headersr³   )rv   rH   rI   s      r=   Úget_basic_auth_tokenz"Configuration.get_basic_auth_tokenï  sf   € ð
 ˆØ�=‰=Ð$Ø—}‘}ˆHØˆØ�=‰=Ð$Ø—}‘}ˆHÜ�|‰|×(Ñ(Ø #‘~¨Ñ0ð )ó 
ç
‰#ˆoÓ
ð	r<   c                 óä   — i }| j                   �dddd| j                   z   dœ|d<   | j                   �dddd| j                   z   dœ|d<   d	| j                  v rd
dd| j                  d	«      dœ|d	<   |S )zfGets Auth Settings dict for api client.

        :return: The Auth Settings information dict.
        r   r    r!   zBearer r   r-   r'   r.   r/   r#   z	x-api-key)rJ   r#   rµ   )rv   Úauths     r=   Úauth_settingszConfiguration.auth_settingsþ  s£   € ð
  ˆØ×ÑÐ(à ØØ&Ø" T×%6Ñ%6Ñ6ñ	ˆD�‰Nð ×ÑÐ(à ØØ&Ø" T×%6Ñ%6Ñ6ñ	"ˆD�Ñð ˜4Ÿ<™<Ñ'à!ØØ"Ø×5Ñ5Ø óñ	"ˆD�Ñð ˆr<   c                 ó`   — dj                  t        j                  t        j                  ¬«      S )zbGets the essential information for debugging.

        :return: The report for debugging.
        ztPython SDK Debug Report:
OS: {env}
Python Version: {pyversion}
Version of the API: 1.0.0
SDK Package Version: 0.13.0)ÚenvÚ	pyversion)r)   ÚsysÚplatformÚversionr˜   s    r=   Úto_debug_reportzConfiguration.to_debug_report  s$   € ð
-÷
 ‰vœ#Ÿ,™,´#·+±+ˆvÓ>ð	?r<   c           	      ó^   — dddœdddddœdd	dœdd
dœdddœdœdœdddddœdd	dœdddœdœdœgS )zSGets an array of host settings

        :return: An array of host settings
        rU   zDefault local server)r@   r3   z#{scheme}://{host}:{port}/{basePath}z.Generic server URL with all parts configurablezNo description providedÚhttp)r3   r4   Ú	localhostÚ2333r[   )ÚschemerF   ÚportÚbasePath)r@   r3   rA   z{scheme}://{host}/{basePath}z8Server URL when the port can be inferred from the scheme)rË   rF   rÍ   r;   r˜   s    r=   Úget_host_settingszConfiguration.get_host_settings)  sŸ   € ð /Ø5ñð
 =ØOð (AØ)/ñð
 (AØ)4ñð
 (AØ)/ñð
 (AØ)+ñ!ññð. 6ØYð (AØ)/ñð
 (AØ)4ñð
 (AØ)+ñ!ññð7-
ð -	
r<   ÚindexrA   Úserversc           	      óÒ  — |€| j                   S |€i n|}|€| j                  «       n|}	 ||   }|d   }|j                  di «      j                  «       D ]_  \  }}|j                  ||d   «      }d|v r)||d   vr"t        dj	                  |||   |d   «      «      ‚|j                  d|z   dz   |«      }Œa |S # t        $ r% t        dj	                  |t        |«      «      «      ‚w xY w)	a  Gets host URL based on the index and variables
        :param index: array index of the host settings
        :param variables: hash of variable and the corresponding value
        :param servers: an array of host settings or None
        :return: URL based on host settings
        zIInvalid index {0} when selecting the host settings. Must be less than {1}r@   rA   r4   r5   zFThe variable `{0}` in the host URL has invalid value {1}. Must be {2}.ú{ú})	r\   rÎ   Ú
IndexErrorÚ
ValueErrorr)   Úlenr³   r~   Úreplace)	rv   rÏ   rA   rÐ   Úserverr@   Úvariable_nameÚvariableÚ
used_values	            r=   Úget_host_from_settingsz$Configuration.get_host_from_settings]  s0  € ð ˆ=Ø—?‘?Ð"à#Ð+‘B°ˆ	Ø.5¨o�$×(Ñ(Ô*À7ˆð	EØ˜U‘^ˆFð �U‰mˆð (.§z¡z°+¸rÓ'B×'HÑ'HÓ'Jò 	EÑ#ˆM˜8Ø"Ÿ™Ø˜x¨Ñ8ó:ˆJð  Ñ(Ø"¨(°=Ñ*AÑAÜ ð(ß(.©Ø% y°Ñ'?Ø  Ñ/ó)1ó2ð 2ð —+‘+˜c MÑ1°CÑ7¸ÓD‰Cð	Eð ˆ
øô- ò 	EÜð(ß(.©¨u´c¸'³lÓ(CóEð Eð	Eús   ªB8 Â8.C&c                 óP   — | j                  | j                  | j                  ¬«      S )zReturn generated host.)rA   )rÜ   rK   rL   r˜   s    r=   rF   zConfiguration.host‰  s&   € ð ×*Ñ*¨4×+<Ñ+<È×H]ÑH]Ð*Ó^Ð^r<   c                 ó    — || _         d| _        y)zFix base path.N)r\   rK   r®   s     r=   rF   zConfiguration.hostŽ  s   € ð  ˆŒØ ˆÕr<   )NNNNNNNNNNFNNNr‰   )NN)'r6   r7   r8   Ú__doc__rD   r   r	   r   r:   r9   r   ÚintÚServerVariablesTÚboolr   Úbytesrw   r   r†   r‹   Úclassmethodr�   r“   r‘   Úpropertyre   ÚsetterrE   rb   rµ   r¼   r,   r¿   rÆ   r   r?   rÎ   rÜ   rF   r;   r<   r=   rC   rC   ˆ   sÃ  … ñ4ðl *.€Hˆh�x ‘~Ñ&Ó-ð !Ø*.Ø15Ø $Ø $Ø$(Ø$(Ø59Ø9=ØJNØ',Ø#'Ø!%Ø48ðPð" !%ò#Pà�s‰mðPð ˜$˜s C˜x™.Ñ)ðPð !  c¨3 h¡Ñ0ð	Pð
 ˜3‘-ðPð ˜3‘-ðPð ˜s‘mðPð ˜s‘mðPð #Ð#3Ñ4ðPð !)¨¨c°3¨h©Ñ 8ðPð %-¨T°#Ð7GÐ2GÑ-HÑ$IðPð #'ðPð ˜c‘]ðPð ˜#‘ðPð ˜u S¨% ZÑ0Ñ1ðPð" ˜‰~ð#Pð$ 
ó%Pðd $ s¨C x¡.ð °Tó ð. ð .¨Cð .°Dó .ð ð (¨4¡.ð °Tò ó ðð ð! ò !ó ð!ð ð˜Dò ó ðð ð	"˜X c™]ò 	"ó ð	"ð ×Ñð< ¨#¡ð <°4ò <ó ð<ð$ ð�tò ó ðð ‡\�\ð2˜4ð 2 Dò 2ó ð2ð* ð$˜sò $ó ð$ð ×Ñð	H 3ð 	H¨4ò 	Hó ð	Hñ°#ð ¸hÀs¹mð ÐU]Ð^aÑUbó ð& h¨s¡mó ð˜ló ð>
? ó 
?ð2
 4¨Ñ#4ó 2
ðn /3Ø-1ñ	*à˜‰}ð*ð Ð,Ñ-ð*ð ˜$˜{Ñ+Ñ,ð	*ð
 
ó*ðX ð_�cò _ó ð_ð 
‡[�[ð!˜#ð ! $ò !ó ñ!r<   rC   )$rß   r€   Úhttp.clientÚclientr¥   r`   r   rl   rÃ   Útypingr   r   r   r   r   r	   r
   r   Útyping_extensionsr   r   rX   ÚJSON_SCHEMA_VALIDATION_KEYWORDSr9   rá   r   r   r"   r$   r&   r*   r+   r,   r2   r?   rC   r;   r<   r=   ú<module>rì      sÐ  ðñ	ó Ý Û Ý Û Û 
ß Q× QÓ Qß /ã ò#Ð ð ˜˜S˜‘>Ð áØàØØØñ	óÐ ñ Øà˜Ñ!Ø�hÑØ�Ñ'Øñ	óÐ ñ Øà˜	Ñ"ØØØ˜#‘ñ	óÐ ñ Øà˜Ñ Ø�hÑØ�Ñ'Ø˜#‘ñ	óÐ ñ $Øà˜Ñ!Ø�hÑØ˜%‘.Ø�Ñ'Øñó	Ð ñ Øà˜Ñ!Ø�hÑØ�Ñ'Øñ	óÐ ñ %ØàÐ(Ñ)Ø�hÑØ�Ñ'Øñ	óÐ ñ Øà#Ø'Ø'ñð
 ô€ô˜)ô ô;�)ô ;÷J!ò J!r<   