
    d{i                     |    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
 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)ApiResponse)InstanceContext)ListResource)Versionc                        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de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       `/home/sas/my/fyp/ringai/.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 )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        DELETEmethoduriheaders)r   of_versiondelete_with_response_infor   r   r   s     r   _deletezArchivedCallContext._delete+   s8     ))B-}}66G 7 
 	
r   c                 .    | j                         \  }}}|S )zo
        Deletes the ArchivedCallInstance


        :returns: True if delete succeeds, False otherwise
        )r$   r   success_s      r   deletezArchivedCallContext.delete9   s     Ar   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the ArchivedCallInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_coder   )r$   r   r   r'   r-   r   s       r   delete_with_http_infoz)ArchivedCallContext.delete_with_http_infoC   s%     )-%g['RRr   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        r   r   N)r   r    r!   delete_with_response_info_asyncr   r#   s     r   _delete_asyncz!ArchivedCallContext._delete_asyncM   sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
w)z
        Asynchronous coroutine that deletes the ArchivedCallInstance


        :returns: True if delete succeeds, False otherwise
        N)r2   r&   s      r   delete_asyncz ArchivedCallContext.delete_async[   s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the ArchivedCallInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr+   )r2   r   r.   s       r   delete_with_http_info_asyncz/ArchivedCallContext.delete_with_http_info_asynce   s5      /3.@.@.B(B%g['RR )Cs   /-/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>u   s     SDAq7>>!Q/Ss   !z(<Twilio.Voice.V1.ArchivedCallContext {}>)joinr   itemsr   )r   contexts     r   __repr__zArchivedCallContext.__repr__o   s6     ((SDNN<P<P<RSS9@@IIr   )__name__
__module____qualname__r   r   strr   tupler$   boolr)   r   r/   r2   r4   r6   rB   __classcell__r   s   @r   r
   r
      s{    L Lt L# L"
 
 S{ S
U 
D S; S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__{   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.get        #4==tEEr   c                 2    t        | j                  ||      S rO   rP   rQ   s      r   __call__zArchivedCallList.__call__   rS   r   c                      y)r8   z"<Twilio.Voice.V1.ArchivedCallList>r   )r   s    r   rB   zArchivedCallList.__repr__   s     4r   )rC   rD   rE   r   r   r   rF   r
   rR   rU   rB   rI   rJ   s   @r   rL   rL   y   sY    " "F F3 F+> FFT F F0C F4# 4r   rL   N)__doc__datetimer   twilio.baser   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.list_resourcer   twilio.base.versionr   r
   rL   r   r   r   <module>r^      s;      0 8 2 '^J/ ^JB#4| #4r   