
    gc                         S r SSK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OptionalUnion)	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc                   H  ^  \ rS rSrS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                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   SS 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\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$ )NotificationInstance   a  
:ivar account_sid: The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this configuration.
:ivar chat_service_sid: The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to.
:ivar new_message: The Push Notification configuration for New Messages.
:ivar added_to_conversation: The Push Notification configuration for being added to a Conversation.
:ivar removed_from_conversation: The Push Notification configuration for being removed from a Conversation.
:ivar log_enabled: Weather the notification logging is enabled.
:ivar url: An absolute API resource URL for this configuration.
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   new_messageadded_to_conversationremoved_from_conversationlog_enabledurl)super__init__getr   r   r   r   r   r   r   	_solution_context)selfr   r   r   	__class__s       ڇ/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/conversations/v1/service/configuration/notification.pyr   NotificationInstance.__init__"   s     	!*1++m*D/6{{;M/N8?M8RBI++#C
" GNkk'G
& ,3;;}+E")++e"4  0
 8<    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: NotificationContext for this NotificationInstance
r   r   )r   NotificationContext_versionr   r   s    r!   _proxyNotificationInstance._proxy8   s:     == /!%0B!CDM }}r#   c                 6    U R                   R                  5       $ )M
Fetch the NotificationInstance


:returns: The fetched NotificationInstance
)r*   fetchr)   s    r!   r.   NotificationInstance.fetchG   s     {{  ""r#   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)g
Asynchronous coroutine to fetch the NotificationInstance


:returns: The fetched NotificationInstance
N)r*   fetch_asyncr)   s    r!   r2    NotificationInstance.fetch_asyncP   s       [[,,....s   '%'r   new_message_enablednew_message_templatenew_message_soundnew_message_badge_count_enabledadded_to_conversation_enabledadded_to_conversation_templateadded_to_conversation_sound!removed_from_conversation_enabled"removed_from_conversation_templateremoved_from_conversation_soundnew_message_with_media_enablednew_message_with_media_templatec                 L    U R                   R                  UUUUUUUUU	U
UUUS9$ )>  
Update the NotificationInstance

:param log_enabled: Weather the notification logging is enabled.
:param new_message_enabled: Whether to send a notification when a new message is added to a conversation. The default is `false`.
:param new_message_template: The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`.
:param new_message_sound: The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`.
:param new_message_badge_count_enabled: Whether the new message badge is enabled. The default is `false`.
:param added_to_conversation_enabled: Whether to send a notification when a participant is added to a conversation. The default is `false`.
:param added_to_conversation_template: The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`.
:param added_to_conversation_sound: The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`.
:param removed_from_conversation_enabled: Whether to send a notification to a user when they are removed from a conversation. The default is `false`.
:param removed_from_conversation_template: The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`.
:param removed_from_conversation_sound: The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`.
:param new_message_with_media_enabled: Whether to send a notification when a new message with media/file attachments is added to a conversation. The default is `false`.
:param new_message_with_media_template: The template to use to create the notification text displayed when a new message with media/file attachments is added to a conversation and `new_message.attachments.enabled` is `true`.

:returns: The updated NotificationInstance
r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   )r*   updater   r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   s                 r!   rC   NotificationInstance.updateY   sH    F {{!!# 3!5/,K*G+I(C.O/Q,K+I,K " 
 	
r#   c                 h   #    U R                   R                  UUUUUUUUU	U
UUUS9I Sh  vN $  N7f)X  
Asynchronous coroutine to update the NotificationInstance

:param log_enabled: Weather the notification logging is enabled.
:param new_message_enabled: Whether to send a notification when a new message is added to a conversation. The default is `false`.
:param new_message_template: The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`.
:param new_message_sound: The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`.
:param new_message_badge_count_enabled: Whether the new message badge is enabled. The default is `false`.
:param added_to_conversation_enabled: Whether to send a notification when a participant is added to a conversation. The default is `false`.
:param added_to_conversation_template: The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`.
:param added_to_conversation_sound: The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`.
:param removed_from_conversation_enabled: Whether to send a notification to a user when they are removed from a conversation. The default is `false`.
:param removed_from_conversation_template: The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`.
:param removed_from_conversation_sound: The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`.
:param new_message_with_media_enabled: Whether to send a notification when a new message with media/file attachments is added to a conversation. The default is `false`.
:param new_message_with_media_template: The template to use to create the notification text displayed when a new message with media/file attachments is added to a conversation and `new_message.attachments.enabled` is `true`.

:returns: The updated NotificationInstance
rB   N)r*   update_asyncrD   s                 r!   rH   !NotificationInstance.update_async   sU     F [[--# 3!5/,K*G+I(C.O/Q,K+I,K . 
 
 	
 
s   )202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>0NotificationInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z1<Twilio.Conversations.V1.NotificationInstance {}>joinr   itemsrP   r   contexts     r!   __repr__NotificationInstance.__repr__   s6     ((SDNN<P<P<RSSBII'RRr#   )	r   r   r   r   r   r   r   r   r   )r$   r'   )r$   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   propertyr*   r.   r2   r   unsetr   boolobjectrC   rH   r^   __static_attributes____classcell__r    s   @r!   r   r      s#   <<)-c3h<KN<,  #/ ,2<<39<<39<<06?E||=C\\=C\\:@,,AGAG>Dll>Dll>Dll1
4<(1
 #4<01
 $CK0	1

 !f-1
 */tV|)<1
 (-T6\':1
 ).c6k(:1
 &+3;%71
 ,1v+>1
 -2#v+,>1
 */sF{);1
 ).dFl(;1
 */sF{);1
 
 1
j ,2<<39<<39<<06?E||=C\\=C\\:@,,AGAG>Dll>Dll>Dll1
4<(1
 #4<01
 $CK0	1

 !f-1
 */tV|)<1
 (-T6\':1
 ).c6k(:1
 &+3;%71
 ,1v+>1
 -2#v+,>1
 */sF{);1
 ).dFl(;1
 */sF{);1
 
 1
fS# S S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                  \
R                  \
R                  \
R                  \
R                  \
R                  \
R                  \
R                  \
R                  \
R                  4S\\\4   S	\\\4   S
\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\4S jjr\
R                  \
R                  \
R                  \
R                  \
R                  \
R                  \
R                  \
R                  \
R                  \
R                  \
R                  \
R                  \
R                  4S\\\4   S	\\\4   S
\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\4S jjrS\4S jrSrU =r$ )r'      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 NotificationContext

:param version: Version that contains the resource
:param chat_service_sid: The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to.
r   z8/Services/{chat_service_sid}/Configuration/NotificationsN )r   r   r   rP   _urir   r   r   r    s      r!   r   NotificationContext.__init__   sD     	!  0
 OUU 
nn
	r#   r$   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AcceptGETmethoduriheadersr   r&   )r   ofr(   r.   rq   r   r   r   r{   r   s      r!   r.   NotificationContext.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)r1   ru   rv   rw   rx   Nr   r&   )r   r|   r(   r2   rq   r   r   r}   s      r!   r2   NotificationContext.fetch_async   sr      ))B-.11dii 2 
 
 $MM!^^,>?
 	
	
s   AA/A-'A/r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   c                    [         R                  " [        R                  " U5      [        R                  " U5      UU[        R                  " U5      [        R                  " U5      UU[        R                  " U	5      U
U[        R                  " U5      US.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XS9n[        U R                  UU R                  S   S	9$ )
rA   
LogEnabledzNewMessage.EnabledzNewMessage.TemplatezNewMessage.SoundzNewMessage.BadgeCountEnabledzAddedToConversation.EnabledzAddedToConversation.TemplatezAddedToConversation.SoundzRemovedFromConversation.Enabledz RemovedFromConversation.TemplatezRemovedFromConversation.SoundzNewMessage.WithMedia.EnabledzNewMessage.WithMedia.Template!application/x-www-form-urlencodedContent-Typeru   rv   POSTry   rz   datar{   r   r&   )	r   r|   r   boolean_to_stringr(   rC   rq   r   r   r   r   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r   r{   r   s                    r!   rC   NotificationContext.update  s   H yy'99+F&/&A&ABU&V';$5090K0K31 09/J/J10 1O-H3<3N3N54 5W1P090K0K21 2Q+
2 ))B-"E.--&&tyyt ' 
 $MM7T^^DV5W
 	
r#   c                 $  #    [         R                  " [        R                  " U5      [        R                  " U5      UU[        R                  " U5      [        R                  " U5      UU[        R                  " U	5      U
U[        R                  " U5      US.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XS9I Sh  vN n[        U R                  UU R                  S	   S
9$  N&7f)rG   r   r   r   ru   rv   r   r   Nr   r&   )	r   r|   r   r   r(   rH   rq   r   r   r   s                    r!   rH    NotificationContext.update_asyncQ  s    H yy'99+F&/&A&ABU&V';$5090K0K31 09/J/J10 1O-H3<3N3N54 5W1P090K0K21 2Q+
2 ))B-"E.22tyyt 3 
 
 $MM7T^^DV5W
 	
	
s   C%D'D('Dc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rK   rL   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frN   rO   rQ   s      r!   rU   /NotificationContext.__repr__.<locals>.<genexpr>  rW   rX   z0<Twilio.Conversations.V1.NotificationContext {}>rY   r\   s     r!   r^   NotificationContext.__repr__  s6     ((SDNN<P<P<RSSAHHQQr#   )r   rq   )r`   ra   rb   rc   r   re   r   r   r.   r2   r   rg   r   rh   ri   rC   rH   r^   rj   rk   rl   s   @r!   r'   r'      s&   
 
3 
"
+ 
(
#7 
0 ,2<<39<<39<<06?E||=C\\=C\\:@,,AGAG>Dll>Dll>DllI
4<(I
 #4<0I
 $CK0	I

 !f-I
 */tV|)<I
 (-T6\':I
 ).c6k(:I
 &+3;%7I
 ,1v+>I
 -2#v+,>I
 */sF{);I
 ).dFl(;I
 */sF{);I
 
I
Z ,2<<39<<39<<06?E||=C\\=C\\:@,,AGAG>Dll>Dll>DllI
4<(I
 #4<0I
 $CK0	I

 !f-I
 */tV|)<I
 (-T6\':I
 ).c6k(:I
 &+3;%7I
 ,1v+>I
 -2#v+,>I
 */sF{);I
 ).dFl(;I
 */sF{);I
 
I
VR# R R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	S\4S jr
S	rU =r$ )
NotificationListi  r   r   c                 6   > [         TU ]  U5        SU0U l        g)z
Initialize the NotificationList

:param version: Version that contains the resource
:param chat_service_sid: The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to.

r   N)r   r   r   rr   s      r!   r   NotificationList.__init__  s#     	!  0
r#   r$   c                 D    [        U R                  U R                  S   S9$ z#
Constructs a NotificationContext

r   r&   r'   r(   r   r)   s    r!   r   NotificationList.get  $    
 #MMDNN;M,N
 	
r#   c                 D    [        U R                  U R                  S   S9$ r   r   r)   s    r!   __call__NotificationList.__call__  r   r#   c                     g)rK   z*<Twilio.Conversations.V1.NotificationList>rp   r)   s    r!   r^   NotificationList.__repr__  s     <r#   )r   )r`   ra   rb   rc   r   re   r   r'   r   r   r^   rj   rk   rl   s   @r!   r   r     sA    
 
3 

( 

- 
<# < <r#   r   N)rd   typingr   r   r   r   twilio.baser   r   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r'   r   rp   r#   r!   <module>r      sP    . - ) 8 : 2 'oS+ oSdZR/ ZRz)<| )<r#   