U
    ^g%ij                     @   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                       s@   e Zd ZdZeeeef ed fddZed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__ o/var/www/html/api-medvista/venv/lib/python3.8/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eed fddZejejejejejfeeee	f ee
e	f eee	f eee	f eee	f edddZejejejejejfeeee	f ee
e	f eee	f eee	f eee	f edddZed	d
dZ  ZS )ValidationRequestList)r   r   c                    s*   t  | d|i| _djf | 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.jsonN)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
        ZPhoneNumberZFriendlyNameZ	CallDelay	ExtensionZStatusCallbackZ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   r0   r1   r2   r3   r>   r?   r   r   r   r   rC   K   s.    
     zValidationRequestList.createc           
   	      sh   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
        r4   r6   r7   r8   r9   r:   r;   Nr   r@   )r   rA   rB   create_asyncr/   r
   r   rD   r   r   r   rE   y   s.    
     z"ValidationRequestList.create_asyncr   c                 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
   rC   rE   r'   r-   r   r   r   r   r.   7   s<   




1




.r.   N)r+   typingr   r   r   r   Ztwilio.baser   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.versionr	   r
   r.   r   r   r   r   <module>   s    