B
    `B                 @   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                   s6   e Zd ZdZ fddZejfddZdd Z  Z	S )FlowValidateListzk PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. c                s*   t t| | i | _djf | 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/home/dcms/DCMS/lib/python3.7/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 friendly_name
        :param FlowValidateInstance.Status status: The status
        :param dict definition: The definition
        :param unicode commit_message: The commit_message

        :returns: The updated FlowValidateInstance
        :rtype: twilio.rest.studio.v2.flow_validate.FlowValidateInstance
        )ZFriendlyNameStatusZ
DefinitionZCommitMessagePOST)methoduridata)r   Zofr   object_versionupdater   FlowValidateInstance)r   Zfriendly_namestatusZ
definitionZcommit_messager   payloadr   r   r   r   #   s    
zFlowValidateList.updatec             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z#<Twilio.Studio.V2.FlowValidateList>r   )r   r   r   r   __repr__;   s    zFlowValidateList.__repr__)
__name__
__module____qualname____doc__r	   r   Zunsetr   r   __classcell__r   r   )r   r   r      s   r   c                   s0   e Zd ZdZ fddZdd Zdd Z  ZS )FlowValidatePagezk PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. c                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   responseZsolution)r   r   r   r	   I   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_instanceX   s    	zFlowValidatePage.get_instancec             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z#<Twilio.Studio.V2.FlowValidatePage>r   )r   r   r   r   r   c   s    zFlowValidatePage.__repr__)r   r   r    r!   r	   r%   r   r"   r   r   )r   r   r#   E   s   r#   c                   sD   e Zd ZdZG dd deZ fddZedd Zdd	 Z	  Z
S )
r   zk PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. c               @   s   e Zd ZdZdZdS )zFlowValidateInstance.StatusZdraftZ	publishedN)r   r   r    ZDRAFTZ	PUBLISHEDr   r   r   r   r   q   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	   u   s    zFlowValidateInstance.__init__c             C   s
   | j d S )z:
        :returns: The valid
        :rtype: bool
        r&   )r(   )r   r   r   r   r&      s    zFlowValidateInstance.validc             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z'<Twilio.Studio.V2.FlowValidateInstance>r   )r   r   r   r   r      s    zFlowValidateInstance.__repr__)r   r   r    r!   r   r   r	   propertyr&   r   r"   r   r   )r   r   r   m   s
   r   N)r!   Ztwilio.baser   r   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.pager   r   r#   r   r   r   r   r   <module>   s   5(