
    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 - Flex
    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 G d de      Z	 	 ddedeeef   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ej0                  ej0                  fdedef   deeef   dd fdZej0                  ej0                  fdedef   deeef   dd fdZej0                  ej0                  fdedef   deeef   defdZej0                  ej0                  fdedef   deeef   defdZdefdZ xZS )WebChannelInstancec                       e Zd ZdZy)WebChannelInstance.ChatStatusinactiveN)__name__
__module____qualname__INACTIVE     a/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/flex_api/v1/web_channel.py
ChatStatusr      s    r   r   versionpayloadsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _	        t        j                  |j                  d            | _
        d|xs | j
                  i| _        d | _        y )Naccount_sidflex_flow_sidr"   urldate_createddate_updated)super__init__getr$   r%   r"   r&   r   iso8601_datetimer'   r(   	_solution_context)selfr    r!   r"   	__class__s       r   r*   zWebChannelInstance.__init__(   s     	!*1++m*D,3KK,H")++e"4")++e"40;0L0LKK'1
 1<0L0LKK'1

 3?$((
 6:r   returnc                     | j                   )t        | j                  | 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: WebChannelContext for this WebChannelInstance
        r"   r"   )r.   WebChannelContext_versionr-   r/   s    r   _proxyzWebChannelInstance._proxy=   s9     == -NN5)DM }}r   c                 6    | j                   j                         S zm
        Deletes the WebChannelInstance


        :returns: True if delete succeeds, False otherwise
        )r7   deleter6   s    r   r:   zWebChannelInstance.deleteL   s     {{!!##r   c                 R   K   | j                   j                          d{   S 7 wz
        Asynchronous coroutine that deletes the WebChannelInstance


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


        :returns: ApiResponse with success boolean, status code, and headers
        )r7   delete_with_http_infor6   s    r   r@   z(WebChannelInstance.delete_with_http_info^   s     {{0022r   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the WebChannelInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)r7   delete_with_http_info_asyncr6   s    r   rB   z.WebChannelInstance.delete_with_http_info_asyncg   s!      [[<<>>>>r>   c                 6    | j                   j                         S )a
        Fetch the WebChannelInstance


        :returns: The fetched WebChannelInstance
        )r7   fetchr6   s    r   rE   zWebChannelInstance.fetchp   s     {{  ""r   c                 R   K   | j                   j                          d{   S 7 w){
        Asynchronous coroutine to fetch the WebChannelInstance


        :returns: The fetched WebChannelInstance
        N)r7   fetch_asyncr6   s    r   rH   zWebChannelInstance.fetch_asyncy   s!      [[,,....r>   c                 6    | j                   j                         S )z
        Fetch the WebChannelInstance with HTTP info


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


        :returns: ApiResponse with instance, status code, and headers
        N)r7   fetch_with_http_info_asyncr6   s    r   rL   z-WebChannelInstance.fetch_with_http_info_async   s!      [[;;====r>   chat_statusr   post_engagement_datac                 <    | j                   j                  ||      S )
        Update the WebChannelInstance

        :param chat_status:
        :param post_engagement_data: The post-engagement data.

        :returns: The updated WebChannelInstance
        rM   rN   )r7   updater/   rM   rN   s      r   rR   zWebChannelInstance.update   s&     {{!!#!5 " 
 	
r   c                 X   K   | j                   j                  ||       d{   S 7 w)
        Asynchronous coroutine to update the WebChannelInstance

        :param chat_status:
        :param post_engagement_data: The post-engagement data.

        :returns: The updated WebChannelInstance
        rQ   N)r7   update_asyncrS   s      r   rV   zWebChannelInstance.update_async   s4      [[--#!5 . 
 
 	
 
   !*(*c                 <    | j                   j                  ||      S )z
        Update the WebChannelInstance with HTTP info

        :param chat_status:
        :param post_engagement_data: The post-engagement data.

        :returns: ApiResponse with instance, status code, and headers
        rQ   )r7   update_with_http_inforS   s      r   rY   z(WebChannelInstance.update_with_http_info   s&     {{00#!5 1 
 	
r   c                 X   K   | j                   j                  ||       d{   S 7 w)z
        Asynchronous coroutine to update the WebChannelInstance with HTTP info

        :param chat_status:
        :param post_engagement_data: The post-engagement data.

        :returns: ApiResponse with instance, status code, and headers
        rQ   N)r7   update_with_http_info_asyncrS   s      r   r[   z.WebChannelInstance.update_with_http_info_async   s4      [[<<#!5 = 
 
 	
 
rW   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.WebChannelInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z)<Twilio.FlexApi.V1.WebChannelInstance {}>joinr-   itemsrb   r/   contexts     r   __repr__zWebChannelInstance.__repr__   s6     ((SDNN<P<P<RSS:AA'JJr   )N)r1   r4   )r1   r   ) r   r   r   objectr   r   r   strr   r   r*   propertyr7   boolr:   r=   r   r@   rB   rE   rH   rJ   rL   r   unsetr   rR   rV   rY   r[   ro   __classcell__r0   s   @r   r   r      s   V  OS::)-c3h:>Fsm:*  $ $0D 03{ 3?; ?#/2k 2>+ > GMll39<<
:FBC
 $CK0
 
	
( GMll39<<
:FBC
 $CK0
 
	
( GMll39<<
:FBC
 $CK0
 
	
( GMll39<<
:FBC
 $CK0
 
	
$K# Kr   r   c                       e Zd Z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ej.                  ej.                  fdedef   deeef   defdZej.                  ej.                  fdedef   deeef   defdZej.                  ej.                  fdedef   deeef   de
fdZej.                  ej.                  fdedef   deeef   defdZej.                  ej.                  fdedef   deeef   defdZej.                  ej.                  fdedef   deeef   de
fdZdefdZ  xZ!S )r4   r    r"   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the WebChannelContext

        :param version: Version that contains the resource
        :param sid: The SID of the WebChannel resource to update.
        r"   z/WebChannels/{sid}Nr   )r)   r*   r-   rb   _uri)r/   r    r"   r0   s      r   r*   zWebChannelContext.__init__   s@     	! 3
 0(//A$..A	r   r1   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   ofr5   delete_with_response_infory   r/   r   s     r   _deletezWebChannelContext._delete   s8     ))B-}}66G 7 
 	
r   c                 .    | j                         \  }}}|S r9   )r   r/   success_s      r   r:   zWebChannelContext.delete  s     Ar   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the WebChannelInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_coder   )r   r   r/   r   r   r   s       r   r@   z'WebChannelContext.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)
        r{   r|   N)r   r   r5   delete_with_response_info_asyncry   r   s     r   _delete_asynczWebChannelContext._delete_async  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wr<   )r   r   s      r   r=   zWebChannelContext.delete_async'  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the WebChannelInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r   rB   z-WebChannelContext.delete_with_http_info_async1  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GETr|   )r   r   r5   fetch_with_response_infory   r   s     r   _fetchzWebChannelContext._fetch;  sB     ))B-.}}55dii 6 
 	
r   c                 t    | j                         \  }}}t        | j                  || j                  d         S )rD   r"   r3   )r   r   r5   r-   r/   r!   r   s      r   rE   zWebChannelContext.fetchK  s8     A!MMu%
 	
r   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the WebChannelInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r"   r3   r   )r   r   r5   r-   r   r/   r!   r   r   instances        r   rJ   z&WebChannelContext.fetch_with_http_infoY  sG     )-%g%MM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   r|   N)r   r   r5   fetch_with_response_info_asyncry   r   s     r   _fetch_asynczWebChannelContext._fetch_asynch  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)rG   Nr"   r3   )r   r   r5   r-   r   s      r   rH   zWebChannelContext.fetch_asyncx  sG      #//11A!MMu%
 	
 2s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to fetch the WebChannelInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr"   r3   r   )r   r   r5   r-   r   r   s        r   rL   z,WebChannelContext.fetch_with_http_info_async  sW      /3.?.?.A(A%g%MMu%

 k7SS )Bs   AA<ArM   r   rN   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)
        r   PostEngagementData!application/x-www-form-urlencodedContent-Typer   r   POSTr}   r~   r   r   )r   r   r5   update_with_response_infory   r/   rM   rN   r   r   s        r   _updatezWebChannelContext._update  si     yy)&:
 ))B-"E.}}66tyytW 7 
 	
r   c                 z    | j                  ||      \  }}}t        | j                  || j                  d         S )rP   rQ   r"   r3   )r   r   r5   r-   r/   rM   rN   r!   r   s        r   rR   zWebChannelContext.update  sA     #:N % 
A "$--dnnU>STTr   c                     | j                  ||      \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Update the WebChannelInstance and return response metadata

        :param chat_status:
        :param post_engagement_data: The post-engagement data.

        :returns: ApiResponse with instance, status code, and headers
        rQ   r"   r3   r   )r   r   r5   r-   r   r/   rM   rN   r!   r   r   r   s          r   rY   z'WebChannelContext.update_with_http_info  sQ     )-#:N )5 )
%g &dmmW$..QVBWX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   r   r   r   r   N)r   r   r5   update_with_response_info_asyncry   r   s        r   _update_asynczWebChannelContext._update_async  sx      yy)&:
 ))B-"E.]]BBtyytW C 
 
 	
 
s   A$A-&A+'A-c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         S 7 -w)rU   rQ   Nr"   r3   )r   r   r5   r-   r   s        r   rV   zWebChannelContext.update_async  sQ      #00#:N 1 
 
A "$--dnnU>STT
s   A	A.A	c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)a	  
        Asynchronous coroutine to update the WebChannelInstance and return response metadata

        :param chat_status:
        :param post_engagement_data: The post-engagement data.

        :returns: ApiResponse with instance, status code, and headers
        rQ   Nr"   r3   r   )r   r   r5   r-   r   r   s          r   r[   z-WebChannelContext.update_with_http_info_async  sb      /3.@.@#:N /A /
 )
%g &dmmW$..QVBWXk7SS	)
s   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )r]   r^   c              3   F   K   | ]  \  }}d j                  ||        ywr`   ra   rc   s      r   rg   z-WebChannelContext.__repr__.<locals>.<genexpr>  rh   ri   z(<Twilio.FlexApi.V1.WebChannelContext {}>rj   rm   s     r   ro   zWebChannelContext.__repr__  s6     ((SDNN<P<P<RSS9@@IIr   )"r   r   r   r   rq   r*   tupler   rs   r:   r   r@   r   r=   rB   r   r   rE   rJ   r   rH   rL   r   rt   r   rp   r   rR   rY   r   rV   r[   ro   ru   rv   s   @r   r4   r4      s{   B Bc B
 
 S{ S
U 
D S; S
 
 
) 
Tk T
E 
 
#5 
T+ T" GMll39<<
:FBC
 $CK0
 
	
< GMll39<<U:FBCU $CK0U 
	U( GMll39<<T:FBCT $CK0T 
	T* GMll39<<
:FBC
 $CK0
 
	
< GMll39<<U:FBCU $CK0U 
	U( GMll39<<T:FBCT $CK0T 
	T&J# Jr   r4   c                   2    e Zd Zdeeef   defdZdefdZy)WebChannelPager!   r1   c                 .    t        | j                  |      S )zp
        Build an instance of WebChannelInstance

        :param payload: Payload response from the API
        )r   r5   )r/   r!   s     r   get_instancezWebChannelPage.get_instance#  s     "$--99r   c                      y)r]   z"<Twilio.FlexApi.V1.WebChannelPage>r   r6   s    r   ro   zWebChannelPage.__repr__+       4r   N)	r   r   r   r   rq   r   r   r   ro   r   r   r   r   r   !  s*    :DcN :7I :4# 4r   r   c                       e Zd Zdef fdZej                  ej                  fdededededeee	f   deee	f   d	e
fd
Zej                  ej                  fdededededeee	f   deee	f   d	efdZej                  ej                  fdededededeee	f   deee	f   d	efdZej                  ej                  fdededededeee	f   deee	f   d	e
fdZej                  ej                  fdededededeee	f   deee	f   d	efdZej                  ej                  fdededededeee	f   deee	f   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 )(WebChannelListr    c                 2    t         |   |       d| _        y)zl
        Initialize the WebChannelList

        :param version: Version that contains the resource

        z/WebChannelsN)r)   r*   ry   )r/   r    r0   s     r   r*   zWebChannelList.__init__6  s     	!"	r   r%   identitycustomer_friendly_namechat_friendly_namechat_unique_namepre_engagement_datar1   c           	          t        j                  ||||||d      }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)
        FlexFlowSidIdentityCustomerFriendlyNameChatFriendlyNameChatUniqueNamePreEngagementDatar   r   r   r   r   r   )r   r   r5   create_with_response_infory   	r/   r%   r   r   r   r   r   r   r   s	            r   _createzWebChannelList._createA  s|      yy,$(>$6"2%8	
 ))^-PQR"E.}}66tyytW 7 
 	
r   c                 d    | j                  ||||||      \  }}}t        | j                  |      S )a  
        Create the WebChannelInstance

        :param flex_flow_sid: The SID of the Flex Flow.
        :param identity: The chat identity.
        :param customer_friendly_name: The chat participant's friendly name.
        :param chat_friendly_name: The chat channel's friendly name.
        :param chat_unique_name: The chat channel's unique name.
        :param pre_engagement_data: The pre-engagement data.

        :returns: The created WebChannelInstance
        r%   r   r   r   r   r   )r   r   r5   	r/   r%   r   r   r   r   r   r!   r   s	            r   createzWebChannelList.createe  sB    * '#91- 3 % 
A "$--99r   c                     | j                  ||||||      \  }}}	t        | j                  |      }
t        |
||	      S )a  
        Create the WebChannelInstance and return response metadata

        :param flex_flow_sid: The SID of the Flex Flow.
        :param identity: The chat identity.
        :param customer_friendly_name: The chat participant's friendly name.
        :param chat_friendly_name: The chat channel's friendly name.
        :param chat_unique_name: The chat channel's unique name.
        :param pre_engagement_data: The pre-engagement data.

        :returns: ApiResponse with instance, status code, and headers
        r   r   )r   r   r5   r   r/   r%   r   r   r   r   r   r!   r   r   r   s              r   create_with_http_infoz$WebChannelList.create_with_http_info  sQ    * )-'#91- 3 )5 )
%g &dmmW=k7SSr   c           	         K   t        j                  ||||||d      }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   r   r5   create_with_response_info_asyncry   r   s	            r   _create_asynczWebChannelList._create_async  s       yy,$(>$6"2%8	
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A*A3,A1-A3c                    K   | j                  ||||||       d{   \  }}}t        | j                  |      S 7 w)a  
        Asynchronously create the WebChannelInstance

        :param flex_flow_sid: The SID of the Flex Flow.
        :param identity: The chat identity.
        :param customer_friendly_name: The chat participant's friendly name.
        :param chat_friendly_name: The chat channel's friendly name.
        :param chat_unique_name: The chat channel's unique name.
        :param pre_engagement_data: The pre-engagement data.

        :returns: The created WebChannelInstance
        r   N)r   r   r5   r   s	            r   create_asynczWebChannelList.create_async  sR     * #00'#91- 3 1 
 
A "$--99
s   ><>c                    K   | j                  ||||||       d{   \  }}}	t        | j                  |      }
t        |
||	      S 7 ,w)a  
        Asynchronously create the WebChannelInstance and return response metadata

        :param flex_flow_sid: The SID of the Flex Flow.
        :param identity: The chat identity.
        :param customer_friendly_name: The chat participant's friendly name.
        :param chat_friendly_name: The chat channel's friendly name.
        :param chat_unique_name: The chat channel's unique name.
        :param pre_engagement_data: The pre-engagement data.

        :returns: ApiResponse with instance, status code, and headers
        r   Nr   )r   r   r5   r   r   s              r   create_with_http_info_asyncz*WebChannelList.create_with_http_info_async  sb     * /3.@.@'#91- 3 /A /
 )
%g &dmmW=k7SS)
s   AA
-Alimit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )a`  
        Streams WebChannelInstance 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   )r5   read_limitspagestreamr/   r   r   limitsr   s        r   r   zWebChannelList.stream  sJ    ( **5)<yy6+#6y7}}##D&/::r   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)ao  
        Asynchronously streams WebChannelInstance 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   )r5   r   
page_asyncstream_asyncr   s        r   r   zWebChannelList.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 WebChannelInstance 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   )r5   r   page_with_http_infor   r   r   r   r/   r   r   r   page_response	generators         r   stream_with_http_infoz$WebChannelList.stream_with_http_info9  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 WebChannelInstance 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   )r5   r   page_with_http_info_asyncr   r   r   r   r   s         r   stream_with_http_info_asyncz*WebChannelList.stream_with_http_info_asyncQ  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB c                 :    t        | j                  ||            S )a  
        Lists WebChannelInstance 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WebChannelList.listk  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 WebChannelInstance 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WebChannelList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists WebChannelInstance 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   r   rl   s          r   list_with_http_infoz"WebChannelList.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 WebChannelInstance 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   r   r   rl   s           r   list_with_http_info_asyncz(WebChannelList.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                  |      S )ay  
        Retrieve a single page of WebChannelInstance 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 WebChannelInstance
        	PageTokenr   PageSizer   r   r   r   r   r}   r~   paramsr   )r   r   r5   r   ry   r   r/   r   r   r   r   r   responses          r   r   zWebChannelList.page  sy      yy'#%
 ))^-PQR.==%%diig & 
 dmmX66r   c                   K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	a  
        Asynchronously retrieve a single page of WebChannelInstance 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 WebChannelInstance
        r  r   r   r   r   r   r  N)r   r   r5   r   ry   r   r  s          r   r   zWebChannelList.page_async  s       yy'#%
 ))^-PQR.11diig 2 
 
 dmmX66
s   A"B$A?%Bc                    t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | 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 WebChannelPage, status code, and headers
        r  r   r   r   r   r   r  r   )r   r   r5   page_with_response_infory   r   r   
r/   r   r   r   r   r   r  r   response_headersr   s
             r   r   z"WebChannelList.page_with_http_info  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ dmmX6+GWXXr   c                 *  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  |      }	t        |	||	      S 7 ,w)
ak  
        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 WebChannelPage, status code, and headers
        r  r   r   r   r   r   r  Nr   )r   r   r5   page_with_response_info_asyncry   r   r   r  s
             r   r   z(WebChannelList.page_with_http_info_async6  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 dmmX6+GWXXs   A"B$B%-B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )z
        Retrieve a specific page of WebChannelInstance records from the API.
        Request is executed immediately

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

        :returns: Page of WebChannelInstance
        r   )r5   domaintwiliorequestr   r/   r  r  s      r   get_pagezWebChannelList.get_pageZ  s7     ==''..66ujIdmmX66r   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of WebChannelInstance records from the API.
        Request is executed immediately

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

        :returns: Page of WebChannelInstance
        r   N)r5   r  r  request_asyncr   r  s      r   get_page_asynczWebChannelList.get_page_asyncf  sD      --44BB5*UUdmmX66 Vs   4AAAr"   c                 0    t        | j                  |      S zs
        Constructs a WebChannelContext

        :param sid: The SID of the WebChannel resource to update.
        r3   r4   r5   r/   r"   s     r   r+   zWebChannelList.getr       !C88r   c                 0    t        | j                  |      S r  r  r  s     r   __call__zWebChannelList.__call__z  r  r   c                      y)r]   z"<Twilio.FlexApi.V1.WebChannelList>r   r6   s    r   ro   zWebChannelList.__repr__  r   r   )NN),r   r   r   r   r*   r   rt   rq   r   rp   r   r   r   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r4   r+   r  ro   ru   rv   s   @r   r   r   4  s7   	# 	#" 06||28,,"
"
 "
 !$	"

  "
  V,"
 #3;/"
 
"
T 06||28,,:: : !$	:
  :  V,: #3;/: 
:J 06||28,,TT T !$	T
  T  V,T #3;/T 
TL 06||28,,"
"
 "
 !$	"

  "
  V,"
 #3;/"
 
"
T 06||28,,:: : !$	:
  :  V,: #3;/: 
:J 06||28,,TT T !$	T
  T  V,T #3;/T 
TD  $#';}; 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,,(.	7#v+&7 3;'7 f%	7
 
7F *0*0,,(.	7#v+&7 3;'7 f%	7
 
7F *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
73 
7> 
7
7s 
7~ 
79s 90 99C 9$5 94# 4r   r   N)__doc__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   r4   r   r   r   r   r   <module>r+     sj     L L L + 0 8 : 2 ' !IK) IKXxJ xJv	4T 4&T	4\ T	4r   