
    U}bgw-                         d Z ddlmZ ddlmZmZmZmZ ddlmZm	Z	 ddl
mZ ddlmZ ddlmZ ddlmZ  G d	 d
e          Z G d de          Z G d de          ZdS )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            
           e Zd Z G d de          Z G d de          Z	 	 	 ddedeee	f         de
e         d	e
e         f fd
Zedd            Zej        ej        ej        fdedef         dedef         deeef         dd fdZej        ej        ej        fdedef         dedef         deeef         dd fdZdefdZ xZS )ChannelInstancec                       e Zd ZdZdZdS )ChannelInstance.ChannelTypepublicprivateN)__name__
__module____qualname__PUBLICPRIVATE     n/home/e360mart.nyusoft.in/public_html/e360mart_env/lib/python3.11/site-packages/twilio/rest/chat/v3/channel.pyChannelTyper      s        r   r   c                       e Zd ZdZdZdS )"ChannelInstance.WebhookEnabledTypetruefalseN)r   r   r   TRUEFALSEr   r   r   WebhookEnabledTyper      s        r   r#   Nversionpayloadservice_sidsidc                    t                                          |           |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _	        t          j        |                    d                    | _        t          j        |                    d	                    | _        |                    d
          | _        t          j        |                    d                    | _        t          j        |                    d                    | _        |                    d          | _        |                    d          | _        |p| j        |p| j        d| _        d | _        d S )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*   r+   r,   r-   r   iso8601_datetimer.   r/   r0   integerr1   r2   r3   r4   	_solution_context)selfr$   r%   r&   r'   	__class__s        r   r7   zChannelInstance.__init__3   s    	!!!")++e"4"4*1++m*D*D*1++m*D*D,3KK,H,H*1++m*D*D)0\)B)B=D[[=P=P	0;0LKK''1
 1
 1<0LKK''1
 1
 *1\)B)B,7,?KK((-
 -
 .9-@KK()).
 .
 5<KK@W4X4X"")++e"4"4 ':$*:?$(
 
 37r   returnChannelContextc                     | j         2t          | j        | j        d         | j        d                   | _         | j         S )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
        Nr&   r'   r5   )r<   r@   _versionr;   r=   s    r   _proxyzChannelInstance._proxyY   sE     = * N=9N5)  DM
 }r   x_twilio_webhook_enabledr   r-   r   r3   c                 <    | j                             |||          S )o  
        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
        rE   r-   r3   )rD   updater=   rE   r-   r3   s       r   rI   zChannelInstance.updatei   s,    " {!!%="7 " 
 
 	
r   c                 L   K   | j                             |||           d{V S )  
        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
        rH   N)rD   update_asyncrJ   s       r   rM   zChannelInstance.update_async   sN      " [--%="7 . 
 
 
 
 
 
 
 
 	
r   c                     d                     d | j                                        D                       }d                    |          S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   H   K   | ]\  }}d                      ||          V  dS z{}={}Nformat.0kvs      r   	<genexpr>z+ChannelInstance.__repr__.<locals>.<genexpr>   4      SSDAq7>>!Q//SSSSSSr   z#<Twilio.Chat.V3.ChannelInstance {}>joinr;   itemsrT   r=   contexts     r   __repr__zChannelInstance.__repr__   sF     ((SSDN<P<P<R<RSSSSS4;;GDDDr   )NN)r?   r@   )r   r   r   objectr   r#   r   r   strr   r   r7   propertyrD   r	   unsetr   rI   rM   r`   __classcell__r>   s   @r   r   r      s            f       V   * &*!$7 $7$7 c3h$7 c]	$7
 c]$7 $7 $7 $7 $7 $7L    X& L=C\4:L
 
"'0&8#


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

 169:
  %S&[1
 

 
 
 
.E# E E E E E E E Er   r   c            	           e Zd Zdededef fdZej        ej        ej        fdede	f         dede	f         d	eee	f         d
e
fdZej        ej        ej        fdede	f         dede	f         d	eee	f         d
e
fdZd
efdZ xZS )r@   r$   r&   r'   c                     t                                          |           ||d| _         dj        di | j        | _        dS )a  
        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.
        r5   z&/Services/{service_sid}/Channels/{sid}Nr   )r6   r7   r;   rT   _uri)r=   r$   r&   r'   r>   s       r   r7   zChannelContext.__init__   sW     	!!! '
 
 D<CUUdnUU			r   rE   r   r-   r   r3   r?   c                     t          j        ||d          }t          j        d|i          }| j                            d| j        ||          }t          | j        || j        d         | j        d                   S )rG   TypeMessagingServiceSidX-Twilio-Webhook-EnabledPOSTmethoduridataheadersr&   r'   r5   )r	   ofrB   rI   ri   r   r;   r=   rE   r-   r3   rs   rt   r%   s          r   rI   zChannelContext.update   s    " y'< 
 
 )*,D
 
 -&&tytW ' 
 
 M}5u%	
 
 
 	
r   c                   K   t          j        ||d          }t          j        d|i          }| j                            d| j        ||           d{V }t          | j        || j        d         | j        d                   S )	rL   rk   rn   ro   rp   Nr&   r'   r5   )r	   ru   rB   rM   ri   r   r;   rv   s          r   rM   zChannelContext.update_async   s      " y'< 
 
 )*,D
 
 22tytW 3 
 
 
 
 
 
 
 
 M}5u%	
 
 
 	
r   c                     d                     d | j                                        D                       }d                    |          S )rO   rP   c              3   H   K   | ]\  }}d                      ||          V  dS rR   rS   rU   s      r   rY   z*ChannelContext.__repr__.<locals>.<genexpr>
  rZ   r   z"<Twilio.Chat.V3.ChannelContext {}>r[   r^   s     r   r`   zChannelContext.__repr__  sF     ((SSDN<P<P<R<RSSSSS3::7CCCr   )r   r   r   r   rb   r7   r	   rd   r   ra   r   rI   rM   r`   re   rf   s   @r   r@   r@      sc       V Vc V V V V V V V* L=C\4:L&
 &
"'0&8#
&

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

 169:&
  %S&[1&
 
&
 &
 &
 &
PD# D D D D D D D Dr   r@   c                   X     e Zd Zdef fdZdededefdZdededefdZdefdZ	 xZ
S )	ChannelListr$   c                 J    t                                          |           dS )zi
        Initialize the ChannelList

        :param version: Version that contains the resource

        N)r6   r7   )r=   r$   r>   s     r   r7   zChannelList.__init__  s#     	!!!!!r   r&   r'   r?   c                 0    t          | j        ||          S 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.
        r5   r@   rB   r=   r&   r'   s      r   r8   zChannelList.get       dm#NNNNr   c                 0    t          | j        ||          S r~   r   r   s      r   __call__zChannelList.__call__"  r   r   c                     dS )rO   z<Twilio.Chat.V3.ChannelList>r   rC   s    r   r`   zChannelList.__repr__+  s
     .-r   )r   r   r   r   r7   rb   r@   r8   r   r`   re   rf   s   @r   r{   r{     s        " " " " " " "Os O O O O O OOC Oc On O O O 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   r@   r{   r   r   r   <module>r      sR          - - - - - - - - - - - - + + + + + + + + 8 8 8 8 8 8 : : : : : : 2 2 2 2 2 2 ' ' ' ' ' 'FE FE FE FE FE& FE FE FERjD jD jD jD jD_ jD jD jDZ#. #. #. #. #., #. #. #. #. #.r   