o
    e[                     @   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                       s2   e Zd Z fddZejfddZdd Z  ZS )	TokenListc                    s2   t t| | d|i| _djdi | j| _dS )a:  
        Initialize the TokenList

        :param Version version: Version that contains the resource
        :param account_sid: The SID of the Account that created the resource

        :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	   V/var/www/html/venv/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 the TokenInstance

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

        :returns: The created TokenInstance
        :rtype: twilio.rest.api.v2010.account.token.TokenInstance
        TtlPOST)methoduri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__1      zTokenList.__repr__)	__name__
__module____qualname__r   r   unsetr   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 )	TokenPagec                    s   t t| || || _dS )ar  
        Initialize the TokenPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param account_sid: The SID of the Account that created the resource

        :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   =   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_instanceM   s   	zTokenPage.get_instancec                 C   r    )r!   z<Twilio.Api.V2010.TokenPage>r	   r"   r	   r	   r   r#   X   r$   zTokenPage.__repr__)r%   r&   r'   r   r-   r#   r)   r	   r	   r   r   r*   ;   s    r*   c                       sx   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
edd Zdd Z  ZS )r   c              	      sp   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   getr   rfc2822_datetime_properties_contextr   )r   r   r   r   r   r	   r   r   d   s   zTokenInstance.__init__c                 C   
   | j d S )zd
        :returns: The SID of the Account that created the resource
        :rtype: unicode
        r   r5   r"   r	   r	   r   r   |      
zTokenInstance.account_sidc                 C   r7   )zt
        :returns: The RFC 2822 date and time in GMT that the resource was created
        :rtype: datetime
        r.   r8   r"   r	   r	   r   r.      r9   zTokenInstance.date_createdc                 C   r7   )zy
        :returns: The RFC 2822 date and time in GMT that the resource was last updated
        :rtype: datetime
        r/   r8   r"   r	   r	   r   r/      r9   zTokenInstance.date_updatedc                 C   r7   )zi
        :returns: An array representing the ephemeral credentials
        :rtype: list[unicode]
        r0   r8   r"   r	   r	   r   r0      r9   zTokenInstance.ice_serversc                 C   r7   )zb
        :returns: The temporary password used for authenticating
        :rtype: unicode
        r1   r8   r"   r	   r	   r   r1      r9   zTokenInstance.passwordc                 C   r7   )ze
        :returns: The duration in seconds the credentials are valid
        :rtype: unicode
        r   r8   r"   r	   r	   r   r      r9   zTokenInstance.ttlc                 C   r7   )zk
        :returns: The temporary username that uniquely identifies a Token
        :rtype: unicode
        r2   r8   r"   r	   r	   r   r2      r9   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   propertyr   r.   r/   r0   r1   r   r2   r#   r)   r	   r	   r   r   r   b   s"    






r   N)__doc__twilio.baser   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r*   r   r	   r	   r	   r   <module>   s   +'