a
    !f4                     @   st   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 de
ZG d	d
 d
eZdS )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                       sJ   e Zd ZG dd deZeeeef d fddZ	edddZ
  ZS )	FlowValidateInstancec                   @   s   e Zd ZdZdZdS )FlowValidateInstance.StatusZdraftZ	publishedN)__name__
__module____qualname__ZDRAFTZ	PUBLISHED r   r   d/var/www/html/python-backend/venv/lib/python3.9/site-packages/twilio/rest/studio/v2/flow_validate.pyStatus   s   r   )versionpayloadc                    s   t  | |d| _d S )Nvalid)super__init__getr   )selfr   r   	__class__r   r   r   !   s    zFlowValidateInstance.__init__returnc                 C   s   dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z'<Twilio.Studio.V2.FlowValidateInstance>r   r   r   r   r   __repr__&   s    zFlowValidateInstance.__repr__)r   r   r   objectr   r
   r   strr   r   r    __classcell__r   r   r   r   r      s   r   c                       sx   e Zd Zed fddZejfedee	eef e
dddZejfedee	eef e
ddd	Zed
ddZ  ZS )FlowValidateList)r   c                    s   t  | d| _dS )zn
        Initialize the FlowValidateList

        :param version: Version that contains the resource

        z/Flows/ValidateN)r   r   _uri)r   r   r   r   r   r   1   s    zFlowValidateList.__init__r   )friendly_namestatus
definitioncommit_messager   c                 C   s:   t ||t||d}| jjd| j|d}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
        ZFriendlyNamer   Z
DefinitionZCommitMessagePOSTmethoduridata)r   ofr   r!   _versionupdater%   r   r   r&   r'   r(   r)   r/   r   r   r   r   r2   <   s    	zFlowValidateList.updatec                    s@   t ||t||d}| jjd| j|dI dH }t| j|S )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
        r*   r+   r,   N)r   r0   r   r!   r1   update_asyncr%   r   r3   r   r   r   r4   ^   s    	zFlowValidateList.update_asyncr   c                 C   s   dS )r   z#<Twilio.Studio.V2.FlowValidateList>r   r   r   r   r   r       s    zFlowValidateList.__repr__)r   r   r   r
   r   r   unsetr"   r!   r   r   r2   r4   r    r#   r   r   r   r   r$   0   s$   
'
"r$   N)__doc__typingr   r   r   r   Ztwilio.baser   r   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer	   Ztwilio.base.versionr
   r   r$   r   r   r   r   <module>   s   