
    gF                         S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
JrJr  SSKJr  SSKJr  SSKJr  SSKJr  SS	KJr   " S
 S\5      r " S S\5      r " S S\5      r " S S\5      rg)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            
          ^  \ rS rSrSr SS\S\\\4   S\S\	\   4U 4S jjjr
\SS	 j5       rSS
 jrSS jrS\4S jrS\4S jrS\4S jrSrU =r$ )AssistantsToolInstance   a   
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Tool resource.
:ivar description: The description of the tool.
:ivar enabled: True if the tool is enabled.
:ivar id: The tool ID.
:ivar meta: The metadata related to method, url, input_schema to used with the Tool.
:ivar name: The name of the tool.
:ivar requires_auth: The authentication requirement for the tool.
:ivar type: The type of the tool. ('WEBHOOK')
:ivar url: The url of the tool resource.
:ivar date_created: The date and time in GMT when the Tool 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 Tool was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
versionpayloadassistant_ididc                   > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l	        UR                  S5      U l
        UR                  S	5      U l        [        R                  " UR                  S
5      5      U l        [        R                  " UR                  S5      5      U l        UU=(       d    U R                  S.U l        S U l        g )Naccount_siddescriptionenabledr   metanamerequires_authtypeurldate_createddate_updatedr   r   )super__init__getr   r   r   r   r   r   r   r    r!   r   iso8601_datetimer"   r#   	_solution_context)selfr   r   r   r   	__class__s        {/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/assistants/v1/assistant/assistants_tool.pyr&   AssistantsToolInstance.__init__(   s    	!*1++m*D*1++m*D'.{{9'=!(T!218V1D	#*;;v#6	-4[[-I#*;;v#6	")++e"40;0L0LKK'1
 1<0L0LKK'1

 )-
 :>    returnc                     U R                   c4  [        U R                  U R                  S   U R                  S   S9U l         U R                   $ )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: AssistantsToolContext for this AssistantsToolInstance
r   r   r$   )r*   AssistantsToolContext_versionr)   r+   s    r-   _proxyAssistantsToolInstance._proxyG   sE     == 1!^^N;>>$'DM
 }}r/   c                 6    U R                   R                  5       $ )R
Create the AssistantsToolInstance


:returns: The created AssistantsToolInstance
)r5   creater4   s    r-   r9   AssistantsToolInstance.createW        {{!!##r/   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)l
Asynchronous coroutine to create the AssistantsToolInstance


:returns: The created AssistantsToolInstance
N)r5   create_asyncr4   s    r-   r>   #AssistantsToolInstance.create_async`          [[--////   '%'c                 6    U R                   R                  5       $ )Y
Deletes the AssistantsToolInstance


:returns: True if delete succeeds, False otherwise
)r5   deleter4   s    r-   rD   AssistantsToolInstance.deletei   r;   r/   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)u
Asynchronous coroutine that deletes the AssistantsToolInstance


:returns: True if delete succeeds, False otherwise
N)r5   delete_asyncr4   s    r-   rH   #AssistantsToolInstance.delete_asyncr   r@   rA   c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r-   	<genexpr>2AssistantsToolInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z0<Twilio.Assistants.V1.AssistantsToolInstance {}>joinr)   itemsrP   r+   contexts     r-   __repr__AssistantsToolInstance.__repr__{   s6     ((SDNN<P<P<RSSAHHQQr/   )r*   r)   r   r"   r#   r   r   r   r   r   r   r    r!   )N)r0   r2   )r0   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r&   propertyr5   r9   r>   boolrD   rH   r^   __static_attributes____classcell__r,   s   @r-   r   r      s    & !>> c3h> 	>
 SM> >>  $0$ $0D 0R# R Rr/   r   c                   ~   ^  \ rS rSrS\S\S\4U 4S jjrS\4S jrS\4S jr	S\
4S	 jrS\
4S
 jrS\4S jrSrU =r$ )r2      r   r   r   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)z
Initialize the AssistantsToolContext

:param version: Version that contains the resource
:param assistant_id: The assistant ID.
:param id: The tool ID.
r$   z%/Assistants/{assistant_id}/Tools/{id}N r%   r&   r)   rP   _uri)r+   r   r   r   r,   s       r-   r&   AssistantsToolContext.__init__   s>     	! )
 <BBTT^^T	r/   r0   c                     [         R                  " 0 5      nU R                  R                  SU R                  US9n[        U R                  UU R                  S   U R                  S   S9$ )r8   POSTmethoduridatar   r   r$   r   ofr3   r9   rp   r   r)   r+   rw   r   s      r-   r9   AssistantsToolContext.create   s_     yy}--&&f$))$&O%MM7~~d#	
 	
r/   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   U R                  S   S9$  N47f)r=   rs   rt   Nr   r   r$   r   ry   r3   r>   rp   r   r)   rz   s      r-   r>   "AssistantsToolContext.create_async   ss      yy}22tyyt 3 
 
 &MM7~~d#	
 	
	
s   ?A8A65A8c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )rC   DELETEru   rv   headers)r   ry   r3   rD   rp   r+   r   s     r-   rD   AssistantsToolContext.delete   s1     ))B-}}##8G#TTr/   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)rG   r   r   N)r   ry   r3   rH   rp   r   s     r-   rH   "AssistantsToolContext.delete_async   sE      ))B-]]//G 0 
 
 	
 
s   ?AAAc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rK   rL   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frN   rO   rQ   s      r-   rU   1AssistantsToolContext.__repr__.<locals>.<genexpr>   rW   rX   z/<Twilio.Assistants.V1.AssistantsToolContext {}>rY   r\   s     r-   r^   AssistantsToolContext.__repr__   s6     ((SDNN<P<P<RSS@GGPPr/   r)   rp   )r`   ra   rb   rc   r   re   r&   r   r9   r>   rg   rD   rH   r^   rh   ri   rj   s   @r-   r2   r2      si    U Us U U"
. 
$
$: 
(
U 
U
D 
Q# Q Qr/   r2   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)AssistantsToolPage   r   r0   c                 D    [        U R                  XR                  S   S9$ )z\
Build an instance of AssistantsToolInstance

:param payload: Payload response from the API
r   r   )r   r3   r)   )r+   r   s     r-   get_instanceAssistantsToolPage.get_instance   s#     &MM71O
 	
r/   c                     g)rK   z)<Twilio.Assistants.V1.AssistantsToolPage>rn   r4   s    r-   r^   AssistantsToolPage.__repr__        ;r/   rn   N)r`   ra   rb   rc   r   re   r   r   r   r^   rh   rn   r/   r-   r   r      s*    
DcN 
7M 
;# ;r/   r   c            	       b  ^  \ rS rSrS\S\4U 4S jjrS\4S jrS\4S jr	  SS\
\   S	\
\   S\\   4S
 jjr  SS\
\   S	\
\   S\\   4S jjr  SS\
\   S	\
\   S\\   4S jjr  SS\
\   S	\
\   S\\   4S jjr\R(                  \R(                  \R(                  4S\\\4   S\\\4   S	\\\4   S\4S jjr\R(                  \R(                  \R(                  4S\\\4   S\\\4   S	\\\4   S\4S jjrS\S\4S jrS\S\4S jrS\S\4S jrS\S\4S jrS\4S jrSr U =r!$ )AssistantsToolList   r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)z
Initialize the AssistantsToolList

:param version: Version that contains the resource
:param assistant_id: The assistant ID.

r   z /Assistants/{assistant_id}/ToolsNrn   ro   )r+   r   r   r,   s      r-   r&   AssistantsToolList.__init__   s=     	! L
 7==OO	r/   r0   c                     [         R                  " SS05      nU R                  R                  SU R                  US9n[        U R                  X R                  S   S9$ )r8   Content-Type!application/x-www-form-urlencodedrs   r   r   r   rx   r+   r   r   s      r-   r9   AssistantsToolList.create	  sV     ))^-PQR--&&f$))W&U%MM71O
 	
r/   c                    #    [         R                  " SS05      nU R                  R                  SU R                  US9I Sh  vN n[        U R                  X R                  S   S9$  N%7f)za
Asynchronously create the AssistantsToolInstance


:returns: The created AssistantsToolInstance
r   r   rs   r   Nr   r   r}   r   s      r-   r>   AssistantsToolList.create_async  sj      ))^-PQR22tyy' 3 
 
 &MM71O
 	
	
s   AA+A)&A+limit	page_sizec                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams AssistantsToolInstance 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
r   r   r   )r3   read_limitspagestreamr+   r   r   limitsr   s        r-   r   AssistantsToolList.stream+  sF    ( **5<yy6+#6y7}}##D/::r/   c                    #    U R                   R                  X5      nU R                  US   S9I Sh  vN nU R                   R                  XCS   5      $  N"7f)a  
Asynchronously streams AssistantsToolInstance 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
r   r   Nr   )r3   r   
page_asyncstream_asyncr   s        r-   r   AssistantsToolList.stream_asyncD  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists AssistantsToolInstance 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
r   r   )listr   )r+   r   r   s      r-   r   AssistantsToolList.list]  s(    & KK#  
 	
r/   c                 v   #    U R                  UUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)a  
Asynchronously lists AssistantsToolInstance 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
r   N)r   )r+   r   r   records       r-   
list_asyncAssistantsToolList.list_asyncw  sQ     * '+&7&7# '8 ' ! !
 
 !
 	
 
s0   9,940.
049049
page_tokenpage_numberc                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9n[        U R                  X`R                  5      $ )aI  
Retrieve a single page of AssistantsToolInstance 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 AssistantsToolInstance
	PageTokenr   PageSizer   r   application/jsonAcceptGETru   rv   paramsr   )r   ry   r3   r   rp   r   r)   r+   r   r   r   rw   r   responses          r-   r   AssistantsToolList.page  s{      yy'#%
 ))^-PQR.==%%dii & 
 "$-->>JJr/   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  X`R                  5      $  N$7f)	aX  
Asynchronously retrieve a single page of AssistantsToolInstance 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 AssistantsToolInstance
r   r   r   r   r   r   r   N)r   ry   r3   r   rp   r   r)   r   s          r-   r   AssistantsToolList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 "$-->>JJ
s   A B	"B#%B	
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )z
Retrieve a specific page of AssistantsToolInstance records from the API.
Request is executed immediately

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

:returns: Page of AssistantsToolInstance
r   )r3   domaintwiliorequestr   r)   r+   r   r   s      r-   get_pageAssistantsToolList.get_page  s;     ==''..66ujI!$-->>JJr/   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   X R
                  5      $  N$7f)z
Asynchronously retrieve a specific page of AssistantsToolInstance records from the API.
Request is executed immediately

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

:returns: Page of AssistantsToolInstance
r   N)r3   r   r   request_asyncr   r)   r   s      r-   get_page_async!AssistantsToolList.get_page_async  sG      --44BB5*UU!$-->>JJ Vs   4AA%Ar   c                 F    [        U R                  U R                  S   US9$ z=
Constructs a AssistantsToolContext

:param id: The tool ID.
r   r$   r2   r3   r)   r+   r   s     r-   r'   AssistantsToolList.get  %     %MM~(F2
 	
r/   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r-   __call__AssistantsToolList.__call__  r   r/   c                     g)rK   z)<Twilio.Assistants.V1.AssistantsToolList>rn   r4   s    r-   r^   AssistantsToolList.__repr__   r   r/   r   )NN)"r`   ra   rb   rc   r   re   r&   r   r9   r>   r   intr	   r   r
   r   r   r   r   r   unsetr   objectr   r   r   r   r   r2   r'   r   r^   rh   ri   rj   s   @r-   r   r      s@   P Ps P 
. 
 
$: 
(  $#';}; C=; 
(	)	;6  $#'A}A C=A 
-	.	A6  $#'
}
 C=
 
$	%	
8  $#'
}
 C=
 
$	%	
: *0*0,,(.	K#v+&K 3;'K f%	K
 
KF *0*0,,(.	K#v+&K 3;'K f%	K
 
KB
K3 
K+= 
K
Ks 
K7I 
K
c 
3 

3 
#8 
;# ; ;r/   r   N)rd   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   r2   r   r   rn   r/   r-   <module>r      sg     L L L + 8 : 2 ' !iR- iRXZQO ZQz; ;*O; O;r/   