o
    /i                     @   sX   d 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)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
   ]/var/www/html/philips/venv/lib/python3.10/site-packages/twilio/rest/voice/v1/archived_call.pyr      s
   zArchivedCallContext.__init__returnc                 C   s   | j jd| jdS )zo
        Deletes the ArchivedCallInstance


        :returns: True if delete succeeds, False otherwise
        DELETEmethoduri)_versiondeleter   r   r
   r
   r   r   )   s   zArchivedCallContext.deletec                    s   | 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   delete_asyncr   r   r
   r
   r   r   5   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>G   s    z/ArchivedCallContext.__repr__.<locals>.<genexpr>z(<Twilio.Voice.V1.ArchivedCallContext {}>)joinr   itemsr   )r   contextr
   r
   r   __repr__A   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   L      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   getU   r.   zArchivedCallList.getc                 C   r/   r0   r1   r2   r
   r
   r   __call__^   r.   zArchivedCallList.__call__c                 C   s   dS )r   z"<Twilio.Voice.V1.ArchivedCallList>r
   r   r
   r
   r   r&   g   s   zArchivedCallList.__repr__)r'   r(   r)   r   r   r   r*   r   r3   r4   r&   r,   r
   r
   r   r   r-   K   s
    			r-   N)__doc__datetimer   twilio.base.instance_contextr   twilio.base.list_resourcer   twilio.base.versionr   r   r-   r
   r
   r
   r   <module>   s    4