Ë
    [üàg¡  ã                   óª   — d Z ddlmZ ddl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ÚOptional)ÚdeserializeÚvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersionc                   óh   ‡ — e Zd ZdZdedeeef   defˆ fd„Ze	dd„«       Z
dd„Zdd	„Zdefd
„Zˆ xZS )ÚKnowledgeStatusInstancea  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource.
    :ivar status: The status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED')
    :ivar last_status: The last status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED')
    :ivar date_updated: The date and time in GMT when the Knowledge was last 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«      «      | _        d|i| _	        d | _
        y )NÚaccount_sidÚstatusÚlast_statusÚdate_updatedr   )ÚsuperÚ__init__Úgetr   r   r   r   Úiso8601_datetimer   Ú	_solutionÚ_context)Úselfr   r   r   Ú	__class__s       €úr/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/assistants/v1/knowledge/knowledge_status.pyr   z KnowledgeStatusInstance.__init__    sz   ø€ Ü‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔØ%,§[¡[°Ó%:ˆŒØ*1¯+©+°mÓ*DˆÔÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð
 �"ð
ˆŒð ;?ˆ�ó    Úreturnc                 ó„   — | j                   €)t        | j                  | j                  d   ¬«      | _         | j                   S )zù
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: KnowledgeStatusContext for this KnowledgeStatusInstance
        r   ©r   )r   ÚKnowledgeStatusContextÚ_versionr   ©r   s    r   Ú_proxyzKnowledgeStatusInstance._proxy/   s9   € ð �=‰=Ð Ü2Ø—‘Ø—>‘> $Ñ'ôˆDŒMð �}‰}Ðr    c                 ó6   — | j                   j                  «       S )úk
        Fetch the KnowledgeStatusInstance


        :returns: The fetched KnowledgeStatusInstance
        )r'   Úfetchr&   s    r   r*   zKnowledgeStatusInstance.fetch>   s   € ð �{‰{× Ñ Ó"Ð"r    c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)ú…
        Asynchronous coroutine to fetch the KnowledgeStatusInstance


        :returns: The fetched KnowledgeStatusInstance
        N)r'   Úfetch_asyncr&   s    r   r-   z#KnowledgeStatusInstance.fetch_asyncG   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.ús   ‚' %¡'c                 ó„   — 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>z3KnowledgeStatusInstance.__repr__.<locals>.<genexpr>V   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z1<Twilio.Assistants.V1.KnowledgeStatusInstance {}>©Újoinr   Úitemsr4   ©r   Úcontexts     r   Ú__repr__z KnowledgeStatusInstance.__repr__P   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØB×IÑIÈ'ÓRÐRr    )r!   r$   )r!   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   Úpropertyr'   r*   r-   rA   Ú__classcell__©r   s   @r   r   r      sV   ø„ ñð? ð ?°$°s¸C°x±.ð ?Àcõ ?ð òó ðó#ó/ðS˜#÷ Sr    r   c                   óL   ‡ — e Zd Zdedefˆ fd„Zdefd„Zdefd„Zdefd„Z	ˆ xZ
S )r$   r   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)z˜
        Initialize the KnowledgeStatusContext

        :param version: Version that contains the resource
        :param id: the Knowledge ID.
        r   z/Knowledge/{id}/StatusN© )r   r   r   r4   Ú_uri©r   r   r   r   s      €r   r   zKnowledgeStatusContext.__init__\   s@   ø€ ô 	‰Ñ˜Ô!ð �"ð
ˆŒð 4Ð,×3Ñ3ÑE°d·n±nÑEˆ�	r    r!   c                 óÐ   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   ¬«      S )r)   úapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚheadersr   r#   )r   Úofr%   r*   rM   r   r   ©r   rV   r   s      r   r*   zKnowledgeStatusContext.fetchk   s]   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆä&Ø�M‰MØØ�~‰~˜dÑ#ô
ð 	
r    c              ƒ   óì   K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   ¬«      S 7 Œ)­w)r,   rP   rQ   rR   rS   Nr   r#   )r   rW   r%   r-   rM   r   r   rX   s      r   r-   z"KnowledgeStatusContext.fetch_async   sr   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô 'Ø�M‰MØØ�~‰~˜dÑ#ô
ð 	
ð	
ús   ‚AA4ÁA2Á	*A4c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )r/   r0   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wr2   r3   r5   s      r   r9   z2KnowledgeStatusContext.__repr__.<locals>.<genexpr>›   r:   r;   z0<Twilio.Assistants.V1.KnowledgeStatusContext {}>r<   r?   s     r   rA   zKnowledgeStatusContext.__repr__•   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØA×HÑHÈÓQÐQr    )rB   rC   rD   r   rF   r   r   r*   r-   rA   rH   rI   s   @r   r$   r$   Z   sA   ø„ ðF ð F¨Sõ Fð
Ð.ó 
ð(
Ð#:ó 
ð,R˜#÷ Rr    r$   c                   óL   ‡ — e Zd Zdedefˆ fd„Zdefd„Zdefd„Zdefd„Z	ˆ xZ
S )ÚKnowledgeStatusListr   r   c                 ó6   •— t         ‰| �  |«       d|i| _        y)z–
        Initialize the KnowledgeStatusList

        :param version: Version that contains the resource
        :param id: the Knowledge ID.

        r   N)r   r   r   rN   s      €r   r   zKnowledgeStatusList.__init__¡   s"   ø€ ô 	‰Ñ˜Ô!ð �"ð
ˆ�r    r!   c                 óJ   — t        | j                  | j                  d   ¬«      S ©z6
        Constructs a KnowledgeStatusContext

        r   r#   ©r$   r%   r   r&   s    r   r   zKnowledgeStatusList.get°   ó   € ô
 & d§m¡m¸¿¹ÀtÑ8LÔMÐMr    c                 óJ   — t        | j                  | j                  d   ¬«      S r`   ra   r&   s    r   Ú__call__zKnowledgeStatusList.__call__·   rb   r    c                  ó   — y)r/   z*<Twilio.Assistants.V1.KnowledgeStatusList>rL   r&   s    r   rA   zKnowledgeStatusList.__repr__¾   s   € ð <r    )rB   rC   rD   r   rF   r   r$   r   rd   rA   rH   rI   s   @r   r]   r]   Ÿ   s@   ø„ ð
 ð 
¨Sõ 
ðNÐ+ó NðNÐ0ó Nð<˜#÷ <r    r]   N)rE   r   Útypingr   r   r   Útwilio.baser   r   Útwilio.base.instance_contextr	   Útwilio.base.instance_resourcer
   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   r$   r]   rL   r    r   ú<module>rl      sQ   ðñõ ß &Ñ &ß +Ý 8Ý :Ý 2Ý 'ô?SÐ.ô ?SôDBR˜_ô BRôJ%<˜,õ %<r    