
    g=                         S r SSKJr  SSKJrJrJr  SSKJrJr  SSK	J
r
  SSKJr  SSKJr  SSKJr   " S	 S
\5      r " S S\
5      r " S S\5      rg)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                   x   ^  \ rS rSrSrS\S\\\4   4U 4S jjr	\
SS j5       rSS jrSS	 jrS\4S
 jrSrU =r$ )AuthTokenPromotionInstance   ae  
: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                 ^  > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        [
        R                  " UR                  S5      5      U l        [
        R                  " UR                  S5      5      U l        UR                  S5      U l	        S U l
        g )Naccount_sid
auth_tokendate_createddate_updatedurl)super__init__getr   r   r   iso8601_datetimer   r   r   _context)selfr   r   	__class__s      t/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/accounts/v1/auth_token_promotion.pyr   #AuthTokenPromotionInstance.__init__!   s    !*1++m*D)0\)B0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4=A    returnc                 h    U R                   c  [        U R                  5      U l         U R                   $ )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   _proxy!AuthTokenPromotionInstance._proxy0   s-     == 5DM }}r!   c                 6    U R                   R                  5       $ )Z
Update the AuthTokenPromotionInstance


:returns: The updated AuthTokenPromotionInstance
)r'   updater&   s    r   r+   !AuthTokenPromotionInstance.update>   s     {{!!##r!   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)t
Asynchronous coroutine to update the AuthTokenPromotionInstance


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

:returns: Machine friendly representation
z/<Twilio.Accounts.V1.AuthTokenPromotionInstance> r&   s    r   __repr__#AuthTokenPromotionInstance.__repr__P   s     Ar!   )r   r   r   r   r   r   )r"   r$   )r"   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   propertyr'   r+   r/   r4   __static_attributes____classcell__r   s   @r   r   r      sX    B B$sCx. B  $0A# A Ar!   r   c                   Z   ^  \ rS rSrS\4U 4S jjrS\4S jrS\4S jrS\	4S jr
SrU =r$ )	r$   Z   r   c                 2   > [         TU ]  U5        SU l        g)z^
Initialize the AuthTokenPromotionContext

:param version: Version that contains the resource
z/AuthTokens/PromoteN)r   r   _urir   r   r   s     r   r   "AuthTokenPromotionContext.__init__\   s     	!)	r!   r"   c                     [         R                  " 0 5      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  XS9n[        U R                  U5      $ )r*   application/jsonAcceptPOSTmethoduridataheaders)r   ofr%   r+   rC   r   r   rM   rN   r   s       r   r+    AuthTokenPromotionContext.updatef   s_     yy}))B-.--&&tyyt ' 
 *$--AAr!   c                    #    [         R                  " 0 5      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  XS9I Sh  vN n[        U R                  U5      $  N7f)r.   rG   rH   rI   rJ   N)r   rO   r%   r/   rC   r   rP   s       r   r/   &AuthTokenPromotionContext.update_asyncy   sl      yy}))B-.22tyyt 3 
 
 *$--AA	
s   AA9A7A9c                     g)r2   z.<Twilio.Accounts.V1.AuthTokenPromotionContext>r3   r&   s    r   r4   "AuthTokenPromotionContext.__repr__   s     @r!   )rC   )r6   r7   r8   r9   r   r   r   r+   r/   r;   r4   r=   r>   r?   s   @r   r$   r$   Z   sA    * *B2 B&B$> B&@# @ @r!   r$   c                   Z   ^  \ rS rSrS\4U 4S jjrS\4S jrS\4S jrS\	4S jr
SrU =r$ )	AuthTokenPromotionList   r   c                 $   > [         TU ]  U5        g)z\
Initialize the AuthTokenPromotionList

:param version: Version that contains the resource

N)r   r   rD   s     r   r   AuthTokenPromotionList.__init__   s     	!r!   r"   c                 ,    [        U R                  5      $ z)
Constructs a AuthTokenPromotionContext

r$   r%   r&   s    r   r   AuthTokenPromotionList.get       
 )77r!   c                 ,    [        U R                  5      $ r\   r]   r&   s    r   __call__AuthTokenPromotionList.__call__   r_   r!   c                     g)r2   z+<Twilio.Accounts.V1.AuthTokenPromotionList>r3   r&   s    r   r4   AuthTokenPromotionList.__repr__   s     =r!   r3   )r6   r7   r8   r9   r   r   r$   r   ra   r;   r4   r=   r>   r?   s   @r   rW   rW      s:    " "8. 883 8=# = =r!   rW   N)r:   r   typingr   r   r   twilio.baser   r   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r$   rW   r3   r!   r   <module>rk      sO     & & + 8 : 2 '?A!1 ?AD9@ 9@x=\ =r!   