
    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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)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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(                  ej(                  ej(                  ej(                  fdeeef   ded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d fdZej(                  ej(                  ej(                  ej(                  ej(                  ej(                  fdeeef   ded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d fdZdefdZ xZS )WebhookInstancec                       e Zd ZdZdZy)WebhookInstance.MethodGETPOSTN)__name__
__module____qualname__r   r        m/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/chat/v2/service/channel/webhook.pyMethodr      s    r   r   c                       e Zd ZdZdZdZy)WebhookInstance.TypewebhooktriggerstudioN)r   r   r   WEBHOOKTRIGGERSTUDIOr   r   r   Typer!      s    r   r(   versionpayloadservice_sidchannel_sidsidc                 <   t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        t        j                  |j                  d            | _        t        j                  |j                  d	            | _        |||xs | j                  d
| _        d | _        y )Nr-   account_sidr+   r,   typeurlconfigurationdate_createddate_updatedr+   r,   r-   )super__init__getr-   r/   r+   r,   r0   r1   r2   r   iso8601_datetimer3   r4   	_solution_context)selfr)   r*   r+   r,   r-   	__class__s         r   r7   zWebhookInstance.__init__0   s     	!")++e"4*1++m*D*1++m*D*1++m*D#*;;v#6	")++e"4:A++o:V0;0L0LKK'1
 1<0L0LKK'1

 '&?$((

 37r   returnc                     | j                   Et        | j                  | j                  d   | 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: WebhookContext for this WebhookInstance
        r+   r,   r-   r5   )r;   WebhookContext_versionr:   r<   s    r   _proxyzWebhookInstance._proxyO   sQ     == * NN=9 NN=9NN5)	DM }}r   c                 6    | j                   j                         S )j
        Deletes the WebhookInstance


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


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


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


        :returns: The fetched WebhookInstance
        N)rC   fetch_asyncrB   s    r   rP   zWebhookInstance.fetch_async{   s!      [[,,....rJ   configuration_urlconfiguration_methodr   configuration_filtersconfiguration_triggersconfiguration_flow_sidconfiguration_retry_countc                 D    | j                   j                  ||||||      S )  
        Update the WebhookInstance

        :param configuration_url: The URL of the webhook to call using the `configuration.method`.
        :param configuration_method:
        :param configuration_filters: The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger).
        :param configuration_triggers: A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
        :param configuration_flow_sid: The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`.
        :param configuration_retry_count: The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0.

        :returns: The updated WebhookInstance
        rQ   rR   rS   rT   rU   rV   )rC   updater<   rQ   rR   rS   rT   rU   rV   s          r   rZ   zWebhookInstance.update   s2    * {{!!/!5"7#9#9&? " 
 	
r   c                 `   K   | j                   j                  ||||||       d{   S 7 w)(  
        Asynchronous coroutine to update the WebhookInstance

        :param configuration_url: The URL of the webhook to call using the `configuration.method`.
        :param configuration_method:
        :param configuration_filters: The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger).
        :param configuration_triggers: A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
        :param configuration_flow_sid: The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`.
        :param configuration_retry_count: The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0.

        :returns: The updated WebhookInstance
        rY   N)rC   update_asyncr[   s          r   r^   zWebhookInstance.update_async   s@     * [[--/!5"7#9#9&? . 
 
 	
 
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+WebhookInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z#<Twilio.Chat.V2.WebhookInstance {}>joinr:   itemsre   r<   contexts     r   __repr__zWebhookInstance.__repr__   s6     ((SDNN<P<P<RSS4;;GDDr   N)r>   r@   )r>   r   )r   r   r   objectr   r(   r   r   strr   r   r7   propertyrC   boolrF   rI   rM   rP   r   unsetr   r   intrZ   r^   rr   __classcell__r=   s   @r   r   r      s    v 

$ "77 c3h7 	7
 7 c]7>   $ $0D 0#/ 17HN:@,,;A<<5;\\8>
 f-
 $$<f$DE
  %T#Y%67	

 !&d3i&7 8
 !&c6k 2
 $)f#5
 

@ 17HN:@,,;A<<5;\\8>
 f-
 $$<f$DE
  %T#Y%67	

 !&d3i&7 8
 !&c6k 2
 $)f#5
 

<E# Er   r   c                   P    e Zd Zde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                  ej                  ej                  ej                  fdeeef   ded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	fdZej                  ej                  ej                  ej                  ej                  ej                  fdeeef   ded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	fdZdefdZ xZS )r@   r)   r+   r,   r-   c                 |    t         |   |       |||d| _         dj                  di | j                  | _        y)a-  
        Initialize the WebhookContext

        :param version: Version that contains the resource
        :param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel that has the Webhook resource to update.
        :param channel_sid: The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`.
        :param sid: The SID of the Channel Webhook resource to update.
        r5   z=/Services/{service_sid}/Channels/{channel_sid}/Webhooks/{sid}Nr   r6   r7   r:   re   _uri)r<   r)   r+   r,   r-   r=   s        r   r7   zWebhookContext.__init__   sM     	! '&
 SKRR .. 		r   r>   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )rE   DELETEmethoduriheaders)r   ofrA   rF   r   r<   r   s     r   rF   zWebhookContext.delete   s1     ))B-}}##8G#TTr   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)rH   r   r   N)r   r   rA   rI   r   r   s     r   rI   zWebhookContext.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   | j                  d         S )	rL   application/jsonAcceptr   r   r+   r,   r-   r5   )r   r   rA   rM   r   r   r:   r<   r   r*   s      r   rM   zWebhookContext.fetch   su     ))B-.--%%U		7%SMM}5}5u%
 	
r   c                 $  K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   }t        | j                  || j                  d   | j                  d   | j                  d   	      S 7 Ew)
rO   r   r   r   r   Nr+   r,   r-   r5   )r   r   rA   rP   r   r   r:   r   s      r   rP   zWebhookContext.fetch_async  s      ))B-.11dii 2 
 
 MM}5}5u%
 	
	
s   ABB	ABrQ   rR   r   rS   rT   rU   rV   c           	         t        j                  ||t        j                  |d       t        j                  |d       ||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||	      }	t        | j                  |	| j                  d
   | j                  d   | j                  d         S )rX   c                     | S rs   r   es    r   <lambda>z'WebhookContext.update.<locals>.<lambda>F      Q r   c                     | S rs   r   r   s    r   r   z'WebhookContext.update.<locals>.<lambda>I      a r   Configuration.UrlConfiguration.MethodConfiguration.FiltersConfiguration.TriggersConfiguration.FlowSidConfiguration.RetryCount!application/x-www-form-urlencodedContent-Typer   r   r   r   r   datar   r+   r,   r-   r5   )	r   r   r   maprA   rZ   r   r   r:   
r<   rQ   rR   rS   rT   rU   rV   r   r   r*   s
             r   rZ   zWebhookContext.update+  s    , yy%6(<)2);* +4--*K+ *@,E
 ))B-"E.--&&tyytW ' 
 MM}5}5u%
 	
r   c           	        K   t        j                  ||t        j                  |d       t        j                  |d       ||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||	       d
{   }	t        | j                  |	| j                  d   | j                  d   | j                  d         S 7 Ew)r]   c                     | S rs   r   r   s    r   r   z-WebhookContext.update_async.<locals>.<lambda>|  r   r   c                     | S rs   r   r   s    r   r   z-WebhookContext.update_async.<locals>.<lambda>  r   r   r   r   r   r   r   r   r   Nr+   r,   r-   r5   )	r   r   r   r   rA   r^   r   r   r:   r   s
             r   r^   zWebhookContext.update_asynca  s     , yy%6(<)2);* +4--*K+ *@,E
 ))B-"E.22tyytW 3 
 
 MM}5}5u%
 	
	
s   BCCACc                     dj                  d | j                  j                         D              }dj                  |      S )r`   ra   c              3   F   K   | ]  \  }}d j                  ||        ywrc   rd   rf   s      r   rj   z*WebhookContext.__repr__.<locals>.<genexpr>  rk   rl   z"<Twilio.Chat.V2.WebhookContext {}>rm   rp   s     r   rr   zWebhookContext.__repr__  s6     ((SDNN<P<P<RSS3::7CCr   )r   r   r   r   ru   r7   rw   rF   rI   r   rM   rP   r   rx   r   rt   r   ry   rZ   r^   rr   rz   r{   s   @r   r@   r@      s   
 
c 
 
RU 
.
U 
U
D 

 
,
? 
4 17HN:@,,;A<<5;\\8>4
 f-4
 $$<f$DE4
  %T#Y%67	4

 !&d3i&7 84
 !&c6k 24
 $)f#54
 
4
p 17HN:@,,;A<<5;\\8>4
 f-4
 $$<f$DE4
  %T#Y%67	4

 !&d3i&7 84
 !&c6k 24
 $)f#54
 
4
l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)WebhookPager*   r>   c                 h    t        | j                  || j                  d   | j                  d         S )zm
        Build an instance of WebhookInstance

        :param payload: Payload response from the API
        r+   r,   r+   r,   )r   rA   r:   )r<   r*   s     r   get_instancezWebhookPage.get_instance  s3     MM}5}5	
 	
r   c                      y)r`   z<Twilio.Chat.V2.WebhookPage>r   rB   s    r   rr   zWebhookPage.__repr__       .r   N)	r   r   r   r   ru   r   r   r   rr   r   r   r   r   r     s)    
DcN 
 
.# .r   r   c                       e Zd Zdededef fdZej                  ej                  ej                  ej                  ej                  ej                  fdddeee	f   ded	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fdZej                  ej                  ej                  ej                  ej                  ej                  fdddeee	f   ded	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fdZ	 	 d"dee   dee   dee   fdZ	 	 d"dee   dee   dee   fdZ	 	 d"dee   dee   de
e   fdZ	 	 d"dee   dee   de
e   fdZej                  ej                  ej                  fdeee	f   deee	f   deee	f   defdZej                  ej                  ej                  fdeee	f   deee	f   deee	f   defdZdedefdZdedefdZdedefdZdedefd Zdefd!Z xZS )#WebhookListr)   r+   r,   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)a  
        Initialize the WebhookList

        :param version: Version that contains the resource
        :param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to read the resources from.
        :param channel_sid: The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`.

        r   z7/Services/{service_sid}/Channels/{channel_sid}/WebhooksNr   r~   )r<   r)   r+   r,   r=   s       r   r7   zWebhookList.__init__  sG     	! '&
 UMTT 
nn
	r   r0   r!   rQ   rR   r   rS   rT   rU   rV   r>   c           
         t        j                  |||t        j                  |d       t        j                  |d       ||d      }t        j                  ddi      }	d|	d<   d|	d<   | j                  j                  d| j                  ||		      }
t        | j                  |
| j                  d
   | j                  d         S )a$  
        Create the WebhookInstance

        :param type:
        :param configuration_url: The URL of the webhook to call using the `configuration.method`.
        :param configuration_method:
        :param configuration_filters: The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger).
        :param configuration_triggers: A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
        :param configuration_flow_sid: The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`.
        :param configuration_retry_count: The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0.

        :returns: The created WebhookInstance
        c                     | S rs   r   r   s    r   r   z$WebhookList.create.<locals>.<lambda>  r   r   c                     | S rs   r   r   s    r   r   z$WebhookList.create.<locals>.<lambda>  r   r   r(   r   r   r   r   r   r   r   r   r   r   r   r   r+   r,   r   )	r   r   r   r   rA   creater   r   r:   r<   r0   rQ   rR   rS   rT   rU   rV   r   r   r*   s              r   r   zWebhookList.create  s    0 yy%6(<)2);* +4--*K+ *@,E
 ))^-PQR"E.--&&tyytW ' 
 MM}5}5	
 	
r   c           
        K   t        j                  |||t        j                  |d       t        j                  |d       ||d      }t        j                  ddi      }	d|	d<   d|	d<   | j                  j                  d| j                  ||		       d
{   }
t        | j                  |
| j                  d   | j                  d         S 7 7w)a3  
        Asynchronously create the WebhookInstance

        :param type:
        :param configuration_url: The URL of the webhook to call using the `configuration.method`.
        :param configuration_method:
        :param configuration_filters: The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger).
        :param configuration_triggers: A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
        :param configuration_flow_sid: The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`.
        :param configuration_retry_count: The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0.

        :returns: The created WebhookInstance
        c                     | S rs   r   r   s    r   r   z*WebhookList.create_async.<locals>.<lambda>%  r   r   c                     | S rs   r   r   s    r   r   z*WebhookList.create_async.<locals>.<lambda>(  r   r   r   r   r   r   r   r   r   Nr+   r,   r   )	r   r   r   r   rA   create_asyncr   r   r:   r   s              r   r   zWebhookList.create_async  s     0 yy%6(<)2);* +4--*K+ *@,E
 ))^-PQR"E.22tyytW 3 
 
 MM}5}5	
 	
	
s   BCC8Climit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )a]  
        Streams WebhookInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r   r   )rA   read_limitspagestreamr<   r   r   limitsr   s        r   r   zWebhookList.stream?  sJ    ( **5)<yy6+#6y7}}##D&/::r   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)al  
        Asynchronously streams WebhookInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r   Nr   )rA   r   
page_asyncstream_asyncr   s        r   r   zWebhookList.stream_asyncX  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                 :    t        | j                  ||            S )a  
        Lists WebhookInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

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

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   N)r   )r<   r   r   records       r   
list_asynczWebhookList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;
page_tokenpage_numberc                     t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                        S )as  
        Retrieve a single page of WebhookInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of WebhookInstance
        	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )r   r   rA   r   r   r   r:   r<   r   r   r   r   r   responses          r   r   zWebhookList.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 WebhookInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of WebhookInstance
        r   r   r   r   r   r   r   N)r   r   rA   r   r   r   r:   r   s          r   r   zWebhookList.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 WebhookInstance records from the API.
        Request is executed immediately

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

        :returns: Page of WebhookInstance
        r   )rA   domaintwiliorequestr   r:   r<   r   r   s      r   get_pagezWebhookList.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 WebhookInstance records from the API.
        Request is executed immediately

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

        :returns: Page of WebhookInstance
        r   N)rA   r   r   request_asyncr   r:   r   s      r   get_page_asynczWebhookList.get_page_async  sJ      --44BB5*UU4==(DNNCC Vs   4AA&Ar-   c                 h    t        | j                  | j                  d   | j                  d   |      S zu
        Constructs a WebhookContext

        :param sid: The SID of the Channel Webhook resource to update.
        r+   r,   r5   r@   rA   r:   r<   r-   s     r   r8   zWebhookList.get   3     MM}5}5	
 	
r   c                 h    t        | j                  | j                  d   | j                  d   |      S r   r   r   s     r   __call__zWebhookList.__call__  r   r   c                      y)r`   z<Twilio.Chat.V2.WebhookList>r   rB   s    r   rr   zWebhookList.__repr__  r   r   )NN) r   r   r   r   ru   r7   r   rx   r   rt   r   ry   r   r   r   r   r	   r   r
   r   r   r   r   r   r   r   r   r@   r8   r   rr   rz   r{   s   @r   r   r     s   
 
c 
 
. 17HN:@,,;A<<5;\\8>6
$6
 !f-6
 $$<f$DE	6

  %T#Y%676
 !&d3i&7 86
 !&c6k 26
 $)f#56
 
6
v 17HN:@,,;A<<5;\\8>6
$6
 !f-6
 $$<f$DE	6

  %T#Y%676
 !&d3i&7 86
 !&c6k 26
 $)f#56
 
6
t  $#';}; C=; 
/	"	;6  $#'A}A C=A 
	'	A6  $#'
}
 C=
 
o		
8  $#'
}
 C=
 
o		
: *0*0,,(.	D#v+&D 3;'D f%	D
 
DF *0*0,,(.	D#v+&D 3;'D f%	D
 
DB
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.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      sj     L L L 6 6 8 : 2 ' !nE& nEbTD_ TDn.$ .0g., g.r   