
    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 - Chat
    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y)BindingInstance.BindingTypegcmapnfcmN)__name__
__module____qualname__GCMAPNFCM     a/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/chat/v2/service/binding.pyBindingTyper      s    r"   r$   versionpayloadservice_sidsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _	        |j                  d      | _
        |j                  d      | _        |j                  d      | _        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        |j                  d      | _        ||xs | j                  d| _        d | _        y )Nr(   account_sidr'   date_createddate_updatedendpointidentitycredential_sidbinding_typemessage_typesurllinksr'   r(   )super__init__getr(   r*   r'   r   iso8601_datetimer+   r,   r-   r.   r/   r0   r1   r2   r3   	_solution_context)selfr%   r&   r'   r(   	__class__s        r#   r6   zBindingInstance.__init__0   s"    	!")++e"4*1++m*D*1++m*D0;0L0LKK'1
 1<0L0LKK'1
 (/{{:'>'.{{:'>-4[[9I-JEL[[F
 3:++o2N")++e"429++g2F
 '?$((
 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(   r4   )r:   BindingContext_versionr9   r;   s    r#   _proxyzBindingInstance._proxyR   sE     == * NN=9NN5)DM
 }}r"   c                 6    | j                   j                         S zj
        Deletes the BindingInstance


        :returns: True if delete succeeds, False otherwise
        )rB   deleterA   s    r#   rE   zBindingInstance.deleteb   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)rB   delete_asyncrA   s    r#   rH   zBindingInstance.delete_asynck   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the BindingInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )rB   delete_with_http_inforA   s    r#   rK   z%BindingInstance.delete_with_http_infot   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)rB   delete_with_http_info_asyncrA   s    r#   rM   z+BindingInstance.delete_with_http_info_async}   s!      [[<<>>>>rI   c                 6    | j                   j                         S )[
        Fetch the BindingInstance


        :returns: The fetched BindingInstance
        )rB   fetchrA   s    r#   rP   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)rB   fetch_asyncrA   s    r#   rS   zBindingInstance.fetch_async   s!      [[,,....rI   c                 6    | j                   j                         S )z
        Fetch the BindingInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )rB   fetch_with_http_inforA   s    r#   rU   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)rB   fetch_with_http_info_asyncrA   s    r#   rW   z*BindingInstance.fetch_with_http_info_async   s!      [[;;====rI   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.Chat.V2.BindingInstance {}>joinr9   itemsr^   r;   contexts     r#   __repr__zBindingInstance.__repr__   s6     ((SDNN<P<P<RSS4;;GDDr"   N)r=   r?   )r=   r   )r   r   r   objectr$   r   r   strr   r   r6   propertyrB   boolrE   rH   r   rK   rM   rP   rS   rU   rW   rk   __classcell__r<   s   @r#   r   r      s    f 
( " 7 7 c3h 7 	 7
 c] 7D  $ $0D 03{ 3?; ?#/2k 2>+ >E# E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)a:  
        Initialize the BindingContext

        :param version: Version that contains the resource
        :param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Binding resource from.
        :param sid: The SID of the Binding resource to fetch.
        r4   z&/Services/{service_sid}/Bindings/{sid}Nr!   r5   r6   r9   r^   _uri)r;   r%   r'   r(   r<   s       r#   r6   zBindingContext.__init__   sB     	! '
 D<CCUdnnU	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_inforv   r;   r|   s     r#   _deletezBindingContext._delete   s8     ))B-}}66G 7 
 	
r"   c                 .    | j                         \  }}}|S rD   )r   r;   success_s      r#   rE   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#   rK   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)
        rx   ry   N)r   r}   r@   delete_with_response_info_asyncrv   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rG   )r   r   s      r#   rH   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#   rM   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GETry   )r   r}   r@   fetch_with_response_inforv   r   s     r#   _fetchzBindingContext._fetch  sB     ))B-.}}55dii 6 
 	
r"   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         S )rO   r'   r(   r4   )r   r   r@   r9   r;   r&   r   s      r#   rP   zBindingContext.fetch  sD     AMM}5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(   r4   r   )r   r   r@   r9   r   r;   r&   r   r|   instances        r#   rU   z#BindingContext.fetch_with_http_info*  sS     )-%g"MM}5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   ry   N)r   r}   r@   fetch_with_response_info_asyncrv   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)rR   Nr'   r(   r4   )r   r   r@   r9   r   s      r#   rS   zBindingContext.fetch_asyncJ  sS      #//11AMM}5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(   r4   r   )r   r   r@   r9   r   r   s        r#   rW   z)BindingContext.fetch_with_http_info_asyncY  sc      /3.?.?.A(A%g"MM}5u%	
 k7SS )Bs   A"A A
A"c                     dj                  d | j                  j                         D              }dj                  |      S )rY   rZ   c              3   F   K   | ]  \  }}d j                  ||        ywr\   r]   r_   s      r#   rc   z*BindingContext.__repr__.<locals>.<genexpr>o  rd   re   z"<Twilio.Chat.V2.BindingContext {}>rf   ri   s     r#   rk   zBindingContext.__repr__i  s6     ((SDNN<P<P<RSS3::7CCr"   )r   r   r   r   rn   r6   tupler   rp   rE   r   rK   r   rH   rM   r   r   rP   rU   r   rS   rW   rk   rq   rr   s   @r#   r?   r?      s    V Vc V V"
 
 S{ S
U 
D S; S
 
 
 
Tk T 
E 
 
? 
T+ T D# D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   r@   r9   )r;   r&   s     r#   get_instancezBindingPage.get_instanceu  s%     MM7}0M
 	
r"   c                      y)rY   z<Twilio.Chat.V2.BindingPage>r!   rA   s    r#   rk   zBindingPage.__repr__       .r"   N)	r   r   r   r   rn   r   r   r   rk   r!   r"   r#   r   r   s  s)    
DcN 
 
.# .r"   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)z
        Initialize the BindingList

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

        r'   z /Services/{service_sid}/BindingsNr!   ru   )r;   r%   r'   r<   s      r#   r6   zBindingList.__init__  s@     	! ;
 >6==OO	r"   Nr0   r   r.   limit	page_sizer=   c                     | j                   j                  ||      }| j                  |||d         }| j                   j                  ||d         S )ab  
        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`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/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   r0   r.   r   r   )r@   read_limitspagestreamr;   r0   r.   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)aq  
        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`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/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   )r@   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`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/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   )r@   r   page_with_http_infor   r   r   r|   r;   r0   r.   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`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/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   )r@   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`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/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
        r0   r.   r   r   )listr   )r;   r0   r.   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)a  
        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`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/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;   r0   r.   r   r   records         r#   
list_asynczBindingList.list_async4  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`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/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;   r0   r.   r   r   r   r   r|   rh   s	            r#   list_with_http_infozBindingList.list_with_http_infoU  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`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/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;   r0   r.   r   r   r   r   r|   r   rh   s
             r#   list_with_http_info_asyncz%BindingList.list_with_http_info_asynct  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 )
a@  
        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`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/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 rl   r!   es    r#   <lambda>z"BindingList.page.<locals>.<lambda>      Q r"   c                     | S rl   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   rz   r{   paramsr|   )	r   r}   r   mapr@   r   rv   r   r9   	r;   r0   r.   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)aO  
        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`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/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 rl   r!   r   s    r#   r   z(BindingList.page_async.<locals>.<lambda>  r   r"   c                     | S rl   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   r@   r   rv   r   r9   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 )a&  
        Retrieve a single page with response metadata


        :param binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/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 rl   r!   r   s    r#   r   z1BindingList.page_with_http_info.<locals>.<lambda>  r   r"   c                     | S rl   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   r@   page_with_response_inforv   r   r9   r   r;   r0   r.   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)a5  
        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`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
        :param identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/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 rl   r!   r   s    r#   r   z7BindingList.page_with_http_info_async.<locals>.<lambda>  r   r"   c                     | S rl   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   r@   page_with_response_info_asyncrv   r   r9   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   )r@   domaintwiliorequestr   r9   r;   r   r   s      r#   get_pagezBindingList.get_page3  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)r@   r   r   request_asyncr   r9   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 zl
        Constructs a BindingContext

        :param sid: The SID of the Binding resource to fetch.
        r'   r4   r?   r@   r9   r;   r(   s     r#   r7   zBindingList.getK  %     MMt~~m'D#
 	
r"   c                 L    t        | j                  | j                  d   |      S r   r   r   s     r#   __call__zBindingList.__call__U  r   r"   c                      y)rY   z<Twilio.Chat.V2.BindingList>r!   rA   s    r#   rk   zBindingList.__repr___  r   r"   )&r   r   r   r   rn   r6   r   unsetr   r   rm   r   intr	   r   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r?   r7   r   rk   rq   rr   s   @r#   r   r     s   P Pc P$ 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 
.# .r"   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 ' !WE& WEt|D_ |D~.$ .*]., ].r"   