
    p h ~                         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dS )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                   J    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                   4    e Zd ZdZdeeef         fdZd ZdS )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                 
   |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        d S Ndescriptionidnamepolicy_detailstypegetr   r   r   r   r   selfr   s     Z/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/twilio/rest/assistants/v1/tool.py__init__z<ToolInstance.AssistantsV1ServiceCreatePolicyRequest.__init__$   p    .5kk-.H.HD%,[[%6%6DG'.{{6':':DI?F{{ @ @D (/{{6':':DIII    c                 D    | j         | j        | j        | j        | j        dS Nr   r   r   r   r   r)   r"   s    r#   to_dictz;ToolInstance.AssistantsV1ServiceCreatePolicyRequest.to_dict.   ,    #/g	"&"5	  r&   N	__name__
__module____qualname____doc__r   strr   r$   r+    r&   r#   &AssistantsV1ServiceCreatePolicyRequestr      P        	 		;DcN 	; 	; 	; 	;	 	 	 	 	r&   r4   c                   4    e Zd ZdZdeeef         fdZd ZdS )1ToolInstance.AssistantsV1ServiceCreateToolRequestq  
        :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                 r   |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        d S Nassistant_idr   enabledmetar   policyr   r    r;   r   r<   r=   r   r>   r   r!   s     r#   r$   z:ToolInstance.AssistantsV1ServiceCreateToolRequest.__init__B       /6{{>/J/JD.5kk-.H.HD+2;;y+A+ADL5<[[5H5HDI'.{{6':':DIH%% K (/{{6':':DIIIr&   c                     | 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   O     $ 1#/<		37;3J$+--///PT	  r&   Nr-   r3   r&   r#   $AssistantsV1ServiceCreateToolRequestr7   7   P        	 	
	;DcN 
	; 
	; 
	; 
	;		 		 		 		 		r&   rE   c                   4    e Zd ZdZdeeef         fdZd ZdS )1ToolInstance.AssistantsV1ServiceUpdateToolRequestj  
        :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                 r   |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        d S r:   r?   r!   s     r#   r$   z:ToolInstance.AssistantsV1ServiceUpdateToolRequest.__init__d   r@   r&   c                     | 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   Nversionr   r   c                 0   t                                          |           |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _	        |                    d          | _
        |                    d	          | _        t          j        |                    d
                    | _        t          j        |                    d                    | _        |                    d          | _        d|p| j        i| _        d | _        d S )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__   sM    	!!!*1++m*D*D*1++m*D*D'.{{9'='=!(T!2!218V1D1D	#*;;v#6#6	-4[[-I-I#*;;v#6#6	")++e"4"40;0LKK''1
 1
 1<0LKK''1
 1
 .5[[-D-D "-
 04r&   returnToolContextc                 j    | 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
        Nr   r   )rX   r[   _versionrW   r*   s    r#   _proxyzToolInstance._proxy   s;     = '>$'  DM }r&   c                 4    | j                                         S )g
        Deletes the ToolInstance


        :returns: True if delete succeeds, False otherwise
        )r_   deleter*   s    r#   rb   zToolInstance.delete   s     {!!###r&   c                 D   K   | j                                          d{V S )
        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.       [--/////////r&   c                 4    | j                                         S )U
        Fetch the ToolInstance


        :returns: The fetched ToolInstance
        )r_   fetchr*   s    r#   rh   zToolInstance.fetch   s     {  """r&   c                 D   K   | j                                          d{V S )o
        Asynchronous coroutine to fetch the ToolInstance


        :returns: The fetched ToolInstance
        N)r_   fetch_asyncr*   s    r#   rk   zToolInstance.fetch_async   s.       [,,.........r&   )assistants_v1_service_update_tool_requestc                 8    | j                             |          S )
        Update the ToolInstance

        :param assistants_v1_service_update_tool_request:

        :returns: The updated ToolInstance
        rl   )r_   updater"   rl   s     r#   rp   zToolInstance.update   s&     {!!6_ " 
 
 	
r&   c                 H   K   | j                             |           d{V S )
        Asynchronous coroutine to update the ToolInstance

        :param assistants_v1_service_update_tool_request:

        :returns: The updated ToolInstance
        ro   N)r_   update_asyncrq   s     r#   rt   zToolInstance.update_async   sH       [--6_ . 
 
 
 
 
 
 
 
 	
r&   c                     d                     d | j                                        D                       }d                    |          S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   H   K   | ]\  }}d                      ||          V  dS z{}={}Nformat.0kvs      r#   	<genexpr>z(ToolInstance.__repr__.<locals>.<genexpr>   4      SSDAq7>>!Q//SSSSSSr&   z&<Twilio.Assistants.V1.ToolInstance {}>joinrW   itemsr{   r"   contexts     r#   __repr__zToolInstance.__repr__   sF     ((SSDN<P<P<R<RSSSSS7>>wGGGr&   N)rZ   r[   )rZ   r   )r.   r/   r0   objectr4   rE   rL   r   r   r2   r   r   r$   propertyr_   boolrb   re   rh   rk   r   unsetr   rp   rt   r   __classcell__rY   s   @r#   r   r      s              8         v      D         v      D  NR4 44)-c3h4=Ec]4 4 4 4 4 46    X$ $ $ $ $0D 0 0 0 0# # # #/ / / / L	
 
380&84


 

 
 
 
* L	
 
380&84


 

 
 
 
"H# H H H H H H 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                   4    e Zd ZdZdeeef         fdZd ZdS )2ToolContext.AssistantsV1ServiceCreatePolicyRequestr   r   c                 
   |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        d S r   r   r!   s     r#   r$   z;ToolContext.AssistantsV1ServiceCreatePolicyRequest.__init__  r%   r&   c                 D    | 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                   4    e Zd ZdZdeeef         fdZd ZdS )0ToolContext.AssistantsV1ServiceCreateToolRequestr8   r   c                 r   |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        d S r:   r?   r!   s     r#   r$   z9ToolContext.AssistantsV1ServiceCreateToolRequest.__init__-  r@   r&   c                     | 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                   4    e Zd ZdZdeeef         fdZd ZdS )0ToolContext.AssistantsV1ServiceUpdateToolRequestrI   r   c                 r   |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        d S r:   r?   r!   s     r#   r$   z9ToolContext.AssistantsV1ServiceUpdateToolRequest.__init__O  r@   r&   c                     | 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                     t                                          |           d|i| _         dj        di | j        | _        dS )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  sO     	!!! "
 )M(::4>::			r&   rZ   c                 n    t          j        i           }| j                            d| j        |          S )ra   DELETEmethoduriheaders)r   ofr^   rb   r   r"   r   s     r#   rb   zToolContext.deleteu  s0     )B--}##8G#TTTr&   c                 ~   K   t          j        i           }| j                            d| j        |           d{V S )rd   r   r   N)r   r   r^   re   r   r   s     r#   re   zToolContext.delete_async  s[       )B--]//G 0 
 
 
 
 
 
 
 
 	
r&   c                     t          j        i           }d|d<   | j                            d| j        |          }t          | j        || j        d                   S )rg   application/jsonAcceptGETr   r   r]   )r   r   r^   rh   r   r   rW   r"   r   r   s      r#   rh   zToolContext.fetch  sb     )B--.-%%U	7%SSM~d#
 
 
 	
r&   c                    K   t          j        i           }d|d<   | j                            d| j        |           d{V }t          | j        || j        d                   S )rj   r   r   r   r   Nr   r]   )r   r   r^   rk   r   r   rW   r   s      r#   rk   zToolContext.fetch_async  s       )B--.11di 2 
 
 
 
 
 
 
 
 M~d#
 
 
 	
r&   rl   c                     |                                 }t          j        i           }d|d<   d|d<   | j                            d| j        ||          }t          | j        || j        d                   S )rn   r   Content-Typer   PUTr   r   datar   r   r]   )r+   r   r   r^   rp   r   r   rW   r"   rl   r   r   r   s        r#   rp   zToolContext.update  s}     9@@BB)B--"4.-&&didG ' 
 
 DM7t~d7KLLLLr&   c                    K   |                                 }t          j        i           }d|d<   d|d<   | j                            d| j        ||           d{V }t          | j        || j        d                   S )	rs   r   r   r   r   r   Nr   r]   )r+   r   r   r^   rt   r   r   rW   r   s        r#   rt   zToolContext.update_async  s       9@@BB)B--"4.22didG 3 
 
 
 
 
 
 
 
 DM7t~d7KLLLLr&   c                     d                     d | j                                        D                       }d                    |          S )rv   rw   c              3   H   K   | ]\  }}d                      ||          V  dS ry   rz   r|   s      r#   r   z'ToolContext.__repr__.<locals>.<genexpr>  r   r&   z%<Twilio.Assistants.V1.ToolContext {}>r   r   s     r#   r   zToolContext.__repr__  sF     ((SSDN<P<P<R<RSSSSS6==gFFFr&   )r.   r/   r0   r   r4   rE   rL   r   r2   r$   r   rb   re   r   rh   rk   r   r   r   rp   rt   r   r   r   s   @r#   r[   r[     s              8         v      D         v      D; ;S ; ; ; ; ; ;
U 
U 
U 
U 
U
D 
 
 
 

| 
 
 
 
(
< 
 
 
 
4 L	M M380&84
M
 
M M M M> L	M M380&84
M
 
M M M M6G# G G G G G G G Gr&   r[   c                   :    e Zd Zdeeef         defdZdefdZdS )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     DM7333r&   c                     dS )rv   z<Twilio.Assistants.V1.ToolPage>r3   r*   s    r#   r   zToolPage.__repr__  
     10r&   N)	r.   r/   r0   r   r2   r   r   r   r   r3   r&   r#   r   r     sY        4DcN 4| 4 4 4 41# 1 1 1 1 1 1r&   r   c                   x    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                   4    e Zd ZdZdeeef         fdZd ZdS )/ToolList.AssistantsV1ServiceCreatePolicyRequestr   r   c                 
   |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        d S r   r   r!   s     r#   r$   z8ToolList.AssistantsV1ServiceCreatePolicyRequest.__init__  r%   r&   c                 D    | 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                   4    e Zd ZdZdeeef         fdZd ZdS )-ToolList.AssistantsV1ServiceCreateToolRequestr8   r   c                 r   |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        d S r:   r?   r!   s     r#   r$   z6ToolList.AssistantsV1ServiceCreateToolRequest.__init__5  r@   r&   c                     | 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                   4    e Zd ZdZdeeef         fdZd ZdS )-ToolList.AssistantsV1ServiceUpdateToolRequestrI   r   c                 r   |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        |                     d          | _        d S r:   r?   r!   s     r#   r$   z6ToolList.AssistantsV1ServiceUpdateToolRequest.__init__W  r@   r&   c                     | 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                 X    t                                          |           d| _        dS )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                     |                                 }t          j        ddi          }d|d<   d|d<   | 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  sy     9@@BB)^-PQRR"4.-&&tytW ' 
 
 DM7333r&   c                    K   |                                 }t          j        ddi          }d|d<   d|d<   | j                            d| j        ||           d{V }t          | j        |          S )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B)^-PQRR"4.22tytW 3 
 
 
 
 
 
 
 
 DM7333r&   Nr;   limit	page_sizec                     | j                             ||          }|                     ||d                   }| 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  sQ    , **5)<<yylf[>QyRR}##D&/:::r&   c                    K   | j                             ||          }|                     ||d                    d{V }| j                             ||d                   S )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  s}      , **5)<<__%1D % 
 
 
 
 
 
 
 
 }))$w@@@r&   c                 L    t          |                     |||                    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  s5    * KK)#   
 
 	
r&   c                 b   K   d |                      |||           d{V 2              d{V S )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
        c                 $   K   g | 3 d {V 	 }|6 S r   r3   )r}   records     r#   
<listcomp>z'ToolList.list_async.<locals>.<listcomp>  sO       
 
 
 
 
 
 
 
 
 
 
 
 
s   r   N)r   r   s       r#   
list_asynczToolList.list_async   s      *
 
&*&7&7)# '8 ' ' ! ! ! ! ! !
 
 
 
 
 
 
 
 
 	
r&   
page_tokenpage_numberc                     t          j        ||||d          }t          j        ddi          }d|d<   | 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+'#%	 
 
 )^-PQRR.=%%dig & 
 
 x000r&   c                    K   t          j        ||||d          }t          j        ddi          }d|d<   | j                            d| j        ||           d{V }t          | j        |          S )	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+'#%	 
 
 )^-PQRR.11dig 2 
 
 
 
 
 
 
 
 x000r&   
target_urlc                 v    | 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  s3     ='.66ujIIx000r&   c                    K   | j         j        j                            d|           d{V }t	          | j         |          S )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  sI       -4BB5*UUUUUUUUx000r&   r   c                 .    t          | j        |          S z>
        Constructs a ToolContext

        :param id:
        r]   r[   r^   r"   r   s     r#   r    zToolList.get~       4=R0000r&   c                 .    t          | j        |          S r   r   r  s     r#   __call__zToolList.__call__  r  r&   c                     dS )rv   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     sM              8         v      D         v      D	 	 	 	 	 	 	43W4 
4 4 4 4243W4 
4 4 4 46 ,2<##'	; ;CK(; }; C=	;
 
,	; ; ; ;: ,2<##'	A ACK(A }A C=	A
 
|	$A A A A> ,2<##'	
 
CK(
 }
 C=	

 
l	
 
 
 
> ,2<##'	
 
CK(
 }
 C=	

 
l	
 
 
 
@ ,2<)/*0,(."1 "1CK("1 #v+&"1 3;'	"1
 f%"1 
"1 "1 "1 "1L ,2<)/*0,(."1 "1CK("1 #v+&"1 3;'	"1
 f%"1 
"1 "1 "1 "1H
13 
18 
1 
1 
1 
1
1s 
1x 
1 
1 
1 
11c 1k 1 1 1 113 1; 1 1 1 11# 1 1 1 1 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     s          L L L L L L L L L L L L L L L L L L + + + + + + + + 8 8 8 8 8 8 : : : : : : 2 2 2 2 2 2 ' ' ' ' ' ' ! ! ! ! ! !hH hH hH hH hH# hH hH hHVrG rG rG rG rG/ rG rG rGj1 1 1 1 1t 1 1 1&H1 H1 H1 H1 H1| H1 H1 H1 H1 H1r&   