o
    e                     @   s   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G dd deZG dd deZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
    )deserialize)InstanceContext)InstanceResource)ListResource)Pagec                       s8   e Zd ZdZ fddZdd Zdd Zdd	 Z  ZS )
ArchivedCallListk PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. c                    s   t t| | i | _dS )a   
        Initialize the ArchivedCallList

        :param Version version: Version that contains the resource

        :returns: twilio.rest.voice.v1.archived_call.ArchivedCallList
        :rtype: twilio.rest.voice.v1.archived_call.ArchivedCallList
        N)superr   __init__	_solution)selfversion	__class__ U/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/voice/v1/archived_call.pyr
      s   	
zArchivedCallList.__init__c                 C      t | j||dS a:  
        Constructs a ArchivedCallContext

        :param date: The date of the Call in UTC.
        :param sid: The unique string that identifies this resource

        :returns: twilio.rest.voice.v1.archived_call.ArchivedCallContext
        :rtype: twilio.rest.voice.v1.archived_call.ArchivedCallContext
        datesidArchivedCallContext_versionr   r   r   r   r   r   get"      
zArchivedCallList.getc                 C   r   r   r   r   r   r   r   __call__.   r   zArchivedCallList.__call__c                 C      dS )z
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z"<Twilio.Voice.V1.ArchivedCallList>r   r   r   r   r   __repr__:      zArchivedCallList.__repr__)	__name__
__module____qualname____doc__r
   r   r   r!   __classcell__r   r   r   r   r      s    r   c                       0   e Zd ZdZ fddZdd Zdd Z  ZS )ArchivedCallPager   c                    s   t t| || || _dS )a8  
        Initialize the ArchivedCallPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API

        :returns: twilio.rest.voice.v1.archived_call.ArchivedCallPage
        :rtype: twilio.rest.voice.v1.archived_call.ArchivedCallPage
        N)r	   r)   r
   r   )r   r   responsesolutionr   r   r   r
   H   s   

zArchivedCallPage.__init__c                 C   s   t | j|S )a
  
        Build an instance of ArchivedCallInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.voice.v1.archived_call.ArchivedCallInstance
        :rtype: twilio.rest.voice.v1.archived_call.ArchivedCallInstance
        )ArchivedCallInstancer   )r   payloadr   r   r   get_instanceW   s   	zArchivedCallPage.get_instancec                 C   r   )r   z"<Twilio.Voice.V1.ArchivedCallPage>r   r    r   r   r   r!   b   r"   zArchivedCallPage.__repr__)r#   r$   r%   r&   r
   r.   r!   r'   r   r   r   r   r)   D   s
    r)   c                       r(   )r   r   c                    s4   t t| | ||d| _djdi | j| _dS )a  
        Initialize the ArchivedCallContext

        :param Version version: Version that contains the resource
        :param date: The date of the Call in UTC.
        :param sid: The unique string that identifies this resource

        :returns: twilio.rest.voice.v1.archived_call.ArchivedCallContext
        :rtype: twilio.rest.voice.v1.archived_call.ArchivedCallContext
        r   z/Archives/{date}/Calls/{sid}Nr   )r	   r   r
   r   format_uri)r   r   r   r   r   r   r   r
   p   s   zArchivedCallContext.__init__c                 C   s   | j jd| jdS )
        Deletes the ArchivedCallInstance

        :returns: True if delete succeeds, False otherwise
        :rtype: bool
        DELETE)methoduri)r   deleter0   r    r   r   r   r5      s   zArchivedCallContext.deletec                 C   $   d dd | j D }d|S )r    c                 s        | ]\}}d  ||V  qdS z{}={}Nr/   .0kvr   r   r   	<genexpr>       z/ArchivedCallContext.__repr__.<locals>.<genexpr>z(<Twilio.Voice.V1.ArchivedCallContext {}>joinr   itemsr/   r   contextr   r   r   r!         
zArchivedCallContext.__repr__)r#   r$   r%   r&   r
   r5   r!   r'   r   r   r   r   r   l   s
    	r   c                       sb   e Zd ZdZd fdd	Zedd Zedd Zed	d
 Zedd Z	dd Z
dd Z  ZS )r,   r   Nc                    s`   t t| | t|d|d|dd| _d| _|p$| jd |p*| jd d| _dS )z
        Initialize the ArchivedCallInstance

        :returns: twilio.rest.voice.v1.archived_call.ArchivedCallInstance
        :rtype: twilio.rest.voice.v1.archived_call.ArchivedCallInstance
        r   r   url)r   r   rG   Nr   )	r	   r,   r
   r   iso8601_dater   _properties_contextr   )r   r   r-   r   r   r   r   r   r
      s   $zArchivedCallInstance.__init__c                 C   s.   | j du rt| j| jd | jd d| _ | j S )a;  
        Generate an instance context for the instance, the context is capable of
        performing various actions.  All instance actions are proxied to the context

        :returns: ArchivedCallContext for this ArchivedCallInstance
        :rtype: twilio.rest.voice.v1.archived_call.ArchivedCallContext
        Nr   r   r   )rJ   r   r   r   r    r   r   r   _proxy   s   
	zArchivedCallInstance._proxyc                 C   
   | j d S )z5
        :returns: date
        :rtype: date
        r   rI   r    r   r   r   r         
zArchivedCallInstance.datec                 C   rL   )z7
        :returns: sid
        :rtype: unicode
        r   rM   r    r   r   r   r      rN   zArchivedCallInstance.sidc                 C   rL   )zT
        :returns: The absolute URL of the resource
        :rtype: unicode
        rG   rM   r    r   r   r   rG      rN   zArchivedCallInstance.urlc                 C   s
   | j  S )r1   )rK   r5   r    r   r   r   r5      s   
zArchivedCallInstance.deletec                 C   r6   )r   r7   c                 s   r8   r9   r:   r;   r   r   r   r?      r@   z0ArchivedCallInstance.__repr__.<locals>.<genexpr>z)<Twilio.Voice.V1.ArchivedCallInstance {}>rA   rD   r   r   r   r!      rF   zArchivedCallInstance.__repr__)NN)r#   r$   r%   r&   r
   propertyrK   r   r   rG   r5   r!   r'   r   r   r   r   r,      s    



	r,   N)r&   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r)   r   r,   r   r   r   r   <module>   s   4()