o
    f>h                     @   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                       sN   e Zd ZG dd deZ	 dedeeef f fddZ	defdd	Z
  ZS )
FlowValidateInstancec                   @   s   e Zd ZdZdZdS )FlowValidateInstance.Statusdraft	publishedN)__name__
__module____qualname__DRAFT	PUBLISHED r   r   V/var/www/html/venv/lib/python3.10/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      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                       s   e Zd Zdef fddZejfdedddede	eef d	e
f
d
dZejfdedddede	eef d	e
f
ddZd	efddZ  ZS )FlowValidateListr   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   2   s   
zFlowValidateList.__init__friendly_namestatusr   
definitioncommit_messager    c                 C   sZ   t ||t||d}t ddi}d|d< d|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
        FriendlyNamer   
DefinitionCommitMessageContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r   ofr   r%   _versionupdater)   r   r   r*   r+   r,   r-   r:   r;   r   r   r   r   r>   =   s   
zFlowValidateList.updatec                    sb   t ||t||d}t ddi}d|d< d|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.   r2   r3   r4   r5   r6   r7   N)r   r<   r   r%   r=   update_asyncr)   r   r?   r   r   r   r@   c   s   
zFlowValidateList.update_asyncc                 C   r!   )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   r>   r@   r$   r'   r   r   r   r   r(   0   s6    

+

&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   r   <module>   s    