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	 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)values)InstanceContext)InstanceResource)ListResource)Pagec                       4   e Zd Z fddZdd Zdd Zdd Z  ZS )	SecondaryAuthTokenListc                    s   t t| | i | _dS )a&  
        Initialize the SecondaryAuthTokenList

        :param Version version: Version that contains the resource

        :returns: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenList
        :rtype: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenList
        N)superr	   __init__	_solutionselfversion	__class__ _/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/accounts/v1/secondary_auth_token.pyr      s   	
zSecondaryAuthTokenList.__init__c                 C   
   t | jS z
        Constructs a SecondaryAuthTokenContext

        :returns: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenContext
        :rtype: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenContext
        SecondaryAuthTokenContext_versionr   r   r   r   get!      
zSecondaryAuthTokenList.getc                 C   r   r   r   r   r   r   r   __call__*   r   zSecondaryAuthTokenList.__call__c                 C      dS )z
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z+<Twilio.Accounts.V1.SecondaryAuthTokenList>r   r   r   r   r   __repr__3      zSecondaryAuthTokenList.__repr__)__name__
__module____qualname__r   r   r   r   __classcell__r   r   r   r   r	      s
    		r	   c                       s,   e Zd Z fddZdd Zdd Z  ZS )SecondaryAuthTokenPagec                    s   t t| || || _dS )a^  
        Initialize the SecondaryAuthTokenPage

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

        :returns: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenPage
        :rtype: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenPage
        N)r
   r%   r   r   )r   r   responsesolutionr   r   r   r   ?   s   

zSecondaryAuthTokenPage.__init__c                 C   s   t | j|S )a0  
        Build an instance of SecondaryAuthTokenInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenInstance
        :rtype: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenInstance
        )SecondaryAuthTokenInstancer   r   payloadr   r   r   get_instanceN   s   	z#SecondaryAuthTokenPage.get_instancec                 C   r   )r   z+<Twilio.Accounts.V1.SecondaryAuthTokenPage>r   r   r   r   r   r   Y   r    zSecondaryAuthTokenPage.__repr__)r!   r"   r#   r   r+   r   r$   r   r   r   r   r%   =   s    r%   c                       r   )	r   c                    s.   t t| | i | _djdi | j| _dS )a/  
        Initialize the SecondaryAuthTokenContext

        :param Version version: Version that contains the resource

        :returns: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenContext
        :rtype: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenContext
        z/AuthTokens/SecondaryNr   )r
   r   r   r   format_urir   r   r   r   r   e   s   	z"SecondaryAuthTokenContext.__init__c                 C   s   | j jd| jd}t| j |S )
        Create the SecondaryAuthTokenInstance

        :returns: The created SecondaryAuthTokenInstance
        :rtype: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenInstance
        POSTmethoduri)r   creater-   r(   r)   r   r   r   r3   t   s   z SecondaryAuthTokenContext.createc                 C   s   | j jd| jdS )
        Deletes the SecondaryAuthTokenInstance

        :returns: True if delete succeeds, False otherwise
        :rtype: bool
        DELETEr0   )r   deleter-   r   r   r   r   r6      s   z SecondaryAuthTokenContext.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>       z5SecondaryAuthTokenContext.__repr__.<locals>.<genexpr>z1<Twilio.Accounts.V1.SecondaryAuthTokenContext {}>joinr   itemsr,   r   contextr   r   r   r         
z"SecondaryAuthTokenContext.__repr__)r!   r"   r#   r   r3   r6   r   r$   r   r   r   r   r   c   s
    	r   c                       s|   e Zd Z fddZedd Ze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dd Z  ZS )r(   c                    s\   t t| | |dt|dt|d|d|dd| _d| _i | _dS )z
        Initialize the SecondaryAuthTokenInstance

        :returns: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenInstance
        :rtype: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenInstance
        account_siddate_createddate_updatedsecondary_auth_tokenurl)rH   rI   rJ   rK   rL   N)	r
   r(   r   r   r   iso8601_datetime_properties_contextr   )r   r   r*   r   r   r   r      s   	
z#SecondaryAuthTokenInstance.__init__c                 C   s   | j du rt| j| _ | j S )aW  
        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
        :rtype: twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenContext
        N)rO   r   r   r   r   r   r   _proxy   s   
	z!SecondaryAuthTokenInstance._proxyc                 C   
   | j d S )zx
        :returns: The SID of the Account that the secondary Auth Token was created for
        :rtype: unicode
        rH   rN   r   r   r   r   rH         
z&SecondaryAuthTokenInstance.account_sidc                 C   rQ   )z~
        :returns: The ISO 8601 formatted date and time in UTC when the resource was created
        :rtype: datetime
        rI   rR   r   r   r   r   rI      rS   z'SecondaryAuthTokenInstance.date_createdc                 C   rQ   )z
        :returns: The ISO 8601 formatted date and time in UTC when the resource was last updated
        :rtype: datetime
        rJ   rR   r   r   r   r   rJ      rS   z'SecondaryAuthTokenInstance.date_updatedc                 C   rQ   )zV
        :returns: The generated secondary Auth Token
        :rtype: unicode
        rK   rR   r   r   r   r   rK      rS   z/SecondaryAuthTokenInstance.secondary_auth_tokenc                 C   rQ   )zx
        :returns: The URI for this resource, relative to `https://accounts.twilio.com`
        :rtype: unicode
        rL   rR   r   r   r   r   rL      rS   zSecondaryAuthTokenInstance.urlc                 C   
   | j  S )r.   )rP   r3   r   r   r   r   r3      r   z!SecondaryAuthTokenInstance.createc                 C   rT   )r4   )rP   r6   r   r   r   r   r6      r   z!SecondaryAuthTokenInstance.deletec                 C   r7   )r   r8   c                 s   r9   r:   r;   r<   r   r   r   r@      rA   z6SecondaryAuthTokenInstance.__repr__.<locals>.<genexpr>z2<Twilio.Accounts.V1.SecondaryAuthTokenInstance {}>rB   rE   r   r   r   r      rG   z#SecondaryAuthTokenInstance.__repr__)r!   r"   r#   r   propertyrP   rH   rI   rJ   rK   rL   r3   r6   r   r$   r   r   r   r   r(      s"    





		r(   N)__doc__twilio.baser   r   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   ,&0