
    g                         S r SSKJr  SSKJr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 - Flex
 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Union)deserializevalues)InstanceContext)InstanceResource)ListResource)Versionc                      ^  \ rS rSrSr SS\S\\\4   S\	\   4U 4S jjjr
\SS j5       r\R                  4S	\\\4   SS 4S
 jjr\R                  4S	\\\4   SS 4S jjrS\4S jrSrU =r$ )PluginArchiveInstance   a  
:ivar sid: The unique string that we created to identify the Flex Plugin resource.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin resource and owns this resource.
:ivar unique_name: The name that uniquely identifies this Flex Plugin resource.
:ivar friendly_name: The friendly name this Flex Plugin resource.
:ivar description: A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long
:ivar archived: Whether the Flex Plugin is archived. The default value is false.
:ivar date_created: The date and time in GMT when the Flex Plugin 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 Flex Plugin was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar url: The absolute URL of the Flex Plugin resource.
versionpayloadsidc                 F  > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        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=(       d    U R                  0U l        S U l        g )
Nr   account_sidunique_namefriendly_namedescriptionarchiveddate_createddate_updatedurl)super__init__getr   r   r   r   r   r   r   iso8601_datetimer   r   r   	_solution_context)selfr   r   r   	__class__s       n/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/flex_api/v1/plugin_archive.pyr   PluginArchiveInstance.__init__%   s     	!")++e"4*1++m*D*1++m*D,3KK,H*1++m*D(/J(?0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 9=    returnc                     U R                   c&  [        U R                  U R                  S   S9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: PluginArchiveContext for this PluginArchiveInstance
r   r   )r"   PluginArchiveContext_versionr!   r#   s    r%   _proxyPluginArchiveInstance._proxy=   s9     == 0NN5)DM }}r'   flex_metadatac                 4    U R                   R                  US9$ )
Update the PluginArchiveInstance

:param flex_metadata: The Flex-Metadata HTTP request header

:returns: The updated PluginArchiveInstance
r0   )r.   updater#   r0   s     r%   r4   PluginArchiveInstance.updateL   s#     {{!!' " 
 	
r'   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)
Asynchronous coroutine to update the PluginArchiveInstance

:param flex_metadata: The Flex-Metadata HTTP request header

:returns: The updated PluginArchiveInstance
r3   N)r.   update_asyncr5   s     r%   r9   "PluginArchiveInstance.update_asyncZ   s0      [[--' . 
 
 	
 
s   &$&c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r%   	<genexpr>1PluginArchiveInstance.__repr__.<locals>.<genexpr>n         S<RDA7>>!//<R    "z,<Twilio.FlexApi.V1.PluginArchiveInstance {}>joinr!   itemsrA   r#   contexts     r%   __repr__PluginArchiveInstance.__repr__h   s6     ((SDNN<P<P<RSS=DDWMMr'   )r"   r!   r   r   r   r   r   r   r   r   r   )N)r(   r+   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr.   r	   unsetr   objectr4   r9   rO   __static_attributes____classcell__r$   s   @r%   r   r      s    
 OS==)-c3h=>Fsm= =0   39,,
"3;/
	 
 39,,
"3;/
	 
N# N Nr'   r   c                      ^  \ rS rSrS\S\4U 4S jjr\R                  4S\	\\
4   S\4S jjr\R                  4S\	\\
4   S\4S jjrS\4S	 jrS
rU =r$ )r+   r   r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)z
Initialize the PluginArchiveContext

:param version: Version that contains the resource
:param sid: The SID of the Flex Plugin resource to archive.
r   z$/PluginService/Plugins/{sid}/ArchiveN )r   r   r!   rA   _uri)r#   r   r   r$   s      r%   r   PluginArchiveContext.__init__t   s=     	! 3
 ;AASDNNS	r'   r0   r(   c                 V   [         R                  " 0 5      n[         R                  " 0 5      nU[         R                  L d   [        U[        5      (       a  U(       a  XS'   SUS'   U R
                  R                  SU R                  X#S9n[        U R
                  X@R                  S   S9$ )r2   Flex-Metadataapplication/jsonAcceptPOSTmethoduridataheadersr   r*   )
r	   ofrX   
isinstancerV   r,   r4   ra   r   r!   r#   r0   rk   rl   r   s        r%   r4   PluginArchiveContext.update   s     yy}))B- V\\)=#..}'4O$.--&&tyyt ' 
 %T]]GPUAVWWr'   c                 r  #    [         R                  " 0 5      n[         R                  " 0 5      nU[         R                  L d   [        U[        5      (       a  U(       a  XS'   SUS'   U R
                  R                  SU R                  X#S9I Sh  vN n[        U R
                  X@R                  S   S9$  N%7f)	r8   rd   re   rf   rg   rh   Nr   r*   )
r	   rm   rX   rn   rV   r,   r9   ra   r   r!   ro   s        r%   r9   !PluginArchiveContext.update_async   s      yy}))B- V\\)=#..}'4O$.22tyyt 3 
 
 %T]]GPUAVWW	
s   BB7B5&B7c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r<   r=   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr?   r@   rB   s      r%   rF   0PluginArchiveContext.__repr__.<locals>.<genexpr>   rH   rI   z+<Twilio.FlexApi.V1.PluginArchiveContext {}>rJ   rM   s     r%   rO   PluginArchiveContext.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr'   )r!   ra   )rQ   rR   rS   rT   r   rV   r   r	   rX   r   rY   r   r4   r9   rO   rZ   r[   r\   s   @r%   r+   r+   r   s    T Tc T  39,,X"3;/X	X: 39,,X"3;/X	X8M# M Mr'   r+   c                   b   ^  \ rS rSrS\4U 4S jjrS\S\4S jrS\S\4S jr	S\4S jr
S	rU =r$ )
PluginArchiveList   r   c                 $   > [         TU ]  U5        g)zW
Initialize the PluginArchiveList

:param version: Version that contains the resource

N)r   r   )r#   r   r$   s     r%   r   PluginArchiveList.__init__   s     	!r'   r   r(   c                 *    [        U R                  US9$ z`
Constructs a PluginArchiveContext

:param sid: The SID of the Flex Plugin resource to archive.
r*   r+   r,   r#   r   s     r%   r   PluginArchiveList.get        $DMMs;;r'   c                 *    [        U R                  US9$ r}   r~   r   s     r%   __call__PluginArchiveList.__call__   r   r'   c                     g)r<   z%<Twilio.FlexApi.V1.PluginArchiveList>r`   r-   s    r%   rO   PluginArchiveList.__repr__   s     7r'   r`   )rQ   rR   rS   rT   r   r   rV   r+   r   r   rO   rZ   r[   r\   s   @r%   rx   rx      sH    " "<s <3 <<C <$8 <7# 7 7r'   rx   N)rU   r   typingr   r   r   r   twilio.baser   r	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r+   rx   r`   r'   r%   <module>r      sS     - - + 8 : 2 'WN, WNtPM? PMf!7 !7r'   