
    gM                         S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
JrJr  SSKJr  SSKJr  SSKJr  SSKJr  SS	KJr   " S
 S\5      r " S S\5      r " S S\5      r " S S\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - 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values)InstanceContext)InstanceResource)ListResource)Version)Pagec                     ^  \ rS rSrSr SS\S\\\4   S\S\S\	\   4
U 4S jjjr
\SS
 j5       rSS jrSS jr\R                   4S\S\\\4   S	S 4S jjr\R                   4S\S\\\4   S	S 4S jjrS	\4S jrSrU =r$ )MemberInstance   a  
:ivar call_sid: The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Member resource is associated with.
:ivar date_enqueued: The date that the member was enqueued, given in RFC 2822 format.
:ivar position: This member's current position in the queue.
:ivar uri: The URI of the resource, relative to `https://api.twilio.com`.
:ivar wait_time: The number of seconds the member has been in the queue.
:ivar queue_sid: The SID of the Queue the member is in.
versionpayloadaccount_sid	queue_sidcall_sidc                   > [         TU ]  U5        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
        UR                  S5      U l        UUU=(       d    U R                  S.U l        S U l        g )Nr   date_enqueuedpositionuri	wait_timer   r   r   r   )super__init__getr   r   rfc2822_datetimer   integerr   r   r   r   	_solution_context)selfr   r   r   r   r   	__class__s         r/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/api/v2010/account/queue/member.pyr!   MemberInstance.__init__#   s     	!'.{{:'>1<1M1MKK(2
 (3':':7;;z;R'S")++e"4(3(;(;GKK<T(U(/K(@ '" 1DMM

 26    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   r   )r&   MemberContext_versionr%   r'   s    r)   _proxyMemberInstance._proxy=   sQ     == ) NN=9..5
3	DM }}r+   c                 6    U R                   R                  5       $ )A
Fetch the MemberInstance


:returns: The fetched MemberInstance
)r1   fetchr0   s    r)   r5   MemberInstance.fetchN   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)r1   fetch_asyncr0   s    r)   r9   MemberInstance.fetch_asyncW   s       [[,,....   '%'urlmethodc                 6    U R                   R                  UUS9$ )5  
Update the MemberInstance

:param url: The absolute URL of the Queue resource.
:param method: How to pass the update request data. Can be `GET` or `POST` and the default is `POST`. `POST` sends the data as encoded form data and `GET` sends the data as query parameters.

:returns: The updated MemberInstance
r<   r=   )r1   updater'   r<   r=   s      r)   rA   MemberInstance.update`   s&     {{!! " 
 	
r+   c                 R   #    U R                   R                  UUS9I Sh  vN $  N7f)O  
Asynchronous coroutine to update the MemberInstance

:param url: The absolute URL of the Queue resource.
:param method: How to pass the update request data. Can be `GET` or `POST` and the default is `POST`. `POST` sends the data as encoded form data and `GET` sends the data as query parameters.

:returns: The updated MemberInstance
r@   N)r1   update_asyncrB   s      r)   rF   MemberInstance.update_asyncp   s3      [[-- . 
 
 	
 
r;   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.Api.V2010.MemberInstance {}>joinr%   itemsrN   r'   contexts     r)   __repr__MemberInstance.__repr__   s6     ((SDNN<P<P<RSS5<<WEEr+   )r&   r%   r   r   r   r   r   r   )N)r,   r.   )r,   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r!   propertyr1   r5   r9   r   unsetr   objectrA   rF   r\   __static_attributes____classcell__r(   s   @r)   r   r      s     #'66 c3h6 	6
 6 3-6 64   #/ 6<\\

 %c6k 2
	
" 6<\\

 %c6k 2
	
 F# F F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	\
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rU =r$ )r.      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 account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to update.
:param queue_sid: The SID of the Queue in which to find the members to update.
:param call_sid: The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to update.
r   zB/Accounts/{account_sid}/Queues/{queue_sid}/Members/{call_sid}.jsonN r    r!   r%   rN   _uri)r'   r   r   r   r   r(   s        r)   r!   MemberContext.__init__   sJ     	! '" 
 QWW .. 		r+   r,   c                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   U R                  S   U R                  S   S9$ )	r4   application/jsonAcceptGETr=   r   headersr   r   r   r   )r   ofr/   r5   ro   r   r%   r'   rv   r   s      r)   r5   MemberContext.fetch   su     ))B-.--%%U		7%SMM}5nn[1^^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)
r8   rr   rs   rt   ru   Nr   r   r   r   )r   rw   r/   r9   ro   r   r%   rx   s      r)   r9   MemberContext.fetch_async   s      ))B-.11dii 2 
 
 MM}5nn[1^^J/
 	
	
s   ABB	ABr<   r=   c                 :   [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X4S9n[        U R                  UU R                  S   U R                  S	   U R                  S
   S9$ )r?   UrlMethod!application/x-www-form-urlencodedContent-Typerr   rs   POSTr=   r   datarv   r   r   r   r   )r   rw   r/   rA   ro   r   r%   r'   r<   r=   r   rv   r   s         r)   rA   MemberContext.update   s     yy 
 ))B-"E.--&&tyyt ' 
 MM}5nn[1^^J/
 	
r+   c                 V  #    [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X4S9I Sh  vN n[        U R                  UU R                  S	   U R                  S
   U R                  S   S9$  NB7f)rE   r}   r   r   rr   rs   r   r   Nr   r   r   r   )r   rw   r/   rF   ro   r   r%   r   s         r)   rF   MemberContext.update_async   s      yy 
 ))B-"E.22tyyt 3 
 
 MM}5nn[1^^J/
 	
	
s   A"B)$B'%AB)c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rI   rJ   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frL   rM   rO   s      r)   rS   )MemberContext.__repr__.<locals>.<genexpr>!  rU   rV   z#<Twilio.Api.V2010.MemberContext {}>rW   rZ   s     r)   r\   MemberContext.__repr__  s6     ((SDNN<P<P<RSS4;;GDDr+   r%   ro   )r^   r_   r`   ra   r   rc   r!   r   r5   r9   r   re   r   rf   rA   rF   r\   rg   rh   ri   s   @r)   r.   r.      s    

-0
=@
LO
2
~ 
,
> 
2 6<\\"
"
 %c6k 2"
	"
J 6<\\"
"
 %c6k 2"
	"
HE# E Er+   r.   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   r/   r%   )r'   r   s     r)   get_instanceMemberPage.get_instance'  s3     MM}5nn[1	
 	
r+   c                     g)rI   z<Twilio.Api.V2010.MemberPage>rm   r0   s    r)   r\   MemberPage.__repr__4       /r+   rm   N)r^   r_   r`   ra   r   rc   r   r   r   r\   rg   rm   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  SS\\   S\\   S\	\
   4S	 jjr  SS\\   S\\   S\\
   4S
 jjr  SS\\   S\\   S\\
   4S jjr  SS\\   S\\   S\\
   4S jjr\R$                  \R$                  \R$                  4S\\\4   S\\\4   S\\\4   S\4S jjr\R$                  \R$                  \R$                  4S\\\4   S\\\4   S\\\4   S\4S jjrS\S\4S jrS\S\4S jrS\S\4S jrS\S\4S jrS\4S jrSrU =r$ )
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 account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to read.
:param queue_sid: The SID of the Queue in which to find the members

r   z7/Accounts/{account_sid}/Queues/{queue_sid}/Members.jsonNrm   rn   )r'   r   r   r   r(   s       r)   r!   MemberList.__init__?  sD     	! '"
 NTT 
nn
	r+   limit	page_sizer,   c                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams 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 limit: Upper limit for the number of records to return. stream()
              guarantees to never return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, stream() will attempt to read the
                  limit with the most efficient page size, i.e. min(limit, 1000)

:returns: Generator that will yield up to limit results
r   r   r   )r/   read_limitspagestreamr'   r   r   limitsr   s        r)   r   MemberList.streamS  sF    ( **5<yy6+#6y7}}##D/::r+   c                    #    U R                   R                  X5      nU R                  US   S9I Sh  vN nU R                   R                  XCS   5      $  N"7f)a  
Asynchronously streams 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 limit: Upper limit for the number of records to return. stream()
              guarantees to never return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, stream() will attempt to read the
                  limit with the most efficient page size, i.e. min(limit, 1000)

:returns: Generator that will yield up to limit results
r   r   Nr   )r/   r   
page_asyncstream_asyncr   s        r)   r   MemberList.stream_asyncl  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  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 limit: Upper limit for the number of records to return. list() guarantees
              never to return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, list() will attempt to read the limit
                  with the most efficient page size, i.e. min(limit, 1000)

:returns: list that will contain up to limit results
r   r   )listr   )r'   r   r   s      r)   r   MemberList.list  s(    & KK#  
 	
r+   c                 v   #    U R                  UUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

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

:param limit: Upper limit for the number of records to return. list() guarantees
              never to return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, list() will attempt to read the limit
                  with the most efficient page size, i.e. min(limit, 1000)

:returns: list that will contain up to limit results
r   N)r   )r'   r   r   records       r)   
list_asyncMemberList.list_async  sQ     * '+&7&7# '8 ' ! !
 
 !
 	
 
s0   9,940.
049049
page_tokenpage_numberc                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9n[        U R                  X`R                  5      $ )a9  
Retrieve a single page of MemberInstance records from the API.
Request is executed immediately

:param page_token: PageToken provided by the API
:param page_number: Page Number, this value is simply for client state
:param page_size: Number of records to return, defaults to 50

:returns: Page of MemberInstance
	PageTokenr   PageSizer   r   rr   rs   rt   r=   r   paramsrv   )r   rw   r/   r   ro   r   r%   r'   r   r   r   r   rv   responses          r)   r   MemberList.page  s{      yy'#%
 ))^-PQR.==%%dii & 
 $-->>BBr+   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  X`R                  5      $  N$7f)	aH  
Asynchronously retrieve a single page of MemberInstance records from the API.
Request is executed immediately

:param page_token: PageToken provided by the API
:param page_number: Page Number, this value is simply for client state
:param page_size: Number of records to return, defaults to 50

:returns: Page of MemberInstance
r   r   r   rr   rs   rt   r   N)r   rw   r/   r   ro   r   r%   r   s          r)   r   MemberList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 $-->>BB
s   A B	"B#%B	
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )z
Retrieve a specific page of MemberInstance records from the API.
Request is executed immediately

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

:returns: Page of MemberInstance
rt   )r/   domaintwiliorequestr   r%   r'   r   r   s      r)   get_pageMemberList.get_page  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
rt   N)r/   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 call_sid: The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to update.
r   r   r   r.   r/   r%   r'   r   s     r)   r"   MemberList.get  3     MM}5nn[1	
 	
r+   c                 b    [        U R                  U R                  S   U R                  S   US9$ r   r   r   s     r)   __call__MemberList.__call__!  r   r+   c                     g)rI   z<Twilio.Api.V2010.MemberList>rm   r0   s    r)   r\   MemberList.__repr__.  r   r+   r   )NN) r^   r_   r`   ra   r   rc   r!   r   intr	   r   r   r
   r   r   r   r   r   re   r   rf   r   r   r   r   r   r.   r"   r   r\   rg   rh   ri   s   @r)   r   r   =  s"   
 
c 
c 
,  $#';}; C=; 
.	!	;6  $#'A}A C=A 
~	&	A6  $#'
}
 C=
 
n		
8  $#'
}
 C=
 
n		
: *0*0,,(.	C#v+&C 3;'C f%	C
 
CF *0*0,,(.	C#v+&C 3;'C f%	C
 
CB
C3 
C: 
C
Cs 
Cz 
C
C 
M 

 
 
/# / /r+   r   N)rb   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r.   r   r   rm   r+   r)   <module>r      sg     L L L + 8 : 2 ' !nF% nFbXEO XEv/ /0w/ w/r+   