Ë
    [üàgë+  ã                   óº   — d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
mZmZ ddlmZ ddlmZ ddlmZ ddlmZ  G d	„ d
e«      Z G d„ de«      Z G d„ de«      Zy)aí  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Assistants
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
é    )Údatetime)ÚAnyÚDictÚListÚOptionalÚUnionÚIteratorÚAsyncIterator)ÚdeserializeÚvalues)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   óF   ‡ — e Zd ZdZdedeeef   defˆ fd„Zdefd„Z	ˆ xZ
S )ÚChunkInstancea  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource.
    :ivar content: The chunk content.
    :ivar metadata: The metadata of the chunk.
    :ivar date_created: The date and time in GMT when the Chunk was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar date_updated: The date and time in GMT when the Chunk was updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    ÚversionÚpayloadÚidc                 ó^  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _        t        j                  |j                  d«      «      | _	        d|i| _
        y )NÚaccount_sidÚcontentÚmetadataÚdate_createdÚdate_updatedr   )ÚsuperÚ__init__Úgetr   r   r   r   Úiso8601_datetimer   r   Ú	_solution)Úselfr   r   r   Ú	__class__s       €úg/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/assistants/v1/knowledge/chunk.pyr   zChunkInstance.__init__"   s‘   ø€ Ü‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔØ&-§k¡k°)Ó&<ˆŒØ5<·[±[ÀÓ5LˆŒÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð
 �"ð
ˆ�ó    Úreturnc                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )úf
        Provide a friendly representation

        :returns: Machine friendly representation
        ú c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­w)z{}={}N)Úformat)Ú.0ÚkÚvs      r#   ú	<genexpr>z)ChunkInstance.__repr__.<locals>.<genexpr>9   s   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùs   ‚!z'<Twilio.Assistants.V1.ChunkInstance {}>)Újoinr    Úitemsr*   )r!   Úcontexts     r#   Ú__repr__zChunkInstance.__repr__3   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ8×?Ñ?ÀÓHÐHr$   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r2   Ú__classcell__©r"   s   @r#   r   r      s8   ø„ ñð
 ð 
°$°s¸C°x±.ð 
Àcõ 
ð"I˜#÷ Ir$   r   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)Ú	ChunkPager   r%   c                 óL   — t        | j                  || j                  d   ¬«      S )zk
        Build an instance of ChunkInstance

        :param payload: Payload response from the API
        r   )r   )r   Ú_versionr    )r!   r   s     r#   Úget_instancezChunkPage.get_instance?   s    € ô ˜TŸ]™]¨G¸¿¹ÀtÑ8LÔMÐMr$   c                  ó   — y)r'   z <Twilio.Assistants.V1.ChunkPage>© ©r!   s    r#   r2   zChunkPage.__repr__G   ó   € ð 2r$   N)	r3   r4   r5   r   r7   r   r   r>   r2   r@   r$   r#   r;   r;   =   s,   „ ðN D¨¨c¨¡Nð N°}ó Nð2˜#ô 2r$   r;   c            	       óø  ‡ — e Zd Zdedefˆ fd„Z	 	 ddee   dee   dee	   fd„Z
	 	 ddee   dee   dee	   fd„Z	 	 ddee   dee   dee	   fd	„Z	 	 ddee   dee   dee	   fd
„Zej"                  ej"                  ej"                  fdeeef   deeef   deeef   defd„Zej"                  ej"                  ej"                  fdeeef   deeef   deeef   defd„Zdedefd„Zdedefd„Zdefd„Zˆ xZS )Ú	ChunkListr   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)zŒ
        Initialize the ChunkList

        :param version: Version that contains the resource
        :param id: The knowledge ID.

        r   z/Knowledge/{id}/ChunksNr@   )r   r   r    r*   Ú_uri)r!   r   r   r"   s      €r#   r   zChunkList.__init__R   s@   ø€ ô 	‰Ñ˜Ô!ð �"ð
ˆŒð 4Ð,×3Ñ3ÑE°d·n±nÑEˆ�	r$   ÚlimitÚ	page_sizer%   c                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )a[  
        Streams ChunkInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        rH   ©rH   rG   )r=   Úread_limitsÚpageÚstream©r!   rG   rH   ÚlimitsrL   s        r#   rM   zChunkList.streamb   sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r$   c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)aj  
        Asynchronously streams ChunkInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        rH   rJ   NrG   )r=   rK   Ú
page_asyncÚstream_asyncrN   s        r#   rR   zChunkList.stream_async{   sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )aø  
        Lists ChunkInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        ©rG   rH   )ÚlistrM   )r!   rG   rH   s      r#   rU   zChunkList.list”   s(   € ô& Ø�K‰KØØ#ð ó ó
ð 	
r$   c              ƒ   óz   K  — | j                  ||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)a  
        Asynchronously lists ChunkInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        rT   N)rR   )r!   rG   rH   Úrecords       r#   Ú
list_asynczChunkList.list_async®   sT   è ø€ ð* '+×&7Ñ&7ØØ#ð '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚;™.š; 6¢2¦0
§2ª6®;°2²6³;Ú
page_tokenÚpage_numberc                 ó   — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  «      S )ao  
        Retrieve a single page of ChunkInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of ChunkInstance
        ©Ú	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheaders)r   Úofr=   rL   rF   r;   r    ©r!   rY   rZ   rH   Údatarh   Úresponses          r#   rL   zChunkList.pageÉ   s   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜Ÿ™¨°$·.±.ÓAÐAr$   c              ƒ   ó  K  — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  «      S 7 Œ%­w)	a~  
        Asynchronously retrieve a single page of ChunkInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of ChunkInstance
        r\   r_   r`   ra   rb   rc   rd   N)r   ri   r=   rQ   rF   r;   r    rj   s          r#   rQ   zChunkList.page_asyncê   s�   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜Ÿ™¨°$·.±.ÓAÐAð
ús   ‚A"BÁ$B
Á%&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zï
        Retrieve a specific page of ChunkInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of ChunkInstance
        rc   )r=   ÚdomainÚtwilioÚrequestr;   r    ©r!   rn   rl   s      r#   Úget_pagezChunkList.get_page  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜Ÿ™¨°$·.±.ÓAÐAr$   c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)zþ
        Asynchronously retrieve a specific page of ChunkInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of ChunkInstance
        rc   N)r=   rp   rq   Úrequest_asyncr;   r    rs   s      r#   Úget_page_asynczChunkList.get_page_async  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜Ÿ™¨°$·.±.ÓAÐAð Vús   ‚4A¶A·&Ac                  ó   — y)r'   z <Twilio.Assistants.V1.ChunkList>r@   rA   s    r#   r2   zChunkList.__repr__#  rB   r$   )NN)r3   r4   r5   r   r7   r   r   Úintr	   r   rM   r
   rR   r   rU   rX   r   Úunsetr   Úobjectr;   rL   rQ   rt   rw   r2   r8   r9   s   @r#   rD   rD   P   só  ø„ ðF ð F¨Sõ Fð$  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
�-Ñ	 ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
�}Ñ	%ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ˆmÑ	ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ˆmÑ	ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	Bà˜#˜v˜+Ñ&ðBð ˜3 ˜;Ñ'ðBð ˜˜f˜Ñ%ð	Bð
 
óBðF *0¯©Ø*0¯,©,Ø(.¯©ñ	Bà˜#˜v˜+Ñ&ðBð ˜3 ˜;Ñ'ðBð ˜˜f˜Ñ%ð	Bð
 
óBðB
B 3ð 
B¨9ó 
Bð
B¨sð 
B°yó 
Bð2˜#÷ 2r$   rD   N)r6   r   Útypingr   r   r   r   r   r	   r
   Útwilio.baser   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r;   rD   r@   r$   r#   ú<module>r‚      sQ   ðñõ ß L× LÑ Lß +å :Ý 2Ý 'Ý !ô!IÐ$ô !IôH2�ô 2ô&Y2�õ Y2r$   