
    d{i1                         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 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)values)ApiResponse)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def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     X/home/sas/my/fyp/ringai/.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._proxy6   s9     == '..5DM }}r   c                 6    | j                   j                         S )U
        Fetch the FormInstance


        :returns: The fetched FormInstance
        )r,   fetchr+   s    r   r/   zFormInstance.fetchE   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   r2   zFormInstance.fetch_asyncN   s!      [[,,....   '%'c                 6    | j                   j                         S )z
        Fetch the FormInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r,   fetch_with_http_infor+   s    r   r5   z!FormInstance.fetch_with_http_infoW   s     {{//11r   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the FormInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r,   fetch_with_http_info_asyncr+   s    r   r7   z'FormInstance.fetch_with_http_info_async`   s!      [[;;====r3   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>o        SDAq7>>!Q/S   !z"<Twilio.Verify.V2.FormInstance {}>joinr"   itemsr>   r$   contexts     r   __repr__zFormInstance.__repr__i   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/   r2   r   r5   r7   rK   __classcell__r%   s   @r   r   r      s     F   *.	44 c3h4 I&	4$  #/2k 2>+ >D# Dr   r   c                   |     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
de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"   r>   _uri)r$   r   r   r%   s      r   r    zFormContext.__init__u   s@     	! 
 0(//A$..A	r   r&   c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETmethoduriheaders)r   ofr*   fetch_with_response_inforS   r$   r[   s     r   _fetchzFormContext._fetch   sB     ))B-.}}55dii 6 
 	
r   c                 t    | j                         \  }}}t        | j                  || j                  d         S )r.   r   r(   )r_   r   r*   r"   r$   r   _s      r   r/   zFormContext.fetch   s8     AMMnn[1
 	
r   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the FormInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r(   datastatus_coder[   )r_   r   r*   r"   r   r$   r   rf   r[   instances        r   r5   z FormContext.fetch_with_http_info   sG     )-%gMMnn[1

 k7SSr   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        rU   rV   rW   rX   N)r   r\   r*   fetch_with_response_info_asyncrS   r^   s     r   _fetch_asynczFormContext._fetch_async   sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)r1   Nr   r(   )rk   r   r*   r"   ra   s      r   r2   zFormContext.fetch_async   sG      #//11AMMnn[1
 	
 2s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to fetch the FormInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r(   rd   )rk   r   r*   r"   r   rg   s        r   r7   z&FormContext.fetch_with_http_info_async   sW      /3.?.?.A(A%gMMnn[1

 k7SS )Bs   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )r9   r:   c              3   F   K   | ]  \  }}d j                  ||        ywr<   r=   r?   s      r   rC   z'FormContext.__repr__.<locals>.<genexpr>   rD   rE   z!<Twilio.Verify.V2.FormContext {}>rF   rI   s     r   rK   zFormContext.__repr__   s6     ((SDNN<P<P<RSS299'BBr   )r   r   r   r   r    tupler_   r   r/   r   r5   rk   r2   r7   rM   rK   rO   rP   s   @r   r)   r)   s   st    B B4L B
 
 
| 
Tk T
E 
 
< 
T+ T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 ru   rv   rw   s     r   __call__zFormList.__call__   rx   r   c                      y)r9   z<Twilio.Verify.V2.FormList>r   r+   s    r   rK   zFormList.__repr__  s     -r   )r   r   r   r   r    r)   r!   rz   rM   rK   rO   rP   s   @r   rr   rr      sC    " "?5 ?+ ??": ?{ ?-# -r   rr   N)__doc__typingr   r   r   twilio.baser   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r)   rr   r   r   r   <module>r      sS    ' &  0 8 : 2 'XD# XDvrC/ rCj!-| !-r   