
    g/                         S r SSKJ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 - Chat
 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OptionalUnion)deserializevalues)InstanceContext)InstanceResource)ListResource)Versionc            
         ^  \ rS rS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\R                   \R                   \R                   4S\S\4   S\S\4   S\\	\4   SS 4S jjr\R                   \R                   \R                   4S\S\4   S\S\4   S\\	\4   SS 4S jjrS\	4S jrSrU =r$ )ChannelInstance   c                       \ rS rSrSrSrSrg)ChannelInstance.ChannelType   publicprivate N)__name__
__module____qualname____firstlineno__PUBLICPRIVATE__static_attributes__r       c/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/chat/v3/channel.pyChannelTyper      s    r   r    c                       \ rS rSrSrSrSrg)"ChannelInstance.WebhookEnabledType   truefalser   N)r   r   r   r   TRUEFALSEr   r   r   r   WebhookEnabledTyper"      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	        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S	5      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R                  S5      U l        U=(       d    U R
                  U=(       d    U R                  S.U l        S U l        g )Nr,   account_sidr+   friendly_nameunique_name
attributestypedate_createddate_updated
created_bymembers_countmessages_countmessaging_service_sidurlr+   r,   )super__init__getr,   r.   r+   r/   r0   r1   r2   r   iso8601_datetimer3   r4   r5   integerr6   r7   r8   r9   	_solution_context)selfr)   r*   r+   r,   	__class__s        r   r<   ChannelInstance.__init__3   sj    	!")++e"4*1++m*D*1++m*D,3KK,H*1++m*D)0\)B=D[[=P	0;0L0LKK'1
 1<0L0LKK'1
 *1\)B,7,?,?KK(-
 .9-@-@KK().
 5<KK@W4X"")++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: ChannelContext for this ChannelInstance
r+   r,   r:   )rA   ChannelContext_versionr@   rB   s    r   _proxyChannelInstance._proxyY   sE     == * NN=9NN5)DM
 }}r   x_twilio_webhook_enabledr"   r2   r   r8   c                 8    U R                   R                  UUUS9$ )?  
Update the ChannelInstance

:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
:param type:
:param messaging_service_sid: The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this channel belongs to.

:returns: The updated ChannelInstance
rL   r2   r8   )rJ   updaterB   rL   r2   r8   s       r   rP   ChannelInstance.updatei   s)    " {{!!%="7 " 
 	
r   c                 T   #    U R                   R                  UUUS9I Sh  vN $  N7f)Y  
Asynchronous coroutine to update the ChannelInstance

:param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
:param type:
:param messaging_service_sid: The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this channel belongs to.

:returns: The updated ChannelInstance
rO   N)rJ   update_asyncrQ   s       r   rU   ChannelInstance.update_async   s6     " [[--%="7 . 
 
 	
 
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>+ChannelInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z#<Twilio.Chat.V3.ChannelInstance {}>joinr@   itemsr]   rB   contexts     r   __repr__ChannelInstance.__repr__   s6     ((SDNN<P<P<RSS4;;GDDr   )rA   r@   r.   r1   r5   r3   r4   r/   r6   r7   r8   r+   r,   r2   r0   r9   )NN)rE   rG   )r   r   r   r   objectr    r(   r   r   strr   r   r<   propertyrJ   r	   unsetr   rP   rU   rk   r   __classcell__rC   s   @r   r   r      sW   f V * &*!$7$7 c3h$7 c]	$7
 c]$7 $7L  & LL=C\\4:LL
"'0&8#


 169:
  %S&[1
 

6 LL=C\\4:LL
"'0&8#


 169:
  %S&[1
 

.E# E Er   r   c            	       B  ^  \ rS rSrS\S\S\4U 4S jjr\R                  \R                  \R                  4S\	S\
4   S\	S	\
4   S
\	\\
4   S\4S jjr\R                  \R                  \R                  4S\	S\
4   S\	S	\
4   S
\	\\
4   S\4S jjrS\4S jrSrU =r$ )rG      r)   r+   r,   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 ChannelContext

:param version: Version that contains the resource
:param service_sid: The unique SID identifier of the Service.
:param sid: A 34 character string that uniquely identifies this Channel.
r:   z&/Services/{service_sid}/Channels/{sid}Nr   )r;   r<   r@   r]   _uri)rB   r)   r+   r,   rC   s       r   r<   ChannelContext.__init__   s>     	! '
 =CCUdnnU	r   rL   r"   r2   r   r8   rE   c                    [         R                  " UUS.5      n[         R                  " 0 5      nU[         R                  L d   [        U[        5      (       a  U(       a  XS'   SUS'   SUS'   U R
                  R                  SU R                  XES9n[        U R
                  UU R                  S	   U R                  S
   S9$ )rN   TypeMessagingServiceSidX-Twilio-Webhook-Enabled!application/x-www-form-urlencodedContent-Typeapplication/jsonAcceptPOSTmethoduridataheadersr+   r,   r:   )
r	   ofrp   
isinstancern   rH   rP   rv   r   r@   rB   rL   r2   r8   r   r   r*   s          r   rP   ChannelContext.update   s    $ yy'<
 ))B- %43S990 3K./"E.--&&tyyt ' 
 MM}5u%	
 	
r   c                   #    [         R                  " UUS.5      n[         R                  " 0 5      nU[         R                  L d   [        U[        5      (       a  U(       a  XS'   SUS'   SUS'   U R
                  R                  SU R                  XES9I S	h  vN n[        U R
                  UU R                  S
   U R                  S   S9$  N47f)rT   ry   r|   r}   r~   r   r   r   r   Nr+   r,   r:   )
r	   r   rp   r   rn   rH   rU   rv   r   r@   r   s          r   rU   ChannelContext.update_async   s     $ yy'<
 ))B- %43S990 3K./"E.22tyyt 3 
 
 MM}5u%	
 	
	
s   BCC5Cc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rX   rY   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr[   r\   r^   s      r   rb   *ChannelContext.__repr__.<locals>.<genexpr>  rd   re   z"<Twilio.Chat.V3.ChannelContext {}>rf   ri   s     r   rk   ChannelContext.__repr__  s6     ((SDNN<P<P<RSS3::7CCr   )r@   rv   )r   r   r   r   r   rn   r<   r	   rp   r   rm   r   rP   rU   rk   r   rq   rr   s   @r   rG   rG      s    V Vc V V* LL=C\\4:LL0
"'0&8#
0

 169:0
  %S&[10
 
0
l LL=C\\4:LL0
"'0&8#
0

 169:0
  %S&[10
 
0
dD# D Dr   rG   c                   j   ^  \ rS rSrS\4U 4S jjrS\S\S\4S jrS\S\S\4S jr	S\4S	 jr
S
rU =r$ )ChannelListi"  r)   c                 $   > [         TU ]  U5        g)zQ
Initialize the ChannelList

:param version: Version that contains the resource

N)r;   r<   )rB   r)   rC   s     r   r<   ChannelList.__init__$  s     	!r   r+   r,   rE   c                 *    [        U R                  XS9$ z
Constructs a ChannelContext

:param service_sid: The unique SID identifier of the Service.
:param sid: A 34 character string that uniquely identifies this Channel.
r:   rG   rH   rB   r+   r,   s      r   r=   ChannelList.get-       dmmNNr   c                 *    [        U R                  XS9$ r   r   r   s      r   __call__ChannelList.__call__6  r   r   c                     g)rX   z<Twilio.Chat.V3.ChannelList>r   rI   s    r   rk   ChannelList.__repr__?  s     .r   r   )r   r   r   r   r   r<   rn   rG   r=   r   rk   r   rq   rr   s   @r   r   r   "  s\    " "Os O O OOC Oc On O.# . .r   r   N)__doc__r   typingr   r   r   r   twilio.baser   r	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   rG   r   r   r   r   <module>r      sS     - - + 8 : 2 'FE& FER~D_ ~DB#., #.r   