
    pij                     |    d Z ddlmZ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y)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Api
    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Union)values)InstanceResource)ListResource)Versionc                   F     e Zd ZdZdedeeef   def fdZdefdZ	 xZ
S )ValidationRequestInstancea  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the Caller ID.
    :ivar call_sid: The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Caller ID is associated with.
    :ivar friendly_name: The string that you assigned to describe the resource.
    :ivar phone_number: The phone number to verify in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
    :ivar validation_code: The 6 digit validation code that someone must enter to validate the Caller ID  when `phone_number` is called.
    versionpayloadaccount_sidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d|i| _        y )Nr   call_sidfriendly_namephone_numbervalidation_code)	super__init__getr   r   r   r   r   	_solution)selfr   r   r   	__class__s       r/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/validation_request.pyr   z"ValidationRequestInstance.__init__    su    !*1++m*D'.{{:'>,3KK,H+2;;~+F.5kk:K.L ;
    returnc                     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>z5ValidationRequestInstance.__repr__.<locals>.<genexpr>3   s     SDAq7>>!Q/Ss   !z/<Twilio.Api.V2010.ValidationRequestInstance {}>)joinr   itemsr"   )r   contexts     r   __repr__z"ValidationRequestInstance.__repr__-   s6     ((SDNN<P<P<RSS@GGPPr   )__name__
__module____qualname____doc__r
   r   strr   r   r*   __classcell__r   s   @r   r   r      s8    
 
$sCx. 
s 
Q# Qr   r   c                       e Zd Zdedef fdZej                  ej                  ej                  ej                  ej                  fdedeee	f   dee
e	f   deee	f   deee	f   d	eee	f   d
efdZej                  ej                  ej                  ej                  ej                  fdedeee	f   dee
e	f   deee	f   deee	f   d	eee	f   d
efdZd
efdZ xZS )ValidationRequestListr   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)a  
        Initialize the ValidationRequestList

        :param version: Version that contains the resource
        :param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the new caller ID resource.

        r   z./Accounts/{account_sid}/OutgoingCallerIds.jsonN )r   r   r   r"   _uri)r   r   r   r   s      r   r   zValidationRequestList.__init__9   sF     	! ;
 LDKK 
nn
	r   r   r   
call_delay	extensionstatus_callbackstatus_callback_methodr   c           	         t        j                  ||||||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      }	t        | j                  |	| j                  d   	      S )
a>  
        Create the ValidationRequestInstance

        :param phone_number: The phone number to verify in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
        :param friendly_name: A descriptive string that you create to describe the new caller ID resource. It can be up to 64 characters long. The default value is a formatted version of the phone number.
        :param call_delay: The number of seconds to delay before initiating the verification call. Can be an integer between `0` and `60`, inclusive. The default is `0`.
        :param extension: The digits to dial after connecting the verification call.
        :param status_callback: The URL we should call using the `status_callback_method` to send status information about the verification process to your application.
        :param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`, and the default is `POST`.

        :returns: The created ValidationRequestInstance
        PhoneNumberFriendlyName	CallDelay	ExtensionStatusCallbackStatusCallbackMethodContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheadersr   r   )r   of_versioncreater6   r   r   
r   r   r   r7   r8   r9   r:   rK   rL   r   s
             r   rP   zValidationRequestList.createK   s    , yy+ -'&"1(>	
 ))^-PQR"E.--&&tyytW ' 
 )MM7}0M
 	
r   c           	      4  K   t        j                  ||||||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }	t        | j                  |	| j                  d	   
      S 7 )w)aM  
        Asynchronously create the ValidationRequestInstance

        :param phone_number: The phone number to verify in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
        :param friendly_name: A descriptive string that you create to describe the new caller ID resource. It can be up to 64 characters long. The default value is a formatted version of the phone number.
        :param call_delay: The number of seconds to delay before initiating the verification call. Can be an integer between `0` and `60`, inclusive. The default is `0`.
        :param extension: The digits to dial after connecting the verification call.
        :param status_callback: The URL we should call using the `status_callback_method` to send status information about the verification process to your application.
        :param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`, and the default is `POST`.

        :returns: The created ValidationRequestInstance
        r<   rC   rD   rE   rF   rG   rH   Nr   rM   )r   rN   rO   create_asyncr6   r   r   rQ   s
             r   rS   z"ValidationRequestList.create_asyncy   s     , yy+ -'&"1(>	
 ))^-PQR"E.22tyytW 3 
 
 )MM7}0M
 	
	
s   A*B,B-*Bc                      y)r   z(<Twilio.Api.V2010.ValidationRequestList>r5   )r   s    r   r*   zValidationRequestList.__repr__   s     :r   )r+   r,   r-   r
   r/   r   r   unsetr   objectintr   rP   rS   r*   r0   r1   s   @r   r3   r3   7   sZ   
 
c 
* -3LL)/(..4ll5;\\,
,
 S&[),
 #v+&	,

 f%,
 sF{+,
 !&c6k 2,
 
#,
b -3LL)/(..4ll5;\\,
,
 S&[),
 #v+&	,

 f%,
 sF{+,
 !&c6k 2,
 
#,
\:# :r   r3   N)r.   typingr   r   r   r   twilio.baser   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r3   r5   r   r   <module>r]      s<    . -  : 2 'Q 0 Q@v:L v:r   