
    d{i                         d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
mZmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ  G d de      Z G d de      Z G d de      Z G d de      Zy)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)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec                   j    e Zd ZdZ	 ddedeeef   dededee   f
 fdZ	e
dd	       Zdd
ZddZdefdZdefdZej$                  fdedeeef   dd fdZej$                  fdedeeef   dd fdZej$                  fdedeeef   defdZej$                  fdedeeef   defdZdefdZ xZS )MemberInstancea  
    :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         |   |       |j                  d      | _        t	        j
                  |j                  d            | _        t	        j                  |j                  d            | _        |j                  d      | _	        t	        j                  |j                  d            | _
        |j                  d      | _        |||xs | j                  d| _        d | _        y )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         h/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/queue/member.pyr!   zMemberInstance.__init__$   s     	!'.{{:'>1<1M1MKK(2
 (3':':7;;z;R'S")++e"4(3(;(;GKK<T(U(/K(@ '" 1DMM

 26    returnc                     | j                   Et        | j                  | j                  d   | j                  d   | j                  d         | _         | j                   S )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)   _proxyzMemberInstance._proxy>   sQ     == ) NN=9..5
3	DM }}r*   c                 6    | j                   j                         S )Y
        Fetch the MemberInstance


        :returns: The fetched MemberInstance
        )r0   fetchr/   s    r)   r3   zMemberInstance.fetchO   s     {{  ""r*   c                 R   K   | j                   j                          d{   S 7 w)s
        Asynchronous coroutine to fetch the MemberInstance


        :returns: The fetched MemberInstance
        N)r0   fetch_asyncr/   s    r)   r6   zMemberInstance.fetch_asyncX   s!      [[,,....   '%'c                 6    | j                   j                         S )z
        Fetch the MemberInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r0   fetch_with_http_infor/   s    r)   r9   z#MemberInstance.fetch_with_http_infoa   s     {{//11r*   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the MemberInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r0   fetch_with_http_info_asyncr/   s    r)   r;   z)MemberInstance.fetch_with_http_info_asyncj   s!      [[;;====r7   urlmethodc                 <    | j                   j                  ||      S )]  
        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=   )r0   updater'   r<   r=   s      r)   rA   zMemberInstance.updates   s&     {{!! " 
 	
r*   c                 X   K   | j                   j                  ||       d{   S 7 w)w  
        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)r0   update_asyncrB   s      r)   rE   zMemberInstance.update_async   s4      [[-- . 
 
 	
 
   !*(*c                 <    | j                   j                  ||      S )a  
        Update the MemberInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        r@   )r0   update_with_http_inforB   s      r)   rH   z$MemberInstance.update_with_http_info   s&     {{00 1 
 	
r*   c                 X   K   | j                   j                  ||       d{   S 7 w)a  
        Asynchronous coroutine to update the MemberInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        r@   N)r0   update_with_http_info_asyncrB   s      r)   rJ   z*MemberInstance.update_with_http_info_async   s4      [[<< = 
 
 	
 
rF   c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r)   	<genexpr>z*MemberInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z$<Twilio.Api.V2010.MemberInstance {}>joinr%   itemsrQ   r'   contexts     r)   __repr__zMemberInstance.__repr__   s6     ((SDNN<P<P<RSS5<<WEEr*   )N)r+   r-   )r+   r   )__name__
__module____qualname____doc__r   r   strr   r   r!   propertyr0   r3   r6   r   r9   r;   r   unsetr   objectrA   rE   rH   rJ   r^   __classcell__r(   s   @r)   r   r      sN    #'66 c3h6 	6
 6 3-64   #/2k 2>+ > 6<\\

 %c6k 2
	
" 6<\\

 %c6k 2
	
" 6<\\

 %c6k 2
	
" 6<\\

 %c6k 2
	
 F# Fr*   r   c                       e Zd Zdedededef fdZdefdZdefdZ	de
fd	Zdefd
ZdefdZde
fdZej                   fdedeeef   defdZej                   fdedeeef   defdZej                   fdedeeef   de
fdZej                   fdedeeef   defdZej                   fdedeeef   defdZej                   fdedeeef   de
fdZdefdZ xZS )r-   r   r   r   r   c                 |    t         |   |       |||d| _         dj                  di | j                  | _        y)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%   rQ   _uri)r'   r   r   r   r   r(   s        r)   r!   zMemberContext.__init__   sM     	! '" 
 XPWW .. 		r*   r+   c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETr=   r   headers)r   ofr.   fetch_with_response_inform   r'   rs   s     r)   _fetchzMemberContext._fetch   sB     ))B-.}}55dii 6 
 	
r*   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d   | j                  d         S )r2   r   r   r   r   )rw   r   r.   r%   r'   r   _s      r)   r3   zMemberContext.fetch   sP     AMM}5nn[1^^J/
 	
r*   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d   | j                  d         }t	        |||      S )z
        Fetch the MemberInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r   r   r   datastatus_coders   )rw   r   r.   r%   r   r'   r   r~   rs   instances        r)   r9   z"MemberContext.fetch_with_http_info   s_     )-%g!MM}5nn[1^^J/
 k7SSr*   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        ro   rp   rq   rr   N)r   rt   r.   fetch_with_response_info_asyncrm   rv   s     r)   _fetch_asynczMemberContext._fetch_async	  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d   | j                  d         S 7 Iw)r5   Nr   r   r   r   )r   r   r.   r%   ry   s      r)   r6   zMemberContext.fetch_async  s_      #//11AMM}5nn[1^^J/
 	
 2s   A"A A
A"c                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d   | j                  d         }t	        |||      S 7 Ww)z
        Asynchronous coroutine to fetch the MemberInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r   r   r   r|   )r   r   r.   r%   r   r   s        r)   r;   z(MemberContext.fetch_with_http_info_async)  so      /3.?.?.A(A%g!MM}5nn[1^^J/
 k7SS )Bs   A0A.AA0r<   r=   c                     t        j                  ||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        UrlMethod!application/x-www-form-urlencodedContent-Typero   rp   POSTr=   r   r}   rs   )r   rt   r.   update_with_response_inform   r'   r<   r=   r}   rs   s        r)   _updatezMemberContext._update:  si     yy 
 ))B-"E.}}66tyytW 7 
 	
r*   c                     | j                  ||      \  }}}t        | j                  || j                  d   | j                  d   | j                  d         S )r?   r@   r   r   r   r   )r   r   r.   r%   r'   r<   r=   r   rz   s        r)   rA   zMemberContext.updateR  sW     V<AMM}5nn[1^^J/
 	
r*   c                     | j                  ||      \  }}}t        | j                  || j                  d   | j                  d   | j                  d         }t	        |||      S )a  
        Update the MemberInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r@   r   r   r   r   r|   )r   r   r.   r%   r   r'   r<   r=   r   r~   rs   r   s          r)   rH   z#MemberContext.update_with_http_infof  sf     )-V(L%g!MM}5nn[1^^J/
 k7SSr*   c                    K   t        j                  ||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   ro   rp   r   r   N)r   rt   r.   update_with_response_info_asyncrm   r   s        r)   _update_asynczMemberContext._update_async{  sx      yy 
 ))B-"E.]]BBtyytW C 
 
 	
 
s   A$A-&A+'A-c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d   | j                  d   | j                  d         S 7 Iw)rD   r@   Nr   r   r   r   )r   r   r.   r%   r   s        r)   rE   zMemberContext.update_async  sg      #00S0HHAMM}5nn[1^^J/
 	
 Is   A%A#A
A%c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d   | j                  d   | j                  d         }t	        |||      S 7 Ww)a  
        Asynchronous coroutine to update the MemberInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r@   Nr   r   r   r   r|   )r   r   r.   r%   r   r   s          r)   rJ   z)MemberContext.update_with_http_info_async  sw      /3.@.@SQW.@.X(X%g!MM}5nn[1^^J/
 k7SS )Ys   A3A1AA3c                     dj                  d | j                  j                         D              }dj                  |      S )rL   rM   c              3   F   K   | ]  \  }}d j                  ||        ywrO   rP   rR   s      r)   rV   z)MemberContext.__repr__.<locals>.<genexpr>  rW   rX   z#<Twilio.Api.V2010.MemberContext {}>rY   r\   s     r)   r^   zMemberContext.__repr__  s6     ((SDNN<P<P<RSS4;;GDDr*   )r_   r`   ra   r   rc   r!   tuplerw   r   r3   r   r9   r   r6   r;   r   re   r   rf   r   rA   rH   r   rE   rJ   r^   rg   rh   s   @r)   r-   r-      s   

-0
=@
LO
2
 
 
~ 
 Tk T"
E 
 
> 
 T+ T" >D\\ 
3 
c6k(: 
e 
2 6<\\

 %c6k 2
	
* 6<\\TT %c6k 2T	T, 6<\\

 %c6k 2
	
6 6<\\

 %c6k 2
	
* 6<\\TT %c6k 2T	T*E# Er*   r-   c                   2    e Zd Zdeeef   defdZdefdZy)
MemberPager   r+   c                 h    t        | j                  || j                  d   | j                  d         S )zl
        Build an instance of MemberInstance

        :param payload: Payload response from the API
        r   r   r   r   )r   r.   r%   )r'   r   s     r)   get_instancezMemberPage.get_instance  s3     MM}5nn[1	
 	
r*   c                      y)rL   z<Twilio.Api.V2010.MemberPage>rk   r/   s    r)   r^   zMemberPage.__repr__       /r*   N)	r_   r`   ra   r   rc   r   r   r   r^   rk   r*   r)   r   r     s)    
DcN 
~ 
/# /r*   r   c            	           e Zd Zdededef fdZ	 	 ddee   dee   dee	   fdZ
	 	 ddee   dee   dee	   fd	Z	 	 ddee   dee   defd
Z	 	 ddee   dee   defdZ	 	 ddee   dee   dee	   fdZ	 	 ddee   dee   dee	   fdZ	 	 ddee   dee   defdZ	 	 ddee   dee   defdZej.                  ej.                  ej.                  fdeeef   deeef   deeef   defdZej.                  ej.                  ej.                  fdeeef   deeef   deeef   defdZej.                  ej.                  ej.                  fdeeef   deeef   deeef   defdZej.                  ej.                  ej.                  fdeeef   deeef   deeef   defdZdedefdZdedefdZ dede!fdZ"dede!fdZ#defdZ$ xZ%S )
MemberListr   r   r   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)aC  
        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.jsonNrk   rl   )r'   r   r   r   r(   s       r)   r!   zMemberList.__init__  sG     	! '"
 UMTT 
nn
	r*   limit	page_sizer+   c                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )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   zMemberList.stream  sJ    ( **5)<yy6+#6y7}}##D&/::r*   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)ak  
        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   zMemberList.stream_async  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                     | j                   j                  ||      }| j                  |d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams MemberInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   r   )r.   r   page_with_http_infor   r}   r~   rs   r'   r   r   r   page_response	generators         r)   stream_with_http_infoz MemberList.stream_with_http_info(  sk    $ **5)<006+;N0OMM((););VG_M	=44m6K6KLLr*   c                   K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)a  
        Asynchronously streams MemberInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   Nr   )r.   r   page_with_http_info_asyncr   r}   r~   rs   r   s         r)   stream_with_http_info_asyncz&MemberList.stream_with_http_info_async@  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB c                 :    t        | j                  ||            S )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   zMemberList.listZ  s(    & KK#  
 	
r*   c                 z   K   | j                  ||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)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_asynczMemberList.list_asynct  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists MemberInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r   r|   )r   r   r   )r'   r   r   r   r~   rs   r[   s          r)   list_with_http_infozMemberList.list_with_http_info  sA    $ +/*D*D +E +
'	; Y;PPr*   c                    K   | j                  ||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }}t        |||      S w)a  
        Asynchronously lists MemberInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r   Nr|   )r   r   )r'   r   r   r   r~   rs   r   r[   s           r)   list_with_http_info_asyncz$MemberList.list_with_http_info_async  sf     $ 150P0P 1Q 1
 +
'	; -666&	+
 7666;PPs4   A4A:86
8:A8:A
page_tokenpage_numberc                     t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                        S )aq  
        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   ro   rp   rq   r=   r   paramsrs   )r   rt   r.   r   rm   r   r%   r'   r   r   r   r}   rs   responses          r)   r   zMemberList.page  s      yy'#%
 ))^-PQR.==%%diig & 
 $--4>>BBr*   c                   K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                        S 7 %w)	a  
        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   ro   rp   rq   r   N)r   rt   r.   r   rm   r   r%   r   s          r)   r   zMemberList.page_async  s       yy'#%
 ))^-PQR.11diig 2 
 
 $--4>>BB
s   A"B$B
%&Bc                 $   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  || j                        }	t        |	||      S )	aX  
        Retrieve a single page with response metadata


        :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: ApiResponse with MemberPage, status code, and headers
        r   r   r   ro   rp   rq   r   r|   )r   rt   r.   page_with_response_inform   r   r%   r   
r'   r   r   r   r}   rs   r   r~   response_headersr   s
             r)   r   zMemberList.page_with_http_info  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ $--4>>B+GWXXr*   c                 @  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  || j                        }	t        |	||	      S 7 7w)
ag  
        Asynchronously retrieve a single page with response metadata


        :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: ApiResponse with MemberPage, status code, and headers
        r   r   r   ro   rp   rq   r   Nr|   )r   rt   r.   page_with_response_info_asyncrm   r   r%   r   r   s
             r)   r   z$MemberList.page_with_http_info_async%  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 $--4>>B+GWXXs   A"B$B%8B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   || j
                        S )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
        rq   )r.   domaintwiliorequestr   r%   r'   r   r   s      r)   get_pagezMemberList.get_pageI  s=     ==''..66ujI$--4>>BBr*   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   || j
                        S 7 %w)a   
        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
        rq   N)r.   r   r   request_asyncr   r%   r   s      r)   get_page_asynczMemberList.get_page_asyncU  sJ      --44BB5*UU$--4>>BB Vs   4AA&Ar   c                 h    t        | j                  | j                  d   | j                  d   |      S 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"   zMemberList.geta  3     MM}5nn[1	
 	
r*   c                 h    t        | j                  | j                  d   | j                  d   |      S r   r   r   s     r)   __call__zMemberList.__call__n  r   r*   c                      y)rL   z<Twilio.Api.V2010.MemberList>rk   r/   s    r)   r^   zMemberList.__repr__{  r   r*   )NN)&r_   r`   ra   r   rc   r!   r   intr	   r   r   r
   r   r   r   r   r   r   r   r   r   r   r   re   r   rf   r   r   r   r   r   r   r   r-   r"   r   r^   rg   rh   s   @r)   r   r     s   
 
c 
c 
,  $#';}; C=; 
.	!	;6  $#'A}A C=A 
~	&	A6  $#'M}M C=M 
	M4  $#'M}M C=M 
	M8  $#'
}
 C=
 
n		
8  $#'
}
 C=
 
n		
:  $#'Q}Q C=Q 
	Q6  $#'Q}Q C=Q 
	Q6 *0*0,,(.	C#v+&C 3;'C f%	C
 
CF *0*0,,(.	C#v+&C 3;'C f%	C
 
CF *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
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.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r-   r   r   rk   r*   r)   <module>r      sj     L L L + 0 8 : 2 ' !`F% `FFHEO HEV/ /0a/ a/r*   