
    pi                         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  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)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     \/opt/services/ai/voice_agent/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._proxy5   s9     == '..5DM }}r   c                 6    | j                   j                         S )U
        Fetch the FormInstance


        :returns: The fetched FormInstance
        )r+   fetchr*   s    r   r.   zFormInstance.fetchD   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   r1   zFormInstance.fetch_asyncM   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!   itemsr8   r#   contexts     r   __repr__zFormInstance.__repr__V   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.   r1   rE   __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!   r8   _uri)r#   r   r   r$   s      r   r   zFormContext.__init__b   s@     	! 
 0(//A$..A	r   r%   c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      }t        | j                  || j                  d         S )r-   application/jsonAcceptGETmethoduriheadersr   r'   )r   ofr)   r.   rM   r   r!   r#   rU   r   s      r   r.   zFormContext.fetchq   s]     ))B-.--%%U		7%SMMnn[1
 	
r   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)r0   rO   rP   rQ   rR   Nr   r'   )r   rV   r)   r1   rM   r   r!   rW   s      r   r1   zFormContext.fetch_async   sr      ))B-.11dii 2 
 
 MMnn[1
 	
	
s   AA4A2	*A4c                     dj                  d | j                  j                         D              }dj                  |      S )r3   r4   c              3   F   K   | ]  \  }}d j                  ||        ywr6   r7   r9   s      r   r=   z'FormContext.__repr__.<locals>.<genexpr>   r>   r?   z!<Twilio.Verify.V2.FormContext {}>r@   rC   s     r   rE   zFormContext.__repr__   s6     ((SDNN<P<P<RSS299'BBr   )r   r   r   r
   r   r   r.   r1   rG   rE   rI   rJ   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 r_   r`   ra   s     r   __call__zFormList.__call__   rb   r   c                      y)r3   z<Twilio.Verify.V2.FormList>r   r*   s    r   rE   zFormList.__repr__   s     -r   )r   r   r   r
   r   r(   r    rd   rG   rE   rI   rJ   s   @r   r\   r\      sC    " "?5 ?+ ??": ?{ ?-# -r   r\   N)__doc__typingr   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r(   r\   r   r   r   <module>rm      sP    ' &  8 : 2 'FD# FDRBC/ BCJ!-| !-r   