
    piJ                     p    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e      Z G d	 d
e      Zy)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                   P     e Zd Zdededef fdZdefdZdefdZ	defdZ
 xZS )	ArchivedCallContextversionr   sidc                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)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__s       d/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/voice/v1/archived_call.pyr   zArchivedCallContext.__init__   sA     	! 
 :299KDNNK	    returnc                 |    t        j                  i       }| j                  j                  d| j                  |      S )zo
        Deletes the ArchivedCallInstance


        :returns: True if delete succeeds, False otherwise
        DELETEmethoduriheaders)r   of_versiondeleter   r   r   s     r   r!   zArchivedCallContext.delete*   s1     ))B-}}##8G#TTr   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Asynchronous coroutine that deletes the ArchivedCallInstance


        :returns: True if delete succeeds, False otherwise
        r   r   N)r   r   r    delete_asyncr   r"   s     r   r$   z ArchivedCallContext.delete_async6   sF      ))B-]]//G 0 
 
 	
 
s   AA
AA
c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        yw)z{}={}N)r   ).0kvs      r   	<genexpr>z/ArchivedCallContext.__repr__.<locals>.<genexpr>J   s     SDAq7>>!Q/Ss   !z(<Twilio.Voice.V1.ArchivedCallContext {}>)joinr   itemsr   )r   contexts     r   __repr__zArchivedCallContext.__repr__D   s6     ((SDNN<P<P<RSS9@@IIr   )__name__
__module____qualname__r   r   strr   boolr!   r$   r0   __classcell__r   s   @r   r	   r	      sI    L Lt L# L"
U 
U
D 
J# Jr   r	   c                   X     e Zd Zdef fdZdededefdZdededefdZ	defdZ
 xZS )	ArchivedCallListr
   c                 $    t         |   |       y)zn
        Initialize the ArchivedCallList

        :param version: Version that contains the resource

        N)r   r   )r   r
   r   s     r   r   zArchivedCallList.__init__P   s     	!r   r   r   r   c                 2    t        | j                  ||      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   s      r   getzArchivedCallList.getY        #4==tEEr   c                 2    t        | j                  ||      S r<   r=   r>   s      r   __call__zArchivedCallList.__call__b   r@   r   c                      y)r&   z"<Twilio.Voice.V1.ArchivedCallList>r   )r   s    r   r0   zArchivedCallList.__repr__k   s     4r   )r1   r2   r3   r   r   r   r4   r	   r?   rB   r0   r6   r7   s   @r   r9   r9   N   sY    " "F F3 F+> FFT F F0C F4# 4r   r9   N)__doc__datetimer   twilio.baser   twilio.base.instance_contextr   twilio.base.list_resourcer   twilio.base.versionr   r	   r9   r   r   r   <module>rJ      s6      8 2 '4J/ 4Jn#4| #4r   