
    g                         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 - Chat
 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                   ,  ^  \ 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\R                  4S\S\4   S
\4S jjr\R                  4S\S\4   S
\4S jjrSS jrSS jr\R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\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                  4S\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$ )MemberInstance   c                       \ rS rSrSrSrSrg)!MemberInstance.WebhookEnabledType   truefalse N)__name__
__module____qualname____firstlineno__TRUEFALSE__static_attributes__r       r/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/chat/v2/service/channel/member.pyWebhookEnabledTyper      s    r#   r%   versionpayloadservice_sidchannel_sid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        [        R                  " UR                  S5      5      U l
        [        R                  " UR                  S5      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UU=(       d    U R                  S.U l        S U l        g )Nr*   account_sidr)   r(   identitydate_createddate_updatedrole_sidlast_consumed_message_indexlast_consumption_timestampurl
attributesr(   r)   r*   )super__init__getr*   r,   r)   r(   r-   r   iso8601_datetimer.   r/   r0   integerr1   r2   r3   r4   	_solution_context)selfr&   r'   r(   r)   r*   	__class__s         r$   r7   MemberInstance.__init__.   s@    	!")++e"4*1++m*D*1++m*D*1++m*D'.{{:'>0;0L0LKK'1
 1<0L0LKK'1
 (/{{:'>:E:M:MKK56;
( ((5Q)RS 	' #*++e"4)0\)B '&?$((

 26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: MemberContext for this MemberInstance
r(   r)   r*   r5   )r<   MemberContext_versionr;   r=   s    r$   _proxyMemberInstance._proxyT   sQ     == ) NN=9 NN=9NN5)	DM }}r#   x_twilio_webhook_enabledr   c                 4    U R                   R                  US9$ )
Deletes the MemberInstance

:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header

:returns: True if delete succeeds, False otherwise
rG   )rE   deleter=   rG   s     r$   rK   MemberInstance.deletee   s#     {{!!%= " 
 	
r#   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)
Asynchronous coroutine that deletes the MemberInstance

:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header

:returns: True if delete succeeds, False otherwise
rJ   N)rE   delete_asyncrL   s     r$   rP   MemberInstance.delete_asyncv   s0      [[--%= . 
 
 	
 
s   &$&c                 6    U R                   R                  5       $ )A
Fetch the MemberInstance


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


:returns: The fetched MemberInstance
N)rE   fetch_asyncrD   s    r$   rX   MemberInstance.fetch_async   s       [[,,....s   '%'r0   r1   r2   r.   r/   r4   c           
      @    U R                   R                  UUUUUUUS9$ )  
Update the MemberInstance

:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
:param role_sid: The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource).
:param last_consumed_message_index: The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) that the Member has read within the [Channel](https://www.twilio.com/docs/chat/channels).
:param last_consumption_timestamp: The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels).
:param date_created: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service.  Note that this parameter should only be used when a Member is being recreated from a backup/separate source.
:param date_updated: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated.
:param attributes: A valid JSON string that contains application-specific data.

:returns: The updated MemberInstance
rG   r0   r1   r2   r.   r/   r4   )rE   updater=   rG   r0   r1   r2   r.   r/   r4   s           r$   r]   MemberInstance.update   s5    2 {{!!%=(C'A%%! " 
 	
r#   c           
      \   #    U R                   R                  UUUUUUUS9I Sh  vN $  N7f)  
Asynchronous coroutine to update the MemberInstance

:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
:param role_sid: The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource).
:param last_consumed_message_index: The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) that the Member has read within the [Channel](https://www.twilio.com/docs/chat/channels).
:param last_consumption_timestamp: The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels).
:param date_created: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service.  Note that this parameter should only be used when a Member is being recreated from a backup/separate source.
:param date_updated: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated.
:param attributes: A valid JSON string that contains application-specific data.

:returns: The updated MemberInstance
r\   N)rE   update_asyncr^   s           r$   rb   MemberInstance.update_async   sB     2 [[--%=(C'A%%! . 
 
 	
 
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>*MemberInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z"<Twilio.Chat.V2.MemberInstance {}>joinr;   itemsrj   r=   contexts     r$   __repr__MemberInstance.__repr__   s6     ((SDNN<P<P<RSS3::7CCr#   )r<   r;   r,   r4   r)   r.   r/   r-   r1   r2   r0   r(   r*   r3   N)r@   rB   )r@   r   )r   r   r   r   objectr%   r   r   strr   r   r7   propertyrE   r   unsetr   boolrK   rP   rT   rX   intr   r]   rb   rx   r"   __classcell__r>   s   @r$   r   r      s   V * "$6$6 c3h$6 	$6
 $6 c]$6 $6L  ( LL	
"'/7#


 

* LL	
"'/7#


 

"#/ LL'-||:@,,>Dll0606)/!
"'/7#
!

 V$!
 &+3;%7!
 %*(F*:$;!
 Hf,-!
 Hf,-!
 #v+&!
 
!
N LL'-||:@,,>Dll0606)/!
"'/7#
!

 V$!
 &+3;%7!
 %*(F*:$;!
 Hf,-!
 Hf,-!
 #v+&!
 
!
FD# D Dr#   r   c                     ^  \ rS rSrS\S\S\S\4U 4S jjr\R                  4S\	S\
4   S	\4S
 jjr\R                  4S\	S\
4   S	\4S jjrS	\4S jrS	\4S jr\R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\	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                  4S\	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$ )rB      r&   r(   r)   r*   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 MemberContext

:param version: Version that contains the resource
:param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Member resource in.
:param channel_sid: The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`.
:param sid: The SID of the Member resource to update. This value can be either the Member's `sid` or its `identity` value.
r5   z</Services/{service_sid}/Channels/{channel_sid}/Members/{sid}Nr   r6   r7   r;   rj   _uri)r=   r&   r(   r)   r*   r>   s        r$   r7   MemberContext.__init__   sJ     	! '&
 KQQ .. 		r#   rG   r   r@   c                     [         R                  " SU05      n[         R                  " 0 5      nU R                  R                  SU R                  US9$ )rI   X-Twilio-Webhook-EnabledDELETEmethoduriheaders)r   ofrC   rK   r   r=   rG   r   s      r$   rK   MemberContext.delete  sL     ))*,D
 ))B-}}##8G#TTr#   c                    #    [         R                  " SU05      n[         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)rO   r   r   r   N)r   r   rC   rP   r   r   s      r$   rP   MemberContext.delete_async  s`      ))*,D
 ))B-]]//G 0 
 
 	
 
s   A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$ )	rS   application/jsonAcceptGETr   r(   r)   r*   r5   )r   r   rC   rT   r   r   r;   r=   r   r'   s      r$   rT   MemberContext.fetch2  su     ))B-.--%%U		7%SMM}5}5u%
 	
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)
rW   r   r   r   r   Nr(   r)   r*   r5   )r   r   rC   rX   r   r   r;   r   s      r$   rX   MemberContext.fetch_asyncH  s      ))B-.11dii 2 
 
 MM}5}5u%
 	
	
s   ABB	ABr0   r1   r2   r.   r/   r4   c           	          [         R                  " UU[        R                  " U5      [        R                  " U5      [        R                  " U5      US.5      n[         R                  " 0 5      n	U[         R                  L d   [        U[        5      (       a  U(       a  XS'   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$ )r[   RoleSidLastConsumedMessageIndexLastConsumptionTimestampDateCreatedDateUpdated
Attributesr   !application/x-www-form-urlencodedContent-Typer   r   POSTr   r   datar   r(   r)   r*   r5   )r   r   r   r9   r~   
isinstancer|   rC   r]   r   r   r;   r=   rG   r0   r1   r2   r.   r/   r4   r   r   r'   s              r$   r]   MemberContext.update`  s    4 yy#,G,5,F,F.-  )99,G(99,G(	
 ))B- %43S990 3K./"E.--&&tyyt ' 
 MM}5}5u%
 	
r#   c           	      <  #    [         R                  " UU[        R                  " U5      [        R                  " U5      [        R                  " U5      US.5      n[         R                  " 0 5      n	U[         R                  L d   [        U[        5      (       a  U(       a  XS'   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)ra   r   r   r   r   r   r   r   r   Nr(   r)   r*   r5   )r   r   r   r9   r~   r   r|   rC   rb   r   r   r;   r   s              r$   rb   MemberContext.update_async  s    4 yy#,G,5,F,F.-  )99,G(99,G(	
 ))B- %43S990 3K./"E.22tyyt 3 
 
 MM}5}5u%
 	
	
s   CDDADc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )re   rf   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frh   ri   rk   s      r$   ro   )MemberContext.__repr__.<locals>.<genexpr>  rq   rr   z!<Twilio.Chat.V2.MemberContext {}>rs   rv   s     r$   rx   MemberContext.__repr__  s6     ((SDNN<P<P<RSS299'BBr#   r;   r   )r   r   r   r   r   r|   r7   r   r~   r   r{   r   rK   rP   r   rT   rX   r   r   r]   rb   rx   r"   r   r   s   @r$   rB   rB      sH   
 
c 
 
RU 
6 LL	U"'/7#
U
 
U6 LL	
"'/7#


 

2
~ 
,
> 
8 LL'-||:@,,>Dll0606)/?
"'/7#
?

 V$?
 &+3;%7?
 %*(F*:$;?
 Hf,-?
 Hf,-?
 #v+&?
 
?
J LL'-||:@,,>Dll0606)/?
"'/7#
?

 V$?
 &+3;%7?
 %*(F*:$;?
 Hf,-?
 Hf,-?
 #v+&?
 
?
BC# C Cr#   rB   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)
MemberPagei  r'   r@   c                 b    [        U R                  UU R                  S   U R                  S   S9$ )zT
Build an instance of MemberInstance

:param payload: Payload response from the API
r(   r)   r(   r)   )r   rC   r;   )r=   r'   s     r$   get_instanceMemberPage.get_instance  s3     MM}5}5	
 	
r#   c                     g)re   z<Twilio.Chat.V2.MemberPage>r   rD   s    r$   rx   MemberPage.__repr__       -r#   r   N)r   r   r   r   r   r|   r   r   r   rx   r"   r   r#   r$   r   r     s)    
DcN 
~ 
-# -r#   r   c                   j  ^  \ rS rSrS\S\S\4U 4S jj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 jj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 jjr\R                  SS4S\	\\   \
4   S\\   S\\   S\\   4S jjr\R                  SS4S\	\\   \
4   S\\   S\\   S\\   4S jjr\R                  SS4S\	\\   \
4   S\\   S\\   S\\   4S jjr\R                  SS4S\	\\   \
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  4S\	\\   \
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4
S jjr\R                  \R                  \R                  \R                  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"$ )%
MemberListi  r&   r(   r)   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)a  
Initialize the MemberList

:param version: Version that contains the resource
:param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Member resources from.
:param channel_sid: The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`.

r   z6/Services/{service_sid}/Channels/{channel_sid}/MembersNr   r   )r=   r&   r(   r)   r>   s       r$   r7   MemberList.__init__  sD     	! '&
 MSS 
nn
	r#   r-   rG   r   r0   r1   r2   r.   r/   r4   r@   c	           
         [         R                  " UUU[        R                  " U5      [        R                  " U5      [        R                  " U5      US.5      n	[         R                  " USS.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
   S9$ )a  
Create the MemberInstance

:param identity: The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info.
:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
:param role_sid: The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource).
:param last_consumed_message_index: The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. This parameter should only be used when recreating a Member from a backup/separate source.
:param last_consumption_timestamp: The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels).
:param date_created: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service.  Note that this parameter should only be used when a Member is being recreated from a backup/separate source.
:param date_updated: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used when a Member is being recreated from a backup/separate source and where a Member was previously updated.
:param attributes: A valid JSON string that contains application-specific data.

:returns: The created MemberInstance
Identityr   r   r   r   r   r   r   r   r   r   r   r   r   r   r(   r)   r   )	r   r   r   r9   rC   creater   r   r;   r=   r-   rG   r0   r1   r2   r.   r/   r4   r   r   r'   s               r$   r   MemberList.create  s    8 yy$#,G,5,F,F.-  )99,G(99,G(

 )),D C
 #F.--&&tyyt ' 
 MM}5}5	
 	
r#   c	           
        #    [         R                  " UUU[        R                  " U5      [        R                  " U5      [        R                  " U5      US.5      n	[         R                  " USS.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   S9$  N47f)a  
Asynchronously create the MemberInstance

:param identity: The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info.
:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
:param role_sid: The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource).
:param last_consumed_message_index: The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. This parameter should only be used when recreating a Member from a backup/separate source.
:param last_consumption_timestamp: The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels).
:param date_created: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service.  Note that this parameter should only be used when a Member is being recreated from a backup/separate source.
:param date_updated: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used when a Member is being recreated from a backup/separate source and where a Member was previously updated.
:param attributes: A valid JSON string that contains application-specific data.

:returns: The created MemberInstance
r   r   r   r   r   r   r   r   Nr(   r)   r   )	r   r   r   r9   rC   create_asyncr   r   r;   r   s               r$   r   MemberList.create_asyncY  s     8 yy$#,G,5,F,F.-  )99,G(99,G(

 )),D C
 #F.22tyyt 3 
 
 MM}5}5	
 	
	
s   B&C(C)5CNlimit	page_sizec                     U R                   R                  X#5      nU R                  XS   S9nU R                   R                  XTS   5      $ )a  
Streams MemberInstance 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 List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
:param limit: Upper limit for the number of records to return. stream()
              guarantees to never return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, stream() will attempt to read the
                  limit with the most efficient page size, i.e. min(limit, 1000)

:returns: Generator that will yield up to limit results
r   r-   r   r   )rC   read_limitspagestreamr=   r-   r   r   limitsr   s         r$   r   MemberList.stream  sF    , **5<yy([6IyJ}}##D/::r#   c                    #    U R                   R                  X#5      nU R                  XS   S9I Sh  vN nU R                   R                  XTS   5      $  N"7f)a  
Asynchronously streams MemberInstance 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 List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
: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   )rC   r   
page_asyncstream_asyncr   s         r$   r   MemberList.stream_async  sR     , **5<__hBU_VV}}))$w@@ Ws   1AA#Ac                 6    [        U R                  UUUS95      $ )a  
Lists MemberInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
: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   r   )listr   )r=   r-   r   r   s       r$   r   MemberList.list  s+    * KK!#  
 	
r#   c                 x   #    U R                  UUUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)a  
Asynchronously lists MemberInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
:param limit: Upper limit for the number of records to return. list() guarantees
              never to return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, list() will attempt to read the limit
                  with the most efficient page size, i.e. min(limit, 1000)

:returns: list that will contain up to limit results
r   N)r   )r=   r-   r   r   records        r$   
list_asyncMemberList.list_async  sT     . '+&7&7!# '8 ' ! !
 
 !
 	
 
s0   :-:51/
15:15:
page_tokenpage_numberc                 (   [         R                  " [        R                  " US 5      UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XVS9n[        U R                  XpR                  5      $ )	a  
Retrieve a single page of MemberInstance records from the API.
Request is executed immediately

:param identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
: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 MemberInstance
c                     U $ rz   r   es    r$   <lambda>!MemberList.page.<locals>.<lambda>      ar#   r   	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )	r   r   r   maprC   r   r   r   r;   r=   r-   r   r   r   r   r   responses           r$   r   MemberList.page	  s    $ yy%MM(K@'#%	
 ))^-PQR.==%%dii & 
 $-->>BBr#   c                 D  #    [         R                  " [        R                  " US 5      UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XVS9I S	h  vN n[        U R                  XpR                  5      $  N$7f)
a#  
Asynchronously retrieve a single page of MemberInstance records from the API.
Request is executed immediately

:param identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
: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 MemberInstance
c                     U $ rz   r   r   s    r$   r   'MemberList.page_async.<locals>.<lambda>A  r   r#   r   r   r   r   r   r   r   N)	r   r   r   r   rC   r   r   r   r;   r   s           r$   r   MemberList.page_async-  s     $ yy%MM(K@'#%	
 ))^-PQR.11dii 2 
 
 $-->>BB
s   A7B 9B:%B 
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )z
Retrieve a specific page of MemberInstance records from the API.
Request is executed immediately

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

:returns: Page of MemberInstance
r   )rC   domaintwiliorequestr   r;   r=   r   r   s      r$   get_pageMemberList.get_pageQ  s;     ==''..66ujI$-->>BBr#   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 MemberInstance records from the API.
Request is executed immediately

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

:returns: Page of MemberInstance
r   N)rC   r   r   request_asyncr   r;   r   s      r$   get_page_asyncMemberList.get_page_async]  sG      --44BB5*UU$-->>BB Vs   4AA%Ar*   c                 b    [        U R                  U R                  S   U R                  S   US9$ z
Constructs a MemberContext

:param sid: The SID of the Member resource to update. This value can be either the Member's `sid` or its `identity` value.
r(   r)   r5   rB   rC   r;   r=   r*   s     r$   r8   MemberList.geti  3     MM}5}5	
 	
r#   c                 b    [        U R                  U R                  S   U R                  S   US9$ r  r  r  s     r$   __call__MemberList.__call__v  r  r#   c                     g)re   z<Twilio.Chat.V2.MemberList>r   rD   s    r$   rx   MemberList.__repr__  r   r#   r   )#r   r   r   r   r   r|   r7   r   r~   r   r{   r   r   r   r   r   r   r   r	   r   r
   r   r   r   r   r   r   r   r  rB   r8   r
  rx   r"   r   r   s   @r$   r   r     s   
 
c 
 
2 LL'-||:@,,>Dll0606)/=
=
 #(/7#
=
 V$=
 &+3;%7=
 %*(F*:$;=
 Hf,-=
 Hf,-=
 #v+&=
 
=
H LL'-||:@,,>Dll0606)/=
=
 #(/7#
=
 V$=
 &+3;%7=
 %*(F*:$;=
 Hf,-=
 Hf,-=
 #v+&=
 
=
B .4\\##'	;S	6)*; }; C=	;
 
.	!;: .4\\##'	AS	6)*A }A C=	A
 
~	&A: .4\\##'	
S	6)*
 }
 C=	

 
n	
> .4\\##'	
S	6)*
 }
 C=	

 
n	
@ .4\\)/*0,,(."CS	6)*"C #v+&"C 3;'	"C
 f%"C 
"CL .4\\)/*0,,(."CS	6)*"C #v+&"C 3;'	"C
 f%"C 
"CH
C3 
C: 
C
Cs 
Cz 
C
s 
} 

C 
M 
-# - -r#   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   rB   r   r   r   r#   r$   <module>r     sj     L L L 6 6 8 : 2 ' !MD% MD`@CO @CF- -0E- E-r#   