o
    f>hJ                     @   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                       sT   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 )ArchivedCallContextversionr   sidc                    s0   t  | ||d| _djdi | 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__r   U/var/www/html/venv/lib/python3.10/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                       s\   e Zd Zdef fddZdededefddZdededefd	d
Z	defddZ
  ZS )ArchivedCallListr   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      zArchivedCallList.__init__r   r	   r   c                 C      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   r1   zArchivedCallList.getc                 C   r2   r3   r4   r5   r   r   r   __call__b   r1   zArchivedCallList.__call__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   r6   r7   r)   r/   r   r   r   r   r0   N   s
    			r0   N)__doc__datetimer   twilio.baser   twilio.base.instance_contextr   twilio.base.list_resourcer   twilio.base.versionr   r   r0   r   r   r   r   <module>   s    7