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                       s4   e Zd Z fddZdd Zdd Zdd Z  ZS )	AuthTokenPromotionListc                    s   t t| | i | _dS )a&  
        Initialize the AuthTokenPromotionList

        :param Version version: Version that contains the resource

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

        :returns: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
        :rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
        AuthTokenPromotionContext_versionr   r   r   r   get!      
zAuthTokenPromotionList.getc                 C   r   r   r   r   r   r   r   __call__*   r   zAuthTokenPromotionList.__call__c                 C      dS )z
        Provide a friendly representation

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

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

        :returns: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionPage
        :rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionPage
        N)r	   r%   r
   r   )r   r   responsesolutionr   r   r   r
   ?   s   

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

        :param dict payload: Payload response from the API

        :returns: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionInstance
        :rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionInstance
        )AuthTokenPromotionInstancer   r   payloadr   r   r   get_instanceN   s   	z#AuthTokenPromotionPage.get_instancec                 C   r   )r   z+<Twilio.Accounts.V1.AuthTokenPromotionPage>r   r   r   r   r   r   Y   r   zAuthTokenPromotionPage.__repr__)r    r!   r"   r
   r+   r   r#   r   r   r   r   r%   =       r%   c                       r$   )r   c                    s.   t t| | i | _djdi | j| _dS )a/  
        Initialize the AuthTokenPromotionContext

        :param Version version: Version that contains the resource

        :returns: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
        :rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
        z/AuthTokens/PromoteNr   )r	   r   r
   r   format_urir   r   r   r   r
   e   s   	z"AuthTokenPromotionContext.__init__c                 C   s   | j jd| jd}t| j |S )
        Update the AuthTokenPromotionInstance

        :returns: The updated AuthTokenPromotionInstance
        :rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionInstance
        POST)methoduri)r   updater.   r(   r)   r   r   r   r3   t   s   z AuthTokenPromotionContext.updatec                 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>       z5AuthTokenPromotionContext.__repr__.<locals>.<genexpr>z1<Twilio.Accounts.V1.AuthTokenPromotionContext {}>joinr   itemsr-   r   contextr   r   r   r         
z"AuthTokenPromotionContext.__repr__)r    r!   r"   r
   r3   r   r#   r   r   r   r   r   c   r,   r   c                       st   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  ZS )r(   c                    s\   t t| | |d|dt|dt|d|dd| _d| _i | _dS )z
        Initialize the AuthTokenPromotionInstance

        :returns: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionInstance
        :rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionInstance
        account_sid
auth_tokendate_createddate_updatedurl)rE   rF   rG   rH   rI   N)	r	   r(   r
   r   r   iso8601_datetime_properties_contextr   )r   r   r*   r   r   r   r
      s   	
z#AuthTokenPromotionInstance.__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: AuthTokenPromotionContext for this AuthTokenPromotionInstance
        :rtype: twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
        N)rL   r   r   r   r   r   r   _proxy   s   
	z!AuthTokenPromotionInstance._proxyc                 C   
   | j d S )zx
        :returns: The SID of the Account that the secondary Auth Token was created for
        :rtype: unicode
        rE   rK   r   r   r   r   rE         
z&AuthTokenPromotionInstance.account_sidc                 C   rN   )zK
        :returns: The promoted Auth Token
        :rtype: unicode
        rF   rO   r   r   r   r   rF      rP   z%AuthTokenPromotionInstance.auth_tokenc                 C   rN   )z~
        :returns: The ISO 8601 formatted date and time in UTC when the resource was created
        :rtype: datetime
        rG   rO   r   r   r   r   rG      rP   z'AuthTokenPromotionInstance.date_createdc                 C   rN   )z
        :returns: The ISO 8601 formatted date and time in UTC when the resource was last updated
        :rtype: datetime
        rH   rO   r   r   r   r   rH      rP   z'AuthTokenPromotionInstance.date_updatedc                 C   rN   )zx
        :returns: The URI for this resource, relative to `https://accounts.twilio.com`
        :rtype: unicode
        rI   rO   r   r   r   r   rI      rP   zAuthTokenPromotionInstance.urlc                 C   s
   | j  S )r/   )rM   r3   r   r   r   r   r3      r   z!AuthTokenPromotionInstance.updatec                 C   r4   )r   r5   c                 s   r6   r7   r8   r9   r   r   r   r=      r>   z6AuthTokenPromotionInstance.__repr__.<locals>.<genexpr>z2<Twilio.Accounts.V1.AuthTokenPromotionInstance {}>r?   rB   r   r   r   r      rD   z#AuthTokenPromotionInstance.__repr__)r    r!   r"   r
   propertyrM   rE   rF   rG   rH   rI   r3   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   ,&'