
    i&v                    ,   d Z ddlZddlmZmZmZmZmZ ddlm	Z	m
Z
mZmZmZmZ ddlmZ ddlmZmZmZ ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z  ddl!m"Z" ddl#m$Z$m%Z% ddl&m'Z' ddl(m)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)validate_callFieldStrictFloat	StrictStr	StrictInt)AnyDictListOptionalTupleUnion)	Annotated)r   r   r   )r   )CreateNamespaceRequest)CreateNamespaceResponse)DescribeNamespaceRequest)DescribeNamespaceResponse)DropNamespaceRequest)DropNamespaceResponse)ListNamespacesResponse)ListTablesResponse)NamespaceExistsRequest)	ApiClientRequestSerialized)ApiResponse)RESTResponseTypec                      e Zd ZdZd2d3dZe	 	 	 	 	 	 d4dee ed      f   d	e	d
ee
e    ed      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   defd       Ze	 	 	 	 	 	 d4dee ed      f   d	e	d
ee
e    ed      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   dee   fd       Ze	 	 	 	 	 	 d4dee ed      f   d	e	d
ee
e    ed      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   defd       ZdefdZe	 	 	 	 	 	 d4dee ed      f   ded
ee
e    ed      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   defd       Ze	 	 	 	 	 	 d4dee ed      f   ded
ee
e    ed      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   dee   fd       Ze	 	 	 	 	 	 d4dee ed      f   ded
ee
e    ed      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   defd       ZdefdZe	 	 	 	 	 	 d4dee ed      f   ded
ee
e    ed      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   de fd       Z!e	 	 	 	 	 	 d4dee ed      f   ded
ee
e    ed      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   dee    fd       Z"e	 	 	 	 	 	 d4dee ed      f   ded
ee
e    ed      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   defd       Z#defd Z$e	 	 	 	 	 	 	 	 d5dee ed      f   d
ee
e    ed      f   d!ee
e    ed"      f   d#ee
e    ed$      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   de%fd%       Z&e	 	 	 	 	 	 	 	 d5dee ed      f   d
ee
e    ed      f   d!ee
e    ed"      f   d#ee
e    ed$      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   dee%   fd&       Z'e	 	 	 	 	 	 	 	 d5dee ed      f   d
ee
e    ed      f   d!ee
e    ed"      f   d#ee
e    ed$      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   defd'       Z(defd(Z)e	 	 	 	 	 	 	 	 d5dee ed      f   d
ee
e    ed      f   d!ee
e    ed"      f   d#ee
e    ed$      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   de*fd)       Z+e	 	 	 	 	 	 	 	 d5dee ed      f   d
ee
e    ed      f   d!ee
e    ed"      f   d#ee
e    ed$      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   dee*   fd*       Z,e	 	 	 	 	 	 	 	 d5dee ed      f   d
ee
e    ed      f   d!ee
e    ed"      f   d#ee
e    ed$      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   defd+       Z-defd,Z.e	 	 	 	 	 	 d4dee ed      f   d-e/d
ee
e    ed      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   ddfd.       Z0e	 	 	 	 	 	 d4dee ed      f   d-e/d
ee
e    ed      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   ded   fd/       Z1e	 	 	 	 	 	 d4dee ed      f   d-e/d
ee
e    ed      f   dedee ed      f   eee ed      f   ee ed      f   f   f   de
eeef      de
e   de
eeef      dee edd      f   defd0       Z2defd1Z3y)6NamespaceApizNOTE: This class is auto generated by OpenAPI Generator
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    Nreturnc                 >    |t        j                         }|| _        y N)r   get_default
api_client)selfr"   s     l/mnt/e/genesis-system/.venv/lib/python3.12/site-packages/lance_namespace_urllib3_client/api/namespace_api.py__init__zNamespaceApi.__init__,   s    "..0J$    r   idz`string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace. )descriptioncreate_namespace_request	delimiterzAn optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. _request_timeout)gt_request_auth_content_type_headers_host_index)gelec	           
          | j                  |||||||      }	dddddddddd	}
 | j                  j                  |	d|i}|j                          | j                  j	                  ||
      j
                  S   Create a new namespace

        Create new namespace `id`.  During the creation process, the implementation may modify user-provided `properties`, such as adding additional properties like `created_at` to user-provided properties, omitting any specific property, or performing actions based on any property value. 

        :param id: `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace.  (required)
        :type id: str
        :param create_namespace_request: (required)
        :type create_namespace_request: CreateNamespaceRequest
        :param delimiter: An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. 
        :type delimiter: str
        :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.
        :type _request_timeout: int, tuple(int, int), optional
        :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.
        :type _request_auth: dict, optional
        :param _content_type: force content-type for the request.
        :type _content_type: str, Optional
        :param _headers: set to override the headers for a single
                         request; this effectively ignores the headers
                         in the spec for a single request.
        :type _headers: dict, optional
        :param _host_index: set to override the host_index for a single
                            request; this effectively ignores the host_index
                            in the spec for a single request.
        :type _host_index: int, optional
        :return: Returns the result object.
        r'   r)   r*   r-   r.   r/   r0   r   ErrorResponse	2004004014034044064095035XXr+   response_dataresponse_types_map)_create_namespace_serializer"   call_apireadresponse_deserializedatar#   r'   r)   r*   r+   r-   r.   r/   r0   _param_response_types_maprC   s               r$   create_namespacezNamespaceApi.create_namespace2   s    f 11%=''# 2 
 -""""""""
9
 100
-
 	33'2 4 
 $	r&   c	           
          | j                  |||||||      }	dddddddddd	}
 | j                  j                  |	d|i}|j                          | j                  j	                  ||
      S r4   )rE   r"   rF   rG   rH   rJ   s               r$   create_namespace_with_http_infoz,NamespaceApi.create_namespace_with_http_info   s    f 11%=''# 2 
 -""""""""
9
 100
-
 	33'2 4 
 	
r&   c	           
          | j                  |||||||      }	dddddddddd	}
 | j                  j                  |	d|i}|j                  S )r5   r6   r   r7   r8   r+   )rE   r"   rF   responserJ   s               r$   (create_namespace_without_preload_contentz5NamespaceApi.create_namespace_without_preload_content   s    f 11%=''# 2 
 -""""""""
9
 100
-
 %%%r&   c                 \   d }i }	i }
g }|xs i }g }i }d }|||
d<   ||j                  d|f       ||}d|vr| j                  j                  dg      |d<   |r||d<   n#| j                  j                  dg      }|||d<   g d}| j                  j	                  dd|
|||||||	||	      S )
Nr'   r*   Acceptapplication/jsonContent-TypeOAuth2
ApiKeyAuth
BearerAuthPOSTz/v1/namespace/{id}/createmethodresource_pathpath_paramsquery_paramsheader_paramsbodypost_paramsfilesauth_settingscollection_formats_hostr-   appendr"   select_header_acceptselect_header_content_typeparam_serialize)r#   r'   r)   r*   r-   r.   r/   r0   rg   _collection_formats_path_params_query_params_header_params_form_params_files_body_params_default_content_type_auth_settingss                     r$   rE   z(NamespaceApi._create_namespace_serialize'  )    /
 (*/13;>r.0  	 )- >!#L   +y!9:
 $/3L >)'+'K'K&(N8$ -:N>* ::* " %01F~.%
 ..5$&($(2' / 
 	
r&   describe_namespace_requestc	           	          | j                  |||||||      }	dddddddd}
 | j                  j                  |	d|i}|j                          | j                  j	                  ||
      j
                  S   Describe a namespace

        Describe the detailed information for namespace `id`. 

        :param id: `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace.  (required)
        :type id: str
        :param describe_namespace_request: (required)
        :type describe_namespace_request: DescribeNamespaceRequest
        :param delimiter: An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. 
        :type delimiter: str
        :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.
        :type _request_timeout: int, tuple(int, int), optional
        :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.
        :type _request_auth: dict, optional
        :param _content_type: force content-type for the request.
        :type _content_type: str, Optional
        :param _headers: set to override the headers for a single
                         request; this effectively ignores the headers
                         in the spec for a single request.
        :type _headers: dict, optional
        :param _host_index: set to override the host_index for a single
                            request; this effectively ignores the host_index
                            in the spec for a single request.
        :type _host_index: int, optional
        :return: Returns the result object.
        r'   rw   r*   r-   r.   r/   r0   r   r7   r9   r:   r;   r<   r=   r@   rA   r+   rB   )_describe_namespace_serializer"   rF   rG   rH   rI   r#   r'   rw   r*   r+   r-   r.   r/   r0   rK   rL   rC   s               r$   describe_namespacezNamespaceApi.describe_namespace~  s    f 33'A''# 4 
 /""""""9
 100
-
 	33'2 4 
 $	r&   c	           	          | j                  |||||||      }	dddddddd}
 | j                  j                  |	d|i}|j                          | j                  j	                  ||
      S ry   )r}   r"   rF   rG   rH   r~   s               r$   !describe_namespace_with_http_infoz.NamespaceApi.describe_namespace_with_http_info  s    f 33'A''# 4 
 /""""""9
 100
-
 	33'2 4 
 	
r&   c	           	          | j                  |||||||      }	dddddddd}
 | j                  j                  |	d|i}|j                  S )rz   r{   r   r7   r|   r+   )r}   r"   rF   rQ   r~   s               r$   *describe_namespace_without_preload_contentz7NamespaceApi.describe_namespace_without_preload_content   s    f 33'A''# 4 
 /""""""9
 100
-
 %%%r&   c                 \   d }i }	i }
g }|xs i }g }i }d }|||
d<   ||j                  d|f       ||}d|vr| j                  j                  dg      |d<   |r||d<   n#| j                  j                  dg      }|||d<   g d}| j                  j	                  dd|
|||||||	||	      S )
Nr'   r*   rT   rU   rV   rW   r[   z/v1/namespace/{id}/describer\   rh   )r#   r'   rw   r*   r-   r.   r/   r0   rg   rm   rn   ro   rp   rq   rr   rs   rt   ru   s                     r$   r}   z*NamespaceApi._describe_namespace_serializem  s)    /
 (*/13;>r.0  	 )- >!#L   +y!9:
 &15L >)'+'K'K&(N8$ -:N>* ::* " %01F~.%
 ..7$&($(2' / 
 	
r&   drop_namespace_requestc	           	          | j                  |||||||      }	ddddddddd}
 | j                  j                  |	d|i}|j                          | j                  j	                  ||
      j
                  S   Drop a namespace

        Drop namespace `id` from its parent namespace. 

        :param id: `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace.  (required)
        :type id: str
        :param drop_namespace_request: (required)
        :type drop_namespace_request: DropNamespaceRequest
        :param delimiter: An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. 
        :type delimiter: str
        :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.
        :type _request_timeout: int, tuple(int, int), optional
        :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.
        :type _request_auth: dict, optional
        :param _content_type: force content-type for the request.
        :type _content_type: str, Optional
        :param _headers: set to override the headers for a single
                         request; this effectively ignores the headers
                         in the spec for a single request.
        :type _headers: dict, optional
        :param _host_index: set to override the host_index for a single
                            request; this effectively ignores the host_index
                            in the spec for a single request.
        :type _host_index: int, optional
        :return: Returns the result object.
        r'   r   r*   r-   r.   r/   r0   r   r7   r9   r:   r;   r<   r=   r?   r@   rA   r+   rB   )_drop_namespace_serializer"   rF   rG   rH   rI   r#   r'   r   r*   r+   r-   r.   r/   r0   rK   rL   rC   s               r$   drop_namespacezNamespaceApi.drop_namespace  s    f //#9''# 0 
 +"""""""	9
 100
-
 	33'2 4 
 $	r&   c	           	          | j                  |||||||      }	ddddddddd}
 | j                  j                  |	d|i}|j                          | j                  j	                  ||
      S r   )r   r"   rF   rG   rH   r   s               r$   drop_namespace_with_http_infoz*NamespaceApi.drop_namespace_with_http_info  s    f //#9''# 0 
 +"""""""	9
 100
-
 	33'2 4 
 	
r&   c	           	          | j                  |||||||      }	ddddddddd}
 | j                  j                  |	d|i}|j                  S )r   r   r   r7   r   r+   )r   r"   rF   rQ   r   s               r$   &drop_namespace_without_preload_contentz3NamespaceApi.drop_namespace_without_preload_contenth  s    f //#9''# 0 
 +"""""""	9
 100
-
 %%%r&   c                 \   d }i }	i }
g }|xs i }g }i }d }|||
d<   ||j                  d|f       ||}d|vr| j                  j                  dg      |d<   |r||d<   n#| j                  j                  dg      }|||d<   g d}| j                  j	                  dd|
|||||||	||	      S )
Nr'   r*   rT   rU   rV   rW   r[   z/v1/namespace/{id}/dropr\   rh   )r#   r'   r   r*   r-   r.   r/   r0   rg   rm   rn   ro   rp   rq   rr   rs   rt   ru   s                     r$   r   z&NamespaceApi._drop_namespace_serialize  s)    /
 (*/13;>r.0  	 )- >!#L   +y!9:
 "-1L >)'+'K'K&(N8$ -:N>* ::* " %01F~.%
 ..3$&($(2' / 
 	
r&   
page_tokenz(Pagination token from a previous requestlimitz!Maximum number of items to returnc
           
          | j                  ||||||||	      }
ddddddddd} | j                  j                  |
d|i}|j                          | j                  j	                  ||      j
                  S B	  List namespaces

        List all child namespace names of the parent namespace `id`.  REST NAMESPACE ONLY REST namespace uses GET to perform this operation without a request body. It passes in the `ListNamespacesRequest` information in the following way: - `id`: pass through path parameter of the same name - `page_token`: pass through query parameter of the same name - `limit`: pass through query parameter of the same name 

        :param id: `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace.  (required)
        :type id: str
        :param delimiter: An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. 
        :type delimiter: str
        :param page_token: Pagination token from a previous request
        :type page_token: str
        :param limit: Maximum number of items to return
        :type limit: int
        :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.
        :type _request_timeout: int, tuple(int, int), optional
        :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.
        :type _request_auth: dict, optional
        :param _content_type: force content-type for the request.
        :type _content_type: str, Optional
        :param _headers: set to override the headers for a single
                         request; this effectively ignores the headers
                         in the spec for a single request.
        :type _headers: dict, optional
        :param _host_index: set to override the host_index for a single
                            request; this effectively ignores the host_index
                            in the spec for a single request.
        :type _host_index: int, optional
        :return: Returns the result object.
        r'   r*   r   r   r-   r.   r/   r0   r   r7   r9   r:   r;   r<   r=   r>   r@   rA   r+   rB   )_list_namespaces_serializer"   rF   rG   rH   rI   r#   r'   r*   r   r   r+   r-   r.   r/   r0   rK   rL   rC   s                r$   list_namespaceszNamespaceApi.list_namespaces  s    l 00!''# 1 	
 ,"""""""	9
 100
-
 	33'2 4 
 $	r&   c
           
          | j                  ||||||||	      }
ddddddddd} | j                  j                  |
d|i}|j                          | j                  j	                  ||      S r   )r   r"   rF   rG   rH   r   s                r$   list_namespaces_with_http_infoz+NamespaceApi.list_namespaces_with_http_infoc  s    l 00!''# 1 	
 ,"""""""	9
 100
-
 	33'2 4 
 	
r&   c
           
          | j                  ||||||||	      }
ddddddddd} | j                  j                  |
d|i}|j                  S )r   r   r   r7   r   r+   )r   r"   rF   rQ   r   s                r$   'list_namespaces_without_preload_contentz4NamespaceApi.list_namespaces_without_preload_content  s    l 00!''# 1 	
 ,"""""""	9
 100
-
 %%%r&   c	                 R   d }	i }
i }g }|xs i }g }i }d }|||d<   ||j                  d|f       ||j                  d|f       ||j                  d|f       d|vr| j                  j                  dg      |d<   g d}| j                  j                  dd	||||||||
|	|
      S )Nr'   r*   r   r   rT   rU   rW   GETz/v1/namespace/{id}/listr\   ri   r"   rj   rl   r#   r'   r*   r   r   r-   r.   r/   r0   rg   rm   rn   ro   rp   rq   rr   rs   ru   s                     r$   r   z'NamespaceApi._list_namespaces_serialize  s    /
 (*/13;>r.0  	 )- >!#L   +y!9:!  ,
!;<  '5!12 >)'+'K'K&(N8$%
 ..3$&($(2' / 
 	
r&   c
           
          | j                  ||||||||	      }
ddddddddd} | j                  j                  |
d|i}|j                          | j                  j	                  ||      j
                  S E	  List tables in a namespace

        List all child table names of the parent namespace `id`.  REST NAMESPACE ONLY REST namespace uses GET to perform this operation without a request body. It passes in the `ListTablesRequest` information in the following way: - `id`: pass through path parameter of the same name - `page_token`: pass through query parameter of the same name - `limit`: pass through query parameter of the same name 

        :param id: `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace.  (required)
        :type id: str
        :param delimiter: An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. 
        :type delimiter: str
        :param page_token: Pagination token from a previous request
        :type page_token: str
        :param limit: Maximum number of items to return
        :type limit: int
        :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.
        :type _request_timeout: int, tuple(int, int), optional
        :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.
        :type _request_auth: dict, optional
        :param _content_type: force content-type for the request.
        :type _content_type: str, Optional
        :param _headers: set to override the headers for a single
                         request; this effectively ignores the headers
                         in the spec for a single request.
        :type _headers: dict, optional
        :param _host_index: set to override the host_index for a single
                            request; this effectively ignores the host_index
                            in the spec for a single request.
        :type _host_index: int, optional
        :return: Returns the result object.
        r   r   r7   r   r+   rB   )_list_tables_serializer"   rF   rG   rH   rI   r   s                r$   list_tableszNamespaceApi.list_tables\  s    l ,,!''# - 	
 ("""""""	9
 100
-
 	33'2 4 
 $	r&   c
           
          | j                  ||||||||	      }
ddddddddd} | j                  j                  |
d|i}|j                          | j                  j	                  ||      S r   )r   r"   rF   rG   rH   r   s                r$   list_tables_with_http_infoz'NamespaceApi.list_tables_with_http_info  s    l ,,!''# - 	
 ("""""""	9
 100
-
 	33'2 4 
 	
r&   c
           
          | j                  ||||||||	      }
ddddddddd} | j                  j                  |
d|i}|j                  S )r   r   r   r7   r   r+   )r   r"   rF   rQ   r   s                r$   #list_tables_without_preload_contentz0NamespaceApi.list_tables_without_preload_content  s    l ,,!''# - 	
 ("""""""	9
 100
-
 %%%r&   c	                 R   d }	i }
i }g }|xs i }g }i }d }|||d<   ||j                  d|f       ||j                  d|f       ||j                  d|f       d|vr| j                  j                  dg      |d<   g d}| j                  j                  dd	||||||||
|	|
      S )Nr'   r*   r   r   rT   rU   rW   r   z/v1/namespace/{id}/table/listr\   r   r   s                     r$   r   z#NamespaceApi._list_tables_serializeZ  s    /
 (*/13;>r.0  	 )- >!#L   +y!9:!  ,
!;<  '5!12 >)'+'K'K&(N8$%
 ..9$&($(2' / 
 	
r&   namespace_exists_requestc	           	          | j                  |||||||      }	dddddddd}
 | j                  j                  |	d|i}|j                          | j                  j	                  ||
      j
                  S   Check if a namespace exists

        Check if namespace `id` exists.  This operation must behave exactly like the DescribeNamespace API, except it does not contain a response body. 

        :param id: `string identifier` of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, `v1/namespace/$/list` performs a `ListNamespace` on the root namespace.  (required)
        :type id: str
        :param namespace_exists_request: (required)
        :type namespace_exists_request: NamespaceExistsRequest
        :param delimiter: An optional delimiter of the `string identifier`, following the Lance Namespace spec. When not specified, the `$` delimiter must be used. 
        :type delimiter: str
        :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.
        :type _request_timeout: int, tuple(int, int), optional
        :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.
        :type _request_auth: dict, optional
        :param _content_type: force content-type for the request.
        :type _content_type: str, Optional
        :param _headers: set to override the headers for a single
                         request; this effectively ignores the headers
                         in the spec for a single request.
        :type _headers: dict, optional
        :param _host_index: set to override the host_index for a single
                            request; this effectively ignores the host_index
                            in the spec for a single request.
        :type _host_index: int, optional
        :return: Returns the result object.
        r'   r   r*   r-   r.   r/   r0   Nr7   r|   r+   rB   )_namespace_exists_serializer"   rF   rG   rH   rI   r#   r'   r   r*   r+   r-   r.   r/   r0   rK   rL   rC   s               r$   namespace_existszNamespaceApi.namespace_exists  s    f 11%=''# 2 
 """"""9
 100
-
 	33'2 4 
 $	r&   c	           	          | j                  |||||||      }	dddddddd}
 | j                  j                  |	d|i}|j                          | j                  j	                  ||
      S r   )r   r"   rF   rG   rH   r   s               r$   namespace_exists_with_http_infoz,NamespaceApi.namespace_exists_with_http_info  s    f 11%=''# 2 
 """"""9
 100
-
 	33'2 4 
 	
r&   c	           	          | j                  |||||||      }	dddddddd}
 | j                  j                  |	d|i}|j                  S )r   r   Nr7   r|   r+   )r   r"   rF   rQ   r   s               r$   (namespace_exists_without_preload_contentz5NamespaceApi.namespace_exists_without_preload_contentM  s    f 11%=''# 2 
 """"""9
 100
-
 %%%r&   c                 \   d }i }	i }
g }|xs i }g }i }d }|||
d<   ||j                  d|f       ||}d|vr| j                  j                  dg      |d<   |r||d<   n#| j                  j                  dg      }|||d<   g d}| j                  j	                  dd|
|||||||	||	      S )
Nr'   r*   rT   rU   rV   rW   r[   z/v1/namespace/{id}/existsr\   rh   )r#   r'   r   r*   r-   r.   r/   r0   rg   rm   rn   ro   rp   rq   rr   rs   rt   ru   s                     r$   r   z(NamespaceApi._namespace_exists_serialize  rv   r&   r    )r   N)NNNNNr   )NNNNNNNr   )4__name__
__module____qualname____doc__r%   r   r   r   r   r   r   r   r   r   r	   r   r   r   rM   r   rO   r   rR   r   rE   r   r   r   r   r   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r&   r$   r   r   %   sf   % 
 VZ 8<-137?@!Oi  4l  "m  m  nO #9O Xi0%  EQ  3R  R  S	O
  k5A;./+u{23+u{234
O  Y^ 45O  	*O 4	3/0O  y%1*;;<!O" 
!#O Od 
 VZ 8<-137?@!O
i  4l  "m  m  nO
 #9O
 Xi0%  EQ  3R  R  S	O

  k5A;./+u{23+u{234
O
  Y^ 45O
  	*O
 4	3/0O
  y%1*;;<!O
" 
,	-#O
 O
d 
 VZ 8<-137?@!K&i  4l  "m  m  nK& #9K& Xi0%  EQ  3R  R  S	K&
  k5A;./+u{23+u{234
K&  Y^ 45K&  	*K& 4	3/0K&  y%1*;;<!K&" 
#K& K&\R
 
R
n 
 VZ 8<-137?@!Mi  4l  "m  m  nM %=M Xi0%  EQ  3R  R  S	M
  k5A;./+u{23+u{234
M  Y^ 45M  	*M 4	3/0M  y%1*;;<!M" 
##M M` 
 VZ 8<-137?@!M
i  4l  "m  m  nM
 %=M
 Xi0%  EQ  3R  R  S	M

  k5A;./+u{23+u{234
M
  Y^ 45M
  	*M
 4	3/0M
  y%1*;;<!M
" 
.	/#M
 M
` 
 VZ 8<-137?@!I&i  4l  "m  m  nI& %=I& Xi0%  EQ  3R  R  S	I&
  k5A;./+u{23+u{234
I&  Y^ 45I&  	*I& 4	3/0I&  y%1*;;<!I&" 
#I& I&XR
 
R
n 
 VZ 8<-137?@!Ni  4l  "m  m  nN !5N Xi0%  EQ  3R  R  S	N
  k5A;./+u{23+u{234
N  Y^ 45N  	*N 4	3/0N  y%1*;;<!N" 
#N Nb 
 VZ 8<-137?@!N
i  4l  "m  m  nN
 !5N
 Xi0%  EQ  3R  R  S	N

  k5A;./+u{23+u{234
N
  Y^ 45N
  	*N
 4	3/0N
  y%1*;;<!N
" 
*	+#N
 N
b 
 VZ 8<-137?@!J&i  4l  "m  m  nJ& !5J& Xi0%  EQ  3R  R  S	J&
  k5A;./+u{23+u{234
J&  Y^ 45J&  	*J& 4	3/0J&  y%1*;;<!J&" 
#J& J&ZR
 
R
n  VZtxhl 8<-137?@#Ri  4l  "m  m  nR Xi0%  EQ  3R  R  SR hy15Eo3ppq	R
 ),e@c.ddeR  k5A;./+u{23+u{234
R  Y^ 45R  	*R  4	3/0!R" y%1*;;<#R$ 
 %R Rj  VZtxhl 8<-137?@#R
i  4l  "m  m  nR
 Xi0%  EQ  3R  R  SR
 hy15Eo3ppq	R

 ),e@c.ddeR
  k5A;./+u{23+u{234
R
  Y^ 45R
  	*R
  4	3/0!R
" y%1*;;<#R
$ 
+	,%R
 R
j  VZtxhl 8<-137?@#N&i  4l  "m  m  nN& Xi0%  EQ  3R  R  SN& hy15Eo3ppq	N&
 ),e@c.ddeN&  k5A;./+u{23+u{234
N&  Y^ 45N&  	*N&  4	3/0!N&" y%1*;;<#N&$ 
%N& N&bL
 
L
b  VZtxhl 8<-137?@#Ri  4l  "m  m  nR Xi0%  EQ  3R  R  SR hy15Eo3ppq	R
 ),e@c.ddeR  k5A;./+u{23+u{234
R  Y^ 45R  	*R  4	3/0!R" y%1*;;<#R$ 
%R Rj  VZtxhl 8<-137?@#R
i  4l  "m  m  nR
 Xi0%  EQ  3R  R  SR
 hy15Eo3ppq	R

 ),e@c.ddeR
  k5A;./+u{23+u{234
R
  Y^ 45R
  	*R
  4	3/0!R
" y%1*;;<#R
$ 
'	(%R
 R
j  VZtxhl 8<-137?@#N&i  4l  "m  m  nN& Xi0%  EQ  3R  R  SN& hy15Eo3ppq	N&
 ),e@c.ddeN&  k5A;./+u{23+u{234
N&  Y^ 45N&  	*N&  4	3/0!N&" y%1*;;<#N&$ 
%N& N&bL
 
L
b 
 VZ 8<-137?@!Mi  4l  "m  m  nM #9M Xi0%  EQ  3R  R  S	M
  k5A;./+u{23+u{234
M  Y^ 45M  	*M 4	3/0M  y%1*;;<!M" 
#M M` 
 VZ 8<-137?@!M
i  4l  "m  m  nM
 #9M
 Xi0%  EQ  3R  R  S	M

  k5A;./+u{23+u{234
M
  Y^ 45M
  	*M
 4	3/0M
  y%1*;;<!M
" 
T	#M
 M
` 
 VZ 8<-137?@!I&i  4l  "m  m  nI& #9I& Xi0%  EQ  3R  R  S	I&
  k5A;./+u{23+u{234
I&  Y^ 45I&  	*I& 4	3/0I&  y%1*;;<!I&" 
#I& I&XR
 
R
r&   r   )+r   warningspydanticr   r   r   r   r   typingr   r	   r
   r   r   r   typing_extensionsr   >lance_namespace_urllib3_client.models.create_namespace_requestr   ?lance_namespace_urllib3_client.models.create_namespace_responser   @lance_namespace_urllib3_client.models.describe_namespace_requestr   Alance_namespace_urllib3_client.models.describe_namespace_responser   <lance_namespace_urllib3_client.models.drop_namespace_requestr   =lance_namespace_urllib3_client.models.drop_namespace_responser   >lance_namespace_urllib3_client.models.list_namespaces_responser   :lance_namespace_urllib3_client.models.list_tables_responser   >lance_namespace_urllib3_client.models.namespace_exists_requestr   )lance_namespace_urllib3_client.api_clientr   r   +lance_namespace_urllib3_client.api_responser   #lance_namespace_urllib3_client.restr   r   r   r&   r$   <module>r      sZ   	  L L : : ' 0 0  ' a c e g ] _ a Y a R C @G
 G
r&   