
    gg                         S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
JrJrJr  SSKJr  SSKJr  SSKJr  SSKJr  SS	KJr   " S
 S\5      r " S S\5      r " S S\5      r " S S\5      rg)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)InstanceContext)InstanceResource)ListResource)Version)Pagec                     ^  \ rS rSr " S S\5      r " S S\5      r " S S\5      r  SS\S	\\	\
4   S
\	S\\	   4U 4S jjjr\SS j5       rS\4S jrS\4S jrSS jrSS jr\R*                  \R*                  \R*                  \R*                  \R*                  4S\\	\4   S\\\	   \4   S\\	\4   S\S\4   S\S\4   SS 4S jjr\R*                  \R*                  \R*                  \R*                  \R*                  4S\\	\4   S\\\	   \4   S\\	\4   S\S\4   S\S\4   SS 4S jjrS\	4S jrSrU =r$ ) WebhookInstance   c                       \ rS rSrSrSrSrg)WebhookInstance.Methods   GETPOST N)__name__
__module____qualname____firstlineno__r   r   __static_attributes__r       m/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/verify/v2/service/webhook.pyMethodsr      s    r!   r#   c                       \ rS rSrSrSrSrg)WebhookInstance.Status   enableddisabledr   N)r   r   r   r   ENABLEDDISABLEDr    r   r!   r"   Statusr%      s    r!   r+   c                       \ rS rSrSrSrSrg)WebhookInstance.Version#   v1v2r   N)r   r   r   r   V1V2r    r   r!   r"   r   r-   #   s    r!   r   versionpayloadservice_sidsidc                   > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l	        UR                  S5      U l
        UR                  S	5      U l        [        R                  " UR                  S
5      5      U l        [        R                  " UR                  S5      5      U l        UR                  S5      U l        UU=(       d    U R                  S.U l        S U l        g )Nr6   r5   account_sidfriendly_nameevent_typesstatusr3   webhook_urlwebhook_methoddate_createddate_updatedurlr5   r6   )super__init__getr6   r5   r8   r9   r:   r;   r3   r<   r=   r   iso8601_datetimer>   r?   r@   	_solution_context)selfr3   r4   r5   r6   	__class__s        r"   rC   WebhookInstance.__init__6   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                     U R                   c4  [        U R                  U R                  S   U R                  S   S9U l         U R                   $ )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
r5   r6   rA   )rG   WebhookContext_versionrF   rH   s    r"   _proxyWebhookInstance._proxyX   sE     == * NN=9NN5)DM
 }}r!   c                 6    U R                   R                  5       $ )R
Deletes the WebhookInstance


:returns: True if delete succeeds, False otherwise
)rP   deleterO   s    r"   rT   WebhookInstance.deleteh   s     {{!!##r!   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)n
Asynchronous coroutine that deletes the WebhookInstance


:returns: True if delete succeeds, False otherwise
N)rP   delete_asyncrO   s    r"   rX   WebhookInstance.delete_asyncq   s       [[--////   '%'c                 6    U R                   R                  5       $ )C
Fetch the WebhookInstance


:returns: The fetched WebhookInstance
)rP   fetchrO   s    r"   r]   WebhookInstance.fetchz   s     {{  ""r!   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)]
Asynchronous coroutine to fetch the WebhookInstance


:returns: The fetched WebhookInstance
N)rP   fetch_asyncrO   s    r"   ra   WebhookInstance.fetch_async   s       [[,,....rZ   r9   r:   r<   r;   r%   r-   c                 <    U R                   R                  UUUUUS9$ )  
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
r9   r:   r<   r;   r3   )rP   updaterH   r9   r:   r<   r;   r3   s         r"   rf   WebhookInstance.update   s/    & {{!!'## " 
 	
r!   c                 X   #    U R                   R                  UUUUUS9I Sh  vN $  N7f)  
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
re   N)rP   update_asyncrg   s         r"   rk   WebhookInstance.update_async   s<     & [[--'## . 
 
 	
 
s   !*(*c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r"   	<genexpr>+WebhookInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z%<Twilio.Verify.V2.WebhookInstance {}>joinrF   itemsrs   rH   contexts     r"   __repr__WebhookInstance.__repr__   s6     ((SDNN<P<P<RSS6==gFFr!   )rG   rF   r8   r>   r?   r:   r9   r5   r6   r;   r@   r3   r=   r<   N)rK   rM   )rK   r   )r   r   r   r   objectr#   r+   r   r   strr   r   rC   propertyrP   boolrT   rX   r]   ra   r   unsetr   r   rf   rk   r   r    __classcell__rI   s   @r"   r   r      s   &  & ( " 7 7 c3h 7 	 7
 c] 7  7D  $ $0D 0#/ -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 Gr!   r   c                     ^  \ rS rSrS\S\S\4U 4S jjrS\4S jrS\4S jr	S\
4S	 jrS\
4S
 jr\R                  \R                  \R                  \R                  \R                  4S\\\4   S\\\   \4   S\\\4   S\S\4   S\S\4   S\
4S jjr\R                  \R                  \R                  \R                  \R                  4S\\\4   S\\\   \4   S\\\4   S\S\4   S\S\4   S\
4S jjrS\4S jrSrU =r$ )rM      r3   r5   r6   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)z
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.
rA   z&/Services/{service_sid}/Webhooks/{sid}Nr   rB   rC   rF   rs   _uri)rH   r3   r5   r6   rI   s       r"   rC   WebhookContext.__init__   s>     	! '
 =CCUdnnU	r!   rK   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )rS   DELETEmethoduriheaders)r   ofrN   rT   r   rH   r   s     r"   rT   WebhookContext.delete   s1     ))B-}}##8G#TTr!   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)rW   r   r   N)r   r   rN   rX   r   r   s     r"   rX   WebhookContext.delete_async   sE      ))B-]]//G 0 
 
 	
 
s   ?AAAc                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   U R                  S   S9$ )r\   application/jsonAcceptr   r   r5   r6   rA   )r   r   rN   r]   r   r   rF   rH   r   r4   s      r"   r]   WebhookContext.fetch   si     ))B-.--%%U		7%SMM}5u%	
 	
r!   c                    #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   U R                  S   S9$  N47f)	r`   r   r   r   r   Nr5   r6   rA   )r   r   rN   ra   r   r   rF   r   s      r"   ra   WebhookContext.fetch_async  s}      ))B-.11dii 2 
 
 MM}5u%	
 	
	
s   AA=A;5A=r9   r:   r<   r;   r%   r-   c                 P   [         R                  " U[        R                  " US 5      UUUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XgS9n[        U R                  UU R                  S	   U R                  S
   S9$ )rd   c                     U $ r   r   es    r"   <lambda>'WebhookContext.update.<locals>.<lambda><      1r!   FriendlyName
EventTypes
WebhookUrlr+   r   !application/x-www-form-urlencodedContent-Typer   r   r   r   r   datar   r5   r6   rA   )	r   r   r   maprN   rf   r   r   rF   	rH   r9   r:   r<   r;   r3   r   r   r4   s	            r"   rf   WebhookContext.update%  s    ( yy -'mmKE) "
 ))B-"E.--&&tyyt ' 
 MM}5u%	
 	
r!   c                 l  #    [         R                  " U[        R                  " US 5      UUUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XgS9I S	h  vN n[        U R                  UU R                  S
   U R                  S   S9$  N47f)rj   c                     U $ r   r   r   s    r"   r   -WebhookContext.update_async.<locals>.<lambda>j  r   r!   r   r   r   r   r   r   r   Nr5   r6   rA   )	r   r   r   r   rN   rk   r   r   rF   r   s	            r"   rk   WebhookContext.update_asyncS  s     ( yy -'mmKE) "
 ))B-"E.22tyyt 3 
 
 MM}5u%	
 	
	
s   A;B4=B2>5B4c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rn   ro   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frq   rr   rt   s      r"   rx   *WebhookContext.__repr__.<locals>.<genexpr>  rz   r{   z$<Twilio.Verify.V2.WebhookContext {}>r|   r   s     r"   r   WebhookContext.__repr__  s6     ((SDNN<P<P<RSS5<<WEEr!   rF   r   )r   r   r   r   r   r   rC   r   rT   rX   r   r]   ra   r   r   r   r   r   rf   rk   r   r    r   r   s   @r"   rM   rM      s   V Vc V V"
U 
U
D 

 
*
? 
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,
 
,
\F# F Fr!   rM   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)WebhookPagei  r4   rK   c                 D    [        U R                  XR                  S   S9$ )zU
Build an instance of WebhookInstance

:param payload: Payload response from the API
r5   r5   )r   rN   rF   )rH   r4   s     r"   get_instanceWebhookPage.get_instance  s#     MM7}0M
 	
r!   c                     g)rn   z<Twilio.Verify.V2.WebhookPage>r   rO   s    r"   r   WebhookPage.__repr__       0r!   r   N)r   r   r   r   r   r   r   r   r   r   r    r   r!   r"   r   r     s)    
DcN 
 
0# 0r!   r   c                     ^  \ rS rSrS\S\4U 4S jjr\R                  \R                  4S\S\	\   S\S\
S	\4   S\
S
\4   S\4S jjr\R                  \R                  4S\S\	\   S\S\
S	\4   S\
S
\4   S\4S jjr  S S\\   S\\   S\\   4S jjr  S S\\   S\\   S\\   4S jjr  S S\\   S\\   S\	\   4S jjr  S S\\   S\\   S\	\   4S jjr\R                  \R                  \R                  4S\
\\4   S\
\\4   S\
\\4   S\4S jjr\R                  \R                  \R                  4S\
\\4   S\
\\4   S\
\\4   S\4S jjrS\S\4S jrS\S\4S jrS\S\4S jrS\S\4S jrS\4S jrSr U =r!$ )!WebhookListi  r3   r5   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)z
Initialize the WebhookList

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

r5   z /Services/{service_sid}/WebhooksNr   r   )rH   r3   r5   rI   s      r"   rC   WebhookList.__init__  s=     	! ;
 7==OO	r!   r9   r:   r<   r;   r%   r-   rK   c                 6   [         R                  " U[        R                  " US 5      UUUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XgS9n[        U R                  XR                  S	   S
9$ )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
c                     U $ r   r   r   s    r"   r   $WebhookList.create.<locals>.<lambda>  r   r!   r   r   r   r   r   r   r   r5   r   )	r   r   r   r   rN   creater   r   rF   r   s	            r"   r   WebhookList.create  s    ( yy -'mmKE) "
 ))^-PQR"E.--&&tyyt ' 
 MM7}0M
 	
r!   c                 R  #    [         R                  " U[        R                  " US 5      UUUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XgS9I S	h  vN n[        U R                  XR                  S
   S9$  N%7f)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
c                     U $ r   r   r   s    r"   r   *WebhookList.create_async.<locals>.<lambda>  r   r!   r   r   r   r   r   r   r   Nr5   r   )	r   r   r   r   rN   create_asyncr   r   rF   r   s	            r"   r   WebhookList.create_async  s     ( yy -'mmKE) "
 ))^-PQR"E.22tyyt 3 
 
 MM7}0M
 	
	
s   A=B'?B% &B'limit	page_sizec                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )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   )rN   read_limitspagestreamrH   r   r   limitsr   s        r"   r   WebhookList.stream  sF    ( **5<yy6+#6y7}}##D/::r!   c                    #    U R                   R                  X5      nU R                  US   S9I Sh  vN nU R                   R                  XCS   5      $  N"7f)a  
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   )rN   r   
page_asyncstream_asyncr   s        r"   r   WebhookList.stream_async!  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )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   )rH   r   r   s      r"   r   WebhookList.list:  s(    & KK#  
 	
r!   c                 v   #    U R                  UUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)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   )rH   r   r   records       r"   
list_asyncWebhookList.list_asyncT  sQ     * '+&7&7# '8 ' ! !
 
 !
 	
 
s0   9,940.
049049
page_tokenpage_numberc                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9n[        U R                  X`R                  5      $ )a;  
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   rN   r   r   r   rF   rH   r   r   r   r   r   responses          r"   r   WebhookList.pageo  s{      yy'#%
 ))^-PQR.==%%dii & 
 4==(NNCCr!   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  X`R                  5      $  N$7f)	aJ  
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   rN   r   r   r   rF   r   s          r"   r   WebhookList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 4==(NNCC
s   A B	"B#%B	
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )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   )rN   domaintwiliorequestr   rF   rH   r   r   s      r"   get_pageWebhookList.get_page  s;     ==''..66ujI4==(NNCCr!   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   X R
                  5      $  N$7f)z
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)rN   r   r   request_asyncr   rF   r   s      r"   get_page_asyncWebhookList.get_page_async  sG      --44BB5*UU4==(NNCC Vs   4AA%Ar6   c                 F    [        U R                  U R                  S   US9$ z~
Constructs a WebhookContext

:param sid: The Twilio-provided string that uniquely identifies the Webhook resource to update.
r5   rA   rM   rN   rF   rH   r6   s     r"   rD   WebhookList.get  %     MMt~~m'D#
 	
r!   c                 F    [        U R                  U R                  S   US9$ r  r  r  s     r"   __call__WebhookList.__call__  r	  r!   c                     g)rn   z<Twilio.Verify.V2.WebhookList>r   rO   s    r"   r   WebhookList.__repr__  r   r!   r   )NN)"r   r   r   r   r   r   rC   r   r   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r  rM   rD   r  r   r    r   r   s   @r"   r   r     s   P Pc P* ;A,,<BLL)
)
 #Y)
 	)

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

 .67)
 0&89)
 
)
Z  $#';}; 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 
0# 0 0r!   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   rM   r   r   r   r!   r"   <module>r     sj     L L L 6 6 8 : 2 ' !pG& pGf|F_ |F~0$ 0*C0, C0r!   