
    gd                         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\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\R(                  \R(                  4S\\\4   S\\\4   SS 4S jjr\R(                  \R(                  4S\\\4   S\\\4   SS 4S jjrS\4S jrSrU =r$ )ConferenceParticipantInstance   c                       \ rS rSrSrSrSrg)+ConferenceParticipantInstance.CallDirection   inboundoutbound N)__name__
__module____qualname____firstlineno__INBOUNDOUTBOUND__static_attributes__r       ځ/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/insights/v1/conference/conference_participant.pyCallDirectionr      s    r"   r$   c                   0    \ rS rSrSrSrSrSrSrSr	Sr
S	rg
)(ConferenceParticipantInstance.CallStatus   answered	completedbusyfailnoanswerringingcanceledr   N)r   r   r   r   ANSWERED	COMPLETEDBUSYFAILNOANSWERRINGINGCANCELEDr!   r   r"   r#   
CallStatusr&      s%    	r"   r6   c                        \ rS rSrSrSrSrSrg)&ConferenceParticipantInstance.CallType(   carrierclientsipr   N)r   r   r   r   CARRIERCLIENTSIPr!   r   r"   r#   CallTyper8   (   s    r"   r@   c                   $    \ rS rSrSrSrSrSrSrg).ConferenceParticipantInstance.JitterBufferSize-   largesmallmediumoffr   N)	r   r   r   r   LARGESMALLMEDIUMOFFr!   r   r"   r#   JitterBufferSizerB   -   s    r"   rL   c                        \ rS rSrSrSrSrSrg)-ConferenceParticipantInstance.ProcessingState3   completein_progresstimeoutr   N)r   r   r   r   COMPLETEIN_PROGRESSTIMEOUTr!   r   r"   r#   ProcessingStaterN   3   s    #r"   rV   c                   4    \ rS rSrSrSrSrSrSrSr	Sr
S	rS
rg)$ConferenceParticipantInstance.Region8   us1us2au1br1ie1jp1sg1de1r   N)r   r   r   r   US1US2AU1BR1IE1JP1SG1DE1r!   r   r"   r#   RegionrX   8   s*    r"   rj   versionpayloadconference_sidparticipant_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        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S5      5      U l        [        R$                  " UR                  S5      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        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 )Nrn   labelrm   call_sidaccount_sidcall_directionfromtocall_statuscountry_codeis_moderator	join_time
leave_timeduration_secondsoutbound_queue_lengthoutbound_time_in_queuejitter_buffer_sizeis_coachcoached_participantsparticipant_regionconference_region	call_typeprocessing_state
propertieseventsmetricsurlrm   rn   )#super__init__getrn   rp   rm   rq   rr   rs   _fromru   rv   rw   rx   r   iso8601_datetimery   rz   integerr{   r|   r}   r~   r   r   r   r   r   r   r   r   r   r   	_solution_context)selfrk   rl   rm   rn   	__class__s        r#   r   &ConferenceParticipantInstance.__init__`   s|    	!.5kk:K.L$+KK$8
-4[[9I-J'.{{:'>*1++m*DKK() 	 %,KK$7
!(T!2KK& 	 ,3;;~+F,3KK,G-8-I-IKK$.
 /:.J.JKK%/
 0;/B/BKK*+0
 5@4G4GKK/05
" 6A5H5HKK016
#
 KK,- 	 )0J(?9@":
! KK,- 	 KK+, 	 KK$ 	
 KK*+ 	 8?{{<7P3:;;x3H4;KK	4J")++e"4 -.F$2F2F
 AE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: ConferenceParticipantContext for this ConferenceParticipantInstance
rm   rn   r   )r   ConferenceParticipantContext_versionr   r   s    r#   _proxy$ConferenceParticipantInstance._proxy   sG     == 8#~~.>? $/@ ADM
 }}r"   r   r   c                 6    U R                   R                  UUS9$ )  
Fetch the ConferenceParticipantInstance

:param events: Conference events generated by application or participant activity; e.g. `hold`, `mute`, etc.
:param metrics: Object. Contains participant call quality metrics.

:returns: The fetched ConferenceParticipantInstance
r   r   )r   fetchr   r   r   s      r#   r   #ConferenceParticipantInstance.fetch   s&     {{   ! 
 	
r"   c                 R   #    U R                   R                  UUS9I Sh  vN $  N7f))  
Asynchronous coroutine to fetch the ConferenceParticipantInstance

:param events: Conference events generated by application or participant activity; e.g. `hold`, `mute`, etc.
:param metrics: Object. Contains participant call quality metrics.

:returns: The fetched ConferenceParticipantInstance
r   N)r   fetch_asyncr   s      r#   r   )ConferenceParticipantInstance.fetch_async   s3      [[,, - 
 
 	
 
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>9ConferenceParticipantInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z5<Twilio.Insights.V1.ConferenceParticipantInstance {}>joinr   itemsr   r   contexts     r#   __repr__&ConferenceParticipantInstance.__repr__   s6     ((SDNN<P<P<RSSFMMgVVr"   )r   r   r   rr   rs   rq   rv   r   r   r   rm   rw   r{   r   r   rx   r~   ry   rp   rz   r   r|   r}   r   rn   r   r   ru   r   )N)r   r   )r   r   r   r   objectr$   r6   r@   rL   rV   rj   r   r   strr   r   r   propertyr   r   unsetr   r   r   r   r!   __classcell__r   s   @r#   r   r      sM    V 6 
6 & 
 F *.CECE c3hCE 	CE
 "#CE CEJ  " &,\\&,ll
c6k"
 sF{#
 
)	
( &,\\&,ll
c6k"
 sF{#
 
)	
$W# W Wr"   r   c                      ^  \ rS rSrS\S\S\4U 4S jjr\R                  \R                  4S\	\\
4   S\	\\
4   S\4S	 jjr\R                  \R                  4S\	\\
4   S\	\\
4   S\4S
 jjrS\4S jrSrU =r$ )r      rk   rm   rn   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 ConferenceParticipantContext

:param version: Version that contains the resource
:param conference_sid: The unique SID identifier of the Conference.
:param participant_sid: The unique SID identifier of the Participant.
r   z</Conferences/{conference_sid}/Participants/{participant_sid}Nr   r   r   r   r   _uri)r   rk   rm   rn   r   s       r#   r   %ConferenceParticipantContext.__init__   sG     	! -.

 KQQ .. 		r"   r   r   r   c                    [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  X4S9n[        U R                  UU R                  S   U R                  S   S9$ )	r   EventsMetricsapplication/jsonAcceptGETmethoduriparamsheadersrm   rn   r   )r   ofr   r   r   r   r   r   r   r   datar   rl   s         r#   r   "ConferenceParticipantContext.fetch   s     yy "
 ))B-.--%%dii & 
 -MM>>*:; NN+<=	
 	
r"   c                 0  #    [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  X4S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   r   Nrm   rn   r   )r   r   r   r   r   r   r   r   s         r#   r   (ConferenceParticipantContext.fetch_async  s      yy "
 ))B-.11dii 2 
 
 -MM>>*:; NN+<=	
 	
	
s   ABB 5B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   8ConferenceParticipantContext.__repr__.<locals>.<genexpr>H  r   r   z4<Twilio.Insights.V1.ConferenceParticipantContext {}>r   r   s     r#   r   %ConferenceParticipantContext.__repr__B  s6     ((SDNN<P<P<RSSELLWUUr"   r   r   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r!   r   r   s   @r#   r   r      s    
 
 
s 
. &,\\&,ll"
c6k""
 sF{#"
 
'	"
L &,\\&,ll"
c6k""
 sF{#"
 
'	"
HV# V Vr"   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)ConferenceParticipantPageiL  rl   r   c                 D    [        U R                  XR                  S   S9$ )zc
Build an instance of ConferenceParticipantInstance

:param payload: Payload response from the API
rm   )rm   )r   r   r   )r   rl   s     r#   get_instance&ConferenceParticipantPage.get_instanceN  s$     -MM7>>BR3S
 	
r"   c                     g)r   z.<Twilio.Insights.V1.ConferenceParticipantPage>r   r   s    r#   r   "ConferenceParticipantPage.__repr__X       @r"   r   N)r   r   r   r   r   r   r   r   r   r   r!   r   r"   r#   r   r   L  s,    
DcN 
7T 
@# @r"   r   c                     ^  \ rS rSrS\S\4U 4S jjr\R                  \R                  \R                  SS4S\	\\
4   S\	\\
4   S\	\\
4   S	\\   S
\\   S\\   4S jjr\R                  \R                  \R                  SS4S\	\\
4   S\	\\
4   S\	\\
4   S	\\   S
\\   S\\   4S jjr\R                  \R                  \R                  SS4S\	\\
4   S\	\\
4   S\	\\
4   S	\\   S
\\   S\\   4S jjr\R                  \R                  \R                  SS4S\	\\
4   S\	\\
4   S\	\\
4   S	\\   S
\\   S\\   4S jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S
\	\\
4   S\4S jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\	\\
4   S\	\\
4   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\S\4S jrS\S\4S jrS\4S jrSrU =r$ )ConferenceParticipantListia  rk   rm   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 ConferenceParticipantList

:param version: Version that contains the resource
:param conference_sid: The unique SID identifier of the Conference.

rm   z*/Conferences/{conference_sid}/ParticipantsNr   r   )r   rk   rm   r   s      r#   r   "ConferenceParticipantList.__init__c  sC     	! n
 AGG 
nn
	r"   Nrn   rp   r   limit	page_sizer   c                     U R                   R                  XE5      nU R                  UUUUS   S9nU R                   R                  XvS   5      $ )a   
Streams ConferenceParticipantInstance 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 str participant_sid: The unique SID identifier of the Participant.
:param str label: User-specified label for a participant.
:param str events: Conference events generated by application or participant activity; e.g. `hold`, `mute`, etc.
: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   rn   rp   r   r   r   )r   read_limitspagestreamr   rn   rp   r   r   r   limitsr   s           r#   r    ConferenceParticipantList.streamu  sW    4 **5<yy+[)	  
 }}##D/::r"   c                    #    U R                   R                  XE5      nU R                  UUUUS   S9I Sh  vN nU R                   R                  XvS   5      $  N"7f)a  
Asynchronously streams ConferenceParticipantInstance 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 str participant_sid: The unique SID identifier of the Participant.
:param str label: User-specified label for a participant.
:param str events: Conference events generated by application or participant activity; e.g. `hold`, `mute`, etc.
: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   &ConferenceParticipantList.stream_async  sd     4 **5<__+[)	 % 
 
 }}))$w@@
s   4AA#Ac           
      :    [        U R                  UUUUUS95      $ )a  
Lists ConferenceParticipantInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str participant_sid: The unique SID identifier of the Participant.
:param str label: User-specified label for a participant.
:param str events: Conference events generated by application or participant activity; e.g. `hold`, `mute`, etc.
: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   rp   r   r   r   )listr   )r   rn   rp   r   r   r   s         r#   r   ConferenceParticipantList.list  s1    2 KK /#  
 	
r"   c                 |   #    U R                  UU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)a  
Asynchronously lists ConferenceParticipantInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str participant_sid: The unique SID identifier of the Participant.
:param str label: User-specified label for a participant.
:param str events: Conference events generated by application or participant activity; e.g. `hold`, `mute`, etc.
: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   rn   rp   r   r   r   records          r#   
list_async$ConferenceParticipantList.list_async  sZ     6 '+&7&7 /# '8 ' ! !	
 	
 !	
 		
 	
s0   </<731
37<37<
page_tokenpage_numberc           	          [         R                  " UUUUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XxS9n	[        U R                  XR                  5      $ )a@  
Retrieve a single page of ConferenceParticipantInstance records from the API.
Request is executed immediately

:param participant_sid: The unique SID identifier of the Participant.
:param label: User-specified label for a participant.
:param events: Conference events generated by application or participant activity; e.g. `hold`, `mute`, etc.
: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 ConferenceParticipantInstance
ParticipantSidLabelr   	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedr   r   r   r   )r   r   r   r   r   r   r   
r   rn   rp   r   r  r  r   r   r   responses
             r#   r   ConferenceParticipantList.page  s    , yy"1 '#%	
 ))^-PQR.==%%dii & 
 )..QQr"   c           	        #    [         R                  " UUUUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XxS9I Sh  vN n	[        U R                  XR                  5      $  N$7f)	aO  
Asynchronously retrieve a single page of ConferenceParticipantInstance records from the API.
Request is executed immediately

:param participant_sid: The unique SID identifier of the Participant.
:param label: User-specified label for a participant.
:param events: Conference events generated by application or participant activity; e.g. `hold`, `mute`, etc.
: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 ConferenceParticipantInstance
r  r	  r
  r   r   r   r   N)r   r   r   r   r   r   r   r  s
             r#   r   $ConferenceParticipantList.page_async.  s     , yy"1 '#%	
 ))^-PQR.11dii 2 
 
 )..QQ
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 ConferenceParticipantInstance records from the API.
Request is executed immediately

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

:returns: Page of ConferenceParticipantInstance
r   )r   domaintwiliorequestr   r   r   r  r  s      r#   get_page"ConferenceParticipantList.get_pageX  s;     ==''..66ujI(..QQr"   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 ConferenceParticipantInstance records from the API.
Request is executed immediately

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

:returns: Page of ConferenceParticipantInstance
r   N)r   r  r  request_asyncr   r   r  s      r#   get_page_async(ConferenceParticipantList.get_page_asyncd  sG      --44BB5*UU(..QQ Vs   4AA%Ac                 F    [        U R                  U R                  S   US9$ zr
Constructs a ConferenceParticipantContext

:param participant_sid: The unique SID identifier of the Participant.
rm   r   r   r   r   r   rn   s     r#   r   ConferenceParticipantList.getp  (     ,MM>>*:;+
 	
r"   c                 F    [        U R                  U R                  S   US9$ r  r  r  s     r#   __call__"ConferenceParticipantList.__call__|  r!  r"   c                     g)r   z.<Twilio.Insights.V1.ConferenceParticipantList>r   r   s    r#   r   "ConferenceParticipantList.__repr__  r   r"   r   ) r   r   r   r   r   r   r   r   r   r   r   r   intr	   r   r   r
   r   r   r   r   r   r   r   r  r  r   r   r#  r   r!   r   r   s   @r#   r   r   a  s   
 
 
( /5ll$*LL%+\\##'";sF{+"; S&[!"; c6k"	";
 }"; C="; 
/	0";L /5ll$*LL%+\\##'"AsF{+"A S&[!"A c6k"	"A
 }"A C="A 
4	5"AL /5ll$*LL%+\\##'!
sF{+!
 S&[!!
 c6k"	!

 }!
 C=!
 
+	,!
J /5ll$*LL%+\\##'"
sF{+"
 S&[!"
 c6k"	"

 }"
 C="
 
+	,"
L /5ll$*LL%+\\)/*0,,(.(RsF{+(R S&[!(R c6k"	(R
 #v+&(R 3;'(R f%(R 
#(RX /5ll$*LL%+\\)/*0,,(.(RsF{+(R S&[!(R c6k"	(R
 #v+&(R 3;'(R f%(R 
#(RT
R3 
R+D 
R
Rs 
R7P 
R

3 

+G 



 

0L 

@# @ @r"   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>r0     sk     L L L + 8 : 2 ' !GW$4 GWTfV? fVR@ @*m@ m@r"   