
    g7                         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\\\	4   S\4U 4S jjr
\SS	 j5       rSS
 jrSS jr\R                   \R                   \R                   \R                   4S\\\4   S\\\4   S\\\   \4   S\\\4   SS 4
S jjr\R                   \R                   \R                   \R                   4S\\\4   S\\\4   S\\\   \4   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       ڂ/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/conversations/v1/service/configuration/webhook.pyMethodr      s    r   r   versionpayloadchat_service_sidc                 x  > [         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0U l
        S U l        g )Naccount_sidr!   pre_webhook_urlpost_webhook_urlfiltersmethodurl)super__init__getr#   r!   r$   r%   r&   r'   r(   	_solution_context)selfr   r    r!   	__class__s       r   r*   WebhookInstance.__init__'   s     	!*1++m*D/6{{;M/N.5kk:K.L/6{{;M/N,3KK	,B:A++h:O")++e"4  0
 37r   returnc                     U R                   c&  [        U R                  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
r!   r!   )r-   WebhookContext_versionr,   r.   s    r   _proxyWebhookInstance._proxy9   s:     == *!%0B!CDM }}r   c                 6    U R                   R                  5       $ )C
Fetch the WebhookInstance


:returns: The fetched WebhookInstance
)r7   fetchr6   s    r   r;   WebhookInstance.fetchH   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)r7   fetch_asyncr6   s    r   r?   WebhookInstance.fetch_asyncQ   s       [[,,....s   '%'r$   r%   r&   r'   c                 :    U R                   R                  UUUUS9$ )  
Update the WebhookInstance

: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 filters: The list of events that your configured webhook targets will receive. Events not configured here will not fire. Possible values are `onParticipantAdd`, `onParticipantAdded`, `onDeliveryUpdated`, `onConversationUpdated`, `onConversationRemove`, `onParticipantRemove`, `onConversationUpdate`, `onMessageAdd`, `onMessageRemoved`, `onParticipantUpdated`, `onConversationAdded`, `onMessageAdded`, `onConversationAdd`, `onConversationRemoved`, `onParticipantUpdate`, `onMessageRemove`, `onMessageUpdated`, `onParticipantRemoved`, `onMessageUpdate` or `onConversationStateUpdated`.
:param method: The HTTP method to be used when sending a webhook request. One of `GET` or `POST`.

:returns: The updated WebhookInstance
r$   r%   r&   r'   )r7   updater.   r$   r%   r&   r'   s        r   rD   WebhookInstance.updateZ   s,    " {{!!+-	 " 
 	
r   c                 V   #    U R                   R                  UUUUS9I Sh  vN $  N7f)  
Asynchronous coroutine to update the WebhookInstance

: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 filters: The list of events that your configured webhook targets will receive. Events not configured here will not fire. Possible values are `onParticipantAdd`, `onParticipantAdded`, `onDeliveryUpdated`, `onConversationUpdated`, `onConversationRemove`, `onParticipantRemove`, `onConversationUpdate`, `onMessageAdd`, `onMessageRemoved`, `onParticipantUpdated`, `onConversationAdded`, `onMessageAdded`, `onConversationAdd`, `onConversationRemoved`, `onParticipantUpdate`, `onMessageRemove`, `onMessageUpdated`, `onParticipantRemoved`, `onMessageUpdate` or `onConversationStateUpdated`.
:param method: The HTTP method to be used when sending a webhook request. One of `GET` or `POST`.

:returns: The updated WebhookInstance
rC   N)r7   update_asyncrE   s        r   rI   WebhookInstance.update_asyncr   s9     " [[--+-	 . 
 
 	
 
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.Conversations.V1.WebhookInstance {}>joinr,   itemsrQ   r.   contexts     r   __repr__WebhookInstance.__repr__   s6     ((SDNN<P<P<RSS=DDWMMr   )	r-   r,   r#   r!   r&   r'   r%   r$   r(   )r1   r4   )r1   r   )r   r   r   r   objectr   r   r   strr   r*   propertyr7   r;   r?   r	   unsetr   r   rD   rI   r_   r   __classcell__r/   s   @r   r   r      sc    77)-c3h7KN7$  #/ /5ll/5||,2LL%+\\
sF{+
  V,
 tCy&()	

 c6k"
 

4 /5ll/5||,2LL%+\\
sF{+
  V,
 tCy&()	

 c6k"
 

0N# N Nr   r   c                     ^  \ rS rSrS\S\4U 4S jjrS\4S jrS\4S jr	\
R                  \
R                  \
R                  \
R                  4S\\\4   S	\\\4   S
\\\   \4   S\\\4   S\4
S jjr\
R                  \
R                  \
R                  \
R                  4S\\\4   S	\\\4   S
\\\   \4   S\\\4   S\4
S jjrS\4S jrSrU =r$ )r4      r   r!   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 WebhookContext

:param version: Version that contains the resource
:param chat_service_sid: The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to.
r!   z3/Services/{chat_service_sid}/Configuration/WebhooksNr   )r)   r*   r,   rQ   _urir.   r   r!   r/   s      r   r*   WebhookContext.__init__   sD     	!  0
 JPP 
nn
	r   r1   c                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   S9$ )r:   application/jsonAcceptr   r'   uriheadersr!   r3   )r	   ofr5   r;   rj   r   r,   r.   rr   r    s      r   r;   WebhookContext.fetch   s^     ))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U R                  S   S9$  N&7f)r>   rn   ro   r   rp   Nr!   r3   )r	   rs   r5   r?   rj   r   r,   rt   s      r   r?   WebhookContext.fetch_async   sr      ))B-.11dii 2 
 
 MM!^^,>?
 	
	
s   AA/A-'A/r$   r%   r&   r'   c                 0   [         R                  " UU[        R                  " US 5      US.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XVS9n[        U R                  XpR                  S	   S
9$ )rB   c                     U $ Nr   es    r   <lambda>'WebhookContext.update.<locals>.<lambda>       Ar   PreWebhookUrlPostWebhookUrlFiltersr   !application/x-www-form-urlencodedContent-Typern   ro   r   r'   rq   datarr   r!   r3   )	r	   rs   r   mapr5   rD   rj   r   r,   r.   r$   r%   r&   r'   r   rr   r    s           r   rD   WebhookContext.update   s    $ yy!0"2$==+> 	
 ))B-"E.--&&tyyt ' 
 MM7^^DV5W
 	
r   c                 L  #    [         R                  " UU[        R                  " US 5      US.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XVS9I S	h  vN n[        U R                  XpR                  S
   S9$  N%7f)rH   c                     U $ rz   r   r{   s    r   r}   -WebhookContext.update_async.<locals>.<lambda>  r   r   r   r   r   rn   ro   r   r   Nr!   r3   )	r	   rs   r   r   r5   rI   rj   r   r,   r   s           r   rI   WebhookContext.update_async   s     $ yy!0"2$==+> 	
 ))B-"E.22tyyt 3 
 
 MM7^^DV5W
 	
	
s   A:B$<B"=&B$c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rL   rM   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frO   rP   rR   s      r   rV   *WebhookContext.__repr__.<locals>.<genexpr>'  rX   rY   z+<Twilio.Conversations.V1.WebhookContext {}>rZ   r]   s     r   r_   WebhookContext.__repr__!  s6     ((SDNN<P<P<RSS<CCGLLr   )r,   rj   )r   r   r   r   r   rb   r*   r   r;   r?   r	   rd   r   ra   r   rD   rI   r_   r   re   rf   s   @r   r4   r4      s<   
 
3 
"
 
(
? 
0 /5ll/5||,2LL%+\\&
sF{+&
  V,&
 tCy&()	&

 c6k"&
 
&
T /5ll/5||,2LL%+\\&
sF{+&
  V,&
 tCy&()	&

 c6k"&
 
&
PM# M Mr   r4   c                   ^   ^  \ rS rSr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	rU =r$ )
WebhookListi+  r   r!   c                 6   > [         TU ]  U5        SU0U l        g)z
Initialize the WebhookList

:param version: Version that contains the resource
:param chat_service_sid: The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to.

r!   N)r)   r*   r,   rk   s      r   r*   WebhookList.__init__-  s#     	!  0
r   r1   c                 D    [        U R                  U R                  S   S9$ z
Constructs a WebhookContext

r!   r3   r4   r5   r,   r6   s    r   r+   WebhookList.get<  $    
 MMDNN;M,N
 	
r   c                 D    [        U R                  U R                  S   S9$ r   r   r6   s    r   __call__WebhookList.__call__E  r   r   c                     g)rL   z%<Twilio.Conversations.V1.WebhookList>r   r6   s    r   r_   WebhookList.__repr__N  s     7r   )r,   )r   r   r   r   r   rb   r*   r4   r+   r   r_   r   re   rf   s   @r   r   r   +  s?    
 
3 

^ 

. 
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   r4   r   r   r   r   <module>r      sP    4 3 ) 8 : 2 'zN& zNzTM_ TMn)7, )7r   