
    pi                         d Z ddlmZ ddlmZmZmZ ddlmZ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 G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Accounts
    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.
    )datetime)AnyDictOptional)deserializevalues)InstanceContext)InstanceResource)ListResource)Versionc                   |     e Zd ZdZdedeeef   f fdZe	dd       Z
ddZddZdefd	Zdefd
ZdefdZ xZS )SecondaryAuthTokenInstancea  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the secondary Auth Token was created for.
    :ivar date_created: The date and time in UTC when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar date_updated: The date and time in UTC when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar secondary_auth_token: The generated secondary Auth Token that can be used to authenticate future API requests.
    :ivar url: The URI for this resource, relative to `https://accounts.twilio.com`
    versionpayloadc                 Z   t         |   |       |j                  d      | _        t	        j
                  |j                  d            | _        t	        j
                  |j                  d            | _        |j                  d      | _        |j                  d      | _	        d | _
        y )Naccount_siddate_createddate_updatedsecondary_auth_tokenurl)super__init__getr   r   iso8601_datetimer   r   r   r   _context)selfr   r   	__class__s      n/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/accounts/v1/secondary_auth_token.pyr   z#SecondaryAuthTokenInstance.__init__!   s    !*1++m*D0;0L0LKK'1
 1<0L0LKK'1
 4;;;?U3V!")++e"4=A    returnc                 f    | j                   t        | j                        | _         | j                   S )z
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: SecondaryAuthTokenContext for this SecondaryAuthTokenInstance
        )r   SecondaryAuthTokenContext_versionr   s    r   _proxyz!SecondaryAuthTokenInstance._proxy0   s-     == 5DM }}r   c                 6    | j                   j                         S )r
        Create the SecondaryAuthTokenInstance


        :returns: The created SecondaryAuthTokenInstance
        )r%   creater$   s    r   r(   z!SecondaryAuthTokenInstance.create>        {{!!##r   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to create the SecondaryAuthTokenInstance


        :returns: The created SecondaryAuthTokenInstance
        N)r%   create_asyncr$   s    r   r,   z'SecondaryAuthTokenInstance.create_asyncG   !      [[--////   '%'c                 6    | j                   j                         S )u
        Deletes the SecondaryAuthTokenInstance


        :returns: True if delete succeeds, False otherwise
        )r%   deleter$   s    r   r1   z!SecondaryAuthTokenInstance.deleteP   r)   r   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine that deletes the SecondaryAuthTokenInstance


        :returns: True if delete succeeds, False otherwise
        N)r%   delete_asyncr$   s    r   r4   z'SecondaryAuthTokenInstance.delete_asyncY   r-   r.   c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z/<Twilio.Accounts.V1.SecondaryAuthTokenInstance> r$   s    r   __repr__z#SecondaryAuthTokenInstance.__repr__b   s     Ar   )r    r"   )r    r   )__name__
__module____qualname____doc__r   r   strr   r   propertyr%   r(   r,   boolr1   r4   r8   __classcell__r   s   @r   r   r      sj    B B$sCx. B  $0$ $0D 0A# Ar   r   c                   `     e Zd Z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 xZS )	r"   r   c                 2    t         |   |       d| _        y)zv
        Initialize the SecondaryAuthTokenContext

        :param version: Version that contains the resource
        z/AuthTokens/SecondaryN)r   r   _urir   r   r   s     r   r   z"SecondaryAuthTokenContext.__init__n   s     	!+	r   r    c                     t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )r'   application/jsonAcceptPOSTmethoduridataheaders)r   ofr#   r(   rD   r   r   rM   rN   r   s       r   r(   z SecondaryAuthTokenContext.createx   sa     yy}))B-.--&&tyytW ' 
 *$--AAr   c                    K   t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)r+   rG   rH   rI   rJ   N)r   rO   r#   r,   rD   r   rP   s       r   r,   z&SecondaryAuthTokenContext.create_async   so      yy}))B-.22tyytW 3 
 
 *$--AA	
s   AA;A9A;c                 |    t        j                  i       }| j                  j                  d| j                  |      S )r0   DELETErK   rL   rN   )r   rO   r#   r1   rD   r   rN   s     r   r1   z SecondaryAuthTokenContext.delete   s1     ))B-}}##8G#TTr   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)r3   rS   rT   N)r   rO   r#   r4   rD   rU   s     r   r4   z&SecondaryAuthTokenContext.delete_async   sF      ))B-]]//G 0 
 
 	
 
s   AA
AA
c                      y)r6   z.<Twilio.Accounts.V1.SecondaryAuthTokenContext>r7   r$   s    r   r8   z"SecondaryAuthTokenContext.__repr__   s     @r   )r9   r:   r;   r   r   r   r(   r,   r?   r1   r4   r=   r8   r@   rA   s   @r   r"   r"   l   sU    , ,B2 B&B$> B&
U 
U
D 
@# @r   r"   c                   H     e Zd Zdef fdZdefdZdefdZdefdZ	 xZ
S )SecondaryAuthTokenListr   c                 $    t         |   |       y)zt
        Initialize the SecondaryAuthTokenList

        :param version: Version that contains the resource

        N)r   r   rE   s     r   r   zSecondaryAuthTokenList.__init__   s     	!r   r    c                 ,    t        | j                        S z9
        Constructs a SecondaryAuthTokenContext

        r"   r#   r$   s    r   r   zSecondaryAuthTokenList.get       
 )77r   c                 ,    t        | j                        S r\   r]   r$   s    r   __call__zSecondaryAuthTokenList.__call__   r^   r   c                      y)r6   z+<Twilio.Accounts.V1.SecondaryAuthTokenList>r7   r$   s    r   r8   zSecondaryAuthTokenList.__repr__   s     =r   )r9   r:   r;   r   r   r"   r   r`   r=   r8   r@   rA   s   @r   rY   rY      s5    " "8. 883 8=# =r   rY   N)r<   r   typingr   r   r   twilio.baser   r   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r"   rY   r7   r   r   <module>rh      sS     & & + 8 : 2 'QA!1 QAhS@ S@l=\ =r   