o
    eZ                     @   st   d Z ddl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 deZ
G d	d
 d
e	ZG dd deZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
    )	serialize)values)InstanceResource)ListResource)Pagec                       s2   e Zd Z fddZejfddZdd Z  ZS )FlowValidateListc                    s.   t t| | i | _djdi | j| _dS )a  
        Initialize the FlowValidateList

        :param Version version: Version that contains the resource

        :returns: twilio.rest.studio.v2.flow_validate.FlowValidateList
        :rtype: twilio.rest.studio.v2.flow_validate.FlowValidateList
        z/Flows/ValidateN )superr   __init__	_solutionformat_uri)selfversion	__class__r   V/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/studio/v2/flow_validate.pyr
      s   	zFlowValidateList.__init__c                 C   s:   t ||t||d}| jjd| j|d}t| j|S )a  
        Update the FlowValidateInstance

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

        :returns: The updated FlowValidateInstance
        :rtype: twilio.rest.studio.v2.flow_validate.FlowValidateInstance
        )FriendlyNameStatus
DefinitionCommitMessagePOST)methoduridata)r   ofr   object_versionupdater   FlowValidateInstance)r   friendly_namestatus
definitioncommit_messager   payloadr   r   r   r   !   s   zFlowValidateList.updatec                 C      dS )z
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z#<Twilio.Studio.V2.FlowValidateList>r   r   r   r   r   __repr__9      zFlowValidateList.__repr__)	__name__
__module____qualname__r
   r   unsetr   r(   __classcell__r   r   r   r   r      s
    
r   c                       s,   e Zd Z fddZdd Zdd Z  ZS )FlowValidatePagec                    s   t t| || || _dS )a:  
        Initialize the FlowValidatePage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API

        :returns: twilio.rest.studio.v2.flow_validate.FlowValidatePage
        :rtype: twilio.rest.studio.v2.flow_validate.FlowValidatePage
        N)r	   r/   r
   r   )r   r   responsesolutionr   r   r   r
   E   s   

zFlowValidatePage.__init__c                 C   s   t | j|S )a  
        Build an instance of FlowValidateInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.studio.v2.flow_validate.FlowValidateInstance
        :rtype: twilio.rest.studio.v2.flow_validate.FlowValidateInstance
        )r   r   )r   r$   r   r   r   get_instanceT   s   	zFlowValidatePage.get_instancec                 C   r%   )r&   z#<Twilio.Studio.V2.FlowValidatePage>r   r'   r   r   r   r(   _   r)   zFlowValidatePage.__repr__)r*   r+   r,   r
   r2   r(   r.   r   r   r   r   r/   C   s    r/   c                       s@   e Zd ZG dd deZ fddZedd Zdd Z  Z	S )	r   c                   @   s   e Zd ZdZdZdS )zFlowValidateInstance.Statusdraft	publishedN)r*   r+   r,   DRAFT	PUBLISHEDr   r   r   r   r   k   s    r   c                    s0   t t| | d|di| _d| _i | _dS )z
        Initialize the FlowValidateInstance

        :returns: twilio.rest.studio.v2.flow_validate.FlowValidateInstance
        :rtype: twilio.rest.studio.v2.flow_validate.FlowValidateInstance
        validN)r	   r   r
   get_properties_contextr   )r   r   r$   r   r   r   r
   o   s   
zFlowValidateInstance.__init__c                 C   s
   | j d S )zX
        :returns: Boolean if the flow definition is valid
        :rtype: bool
        r7   )r9   r'   r   r   r   r7      s   
zFlowValidateInstance.validc                 C   r%   )r&   z'<Twilio.Studio.V2.FlowValidateInstance>r   r'   r   r   r   r(      r)   zFlowValidateInstance.__repr__)
r*   r+   r,   r   r   r
   propertyr7   r(   r.   r   r   r   r   r   i   s    
r   N)__doc__twilio.baser   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r/   r   r   r   r   r   <module>   s   3&