
    g                         S 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\
5      r " S	 S
\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Studio
 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.
    )AnyDictOptionalUnion)	serializevalues)InstanceResource)ListResource)Versionc                   d   ^  \ rS rSr " S S\5      r S\S\\\	4   4U 4S jjr
S\4S jrS	rU =r$ )
FlowValidateInstance   c                       \ rS rSrSrSrSrg)FlowValidateInstance.Status   draft	published N)__name__
__module____qualname____firstlineno__DRAFT	PUBLISHED__static_attributes__r       k/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/studio/v2/flow_validate.pyStatusr      s    	r   r   versionpayloadc                 P   > [         TU ]  U5        UR                  S5      U l        g )Nvalid)super__init__getr"   )selfr   r    	__class__s      r   r$   FlowValidateInstance.__init__!   s     !%,[[%9
r   returnc                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z'<Twilio.Studio.V2.FlowValidateInstance>r   r&   s    r   __repr__FlowValidateInstance.__repr__&   s     9r   )r"   )r   r   r   r   objectr   r   r   strr   r$   r-   r   __classcell__r'   s   @r   r   r      s@       : :$sCx. :
9# 9 9r   r   c                      ^  \ rS rSrS\4U 4S jjr\R                  4S\SSS\	S\
\\	4   S	\4
S
 jjr\R                  4S\SSS\	S\
\\	4   S	\4
S jjrS	\4S jrSrU =r$ )FlowValidateList0   r   c                 2   > [         TU ]  U5        SU l        g)zV
Initialize the FlowValidateList

:param version: Version that contains the resource

z/Flows/ValidateN)r#   r$   _uri)r&   r   r'   s     r   r$   FlowValidateList.__init__2   s     	!%	r   friendly_namestatusr   
definitioncommit_messager)   c                    [         R                  " UU[        R                  " U5      US.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XVS9n[        U R                  U5      $ )a$  
Update the FlowValidateInstance

:param friendly_name: The string that you assigned to describe the Flow.
:param status:
:param definition: JSON representation of flow definition.
:param commit_message: Description of change made in the revision.

:returns: The created FlowValidateInstance
FriendlyNamer   
DefinitionCommitMessageContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r   ofr   r/   _versionupdater7   r   r&   r9   r:   r;   r<   rJ   rK   r    s           r   rN   FlowValidateList.update=   s    $ yy - '..z:!/	
 ))^-PQR"E.--&&tyyt ' 
 $DMM7;;r   c                 6  #    [         R                  " UU[        R                  " U5      US.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XVS9I Sh  vN n[        U R                  U5      $  N7f)	a3  
Asynchronously update the FlowValidateInstance

:param friendly_name: The string that you assigned to describe the Flow.
:param status:
:param definition: JSON representation of flow definition.
:param commit_message: Description of change made in the revision.

:returns: The created FlowValidateInstance
r>   rB   rC   rD   rE   rF   rG   N)r   rL   r   r/   rM   update_asyncr7   r   rO   s           r   rR   FlowValidateList.update_asyncc   s     $ yy - '..z:!/	
 ))^-PQR"E.22tyyt 3 
 
 $DMM7;;	
s   A:B<B=Bc                     g)r+   z#<Twilio.Studio.V2.FlowValidateList>r   r,   s    r   r-   FlowValidateList.__repr__   s     5r   )r7   )r   r   r   r   r   r$   r   unsetr0   r/   r   r   rN   rR   r-   r   r1   r2   s   @r   r4   r4   0   s    	& 	&  .4\\$<$< .$< 	$<
 c6k*$< 
$<V .4\\$<$< .$< 	$<
 c6k*$< 
$<L5# 5 5r   r4   N)__doc__typingr   r   r   r   twilio.baser   r   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r4   r   r   r   <module>r]      s9    . - ) : 2 '9+ 92_5| _5r   