
    d{ii                         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 - Messaging
    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            
            e Zd ZdZ	 ddedeeef   dedee   f fdZ	e
dd       Zdefd	Zdefd
ZdefdZdefdZddZddZdefdZdefdZdefdZ xZS )ChannelSenderInstancea  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ChannelSender resource.
    :ivar messaging_service_sid: The SID of the [Service](https://www.twilio.com/docs/messaging/services) the resource is associated with.
    :ivar sid: The unique string that we created to identify the ChannelSender resource.
    :ivar sender: The unique string that identifies the sender e.g whatsapp:+123456XXXX.
    :ivar sender_type: A string value that identifies the sender type e.g WhatsApp, Messenger.
    :ivar country_code: The 2-character [ISO Country Code](https://www.iso.org/iso-3166-country-codes.html) of the number.
    :ivar date_created: The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar date_updated: The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar url: The absolute URL of the ChannelSender resource.
    versionpayloadmessaging_service_sidsidc                 :   t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _        |j                  d	      | _        ||xs | j
                  d
| _        d | _        y )Naccount_sidr   r   sendersender_typecountry_codedate_createddate_updatedurlr   r   )super__init__getr   r   r   r   r   r   r   iso8601_datetimer   r   r    	_solution_context)selfr   r   r   r   	__class__s        m/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/messaging/v1/service/channel_sender.pyr#   zChannelSenderInstance.__init__'   s     	!*1++m*D4;KK@W4X"")++e"4%,[[%:*1++m*D+2;;~+F0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 &;?$((
 9=    returnc                     | j                   7t        | j                  | 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: ChannelSenderContext for this ChannelSenderInstance
        r   r   r!   )r'   ChannelSenderContext_versionr&   r(   s    r*   _proxyzChannelSenderInstance._proxyD   sF     == 0&*nn5L&MNN5)DM
 }}r+   c                 6    | j                   j                         S zp
        Deletes the ChannelSenderInstance


        :returns: True if delete succeeds, False otherwise
        )r1   deleter0   s    r*   r4   zChannelSenderInstance.deleteT   s     {{!!##r+   c                 R   K   | j                   j                          d{   S 7 wz
        Asynchronous coroutine that deletes the ChannelSenderInstance


        :returns: True if delete succeeds, False otherwise
        N)r1   delete_asyncr0   s    r*   r7   z"ChannelSenderInstance.delete_async]   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the ChannelSenderInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )r1   delete_with_http_infor0   s    r*   r:   z+ChannelSenderInstance.delete_with_http_infof   s     {{0022r+   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the ChannelSenderInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)r1   delete_with_http_info_asyncr0   s    r*   r<   z1ChannelSenderInstance.delete_with_http_info_asynco   s!      [[<<>>>>r8   c                 6    | j                   j                         S )g
        Fetch the ChannelSenderInstance


        :returns: The fetched ChannelSenderInstance
        )r1   fetchr0   s    r*   r?   zChannelSenderInstance.fetchx   s     {{  ""r+   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the ChannelSenderInstance


        :returns: The fetched ChannelSenderInstance
        N)r1   fetch_asyncr0   s    r*   rB   z!ChannelSenderInstance.fetch_async   s!      [[,,....r8   c                 6    | j                   j                         S )z
        Fetch the ChannelSenderInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r1   fetch_with_http_infor0   s    r*   rD   z*ChannelSenderInstance.fetch_with_http_info   s     {{//11r+   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the ChannelSenderInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r1   fetch_with_http_info_asyncr0   s    r*   rF   z0ChannelSenderInstance.fetch_with_http_info_async   s!      [[;;====r8   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>z1ChannelSenderInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z.<Twilio.Messaging.V1.ChannelSenderInstance {}>joinr&   itemsrM   r(   contexts     r*   __repr__zChannelSenderInstance.__repr__   s6     ((SDNN<P<P<RSS?FFwOOr+   )N)r,   r.   )r,   r   )__name__
__module____qualname____doc__r   r   strr   r   r#   propertyr1   boolr4   r7   r   r:   r<   r?   rB   rD   rF   rZ   __classcell__r)   s   @r*   r   r      s    
" "== c3h=  #	=
 c]=:  $ $0D 03{ 3?; ?#/2k 2>+ >P# Pr+   r   c                        e Zd Z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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defdZ xZS )r.   r   r   r   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)aH  
        Initialize the ChannelSenderContext

        :param version: Version that contains the resource
        :param messaging_service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from.
        :param sid: The SID of the ChannelSender resource to fetch.
        r!   z6/Services/{messaging_service_sid}/ChannelSenders/{sid}N r"   r#   r&   rM   _uri)r(   r   r   r   r)   s       r*   r#   zChannelSenderContext.__init__   sG     	! &;
 TLSS 
nn
	r+   r,   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        DELETEmethoduriheaders)r   ofr/   delete_with_response_inforh   r(   rn   s     r*   _deletezChannelSenderContext._delete   s8     ))B-}}66G 7 
 	
r+   c                 .    | j                         \  }}}|S r3   )rr   r(   success_s      r*   r4   zChannelSenderContext.delete   s     Ar+   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the ChannelSenderInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_codern   )rr   r   r(   ru   rz   rn   s       r*   r:   z*ChannelSenderContext.delete_with_http_info   s%     )-%g['RRr+   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        rj   rk   N)r   ro   r/   delete_with_response_info_asyncrh   rq   s     r*   _delete_asyncz"ChannelSenderContext._delete_async   sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wr6   )r~   rt   s      r*   r7   z!ChannelSenderContext.delete_async   s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the ChannelSenderInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nrx   )r~   r   r{   s       r*   r<   z0ChannelSenderContext.delete_with_http_info_async   s5      /3.@.@.B(B%g['RR )Cs   /-/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GETrk   )r   ro   r/   fetch_with_response_inforh   rq   s     r*   _fetchzChannelSenderContext._fetch   sB     ))B-.}}55dii 6 
 	
r+   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         S )r>   r   r   r!   )r   r   r/   r&   r(   r   rv   s      r*   r?   zChannelSenderContext.fetch  sE     A$MM"&..1H"Iu%	
 	
r+   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )z
        Fetch the ChannelSenderInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r   r!   rx   )r   r   r/   r&   r   r(   r   rz   rn   instances        r*   rD   z)ChannelSenderContext.fetch_with_http_info  sT     )-%g(MM"&..1H"Iu%	
 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)
        r   r   r   rk   N)r   ro   r/   fetch_with_response_info_asyncrh   rq   s     r*   _fetch_asyncz!ChannelSenderContext._fetch_async.  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)rA   Nr   r   r!   )r   r   r/   r&   r   s      r*   rB   z ChannelSenderContext.fetch_async>  sT      #//11A$MM"&..1H"Iu%	
 	
 2s   AA<Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S 7 Iw)z
        Asynchronous coroutine to fetch the ChannelSenderInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r   r!   rx   )r   r   r/   r&   r   r   s        r*   rF   z/ChannelSenderContext.fetch_with_http_info_asyncM  sd      /3.?.?.A(A%g(MM"&..1H"Iu%	
 k7SS )Bs   A"A A
A"c                     dj                  d | j                  j                         D              }dj                  |      S )rH   rI   c              3   F   K   | ]  \  }}d j                  ||        ywrK   rL   rN   s      r*   rR   z0ChannelSenderContext.__repr__.<locals>.<genexpr>c  rS   rT   z-<Twilio.Messaging.V1.ChannelSenderContext {}>rU   rX   s     r*   rZ   zChannelSenderContext.__repr__]  s6     ((SDNN<P<P<RSS>EEgNNr+   )r[   r\   r]   r   r_   r#   tuplerr   ra   r4   r   r:   r~   r7   r<   r   r   r?   rD   r   rB   rF   rZ   rb   rc   s   @r*   r.   r.      s    
 
 
# 
&
 
 S{ S
U 
D S; S
 
 
, 
Tk T 
E 
 
#8 
T+ T O# Or+   r.   c                   2    e Zd Zdeeef   defdZdefdZy)ChannelSenderPager   r,   c                 L    t        | j                  || j                  d         S )zs
        Build an instance of ChannelSenderInstance

        :param payload: Payload response from the API
        r   r   )r   r/   r&   )r(   r   s     r*   get_instancezChannelSenderPage.get_instancei  s(     %MM"&..1H"I
 	
r+   c                      y)rH   z'<Twilio.Messaging.V1.ChannelSenderPage>rf   r0   s    r*   rZ   zChannelSenderPage.__repr__u       9r+   N)	r[   r\   r]   r   r_   r   r   r   rZ   rf   r+   r*   r   r   g  s*    

DcN 

7L 

9# 9r+   r   c            	           e Zd Zdedef 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defd
Zd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	 	 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 )#ChannelSenderListr   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)a  
        Initialize the ChannelSenderList

        :param version: Version that contains the resource
        :param messaging_service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from.

        r   z0/Services/{messaging_service_sid}/ChannelSendersNrf   rg   )r(   r   r   r)   s      r*   r#   zChannelSenderList.__init__  sG     	! $%:
 NFMM 
nn
	r+   r   r,   c                     t        j                  d|i      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        SidContent-Type!application/x-www-form-urlencodedr   r   POSTrl   rm   ry   rn   )r   ro   r/   create_with_response_inforh   r(   r   ry   rn   s       r*   _createzChannelSenderList._create  so     yys

 ))^-PQR"E.}}66tyytW 7 
 	
r+   c                 x    | j                  |      \  }}}t        | j                  || j                  d         S )z
        Create the ChannelSenderInstance

        :param sid: The SID of the Channel Sender being added to the Service.

        :returns: The created ChannelSenderInstance
        r   r   r   )r   r   r/   r&   r(   r   r   rv   s       r*   createzChannelSenderList.create  s>     -A$MM"&..1H"I
 	
r+   c                     | j                  |      \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Create the ChannelSenderInstance and return response metadata

        :param sid: The SID of the Channel Sender being added to the Service.

        :returns: ApiResponse with instance, status code, and headers
        r   r   r   rx   )r   r   r/   r&   r   r(   r   r   rz   rn   r   s         r*   create_with_http_infoz'ChannelSenderList.create_with_http_info  sM     )-(=%g(MM"&..1H"I

 k7SSr+   c                    K   t        j                  d|i      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   ro   r/   create_with_response_info_asyncrh   r   s       r*   _create_asynczChannelSenderList._create_async  s~      yys

 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A%A.'A,(A.c                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         S 7 -w)z
        Asynchronously create the ChannelSenderInstance

        :param sid: The SID of the Channel Sender being added to the Service.

        :returns: The created ChannelSenderInstance
        r   Nr   r   )r   r   r/   r&   r   s       r*   create_asynczChannelSenderList.create_async  sM      #00S099A$MM"&..1H"I
 	
 :s   AA.Ac                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronously create the ChannelSenderInstance and return response metadata

        :param sid: The SID of the Channel Sender being added to the Service.

        :returns: ApiResponse with instance, status code, and headers
        r   Nr   r   rx   )r   r   r/   r&   r   r   s         r*   create_with_http_info_asyncz-ChannelSenderList.create_with_http_info_async  s]      /3.@.@S.@.I(I%g(MM"&..1H"I

 k7SS )Js   AA<Alimit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )ac  
        Streams ChannelSenderInstance 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ChannelSenderList.stream  sJ    ( **5)<yy6+#6y7}}##D&/::r+   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)ar  
        Asynchronously streams ChannelSenderInstance 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ChannelSenderList.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 ChannelSenderInstance 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   ry   rz   rn   r(   r   r   r   page_response	generators         r*   stream_with_http_infoz'ChannelSenderList.stream_with_http_info0  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 ChannelSenderInstance 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   ry   rz   rn   r   s         r*   stream_with_http_info_asyncz-ChannelSenderList.stream_with_http_info_asyncH  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB c                 :    t        | j                  ||            S )a   
        Lists ChannelSenderInstance 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ChannelSenderList.listb  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 ChannelSenderInstance 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ChannelSenderList.list_async|  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists ChannelSenderInstance 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   rx   )r   r   r   )r(   r   r   r   rz   rn   rW   s          r*   list_with_http_infoz%ChannelSenderList.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 ChannelSenderInstance 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   Nrx   )r   r   )r(   r   r   r   rz   rn   r   rW   s           r*   list_with_http_info_asyncz+ChannelSenderList.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 )a  
        Retrieve a single page of ChannelSenderInstance 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 ChannelSenderInstance
        	PageTokenr   PageSizer   r   r   r   r   rl   rm   paramsrn   )r   ro   r/   r   rh   r   r&   r(   r   r   r   ry   rn   responses          r*   r   zChannelSenderList.page  s      yy'#%
 ))^-PQR.==%%diig & 
 !$..IIr+   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 ChannelSenderInstance 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 ChannelSenderInstance
        r   r   r   r   r   r   r   N)r   ro   r/   r   rh   r   r&   r   s          r*   r   zChannelSenderList.page_async  s       yy'#%
 ))^-PQR.11diig 2 
 
 !$..II
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 )	a_  
        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 ChannelSenderPage, status code, and headers
        r   r   r   r   r   r   r   rx   )r   ro   r/   page_with_response_inforh   r   r&   r   
r(   r   r   r   ry   rn   r   rz   response_headersr   s
             r*   r   z%ChannelSenderList.page_with_http_info  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ !$..I+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)
an  
        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 ChannelSenderPage, status code, and headers
        r   r   r   r   r   r   r   Nrx   )r   ro   r/   page_with_response_info_asyncrh   r   r&   r   r   s
             r*   r   z+ChannelSenderList.page_with_http_info_async-  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 !$..I+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 ChannelSenderInstance records from the API.
        Request is executed immediately

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

        :returns: Page of ChannelSenderInstance
        r   )r/   domaintwiliorequestr   r&   r(   r   r   s      r*   get_pagezChannelSenderList.get_pageQ  s=     ==''..66ujI $..IIr+   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   || j
                        S 7 %w)a  
        Asynchronously retrieve a specific page of ChannelSenderInstance records from the API.
        Request is executed immediately

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

        :returns: Page of ChannelSenderInstance
        r   N)r/   r   r   request_asyncr   r&   r   s      r*   get_page_asyncz ChannelSenderList.get_page_async]  sJ      --44BB5*UU $..II Vs   4AA&Ac                 L    t        | j                  | j                  d   |      S zx
        Constructs a ChannelSenderContext

        :param sid: The SID of the ChannelSender resource to fetch.
        r   r!   r.   r/   r&   r(   r   s     r*   r$   zChannelSenderList.geti  (     $MM"&..1H"I
 	
r+   c                 L    t        | j                  | j                  d   |      S r   r   r   s     r*   __call__zChannelSenderList.__call__u  r   r+   c                      y)rH   z'<Twilio.Messaging.V1.ChannelSenderList>rf   r0   s    r*   rZ   zChannelSenderList.__repr__  r   r+   )NN),r[   r\   r]   r   r_   r#   r   r   r   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   unsetr   objectr   r   r   r   r   r   r   r.   r$   r   rZ   rb   rc   s   @r*   r   r   ~  s2   
 
 
$
3 
5 
.
# 
"7 
T T T 
s 
u 
.
c 
.C 
TS T[ T$  $#';}; C=; 
'	(	;6  $#'A}A C=A 
,	-	A6  $#'M}M C=M 
	M4  $#'M}M C=M 
	M8  $#'
}
 C=
 
#	$	
8  $#'
}
 C=
 
#	$	
:  $#'Q}Q C=Q 
	Q6  $#'Q}Q C=Q 
	Q6 *0*0,,(.	J#v+&J 3;'J f%	J
 
JF *0*0,,(.	J#v+&J 3;'J f%	J
 
JF *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
J3 
J+< 
J
Js 
J7H 
J

s 

3 



C 

$8 

9# 9r+   r   N)r^   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   rf   r+   r*   <module>r     sj     L L L + 0 8 : 2 ' !IP, IPX~O? ~OB9 9.I9 I9r+   