
    d{i                         d Z ddlmZ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 - Notify
    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.
    )date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dZdZy)BindingInstance.BindingTypeapngcmsmsfcmzfacebook-messengeralexaN)	__name__
__module____qualname__APNGCMSMSFCMFACEBOOK_MESSENGERALEXA     c/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/notify/v1/service/binding.pyBindingTyper      s!    1r(   r*   versionpayload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      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        ||xs | j                  d| _        d | _        y )Nr.   account_sidr-   credential_siddate_createddate_updatednotification_protocol_versionendpointidentitybinding_typeaddresstagsurllinksr-   r.   )super__init__getr.   r0   r-   r1   r   iso8601_datetimer2   r3   r4   r5   r6   r7   r8   r9   r:   r;   	_solution_context)selfr+   r,   r-   r.   	__class__s        r)   r>   zBindingInstance.__init__5   sB    	!")++e"4*1++m*D*1++m*D-4[[9I-J0;0L0LKK'1
 1<0L0LKK'1
 =DKK+=
* (/{{:'>'.{{:'>+2;;~+F&-kk)&<)0V)<	")++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.   r<   )rB   BindingContext_versionrA   rC   s    r)   _proxyzBindingInstance._proxyY   sE     == * NN=9NN5)DM
 }}r(   c                 6    | j                   j                         S zj
        Deletes the BindingInstance


        :returns: True if delete succeeds, False otherwise
        )rJ   deleterI   s    r)   rM   zBindingInstance.deletei   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)rJ   delete_asyncrI   s    r)   rP   zBindingInstance.delete_asyncr   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the BindingInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )rJ   delete_with_http_inforI   s    r)   rS   z%BindingInstance.delete_with_http_info{   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)rJ   delete_with_http_info_asyncrI   s    r)   rU   z+BindingInstance.delete_with_http_info_async   s!      [[<<>>>>rQ   c                 6    | j                   j                         S )[
        Fetch the BindingInstance


        :returns: The fetched BindingInstance
        )rJ   fetchrI   s    r)   rX   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)rJ   fetch_asyncrI   s    r)   r[   zBindingInstance.fetch_async   s!      [[,,....rQ   c                 6    | j                   j                         S )z
        Fetch the BindingInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )rJ   fetch_with_http_inforI   s    r)   r]   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)rJ   fetch_with_http_info_asyncrI   s    r)   r_   z*BindingInstance.fetch_with_http_info_async   s!      [[;;====rQ   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.Notify.V1.BindingInstance {}>joinrA   itemsrf   rC   contexts     r)   __repr__zBindingInstance.__repr__   s6     ((SDNN<P<P<RSS6==gFFr(   N)rE   rG   )rE   r   )r   r   r    objectr*   r   r   strr   r   r>   propertyrJ   boolrM   rP   r   rS   rU   rX   r[   r]   r_   rs   __classcell__rD   s   @r)   r   r      s    f , ""7"7 c3h"7 	"7
 c]"7H  $ $0D 03{ 3?; ?#/2k 2>+ >G# G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 )rG   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/notify/api/service-resource) to fetch the resource from.
        :param sid: The Twilio-provided string that uniquely identifies the Binding resource to fetch.
        r<   z&/Services/{service_sid}/Bindings/{sid}Nr'   r=   r>   rA   rf   _uri)rC   r+   r-   r.   rD   s       r)   r>   zBindingContext.__init__   sB     	! '
 D<CCUdnnU	r(   rE   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   ofrH   delete_with_response_infor~   rC   r   s     r)   _deletezBindingContext._delete   s8     ))B-}}66G 7 
 	
r(   c                 .    | j                         \  }}}|S rL   )r   rC   success_s      r)   rM   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   rC   r   r   r   s       r)   rS   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)
        r   r   N)r   r   rH   delete_with_response_info_asyncr~   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rO   )r   r   s      r)   rP   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)   rU   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GETr   )r   r   rH   fetch_with_response_infor~   r   s     r)   _fetchzBindingContext._fetch  sB     ))B-.}}55dii 6 
 	
r(   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         S )rW   r-   r.   r<   )r   r   rH   rA   rC   r,   r   s      r)   rX   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.   r<   r   )r   r   rH   rA   r   rC   r,   r   r   instances        r)   r]   z#BindingContext.fetch_with_http_info1  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   r   N)r   r   rH   fetch_with_response_info_asyncr~   r   s     r)   _fetch_asynczBindingContext._fetch_asyncA  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)rZ   Nr-   r.   r<   )r   r   rH   rA   r   s      r)   r[   zBindingContext.fetch_asyncQ  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.   r<   r   )r   r   rH   rA   r   r   s        r)   r_   z)BindingContext.fetch_with_http_info_async`  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 )ra   rb   c              3   F   K   | ]  \  }}d j                  ||        ywrd   re   rg   s      r)   rk   z*BindingContext.__repr__.<locals>.<genexpr>v  rl   rm   z$<Twilio.Notify.V1.BindingContext {}>rn   rq   s     r)   rs   zBindingContext.__repr__p  s6     ((SDNN<P<P<RSS5<<WEEr(   )r   r   r    r   rv   r>   tupler   rx   rM   r   rS   r   rP   rU   r   r   rX   r]   r   r[   r_   rs   ry   rz   s   @r)   rG   rG      s    V Vc V V"
 
 S{ S
U 
D S; S
 
 
 
Tk T 
E 
 
? 
T+ T F# Fr(   rG   c                   2    e Zd Zdeeef   defdZdefdZy)BindingPager,   rE   c                 L    t        | j                  || j                  d         S )zm
        Build an instance of BindingInstance

        :param payload: Payload response from the API
        r-   r-   )r   rH   rA   )rC   r,   s     r)   get_instancezBindingPage.get_instance|  s%     MM7}0M
 	
r(   c                      y)ra   z<Twilio.Notify.V1.BindingPage>r'   rI   s    r)   rs   zBindingPage.__repr__       0r(   N)	r   r   r    r   rv   r   r   r   rs   r'   r(   r)   r   r   z  s)    
DcN 
 
0# 0r(   r   c                       e Zd Zdedef fdZej                  ej                  ej                  ej                  fdeddde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                  fdeddde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                  fdeddde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                  fdeddde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                  fdeddde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                  fdeddde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                  ddfdeee
f   deee
f   dee	e   e
f   dee	e   e
f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ddfdeee
f   deee
f   dee	e   e
f   dee	e   e
f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ddfdeee
f   deee
f   dee	e   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                  ddfdeee
f   deee
f   dee	e   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                  ddfdeee
f   deee
f   dee	e   e
f   dee	e   e
f   dee   dee   de	e   fdZej                  ej                  ej                  ej                  ddfdeee
f   deee
f   dee	e   e
f   dee	e   e
f   dee   dee   de	e   fdZej                  ej                  ej                  ej                  ddfdeee
f   deee
f   dee	e   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                  ddfdeee
f   deee
f   dee	e   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                  ej                  ej                  fdeee
f   deee
f   dee	e   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                  ej                  ej                  fdeee
f   deee
f   dee	e   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                  ej                  ej                  fdeee
f   deee
f   dee	e   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                  ej                  ej                  fdeee
f   deee
f   dee	e   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/notify/api/service-resource) to read the resource from.

        r-   z /Services/{service_sid}/BindingsNr'   r}   )rC   r+   r-   rD   s      r)   r>   zBindingList.__init__  s@     	! ;
 >6==OO	r(   r6   r7   r   r8   tagr4   r1   r5   rE   c           
          t        j                  |||t        j                  |d       |||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)
        c                     | S rt   r'   es    r)   <lambda>z%BindingList._create.<locals>.<lambda>      A r(   Identityr*   AddressTagNotificationProtocolVersionCredentialSidEndpointContent-Type!application/x-www-form-urlencodedr   r   POSTr   r   r   r   )r   r   r   maprH   create_with_response_infor~   
rC   r6   r7   r8   r   r4   r1   r5   r   r   s
             r)   _createzBindingList._create  s    " yy$+" }}S+6/L!/$

 ))^-PQR"E.}}66tyytW 7 
 	
r(   c           	          | j                  |||||||      \  }}	}	t        | j                  || j                  d         S )a]  
        Create the BindingInstance

        :param identity: The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Up to 20 Bindings can be created for the same Identity in a given Service.
        :param binding_type:
        :param address: The channel-specific address. For APNS, the device token. For FCM and GCM, the registration token. For SMS, a phone number in E.164 format. For Facebook Messenger, the Messenger ID of the user or a phone number in E.164 format.
        :param tag: A tag that can be used to select the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 20 tags.
        :param notification_protocol_version: The protocol version to use to send the notification. This defaults to the value of `default_xxxx_notification_protocol_version` for the protocol in the [Service](https://www.twilio.com/docs/notify/api/service-resource). The current version is `\"3\"` for `apn`, `fcm`, and `gcm` type Bindings. The parameter is not applicable to `sms` and `facebook-messenger` type Bindings as the data format is fixed.
        :param credential_sid: The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) resource to be used to send notifications to this Binding. If present, this overrides the Credential specified in the Service resource. Applies to only `apn`, `fcm`, and `gcm` type Bindings.
        :param endpoint: Deprecated.

        :returns: The created BindingInstance
        r6   r7   r8   r   r4   r1   r5   r-   r   )r   r   rH   rA   
rC   r6   r7   r8   r   r4   r1   r5   r,   r   s
             r)   createzBindingList.create  sU    . %*G) % 
A MM7}0M
 	
r(   c           	          | j                  |||||||      \  }}	}
t        | j                  || j                  d         }t	        ||	|
      S )a  
        Create the BindingInstance and return response metadata

        :param identity: The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Up to 20 Bindings can be created for the same Identity in a given Service.
        :param binding_type:
        :param address: The channel-specific address. For APNS, the device token. For FCM and GCM, the registration token. For SMS, a phone number in E.164 format. For Facebook Messenger, the Messenger ID of the user or a phone number in E.164 format.
        :param tag: A tag that can be used to select the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 20 tags.
        :param notification_protocol_version: The protocol version to use to send the notification. This defaults to the value of `default_xxxx_notification_protocol_version` for the protocol in the [Service](https://www.twilio.com/docs/notify/api/service-resource). The current version is `\"3\"` for `apn`, `fcm`, and `gcm` type Bindings. The parameter is not applicable to `sms` and `facebook-messenger` type Bindings as the data format is fixed.
        :param credential_sid: The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) resource to be used to send notifications to this Binding. If present, this overrides the Credential specified in the Service resource. Applies to only `apn`, `fcm`, and `gcm` type Bindings.
        :param endpoint: Deprecated.

        :returns: ApiResponse with instance, status code, and headers
        r   r-   r   r   )r   r   rH   rA   r   rC   r6   r7   r8   r   r4   r1   r5   r,   r   r   r   s               r)   create_with_http_infoz!BindingList.create_with_http_info  sd    . )-%*G) )5 )
%g #MM7}0M
 k7SSr(   c           
        K   t        j                  |||t        j                  |d       |||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)
        c                     | S rt   r'   r   s    r)   r   z+BindingList._create_async.<locals>.<lambda>&  r   r(   r   r   r   r   r   r   r   N)r   r   r   r   rH   create_with_response_info_asyncr~   r   s
             r)   _create_asynczBindingList._create_async  s     " yy$+" }}S+6/L!/$

 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   B B	BB	c           	         K   | j                  |||||||       d{   \  }}	}	t        | j                  || j                  d         S 7 -w)al  
        Asynchronously create the BindingInstance

        :param identity: The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Up to 20 Bindings can be created for the same Identity in a given Service.
        :param binding_type:
        :param address: The channel-specific address. For APNS, the device token. For FCM and GCM, the registration token. For SMS, a phone number in E.164 format. For Facebook Messenger, the Messenger ID of the user or a phone number in E.164 format.
        :param tag: A tag that can be used to select the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 20 tags.
        :param notification_protocol_version: The protocol version to use to send the notification. This defaults to the value of `default_xxxx_notification_protocol_version` for the protocol in the [Service](https://www.twilio.com/docs/notify/api/service-resource). The current version is `\"3\"` for `apn`, `fcm`, and `gcm` type Bindings. The parameter is not applicable to `sms` and `facebook-messenger` type Bindings as the data format is fixed.
        :param credential_sid: The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) resource to be used to send notifications to this Binding. If present, this overrides the Credential specified in the Service resource. Applies to only `apn`, `fcm`, and `gcm` type Bindings.
        :param endpoint: Deprecated.

        :returns: The created BindingInstance
        r   Nr-   r   )r   r   rH   rA   r   s
             r)   create_asynczBindingList.create_async6  se     . #00%*G) 1 
 
A MM7}0M
 	

s   AA.Ac           	         K   | j                  |||||||       d{   \  }}	}
t        | j                  || j                  d         }t	        ||	|
      S 7 ;w)a  
        Asynchronously create the BindingInstance and return response metadata

        :param identity: The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Up to 20 Bindings can be created for the same Identity in a given Service.
        :param binding_type:
        :param address: The channel-specific address. For APNS, the device token. For FCM and GCM, the registration token. For SMS, a phone number in E.164 format. For Facebook Messenger, the Messenger ID of the user or a phone number in E.164 format.
        :param tag: A tag that can be used to select the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 20 tags.
        :param notification_protocol_version: The protocol version to use to send the notification. This defaults to the value of `default_xxxx_notification_protocol_version` for the protocol in the [Service](https://www.twilio.com/docs/notify/api/service-resource). The current version is `\"3\"` for `apn`, `fcm`, and `gcm` type Bindings. The parameter is not applicable to `sms` and `facebook-messenger` type Bindings as the data format is fixed.
        :param credential_sid: The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) resource to be used to send notifications to this Binding. If present, this overrides the Credential specified in the Service resource. Applies to only `apn`, `fcm`, and `gcm` type Bindings.
        :param endpoint: Deprecated.

        :returns: ApiResponse with instance, status code, and headers
        r   Nr-   r   r   )r   r   rH   rA   r   r   s               r)   create_with_http_info_asyncz'BindingList.create_with_http_info_asyncZ  su     . /3.@.@%*G) /A /
 )
%g #MM7}0M
 k7SS)
s   AA<AN
start_dateend_datelimit	page_sizec                     | 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 date start_date: Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param date end_date: Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read.
        :param List[str] tag: Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed.
        :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   r6   r   r   r   )rH   read_limitspagestream	rC   r   r   r6   r   r   r   limitsr   s	            r)   r   zBindingList.stream  s^    8 **5)<yy![)  
 }}##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 date start_date: Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param date end_date: Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read.
        :param List[str] tag: Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed.
        :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   )rH   r   
page_asyncstream_asyncr   s	            r)   r   zBindingList.stream_async  sl     8 **5)<__![) % 
 
 }}))$w@@
s   9A!A$A!c                     | j                   j                  ||      }| j                  |||||d         }| j                   j                  |j                  |d         }	|	|j
                  |j                  fS )a0  
        Streams BindingInstance and returns headers from first page


        :param date start_date: Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param date end_date: Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read.
        :param List[str] tag: Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed.
        :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   )rH   r   page_with_http_infor   r   r   r   
rC   r   r   r6   r   r   r   r   page_response	generators
             r)   stream_with_http_infoz!BindingList.stream_with_http_info  s~    4 **5)<00![) 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 date start_date: Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param date end_date: Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read.
        :param List[str] tag: Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed.
        :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   )rH   r   page_with_http_info_asyncr   r   r   r   r   s
             r)   stream_with_http_info_asyncz'BindingList.stream_with_http_info_async  s     4 **5)<"<<![) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   9BBABc           
      B    t        | j                  ||||||            S )ay  
        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 date start_date: Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param date end_date: Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read.
        :param List[str] tag: Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed.
        :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   r6   r   r   r   )listr   )rC   r   r   r6   r   r   r   s          r)   r   zBindingList.list  s4    6 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 date start_date: Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param date end_date: Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read.
        :param List[str] tag: Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed.
        :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   )rC   r   r   r6   r   r   r   records           r)   
list_asynczBindingList.list_async?  s`     : '+&7&7%!!# '8 ' !

 

 !

 

 
	
 

s0   ?2?:64
6:?6:?c                 j    | j                  ||||||      \  }}}	t        |      }
t        |
||	      S )a  
        Lists BindingInstance and returns headers from first page


        :param date start_date: Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param date end_date: Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read.
        :param List[str] tag: Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed.
        :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   )rC   r   r   r6   r   r   r   r   r   r   rp   s              r)   list_with_http_infozBindingList.list_with_http_infof  sM    4 +/*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 date start_date: Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param date end_date: Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read.
        :param List[str] tag: Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed.
        :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   )rC   r   r   r6   r   r   r   r   r   r   r   rp   s               r)   list_with_http_info_asyncz%BindingList.list_with_http_info_async  sr     4 150P0P! 1Q 1
 +
'	; -666&+
 7666;PPs4   A8A><:
<>A<>A
page_tokenpage_numberc           
         t        j                  t        j                  |      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 start_date: Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param end_date: Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read.
        :param tag: Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed.
        :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 rt   r'   r   s    r)   r   z"BindingList.page.<locals>.<lambda>      a r(   c                     | S rt   r'   r   s    r)   r   z"BindingList.page.<locals>.<lambda>  r   r(   	StartDateEndDater   r   	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )
r   r   r   iso8601_dater   rH   r   r~   r   rA   rC   r   r   r6   r   r   r   r   r   r   responses              r)   r   zBindingList.page  s    0 yy&33J?$11(;%MM(K@ }}S+6'#%

 ))^-PQR.==%%diig & 
 4==(DNNCCr(   c           
        K   t        j                  t        j                  |      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)a  
        Asynchronously retrieve a single page of BindingInstance records from the API.
        Request is executed immediately

        :param start_date: Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param end_date: Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read.
        :param tag: Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed.
        :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 rt   r'   r   s    r)   r   z(BindingList.page_async.<locals>.<lambda>  r   r(   c                     | S rt   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   rH   r   r~   r   rA   r  s              r)   r   zBindingList.page_async  s     0 yy&33J?$11(;%MM(K@ }}S+6'#%

 ))^-PQR.11diig 2 
 
 4==(DNNCC
s   B6C 8C9&C c           
         t        j                  t        j                  |      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 start_date: Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param end_date: Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read.
        :param tag: Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed.
        :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 rt   r'   r   s    r)   r   z1BindingList.page_with_http_info.<locals>.<lambda>&  r   r(   c                     | S rt   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   rH   page_with_response_infor~   r   rA   r   rC   r   r   r6   r   r   r   r   r   r   r	  r   response_headersr   s                 r)   r   zBindingList.page_with_http_info
  s    0 yy&33J?$11(;%MM(K@ }}S+6'#%

 ))^-PQR.26--2W2Wdiig 3X 3
/+/ 4==(DNNC+GWXXr(   c           
        K   t        j                  t        j                  |      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)a  
        Asynchronously retrieve a single page with response metadata


        :param start_date: Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param end_date: Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`.
        :param identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read.
        :param tag: Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed.
        :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 rt   r'   r   s    r)   r   z7BindingList.page_with_http_info_async.<locals>.<lambda>T  r   r(   c                     | S rt   r'   r   s    r)   r   z7BindingList.page_with_http_info_async.<locals>.<lambda>U  r   r(   r   r   r   r   r   r   r  Nr   )r   r   r   r  r   rH   page_with_response_info_asyncr~   r   rA   r   r  s                 r)   r   z%BindingList.page_with_http_info_async8  s     0 yy&33J?$11(;%MM(K@ }}S+6'#%

 ))^-PQR. --==$))D' >   	0+/
 4==(DNNC+GWXXs   B6C28C098C2
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   )rH   domaintwiliorequestr   rA   rC   r  r	  s      r)   get_pagezBindingList.get_pageh  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)rH   r  r  request_asyncr   rA   r  s      r)   get_page_asynczBindingList.get_page_asynct  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: The Twilio-provided string that uniquely identifies the Binding resource to fetch.
        r-   r<   rG   rH   rA   rC   r.   s     r)   r?   zBindingList.get  %     MMt~~m'D#
 	
r(   c                 L    t        | j                  | j                  d   |      S r"  r#  r$  s     r)   __call__zBindingList.__call__  r%  r(   c                      y)ra   z<Twilio.Notify.V1.BindingList>r'   rI   s    r)   rs   zBindingList.__repr__  r   r(   )-r   r   r    r   rv   r>   r   unsetr	   r   ru   r   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   rG   r?   r'  rs   ry   rz   s   @r)   r   r     s   P Pc P* )/<BLL-3\\'-||$
$
 4$
 	$

 49f$%$
 (-S&['9$
 c6k*$
 V$$
 
$
V )/<BLL-3\\'-||"
"
 4"
 	"

 49f$%"
 (-S&['9"
 c6k*"
 V$"
 
"
R )/<BLL-3\\'-||#T#T 4#T 	#T
 49f$%#T (-S&['9#T c6k*#T V$#T 
#TT )/<BLL-3\\'-||$
$
 4$
 	$

 49f$%$
 (-S&['9$
 c6k*$
 V$$
 
$
V )/<BLL-3\\'-||"
"
 4"
 	"

 49f$%"
 (-S&['9"
 c6k*"
 V$"
 
"
R )/<BLL-3\\'-||#T#T 4#T 	#T
 49f$%#T (-S&['9#T c6k*#T V$#T 
#TN +1,,(.-3\\(.##'%;$,'%; f%%; S	6)*	%;
 49f$%%; }%; C=%; 
/	"%;R +1,,(.-3\\(.##'%A$,'%A f%%A S	6)*	%A
 49f$%%A }%A C=%A 
	'%AR +1,,(.-3\\(.##'$M$,'$M f%$M S	6)*	$M
 49f$%$M }$M C=$M 
$MP +1,,(.-3\\(.##'$M$,'$M f%$M S	6)*	$M
 49f$%$M }$M C=$M 
$MP +1,,(.-3\\(.##'$
$,'$
 f%$
 S	6)*	$

 49f$%$
 }$
 C=$
 
o	$
P +1,,(.-3\\(.##'%
$,'%
 f%%
 S	6)*	%

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