B
    `                 @   s   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G dd deZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
    )values)InstanceContext)InstanceResource)ListResource)Pagec                   s8   e Zd ZdZ fddZdd Zdd Zdd	 Z  ZS )
FormListzk PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. c                s   t t| | i | _dS )z
        Initialize the FormList

        :param Version version: Version that contains the resource

        :returns: twilio.rest.verify.v2.form.FormList
        :rtype: twilio.rest.verify.v2.form.FormList
        N)superr   __init__	_solution)selfversion)	__class__ I/home/dcms/DCMS/lib/python3.7/site-packages/twilio/rest/verify/v2/form.pyr	      s    	zFormList.__init__c             C   s   t | j|dS )z
        Constructs a FormContext

        :param form_type: The Type of this Form

        :returns: twilio.rest.verify.v2.form.FormContext
        :rtype: twilio.rest.verify.v2.form.FormContext
        )	form_type)FormContext_version)r   r   r   r   r   get"   s    	zFormList.getc             C   s   t | j|dS )z
        Constructs a FormContext

        :param form_type: The Type of this Form

        :returns: twilio.rest.verify.v2.form.FormContext
        :rtype: twilio.rest.verify.v2.form.FormContext
        )r   )r   r   )r   r   r   r   r   __call__-   s    	zFormList.__call__c             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Verify.V2.FormList>r   )r   r   r   r   __repr__8   s    zFormList.__repr__)	__name__
__module____qualname____doc__r	   r   r   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 )FormPagezk 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 FormPage

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

        :returns: twilio.rest.verify.v2.form.FormPage
        :rtype: twilio.rest.verify.v2.form.FormPage
        N)r   r   r	   r
   )r   r   responseZsolution)r   r   r   r	   F   s    
zFormPage.__init__c             C   s   t | j|S )z
        Build an instance of FormInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.verify.v2.form.FormInstance
        :rtype: twilio.rest.verify.v2.form.FormInstance
        )FormInstancer   )r   payloadr   r   r   get_instanceU   s    	zFormPage.get_instancec             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Verify.V2.FormPage>r   )r   r   r   r   r   `   s    zFormPage.__repr__)r   r   r   r   r	   r   r   r   r   r   )r   r   r   B   s   r   c                   s0   e Zd ZdZ fddZ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.   t t| | d|i| _djf | j| _dS )a  
        Initialize the FormContext

        :param Version version: Version that contains the resource
        :param form_type: The Type of this Form

        :returns: twilio.rest.verify.v2.form.FormContext
        :rtype: twilio.rest.verify.v2.form.FormContext
        r   z/Forms/{form_type}N)r   r   r	   r
   format_uri)r   r   r   )r   r   r   r	   n   s    

zFormContext.__init__c             C   s(   | j jd| jd}t| j || jd dS )z
        Fetch the FormInstance

        :returns: The fetched FormInstance
        :rtype: twilio.rest.verify.v2.form.FormInstance
        GET)methodurir   )r   )r   fetchr!   r   r
   )r   r   r   r   r   r%   ~   s    zFormContext.fetchc             C   s$   d dd | j D }d|S )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
         c             s   s   | ]\}}d  ||V  qdS )z{}={}N)r    ).0kvr   r   r   	<genexpr>   s    z'FormContext.__repr__.<locals>.<genexpr>z!<Twilio.Verify.V2.FormContext {}>)joinr
   itemsr    )r   contextr   r   r   r      s    zFormContext.__repr__)r   r   r   r   r	   r%   r   r   r   r   )r   r   r   j   s   r   c                   s~   e Zd ZdZG dd deZd fdd	Zedd Zed	d
 Z	edd Z
edd Zedd Z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S )zFormInstance.FormTypesz	form-pushN)r   r   r   Z	FORM_PUSHr   r   r   r   	FormTypes   s   r.   Nc                sV   t t| | |d|d|d|dd| _d| _d|pL| jd i| _dS )z
        Initialize the FormInstance

        :returns: twilio.rest.verify.v2.form.FormInstance
        :rtype: twilio.rest.verify.v2.form.FormInstance
        r   forms	form_metaurl)r   r/   r0   r1   N)r   r   r	   r   _properties_contextr
   )r   r   r   r   )r   r   r   r	      s    zFormInstance.__init__c             C   s&   | j dkr t| j| jd d| _ | j S )a  
        Generate an instance context for the instance, the context is capable of
        performing various actions.  All instance actions are proxied to the context

        :returns: FormContext for this FormInstance
        :rtype: twilio.rest.verify.v2.form.FormContext
        Nr   )r   )r3   r   r   r
   )r   r   r   r   _proxy   s    	
zFormInstance._proxyc             C   s
   | j d S )zX
        :returns: The Type of this Form
        :rtype: FormInstance.FormTypes
        r   )r2   )r   r   r   r   r      s    zFormInstance.form_typec             C   s
   | j d S )zh
        :returns: Object that contains the available forms for this type.
        :rtype: dict
        r/   )r2   )r   r   r   r   r/      s    zFormInstance.formsc             C   s
   | j d S )zn
        :returns: Additional information for the available forms for this type.
        :rtype: dict
        r0   )r2   )r   r   r   r   r0      s    zFormInstance.form_metac             C   s
   | j d S )z^
        :returns: The URL to access the forms for this type.
        :rtype: unicode
        r1   )r2   )r   r   r   r   r1      s    zFormInstance.urlc             C   s
   | j  S )z
        Fetch the FormInstance

        :returns: The fetched FormInstance
        :rtype: twilio.rest.verify.v2.form.FormInstance
        )r4   r%   )r   r   r   r   r%      s    zFormInstance.fetchc             C   s$   d dd | j D }d|S )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        r&   c             s   s   | ]\}}d  ||V  qdS )z{}={}N)r    )r'   r(   r)   r   r   r   r*      s    z(FormInstance.__repr__.<locals>.<genexpr>z"<Twilio.Verify.V2.FormInstance {}>)r+   r
   r,   r    )r   r-   r   r   r   r      s    zFormInstance.__repr__)N)r   r   r   r   objectr.   r	   propertyr4   r   r/   r0   r1   r%   r   r   r   r   )r   r   r      s   	r   N)r   Ztwilio.baser   Ztwilio.base.instance_contextr   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.pager   r   r   r   r   r   r   r   r   <module>   s   2(*