
    g3                         S r SSKJrJrJrJrJr  SSK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	\5      r " S
 S\5      r " S S\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Conversations
 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.
    )AnyDictListOptionalUnion)	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc                   :  ^  \ rS rSr " S S\5      r " S S\5      r S\S\\	\
4   4U 4S jjr\SS
 j5       rSS jrSS jr\R"                  \R"                  \R"                  \R"                  \R"                  4S\\	\4   S\\\	   \4   S\\	\4   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\\	\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.Method   GETPOST N)__name__
__module____qualname____firstlineno__r   r   __static_attributes__r       z/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/conversations/v1/configuration/webhook.pyMethodr      s    r   r   c                       \ rS rSrSrSrSrg)WebhookInstance.Target   webhookflexr   N)r   r   r   r   WEBHOOKFLEXr   r   r   r   Targetr       s    r   r&   versionpayloadc                 f  > [         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	        S U l
        g )Naccount_sidmethodfilterspre_webhook_urlpost_webhook_urltargeturl)super__init__getr*   r+   r,   r-   r.   r/   r0   _context)selfr'   r(   	__class__s      r   r2   WebhookInstance.__init__+   s    !*1++m*D:A++h:O,3KK	,B.5kk:K.L/6{{;M/N:A++h:O")++e"426r   returnc                 h    U R                   c  [        U R                  5      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
)r4   WebhookContext_versionr5   s    r   _proxyWebhookInstance._proxy8   s-     == *DM }}r   c                 6    U R                   R                  5       $ )C
Fetch the WebhookInstance


:returns: The fetched WebhookInstance
)r=   fetchr<   s    r   rA   WebhookInstance.fetchF   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)r=   fetch_asyncr<   s    r   rE   WebhookInstance.fetch_asyncO   s       [[,,....s   '%'r+   r,   r-   r.   r/   r    c                 <    U R                   R                  UUUUUS9$ )  
Update the WebhookInstance

:param method: The HTTP method to be used when sending a webhook request.
:param filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated`
:param pre_webhook_url: The absolute url the pre-event webhook request should be sent to.
:param post_webhook_url: The absolute url the post-event webhook request should be sent to.
:param target:

:returns: The updated WebhookInstance
r+   r,   r-   r.   r/   )r=   updater5   r+   r,   r-   r.   r/   s         r   rJ   WebhookInstance.updateX   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 method: The HTTP method to be used when sending a webhook request.
:param filters: The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated`
:param pre_webhook_url: The absolute url the pre-event webhook request should be sent to.
:param post_webhook_url: The absolute url the post-event webhook request should be sent to.
:param target:

:returns: The updated WebhookInstance
rI   N)r=   update_asyncrK   s         r   rO   WebhookInstance.update_asyncs   s<     & [[--+- . 
 
 	
 
s   !*(*c                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z)<Twilio.Conversations.V1.WebhookInstance>r   r<   s    r   __repr__WebhookInstance.__repr__   s     ;r   )r4   r*   r,   r+   r.   r-   r/   r0   )r8   r:   )r8   r   )r   r   r   r   objectr   r&   r   r   strr   r2   propertyr=   rA   rE   r	   unsetr   r   rJ   rO   rS   r   __classcell__r6   s   @r   r   r      s     7 7$sCx. 7  #/ &,\\,2LL.4ll/5||:@,,
c6k"
 tCy&()
 sF{+	

  V,
 .67
 

: &,\\,2LL.4ll/5||:@,,
c6k"
 tCy&()
 sF{+	

  V,
 .67
 

6;# ; ;r   r   c                     ^  \ rS rSrS\4U 4S j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
\\\4   S\S\4   S\4S jjr\	R                  \	R                  \	R                  \	R                  \	R                  4S\\\4   S\\\   \4   S	\\\4   S
\\\4   S\S\4   S\4S jjrS\4S jrSrU =r$ )r:      r'   c                 2   > [         TU ]  U5        SU l        g)zS
Initialize the WebhookContext

:param version: Version that contains the resource
z/Configuration/WebhooksN)r1   r2   _urir5   r'   r6   s     r   r2   WebhookContext.__init__   s     	!-	r   r8   c                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  U5      $ )r@   application/jsonAcceptr   r+   uriheaders)r	   ofr;   rA   r^   r   r5   rf   r(   s      r   rA   WebhookContext.fetch   sQ     ))B-.--%%U		7%SMM
 	
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5      $  N7f)rD   rb   rc   r   rd   N)r	   rg   r;   rE   r^   r   rh   s      r   rE   WebhookContext.fetch_async   se      ))B-.11dii 2 
 
 MM
 	
	
s   AA#A!A#r+   r,   r-   r.   r/   r    c                    [         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5      $ )	rH   c                     U $ Nr   es    r   <lambda>'WebhookContext.update.<locals>.<lambda>       Ar   r   FiltersPreWebhookUrlPostWebhookUrlr&   !application/x-www-form-urlencodedContent-Typerb   rc   r   r+   re   datarf   )r	   rg   r   mapr;   rJ   r^   r   	r5   r+   r,   r-   r.   r/   r{   rf   r(   s	            r   rJ   WebhookContext.update   s    ( yy $==+>!0"2 
 ))B-"E.--&&tyyt ' 
 t}}g66r   c                 8  #    [         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5      $  N7f)
rN   c                     U $ rn   r   ro   s    r   rq   -WebhookContext.update_async.<locals>.<lambda>  rs   r   rt   rx   ry   rb   rc   r   rz   N)r	   rg   r   r|   r;   rO   r^   r   r}   s	            r   rO   WebhookContext.update_async   s     ( yy $==+>!0"2 
 ))B-"E.22tyyt 3 
 
 t}}g66	
s   A;B=B>Bc                     g)rR   z(<Twilio.Conversations.V1.WebhookContext>r   r<   s    r   rS   WebhookContext.__repr__  s     :r   )r^   )r   r   r   r   r   r2   r   rA   rE   r	   rX   r   rV   rU   r   rJ   rO   rS   r   rY   rZ   s   @r   r:   r:      sj   . .
 
&
? 
. &,\\,2LL.4ll/5||:@,,'7c6k"'7 tCy&()'7 sF{+	'7
  V,'7 .67'7 
'7V &,\\,2LL.4ll/5||:@,,'7c6k"'7 tCy&()'7 sF{+	'7
  V,'7 .67'7 
'7R:# : :r   r:   c                   Z   ^  \ rS rSrS\4U 4S jjrS\4S jrS\4S jrS\	4S jr
SrU =r$ )	WebhookListi(  r'   c                 $   > [         TU ]  U5        g)zQ
Initialize the WebhookList

:param version: Version that contains the resource

N)r1   r2   r_   s     r   r2   WebhookList.__init__*  s     	!r   r8   c                 ,    [        U R                  5      $ z
Constructs a WebhookContext

r:   r;   r<   s    r   r3   WebhookList.get3      
 dmm,,r   c                 ,    [        U R                  5      $ r   r   r<   s    r   __call__WebhookList.__call__:  r   r   c                     g)rR   z%<Twilio.Conversations.V1.WebhookList>r   r<   s    r   rS   WebhookList.__repr__A  s     7r   r   )r   r   r   r   r   r2   r:   r3   r   rV   rS   r   rY   rZ   s   @r   r   r   (  s8    " "-^ --. -7# 7 7r   r   N)__doc__typingr   r   r   r   r   twilio.baser   r	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r:   r   r   r   r   <module>r      sL    4 3 ) 8 : 2 '~;& ~;BM:_ M:`7, 7r   