
    m>h=                         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
e      Z G d de
      Z G d de      Zy)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                   d     e Zd ZdZdedeeef   f fdZe	d
d       Z
ddZddZdefd	Z x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                 Z   t         |   |       |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _        |j                  d      | _	        d | _
        y )Naccount_sid
auth_tokendate_createddate_updatedurl)super__init__getr   r   r   iso8601_datetimer   r   r   _context)selfr   r   	__class__s      p/var/www/html/DP/alpha_backend/venv/lib/python3.12/site-packages/twilio/rest/accounts/v1/auth_token_promotion.pyr   z#AuthTokenPromotionInstance.__init__!   s    !*1++m*D)0\)B0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4=A    returnc                 f    | j                   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
        )r   AuthTokenPromotionContext_versionr   s    r   _proxyz!AuthTokenPromotionInstance._proxy0   s-     == 5DM }}r   c                 6    | j                   j                         S )r
        Update the AuthTokenPromotionInstance


        :returns: The updated AuthTokenPromotionInstance
        )r%   updater$   s    r   r(   z!AuthTokenPromotionInstance.update>   s     {{!!##r   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to update the AuthTokenPromotionInstance


        :returns: The updated AuthTokenPromotionInstance
        N)r%   update_asyncr$   s    r   r+   z'AuthTokenPromotionInstance.update_asyncG   s!      [[--////s   '%'c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z/<Twilio.Accounts.V1.AuthTokenPromotionInstance> r$   s    r   __repr__z#AuthTokenPromotionInstance.__repr__P   s     Ar   )r    r"   )r    r   )__name__
__module____qualname____doc__r   r   strr   r   propertyr%   r(   r+   r/   __classcell__r   s   @r   r   r      sR    B B$sCx. B  $0A# Ar   r   c                   H     e Zd Zdef fdZdefdZdefdZdefdZ	 xZ
S )r"   r   c                 2    t         |   |       d| _        y)zv
        Initialize the AuthTokenPromotionContext

        :param version: Version that contains the resource
        z/AuthTokens/PromoteN)r   r   _urir   r   r   s     r   r   z"AuthTokenPromotionContext.__init__\   s     	!)	r   r    c                     t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )r'   application/jsonAcceptPOSTmethoduridataheaders)r   ofr#   r(   r:   r   r   rC   rD   r   s       r   r(   z AuthTokenPromotionContext.updatef   sa     yy}))B-.--&&tyytW ' 
 *$--AAr   c                    K   t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)r*   r=   r>   r?   r@   N)r   rE   r#   r+   r:   r   rF   s       r   r+   z&AuthTokenPromotionContext.update_asyncy   so      yy}))B-.22tyytW 3 
 
 *$--AA	
s   AA;A9A;c                      y)r-   z.<Twilio.Accounts.V1.AuthTokenPromotionContext>r.   r$   s    r   r/   z"AuthTokenPromotionContext.__repr__   s     @r   )r0   r1   r2   r   r   r   r(   r+   r4   r/   r6   r7   s   @r   r"   r"   Z   s;    * *B2 B&B$> B&@# @r   r"   c                   H     e Zd Zdef fdZdefdZdefdZdefdZ	 xZ
S )AuthTokenPromotionListr   c                 $    t         |   |       y)zt
        Initialize the AuthTokenPromotionList

        :param version: Version that contains the resource

        N)r   r   r;   s     r   r   zAuthTokenPromotionList.__init__   s     	!r   r    c                 ,    t        | j                        S z9
        Constructs a AuthTokenPromotionContext

        r"   r#   r$   s    r   r   zAuthTokenPromotionList.get       
 )77r   c                 ,    t        | j                        S rM   rN   r$   s    r   __call__zAuthTokenPromotionList.__call__   rO   r   c                      y)r-   z+<Twilio.Accounts.V1.AuthTokenPromotionList>r.   r$   s    r   r/   zAuthTokenPromotionList.__repr__   s     =r   )r0   r1   r2   r   r   r"   r   rQ   r4   r/   r6   r7   s   @r   rJ   rJ      s5    " "8. 883 8=# =r   rJ   N)r3   r   typingr   r   r   twilio.baser   r   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r"   rJ   r.   r   r   <module>rY      sO     & & + 8 : 2 '?A!1 ?AD9@ 9@x=\ =r   