
    g6                         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 - Insights
 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                   ~   ^  \ rS rSr " S S\5      r " S S\5      r S\S\\	\
4   S\	4U 4S	 jjrS
\	4S jrSrU =r$ )EventInstance   c                   (    \ rS rSrSrSrSrSrSrSr	g)	EventInstance.Level   UNKNOWNDEBUGINFOWARNINGERROR N)
__name__
__module____qualname____firstlineno__r   r   r   r   r   __static_attributes__r       j/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/insights/v1/call/event.pyLevelr      s    r    r"   c                   (    \ rS rSrSrSrSrSrSrSr	g)	EventInstance.TwilioEdge!   unknown_edgecarrier_edgesip_edgesdk_edgeclient_edger   N)
r   r   r   r   UNKNOWN_EDGECARRIER_EDGESIP_EDGESDK_EDGECLIENT_EDGEr   r   r    r!   
TwilioEdger$   !   s    %%#r    r0   versionpayloadcall_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        SU0U l        g )N	timestampr3   account_sidedgegrouplevelnamer'   r(   r)   r*   )super__init__getr5   r3   r6   r7   r8   r9   r:   r'   r(   r)   r*   	_solution)selfr1   r2   r3   	__class__s       r!   r<   EventInstance.__init__6   s    !(/K(@'.{{:'>*1++m*D:A++f:M	$+KK$8
6=kk'6J
#*;;v#6	9@^9T5<[[5L5<[[5L8?M8R 
r    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>O   s      S<RDA7>>!//<Rs    "z%<Twilio.Insights.V1.EventInstance {}>)joinr>   itemsrG   )r?   contexts     r!   __repr__EventInstance.__repr__I   s6     ((SDNN<P<P<RSS6==gFFr    )r>   r6   r3   r'   r*   r7   r8   r9   r:   r)   r(   r5   )r   r   r   r   objectr"   r0   r   r   strr   r<   rP   r   __classcell__r@   s   @r!   r   r      sV     $V $
 
$sCx. 
C 
&G# G Gr    r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)	EventPageS   r2   rB   c                 D    [        U R                  XR                  S   S9$ )zS
Build an instance of EventInstance

:param payload: Payload response from the API
r3   )r3   )r   _versionr>   )r?   r2   s     r!   get_instanceEventPage.get_instanceU   s#     MM7^^J-G
 	
r    c                     g)rD   z<Twilio.Insights.V1.EventPage>r   r?   s    r!   rP   EventPage.__repr___        0r    r   N)r   r   r   r   r   rS   r   r   r[   rP   r   r   r    r!   rW   rW   S   s)    
DcN 
} 
0# 0r    rW   c                     ^  \ rS rSrS\S\4U 4S jjr\R                  SS4S\	S\
4   S\\   S	\\   S
\\   4S jjr\R                  SS4S\	S\
4   S\\   S	\\   S
\\   4S jjr\R                  SS4S\	S\
4   S\\   S	\\   S
\\   4S jjr\R                  SS4S\	S\
4   S\\   S	\\   S
\\   4S jjr\R                  \R                  \R                  \R                  4S\	S\
4   S\	\\
4   S\	\\
4   S	\	\\
4   S
\4
S jjr\R                  \R                  \R                  \R                  4S\	S\
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$ )	EventListh   r1   r3   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 EventList

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

r3   z/Voice/{call_sid}/EventsNr   )r;   r<   r>   rG   _uri)r?   r1   r3   r@   s      r!   r<   EventList.__init__j   s=     	! 
 /55GG	r    Nr7   r$   limit	page_sizerB   c                     U R                   R                  X#5      nU R                  XS   S9nU R                   R                  XTS   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 &quot;EventInstance.TwilioEdge&quot; edge: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
: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
rh   r7   rh   rg   )rZ   read_limitspagestreamr?   r7   rg   rh   limitsrl   s         r!   rm   EventList.streamz   sF    , **5<yyd[.AyB}}##D/::r    c                    #    U R                   R                  X#5      nU R                  XS   S9I Sh  vN nU R                   R                  XTS   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 &quot;EventInstance.TwilioEdge&quot; edge: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
: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
rh   rj   Nrg   )rZ   rk   
page_asyncstream_asyncrn   s         r!   rs   EventList.stream_async   sR     , **5<__$:M_NN}}))$w@@ Os   1AA#Ac                 6    [        U R                  U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 &quot;EventInstance.TwilioEdge&quot; edge: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
: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
r7   rg   rh   )listrm   )r?   r7   rg   rh   s       r!   rw   EventList.list   s+    * KK#  
 	
r    c                 x   #    U R                  U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)aI  
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 &quot;EventInstance.TwilioEdge&quot; edge: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
: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
rv   N)rs   )r?   r7   rg   rh   records        r!   
list_asyncEventList.list_async   sT     . '+&7&7# '8 ' ! !
 
 !
 	
 
s0   :-:51/
15:15:
page_tokenpage_numberc                     [         R                  " UUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XVS9n[        U R                  XpR                  5      $ )a  
Retrieve a single page of EventInstance records from the API.
Request is executed immediately

:param edge: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
: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
Edge	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)r
   ofrZ   rl   re   rW   r>   r?   r7   r}   r~   rh   datar   responses           r!   rl   EventList.page   s~    $ yy'#%	
 ))^-PQR.==%%dii & 
 ..AAr    c                   #    [         R                  " UUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XVS9I Sh  vN n[        U R                  XpR                  5      $  N$7f)	a  
Asynchronously retrieve a single page of EventInstance records from the API.
Request is executed immediately

:param edge: The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`.
: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
r   r   r   r   r   r   r   N)r
   r   rZ   rr   re   rW   r>   r   s           r!   rr   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
r   )rZ   domaintwiliorequestrW   r>   r?   r   r   s      r!   get_pageEventList.get_page3  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
r   N)rZ   r   r   request_asyncrW   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)rD   z<Twilio.Insights.V1.EventList>r   r^   s    r!   rP   EventList.__repr__K  r`   r    )r>   re   )r   r   r   r   r   rS   r<   r
   unsetr   rR   r   intr   r   rm   r	   rs   r   rw   r{   rW   rl   rr   r   r   rP   r   rT   rU   s   @r!   rb   rb   h   s   H H3 H$ ;A,,##'	;.67; }; C=	;
 
-	 ;: ;A,,##'	A.67A }A C=	A
 
}	%A: ;A,,##'	
.67
 }
 C=	

 
m	
> ;A,,##'	
.67
 }
 C=	

 
m	
@ ;A,,)/*0,,(."B.67"B #v+&"B 3;'	"B
 f%"B 
"BL ;A,,)/*0,,(."B.67"B #v+&"B 3;'	"B
 f%"B 
"BH
B3 
B9 
B
Bs 
By 
B0# 0 0r    rb   N)__doc__typingr   r   r   r   r   r   r	   twilio.baser
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rW   rb   r   r    r!   <module>r      sO    M L L  : 2 ' !8G$ 8Gv0 0*i0 i0r    