U
    ^g%iJ                     @   sd   d Z ddl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dS )a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Voice
    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.
    )date)values)InstanceContext)ListResource)Versionc                       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 )ArchivedCallContext)versionr   sidc                    s,   t  | ||d| _djf | j| _dS )a  
        Initialize the ArchivedCallContext

        :param version: Version that contains the resource
        :param date: The date of the Call in UTC.
        :param sid: The Twilio-provided Call SID that uniquely identifies the Call resource to delete
        r   r	   z/Archives/{date}/Calls/{sid}N)super__init__	_solutionformat_uri)selfr   r   r	   	__class__ a/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/voice/v1/archived_call.pyr      s
    zArchivedCallContext.__init__returnc                 C   s   t i }| jjd| j|dS )zo
        Deletes the ArchivedCallInstance


        :returns: True if delete succeeds, False otherwise
        DELETEmethoduriheaders)r   of_versiondeleter   r   r   r   r   r   r   *   s    
zArchivedCallContext.deletec                    s$   t i }| jjd| j|dI dH S )z
        Asynchronous coroutine that deletes the ArchivedCallInstance


        :returns: True if delete succeeds, False otherwise
        r   r   N)r   r   r   delete_asyncr   r   r   r   r   r    6   s    
  z ArchivedCallContext.delete_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)r   ).0kvr   r   r   	<genexpr>J   s     z/ArchivedCallContext.__repr__.<locals>.<genexpr>z(<Twilio.Voice.V1.ArchivedCallContext {}>)joinr   itemsr   )r   contextr   r   r   __repr__D   s    zArchivedCallContext.__repr__)__name__
__module____qualname__r   r   strr   boolr   r    r*   __classcell__r   r   r   r   r      s   r   c                       sT   e Zd Zed fddZeeedddZeeedddZ	ed	d
dZ
  ZS )ArchivedCallList)r   c                    s   t  | dS )zn
        Initialize the ArchivedCallList

        :param version: Version that contains the resource

        N)r   r   )r   r   r   r   r   r   P   s    zArchivedCallList.__init__)r   r	   r   c                 C   s   t | j||dS z
        Constructs a ArchivedCallContext

        :param date: The date of the Call in UTC.
        :param sid: The Twilio-provided Call SID that uniquely identifies the Call resource to delete
        r
   r   r   r   r   r	   r   r   r   getY   s    zArchivedCallList.getc                 C   s   t | j||dS r2   r3   r4   r   r   r   __call__b   s    zArchivedCallList.__call__r   c                 C   s   dS )r!   z"<Twilio.Voice.V1.ArchivedCallList>r   )r   r   r   r   r*   k   s    zArchivedCallList.__repr__)r+   r,   r-   r   r   r   r.   r   r5   r6   r*   r0   r   r   r   r   r1   N   s   			r1   N)__doc__datetimer   Ztwilio.baser   Ztwilio.base.instance_contextr   Ztwilio.base.list_resourcer   Ztwilio.base.versionr   r   r1   r   r   r   r   <module>   s   7