
    g2                        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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 - 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.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserialize	serializevalues)InstanceContext)InstanceResource)ListResource)Version)Pagec                   D  ^  \ rS rS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\R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S
S 4S jjr\R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S
S 4S j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Sr	Sr
g	)
ParticipantInstance.Status   queued
connectingringing	connectedcompletefailed N)__name__
__module____qualname____firstlineno__QUEUED
CONNECTINGRINGING	CONNECTEDCOMPLETEFAILED__static_attributes__r       |/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/api/v2010/account/conference/participant.pyStatusr      s     !
	r+   r-   versionpayloadaccount_sidconference_sidcall_sidc                 R  > [         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        [        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UU=(       d    U R                  S.U l        S U l        g )Nr0   r2   labelcall_sid_to_coachcoachingr1   date_createddate_updatedend_conference_on_exitmutedholdstart_conference_on_enterstatus
queue_timeurir0   r1   r2   )super__init__getr0   r2   r4   r5   r6   r1   r   rfc2822_datetimer7   r8   r9   r:   r;   r<   r=   r>   r?   	_solution_context)selfr.   r/   r0   r1   r2   	__class__s         r,   rB   ParticipantInstance.__init__5   s\    	!*1++m*D'.{{:'>$+KK$8
07<O0P(/J(?-4[[9I-J0;0L0LKK'1
 1<0L0LKK'1
 7>kk$7
# &-[[%9
$+KK$7	9@':
& ?Fkk(>S)0\)B")++e"4 ', 1DMM

 7;r+   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: ParticipantContext for this ParticipantInstance
r0   r1   r2   r@   )rF   ParticipantContext_versionrE   rG   s    r,   _proxyParticipantInstance._proxy^   sR     == . NN=9#~~.>?
3	DM }}r+   c                 6    U R                   R                  5       $ )V
Deletes the ParticipantInstance


:returns: True if delete succeeds, False otherwise
)rO   deleterN   s    r,   rS   ParticipantInstance.deleteo   s     {{!!##r+   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)r
Asynchronous coroutine that deletes the ParticipantInstance


:returns: True if delete succeeds, False otherwise
N)rO   delete_asyncrN   s    r,   rW    ParticipantInstance.delete_asyncx   s       [[--////   '%'c                 6    U R                   R                  5       $ )K
Fetch the ParticipantInstance


:returns: The fetched ParticipantInstance
)rO   fetchrN   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)rO   fetch_asyncrN   s    r,   r`   ParticipantInstance.fetch_async   s       [[,,....rY   r:   r;   hold_urlhold_methodannounce_urlannounce_methodwait_urlwait_methodbeep_on_exitr9   r6   r5   c                 J    U R                   R                  UUUUUUUUU	U
UUS9$ )	  
Update the ParticipantInstance

:param muted: Whether the participant should be muted. Can be `true` or `false`. `true` will mute the participant, and `false` will un-mute them. Anything value other than `true` or `false` is interpreted as `false`.
:param hold: Whether the participant should be on hold. Can be: `true` or `false`. `true` puts the participant on hold, and `false` lets them rejoin the conference.
:param hold_url: The URL we call using the `hold_method` for music that plays when the participant is on hold. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
:param hold_method: The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`.
:param announce_url: The URL we call using the `announce_method` for an announcement to the participant. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
:param announce_method: The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`.
:param wait_url: The URL we call using the `wait_method` for the music to play while participants are waiting for the conference to start. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic).
:param wait_method: The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file.
:param beep_on_exit: Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`.
:param end_conference_on_exit: Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
:param coaching: Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined.
:param call_sid_to_coach: The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`.

:returns: The updated ParticipantInstance
r:   r;   rb   rc   rd   re   rf   rg   rh   r9   r6   r5   )rO   updaterG   r:   r;   rb   rc   rd   re   rf   rg   rh   r9   r6   r5   s                r,   rl   ParticipantInstance.update   sE    B {{!!#%+#%#9/ " 
 	
r+   c                 f   #    U R                   R                  UUUUUUUUU	U
UUS9I Sh  vN $  N7f)	  
Asynchronous coroutine to update the ParticipantInstance

:param muted: Whether the participant should be muted. Can be `true` or `false`. `true` will mute the participant, and `false` will un-mute them. Anything value other than `true` or `false` is interpreted as `false`.
:param hold: Whether the participant should be on hold. Can be: `true` or `false`. `true` puts the participant on hold, and `false` lets them rejoin the conference.
:param hold_url: The URL we call using the `hold_method` for music that plays when the participant is on hold. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
:param hold_method: The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`.
:param announce_url: The URL we call using the `announce_method` for an announcement to the participant. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
:param announce_method: The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`.
:param wait_url: The URL we call using the `wait_method` for the music to play while participants are waiting for the conference to start. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic).
:param wait_method: The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file.
:param beep_on_exit: Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`.
:param end_conference_on_exit: Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
:param coaching: Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined.
:param call_sid_to_coach: The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`.

:returns: The updated ParticipantInstance
rk   N)rO   update_asyncrm   s                r,   rq    ParticipantInstance.update_async   sR     B [[--#%+#%#9/ . 
 
 	
 
s   (1/1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.Api.V2010.ParticipantInstance {}>joinrE   itemsry   rG   contexts     r,   __repr__ParticipantInstance.__repr__   s6     ((SDNN<P<P<RSS:AA'JJr+   )rF   rE   r0   r2   r5   r6   r1   r7   r8   r9   r;   r4   r:   r>   r<   r=   r?   N)rJ   rL   )rJ   r   )r    r!   r"   r#   objectr-   r   r   strr   r   rB   propertyrO   boolrS   rW   r\   r`   r   unsetr   rl   rq   r   r*   __classcell__rH   s   @r,   r   r      s:    0 #'';'; c3h'; 	';
 '; 3-'; ';R   $ $0D 0#/ &,\\$*LL'-||*0,,+1<<.4ll'-||*0,,,2LL6<ll(.06.
T6\".
 D&L!.
 V$	.

 3;'.
 CK(.
 sF{+.
 V$.
 3;'.
 D&L).
 !&dFl 3.
 f%.
 !f-.
 
.
d &,\\$*LL'-||*0,,+1<<.4ll'-||*0,,,2LL6<ll(.06.
T6\".
 D&L!.
 V$	.

 3;'.
 CK(.
 sF{+.
 V$.
 3;'.
 D&L).
 !&dFl 3.
 f%.
 !f-.
 
.
`K# K Kr+   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\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\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                  \R                  \R                  \R                  \R                  \R                  \R                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\
4S jjrS\4S jrSrU =r$ )rL      r.   r0   r1   r2   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 ParticipantContext

:param version: Version that contains the resource
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to update.
:param conference_sid: The SID of the conference with the participant to update.
:param call_sid: The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID or label of the participant to update. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20.
r@   zQ/Accounts/{account_sid}/Conferences/{conference_sid}/Participants/{call_sid}.jsonNr   rA   rB   rE   ry   _uri)rG   r.   r0   r1   r2   rH   s        r,   rB   ParticipantContext.__init__   sG     	! ', 

 hnn 
nn
	r+   rJ   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )rR   DELETEmethodr?   headers)r   ofrM   rS   r   rG   r   s     r,   rS   ParticipantContext.delete  s1     ))B-}}##8G#TTr+   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)rV   r   r   N)r   r   rM   rW   r   r   s     r,   rW   ParticipantContext.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   r0   r1   r2   r@   )r   r   rM   r\   r   r   rE   rG   r   r/   s      r,   r\   ParticipantContext.fetch0  sv     ))B-.--%%U		7%S"MM}5>>*:;^^J/
 	
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   U R                  S   S	9$  NB7f)
r_   r   r   r   r   Nr0   r1   r2   r@   )r   r   rM   r`   r   r   rE   r   s      r,   r`   ParticipantContext.fetch_asyncF  s      ))B-.11dii 2 
 
 #MM}5>>*:;^^J/
 	
	
s   ABB	ABr:   r;   rb   rc   rd   re   rf   rg   rh   r9   r6   r5   c                    [         R                  " [        R                  " U5      [        R                  " U5      UUUUUU[        R                  " U	5      [        R                  " U
5      [        R                  " U5      US.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XS9n[        U R                  UU R                  S   U R                  S	   U R                  S
   S9$ )rj   MutedHoldHoldUrl
HoldMethodAnnounceUrlAnnounceMethodWaitUrl
WaitMethod
BeepOnExitEndConferenceOnExitCoachingCallSidToCoach!application/x-www-form-urlencodedContent-Typer   r   POSTr   r?   datar   r0   r1   r2   r@   )	r   r   r   boolean_to_stringrM   rl   r   r   rE   rG   r:   r;   rb   rc   rd   re   rf   rg   rh   r9   r6   r5   r   r   r/   s                   r,   rl   ParticipantContext.update^  s    D yy"44U;!33D9#)+"1#)'99,G'0'B'B*( &77A"3
$ ))B-"E.--&&tyyt ' 
 #MM}5>>*:;^^J/
 	
r+   c                 2  #    [         R                  " [        R                  " U5      [        R                  " U5      UUUUUU[        R                  " U	5      [        R                  " U
5      [        R                  " U5      US.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XS9I Sh  vN n[        U R                  UU R                  S	   U R                  S
   U R                  S   S9$  NB7f)rp   r   r   r   r   r   r   r   Nr0   r1   r2   r@   )	r   r   r   r   rM   rq   r   r   rE   r   s                   r,   rq   ParticipantContext.update_async  s
    D yy"44U;!33D9#)+"1#)'99,G'0'B'B*( &77A"3
$ ))B-"E.22tyyt 3 
 
 #MM}5>>*:;^^J/
 	
	
s   CDDADc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rt   ru   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frw   rx   rz   s      r,   r~   .ParticipantContext.__repr__.<locals>.<genexpr>  r   r   z(<Twilio.Api.V2010.ParticipantContext {}>r   r   s     r,   r   ParticipantContext.__repr__  s6     ((SDNN<P<P<RSS9@@IIr+   rE   r   )r    r!   r"   r#   r   r   rB   r   rS   rW   r   r\   r`   r   r   r   r   rl   rq   r   r*   r   r   s   @r,   rL   rL      s   

-0
BE
QT
.
U 
U
D 

* 
,
#6 
4 &,\\$*LL'-||*0,,+1<<.4ll'-||*0,,,2LL6<ll(.06D
T6\"D
 D&L!D
 V$	D

 3;'D
 CK(D
 sF{+D
 V$D
 3;'D
 D&L)D
 !&dFl 3D
 f%D
 !f-D
 
D
P &,\\$*LL'-||*0,,+1<<.4ll'-||*0,,,2LL6<ll(.06D
T6\"D
 D&L!D
 V$	D

 3;'D
 CK(D
 sF{+D
 V$D
 3;'D
 D&L)D
 !&dFl 3D
 f%D
 !f-D
 
D
LJ# J Jr+   rL   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)ParticipantPagei  r/   rJ   c                 b    [        U R                  UU R                  S   U R                  S   S9$ )zY
Build an instance of ParticipantInstance

:param payload: Payload response from the API
r0   r1   r0   r1   )r   rM   rE   )rG   r/   s     r,   get_instanceParticipantPage.get_instance  s4     #MM}5>>*:;	
 	
r+   c                     g)rt   z"<Twilio.Api.V2010.ParticipantPage>r   rN   s    r,   r   ParticipantPage.__repr__       4r+   r   N)r    r!   r"   r#   r   r   r   r   r   r   r*   r   r+   r,   r   r     s*    
DcN 
7J 
4# 4r+   r   c            c       &  ^  \ rS rSrS\S\S\4U 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4.S\S\S\	\\
4   S	\	\\
4   S
\	\\   \
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\   \
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S \	\\
4   S!\	\\
4   S"\	\\
4   S#\	\\   \
4   S$\	\\   \
4   S%\	\\
4   S&\	\\
4   S'\	\\
4   S(\	\\
4   S)\	\\
4   S*\	\\
4   S+\	\\
4   S,\	\\
4   S-\	\\
4   S.\	\\
4   S/\	\\
4   S0\	\\
4   S1\	\\
4   S2\	\\
4   S3\	\\
4   S4\	\\
4   S5\	\\
4   S6\4bS7 jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4.S\S\S\	\\
4   S	\	\\
4   S
\	\\   \
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\   \
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S \	\\
4   S!\	\\
4   S"\	\\
4   S#\	\\   \
4   S$\	\\   \
4   S%\	\\
4   S&\	\\
4   S'\	\\
4   S(\	\\
4   S)\	\\
4   S*\	\\
4   S+\	\\
4   S,\	\\
4   S-\	\\
4   S.\	\\
4   S/\	\\
4   S0\	\\
4   S1\	\\
4   S2\	\\
4   S3\	\\
4   S4\	\\
4   S5\	\\
4   S6\4bS8 jjr\R                  \R                  \R                  S9S94S\	\\
4   S:\	\\
4   S%\	\\
4   S;\\   S<\\   S6\\   4S= jjr\R                  \R                  \R                  S9S94S\	\\
4   S:\	\\
4   S%\	\\
4   S;\\   S<\\   S6\\   4S> jjr\R                  \R                  \R                  S9S94S\	\\
4   S:\	\\
4   S%\	\\
4   S;\\   S<\\   S6\\   4S? jjr\R                  \R                  \R                  S9S94S\	\\
4   S:\	\\
4   S%\	\\
4   S;\\   S<\\   S6\\   4S@ jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\	\\
4   S:\	\\
4   S%\	\\
4   SA\	\\
4   SB\	\\
4   S<\	\\
4   S6\4SC jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\	\\
4   S:\	\\
4   S%\	\\
4   SA\	\\
4   SB\	\\
4   S<\	\\
4   S6\4SD jjrSE\S6\4SF jrSE\S6\4SG jrSH\S6\4SI jrSH\S6\4SJ jrS6\4SK jr SLr!U =r"$ )MParticipantListi  r.   r0   r1   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)a/  
Initialize the ParticipantList

:param version: Version that contains the resource
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to read.
:param conference_sid: The SID of the conference with the participants to read.

r   zF/Accounts/{account_sid}/Conferences/{conference_sid}/Participants.jsonNr   r   )rG   r.   r0   r1   rH   s       r,   rB   ParticipantList.__init__  sD     	! ',
 ]cc 
nn
	r+   from_tostatus_callbackstatus_callback_methodstatus_callback_eventr4   timeoutrecordr:   beepr<   r9   rf   rg   early_mediamax_participantsconference_recordconference_trimconference_status_callback!conference_status_callback_method conference_status_callback_eventrecording_channelsrecording_status_callback recording_status_callback_methodsip_auth_usernamesip_auth_passwordregion$conference_recording_status_callback+conference_recording_status_callback_methodrecording_status_callback_event*conference_recording_status_callback_eventr6   r5   jitter_buffer_sizebyoc	caller_idcall_reasonrecording_track
time_limitmachine_detectionmachine_detection_timeout"machine_detection_speech_threshold&machine_detection_speech_end_threshold!machine_detection_silence_timeoutamd_status_callbackamd_status_callback_methodtrim
call_tokenrJ   c1                    [         R                  " 0 SU_SU_SU_SU_S[        R                  " US 5      _SU_SU_S	[        R                  " U5      _S
[        R                  " U	5      _SU
_S[        R                  " U5      _S[        R                  " U5      _SU_SU_S[        R                  " U5      _SU_SU_0 SU_SU_SU_S[        R                  " US 5      _SU_SU_SU_SU_SU_SU_SU_SU_S [        R                  " US! 5      _S"[        R                  " US# 5      _S$[        R                  " U 5      _S%U!_S&U"_EU#U$U%U&U'U(U)U*U+U,U-U.U/U0S'.E5      n1[         R                  " S(S)05      n2S)U2S('   S*U2S+'   U R
                  R                  S,U R                  U1U2S-9n3[        U R
                  U3U R                  S.   U R                  S/   S09$ )1aP+  
Create the ParticipantInstance

:param from_: The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `from` must also be a phone number. If `to` is sip address, this value of `from` should be a username portion to be used to populate the P-Asserted-Identity header that is passed to the SIP endpoint.
:param to: The phone number, SIP address, or Client identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:name@company.com`. Client identifiers are formatted `client:name`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
:param status_callback: The URL we should call using the `status_callback_method` to send status information to your application.
:param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`.
:param status_callback_event: The conference state changes that should generate a call to `status_callback`. Can be: `initiated`, `ringing`, `answered`, and `completed`. Separate multiple values with a space. The default value is `completed`.
:param label: A label for this participant. If one is supplied, it may subsequently be used to fetch, update or delete the participant.
:param timeout: The number of seconds that we should allow the phone to ring before assuming there is no answer. Can be an integer between `5` and `600`, inclusive. The default value is `60`. We always add a 5-second timeout buffer to outgoing calls, so  value of 10 would result in an actual timeout that was closer to 15 seconds.
:param record: Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`.
:param muted: Whether the agent is muted in the conference. Can be `true` or `false` and the default is `false`.
:param beep: Whether to play a notification beep to the conference when the participant joins. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`.
:param start_conference_on_enter: Whether to start the conference when the participant joins, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference.
:param end_conference_on_exit: Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
:param wait_url: The URL we should call using the `wait_method` for the music to play while participants are waiting for the conference to start. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic).
:param wait_method: The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file.
:param early_media: Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be: `true` or `false` and defaults to `true`.
:param max_participants: The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`.
:param conference_record: Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`.
:param conference_trim: Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`.
:param conference_status_callback: The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored.
:param conference_status_callback_method: The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
:param conference_status_callback_event: The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `modify`, `speaker`, and `announcement`. Separate multiple values with a space. Defaults to `start end`.
:param recording_channels: The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`.
:param recording_status_callback: The URL that we should call using the `recording_status_callback_method` when the recording status changes.
:param recording_status_callback_method: The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
:param sip_auth_username: The SIP username used for authentication.
:param sip_auth_password: The SIP password for authentication.
:param region: The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
:param conference_recording_status_callback: The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available.
:param conference_recording_status_callback_method: The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
:param recording_status_callback_event: The recording state changes that should generate a call to `recording_status_callback`. Can be: `started`, `in-progress`, `paused`, `resumed`, `stopped`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'`.
:param conference_recording_status_callback_event: The conference recording state changes that generate a call to `conference_recording_status_callback`. Can be: `in-progress`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'`
:param coaching: Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined.
:param call_sid_to_coach: The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`.
:param jitter_buffer_size: Jitter buffer size for the connecting participant. Twilio will use this setting to apply Jitter Buffer before participant's audio is mixed into the conference. Can be: `off`, `small`, `medium`, and `large`. Default to `large`.
:param byoc: The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that `byoc` is only meaningful when `to` is a phone number; it will otherwise be ignored. (Beta)
:param caller_id: The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `callerId` must also be a phone number. If `to` is sip address, this value of `callerId` should be a username portion to be used to populate the From header that is passed to the SIP endpoint.
:param call_reason: The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta)
:param recording_track: The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is sent from Twilio. `both` records the audio that is received and sent by Twilio.
:param time_limit: The maximum duration of the call in seconds. Constraints depend on account and configuration.
:param machine_detection: Whether to detect if a human, answering machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if you would like us to return `AnsweredBy` as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine. For more information, see [Answering Machine Detection](https://www.twilio.com/docs/voice/answering-machine-detection).
:param machine_detection_timeout: The number of seconds that we should attempt to detect an answering machine before timing out and sending a voice request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds.
:param machine_detection_speech_threshold: The number of milliseconds that is used as the measuring stick for the length of the speech activity, where durations lower than this value will be interpreted as a human and longer than this value as a machine. Possible Values: 1000-6000. Default: 2400.
:param machine_detection_speech_end_threshold: The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200.
:param machine_detection_silence_timeout: The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000.
:param amd_status_callback: The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
:param amd_status_callback_method: The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
:param trim: Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
:param call_token: A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.

:returns: The created ParticipantInstance
FromToStatusCallbackStatusCallbackMethodStatusCallbackEventc                     U $ r   r   es    r,   <lambda>(ParticipantList.create.<locals>.<lambda>      Qr+   LabelTimeoutRecordr   BeepStartConferenceOnEnterr   r   r   
EarlyMediaMaxParticipantsConferenceRecordConferenceTrimConferenceStatusCallbackConferenceStatusCallbackMethodConferenceStatusCallbackEventc                     U $ r   r   r  s    r,   r  r        r+   RecordingChannelsRecordingStatusCallbackRecordingStatusCallbackMethodSipAuthUsernameSipAuthPasswordRegion!ConferenceRecordingStatusCallback'ConferenceRecordingStatusCallbackMethodRecordingStatusCallbackEventc                     U $ r   r   r  s    r,   r  r        qr+   &ConferenceRecordingStatusCallbackEventc                     U $ r   r   r  s    r,   r  r        !r+   r   r   JitterBufferSizeByocCallerId
CallReasonRecordingTrack	TimeLimitMachineDetectionMachineDetectionTimeoutMachineDetectionSpeechThreshold"MachineDetectionSpeechEndThresholdMachineDetectionSilenceTimeoutAmdStatusCallbackAmdStatusCallbackMethodTrim	CallTokenr   r   r   r   r   r   r0   r1   r   )
r   r   r   mapr   rM   creater   r   rE   4rG   r   r   r   r   r   r4   r   r   r:   r   r<   r9   rf   rg   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r6   r5   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r/   s4                                                       r,   r4  ParticipantList.create"  s   X yy==b= !/= '(>	=
 &y}});(= = 7= )55f== 44U;= = ))*E*E-+=  &y'B'B*(!=& 8'=( k)=* i99+F+=, "#3-=. #$5/=0 !/1=2 +,F3=4 12S5=6 04k27=< $%7==> *+D?=@ 01QA=B "#4C=D "#4E=F &G=H 45YI=J :;fK=L /	3[1M=R 9)-->;S=X I77AY=Z !"3[=\ #$6]=^ %)"1'$5+D3U6\2S%8+E'y=?
@ ))^-PQR"E.--&&tyytW ' 
 #MM}5>>*:;	
 	
r+   c1                   #    [         R                  " 0 SU_SU_SU_SU_S[        R                  " US 5      _SU_SU_S	[        R                  " U5      _S
[        R                  " U	5      _SU
_S[        R                  " U5      _S[        R                  " U5      _SU_SU_S[        R                  " U5      _SU_SU_0 SU_SU_SU_S[        R                  " US 5      _SU_SU_SU_SU_SU_SU_SU_SU_S [        R                  " US! 5      _S"[        R                  " US# 5      _S$[        R                  " U 5      _S%U!_S&U"_EU#U$U%U&U'U(U)U*U+U,U-U.U/U0S'.E5      n1[         R                  " S(S)05      n2S)U2S('   S*U2S+'   U R
                  R                  S,U R                  U1U2S-9I S.h  vN n3[        U R
                  U3U R                  S/   U R                  S0   S19$  N47f)2a_+  
Asynchronously create the ParticipantInstance

:param from_: The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `from` must also be a phone number. If `to` is sip address, this value of `from` should be a username portion to be used to populate the P-Asserted-Identity header that is passed to the SIP endpoint.
:param to: The phone number, SIP address, or Client identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:name@company.com`. Client identifiers are formatted `client:name`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
:param status_callback: The URL we should call using the `status_callback_method` to send status information to your application.
:param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`.
:param status_callback_event: The conference state changes that should generate a call to `status_callback`. Can be: `initiated`, `ringing`, `answered`, and `completed`. Separate multiple values with a space. The default value is `completed`.
:param label: A label for this participant. If one is supplied, it may subsequently be used to fetch, update or delete the participant.
:param timeout: The number of seconds that we should allow the phone to ring before assuming there is no answer. Can be an integer between `5` and `600`, inclusive. The default value is `60`. We always add a 5-second timeout buffer to outgoing calls, so  value of 10 would result in an actual timeout that was closer to 15 seconds.
:param record: Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`.
:param muted: Whether the agent is muted in the conference. Can be `true` or `false` and the default is `false`.
:param beep: Whether to play a notification beep to the conference when the participant joins. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`.
:param start_conference_on_enter: Whether to start the conference when the participant joins, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference.
:param end_conference_on_exit: Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
:param wait_url: The URL we should call using the `wait_method` for the music to play while participants are waiting for the conference to start. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic).
:param wait_method: The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file.
:param early_media: Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be: `true` or `false` and defaults to `true`.
:param max_participants: The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`.
:param conference_record: Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`.
:param conference_trim: Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`.
:param conference_status_callback: The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored.
:param conference_status_callback_method: The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
:param conference_status_callback_event: The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `modify`, `speaker`, and `announcement`. Separate multiple values with a space. Defaults to `start end`.
:param recording_channels: The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`.
:param recording_status_callback: The URL that we should call using the `recording_status_callback_method` when the recording status changes.
:param recording_status_callback_method: The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
:param sip_auth_username: The SIP username used for authentication.
:param sip_auth_password: The SIP password for authentication.
:param region: The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
:param conference_recording_status_callback: The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available.
:param conference_recording_status_callback_method: The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
:param recording_status_callback_event: The recording state changes that should generate a call to `recording_status_callback`. Can be: `started`, `in-progress`, `paused`, `resumed`, `stopped`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'`.
:param conference_recording_status_callback_event: The conference recording state changes that generate a call to `conference_recording_status_callback`. Can be: `in-progress`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'`
:param coaching: Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined.
:param call_sid_to_coach: The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`.
:param jitter_buffer_size: Jitter buffer size for the connecting participant. Twilio will use this setting to apply Jitter Buffer before participant's audio is mixed into the conference. Can be: `off`, `small`, `medium`, and `large`. Default to `large`.
:param byoc: The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that `byoc` is only meaningful when `to` is a phone number; it will otherwise be ignored. (Beta)
:param caller_id: The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `callerId` must also be a phone number. If `to` is sip address, this value of `callerId` should be a username portion to be used to populate the From header that is passed to the SIP endpoint.
:param call_reason: The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta)
:param recording_track: The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is sent from Twilio. `both` records the audio that is received and sent by Twilio.
:param time_limit: The maximum duration of the call in seconds. Constraints depend on account and configuration.
:param machine_detection: Whether to detect if a human, answering machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if you would like us to return `AnsweredBy` as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine. For more information, see [Answering Machine Detection](https://www.twilio.com/docs/voice/answering-machine-detection).
:param machine_detection_timeout: The number of seconds that we should attempt to detect an answering machine before timing out and sending a voice request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds.
:param machine_detection_speech_threshold: The number of milliseconds that is used as the measuring stick for the length of the speech activity, where durations lower than this value will be interpreted as a human and longer than this value as a machine. Possible Values: 1000-6000. Default: 2400.
:param machine_detection_speech_end_threshold: The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200.
:param machine_detection_silence_timeout: The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000.
:param amd_status_callback: The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
:param amd_status_callback_method: The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
:param trim: Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
:param call_token: A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.

:returns: The created ParticipantInstance
r   r   r   r   r   c                     U $ r   r   r  s    r,   r  .ParticipantList.create_async.<locals>.<lambda>R  r  r+   r  r  r	  r   r
  r  r   r   r   r  r  r  r  r  r  r  c                     U $ r   r   r  s    r,   r  r9  h  r  r+   r  r  r  r  r  r  r  r  r  c                     U $ r   r   r  s    r,   r  r9  s  r  r+   r   c                     U $ r   r   r  s    r,   r  r9  v  r"  r+   r   r   r#  r$  r   r   r   r   r   r   Nr0   r1   r   )
r   r   r   r3  r   rM   create_asyncr   r   rE   r5  s4                                                       r,   r=  ParticipantList.create_async  s    X yy==b= !/= '(>	=
 &y}});(= = 7= )55f== 44U;= = ))*E*E-+=  &y'B'B*(!=& 8'=( k)=* i99+F+=, "#3-=. #$5/=0 !/1=2 +,F3=4 12S5=6 04k27=< $%7==> *+D?=@ 01QA=B "#4C=D "#4E=F &G=H 45YI=J :;fK=L /	3[1M=R 9)-->;S=X I77AY=Z !"3[=\ #$6]=^ %)"1'$5+D3U6\2S%8+E'y=?
@ ))^-PQR"E.22tyytW 3 
 
 #MM}5>>*:;	
 	
	
s   F+G$-G".5G$Nr;   limit	page_sizec                     U R                   R                  XE5      nU R                  XX6S   S9nU R                   R                  XvS   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 bool muted: Whether to return only participants that are muted. Can be: `true` or `false`.
:param bool hold: Whether to return only participants that are on hold. Can be: `true` or `false`.
:param bool coaching: Whether to return only participants who are coaching another call. Can be: `true` or `false`.
: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;   r6   r@  r?  )rM   read_limitspagestreamrG   r:   r;   r6   r?  r@  limitsrD  s           r,   rE  ParticipantList.stream  sP    4 **5<yyXAT  
 }}##D/::r+   c                    #    U R                   R                  XE5      nU R                  XX6S   S9I Sh  vN nU R                   R                  XvS   5      $  N"7f)aI  
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 bool muted: Whether to return only participants that are muted. Can be: `true` or `false`.
:param bool hold: Whether to return only participants that are on hold. Can be: `true` or `false`.
:param bool coaching: Whether to return only participants who are coaching another call. Can be: `true` or `false`.
: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@  rB  Nr?  )rM   rC  
page_asyncstream_asyncrF  s           r,   rK  ParticipantList.stream_async  s]     4 **5<__XAT % 
 
 }}))$w@@	
s   2AA#Ac           
      :    [        U R                  UUU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 bool muted: Whether to return only participants that are muted. Can be: `true` or `false`.
:param bool hold: Whether to return only participants that are on hold. Can be: `true` or `false`.
:param bool coaching: Whether to return only participants who are coaching another call. Can be: `true` or `false`.
: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;   r6   r?  r@  )listrE  )rG   r:   r;   r6   r?  r@  s         r,   rO  ParticipantList.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 ParticipantInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param bool muted: Whether to return only participants that are muted. Can be: `true` or `false`.
:param bool hold: Whether to return only participants that are on hold. Can be: `true` or `false`.
:param bool coaching: Whether to return only participants who are coaching another call. Can be: `true` or `false`.
: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  N)rK  )rG   r:   r;   r6   r?  r@  r   s          r,   
list_asyncParticipantList.list_async  sZ     6 '+&7&7!# '8 ' ! !	
 	
 !	
 		
 	
s0   </<731
37<37<
page_tokenpage_numberc           	      x   [         R                  " [        R                  " U5      [        R                  " U5      [        R                  " U5      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      $ )am  
Retrieve a single page of ParticipantInstance records from the API.
Request is executed immediately

:param muted: Whether to return only participants that are muted. Can be: `true` or `false`.
:param hold: Whether to return only participants that are on hold. Can be: `true` or `false`.
:param coaching: Whether to return only participants who are coaching another call. Can be: `true` or `false`.
: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   	PageTokenr   PageSizer   r   r   r   r   r   r?   paramsr   )	r   r   r   r   rM   rD  r   r   rE   
rG   r:   r;   r6   rT  rU  r@  r   r   responses
             r,   rD  ParticipantList.page%  s    , yy"44U;!33D9%77A'#%	
 ))^-PQR.==%%dii & 
 t}}hGGr+   c           	        #    [         R                  " [        R                  " U5      [        R                  " U5      [        R                  " U5      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)	a|  
Asynchronously retrieve a single page of ParticipantInstance records from the API.
Request is executed immediately

:param muted: Whether to return only participants that are muted. Can be: `true` or `false`.
:param hold: Whether to return only participants that are on hold. Can be: `true` or `false`.
:param coaching: Whether to return only participants who are coaching another call. Can be: `true` or `false`.
: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
rW  r   r   r   r   r   rZ  N)	r   r   r   r   rM   rJ  r   r   rE   r\  s
             r,   rJ  ParticipantList.page_asyncO  s     , yy"44U;!33D9%77A'#%	
 ))^-PQR.11dii 2 
 
 t}}hGG
s   BC!C"%C
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   )rM   domaintwiliorequestr   rE   rG   ra  r]  s      r,   get_pageParticipantList.get_pagey  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)rM   rc  rd  request_asyncr   rE   rf  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r2   c                 b    [        U R                  U R                  S   U R                  S   US9$ a  
Constructs a ParticipantContext

:param call_sid: The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID or label of the participant to update. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20.
r0   r1   r@   rL   rM   rE   rG   r2   s     r,   rC   ParticipantList.get  4     "MM}5>>*:;	
 	
r+   c                 b    [        U R                  U R                  S   U R                  S   US9$ rn  ro  rp  s     r,   __call__ParticipantList.__call__  rr  r+   c                     g)rt   z"<Twilio.Api.V2010.ParticipantList>r   rN   s    r,   r   ParticipantList.__repr__  r   r+   r   )#r    r!   r"   r#   r   r   rB   r   r   r   r   r   intr   r   r4  r=  r   r	   rE  r
   rK  rO  rR  r   rD  rJ  rg  rk  rL   rC   rt  r   r*   r   r   s   @r,   r   r     s   
 
c 
3 
0 /5ll5;\\:@,,$*LL&,ll&,ll%+\\#)<<9?6<ll'-||*0,,+1<</5||06.4ll9?@FEK\\178>?E||0606%+\\CI<<JP,,DJLL LL(.0617#)<<(.*0,,.4ll)/068>AGEK\\@F28,,9?#)<<)/g{
{
 {
 sF{+	{

 !&c6k 2{
  %T#Y%67{
 S&[!{
 sF{#{
 dFl#{
 T6\"{
 CK {
 $)v#6{
 !&dFl 3{
 V${
 3;'{
  4<(!{
"  V,#{
$ !f-%{
& sF{+'{
( %*#v+$6){
* ,1f+=+{
, +0S	60A*B-{
. "#v+./{
0 $)f#51{
2 +0V*<3{
4 !f-5{
6 !f-7{
8 c6k"9{
: /4CK.@;{
< 6;3;5G={
> */tCy&/@)A?{
@ 5:Iv5
A{
F f%G{
H !f-I{
J "#v+.K{
L CK M{
N f%O{
P 3;'Q{
R sF{+S{
T #v+&U{
V !f-W{
X $)f#5Y{
Z -2#v+,>[{
\ 16c6k0B]{
^ ,1f+=_{
` #3;/a{
b %*#v+$6c{
d CK e{
f #v+&g{
h 
i{
B /5ll5;\\:@,,$*LL&,ll&,ll%+\\#)<<9?6<ll'-||*0,,+1<</5||06.4ll9?@FEK\\178>?E||0606%+\\CI<<JP,,DJLL LL(.0617#)<<(.*0,,.4ll)/068>AGEK\\@F28,,9?#)<<)/g{
{
 {
 sF{+	{

 !&c6k 2{
  %T#Y%67{
 S&[!{
 sF{#{
 dFl#{
 T6\"{
 CK {
 $)v#6{
 !&dFl 3{
 V${
 3;'{
  4<(!{
"  V,#{
$ !f-%{
& sF{+'{
( %*#v+$6){
* ,1f+=+{
, +0S	60A*B-{
. "#v+./{
0 $)f#51{
2 +0V*<3{
4 !f-5{
6 !f-7{
8 c6k"9{
: /4CK.@;{
< 6;3;5G={
> */tCy&/@)A?{
@ 5:Iv5
A{
F f%G{
H !f-I{
J "#v+.K{
L CK M{
N f%O{
P 3;'Q{
R sF{+S{
T #v+&U{
V !f-W{
X $)f#5Y{
Z -2#v+,>[{
\ 16c6k0B]{
^ ,1f+=_{
` #3;/a{
b %*#v+$6c{
d CK e{
f #v+&g{
h 
i{
~ &,\\$*LL(.##';T6\"; D&L!; f%	;
 }; C=; 
%	&;F &,\\$*LL(.##'AT6\"A D&L!A f%	A
 }A C=A 
*	+AF &,\\$*LL(.##'!
T6\"!
 D&L!!
 f%	!

 }!
 C=!
 
!	"!
J &,\\$*LL(.##'"
T6\""
 D&L!"
 f%	"

 }"
 C="
 
!	""
L &,\\$*LL(.)/*0,,(.(HT6\"(H D&L!(H f%	(H
 #v+&(H 3;'(H f%(H 
(HX &,\\$*LL(.)/*0,,(.(HT6\"(H D&L!(H f%	(H
 #v+&(H 3;'(H f%(H 
(HT
H3 
H? 
H
Hs 
H 
H
C 
$6 

 
); 
4# 4 4r+   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rL   r   r   r   r+   r,   <module>r     sj     L L L 6 6 8 : 2 ' !aK* aKHtJ tJn4d 40e
4l e
4r+   