o
    �¨Êh=  ã                   @   st   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„ 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)ÚInstanceResource)ÚListResource)ÚPagec                       s6   e Zd ZdZ‡ fdd„Zejfdd„Zdd„ Z‡  Z	S )Ú	TokenListú  c                    s2   t t| ƒ |¡ d|i| _djdi | j¤Ž| _dS )a5  
        Initialize the TokenList

        :param Version version: Version that contains the resource
        :param account_sid: The unique sid that identifies this account

        :returns: twilio.rest.api.v2010.account.token.TokenList
        :rtype: twilio.rest.api.v2010.account.token.TokenList
        Úaccount_sidz#/Accounts/{account_sid}/Tokens.jsonN© )Úsuperr   Ú__init__Ú	_solutionÚformatÚ_uri)ÚselfÚversionr	   ©Ú	__class__r
   úU/var/www/html/env/lib/python3.10/site-packages/twilio/rest/api/v2010/account/token.pyr      s   

zTokenList.__init__c                 C   s8   t  d|i¡}| jjd| j|d�}t| j|| jd d�S )zì
        Create a new TokenInstance

        :param unicode ttl: The duration in seconds the credentials are valid

        :returns: Newly created TokenInstance
        :rtype: twilio.rest.api.v2010.account.token.TokenInstance
        ÚTtlÚPOST)Údatar	   ©r	   )r   ÚofÚ_versionÚcreater   ÚTokenInstancer   )r   Úttlr   Úpayloadr
   r
   r   r   #   s   	ýzTokenList.createc                 C   ó   dS )úz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Api.V2010.TokenList>r
   ©r   r
   r
   r   Ú__repr__6   ó   zTokenList.__repr__)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Úunsetr   r"   Ú__classcell__r
   r
   r   r   r      s
    r   c                       s0   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Z‡  ZS )Ú	TokenPager   c                    s   t t| ƒ ||¡ || _dS )am  
        Initialize the TokenPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param account_sid: The unique sid that identifies this account

        :returns: twilio.rest.api.v2010.account.token.TokenPage
        :rtype: twilio.rest.api.v2010.account.token.TokenPage
        N)r   r*   r   r   )r   r   ÚresponseÚsolutionr   r
   r   r   C   s   
zTokenPage.__init__c                 C   s   t | j|| jd d�S )z÷
        Build an instance of TokenInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.api.v2010.account.token.TokenInstance
        :rtype: twilio.rest.api.v2010.account.token.TokenInstance
        r	   r   )r   r   r   )r   r   r
   r
   r   Úget_instanceS   s   	zTokenPage.get_instancec                 C   r   )r    z<Twilio.Api.V2010.TokenPage>r
   r!   r
   r
   r   r"   ^   r#   zTokenPage.__repr__)r$   r%   r&   r'   r   r-   r"   r)   r
   r
   r   r   r*   @   s
    r*   c                       s|   e Zd 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edd„ ƒZdd„ Z‡  ZS )r   r   c                    sb   t t| ƒ |¡ |d t |d ¡t |d ¡|d |d |d |d dœ| _d	| _d|i| _d	S )
zµ
        Initialize the TokenInstance

        :returns: twilio.rest.api.v2010.account.token.TokenInstance
        :rtype: twilio.rest.api.v2010.account.token.TokenInstance
        r	   Údate_createdÚdate_updatedÚice_serversÚpasswordr   Úusername)r	   r.   r/   r0   r1   r   r2   N)r   r   r   r   Úrfc2822_datetimeÚ_propertiesÚ_contextr   )r   r   r   r	   r   r
   r   r   k   s   ùzTokenInstance.__init__c                 C   ó
   | j d S )z_
        :returns: The unique sid that identifies this account
        :rtype: unicode
        r	   ©r4   r!   r
   r
   r   r	   ƒ   ó   
zTokenInstance.account_sidc                 C   r6   )zW
        :returns: The date this resource was created
        :rtype: datetime
        r.   r7   r!   r
   r
   r   r.   ‹   r8   zTokenInstance.date_createdc                 C   r6   )z\
        :returns: The date this resource was last updated
        :rtype: datetime
        r/   r7   r!   r
   r
   r   r/   “   r8   zTokenInstance.date_updatedc                 C   r6   )zc
        :returns: An array representing the ephemeral credentials
        :rtype: unicode
        r0   r7   r!   r
   r
   r   r0   ›   r8   zTokenInstance.ice_serversc                 C   r6   )zb
        :returns: The temporary password used for authenticating
        :rtype: unicode
        r1   r7   r!   r
   r
   r   r1   £   r8   zTokenInstance.passwordc                 C   r6   )ze
        :returns: The duration in seconds the credentials are valid
        :rtype: unicode
        r   r7   r!   r
   r
   r   r   «   r8   zTokenInstance.ttlc                 C   r6   )zl
        :returns: The temporary username that uniquely identifies a Token.
        :rtype: unicode
        r2   r7   r!   r
   r
   r   r2   ³   r8   zTokenInstance.usernamec                 C   r   )r    z <Twilio.Api.V2010.TokenInstance>r
   r!   r
   r
   r   r"   »   r#   zTokenInstance.__repr__)r$   r%   r&   r'   r   Úpropertyr	   r.   r/   r0   r1   r   r2   r"   r)   r
   r
   r   r   r   h   s$    






r   N)r'   Útwilio.baser   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.pager   r   r*   r   r
   r
   r
   r   Ú<module>   s   0(