
    d{i**                         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 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)ApiResponse)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def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      j/home/sas/my/fyp/ringai/.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._proxy1   s-     == 5DM }}r    c                 6    | j                   j                         S zr
        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z
        Asynchronous coroutine to create the SecondaryAuthTokenInstance


        :returns: The created SecondaryAuthTokenInstance
        N)r&   create_asyncr%   s    r   r-   z'SecondaryAuthTokenInstance.create_asyncH   !      [[--////   '%'c                 6    | j                   j                         S )z
        Create the SecondaryAuthTokenInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r&   create_with_http_infor%   s    r   r1   z0SecondaryAuthTokenInstance.create_with_http_infoQ        {{0022r    c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to create the SecondaryAuthTokenInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r&   create_with_http_info_asyncr%   s    r   r4   z6SecondaryAuthTokenInstance.create_with_http_info_asyncZ   !      [[<<>>>>r/   c                 6    | j                   j                         S zu
        Deletes the SecondaryAuthTokenInstance


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


        :returns: True if delete succeeds, False otherwise
        N)r&   delete_asyncr%   s    r   r;   z'SecondaryAuthTokenInstance.delete_asyncl   r.   r/   c                 6    | j                   j                         S )z
        Deletes the SecondaryAuthTokenInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )r&   delete_with_http_infor%   s    r   r=   z0SecondaryAuthTokenInstance.delete_with_http_infou   r2   r    c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the SecondaryAuthTokenInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)r&   delete_with_http_info_asyncr%   s    r   r?   z6SecondaryAuthTokenInstance.delete_with_http_info_async~   r5   r/   c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z/<Twilio.Accounts.V1.SecondaryAuthTokenInstance> r%   s    r   __repr__z#SecondaryAuthTokenInstance.__repr__   s     Ar    )r!   r#   )r!   r   )__name__
__module____qualname____doc__r   r   strr   r   propertyr&   r)   r-   r	   r1   r4   boolr8   r;   r=   r?   rC   __classcell__r   s   @r   r   r      s    B B$sCx. B  $03{ 3?; ?$ $0D 03{ 3?; ?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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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__   s     	!+	r    r!   c                     t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptPOSTmethoduridataheaders)r   ofr$   create_with_response_inforO   r   rX   rY   s      r   _createz!SecondaryAuthTokenContext._create   sQ     yy}))B-.}}66tyytW 7 
 	
r    c                 V    | j                         \  }}}t        | j                  |      S r(   )r]   r   r$   r   r   _s      r   r)   z SecondaryAuthTokenContext.create   s&     A)$--AAr    c                 r    | j                         \  }}}t        | j                  |      }t        |||      S )z
        Create the SecondaryAuthTokenInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        rX   status_coderY   )r]   r   r$   r	   r   r   rc   rY   instances        r   r1   z/SecondaryAuthTokenContext.create_with_http_info   s5     )-%g-dmmWEk7SSr    c                    K   t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   S 7 w)z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        rR   rS   rT   rU   N)r   rZ   r$   create_with_response_info_asyncrO   r\   s      r   _create_asyncz'SecondaryAuthTokenContext._create_async   s`      yy}))B-.]]BBtyytW C 
 
 	
 
s   AA%A#A%c                 r   K   | j                          d{   \  }}}t        | j                  |      S 7 wr,   )rh   r   r$   r_   s      r   r-   z&SecondaryAuthTokenContext.create_async   s5      #0022A)$--AA 3s   757c                    K   | j                          d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)z
        Asynchronous coroutine to create the SecondaryAuthTokenInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nrb   )rh   r   r$   r	   rd   s        r   r4   z5SecondaryAuthTokenContext.create_with_http_info_async   sE      /3.@.@.B(B%g-dmmWEk7SS )Cs   AA-Ac                 |    t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        DELETErV   rW   rY   )r   rZ   r$   delete_with_response_inforO   r   rY   s     r   _deletez!SecondaryAuthTokenContext._delete   s8     ))B-}}66G 7 
 	
r    c                 .    | j                         \  }}}|S r7   )rp   r   successr`   s      r   r8   z SecondaryAuthTokenContext.delete   s     Ar    c                 F    | j                         \  }}}t        |||      S )z
        Deletes the SecondaryAuthTokenInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        rb   )rp   r	   r   rs   rc   rY   s       r   r=   z/SecondaryAuthTokenContext.delete_with_http_info  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)
        rl   rm   N)r   rZ   r$   delete_with_response_info_asyncrO   ro   s     r   _delete_asyncz'SecondaryAuthTokenContext._delete_async  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wr:   )rx   rr   s      r   r;   z&SecondaryAuthTokenContext.delete_async  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the SecondaryAuthTokenInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nrb   )rx   r	   ru   s       r   r?   z5SecondaryAuthTokenContext.delete_with_http_info_async#  s5      /3.@.@.B(B%g['RR )Cs   /-/c                      y)rA   z.<Twilio.Accounts.V1.SecondaryAuthTokenContext>rB   r%   s    r   rC   z"SecondaryAuthTokenContext.__repr__-  s     @r    )rD   rE   rF   r   r   tupler]   r   r)   r	   r1   rh   r-   r4   rp   rJ   r8   r=   rx   r;   r?   rH   rC   rK   rL   s   @r   r#   r#      s    , ,
 
"B2 B	T{ 	T
U 
"B$> B	T; 	T
 
 S{ S
U 
D S; S@# @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   rP   s     r   r   zSecondaryAuthTokenList.__init__9  s     	!r    r!   c                 ,    t        | j                        S z9
        Constructs a SecondaryAuthTokenContext

        r#   r$   r%   s    r   r   zSecondaryAuthTokenList.getB      
 )77r    c                 ,    t        | j                        S r   r   r%   s    r   __call__zSecondaryAuthTokenList.__call__I  r   r    c                      y)rA   z+<Twilio.Accounts.V1.SecondaryAuthTokenList>rB   r%   s    r   rC   zSecondaryAuthTokenList.__repr__P  s     =r    )rD   rE   rF   r   r   r#   r   r   rH   rC   rK   rL   s   @r   r~   r~   7  s5    " "8. 883 8=# =r    r~   N)rG   r   typingr   r   r   twilio.baser   r   twilio.base.api_responser	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r#   r~   rB   r    r   <module>r      sV     & & + 0 8 : 2 'uA!1 uApc@ c@L=\ =r    