
    gT                         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 - Proxy
 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 S\5      r " S S\5      r  SS\S\\	\
4   S\	S	\	S
\\	   4
U 4S jjjr\SS j5       rS\4S jrS\4S jrSS jrSS jrS\	4S jrSrU =r$ )InteractionInstance   c                   h    \ rS rSrSrSrSrSrSrSr	Sr
S	rS
rSrSrSrSrSrSrSrSrSrSrSrSrSrg)"InteractionInstance.ResourceStatus   acceptedansweredbusycanceled	completeddeleted	deliveredzdelivery-unknownfailedzin-progress	initiatedz	no-answerqueuedreceived	receivingringing	scheduledsendingsentundeliveredunknown N)__name__
__module____qualname____firstlineno__ACCEPTEDANSWEREDBUSYCANCELED	COMPLETEDDELETED	DELIVEREDDELIVERY_UNKNOWNFAILEDIN_PROGRESS	INITIATED	NO_ANSWERQUEUEDRECEIVED	RECEIVINGRINGING	SCHEDULEDSENDINGSENTUNDELIVEREDUNKNOWN__static_attributes__r*       x/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/proxy/v1/service/session/interaction.pyResourceStatusr      sl    		-#				#rE   rG   c                        \ rS rSrSrSrSrSrg)InteractionInstance.Type2   messagevoicer)   r*   N)r+   r,   r-   r.   MESSAGEVOICErC   rD   r*   rE   rF   TyperI   2   s    rE   rO   versionpayloadservice_sidsession_sidsidc                   > [         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        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R                  S5      U l        UUU=(       d    U R                  S.U l        S U l        g )NrT   rS   rR   account_siddatatypeinbound_participant_sidinbound_resource_sidinbound_resource_statusinbound_resource_typeinbound_resource_urloutbound_participant_sidoutbound_resource_sidoutbound_resource_statusoutbound_resource_typeoutbound_resource_urldate_createddate_updatedurlrR   rS   rT   )super__init__getrT   rS   rR   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   r   iso8601_datetimerc   rd   re   	_solution_context)selfrP   rQ   rR   rS   rT   	__class__s         rF   rh   InteractionInstance.__init__M   s    	!")++e"4*1++m*D*1++m*D*1++m*D#*;;v#6	:A++f:M	6=kk%7
$ 4;;;?U3V!KK12 	$ 5<KK@W4X"3:;;?U3V!7>{{&8
% 5<KK@W4X" KK23 	% 6=[[$6
# 5<KK@W4X"0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 '&?$((

 7;rE   returnc                     U R                   cB  [        U R                  U R                  S   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: InteractionContext for this InteractionInstance
rR   rS   rT   rf   )rl   InteractionContext_versionrk   rm   s    rF   _proxyInteractionInstance._proxy   sQ     == . NN=9 NN=9NN5)	DM }}rE   c                 6    U R                   R                  5       $ )V
Deletes the InteractionInstance


:returns: True if delete succeeds, False otherwise
)ru   deletert   s    rF   ry   InteractionInstance.delete   s     {{!!##rE   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)r
Asynchronous coroutine that deletes the InteractionInstance


:returns: True if delete succeeds, False otherwise
N)ru   delete_asyncrt   s    rF   r}    InteractionInstance.delete_async   s       [[--////   '%'c                 6    U R                   R                  5       $ )K
Fetch the InteractionInstance


:returns: The fetched InteractionInstance
)ru   fetchrt   s    rF   r   InteractionInstance.fetch   s     {{  ""rE   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)e
Asynchronous coroutine to fetch the InteractionInstance


:returns: The fetched InteractionInstance
N)ru   fetch_asyncrt   s    rF   r   InteractionInstance.fetch_async   s       [[,,....r   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      rF   	<genexpr>/InteractionInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z(<Twilio.Proxy.V1.InteractionInstance {}>joinrk   itemsr   rm   contexts     rF   __repr__InteractionInstance.__repr__   s6     ((SDNN<P<P<RSS9@@IIrE   )rl   rk   rV   rW   rc   rd   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rR   rS   rT   rX   re   )N)rp   rr   )rp   r   )r+   r,   r-   r.   objectrG   rO   r   r   strr   r   rh   propertyru   boolry   r}   r   r   r   rD   __classcell__rn   s   @rF   r   r      s     .v 
8 "1;1; c3h1; 	1;
 1; c]1; 1;f   $ $0D 0#/J# J JrE   r   c                      ^  \ rS rSrS\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$ )rr      rP   rR   rS   rT   c                 |   > [         TU ]  U5        UUUS.U l        SR                  " S0 U R                  D6U l        g)a  
Initialize the InteractionContext

:param version: Version that contains the resource
:param service_sid: The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch.
:param session_sid: The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch.
:param sid: The Twilio-provided string that uniquely identifies the Interaction resource to fetch.
rf   zA/Services/{service_sid}/Sessions/{session_sid}/Interactions/{sid}Nr*   rg   rh   rk   r   _uri)rm   rP   rR   rS   rT   rn   s        rF   rh   InteractionContext.__init__   sJ     	! '&
 PVV .. 		rE   rp   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )rx   DELETEmethoduriheaders)r   ofrs   ry   r   rm   r   s     rF   ry   InteractionContext.delete   s1     ))B-}}##8G#TTrE   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)r|   r   r   N)r   r   rs   r}   r   r   s     rF   r}   InteractionContext.delete_async   sE      ))B-]]//G 0 
 
 	
 
s   ?AAAc                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   U R                  S   U R                  S   S9$ )	r   application/jsonAcceptGETr   rR   rS   rT   rf   )r   r   rs   r   r   r   rk   rm   r   rQ   s      rF   r   InteractionContext.fetch   su     ))B-.--%%U		7%S"MM}5}5u%
 	
rE   c                   #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   U R                  S   U R                  S   S	9$  NB7f)
r   r   r   r   r   NrR   rS   rT   rf   )r   r   rs   r   r   r   rk   r   s      rF   r   InteractionContext.fetch_async  s      ))B-.11dii 2 
 
 #MM}5}5u%
 	
	
s   ABB	ABc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r   r   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr   r   r   s      rF   r   .InteractionContext.__repr__.<locals>.<genexpr>&  r   r   z'<Twilio.Proxy.V1.InteractionContext {}>r   r   s     rF   r   InteractionContext.__repr__   s6     ((SDNN<P<P<RSS8??HHrE   rk   r   )r+   r,   r-   r.   r   r   rh   r   ry   r}   r   r   r   r   rD   r   r   s   @rF   rr   rr      sm    
 
c 
 
RU 
.
U 
U
D 

* 
,
#6 
0I# I IrE   rr   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)InteractionPagei*  rQ   rp   c                 b    [        U R                  UU R                  S   U R                  S   S9$ )zY
Build an instance of InteractionInstance

:param payload: Payload response from the API
rR   rS   rR   rS   )r   rs   rk   )rm   rQ   s     rF   get_instanceInteractionPage.get_instance,  s3     #MM}5}5	
 	
rE   c                     g)r   z!<Twilio.Proxy.V1.InteractionPage>r*   rt   s    rF   r   InteractionPage.__repr__9       3rE   r*   N)r+   r,   r-   r.   r   r   r   r   r   r   rD   r*   rE   rF   r   r   *  s*    
DcN 
7J 
3# 3rE   r   c            	       J  ^  \ rS rSrS\S\S\4U 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  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$ )InteractionListiB  rP   rR   rS   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)aS  
Initialize the InteractionList

:param version: Version that contains the resource
:param service_sid: The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from.
:param session_sid: The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from.

r   z;/Services/{service_sid}/Sessions/{session_sid}/InteractionsNr*   r   )rm   rP   rR   rS   rn   s       rF   rh   InteractionList.__init__D  sG     	! '&

 JPP .. 		rE   limit	page_sizerp   c                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams InteractionInstance 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   )rs   read_limitspagestreamrm   r   r   limitsr   s        rF   r   InteractionList.streamZ  sF    ( **5<yy6+#6y7}}##D/::rE   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 InteractionInstance 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   )rs   r   
page_asyncstream_asyncr   s        rF   r   InteractionList.stream_asyncs  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists InteractionInstance 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   )rm   r   r   s      rF   r   InteractionList.list  s(    & KK#  
 	
rE   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 InteractionInstance 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   )rm   r   r   records       rF   
list_asyncInteractionList.list_async  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      $ )aC  
Retrieve a single page of InteractionInstance 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 InteractionInstance
	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedr   r   r   r   r   paramsr   )r   r   rs   r   r   r   rk   rm   r   r   r   rW   r   responses          rF   r   InteractionList.page  s{      yy'#%
 ))^-PQR.==%%dii & 
 t}}hGGrE   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)	aR  
Asynchronously retrieve a single page of InteractionInstance 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 InteractionInstance
r   r   r   r   r   r   r   N)r   r   rs   r   r   r   rk   r   s          rF   r   InteractionList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 t}}hGG
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 InteractionInstance records from the API.
Request is executed immediately

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

:returns: Page of InteractionInstance
r   )rs   domaintwiliorequestr   rk   rm   r   r   s      rF   get_pageInteractionList.get_page  s;     ==''..66ujIt}}hGGrE   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 InteractionInstance records from the API.
Request is executed immediately

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

:returns: Page of InteractionInstance
r   N)rs   r   r   request_asyncr   rk   r   s      rF   get_page_asyncInteractionList.get_page_async  sG      --44BB5*UUt}}hGG Vs   4AA%ArT   c                 b    [        U R                  U R                  S   U R                  S   US9$ z
Constructs a InteractionContext

:param sid: The Twilio-provided string that uniquely identifies the Interaction resource to fetch.
rR   rS   rf   rr   rs   rk   rm   rT   s     rF   ri   InteractionList.get  3     "MM}5}5	
 	
rE   c                 b    [        U R                  U R                  S   U R                  S   US9$ r  r  r  s     rF   __call__InteractionList.__call__(  r  rE   c                     g)r   z!<Twilio.Proxy.V1.InteractionList>r*   rt   s    rF   r   InteractionList.__repr__5  r   rE   r   )NN) r+   r,   r-   r.   r   r   rh   r   intr	   r   r   r
   r   r   r   r   r   unsetr   r   r   r   r   r   r   rr   ri   r  r   rD   r   r   s   @rF   r   r   B  s(   
 
c 
 
0  $#';}; C=; 
%	&	;6  $#'A}A C=A 
*	+	A6  $#'
}
 C=
 
!	"	
8  $#'
}
 C=
 
!	"	
: *0*0,,(.	H#v+&H 3;'H f%	H
 
HF *0*0,,(.	H#v+&H 3;'H f%	H
 
HB
H3 
H? 
H
Hs 
H 
H
s 
1 

C 
$6 
3# 3 3rE   r   N)__doc__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   rr   r   r   r*   rE   rF   <module>r     sg     L L L + 8 : 2 ' !cJ* cJLhI hIV3d 30y3l y3rE   