U
    ^g%i=  ã                   @   s˜   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 G d	d
„ d
eƒZG dd„ de
ƒZG dd„ deƒZdS )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)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersionc                       sl   e Zd ZdZeeeef dœ‡ fdd„Ze	ddœdd„ƒZ
d dœd	d
„Zd dœdd„Zedœdd„Z‡  ZS )ÚAuthTokenPromotionInstancea}  
    :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 auth_token: The promoted Auth Token that must be used to authenticate future API requests.
    :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 GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar url: The URI for this resource, relative to `https://accounts.twilio.com`
    )ÚversionÚpayloadc                    s^   t ƒ  |¡ | d¡| _| d¡| _t | d¡¡| _t | d¡¡| _| d¡| _	d | _
d S )NÚaccount_sidÚ
auth_tokenÚdate_createdÚdate_updatedÚurl)ÚsuperÚ__init__Úgetr   r   r   Ziso8601_datetimer   r   r   Ú_context)Úselfr   r   ©Ú	__class__© úk/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/accounts/v1/auth_token_promotion.pyr   !   s    ÿÿz#AuthTokenPromotionInstance.__init__ÚAuthTokenPromotionContext©Úreturnc                 C   s   | j dkr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: AuthTokenPromotionContext for this AuthTokenPromotionInstance
        N)r   r   Ú_version©r   r   r   r   Ú_proxy0   s
    
ÿz!AuthTokenPromotionInstance._proxyc                 C   s
   | j  ¡ S )úr
        Update the AuthTokenPromotionInstance


        :returns: The updated AuthTokenPromotionInstance
        )r"   Úupdater!   r   r   r   r$   >   s    z!AuthTokenPromotionInstance.updatec                 Ã   s   | j  ¡ I dH S )úŒ
        Asynchronous coroutine to update the AuthTokenPromotionInstance


        :returns: The updated AuthTokenPromotionInstance
        N)r"   Úupdate_asyncr!   r   r   r   r&   G   s    z'AuthTokenPromotionInstance.update_asyncc                 C   s   dS )úf
        Provide a friendly representation

        :returns: Machine friendly representation
        z/<Twilio.Accounts.V1.AuthTokenPromotionInstance>r   r!   r   r   r   Ú__repr__P   s    z#AuthTokenPromotionInstance.__repr__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   Úpropertyr"   r$   r&   r(   Ú__classcell__r   r   r   r   r      s   		r   c                       sL   e Zd Zedœ‡ fdd„Zedœdd„Zedœdd„Zedœd	d
„Z	‡  Z
S )r   ©r   c                    s   t ƒ  |¡ d| _dS )zv
        Initialize the AuthTokenPromotionContext

        :param version: Version that contains the resource
        z/AuthTokens/PromoteN)r   r   Ú_uri©r   r   r   r   r   r   \   s    z"AuthTokenPromotionContext.__init__r   c                 C   s>   t  i ¡}t  i ¡}d|d< | jjd| j||d}t| j|ƒS )r#   úapplication/jsonÚAcceptÚPOST©ÚmethodÚuriÚdataÚheaders)r   Úofr    r$   r1   r   ©r   r9   r:   r   r   r   r   r$   f   s    

   ÿz AuthTokenPromotionContext.updatec                 Ã   sD   t  i ¡}t  i ¡}d|d< | jjd| j||dI dH }t| j|ƒS )r%   r3   r4   r5   r6   N)r   r;   r    r&   r1   r   r<   r   r   r   r&   y   s    

   ÿz&AuthTokenPromotionContext.update_asyncc                 C   s   dS )r'   z.<Twilio.Accounts.V1.AuthTokenPromotionContext>r   r!   r   r   r   r(   Œ   s    z"AuthTokenPromotionContext.__repr__)r)   r*   r+   r   r   r   r$   r&   r-   r(   r/   r   r   r   r   r   Z   s   
r   c                       sL   e Zd Zedœ‡ fdd„Zedœdd„Zedœdd„Zedœd	d
„Z	‡  Z
S )ÚAuthTokenPromotionListr0   c                    s   t ƒ  |¡ dS )zt
        Initialize the AuthTokenPromotionList

        :param version: Version that contains the resource

        N)r   r   r2   r   r   r   r   ˜   s    zAuthTokenPromotionList.__init__r   c                 C   s
   t | jƒS ©z9
        Constructs a AuthTokenPromotionContext

        ©r   r    r!   r   r   r   r   ¡   s    zAuthTokenPromotionList.getc                 C   s
   t | jƒS r>   r?   r!   r   r   r   Ú__call__¨   s    zAuthTokenPromotionList.__call__c                 C   s   dS )r'   z+<Twilio.Accounts.V1.AuthTokenPromotionList>r   r!   r   r   r   r(   ¯   s    zAuthTokenPromotionList.__repr__)r)   r*   r+   r   r   r   r   r@   r-   r(   r/   r   r   r   r   r=   –   s   	r=   N)r,   r   Útypingr   r   r   Ztwilio.baser   r   Ztwilio.base.instance_contextr   Ztwilio.base.instance_resourcer	   Ztwilio.base.list_resourcer
   Ztwilio.base.versionr   r   r   r=   r   r   r   r   Ú<module>   s   B<