
    d{iY                         d Z ddlmZ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y)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)ApiResponse)InstanceResource)ListResource)Versionc                   V     e Zd Z G d de      Z	 dedeeef   f fdZ	defdZ
 xZS )FlowValidateInstancec                       e Zd ZdZdZy)FlowValidateInstance.Statusdraft	publishedN)__name__
__module____qualname__DRAFT	PUBLISHED     a/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/studio/v2/flow_validate.pyStatusr      s    	r   r   versionpayloadc                 P    t         |   |       |j                  d      | _        y )Nvalid)super__init__getr   )selfr   r   	__class__s      r   r!   zFlowValidateInstance.__init__"   s     !%,[[%9
r   returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z'<Twilio.Studio.V2.FlowValidateInstance>r   r#   s    r   __repr__zFlowValidateInstance.__repr__'   s     9r   )r   r   r   objectr   r   r   strr   r!   r)   __classcell__r$   s   @r   r   r      s;       : :$sCx. :
9# 9r   r   c                       e Zd Zdef fdZej                  fdedddede	eef   de
f
d	Zej                  fdedddede	eef   def
d
Zej                  fdedddede	eef   def
dZej                  fdedddede	eef   de
f
dZej                  fdedddede	eef   def
dZej                  fdedddede	eef   def
dZdefdZ xZS )FlowValidateListr   c                 2    t         |   |       d| _        y)zn
        Initialize the FlowValidateList

        :param version: Version that contains the resource

        z/Flows/ValidateN)r    r!   _uri)r#   r   r$   s     r   r!   zFlowValidateList.__init__3   s     	!%	r   friendly_namestatusr   
definitioncommit_messager%   c                     t        j                  ||t        j                  |      |d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        FriendlyNamer   
DefinitionCommitMessageContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r   ofr   r*   _versionupdate_with_response_infor1   r#   r2   r3   r4   r5   rC   rD   s          r   _updatezFlowValidateList._update>   s     yy - '..z:!/	
 ))^-PQR"E.}}66tyytW 7 
 	
r   c                 `    | j                  ||||      \  }}}t        | j                  |      S )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 updated FlowValidateInstance
        r2   r3   r4   r5   )rI   r   rF   r#   r2   r3   r4   r5   r   _s          r   updatezFlowValidateList.update^   s<    " '!)	 % 
A $DMM7;;r   c                 |    | j                  ||||      \  }}}t        | j                  |      }t        |||      S )a  
        Update the FlowValidateInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rK   rC   status_coderD   )rI   r   rF   r	   	r#   r2   r3   r4   r5   r   rQ   rD   instances	            r   update_with_http_infoz&FlowValidateList.update_with_http_infow   sK    " )-'!)	 )5 )
%g (w?k7SSr   c                   K   t        j                  ||t        j                  |      |d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r7   r;   r<   r=   r>   r?   r@   N)r   rE   r   r*   rF   update_with_response_info_asyncr1   rH   s          r   _update_asynczFlowValidateList._update_async   s      yy - '..z:!/	
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A;B=B>Bc                 |   K   | j                  ||||       d{   \  }}}t        | j                  |      S 7 w)ak  
        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 updated FlowValidateInstance
        rK   N)rW   r   rF   rL   s          r   update_asynczFlowValidateList.update_async   sL     " #00'!)	 1 
 
A $DMM7;;
s   <:<c                    K   | j                  ||||       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)a  
        Asynchronously update the FlowValidateInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rK   NrP   )rW   r   rF   r	   rR   s	            r   update_with_http_info_asyncz,FlowValidateList.update_with_http_info_async   s\     " /3.@.@'!)	 /A /
 )
%g (w?k7SS)
s   A
A-A
c                      y)r'   z#<Twilio.Studio.V2.FlowValidateList>r   r(   s    r   r)   zFlowValidateList.__repr__   s     5r   )r   r   r   r   r!   r   unsetr+   r*   r   tuplerI   r   rN   r	   rT   rW   rY   r[   r)   r,   r-   s   @r   r/   r/   1   s   	& 	&  .4\\

 .
 	

 c6k*
 

J .4\\<< .< 	<
 c6k*< 
<< .4\\TT .T 	T
 c6k*T 
T> .4\\

 .
 	

 c6k*
 

J .4\\<< .< 	<
 c6k*< 
<< .4\\TT .T 	T
 c6k*T 
T45# 5r   r/   N)__doc__typingr   r   r   r   twilio.baser   r   twilio.base.api_responser	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r/   r   r   r   <module>rf      s<    . - ) 0 : 2 '9+ 92y5| y5r   