o
    e                     @   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 )
FormListk 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__ M/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/verify/v2/form.pyr
      s   	
zFormList.__init__c                 C      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"      	zFormList.getc                 C   r   r   r   r   r   r   r   __call__-   r   zFormList.__call__c                 C      dS )z
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Verify.V2.FormList>r   r   r   r   r   __repr__8      zFormList.__repr__)	__name__
__module____qualname____doc__r
   r   r   r    __classcell__r   r   r   r   r      s    r   c                       0   e Zd ZdZ fddZdd Zdd Z  ZS )FormPager   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   responsesolutionr   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   r   )r   z<Twilio.Verify.V2.FormPage>r   r   r   r   r   r    `   r!   zFormPage.__repr__)r"   r#   r$   r%   r
   r.   r    r&   r   r   r   r   r(   B   s
    r(   c                       r'   )r   r   c                    s2   t t| | d|i| _djdi | 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}Nr   )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 )
        Fetch the FormInstance

        :returns: The fetched FormInstance
        :rtype: twilio.rest.verify.v2.form.FormInstance
        GET)methodurir   r   )r   fetchr0   r+   r   r,   r   r   r   r5   ~   s   zFormContext.fetchc                 C   $   d dd | j D }d|S )r    c                 s        | ]\}}d  ||V  qdS z{}={}Nr/   .0kvr   r   r   	<genexpr>       z'FormContext.__repr__.<locals>.<genexpr>z!<Twilio.Verify.V2.FormContext {}>joinr   itemsr/   r   contextr   r   r   r          
zFormContext.__repr__)r"   r#   r$   r%   r
   r5   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+   r   c                   @   s   e Zd ZdZdS )zFormInstance.FormTypesz	form-pushN)r"   r#   r$   	FORM_PUSHr   r   r   r   	FormTypes   s    rH   Nc                    sV   t t| | |d|d|d|dd| _d| _d|p&| 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   rI   rJ   rK   N)r	   r+   r
   r   _properties_contextr   )r   r   r-   r   r   r   r   r
      s   zFormInstance.__init__c                 C   s&   | j du 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   )rM   r   r   r   r   r   r   r   _proxy   s   
	zFormInstance._proxyc                 C   
   | j d S )zX
        :returns: The Type of this Form
        :rtype: FormInstance.FormTypes
        r   rL   r   r   r   r   r         
zFormInstance.form_typec                 C   rO   )zh
        :returns: Object that contains the available forms for this type.
        :rtype: dict
        rI   rP   r   r   r   r   rI      rQ   zFormInstance.formsc                 C   rO   )zn
        :returns: Additional information for the available forms for this type.
        :rtype: dict
        rJ   rP   r   r   r   r   rJ      rQ   zFormInstance.form_metac                 C   rO   )z^
        :returns: The URL to access the forms for this type.
        :rtype: unicode
        rK   rP   r   r   r   r   rK      rQ   zFormInstance.urlc                 C   s
   | j  S )r1   )rN   r5   r   r   r   r   r5      s   
zFormInstance.fetchc                 C   r6   )r   r7   c                 s   r8   r9   r:   r;   r   r   r   r?      r@   z(FormInstance.__repr__.<locals>.<genexpr>z"<Twilio.Verify.V2.FormInstance {}>rA   rD   r   r   r   r       rF   zFormInstance.__repr__)N)r"   r#   r$   r%   objectrH   r
   propertyrN   r   rI   rJ   rK   r5   r    r&   r   r   r   r   r+      s     




	r+   N)r%   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r(   r   r+   r   r   r   r   <module>   s   2(*