
    g*                         S r SSKJrJrJrJrJr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g)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Api
 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.
    )AnyDictListOptionalUnionIteratorAsyncIterator)values)InstanceResource)ListResource)Version)Pagec                   X   ^  \ rS rSrSrS\S\\\4   S\S\4U 4S jjr	S\4S	 jr
S
rU =r$ )EventInstance   z
:ivar request: Contains a dictionary representing the request of the call.
:ivar response: Contains a dictionary representing the call response, including a list of the call events.
versionpayloadaccount_sidcall_sidc                    > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UUS.U l        g )Nrequestresponser   r   )super__init__getr   r   	_solution)selfr   r   r   r   	__class__s        p/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/api/v2010/account/call/event.pyr   EventInstance.__init__   sC     	!4;KK	4J5<[[5L ' 
    returnc                     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>)EventInstance.__repr__.<locals>.<genexpr>1   s      S<RDA7>>!//<Rs    "z#<Twilio.Api.V2010.EventInstance {}>)joinr   itemsr(   )r   contexts     r    __repr__EventInstance.__repr__+   s6     ((SDNN<P<P<RSS4;;GDDr"   )r   r   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r1   __static_attributes____classcell__r   s   @r    r   r      sI    


)-c3h
FI
UX
E# E Er"   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)	EventPage5   r   r#   c                 b    [        U R                  UU R                  S   U R                  S   S9$ )zS
Build an instance of EventInstance

:param payload: Payload response from the API
r   r   r   )r   _versionr   )r   r   s     r    get_instanceEventPage.get_instance7   s3     MM}5^^J/	
 	
r"   c                     g)r%   z<Twilio.Api.V2010.EventPage> r   s    r    r1   EventPage.__repr__D        .r"   rD   N)r3   r4   r5   r6   r   r8   r   r   rA   r1   r9   rD   r"   r    r=   r=   5   s)    
DcN 
} 
.# .r"   r=   c            	       &  ^  \ 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\4S jrSrU =r$ )	EventListM   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 EventList

:param version: Version that contains the resource
:param account_sid: The unique SID identifier of the Account.
:param call_sid: The unique SID identifier of the Call.

r   z4/Accounts/{account_sid}/Calls/{call_sid}/Events.jsonNrD   )r   r   r   r(   _uri)r   r   r   r   r   s       r    r   EventList.__init__O   sD     	! ' 
 KQQ 
nn
	r"   limit	page_sizer#   c                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams EventInstance 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
rO   rO   rN   )r@   read_limitspagestreamr   rN   rO   limitsrS   s        r    rT   EventList.streamc   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 EventInstance 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
rO   rQ   NrN   )r@   rR   
page_asyncstream_asyncrU   s        r    rZ   EventList.stream_async|   sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists EventInstance 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
rN   rO   )listrT   )r   rN   rO   s      r    r^   EventList.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 EventInstance 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)rZ   )r   rN   rO   records       r    
list_asyncEventList.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      $ )a7  
Retrieve a single page of EventInstance 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 EventInstance
	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)r
   ofr@   rS   rL   r=   r   r   rd   re   rO   datars   r   s          r    rS   EventList.page   s{      yy'#%
 ))^-PQR.==%%dii & 
 ..AAr"   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)	aF  
Asynchronously retrieve a single page of EventInstance 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 EventInstance
rg   rj   rk   rl   rm   rn   ro   N)r
   rt   r@   rY   rL   r=   r   ru   s          r    rY   EventList.page_async   s       yy'#%
 ))^-PQR.11dii 2 
 
 ..AA
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 EventInstance records from the API.
Request is executed immediately

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

:returns: Page of EventInstance
rn   )r@   domaintwilior   r=   r   r   rz   r   s      r    get_pageEventList.get_page  s;     ==''..66ujI..AAr"   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 EventInstance records from the API.
Request is executed immediately

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

:returns: Page of EventInstance
rn   N)r@   r|   r}   request_asyncr=   r   r~   s      r    get_page_asyncEventList.get_page_async  sG      --44BB5*UU..AA Vs   4AA%Ac                     g)r%   z<Twilio.Api.V2010.EventList>rD   rE   s    r    r1   EventList.__repr__$  rG   r"   )r   rL   )NN)r3   r4   r5   r6   r   r8   r   r   intr   r   rT   r	   rZ   r   r^   rb   r
   unsetr   objectr=   rS   rY   r   r   r1   r9   r:   r;   s   @r    rI   rI   M   s   
 
c 
S 
,  $#';}; C=; 
-	 	;6  $#'A}A C=A 
}	%	A6  $#'
}
 C=
 
m		
8  $#'
}
 C=
 
m		
: *0*0,,(.	B#v+&B 3;'B f%	B
 
BF *0*0,,(.	B#v+&B 3;'B f%	B
 
BB
B3 
B9 
B
Bs 
By 
B.# . .r"   rI   N)r7   typingr   r   r   r   r   r   r	   twilio.baser
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r=   rI   rD   r"   r    <module>r      sN    M L L  : 2 ' !E$ E:. .0]. ].r"   