U
    ^g%iu                     @   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                       s|   e Zd ZG dd deZeeeef eed fddZ	e
dddd	Zd dd
dZd dddZed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__Z	CONNECTEDZDISCONNECTED r   r   n/var/www/html/api-medvista/venv/lib/python3.8/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   Ziso8601_datetimer   r   r   r   integerr    r!   	_solution_context)selfr   r   r   r   	__class__r   r   r$   ,   s0    zAnonymizeInstance.__init__AnonymizeContextreturnc                 C   s.   | j dk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(   r,   _versionr'   r)   r   r   r   _proxyK   s    
zAnonymizeInstance._proxyc                 C   s
   | j  S )`
        Update the AnonymizeInstance


        :returns: The updated AnonymizeInstance
        )r1   updater0   r   r   r   r3   [   s    zAnonymizeInstance.updatec                    s   | j  I dH S )z
        Asynchronous coroutine to update the AnonymizeInstance


        :returns: The updated AnonymizeInstance
        N)r1   update_asyncr0   r   r   r   r5   d   s    zAnonymizeInstance.update_asyncc                 C   s$   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s   s   | ]\}}d  ||V  qdS z{}={}Nformat.0kvr   r   r   	<genexpr>s   s     z-AnonymizeInstance.__repr__.<locals>.<genexpr>z&<Twilio.Video.V1.AnonymizeInstance {}>joinr'   itemsr:   r)   contextr   r   r   __repr__m   s    zAnonymizeInstance.__repr__)r   r   r   objectr   r   r   strr   r$   propertyr1   r3   r5   rE   __classcell__r   r   r*   r   r      s    
  		r   c                       sP   e Zd Zeeed fddZedddZedddZedd	d
Z	  Z
S )r,   r   r   r   c                    s,   t  | ||d| _djf | 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}/AnonymizeN)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 )r2   application/jsonAcceptPOSTmethoduridataheadersr   r   r"   )r   ofr/   r3   rK   r   r'   r)   rS   rT   r   r   r   r   r3      s    

   zAnonymizeContext.updatec                    sV   t i }t i }d|d< | jjd| j||dI dH }t| j|| jd | jd dS )	r4   rM   rN   rO   rP   Nr   r   r"   )r   rU   r/   r5   rK   r   r'   rV   r   r   r   r5      s    

   zAnonymizeContext.update_asyncc                 C   s$   d dd | j D }d|S )r6   r7   c                 s   s   | ]\}}d  ||V  qdS r8   r9   r;   r   r   r   r?      s     z,AnonymizeContext.__repr__.<locals>.<genexpr>z%<Twilio.Video.V1.AnonymizeContext {}>r@   rC   r   r   r   rE      s    zAnonymizeContext.__repr__)r   r   r   r   rG   r$   r   r3   r5   rE   rI   r   r   r*   r   r,   w   s   r,   c                       sP   e Zd Zeeed fddZedddZedddZedd	d
Z	  Z
S )AnonymizeListrJ   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'   rL   r*   r   r   r$      s    	zAnonymizeList.__init__r-   c                 C   s   t | j| jd | jd dS z0
        Constructs a AnonymizeContext

        r   r   r"   r,   r/   r'   r0   r   r   r   r%      s
    zAnonymizeList.getc                 C   s   t | j| jd | jd dS rX   rY   r0   r   r   r   __call__   s
    zAnonymizeList.__call__c                 C   s   dS )r6   z<Twilio.Video.V1.AnonymizeList>r   r0   r   r   r   rE      s    zAnonymizeList.__repr__)r   r   r   r   rG   r$   r,   r%   rZ   rE   rI   r   r   r*   r   rW      s   rW   N)__doc__r   typingr   r   r   Ztwilio.baser   r   Ztwilio.base.instance_contextr   Ztwilio.base.instance_resourcer	   Ztwilio.base.list_resourcer
   Ztwilio.base.versionr   r   r,   rW   r   r   r   r   <module>   s   _O