o
    f>hj                     @   sp   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 de	ZG d	d
 d
eZdS )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                       sD   e Zd ZdZdedeeef def fddZdefdd	Z	  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                    sV   t  | |d| _|d| _|d| _|d| _|d| _d|i| _d S )Nr   call_sidfriendly_namephone_numbervalidation_code)	super__init__getr   r   r   r   r   	_solution)selfr   r   r   	__class__ c/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/api/v2010/account/validation_request.pyr       s   
z"ValidationRequestInstance.__init__returnc                 C   s$   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s   s     | ]\}}d  ||V  qdS )z{}={}N)format).0kvr   r   r   	<genexpr>3   s    z5ValidationRequestInstance.__repr__.<locals>.<genexpr>z/<Twilio.Api.V2010.ValidationRequestInstance {}>)joinr   itemsr   )r   contextr   r   r   __repr__-   s   
z"ValidationRequestInstance.__repr__)__name__
__module____qualname____doc__r	   r   strr   r   r&   __classcell__r   r   r   r   r
      s    "r
   c                       s   e Zd Zdedef fd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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dZdefddZ  ZS )ValidationRequestListr   r   c                    s.   t  | d|i| _djdi | j| _dS )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.jsonNr   )r   r   r   r   _uri)r   r   r   r   r   r   r   9   s   zValidationRequestList.__init__r   r   
call_delay	extensionstatus_callbackstatus_callback_methodr   c           
   	   C   sb   t ||||||d}t ddi}d|d< d|d< | jjd| j||d}	t| j|	| jd 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creater.   r
   r   
r   r   r   r/   r0   r1   r2   rB   rC   r   r   r   r   rG   K   s$   

zValidationRequestList.createc           
   	      sj   t ||||||d}t ddi}d|d< d|d< | jjd| j||dI dH }	t| j|	| jd	 d
S )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
        r3   r:   r;   r<   r=   r>   r?   Nr   rD   )r   rE   rF   create_asyncr.   r
   r   rH   r   r   r   rI   y   s&   

z"ValidationRequestList.create_asyncc                 C   s   dS )r   z(<Twilio.Api.V2010.ValidationRequestList>r   )r   r   r   r   r&      s   zValidationRequestList.__repr__)r'   r(   r)   r	   r+   r   r   unsetr   objectintr
   rG   rI   r&   r,   r   r   r   r   r-   7   sV    





1





.r-   N)r*   typingr   r   r   r   twilio.baser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr	   r
   r-   r   r   r   r   <module>   s     