
    gH                         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 - 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.
    )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\5      r " S S	\5      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rU =r$ )ParticipantInstance   c                   $    \ rS rSrSrSrSrSrSrg)ParticipantInstance.Codec   VP8H264VP9opus N)	__name__
__module____qualname____firstlineno__r   r   r   OPUS__static_attributes__r       p/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/insights/v1/room/participant.pyCodecr      s    r#   r%   c                   8    \ 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) ParticipantInstance.EdgeLocation!   ashburndublin	frankfurt	singaporesydney	sao_pauloroamingumatillatokyor   N)r   r   r   r    ASHBURNDUBLIN	FRANKFURT	SINGAPORESYDNEY	SAO_PAULOROAMINGUMATILLATOKYOr"   r   r#   r$   EdgeLocationr'   !   s/    			r#   r;   c                       \ rS rSrSrSrSrg)ParticipantInstance.RoomStatus,   in_progress	completedr   N)r   r   r   r    IN_PROGRESS	COMPLETEDr"   r   r#   r$   
RoomStatusr=   ,   s    #	r#   rC   c                   D    \ 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)ParticipantInstance.TwilioRealm0   us1us2au1br1ie1jp1sg1in1de1gll	stage_us1dev_us1r   N)r   r   r   r    US1US2AU1BR1IE1JP1SG1IN1DE1GLL	STAGE_US1DEV_US1r"   r   r#   r$   TwilioRealmrE   0   s>    	r#   r_   versionpayloadroom_sidparticipant_sidc                   > [         TU ]  U5        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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        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U=(       d    U R                  S.U l        S U l        g )Nrc   participant_identity	join_time
leave_timeduration_secaccount_sidrb   statuscodecs
end_reason
error_codeerror_code_urlmedia_region
propertiesedge_locationpublisher_infourlrb   rc   )super__init__getrc   re   r   iso8601_datetimerf   rg   rh   ri   rb   rj   rk   rl   integerrm   rn   ro   rp   rq   rr   rs   	_solution_context)selfr`   ra   rb   rc   	__class__s        r$   rv   ParticipantInstance.__init__R   s    	!.5kk:K.L3:;;?U3V!-8-I-IKK$.
 /:.J.JKK%/
 ,3;;~+F*1++m*D'.{{:'>BI++hBWCJ;;xCX)0\)B)4)<)<W[[=V)W-4[[9I-JIPJ
 8?{{<7PKR;;L
 <C;;GW;X")++e"4 !.F$2F2F
 7;r#   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: ParticipantContext for this ParticipantInstance
rb   rc   rt   )r{   ParticipantContext_versionrz   r|   s    r$   _proxyParticipantInstance._proxy{   sF     == .
3 $/@ ADM
 }}r#   c                 6    U R                   R                  5       $ )K
Fetch the ParticipantInstance


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


:returns: The fetched ParticipantInstance
N)r   fetch_asyncr   s    r$   r   ParticipantInstance.fetch_async   s       [[,,....s   '%'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>/ParticipantInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z+<Twilio.Insights.V1.ParticipantInstance {}>joinrz   itemsr   r|   contexts     r$   __repr__ParticipantInstance.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr#   )r{   rz   ri   rk   rh   rq   rl   rm   rn   rf   rg   ro   re   rc   rp   rr   rb   rj   rs   )N)r   r   )r   r   )r   r   r   r    objectr%   r;   rC   r_   r   r   strr   r   rv   propertyr   r   r   r   r"   __classcell__r}   s   @r$   r   r      s     	v 	 V  f 2 *.';'; c3h'; 	';
 "#'; ';R  #/M# M Mr#   r   c                   b   ^  \ 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
rU =r$ )r      r`   rb   rc   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 ParticipantContext

:param version: Version that contains the resource
:param room_sid: The SID of the Room resource.
:param participant_sid: The SID of the Participant resource.
rt   z6/Video/Rooms/{room_sid}/Participants/{participant_sid}Nr   ru   rv   rz   r   _uri)r|   r`   rb   rc   r}   s       r$   rv   ParticipantContext.__init__   sD     	! !.
 MSS 
nn
	r#   r   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   S9$ )r   application/jsonAcceptGETmethoduriheadersrb   rc   rt   )r   ofr   r   r   r   rz   r|   r   ra   s      r$   r   ParticipantContext.fetch   sj     ))B-.--%%U		7%S"MM^^J/ NN+<=	
 	
r#   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   S9$  N47f)	r   r   r   r   r   Nrb   rc   rt   )r   r   r   r   r   r   rz   r   s      r$   r   ParticipantContext.fetch_async   s~      ))B-.11dii 2 
 
 #MM^^J/ NN+<=	
 	
	
s   AA=A;5A=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      r$   r   .ParticipantContext.__repr__.<locals>.<genexpr>   r   r   z*<Twilio.Insights.V1.ParticipantContext {}>r   r   s     r$   r   ParticipantContext.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr#   rz   r   )r   r   r   r    r   r   rv   r   r   r   r   r"   r   r   s   @r$   r   r      sK    
 
3 
 
&
* 
*
#6 
.L# L Lr#   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)ParticipantPage   ra   r   c                 D    [        U R                  XR                  S   S9$ )zY
Build an instance of ParticipantInstance

:param payload: Payload response from the API
rb   )rb   )r   r   rz   )r|   ra   s     r$   get_instanceParticipantPage.get_instance   s#     #MM7^^J-G
 	
r#   c                     g)r   z$<Twilio.Insights.V1.ParticipantPage>r   r   s    r$   r   ParticipantPage.__repr__        6r#   r   N)r   r   r   r    r   r   r   r   r   r   r"   r   r#   r$   r   r      s*    
DcN 
7J 
6# 6r#   r   c            	       F  ^  \ rS rSr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$ )ParticipantListi  r`   rb   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 ParticipantList

:param version: Version that contains the resource
:param room_sid: The SID of the Room resource.

rb   z$/Video/Rooms/{room_sid}/ParticipantsNr   r   )r|   r`   rb   r}   s      r$   rv   ParticipantList.__init__	  s=     	! 
 ;AASDNNS	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 ParticipantInstance 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   )r   read_limitspagestreamr|   r   r   limitsr   s        r$   r   ParticipantList.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 ParticipantInstance 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   )r   r   
page_asyncstream_asyncr   s        r$   r   ParticipantList.stream_async2  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists ParticipantInstance 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   ParticipantList.listK  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 ParticipantInstance 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ParticipantList.list_asynce  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 ParticipantInstance 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 ParticipantInstance
	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedr   r   r   r   r   paramsr   )r   r   r   r   r   r   rz   r|   r   r   r   datar   responses          r$   r   ParticipantList.page  s{      yy'#%
 ))^-PQR.==%%dii & 
 t}}hGGr#   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 ParticipantInstance 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 ParticipantInstance
r   r   r   r   r   r   r   N)r   r   r   r   r   r   rz   r   s          r$   r   ParticipantList.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 ParticipantInstance records from the API.
Request is executed immediately

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

:returns: Page of ParticipantInstance
r   )r   domaintwiliorequestr   rz   r|   r   r   s      r$   get_pageParticipantList.get_page  s;     ==''..66ujIt}}hGGr#   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 ParticipantInstance records from the API.
Request is executed immediately

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

:returns: Page of ParticipantInstance
r   N)r   r   r   request_asyncr   rz   r   s      r$   get_page_asyncParticipantList.get_page_async  sG      --44BB5*UUt}}hGG Vs   4AA%Arc   c                 F    [        U R                  U R                  S   US9$ z_
Constructs a ParticipantContext

:param participant_sid: The SID of the Participant resource.
rb   rt   r   r   rz   r|   rc   s     r$   rw   ParticipantList.get  '     "MM^^J/+
 	
r#   c                 F    [        U R                  U R                  S   US9$ r  r  r  s     r$   __call__ParticipantList.__call__  r  r#   c                     g)r   z$<Twilio.Insights.V1.ParticipantList>r   r   s    r$   r   ParticipantList.__repr__  r   r#   r   )NN) r   r   r   r    r   r   rv   r   intr	   r   r   r
   r   r   r   r   r   unsetr   r   r   r   r   r   r   r   rw   r  r   r"   r   r   s   @r$   r   r     s$   T T3 T$  $#';}; 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

3 

+= 



 

0B 

6# 6 6r#   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   r   r   r   r   r#   r$   <module>r     sg     L L L + 8 : 2 ' !KM* KM\HL HLV6d 6*q6l q6r#   