
    i?1i?                         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e      Z G d	 d
e      Z G d de
      Zy)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                        e Zd Z G d de      Z	 	 ddedeeef   de	e   f fdZ
edd       Zdd	Zdd
ZdefdZ xZS )FormInstancec                       e Zd ZdZy)FormInstance.FormTypesz	form-pushN)__name__
__module____qualname__	FORM_PUSH     d/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/twilio/rest/verify/v2/form.py	FormTypesr      s    	r   r   versionpayload	form_typec                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d|xs | j                  i| _        d | _        y )Nr   forms	form_metaurl)	super__init__getr   r   r   r   	_solution_context)selfr   r   r   	__class__s       r   r   zFormInstance.__init__"   st     	!=D[[=U29++g2F
6=kk+6N")++e"4 4dnn
 04r   returnc                     | j                   )t        | j                  | j                  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
        r   r   )r!   FormContext_versionr    r"   s    r   _proxyzFormInstance._proxy4   s9     == '..5DM }}r   c                 6    | j                   j                         S )U
        Fetch the FormInstance


        :returns: The fetched FormInstance
        )r*   fetchr)   s    r   r-   zFormInstance.fetchC   s     {{  ""r   c                 R   K   | j                   j                          d{   S 7 w)o
        Asynchronous coroutine to fetch the FormInstance


        :returns: The fetched FormInstance
        N)r*   fetch_asyncr)   s    r   r0   zFormInstance.fetch_asyncL   s!      [[,,....s   '%'c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r   	<genexpr>z(FormInstance.__repr__.<locals>.<genexpr>[        SDAq7>>!Q/S   !z"<Twilio.Verify.V2.FormInstance {}>joinr    itemsr7   r"   contexts     r   __repr__zFormInstance.__repr__U   s6     ((SDNN<P<P<RSS3::7CCr   )N)r$   r'   )r$   r   )r   r   r   objectr   r	   r   strr   r   r   propertyr*   r-   r0   rD   __classcell__r#   s   @r   r   r      ss     F   *.	44 c3h4 I&	4$  #/D# Dr   r   c                   L     e Zd Zdeddf fdZdefdZdefdZdefdZ	 xZ
S )	r'   r   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)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    r7   _uri)r"   r   r   r#   s      r   r   zFormContext.__init__`   s@     	! 
 0(//A$..A	r   r$   c                     | j                   j                  d| j                        }t        | j                   || j                  d         S )r,   GETmethodurir   r&   )r(   r-   rL   r   r    r"   r   s     r   r-   zFormContext.fetcho   sL     --%%		 & 

 MMnn[1
 	
r   c                    K   | j                   j                  d| j                         d{   }t        | j                   || j                  d         S 7 )w)r/   rN   rO   Nr   r&   )r(   r0   rL   r   r    rR   s     r   r0   zFormContext.fetch_async   sZ      11		 2 
 

 MMnn[1
 	

s   +AA*Ac                     dj                  d | j                  j                         D              }dj                  |      S )r2   r3   c              3   F   K   | ]  \  }}d j                  ||        ywr5   r6   r8   s      r   r<   z'FormContext.__repr__.<locals>.<genexpr>   r=   r>   z!<Twilio.Verify.V2.FormContext {}>r?   rB   s     r   rD   zFormContext.__repr__   s6     ((SDNN<P<P<RSS299'BBr   )r   r   r   r	   r   r   r-   r0   rF   rD   rH   rI   s   @r   r'   r'   _   s@    B B4L B
| 
&
< 
&C# Cr   r'   c                   P     e Zd Zdef fdZdddefdZdddefdZdefdZ	 xZ
S )	FormListr   c                 $    t         |   |       y)zf
        Initialize the FormList

        :param version: Version that contains the resource

        N)r   r   )r"   r   r#   s     r   r   zFormList.__init__   s     	!r   r   r   r$   c                 0    t        | j                  |      S z
        Constructs a FormContext

        :param form_type: The Type of this Form. Currently only `form-push` is supported.
        r&   r'   r(   r"   r   s     r   r   zFormList.get        4==I>>r   c                 0    t        | j                  |      S rZ   r[   r\   s     r   __call__zFormList.__call__   r]   r   c                      y)r2   z<Twilio.Verify.V2.FormList>r   r)   s    r   rD   zFormList.__repr__   s     -r   )r   r   r   r	   r   r'   r   r_   rF   rD   rH   rI   s   @r   rW   rW      sC    " "?5 ?+ ??": ?{ ?-# -r   rW   N)__doc__typingr   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr	   r   r'   rW   r   r   r   <module>rg      sK    ' & 8 : 2 'ED# EDP=C/ =C@ -|  -r   