
    m>hu                         d Z ddlmZ ddl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y)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Video
    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)deserializevalues)InstanceContext)InstanceResource)ListResource)Versionc                        e Zd Z G d de      Z	 dedeeef   dedef fdZ	e
dd	       Zdd
ZddZdefdZ xZS )AnonymizeInstancec                       e Zd ZdZdZy)AnonymizeInstance.Status	connecteddisconnectedN)__name__
__module____qualname__	CONNECTEDDISCONNECTED     s/var/www/html/DP/alpha_backend/venv/lib/python3.12/site-packages/twilio/rest/video/v1/room/participant/anonymize.pyStatusr      s    	%r   r   versionpayloadroom_sidsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _
        t        j                  |j                  d            | _        t        j                  |j                  d            | _        t        j                  |j                  d	            | _        t        j                  |j                  d
            | _        |j                  d      | _        ||d| _        d | _        y )Nr   r   account_sidstatusidentitydate_createddate_updated
start_timeend_timedurationurlr   r   )super__init__getr   r   r!   r"   r#   r   iso8601_datetimer$   r%   r&   r'   integerr(   r)   	_solution_context)selfr   r   r   r   	__class__s        r   r,   zAnonymizeInstance.__init__,   s*    	!")++e"4'.{{:'>*1++m*D<CKK<Q'.{{:'>0;0L0LKK'1
 1<0L0LKK'1
 /:.J.JKK%/
 -8,H,HKK
#-
 (3':':7;;z;R'S")++e"4 !
 59r   returnc                     | j                   7t        | 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: AnonymizeContext for this AnonymizeInstance
        r   r   r*   )r1   AnonymizeContext_versionr0   r2   s    r   _proxyzAnonymizeInstance._proxyK   sE     == ,
3NN5)DM
 }}r   c                 6    | j                   j                         S )`
        Update the AnonymizeInstance


        :returns: The updated AnonymizeInstance
        )r9   updater8   s    r   r<   zAnonymizeInstance.update[   s     {{!!##r   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to update the AnonymizeInstance


        :returns: The updated AnonymizeInstance
        N)r9   update_asyncr8   s    r   r?   zAnonymizeInstance.update_asyncd   s!      [[--////s   '%'c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r   	<genexpr>z-AnonymizeInstance.__repr__.<locals>.<genexpr>s   "     S<RDAq7>>!Q/<R   !z&<Twilio.Video.V1.AnonymizeInstance {}>joinr0   itemsrF   r2   contexts     r   __repr__zAnonymizeInstance.__repr__m   s6     ((SDNN<P<P<RSS7>>wGGr   )r4   r6   )r4   r   )r   r   r   objectr   r   r   strr   r,   propertyr9   r<   r?   rS   __classcell__r3   s   @r   r   r      sm    & &99)-c3h9CF9MP9>  $0H# Hr   r   c                   P     e Zd Zdededef fdZdefdZdefdZdefdZ	 xZ
S )	r6   r   r   r   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)a  
        Initialize the AnonymizeContext

        :param version: Version that contains the resource
        :param room_sid: The SID of the room with the participant to update.
        :param sid: The SID of the RoomParticipant resource to update.
        r*   z./Rooms/{room_sid}/Participants/{sid}/AnonymizeNr   )r+   r,   r0   rF   _urir2   r   r   r   r3   s       r   r,   zAnonymizeContext.__init__y   sG     	! !
 LDKK 
nn
	r   r4   c                    t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                  d   | j                  d         S )r;   application/jsonAcceptPOSTmethoduridataheadersr   r   r*   )r   ofr7   r<   r[   r   r0   r2   rd   re   r   s       r   r<   zAnonymizeContext.update   s     yy}))B-.--&&tyytW ' 
 !MM^^J/u%	
 	
r   c                 4  K   t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                  d   | j                  d         S 7 7w)	r>   r^   r_   r`   ra   Nr   r   r*   )r   rf   r7   r?   r[   r   r0   rg   s       r   r?   zAnonymizeContext.update_async   s      yy}))B-.22tyytW 3 
 
 !MM^^J/u%	
 	
	
s   ABB8Bc                     dj                  d | j                  j                         D              }dj                  |      S )rA   rB   c              3   F   K   | ]  \  }}d j                  ||        ywrD   rE   rG   s      r   rK   z,AnonymizeContext.__repr__.<locals>.<genexpr>   rL   rM   z%<Twilio.Video.V1.AnonymizeContext {}>rN   rQ   s     r   rS   zAnonymizeContext.__repr__   s6     ((SDNN<P<P<RSS6==gFFr   )r   r   r   r   rU   r,   r   r<   r?   rS   rW   rX   s   @r   r6   r6   w   sE    
 
3 
S 
&
) 
0
$5 
0G# Gr   r6   c                   P     e Zd Zdededef fdZdefdZdefdZdefdZ	 xZ
S )	AnonymizeListr   r   r   c                 8    t         |   |       ||d| _        y)z
        Initialize the AnonymizeList

        :param version: Version that contains the resource
        :param room_sid: The SID of the room with the participant to update.
        :param sid: The SID of the RoomParticipant resource to update.

        r*   N)r+   r,   r0   r\   s       r   r,   zAnonymizeList.__init__   s#     	! !
r   r4   c                 f    t        | j                  | j                  d   | j                  d         S z0
        Constructs a AnonymizeContext

        r   r   r*   r6   r7   r0   r8   s    r   r-   zAnonymizeList.get   0    
  MM^^J/u%
 	
r   c                 f    t        | j                  | j                  d   | j                  d         S ro   rp   r8   s    r   __call__zAnonymizeList.__call__   rq   r   c                      y)rA   z<Twilio.Video.V1.AnonymizeList>r   r8   s    r   rS   zAnonymizeList.__repr__   s     1r   )r   r   r   r   rU   r,   r6   r-   rs   rS   rW   rX   s   @r   rl   rl      sC    
 
3 
S 
"	
% 	
	
* 	
1# 1r   rl   N)__doc__r   typingr   r   r   twilio.baser   r   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r6   rl   r   r   r   <module>r|      sS     & & + 8 : 2 '\H( \H~LG LG^/1L /1r   