
    d{i־                         d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
mZmZmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ  G d de      Z G d de      Z G d de      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Verify
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserialize	serializevalues)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec                       e Zd Z G d de      Z 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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ej2                  ej2                  ej2                  ej2                  ej2                  fdeeef   deee   ef   deeef   dedef   dedef   dd fdZej2                  ej2                  ej2                  ej2                  ej2                  fdeeef   deee   ef   deeef   dedef   dedef   dd fdZej2                  ej2                  ej2                  ej2                  ej2                  fdeeef   de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j2                  ej2                  ej2                  ej2                  ej2                  fdeeef   deee   ef   deeef   dedef   dedef   defdZdefd Z  xZ!S )$WebhookInstancec                       e Zd ZdZdZy)WebhookInstance.MethodsGETPOSTN)__name__
__module____qualname__r   r        c/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/verify/v2/service/webhook.pyMethodsr      s    r   r    c                       e Zd ZdZdZy)WebhookInstance.StatusenableddisabledN)r   r   r   ENABLEDDISABLEDr   r   r   Statusr"       s    r   r'   c                       e Zd ZdZdZy)WebhookInstance.Versionv1v2N)r   r   r   V1V2r   r   r   r   r)   $   s    r   r   versionpayloadservice_sidsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        |j                  d      | _
        |j                  d	      | _        t        j                  |j                  d
            | _        t        j                  |j                  d            | _        |j                  d      | _        ||xs | j                  d| _        d | _        y )Nr1   r0   account_sidfriendly_nameevent_typesstatusr.   webhook_urlwebhook_methoddate_createddate_updatedurlr0   r1   )super__init__getr1   r0   r3   r4   r5   r6   r.   r7   r8   r   iso8601_datetimer9   r:   r;   	_solution_context)selfr.   r/   r0   r1   	__class__s        r   r>   zWebhookInstance.__init__7   s"    	!")++e"4*1++m*D*1++m*D,3KK,H07M0J:A++h:O<CKK	<R*1++m*DCJ;;D
 1<0L0LKK'1
 1<0L0LKK'1
 #*++e"4 '?$((
 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: WebhookContext for this WebhookInstance
        r0   r1   r<   )rB   WebhookContext_versionrA   rC   s    r   _proxyzWebhookInstance._proxyY   sE     == * NN=9NN5)DM
 }}r   c                 6    | j                   j                         S zj
        Deletes the WebhookInstance


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


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


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


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


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


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


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


        :returns: ApiResponse with instance, status code, and headers
        N)rJ   fetch_with_http_info_asyncrI   s    r   r_   z*WebhookInstance.fetch_with_http_info_async   s!      [[;;====rQ   r4   r5   r7   r6   r"   r)   c                 B    | j                   j                  |||||      S )  
        Update the WebhookInstance

        :param friendly_name: The string that you assigned to describe the webhook. **This value should not contain PII.**
        :param event_types: The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied`
        :param webhook_url: The URL associated with this Webhook.
        :param status:
        :param version:

        :returns: The updated WebhookInstance
        r4   r5   r7   r6   r.   )rJ   updaterC   r4   r5   r7   r6   r.   s         r   rc   zWebhookInstance.update   s/    & {{!!'## " 
 	
r   c                 ^   K   | j                   j                  |||||       d{   S 7 w)'  
        Asynchronous coroutine to update the WebhookInstance

        :param friendly_name: The string that you assigned to describe the webhook. **This value should not contain PII.**
        :param event_types: The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied`
        :param webhook_url: The URL associated with this Webhook.
        :param status:
        :param version:

        :returns: The updated WebhookInstance
        rb   N)rJ   update_asyncrd   s         r   rg   zWebhookInstance.update_async   s=     & [[--'## . 
 
 	
 
   $-+-c                 B    | j                   j                  |||||      S )a4  
        Update the WebhookInstance with HTTP info

        :param friendly_name: The string that you assigned to describe the webhook. **This value should not contain PII.**
        :param event_types: The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied`
        :param webhook_url: The URL associated with this Webhook.
        :param status:
        :param version:

        :returns: ApiResponse with instance, status code, and headers
        rb   )rJ   update_with_http_inford   s         r   rj   z%WebhookInstance.update_with_http_info   s/    & {{00'## 1 
 	
r   c                 ^   K   | j                   j                  |||||       d{   S 7 w)aN  
        Asynchronous coroutine to update the WebhookInstance with HTTP info

        :param friendly_name: The string that you assigned to describe the webhook. **This value should not contain PII.**
        :param event_types: The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied`
        :param webhook_url: The URL associated with this Webhook.
        :param status:
        :param version:

        :returns: ApiResponse with instance, status code, and headers
        rb   N)rJ   update_with_http_info_asyncrd   s         r   rl   z+WebhookInstance.update_with_http_info_async  s=     & [[<<'## = 
 
 	
 
rh   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.Verify.V2.WebhookInstance {}>joinrA   itemsrs   rC   contexts     r   __repr__zWebhookInstance.__repr__  s6     ((SDNN<P<P<RSS6==gFFr   N)rE   rG   )rE   r   )"r   r   r   objectr    r'   r   r   strr   r   r>   propertyrJ   boolrM   rP   r   rS   rU   rX   r[   r]   r_   r   unsetr   r   rc   rg   rj   rl   r   __classcell__rD   s   @r   r   r      sE   &  & ( " 7 7 c3h 7 	 7
 c] 7D  $ $0D 03{ 3?; ?#/2k 2>+ > -3LL06*0,,:@,,<BLL
S&[)
 49f,-
 3;'	

 .67
 0&89
 

: -3LL06*0,,:@,,<BLL
S&[)
 49f,-
 3;'	

 .67
 0&89
 

: -3LL06*0,,:@,,<BLL
S&[)
 49f,-
 3;'	

 .67
 0&89
 

: -3LL06*0,,:@,,<BLL
S&[)
 49f,-
 3;'	

 .67
 0&89
 

6G# Gr   r   c                   x    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ej.                  ej.                  ej.                  ej.                  ej.                  fdeeef   de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.                  ej.                  fdeeef   de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.                  ej.                  fdeeef   de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.                  ej.                  fdeeef   de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.                  ej.                  fdeeef   de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.                  ej.                  fdeeef   deee   ef   deeef   dedef   dedef   de
fdZ defdZ! xZ"S )rG   r.   r0   r1   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)a  
        Initialize the WebhookContext

        :param version: Version that contains the resource
        :param service_sid: The unique SID identifier of the Service.
        :param sid: The Twilio-provided string that uniquely identifies the Webhook resource to update.
        r<   z&/Services/{service_sid}/Webhooks/{sid}Nr   r=   r>   rA   rs   _uri)rC   r.   r0   r1   rD   s       r   r>   zWebhookContext.__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WebhookContext._delete:  s8     ))B-}}66G 7 
 	
r   c                 .    | j                         \  }}}|S rL   )r   rC   success_s      r   rM   zWebhookContext.deleteH  s     Ar   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the WebhookInstance 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$WebhookContext.delete_with_http_infoR  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WebhookContext._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WebhookContext.delete_asyncj  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the WebhookInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r   rU   z*WebhookContext.delete_with_http_info_asynct  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Acceptr   r   )r   r   rH   fetch_with_response_infor   r   s     r   _fetchzWebhookContext._fetch~  sB     ))B-.}}55dii 6 
 	
r   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         S )rW   r0   r1   r<   )r   r   rH   rA   rC   r/   r   s      r   rX   zWebhookContext.fetch  sD     AMM}5u%	
 	
r   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )z
        Fetch the WebhookInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r0   r1   r<   r   )r   r   rH   rA   r   rC   r/   r   r   instances        r   r]   z#WebhookContext.fetch_with_http_info  sS     )-%g"MM}5u%	
 k7SSr   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   N)r   r   rH   fetch_with_response_info_asyncr   r   s     r   _fetch_asynczWebhookContext._fetch_async  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)rZ   Nr0   r1   r<   )r   r   rH   rA   r   s      r   r[   zWebhookContext.fetch_async  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 WebhookInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr0   r1   r<   r   )r   r   rH   rA   r   r   s        r   r_   z)WebhookContext.fetch_with_http_info_async  sc      /3.?.?.A(A%g"MM}5u%	
 k7SS )Bs   A"A A
A"r4   r5   r7   r6   r"   r)   c                     t        j                  |t        j                  |d       |||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )	z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        c                     | S r   r   es    r   <lambda>z(WebhookContext._update.<locals>.<lambda>      1 r   FriendlyName
EventTypes
WebhookUrlr'   r   !application/x-www-form-urlencodedContent-Typer   r   r   r   r   r   r   )r   r   r   maprH   update_with_response_infor   rC   r4   r5   r7   r6   r.   r   r   s           r   _updatezWebhookContext._update  s}     yy -'mmKE) "
 ))B-"E.}}66tyytW 7 
 	
r   c                     | j                  |||||      \  }}}t        | j                  || j                  d   | j                  d         S )ra   rb   r0   r1   r<   )r   r   rH   rA   rC   r4   r5   r7   r6   r.   r/   r   s           r   rc   zWebhookContext.update  s]    & '## % 
A MM}5u%	
 	
r   c                     | j                  |||||      \  }}}t        | j                  || j                  d   | j                  d         }	t	        |	||      S )aB  
        Update the WebhookInstance and return response metadata

        :param friendly_name: The string that you assigned to describe the webhook. **This value should not contain PII.**
        :param event_types: The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied`
        :param webhook_url: The URL associated with this Webhook.
        :param status:
        :param version:

        :returns: ApiResponse with instance, status code, and headers
        rb   r0   r1   r<   r   )r   r   rH   rA   r   
rC   r4   r5   r7   r6   r.   r/   r   r   r   s
             r   rj   z$WebhookContext.update_with_http_info  sl    & )-'## )5 )
%g #MM}5u%	
 k7SSr   c                   K   t        j                  |t        j                  |d       |||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d	{   S 7 w)
z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        c                     | S r   r   r   s    r   r   z.WebhookContext._update_async.<locals>.<lambda>S  r   r   r   r   r   r   r   r   r   N)r   r   r   r   rH   update_with_response_info_asyncr   r   s           r   _update_asynczWebhookContext._update_asyncA  s      yy -'mmKE) "
 ))B-"E.]]BBtyytW C 
 
 	
 
s   A<B>B?Bc                    K   | j                  |||||       d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)rf   rb   Nr0   r1   r<   )r   r   rH   rA   r   s           r   rg   zWebhookContext.update_asyncc  sm     & #00'## 1 
 
A MM}5u%	
 	

   AA<Ac                    K   | j                  |||||       d{   \  }}}t        | j                  || j                  d   | j                  d         }	t	        |	||      S 7 Iw)a\  
        Asynchronous coroutine to update the WebhookInstance and return response metadata

        :param friendly_name: The string that you assigned to describe the webhook. **This value should not contain PII.**
        :param event_types: The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied`
        :param webhook_url: The URL associated with this Webhook.
        :param status:
        :param version:

        :returns: ApiResponse with instance, status code, and headers
        rb   Nr0   r1   r<   r   )r   r   rH   rA   r   r   s
             r   rl   z*WebhookContext.update_with_http_info_async  s}     & /3.@.@'## /A /
 )
%g #MM}5u%	
 k7SS)
s   A(A&A
A(c                     dj                  d | j                  j                         D              }dj                  |      S )rn   ro   c              3   F   K   | ]  \  }}d j                  ||        ywrq   rr   rt   s      r   rx   z*WebhookContext.__repr__.<locals>.<genexpr>  ry   rz   z$<Twilio.Verify.V2.WebhookContext {}>r{   r~   s     r   r   zWebhookContext.__repr__  s6     ((SDNN<P<P<RSS5<<WEEr   )#r   r   r   r   r   r>   tupler   r   rM   r   rS   r   rP   rU   r   r   rX   r]   r   r[   r_   r   r   r   r   r   r   rc   rj   r   rg   rl   r   r   r   s   @r   rG   rG   '  sw   V Vc V V"
 
 S{ S
U 
D S; S
 
 
 
Tk T 
E 
 
? 
T+ T$ -3LL06*0,,:@,,<BLL 
S&[) 
 49f,- 
 3;'	 

 .67 
 0&89 
 
 
H -3LL06*0,,:@,,<BLL
S&[)
 49f,-
 3;'	

 .67
 0&89
 

F -3LL06*0,,:@,,<BLL TS&[) T 49f,- T 3;'	 T
 .67 T 0&89 T 
 TH -3LL06*0,,:@,,<BLL 
S&[) 
 49f,- 
 3;'	 

 .67 
 0&89 
 
 
H -3LL06*0,,:@,,<BLL
S&[)
 49f,-
 3;'	

 .67
 0&89
 

F -3LL06*0,,:@,,<BLL TS&[) T 49f,- T 3;'	 T
 .67 T 0&89 T 
 TD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)WebhookPager/   rE   c                 L    t        | j                  || j                  d         S )zm
        Build an instance of WebhookInstance

        :param payload: Payload response from the API
        r0   r0   )r   rH   rA   )rC   r/   s     r   get_instancezWebhookPage.get_instance  s%     MM7}0M
 	
r   c                      y)rn   z<Twilio.Verify.V2.WebhookPage>r   rI   s    r   r   zWebhookPage.__repr__       0r   N)	r   r   r   r   r   r   r   r   r   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                  fdedee   dede	de
f   de	d	e
f   d
efdZej                  ej                  fdedee   dede	de
f   de	d	e
f   d
efdZej                  ej                  fdedee   dede	de
f   de	d	e
f   d
efdZej                  ej                  fdedee   dede	de
f   de	d	e
f   d
efdZej                  ej                  fdedee   dede	de
f   de	d	e
f   d
efdZej                  ej                  fdedee   dede	de
f   de	d	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fdZ	 	 d(dee   dee   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fdZ	 	 d(dee   dee   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"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.   r0   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the WebhookList

        :param version: Version that contains the resource
        :param service_sid: The unique SID identifier of the Service.

        r0   z /Services/{service_sid}/WebhooksNr   r   )rC   r.   r0   rD   s      r   r>   zWebhookList.__init__  s@     	! ;
 >6==OO	r   r4   r5   r7   r6   r"   r)   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 r   r   r   s    r   r   z%WebhookList._create.<locals>.<lambda>  r   r   r   r   r   r   r   r   r   )r   r   r   r   rH   create_with_response_infor   r   s           r   _createzWebhookList._create  s     yy -'mmKE) "
 ))^-PQR"E.}}66tyytW 7 
 	
r   c                     | j                  |||||      \  }}}t        | j                  || j                  d         S )a  
        Create the WebhookInstance

        :param friendly_name: The string that you assigned to describe the webhook. **This value should not contain PII.**
        :param event_types: The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied`
        :param webhook_url: The URL associated with this Webhook.
        :param status:
        :param version:

        :returns: The created WebhookInstance
        rb   r0   r   )r   r   rH   rA   r   s           r   createzWebhookList.create  sO    & '## % 
A MM7}0M
 	
r   c                     | j                  |||||      \  }}}t        | j                  || j                  d         }	t	        |	||      S )aB  
        Create the WebhookInstance and return response metadata

        :param friendly_name: The string that you assigned to describe the webhook. **This value should not contain PII.**
        :param event_types: The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied`
        :param webhook_url: The URL associated with this Webhook.
        :param status:
        :param version:

        :returns: ApiResponse with instance, status code, and headers
        rb   r0   r   r   )r   r   rH   rA   r   r   s
             r   create_with_http_infoz!WebhookList.create_with_http_info  s^    & )-'## )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 r   r   r   s    r   r   z+WebhookList._create_async.<locals>.<lambda>H  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WebhookList._create_async6  s      yy -'mmKE) "
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A>B BBc                    K   | j                  |||||       d{   \  }}}t        | j                  || j                  d         S 7 -w)a  
        Asynchronously create the WebhookInstance

        :param friendly_name: The string that you assigned to describe the webhook. **This value should not contain PII.**
        :param event_types: The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied`
        :param webhook_url: The URL associated with this Webhook.
        :param status:
        :param version:

        :returns: The created WebhookInstance
        rb   Nr0   r   )r   r   rH   rA   r   s           r   create_asynczWebhookList.create_asyncX  s_     & #00'## 1 
 
A MM7}0M
 	

s   AA
.Ac                    K   | j                  |||||       d{   \  }}}t        | j                  || j                  d         }	t	        |	||      S 7 ;w)aQ  
        Asynchronously create the WebhookInstance and return response metadata

        :param friendly_name: The string that you assigned to describe the webhook. **This value should not contain PII.**
        :param event_types: The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied`
        :param webhook_url: The URL associated with this Webhook.
        :param status:
        :param version:

        :returns: ApiResponse with instance, status code, and headers
        rb   Nr0   r   r   )r   r   rH   rA   r   r   s
             r   create_with_http_info_asyncz'WebhookList.create_with_http_info_asyncv  so     & /3.@.@'## /A /
 )
%g #MM7}0M
 k7SS)
r   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   )rH   read_limitspagestreamrC   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   )rH   r   
page_asyncstream_asyncr   s        r   r   zWebhookList.stream_async  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                     | j                   j                  ||      }| j                  |d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams WebhookInstance and returns headers from first page


        :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   r   page_response	generators         r   stream_with_http_infoz!WebhookList.stream_with_http_info  sk    $ **5)<006+;N0O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 WebhookInstance and returns headers from first page


        :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'WebhookList.stream_with_http_info_async  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB 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   )rC   r   r   s      r   r  zWebhookList.list  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   )rC   r   r   records       r   
list_asynczWebhookList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists WebhookInstance and returns headers from first page


        :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   r   r   r   r}   s          r   list_with_http_infozWebhookList.list_with_http_info.  sA    $ +/*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 WebhookInstance and returns headers from first page


        :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   r   r   r   r  r}   s           r   list_with_http_info_asyncz%WebhookList.list_with_http_info_asyncG  sf     $ 150P0P 1Q 1
 +
'	; -666&	+
 7666;PPs4   A4A:86
8:A8:A
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   rH   r   r   r   rA   rC   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   rH   r   r   r   rA   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c                 $   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  || j                        }	t        |	||      S )	aY  
        Retrieve a single page with response metadata


        :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 WebhookPage, status code, and headers
        r  r   r   r   r   r   r  r   )r   r   rH   page_with_response_infor   r   rA   r   
rC   r  r  r   r   r   r  r   response_headersr   s
             r   r   zWebhookList.page_with_http_info  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ 4==(DNNC+GWXXr   c                 @  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  || j                        }	t        |	||	      S 7 7w)
ah  
        Asynchronously retrieve a single page with response metadata


        :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 WebhookPage, status code, and headers
        r  r   r   r   r   r   r  Nr   )r   r   rH   page_with_response_info_asyncr   r   rA   r   r  s
             r   r   z%WebhookList.page_with_http_info_async  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 4==(DNNC+GWXXs   A"B$B%8B
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   )rH   domaintwiliorequestr   rA   rC   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)rH   r  r   request_asyncr   rA   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r1   c                 L    t        | j                  | j                  d   |      S z
        Constructs a WebhookContext

        :param sid: The Twilio-provided string that uniquely identifies the Webhook resource to update.
        r0   r<   rG   rH   rA   rC   r1   s     r   r?   zWebhookList.get   %     MMt~~m'D#
 	
r   c                 L    t        | j                  | j                  d   |      S r(  r)  r*  s     r   __call__zWebhookList.__call__
  r+  r   c                      y)rn   z<Twilio.Verify.V2.WebhookList>r   rI   s    r   r   zWebhookList.__repr__  r   r   )NN),r   r   r   r   r   r>   r   r   r   r   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-  r   r   r   s   @r   r   r     sC   P Pc P* ;A,,<BLL 
 
 #Y 
 	 

 .67 
 0&89 
 
 
N ;A,,<BLL

 #Y
 	

 .67
 0&89
 

F ;A,,<BLLTT #YT 	T
 .67T 0&89T 
TH ;A,,<BLL 
 
 #Y 
 	 

 .67 
 0&89 
 
 
N ;A,,<BLL

 #Y
 	

 .67
 0&89
 

F ;A,,<BLLTT #YT 	T
 .67T 0&89T 
TB  $#';}; C=; 
/	"	;6  $#'A}A C=A 
	'	A6  $#'M}M C=M 
	M4  $#'M}M C=M 
	M8  $#'
}
 C=
 
o		
8  $#'
}
 C=
 
o		
:  $#'Q}Q C=Q 
	Q6  $#'Q}Q C=Q 
	Q6 *0*0,,(.	D#v+&D 3;'D f%	D
 
DF *0*0,,(.	D#v+&D 3;'D f%	D
 
DF *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
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   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>r9     sm     L L L 6 6 0 8 : 2 ' !JG& JGZFF_ FFR0$ 0*U	0, U	0r   