o
    /i?                     @   s|   d Z ddlmZmZ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 )a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Verify
    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)InstanceContext)InstanceResource)ListResource)Versionc                       s|   e Zd ZG dd deZ	 	ddedeeef de	e f fddZ
edddZdddZdddZd	efddZ  ZS )FormInstancec                   @   s   e Zd ZdZdS )FormInstance.FormTypesz	form-pushN)__name__
__module____qualname__	FORM_PUSH r   r   U/var/www/html/philips/venv/lib/python3.10/site-packages/twilio/rest/verify/v2/form.py	FormTypes   s    r   Nversionpayload	form_typec                    sV   t  | |d| _|d| _|d| _|d| _d|p#| ji| _d | _d S )Nr   forms	form_metaurl)	super__init__getr   r   r   r   	_solution_context)selfr   r   r   	__class__r   r   r   "   s   

zFormInstance.__init__returnFormContextc                 C   s&   | j du rt| j| jd d| _ | j S )z
        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
        Nr   r   )r   r!   _versionr   r   r   r   r   _proxy4   s   
zFormInstance._proxyc                 C   s
   | j  S )U
        Fetch the FormInstance


        :returns: The fetched FormInstance
        )r%   fetchr$   r   r   r   r'   C   s   
zFormInstance.fetchc                    s   | j  I dH S )o
        Asynchronous coroutine to fetch the FormInstance


        :returns: The fetched FormInstance
        N)r%   fetch_asyncr$   r   r   r   r)   L   s   zFormInstance.fetch_asyncc                 C   $   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s        | ]\}}d  ||V  qdS z{}={}Nformat.0kvr   r   r   	<genexpr>[       z(FormInstance.__repr__.<locals>.<genexpr>z"<Twilio.Verify.V2.FormInstance {}>joinr   itemsr0   r   contextr   r   r   __repr__U      
zFormInstance.__repr__)N)r    r!   )r    r	   )r   r   r   objectr   r   r   strr   r   r   propertyr%   r'   r)   r<   __classcell__r   r   r   r   r	      s     


		r	   c                       sP   e Zd Zdeddf fddZdefddZdefd	d
ZdefddZ	  Z
S )r!   r   r   r
   c                    s.   t  | d|i| _djdi | j| _dS )z
        Initialize the FormContext

        :param version: Version that contains the resource
        :param form_type: The Type of this Form. Currently only `form-push` is supported.
        r   z/Forms/{form_type}Nr   )r   r   r   r0   _uri)r   r   r   r   r   r   r   `   s   zFormContext.__init__r    c                 C   s(   | j jd| jd}t| j || jd dS )r&   GETmethodurir   r"   )r#   r'   rB   r	   r   r   r   r   r   r   r'   o   s   zFormContext.fetchc                    s0   | j jd| jdI dH }t| j || jd dS )r(   rC   rD   Nr   r"   )r#   r)   rB   r	   r   rG   r   r   r   r)      s   zFormContext.fetch_asyncc                 C   r*   )r+   r,   c                 s   r-   r.   r/   r1   r   r   r   r5      r6   z'FormContext.__repr__.<locals>.<genexpr>z!<Twilio.Verify.V2.FormContext {}>r7   r:   r   r   r   r<      r=   zFormContext.__repr__)r   r   r   r   r   r	   r'   r)   r?   r<   rA   r   r   r   r   r!   _   s
    r!   c                       sT   e Zd Zdef fddZdddefddZdddefd	d
ZdefddZ	  Z
S )FormListr   c                    s   t  | dS )zf
        Initialize the FormList

        :param version: Version that contains the resource

        N)r   r   )r   r   r   r   r   r      s   zFormList.__init__r   r
   r    c                 C      t | j|dS z
        Constructs a FormContext

        :param form_type: The Type of this Form. Currently only `form-push` is supported.
        r"   r!   r#   r   r   r   r   r   r         zFormList.getc                 C   rI   rJ   rK   rL   r   r   r   __call__   rM   zFormList.__call__c                 C   s   dS )r+   z<Twilio.Verify.V2.FormList>r   r$   r   r   r   r<      s   zFormList.__repr__)r   r   r   r   r   r!   r   rN   r?   r<   rA   r   r   r   r   rH      s
    	rH   N)__doc__typingr   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r	   r!   rH   r   r   r   r   <module>   s    H@