
    pi                         d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
mZmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ  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 - Api
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserializevalues)InstanceContext)InstanceResource)ListResource)Version)Pagec            
           e Zd Z G d de      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dZddZej(                  ej(                  ej(                  fdeeef   deeef   deeef   d
d fdZej(                  ej(                  ej(                  fdeeef   deeef   deeef   d
d fdZd
efdZ xZS )TriggerInstancec                       e Zd ZdZdZdZdZy)TriggerInstance.RecurringdailymonthlyyearlyalltimeN)__name__
__module____qualname__DAILYMONTHLYYEARLYALLTIME     m/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/usage/trigger.py	Recurringr      s    r"   r$   c                       e Zd ZdZdZdZy)TriggerInstance.TriggerFieldcountusagepriceN)r   r   r   COUNTUSAGEPRICEr!   r"   r#   TriggerFieldr&   !   s    r"   r-   versionpayloadaccount_sidsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |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 )Nr0   api_versioncallback_methodcallback_urlcurrent_valuedate_created
date_fireddate_updatedfriendly_name	recurringr1   
trigger_bytrigger_valueuriusage_categoryusage_record_urir0   r1   )super__init__getr0   r3   r4   r5   r6   r   rfc2822_datetimer7   r8   r9   r:   r;   r1   r<   r=   r>   r?   r@   	_solution_context)selfr.   r/   r0   r1   	__class__s        r#   rC   zTriggerInstance.__init__9   sx    	!*1++m*D*1++m*D.5kk:K.L+2;;~+F,3KK,H0;0L0LKK'1
 /:.J.JKK%/
 1<0L0LKK'1
 -4KK,H@GK@X")++e"4DKKKE
 -4KK,H")++e"4-4[[9I-J/6{{;M/N '?$((
 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: TriggerContext for this TriggerInstance
        r0   r1   rA   )rG   TriggerContext_versionrF   rH   s    r#   _proxyzTriggerInstance._proxya   sE     == * NN=9NN5)DM
 }}r"   c                 6    | j                   j                         S )j
        Deletes the TriggerInstance


        :returns: True if delete succeeds, False otherwise
        )rO   deleterN   s    r#   rR   zTriggerInstance.deleteq   s     {{!!##r"   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine that deletes the TriggerInstance


        :returns: True if delete succeeds, False otherwise
        N)rO   delete_asyncrN   s    r#   rU   zTriggerInstance.delete_asyncz   s!      [[--////   '%'c                 6    | j                   j                         S )[
        Fetch the TriggerInstance


        :returns: The fetched TriggerInstance
        )rO   fetchrN   s    r#   rY   zTriggerInstance.fetch   s     {{  ""r"   c                 R   K   | j                   j                          d{   S 7 w)u
        Asynchronous coroutine to fetch the TriggerInstance


        :returns: The fetched TriggerInstance
        N)rO   fetch_asyncrN   s    r#   r\   zTriggerInstance.fetch_async   s!      [[,,....rV   r4   r5   r:   c                 >    | j                   j                  |||      S )  
        Update the TriggerInstance

        :param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`.
        :param callback_url: The URL we should call using `callback_method` when the trigger fires.
        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.

        :returns: The updated TriggerInstance
        r4   r5   r:   )rO   updaterH   r4   r5   r:   s       r#   r`   zTriggerInstance.update   s)     {{!!+%' " 
 	
r"   c                 Z   K   | j                   j                  |||       d{   S 7 w)  
        Asynchronous coroutine to update the TriggerInstance

        :param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`.
        :param callback_url: The URL we should call using `callback_method` when the trigger fires.
        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.

        :returns: The updated TriggerInstance
        r_   N)rO   update_asyncra   s       r#   rd   zTriggerInstance.update_async   s7      [[--+%' . 
 
 	
 
s   "+)+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+TriggerInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z%<Twilio.Api.V2010.TriggerInstance {}>joinrF   itemsrk   rH   contexts     r#   __repr__zTriggerInstance.__repr__   s6     ((SDNN<P<P<RSS6==gFFr"   )N)rJ   rL   )rJ   r   )r   r   r   objectr$   r-   r   r   strr   r   rC   propertyrO   boolrR   rU   rY   r\   r   unsetr   r`   rd   rx   __classcell__rI   s   @r#   r   r      s[   F v 
0 "&7&7 c3h&7 	&7
 c]&7P  $ $0D 0#/ /5ll+1<<,2LL	
sF{+
 CK(
 S&[)	

 

. /5ll+1<<,2LL	
sF{+
 CK(
 S&[)	

 

*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ej                  ej                  ej                  fd
eeef   deeef   deeef   de	fdZej                  ej                  ej                  fd
eeef   deeef   deeef   de	fdZdefdZ xZS )rL   r.   r0   r1   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)am  
        Initialize the TriggerContext

        :param version: Version that contains the resource
        :param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to update.
        :param sid: The Twilio-provided string that uniquely identifies the UsageTrigger resource to update.
        rA   z1/Accounts/{account_sid}/Usage/Triggers/{sid}.jsonNr!   rB   rC   rF   rk   _uri)rH   r.   r0   r1   rI   s       r#   rC   zTriggerContext.__init__   sG     	! '
 OGNN 
nn
	r"   rJ   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )rQ   DELETEmethodr>   headers)r   ofrM   rR   r   rH   r   s     r#   rR   zTriggerContext.delete   s1     ))B-}}##8G#TTr"   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)rT   r   r   N)r   r   rM   rU   r   r   s     r#   rU   zTriggerContext.delete_async   sF      ))B-]]//G 0 
 
 	
 
s   AA
AA
c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      }t        | j                  || j                  d   | j                  d         S )rX   application/jsonAcceptGETr   r0   r1   rA   )r   r   rM   rY   r   r   rF   rH   r   r/   s      r#   rY   zTriggerContext.fetch   si     ))B-.--%%U		7%SMM}5u%	
 	
r"   c                   K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   }t        | j                  || j                  d   | j                  d         S 7 7w)	r[   r   r   r   r   Nr0   r1   rA   )r   r   rM   r\   r   r   rF   r   s      r#   r\   zTriggerContext.fetch_async  s~      ))B-.11dii 2 
 
 MM}5u%	
 	
	
s   ABB 	8Br4   r5   r:   c                 *   t        j                  |||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                  d   | j                  d	   
      S )r^   CallbackMethodCallbackUrlFriendlyName!application/x-www-form-urlencodedContent-Typer   r   POSTr   r>   datar   r0   r1   rA   )r   r   rM   r`   r   r   rF   rH   r4   r5   r:   r   r   r/   s          r#   r`   zTriggerContext.update$  s      yy"1+ -
 ))B-"E.--&&tyytW ' 
 MM}5u%	
 	
r"   c                 F  K   t        j                  |||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                  d	   | j                  d
         S 7 7w)rc   r   r   r   r   r   r   r   Nr0   r1   rA   )r   r   rM   rd   r   r   rF   r   s          r#   rd   zTriggerContext.update_asyncL  s       yy"1+ -
 ))B-"E.22tyytW 3 
 
 MM}5u%	
 	
	
s   A%B!'B(8B!c                     dj                  d | j                  j                         D              }dj                  |      S )rf   rg   c              3   F   K   | ]  \  }}d j                  ||        ywri   rj   rl   s      r#   rp   z*TriggerContext.__repr__.<locals>.<genexpr>z  rq   rr   z$<Twilio.Api.V2010.TriggerContext {}>rs   rv   s     r#   rx   zTriggerContext.__repr__t  s6     ((SDNN<P<P<RSS5<<WEEr"   )r   r   r   r   rz   rC   r|   rR   rU   r   rY   r\   r   r}   r   ry   r`   rd   rx   r~   r   s   @r#   rL   rL      s   
 
c 
 
&
U 
U
D 

 
*
? 
2 /5ll+1<<,2LL	&
sF{+&
 CK(&
 S&[)	&

 
&
T /5ll+1<<,2LL	&
sF{+&
 CK(&
 S&[)	&

 
&
PF# Fr"   rL   c                   2    e Zd Zdeeef   defdZdefdZy)TriggerPager/   rJ   c                 L    t        | j                  || j                  d         S )zm
        Build an instance of TriggerInstance

        :param payload: Payload response from the API
        r0   r0   )r   rM   rF   )rH   r/   s     r#   get_instancezTriggerPage.get_instance  s%     MM7}0M
 	
r"   c                      y)rf   z<Twilio.Api.V2010.TriggerPage>r!   rN   s    r#   rx   zTriggerPage.__repr__       0r"   N)	r   r   r   r   rz   r   r   r   rx   r!   r"   r#   r   r   ~  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ededeee	f   deee	f   d	ed
e	f   dede	f   de
fdZej                  ej                  ej                  ej                  fdedededeee	f   deee	f   d	ed
e	f   dede	f   de
fdZej                  ej                  ej                  ddfd	ed
e	f   dede	f   deee	f   dee   dee   dee
   fdZej                  ej                  ej                  ddfd	ed
e	f   dede	f   deee	f   dee   dee   dee
   fdZej                  ej                  ej                  ddfd	ed
e	f   dede	f   deee	f   dee   dee   dee
   fdZej                  ej                  ej                  ddfd	ed
e	f   dede	f   deee	f   dee   dee   dee
   fdZej                  ej                  ej                  ej                  ej                  ej                  fd	ed
e	f   dede	f   d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                  fd	ed
e	f   dede	f   d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 )"TriggerListr.   r0   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the TriggerList

        :param version: Version that contains the resource
        :param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to read.

        r0   z+/Accounts/{account_sid}/Usage/Triggers.jsonNr!   r   )rH   r.   r0   rI   s      r#   rC   zTriggerList.__init__  sF     	! ;
 IAHH 
nn
	r"   r5   r=   r?   r4   r:   r;   r   r<   r&   rJ   c           
         t        j                  |||||||d      }t        j                  ddi      }	d|	d<   d|	d<   | j                  j                  d| j                  ||	      }
t        | j                  |
| j                  d   	      S )
a  
        Create the TriggerInstance

        :param callback_url: The URL we should call using `callback_method` when the trigger fires.
        :param trigger_value: The usage value at which the trigger should fire.  For convenience, you can use an offset value such as `+30` to specify a trigger_value that is 30 units more than the current usage value. Be sure to urlencode a `+` as `%2B`.
        :param usage_category: The usage category that the trigger should watch.  Use one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) for this value.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`.
        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
        :param recurring:
        :param trigger_by:

        :returns: The created TriggerInstance
        r   TriggerValueUsageCategoryr   r   r$   	TriggerByr   r   r   r   r   r   r0   r   )r   r   rM   creater   r   rF   rH   r5   r=   r?   r4   r:   r;   r<   r   r   r/   s              r#   r   zTriggerList.create  s    0 yy+ -!/"1 -&'

 ))^-PQR"E.--&&tyytW ' 
 MM7}0M
 	
r"   c           
      6  K   t        j                  |||||||d      }t        j                  ddi      }	d|	d<   d|	d<   | j                  j                  d| j                  ||	       d{   }
t        | j                  |
| j                  d	   
      S 7 )w)a  
        Asynchronously create the TriggerInstance

        :param callback_url: The URL we should call using `callback_method` when the trigger fires.
        :param trigger_value: The usage value at which the trigger should fire.  For convenience, you can use an offset value such as `+30` to specify a trigger_value that is 30 units more than the current usage value. Be sure to urlencode a `+` as `%2B`.
        :param usage_category: The usage category that the trigger should watch.  Use one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) for this value.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`.
        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
        :param recurring:
        :param trigger_by:

        :returns: The created TriggerInstance
        r   r   r   r   r   r   r   Nr0   r   )r   r   rM   create_asyncr   r   rF   r   s              r#   r   zTriggerList.create_async  s     0 yy+ -!/"1 -&'

 ))^-PQR"E.22tyytW 3 
 
 MM7}0M
 	
	
s   A+B-B.*BNlimit	page_sizec                     | j                   j                  ||      }| j                  ||||d         }| j                   j                  ||d         S )a5  
        Streams TriggerInstance 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 &quot;TriggerInstance.Recurring&quot; recurring: The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers.
        :param &quot;TriggerInstance.TriggerField&quot; trigger_by: The trigger field of the UsageTriggers to read.  Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
        :param str usage_category: The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r;   r<   r?   r   r   )rM   read_limitspagestreamrH   r;   r<   r?   r   r   limitsr   s           r#   r   zTriggerList.stream	  s[    4 **5)<yy!)[)	  
 }}##D&/::r"   c                    K   | j                   j                  ||      }| j                  ||||d          d{   }| j                   j                  ||d         S 7 #w)aD  
        Asynchronously streams TriggerInstance 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 &quot;TriggerInstance.Recurring&quot; recurring: The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers.
        :param &quot;TriggerInstance.TriggerField&quot; trigger_by: The trigger field of the UsageTriggers to read.  Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
        :param str usage_category: The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
        :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   )rM   r   
page_asyncstream_asyncr   s           r#   r   zTriggerList.stream_async-  si     4 **5)<__!)[)	 % 
 
 }}))$w@@
s   8A A$A c           	      @    t        | j                  |||||            S )a  
        Lists TriggerInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param &quot;TriggerInstance.Recurring&quot; recurring: The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers.
        :param &quot;TriggerInstance.TriggerField&quot; trigger_by: The trigger field of the UsageTriggers to read.  Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
        :param str usage_category: The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
        :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<   r?   r   r   )listr   )rH   r;   r<   r?   r   r   s         r#   r   zTriggerList.listQ  s1    2 KK#%-#  
 	
r"   c                    K   | j                  |||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists TriggerInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param &quot;TriggerInstance.Recurring&quot; recurring: The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers.
        :param &quot;TriggerInstance.TriggerField&quot; trigger_by: The trigger field of the UsageTriggers to read.  Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
        :param str usage_category: The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
        :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   )rH   r;   r<   r?   r   r   records          r#   
list_asynczTriggerList.list_asynct  s]     6 '+&7&7#%-# '8 ' !	
 	
 !	
 	
 		
 	
s0   >1>953
59>59>
page_tokenpage_numberc           	         t        j                  ||||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }	t        | j                  |	| j                        S )a  
        Retrieve a single page of TriggerInstance records from the API.
        Request is executed immediately

        :param recurring: The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers.
        :param trigger_by: The trigger field of the UsageTriggers to read.  Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
        :param usage_category: The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
        :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 TriggerInstance
        r$   r   r   	PageTokenr   PageSizer   r   r   r   r   r   r>   paramsr   )r   r   rM   r   r   r   rF   
rH   r;   r<   r?   r   r   r   r   r   responses
             r#   r   zTriggerList.page  s    , yy&'!/'#%	
 ))^-PQR.==%%diig & 
 4==(DNNCCr"   c           	      "  K   t        j                  ||||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }	t        | j                  |	| j                        S 7 %w)	a  
        Asynchronously retrieve a single page of TriggerInstance records from the API.
        Request is executed immediately

        :param recurring: The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers.
        :param trigger_by: The trigger field of the UsageTriggers to read.  Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
        :param usage_category: The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
        :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 TriggerInstance
        r   r   r   r   r   r   r   N)r   r   rM   r   r   r   rF   r   s
             r#   r   zTriggerList.page_async  s     , yy&'!/'#%	
 ))^-PQR.11diig 2 
 
 4==(DNNCC
s   A%B'B(&B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   || j
                        S )z
        Retrieve a specific page of TriggerInstance records from the API.
        Request is executed immediately

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

        :returns: Page of TriggerInstance
        r   )rM   domaintwiliorequestr   rF   rH   r   r   s      r#   get_pagezTriggerList.get_page  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 TriggerInstance records from the API.
        Request is executed immediately

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

        :returns: Page of TriggerInstance
        r   N)rM   r   r   request_asyncr   rF   r   s      r#   get_page_asynczTriggerList.get_page_async  sJ      --44BB5*UU4==(DNNCC Vs   4AA&Ar1   c                 L    t        | j                  | j                  d   |      S z
        Constructs a TriggerContext

        :param sid: The Twilio-provided string that uniquely identifies the UsageTrigger resource to update.
        r0   rA   rL   rM   rF   rH   r1   s     r#   rD   zTriggerList.get  %     MMt~~m'D#
 	
r"   c                 L    t        | j                  | j                  d   |      S r   r   r   s     r#   __call__zTriggerList.__call__  r   r"   c                      y)rf   z<Twilio.Api.V2010.TriggerList>r!   rN   s    r#   rx   zTriggerList.__repr__  r   r"   ) r   r   r   r   rz   rC   r   r}   r   ry   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   rL   rD   r   rx   r~   r   s   @r#   r   r     sO   
 
c 
. /5ll,2LL@FDJLL/
/
 /
 	/

 sF{+/
 S&[)/
 4f<=/
 8&@A/
 
/
l /5ll,2LL@FDJLL/
/
 /
 	/

 sF{+/
 S&[)/
 4f<=/
 8&@A/
 
/
f AGDJLL-3\\##'";4f<="; 8&@A"; c6k*	";
 }"; C="; 
/	"";L AGDJLL-3\\##'"A4f<="A 8&@A"A c6k*	"A
 }"A C="A 
	'"AL AGDJLL-3\\##'!
4f<=!
 8&@A!
 c6k*	!

 }!
 C=!
 
o	!
J AGDJLL-3\\##'"
4f<="
 8&@A"
 c6k*	"

 }"
 C="
 
o	"
L AGDJLL-3\\)/*0,,(.(D4f<=(D 8&@A(D c6k*	(D
 #v+&(D 3;'(D f%(D 
(DX AGDJLL-3\\)/*0,,(.(D4f<=(D 8&@A(D c6k*	(D
 #v+&(D 3;'(D f%(D 
(DT
D3 
D; 
D
Ds 
D{ 
D
s 
~ 

C 
N 
0# 0r"   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rL   r   r   r!   r"   r#   <module>r      sg     L L L + 8 : 2 ' !mG& mG`rF_ rFj0$ 0*K0, K0r"   