
    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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 - Conversations
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserialize	serializevalues)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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 )BindingInstancec                       e Zd ZdZdZdZdZy)BindingInstance.BindingTypeapngcmfcmtwilsockN)__name__
__module____qualname__APNGCMFCMTWILSOCK     j/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/conversations/v1/service/binding.pyBindingTyper      s    r$   r&   versionpayloadchat_service_sidsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _	        t        j                  |j                  d            | _
        |j                  d      | _        |j                  d      | _        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        ||xs | j                  d| _        d | _        y )Nr*   account_sidr)   credential_siddate_createddate_updatedendpointidentitybinding_typemessage_typesurlr)   r*   )super__init__getr*   r,   r)   r-   r   iso8601_datetimer.   r/   r0   r1   r2   r3   r4   	_solution_context)selfr'   r(   r)   r*   	__class__s        r%   r7   zBindingInstance.__init__0   s    	!")++e"4*1++m*D/6{{;M/N-4[[9I-J0;0L0LKK'1
 1<0L0LKK'1
 (/{{:'>'.{{:'>EL[[F
 3:++o2N")++e"4 !1?$((
 37r$   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: BindingContext for this BindingInstance
        r)   r*   r5   )r;   BindingContext_versionr:   r<   s    r%   _proxyzBindingInstance._proxyQ   sF     == *!%0B!CNN5)DM
 }}r$   c                 6    | j                   j                         S zj
        Deletes the BindingInstance


        :returns: True if delete succeeds, False otherwise
        )rC   deleterB   s    r%   rF   zBindingInstance.deletea   s     {{!!##r$   c                 R   K   | j                   j                          d{   S 7 wz
        Asynchronous coroutine that deletes the BindingInstance


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


        :returns: ApiResponse with success boolean, status code, and headers
        )rC   delete_with_http_inforB   s    r%   rL   z%BindingInstance.delete_with_http_infos   s     {{0022r$   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the BindingInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)rC   delete_with_http_info_asyncrB   s    r%   rN   z+BindingInstance.delete_with_http_info_async|   s!      [[<<>>>>rJ   c                 6    | j                   j                         S )[
        Fetch the BindingInstance


        :returns: The fetched BindingInstance
        )rC   fetchrB   s    r%   rQ   zBindingInstance.fetch   s     {{  ""r$   c                 R   K   | j                   j                          d{   S 7 w)u
        Asynchronous coroutine to fetch the BindingInstance


        :returns: The fetched BindingInstance
        N)rC   fetch_asyncrB   s    r%   rT   zBindingInstance.fetch_async   s!      [[,,....rJ   c                 6    | j                   j                         S )z
        Fetch the BindingInstance with HTTP info


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


        :returns: ApiResponse with instance, status code, and headers
        N)rC   fetch_with_http_info_asyncrB   s    r%   rX   z*BindingInstance.fetch_with_http_info_async   s!      [[;;====rJ   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+BindingInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z,<Twilio.Conversations.V1.BindingInstance {}>joinr:   itemsr_   r<   contexts     r%   __repr__zBindingInstance.__repr__   s6     ((SDNN<P<P<RSS=DDWMMr$   N)r>   r@   )r>   r   )r   r   r   objectr&   r   r   strr   r   r7   propertyrC   boolrF   rI   r   rL   rN   rQ   rT   rV   rX   rl   __classcell__r=   s   @r%   r   r      s    f & "77 c3h7 	7
 c]7B  $ $0D 03{ 3?; ?#/2k 2>+ >N# N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)am  
        Initialize the BindingContext

        :param version: Version that contains the resource
        :param chat_service_sid: The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with.
        :param sid: A 34 character string that uniquely identifies this resource.
        r5   z+/Services/{chat_service_sid}/Bindings/{sid}Nr#   r6   r7   r:   r_   _uri)r<   r'   r)   r*   r=   s       r%   r7   zBindingContext.__init__   sG     	! !1
 IAHH 
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   ofrA   delete_with_response_inforw   r<   r}   s     r%   _deletezBindingContext._delete   s8     ))B-}}66G 7 
 	
r$   c                 .    | j                         \  }}}|S rE   )r   r<   success_s      r%   rF   zBindingContext.delete   s     Ar$   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the BindingInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_coder}   )r   r   r<   r   r   r}   s       r%   rL   z$BindingContext.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)
        ry   rz   N)r   r~   rA   delete_with_response_info_asyncrw   r   s     r%   _delete_asynczBindingContext._delete_async   sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wrH   )r   r   s      r%   rI   zBindingContext.delete_async   s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the BindingInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r%   rN   z*BindingContext.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GETrz   )r   r~   rA   fetch_with_response_inforw   r   s     r%   _fetchzBindingContext._fetch  sB     ))B-.}}55dii 6 
 	
r$   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         S )rP   r)   r*   r5   )r   r   rA   r:   r<   r(   r   s      r%   rQ   zBindingContext.fetch  sE     AMM!^^,>?u%	
 	
r$   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )z
        Fetch the BindingInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r)   r*   r5   r   )r   r   rA   r:   r   r<   r(   r   r}   instances        r%   rV   z#BindingContext.fetch_with_http_info+  sT     )-%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   rz   N)r   r~   rA   fetch_with_response_info_asyncrw   r   s     r%   _fetch_asynczBindingContext._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)rS   Nr)   r*   r5   )r   r   rA   r:   r   s      r%   rT   zBindingContext.fetch_asyncK  sT      #//11AMM!^^,>?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 BindingInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr)   r*   r5   r   )r   r   rA   r:   r   r   s        r%   rX   z)BindingContext.fetch_with_http_info_asyncZ  sd      /3.?.?.A(A%g"MM!^^,>?u%	
 k7SS )Bs   A"A A
A"c                     dj                  d | j                  j                         D              }dj                  |      S )rZ   r[   c              3   F   K   | ]  \  }}d j                  ||        ywr]   r^   r`   s      r%   rd   z*BindingContext.__repr__.<locals>.<genexpr>p  re   rf   z+<Twilio.Conversations.V1.BindingContext {}>rg   rj   s     r%   rl   zBindingContext.__repr__j  s6     ((SDNN<P<P<RSS<CCGLLr$   )r   r   r   r   ro   r7   tupler   rq   rF   r   rL   r   rI   rN   r   r   rQ   rV   r   rT   rX   rl   rr   rs   s   @r%   r@   r@      s    
 
3 
S 
&
 
 S{ S
U 
D S; S
 
 
 
Tk T 
E 
 
? 
T+ T M# Mr$   r@   c                   2    e Zd Zdeeef   defdZdefdZy)BindingPager(   r>   c                 L    t        | j                  || j                  d         S )zm
        Build an instance of BindingInstance

        :param payload: Payload response from the API
        r)   )r)   )r   rA   r:   )r<   r(   s     r%   get_instancezBindingPage.get_instancev  s&     MM7T^^DV5W
 	
r$   c                      y)rZ   z%<Twilio.Conversations.V1.BindingPage>r#   rB   s    r%   rl   zBindingPage.__repr__       7r$   N)	r   r   r   r   ro   r   r   r   rl   r#   r$   r%   r   r   t  s)    
DcN 
 
7# 7r$   r   c                       e Zd Zdedef fdZej                  ej                  ddfdee	d   e
f   dee	e   e
f   dee   d	ee   d
ee   f
dZej                  ej                  ddfdee	d   e
f   dee	e   e
f   dee   d	ee   d
ee   f
dZej                  ej                  ddfdee	d   e
f   dee	e   e
f   dee   d	ee   d
ef
dZej                  ej                  ddfdee	d   e
f   dee	e   e
f   dee   d	ee   d
ef
dZej                  ej                  ddfdee	d   e
f   dee	e   e
f   dee   d	ee   d
e	e   f
dZej                  ej                  ddfdee	d   e
f   dee	e   e
f   dee   d	ee   d
e	e   f
dZej                  ej                  ddfdee	d   e
f   dee	e   e
f   dee   d	ee   d
ef
dZej                  ej                  ddfdee	d   e
f   dee	e   e
f   dee   d	ee   d
ef
dZej                  ej                  ej                  ej                  ej                  fdee	d   e
f   dee	e   e
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                  ej                  ej                  fdee	d   e
f   dee	e   e
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                  ej                  ej                  fdee	d   e
f   dee	e   e
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                  ej                  ej                  fdee	d   e
f   dee	e   e
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 ) BindingListr'   r)   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)a  
        Initialize the BindingList

        :param version: Version that contains the resource
        :param chat_service_sid: The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with.

        r)   z%/Services/{chat_service_sid}/BindingsNr#   rv   )r<   r'   r)   r=   s      r%   r7   zBindingList.__init__  sB     	!  0
 C;BBTT^^T	r$   Nr2   r   r1   limit	page_sizer>   c                     | j                   j                  ||      }| j                  |||d         }| j                   j                  ||d         S )a  
        Streams BindingInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param List[&quot;BindingInstance.BindingType&quot;] binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, `fcm`, or `twilsock`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r2   r1   r   r   )rA   read_limitspagestreamr<   r2   r1   r   r   limitsr   s          r%   r   zBindingList.stream  sV    0 **5)<yy%F;DW  
 }}##D&/::r$   c                    K   | j                   j                  ||      }| j                  |||d          d{   }| j                   j                  ||d         S 7 #w)a  
        Asynchronously streams BindingInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param List[&quot;BindingInstance.BindingType&quot;] binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, `fcm`, or `twilsock`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r   Nr   )rA   r   
page_asyncstream_asyncr   s          r%   r   zBindingList.stream_async  sd     0 **5)<__%F;DW % 
 
 }}))$w@@	
s   7AA$Ac                     | j                   j                  ||      }| j                  |||d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams BindingInstance and returns headers from first page


        :param List[&quot;BindingInstance.BindingType&quot;] binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, `fcm`, or `twilsock`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: tuple of (generator, status_code, headers) where generator yields instances
        r   r   r   )rA   r   page_with_http_infor   r   r   r}   r<   r2   r1   r   r   r   page_response	generators           r%   stream_with_http_infoz!BindingList.stream_with_http_info  sv    , **5)<00%F;DW 1 
 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 BindingInstance and returns headers from first page


        :param List[&quot;BindingInstance.BindingType&quot;] binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, `fcm`, or `twilsock`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: tuple of (generator, status_code, headers) where generator yields instances
        r   r   Nr   )rA   r   page_with_http_info_asyncr   r   r   r}   r   s           r%   stream_with_http_info_asyncz'BindingList.stream_with_http_info_async  s     , **5)<"<<%F;DW = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   7BB ABc                 >    t        | j                  ||||            S )a#  
        Lists BindingInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param List[&quot;BindingInstance.BindingType&quot;] binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, `fcm`, or `twilsock`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r2   r1   r   r   )listr   )r<   r2   r1   r   r   s        r%   r   zBindingList.list  s.    . KK)!#	  
 	
r$   c                 ~   K   | j                  ||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a2  
        Asynchronously lists BindingInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param List[&quot;BindingInstance.BindingType&quot;] binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, `fcm`, or `twilsock`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   N)r   )r<   r2   r1   r   r   records         r%   
list_asynczBindingList.list_async5  sZ     2 '+&7&7)!#	 '8 ' !
 
 !
 
 	
 
s0   =0=842
48=48=c                 f    | j                  ||||      \  }}}t        |      }t        |||      S )a  
        Lists BindingInstance and returns headers from first page


        :param List[&quot;BindingInstance.BindingType&quot;] binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, `fcm`, or `twilsock`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: ApiResponse with list of instances, status code, and headers
        r   r   )r   r   r   )	r<   r2   r1   r   r   r   r   r}   ri   s	            r%   list_with_http_infozBindingList.list_with_http_infoV  sG    , +/*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 BindingInstance and returns headers from first page


        :param List[&quot;BindingInstance.BindingType&quot;] binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, `fcm`, or `twilsock`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: ApiResponse with list of instances, status code, and headers
        r   Nr   )r   r   )
r<   r2   r1   r   r   r   r   r}   r   ri   s
             r%   list_with_http_info_asyncz%BindingList.list_with_http_info_asyncu  sl     , 150P0P%	 1Q 1
 +
'	; -666&+
 7666;PPs4   A6A<:8
:<A:<A
page_tokenpage_numberc                 X   t        j                  t        j                  |d       t        j                  |d       |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||	      }t        | j                  || j                        S )
ad  
        Retrieve a single page of BindingInstance records from the API.
        Request is executed immediately

        :param binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, `fcm`, or `twilsock`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of BindingInstance
        c                     | S rm   r#   es    r%   <lambda>z"BindingList.page.<locals>.<lambda>      Q r$   c                     | S rm   r#   r   s    r%   r   z"BindingList.page.<locals>.<lambda>      a r$   r&   Identity	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedr   r   r   r{   r|   paramsr}   )	r   r~   r   maprA   r   rw   r   r:   	r<   r2   r1   r   r   r   r   r}   responses	            r%   r   zBindingList.page  s    ( yy(}}\;G%MM(K@'#%
 ))^-PQR.==%%diig & 
 4==(DNNCCr$   c                 t  K   t        j                  t        j                  |d       t        j                  |d       |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||	       d
{   }t        | j                  || j                        S 7 %w)as  
        Asynchronously retrieve a single page of BindingInstance records from the API.
        Request is executed immediately

        :param binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, `fcm`, or `twilsock`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of BindingInstance
        c                     | S rm   r#   r   s    r%   r   z(BindingList.page_async.<locals>.<lambda>  r   r$   c                     | S rm   r#   r   s    r%   r   z(BindingList.page_async.<locals>.<lambda>  r   r$   r   r   r   r   r   r   r   N)	r   r~   r   r   rA   r   rw   r   r:   r   s	            r%   r   zBindingList.page_async  s     ( yy(}}\;G%MM(K@'#%
 ))^-PQR.11diig 2 
 
 4==(DNNCC
s   BB8B6&B8c                 |   t        j                  t        j                  |d       t        j                  |d       |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||	      \  }}	}
t        | j                  || j                        }t        ||	|

      S )aJ  
        Retrieve a single page with response metadata


        :param binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, `fcm`, or `twilsock`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with BindingPage, status code, and headers
        c                     | S rm   r#   r   s    r%   r   z1BindingList.page_with_http_info.<locals>.<lambda>  r   r$   c                     | S rm   r#   r   s    r%   r   z1BindingList.page_with_http_info.<locals>.<lambda>  r   r$   r   r   r   r   r   r   r   r   )
r   r~   r   r   rA   page_with_response_inforw   r   r:   r   r<   r2   r1   r   r   r   r   r}   r   r   response_headersr   s               r%   r   zBindingList.page_with_http_info  s    ( yy(}}\;G%MM(K@'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ 4==(DNNC+GWXXr$   c                   K   t        j                  t        j                  |d       t        j                  |d       |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||	       d
{   \  }}	}
t        | j                  || j                        }t        ||	|
      S 7 7w)aY  
        Asynchronously retrieve a single page with response metadata


        :param binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, `fcm`, or `twilsock`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with BindingPage, status code, and headers
        c                     | S rm   r#   r   s    r%   r   z7BindingList.page_with_http_info_async.<locals>.<lambda>   r   r$   c                     | S rm   r#   r   s    r%   r   z7BindingList.page_with_http_info_async.<locals>.<lambda>!  r   r$   r   r   r   r   r   r   r   Nr   )
r   r~   r   r   rA   page_with_response_info_asyncrw   r   r:   r   r   s               r%   r   z%BindingList.page_with_http_info_async
  s     ( yy(}}\;G%MM(K@'#%
 ))^-PQR. --==$))D' >   	0+/
 4==(DNNC+GWXXs   BC
C8C

target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   || j
                        S )z
        Retrieve a specific page of BindingInstance records from the API.
        Request is executed immediately

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

        :returns: Page of BindingInstance
        r   )rA   domaintwiliorequestr   r:   r<   r   r   s      r%   get_pagezBindingList.get_page4  s=     ==''..66ujI4==(DNNCCr$   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   || j
                        S 7 %w)a  
        Asynchronously retrieve a specific page of BindingInstance records from the API.
        Request is executed immediately

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

        :returns: Page of BindingInstance
        r   N)rA   r   r   request_asyncr   r:   r   s      r%   get_page_asynczBindingList.get_page_async@  sJ      --44BB5*UU4==(DNNCC Vs   4AA&Ar*   c                 L    t        | j                  | j                  d   |      S z
        Constructs a BindingContext

        :param sid: A 34 character string that uniquely identifies this resource.
        r)   r5   r@   rA   r:   r<   r*   s     r%   r8   zBindingList.getL  '     MMDNN;M,NTW
 	
r$   c                 L    t        | j                  | j                  d   |      S r   r   r   s     r%   __call__zBindingList.__call__V  r   r$   c                      y)rZ   z%<Twilio.Conversations.V1.BindingList>r#   rB   s    r%   rl   zBindingList.__repr__`  r   r$   )&r   r   r   r   ro   r7   r   unsetr   r   rn   r   intr	   r   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r@   r8   r   rl   rr   rs   s   @r%   r   r     s   U U3 U$ LR<<-3\\##';D!>?GH; S	6)*; }	;
 C=; 
/	";B LR<<-3\\##'AD!>?GHA S	6)*A }	A
 C=A 
	'AB LR<<-3\\##'MD!>?GHM S	6)*M }	M
 C=M 
M@ LR<<-3\\##'MD!>?GHM S	6)*M }	M
 C=M 
M@ LR<<-3\\##'
D!>?GH
 S	6)*
 }	

 C=
 
o	
D LR<<-3\\##'
D!>?GH
 S	6)*
 }	

 C=
 
o	
F LR<<-3\\##'QD!>?GHQ S	6)*Q }	Q
 C=Q 
QB LR<<-3\\##'QD!>?GHQ S	6)*Q }	Q
 C=Q 
QB LR<<-3\\)/*0,,(.%DD!>?GH%D S	6)*%D #v+&	%D
 3;'%D f%%D 
%DR LR<<-3\\)/*0,,(.%DD!>?GH%D S	6)*%D #v+&	%D
 3;'%D f%%D 
%DR LR<<-3\\)/*0,,(.&YD!>?GH&Y S	6)*&Y #v+&	&Y
 3;'&Y f%&Y 
&YT LR<<-3\\)/*0,,(.(YD!>?GH(Y S	6)*(Y #v+&	(Y
 3;'(Y f%(Y 
(YT
D3 
D; 
D
Ds 
D{ 
D
s 
~ 

C 
N 
7# 7r$   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   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   r#   r$   r%   <module>r
     sm     L L L 6 6 0 8 : 2 ' !VN& VNr~M_ ~MB7$ 7*]7, ]7r$   