Ë
    [üà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 dd	lmZ  G d
„ de«      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)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   ó.  ‡ — e Zd Z G d„ de«      Z G d„ de«      Z G d„ de«      Z	 	 ddedee	e
f   d	ee	   fˆ fd
„Zedd„«       Zdefd„Zdefd„Zdd„Zdd„Zej*                  fdeeef   dd fd„Zej*                  fdeeef   dd fd„Zde	fd„Zˆ xZS )ÚToolInstancec                   ó,   — e Zd ZdZdeeef   fd„Zd„ Zy)ú3ToolInstance.AssistantsV1ServiceCreatePolicyRequestúá
        :ivar description: The description of the policy.
        :ivar id: The Policy ID.
        :ivar name: The name of the policy.
        :ivar policy_details:
        :ivar type: The description of the policy.
        Úpayloadc                 óà   — |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y ©NÚdescriptionÚidÚnameÚpolicy_detailsÚtype©Úgetr   r   r   r   r   ©Úselfr   s     ú\/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/assistants/v1/tool.pyÚ__init__z<ToolInstance.AssistantsV1ServiceCreatePolicyRequest.__init__$   óZ   € à.5¯k©k¸-Ó.HˆDÔØ%,§[¡[°Ó%6ˆDŒGØ'.§{¡{°6Ó':ˆDŒIØ?F¿{¹{Ø ó@ˆDÔð (/§{¡{°6Ó':ˆD�Ió    c                 óv   — | j                   | j                  | j                  | j                  | j                  dœS ©N©r   r   r   r   r   r)   ©r"   s    r#   Úto_dictz;ToolInstance.AssistantsV1ServiceCreatePolicyRequest.to_dict.   ó3   € à#×/Ñ/Ø—g‘gØŸ	™	Ø"&×"5Ñ"5ØŸ	™	ñð r&   N©	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ústrr   r$   r+   © r&   r#   Ú&AssistantsV1ServiceCreatePolicyRequestr      ó    „ ñ	ð	; D¨¨c¨¡Nó 	;ó	r&   r4   c                   ó,   — e Zd ZdZdeeef   fd„Zd„ Zy)ú1ToolInstance.AssistantsV1ServiceCreateToolRequestáq  
        :ivar assistant_id: The Assistant ID.
        :ivar description: The description of the tool.
        :ivar enabled: True if the tool is enabled.
        :ivar meta: The metadata related to method, url, input_schema to used with the Tool.
        :ivar name: The name of the tool.
        :ivar policy:
        :ivar type: The description of the tool.
        r   c                 ó8  — |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y ©NÚassistant_idr   ÚenabledÚmetar   Úpolicyr   ©r    r;   r   r<   r=   r   r>   r   r!   s     r#   r$   z:ToolInstance.AssistantsV1ServiceCreateToolRequest.__init__B   óy   € à/6¯{©{¸>Ó/JˆDÔØ.5¯k©k¸-Ó.HˆDÔØ+2¯;©;°yÓ+AˆDŒLØ5<·[±[ÀÓ5HˆDŒIØ'.§{¡{°6Ó':ˆDŒIà—‘˜HÓ%ð ŒKð (/§{¡{°6Ó':ˆD�Ir&   c                 óÚ   — | j                   | j                  | j                  | j                  | j                  | j
                  �| j
                  j                  «       nd | j                  dœS ©N)r;   r   r<   r=   r   r>   r   ©r;   r   r<   r=   r   r>   r+   r   r*   s    r#   r+   z9ToolInstance.AssistantsV1ServiceCreateToolRequest.to_dictN   óV   € à $× 1Ñ 1Ø#×/Ñ/ØŸ<™<ØŸ	™	ØŸ	™	Ø37·;±;Ð3J˜$Ÿ+™+×-Ñ-Ô/ÐPTØŸ	™	ñð r&   Nr-   r3   r&   r#   Ú$AssistantsV1ServiceCreateToolRequestr7   7   ó    „ ñ	ð
	; D¨¨c¨¡Nó 
	;ó		r&   rE   c                   ó,   — e Zd ZdZdeeef   fd„Zd„ Zy)ú1ToolInstance.AssistantsV1ServiceUpdateToolRequestáj  
        :ivar assistant_id: The Assistant ID.
        :ivar description: The description of the tool.
        :ivar enabled: True if the tool is enabled.
        :ivar meta: The metadata related to method, url, input_schema to used with the Tool.
        :ivar name: The name of the tool.
        :ivar policy:
        :ivar type: The type of the tool.
        r   c                 ó8  — |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y r:   r?   r!   s     r#   r$   z:ToolInstance.AssistantsV1ServiceUpdateToolRequest.__init__d   r@   r&   c                 óÚ   — | j                   | j                  | j                  | j                  | j                  | j
                  �| j
                  j                  «       nd | j                  dœS rB   rC   r*   s    r#   r+   z9ToolInstance.AssistantsV1ServiceUpdateToolRequest.to_dictp   rD   r&   Nr-   r3   r&   r#   Ú$AssistantsV1ServiceUpdateToolRequestrH   Y   rF   r&   rL   Úversionr   r   c                 ó¼  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _	        |j                  d«      | _
        |j                  d	«      | _        t        j                  |j                  d
«      «      | _        t        j                  |j                  d«      «      | _        |j                  d«      | _        d|xs | j                  i| _        d | _        y )NÚaccount_sidr   r<   r   r=   r   Úrequires_authr   ÚurlÚdate_createdÚdate_updatedÚpolicies)Úsuperr$   r    rO   r   r<   r   r=   r   rP   r   rQ   r   Úiso8601_datetimerR   rS   rT   Ú	_solutionÚ_context)r"   rM   r   r   Ú	__class__s       €r#   r$   zToolInstance.__init__Š   s  ø€ ô 	‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔØ*1¯+©+°mÓ*DˆÔØ'.§{¡{°9Ó'=ˆŒØ!(§¡¨TÓ!2ˆŒØ18·±¸VÓ1DˆŒ	Ø#*§;¡;¨vÓ#6ˆŒ	Ø-4¯[©[¸Ó-IˆÔØ#*§;¡;¨vÓ#6ˆŒ	Ø")§+¡+¨eÓ"4ˆŒÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð .5¯[©[¸Ó-DˆŒð �"’-˜Ÿ™ð
ˆŒð 04ˆ�r&   Ú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: ToolContext for this ToolInstance
        r   ©r   )rX   ÚToolContextÚ_versionrW   r*   s    r#   Ú_proxyzToolInstance._proxy¥   s9   € ð �=‰=Ð Ü'Ø—‘Ø—>‘> $Ñ'ôˆDŒMð �}‰}Ðr&   c                 ó6   — | j                   j                  «       S )úg
        Deletes the ToolInstance


        :returns: True if delete succeeds, False otherwise
        )r_   Údeleter*   s    r#   rb   zToolInstance.delete´   s   € ð �{‰{×!Ñ!Ó#Ð#r&   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)úƒ
        Asynchronous coroutine that deletes the ToolInstance


        :returns: True if delete succeeds, False otherwise
        N)r_   Údelete_asyncr*   s    r#   re   zToolInstance.delete_async½   s!   è ø€ ð —[‘[×-Ñ-Ó/×/Ð/Ð/úó   ‚' %¡'c                 ó6   — | j                   j                  «       S )úU
        Fetch the ToolInstance


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


        :returns: The fetched ToolInstance
        N)r_   Úfetch_asyncr*   s    r#   rl   zToolInstance.fetch_asyncÏ   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.úrf   Ú)assistants_v1_service_update_tool_requestc                 ó:   — | j                   j                  |¬«      S )ú�
        Update the ToolInstance

        :param assistants_v1_service_update_tool_request:

        :returns: The updated ToolInstance
        ©rm   )r_   Úupdate©r"   rm   s     r#   rq   zToolInstance.updateØ   s#   € ð �{‰{×!Ñ!Ø6_ð "ó 
ð 	
r&   c              ƒ   óV   K  — | j                   j                  |¬«      ƒ d{  –—† S 7 Œ­w)úª
        Asynchronous coroutine to update the ToolInstance

        :param assistants_v1_service_update_tool_request:

        :returns: The updated ToolInstance
        rp   N)r_   Úupdate_asyncrr   s     r#   ru   zToolInstance.update_asyncé   s1   è ø€ ð —[‘[×-Ñ-Ø6_ð .ó 
÷ 
ð 	
ð 
ú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>z(ToolInstance.__repr__.<locals>.<genexpr>   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z&<Twilio.Assistants.V1.ToolInstance {}>©ÚjoinrW   Úitemsr|   ©r"   Úcontexts     r#   Ú__repr__zToolInstance.__repr__ú   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ7×>Ñ>¸wÓGÐGr&   )N)rZ   r]   )rZ   r   )r.   r/   r0   Úobjectr4   rE   rL   r   r   r2   r   r   r$   Úpropertyr_   Úboolrb   re   ri   rl   r   Úunsetr   rq   ru   r‰   Ú__classcell__©rY   s   @r#   r   r      sü   ø„ ô°ô ô8 ¨vô  ôD ¨vô  ðDð  NRñ4Øð4Ø)-¨c°3¨h©ð4Ø=EÀc¹]õ4ð6 òó ðð$˜ó $ð0 Dó 0ó#ó/ð �L‰Lñ	
à38Ø0°&Ð8ñ4
ð
ð
 
ó
ð* �L‰Lñ	
à38Ø0°&Ð8ñ4
ð
ð
 
ó
ð"H˜#÷ Hr&   r   c                   ó
  ‡ — e Zd Z G d„ de«      Z G d„ de«      Z G d„ de«      Zdedefˆ fd	„Z	d
e
fd„Zd
e
fd„Zd
efd„Zd
efd„Zej"                  fdeeef   d
efd„Zej"                  fdeeef   d
efd„Zd
efd„Zˆ xZS )r]   c                   ó,   — e Zd ZdZdeeef   fd„Zd„ Zy)ú2ToolContext.AssistantsV1ServiceCreatePolicyRequestr   r   c                 óà   — |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y r   r   r!   s     r#   r$   z;ToolContext.AssistantsV1ServiceCreatePolicyRequest.__init__  r%   r&   c                 óv   — | j                   | j                  | j                  | j                  | j                  dœS r(   r)   r*   s    r#   r+   z:ToolContext.AssistantsV1ServiceCreatePolicyRequest.to_dict  r,   r&   Nr-   r3   r&   r#   r4   r’     r5   r&   r4   c                   ó,   — e Zd ZdZdeeef   fd„Zd„ Zy)ú0ToolContext.AssistantsV1ServiceCreateToolRequestr8   r   c                 ó8  — |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y r:   r?   r!   s     r#   r$   z9ToolContext.AssistantsV1ServiceCreateToolRequest.__init__-  r@   r&   c                 óÚ   — | j                   | j                  | j                  | j                  | j                  | j
                  �| j
                  j                  «       nd | j                  dœS rB   rC   r*   s    r#   r+   z8ToolContext.AssistantsV1ServiceCreateToolRequest.to_dict9  rD   r&   Nr-   r3   r&   r#   rE   r–   "  rF   r&   rE   c                   ó,   — e Zd ZdZdeeef   fd„Zd„ Zy)ú0ToolContext.AssistantsV1ServiceUpdateToolRequestrI   r   c                 ó8  — |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y r:   r?   r!   s     r#   r$   z9ToolContext.AssistantsV1ServiceUpdateToolRequest.__init__O  r@   r&   c                 óÚ   — | j                   | j                  | j                  | j                  | j                  | j
                  �| j
                  j                  «       nd | j                  dœS rB   rC   r*   s    r#   r+   z8ToolContext.AssistantsV1ServiceUpdateToolRequest.to_dict[  rD   r&   Nr-   r3   r&   r#   rL   rš   D  rF   r&   rL   rM   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)z{
        Initialize the ToolContext

        :param version: Version that contains the resource
        :param id:
        r   z/Tools/{id}Nr3   )rU   r$   rW   r|   Ú_uri)r"   rM   r   rY   s      €r#   r$   zToolContext.__init__f  s?   ø€ ô 	‰Ñ˜Ô!ð �"ð
ˆŒð )�M×(Ñ(Ñ:¨4¯>©>Ñ:ˆ�	r&   rZ   c                 ó|   — t        j                  i «      }| j                  j                  d| j                  |¬«      S )ra   ÚDELETE©ÚmethodÚuriÚheaders)r   Úofr^   rb   rž   ©r"   r¤   s     r#   rb   zToolContext.deleteu  s1   € ô —)‘)˜B“-ˆà�}‰}×#Ñ#¨8¸¿¹ÈGÐ#ÓTÐTr&   c              ƒ   ó˜   K  — t        j                  i «      }| j                  j                  d| j                  |¬«      ƒ d{  –—† S 7 Œ­w)rd   r    r¡   N)r   r¥   r^   re   rž   r¦   s     r#   re   zToolContext.delete_async�  sF   è ø€ ô —)‘)˜B“-ˆà—]‘]×/Ñ/Ø §¡°Gð 0ó 
÷ 
ð 	
ð 
ús   ‚AA
ÁAÁA
c                 óÐ   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   ¬«      S )rh   úapplication/jsonÚAcceptÚGETr¡   r   r\   )r   r¥   r^   ri   rž   r   rW   ©r"   r¤   r   s      r#   ri   zToolContext.fetch�  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)rk   r©   rª   r«   r¡   Nr   r\   )r   r¥   r^   rl   rž   r   rW   r¬   s      r#   rl   zToolContext.fetch_async£  sr   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô Ø�M‰MØØ�~‰~˜dÑ#ô
ð 	
ð	
ús   ‚AA4ÁA2Á	*A4rm   c                 óü   — |j                  «       }t        j                  i «      }d|d<   d|d<   | j                  j	                  d| j
                  ||¬«      }t        | j                  || j                  d   ¬«      S )ro   r©   úContent-Typerª   ÚPUT©r¢   r£   Údatar¤   r   r\   )r+   r   r¥   r^   rq   rž   r   rW   ©r"   rm   r²   r¤   r   s        r#   rq   zToolContext.update¹  sw   € ð 9×@Ñ@ÓBˆä—)‘)˜B“-ˆà"4ˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜dŸi™i¨d¸Gð 'ó 
ˆô ˜DŸM™M¨7°t·~±~ÀdÑ7KÔLÐLr&   c              ƒ   ó  K  — |j                  «       }t        j                  i «      }d|d<   d|d<   | j                  j	                  d| j
                  ||¬«      ƒ d{  –—† }t        | j                  || j                  d   ¬«      S 7 Œ)­w)	rt   r©   r¯   rª   r°   r±   Nr   r\   )r+   r   r¥   r^   ru   rž   r   rW   r³   s        r#   ru   zToolContext.update_asyncÔ  s…   è ø€ ð 9×@Ñ@ÓBˆä—)‘)˜B“-ˆà"4ˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜dŸi™i¨d¸Gð 3ó 
÷ 
ˆô ˜DŸM™M¨7°t·~±~ÀdÑ7KÔLÐLð	
ús   ‚AB
ÁBÁ*B
c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )rw   rx   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wrz   r{   r}   s      r#   r�   z'ToolContext.__repr__.<locals>.<genexpr>õ  r‚   rƒ   z%<Twilio.Assistants.V1.ToolContext {}>r„   r‡   s     r#   r‰   zToolContext.__repr__ï  s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ6×=Ñ=¸gÓFÐFr&   )r.   r/   r0   rŠ   r4   rE   rL   r   r2   r$   rŒ   rb   re   r   ri   rl   r   r�   r   rq   ru   r‰   rŽ   r�   s   @r#   r]   r]     sÜ   ø„ ô°ô ô8 ¨vô  ôD ¨vô  ðD; ð ;¨Sõ ;ð
U˜ó 
Uð
 Dó 
ð
�|ó 
ð(
 <ó 
ð4 �L‰Lñ	Mà38Ø0°&Ð8ñ4
ðMð
 
óMð> �L‰Lñ	Mà38Ø0°&Ð8ñ4
ðMð
 
óMð6G˜#÷ Gr&   r]   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚToolPager   rZ   c                 ó.   — t        | j                  |«      S )zj
        Build an instance of ToolInstance

        :param payload: Payload response from the API
        )r   r^   r!   s     r#   Úget_instancezToolPage.get_instanceû  s   € ô ˜DŸM™M¨7Ó3Ð3r&   c                  ó   — y)rw   z<Twilio.Assistants.V1.ToolPage>r3   r*   s    r#   r‰   zToolPage.__repr__  ó   € ð 1r&   N)	r.   r/   r0   r   r2   r   r   rº   r‰   r3   r&   r#   r¸   r¸   ù  s)   „ ð4 D¨¨c¨¡Nð 4°|ó 4ð1˜#ô 1r&   r¸   c                   óN  ‡ — e Zd Z G d„ de«      Z G d„ de«      Z G d„ de«      Zdefˆ fd„Zd	ed
e	fd„Z
d	ed
e	fd„Zej                  ddfdeeef   dee   dee   d
ee	   fd„Zej                  ddfdeeef   dee   dee   d
ee	   fd„Zej                  ddfdeeef   dee   dee   d
ee	   fd„Zej                  ddfdeeef   dee   dee   d
ee	   fd„Zej                  ej                  ej                  ej                  fdeee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                  ej                  fdeee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d
efd„Zded
efd„Z d
efd„Z!ˆ xZ"S ) ÚToolListc                   ó,   — e Zd ZdZdeeef   fd„Zd„ Zy)ú/ToolList.AssistantsV1ServiceCreatePolicyRequestr   r   c                 óà   — |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y r   r   r!   s     r#   r$   z8ToolList.AssistantsV1ServiceCreatePolicyRequest.__init__  r%   r&   c                 óv   — | j                   | j                  | j                  | j                  | j                  dœS r(   r)   r*   s    r#   r+   z7ToolList.AssistantsV1ServiceCreatePolicyRequest.to_dict!  r,   r&   Nr-   r3   r&   r#   r4   rÀ     r5   r&   r4   c                   ó,   — e Zd ZdZdeeef   fd„Zd„ Zy)ú-ToolList.AssistantsV1ServiceCreateToolRequestr8   r   c                 ó8  — |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y r:   r?   r!   s     r#   r$   z6ToolList.AssistantsV1ServiceCreateToolRequest.__init__5  r@   r&   c                 óÚ   — | j                   | j                  | j                  | j                  | j                  | j
                  �| j
                  j                  «       nd | j                  dœS rB   rC   r*   s    r#   r+   z5ToolList.AssistantsV1ServiceCreateToolRequest.to_dictA  rD   r&   Nr-   r3   r&   r#   rE   rÄ   *  rF   r&   rE   c                   ó,   — e Zd ZdZdeeef   fd„Zd„ Zy)ú-ToolList.AssistantsV1ServiceUpdateToolRequestrI   r   c                 ó8  — |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y r:   r?   r!   s     r#   r$   z6ToolList.AssistantsV1ServiceUpdateToolRequest.__init__W  r@   r&   c                 óÚ   — | j                   | j                  | j                  | j                  | j                  | j
                  �| j
                  j                  «       nd | j                  dœS rB   rC   r*   s    r#   r+   z5ToolList.AssistantsV1ServiceUpdateToolRequest.to_dictc  rD   r&   Nr-   r3   r&   r#   rL   rÈ   L  rF   r&   rL   rM   c                 ó2   •— t         ‰| �  |«       d| _        y)zf
        Initialize the ToolList

        :param version: Version that contains the resource

        z/ToolsN)rU   r$   rž   )r"   rM   rY   s     €r#   r$   zToolList.__init__n  s   ø€ ô 	‰Ñ˜Ô!àˆ�	r&   Ú)assistants_v1_service_create_tool_requestrZ   c                 óâ   — |j                  «       }t        j                  ddi«      }d|d<   d|d<   | j                  j	                  d| j
                  ||¬«      }t        | j                  |«      S )z�
        Create the ToolInstance

        :param assistants_v1_service_create_tool_request:

        :returns: The created ToolInstance
        r¯   ú!application/x-www-form-urlencodedr©   rª   ÚPOSTr±   )r+   r   r¥   r^   Úcreaterž   r   ©r"   rÌ   r²   r¤   r   s        r#   rÐ   zToolList.createy  ss   € ð 9×@Ñ@ÓBˆä—)‘)˜^Ð-PÐQÓRˆà"4ˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô ˜DŸM™M¨7Ó3Ð3r&   c              ƒ   óþ   K  — |j                  «       }t        j                  ddi«      }d|d<   d|d<   | j                  j	                  d| j
                  ||¬«      ƒ d{  –—† }t        | j                  |«      S 7 Œ­w)zŸ
        Asynchronously create the ToolInstance

        :param assistants_v1_service_create_tool_request:

        :returns: The created ToolInstance
        r¯   rÎ   r©   rª   rÏ   r±   N)r+   r   r¥   r^   Úcreate_asyncrž   r   rÑ   s        r#   rÓ   zToolList.create_async’  s�   è ø€ ð 9×@Ñ@ÓBˆä—)‘)˜^Ð-PÐQÓRˆà"4ˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô ˜DŸM™M¨7Ó3Ð3ð	
ús   ‚AA=Á A;Á!A=Nr;   ÚlimitÚ	page_sizec                 ó¤   — | j                   j                  ||«      }| j                  ||d   ¬«      }| j                   j                  ||d   «      S )a{  
        Streams ToolInstance 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 str assistant_id:
        :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
        rÕ   ©r;   rÕ   rÔ   )r^   Úread_limitsÚpageÚstream©r"   r;   rÔ   rÕ   ÚlimitsrÙ   s         r#   rÚ   zToolList.stream«  sL   € ð, —‘×*Ñ*¨5°)Ó<ˆØ�y‰y l¸fÀ[Ñ>QˆyÓRˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r&   c              ƒ   óÀ   K  — | j                   j                  ||«      }| j                  ||d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)aŠ  
        Asynchronously streams ToolInstance 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 str assistant_id:
        :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
        rÕ   r×   NrÔ   )r^   rØ   Ú
page_asyncÚstream_asyncrÛ   s         r#   rß   zToolList.stream_asyncÆ  sb   è ø€ ð, —‘×*Ñ*¨5°)Ó<ˆØ—_‘_Ø%°¸Ñ1Dð %ó 
÷ 
ˆð �}‰}×)Ñ)¨$°°w±Ó@Ð@ð	
ús   ‚6A¸A¹$Ac                 ó<   — t        | j                  |||¬«      «      S )a  
        Lists ToolInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str assistant_id:
        :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
        ©r;   rÔ   rÕ   )ÚlistrÚ   )r"   r;   rÔ   rÕ   s       r#   râ   zToolList.listã  s+   € ô* Ø�K‰KØ)ØØ#ð ó ó
ð 	
r&   c              ƒ   ó|   K  — | j                  |||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)a'  
        Asynchronously lists ToolInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str assistant_id:
        :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
        rá   N)rß   )r"   r;   rÔ   rÕ   Úrecords        r#   Ú
list_asynczToolList.list_async   sW   è ø€ ð. '+×&7Ñ&7Ø)ØØ#ð '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚<š/›<¡7£3§1
¨3«7¯<±3³7´<Ú
page_tokenÚpage_numberc                 óì   — t        j                  ||||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  |«      S )aŠ  
        Retrieve a single page of ToolInstance records from the API.
        Request is executed immediately

        :param assistant_id:
        :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 ToolInstance
        ©ÚAssistantIdÚ	PageTokenr   ÚPageSizer¯   rÎ   r©   rª   r«   ©r¢   r£   Úparamsr¤   )r   r¥   r^   rÙ   rž   r¸   ©r"   r;   ræ   rç   rÕ   r²   r¤   Úresponses           r#   rÙ   zToolList.page  s|   € ô$ �y‰yà+Ø'Ø#Ø%ñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜Ÿ™ xÓ0Ð0r&   c              ƒ   ó  K  — t        j                  ||||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  |«      S 7 Œ­w)	a™  
        Asynchronously retrieve a single page of ToolInstance records from the API.
        Request is executed immediately

        :param assistant_id:
        :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 ToolInstance
        ré   r¯   rÎ   r©   rª   r«   rí   N)r   r¥   r^   rÞ   rž   r¸   rï   s           r#   rÞ   zToolList.page_asyncB  sŠ   è ø€ ô$ �y‰yà+Ø'Ø#Ø%ñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜Ÿ™ xÓ0Ð0ð
ús   ‚A#BÁ%B Á&BÚ
target_urlc                 óŽ   — | j                   j                  j                  j                  d|«      }t	        | j                   |«      S )zí
        Retrieve a specific page of ToolInstance records from the API.
        Request is executed immediately

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

        :returns: Page of ToolInstance
        r«   )r^   ÚdomainÚtwilioÚrequestr¸   ©r"   rò   rð   s      r#   Úget_pagezToolList.get_pagef  s7   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜Ÿ™ xÓ0Ð0r&   c              ƒ   óª   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   |«      S 7 Œ­w)zü
        Asynchronously retrieve a specific page of ToolInstance records from the API.
        Request is executed immediately

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

        :returns: Page of ToolInstance
        r«   N)r^   rô   rõ   Úrequest_asyncr¸   r÷   s      r#   Úget_page_asynczToolList.get_page_asyncr  sD   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜Ÿ™ xÓ0Ð0ð Vús   ‚4A¶A·Ar   c                 ó0   — t        | j                  |¬«      S ©z>
        Constructs a ToolContext

        :param id:
        r\   ©r]   r^   ©r"   r   s     r#   r    zToolList.get~  ó   € ô ˜4Ÿ=™=¨RÔ0Ð0r&   c                 ó0   — t        | j                  |¬«      S rý   rþ   rÿ   s     r#   Ú__call__zToolList.__call__†  r   r&   c                  ó   — y)rw   z<Twilio.Assistants.V1.ToolList>r3   r*   s    r#   r‰   zToolList.__repr__Ž  r¼   r&   )#r.   r/   r0   rŠ   r4   rE   rL   r   r$   r   rÐ   rÓ   r   r�   r   r2   r   Úintr	   rÚ   r
   rß   r   râ   rå   r¸   rÙ   rÞ   rø   rû   r]   r    r  r‰   rŽ   r�   s   @r#   r¾   r¾     sñ  ø„ ô°ô ô8 ¨vô  ôD ¨vô  ðD	 õ 	ð4à3Wð4ð 
ó4ð24à3Wð4ð 
ó4ð6 ,2¯<©<Ø#Ø#'ñ	;à˜C ˜KÑ(ð;ð ˜‰}ð;ð ˜C‘=ð	;ð
 
�,Ñ	ó;ð: ,2¯<©<Ø#Ø#'ñ	Aà˜C ˜KÑ(ðAð ˜‰}ðAð ˜C‘=ð	Að
 
�|Ñ	$óAð> ,2¯<©<Ø#Ø#'ñ	
à˜C ˜KÑ(ð
ð ˜‰}ð
ð ˜C‘=ð	
ð
 
ˆlÑ	ó
ð> ,2¯<©<Ø#Ø#'ñ	
à˜C ˜KÑ(ð
ð ˜‰}ð
ð ˜C‘=ð	
ð
 
ˆlÑ	ó
ð@ ,2¯<©<Ø)/¯©Ø*0¯,©,Ø(.¯©ñ"1à˜C ˜KÑ(ð"1ð ˜#˜v˜+Ñ&ð"1ð ˜3 ˜;Ñ'ð	"1ð
 ˜˜f˜Ñ%ð"1ð 
ó"1ðL ,2¯<©<Ø)/¯©Ø*0¯,©,Ø(.¯©ñ"1à˜C ˜KÑ(ð"1ð ˜#˜v˜+Ñ&ð"1ð ˜3 ˜;Ñ'ð	"1ð
 ˜˜f˜Ñ%ð"1ð 
ó"1ðH
1 3ð 
1¨8ó 
1ð
1¨sð 
1°xó 
1ð1�cð 1˜kó 1ð1˜3ð 1 ;ó 1ð1˜#÷ 1r&   r¾   N)r1   r   Útypingr   r   r   r   r   r	   r
   Útwilio.baser   r   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r]   r¸   r¾   r3   r&   r#   ú<module>r     sg   ðñõ ß L× LÑ Lß +Ý 8Ý :Ý 2Ý 'Ý !ôhHÐ#ô hHôVrG�/ô rGôj1ˆtô 1ô&H1ˆ|õ H1r&   