
    pi                         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  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)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     e/opt/services/ai/voice_agent/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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__2   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                  ||      }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 created FlowValidateInstance
        FriendlyNamer   
DefinitionCommitMessageContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r   ofr   r)   _versionupdater0   r   r"   r1   r2   r3   r4   rB   rC   r   s           r   rF   zFlowValidateList.update=   s    $ yy - '..z:!/	
 ))^-PQR"E.--&&tyytW ' 
 $DMM7;;r   c                 8  K   t        j                  ||t        j                  |      |d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| 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 created FlowValidateInstance
        r6   r:   r;   r<   r=   r>   r?   N)r   rD   r   r)   rE   update_asyncr0   r   rG   s           r   rI   zFlowValidateList.update_asyncc   s     $ yy - '..z:!/	
 ))^-PQR"E.22tyytW 3 
 
 $DMM7;;	
s   A;B=B>B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   r   rF   rI   r(   r+   r,   s   @r   r.   r.   0   s    	& 	&  .4\\$<$< .$< 	$<
 c6k*$< 
$<V .4\\$<$< .$< 	$<
 c6k*$< 
$<L5# 5r   r.   N)__doc__typingr   r   r   r   twilio.baser   r   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r.   r   r   r   <module>rR      s9    . - ) : 2 '9+ 92_5| _5r   