o
    f>hu                     @   s   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
 d
eZG dd de
ZG dd deZdS )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                       sx   e Zd ZG dd deZ	 dedeeef dedef fddZ	e
dddZdddZdddZd	efddZ  ZS )AnonymizeInstancec                   @   s   e Zd ZdZdZdS )zAnonymizeInstance.Status	connecteddisconnectedN)__name__
__module____qualname__	CONNECTEDDISCONNECTED r   r   b/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/video/v1/room/participant/anonymize.pyStatus   s    r   versionpayloadroom_sidsidc                    s   t  | |d| _|d| _|d| _|d| _|d| _t	|d| _
t	|d| _t	|d| _t	|d	| _t|d
| _|d| _||d| _d | _d S )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__r   r   r&   ,   s0   
zAnonymizeInstance.__init__returnAnonymizeContextc                 C   s.   | j du rt| j| jd | jd 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
        Nr   r   r$   )r+   r0   _versionr*   r,   r   r   r   _proxyK   s   
zAnonymizeInstance._proxyc                 C   s
   | j  S )`
        Update the AnonymizeInstance


        :returns: The updated AnonymizeInstance
        )r3   updater2   r   r   r   r5   [   s   
zAnonymizeInstance.updatec                    s   | j  I dH S )z
        Asynchronous coroutine to update the AnonymizeInstance


        :returns: The updated AnonymizeInstance
        N)r3   update_asyncr2   r   r   r   r7   d   s   zAnonymizeInstance.update_asyncc                 C   $   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s        | ]\}}d  ||V  qdS z{}={}Nformat.0kvr   r   r   	<genexpr>s       z-AnonymizeInstance.__repr__.<locals>.<genexpr>z&<Twilio.Video.V1.AnonymizeInstance {}>joinr*   itemsr>   r,   contextr   r   r   __repr__m      
zAnonymizeInstance.__repr__)r/   r0   )r/   r   )r   r   r   objectr   r   r   strr   r&   propertyr3   r5   r7   rJ   __classcell__r   r   r-   r   r      s"    


		r   c                       T   e Zd Zdededef fddZdefddZdefd	d
ZdefddZ	  Z
S )r0   r   r   r   c                    s0   t  | ||d| _djdi | j| _dS )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&   r*   r>   _urir,   r   r   r   r-   r   r   r&   y   s   zAnonymizeContext.__init__r/   c                 C   sP   t i }t i }d|d< | jjd| j||d}t| j|| jd | jd dS )r4   application/jsonAcceptPOSTmethoduridataheadersr   r   r$   )r   ofr1   r5   rQ   r   r*   r,   rY   rZ   r   r   r   r   r5      s   


zAnonymizeContext.updatec                    sX   t i }t i }d|d< | jjd| j||dI dH }t| j|| jd | jd dS )	r6   rS   rT   rU   rV   Nr   r   r$   )r   r[   r1   r7   rQ   r   r*   r\   r   r   r   r7      s   


zAnonymizeContext.update_asyncc                 C   r8   )r9   r:   c                 s   r;   r<   r=   r?   r   r   r   rC      rD   z,AnonymizeContext.__repr__.<locals>.<genexpr>z%<Twilio.Video.V1.AnonymizeContext {}>rE   rH   r   r   r   rJ      rK   zAnonymizeContext.__repr__)r   r   r   r   rM   r&   r   r5   r7   rJ   rO   r   r   r-   r   r0   w   s
    r0   c                       rP   )AnonymizeListr   r   r   c                    s   t  | ||d| _dS )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&   r*   rR   r-   r   r   r&      s   	zAnonymizeList.__init__r/   c                 C      t | j| jd | jd dS z0
        Constructs a AnonymizeContext

        r   r   r$   r0   r1   r*   r2   r   r   r   r'      
   zAnonymizeList.getc                 C   r^   r_   r`   r2   r   r   r   __call__   ra   zAnonymizeList.__call__c                 C   s   dS )r9   z<Twilio.Video.V1.AnonymizeList>r   r2   r   r   r   rJ      s   zAnonymizeList.__repr__)r   r   r   r   rM   r&   r0   r'   rb   rJ   rO   r   r   r-   r   r]      s
    r]   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   r0   r]   r   r   r   r   <module>   s    _O