o
    e                     @   sh   d 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
G d
d deZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
    )values)InstanceResource)ListResource)Pagec                       sB   e Zd Z fddZejejejejejfddZdd Z  ZS )ValidationRequestListc                    s2   t t| | d|i| _djdi | j| _dS )ax  
        Initialize the ValidationRequestList

        :param Version version: Version that contains the resource
        :param account_sid: The SID of the Account that created the resource

        :returns: twilio.rest.api.v2010.account.validation_request.ValidationRequestList
        :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestList
        account_sidz./Accounts/{account_sid}/OutgoingCallerIds.jsonN )superr   __init__	_solutionformat_uri)selfversionr   	__class__r   c/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/api/v2010/account/validation_request.pyr
      s   

zValidationRequestList.__init__c           	   	   C   sB   t ||||||d}| jjd| j|d}t| j|| jd dS )a  
        Create the ValidationRequestInstance

        :param unicode phone_number: The phone number to verify in E.164 format
        :param unicode friendly_name: A string to describe the resource
        :param unicode call_delay: The number of seconds to delay before initiating the verification call
        :param unicode extension: The digits to dial after connecting the verification call
        :param unicode status_callback: The URL we should call to send status information to your application
        :param unicode status_callback_method: The HTTP method we should use to call status_callback

        :returns: The created ValidationRequestInstance
        :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestInstance
        )PhoneNumberFriendlyName	CallDelay	ExtensionStatusCallbackStatusCallbackMethodPOST)methoduridatar   r   )r   of_versioncreater   ValidationRequestInstancer   )	r   phone_numberfriendly_name
call_delay	extensionstatus_callbackstatus_callback_methodr   payloadr   r   r   r    !   s   	zValidationRequestList.createc                 C      dS )z
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z(<Twilio.Api.V2010.ValidationRequestList>r   r   r   r   r   __repr__>      zValidationRequestList.__repr__)	__name__
__module____qualname__r
   r   unsetr    r,   __classcell__r   r   r   r   r      s    
r   c                       s,   e Zd Z fddZdd Zdd Z  ZS )ValidationRequestPagec                    s   t t| || || _dS )a  
        Initialize the ValidationRequestPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param account_sid: The SID of the Account that created the resource

        :returns: twilio.rest.api.v2010.account.validation_request.ValidationRequestPage
        :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestPage
        N)r	   r3   r
   r   )r   r   responsesolutionr   r   r   r
   J   s   
zValidationRequestPage.__init__c                 C   s   t | j|| jd dS )a5  
        Build an instance of ValidationRequestInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.api.v2010.account.validation_request.ValidationRequestInstance
        :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestInstance
        r   r   )r!   r   r   )r   r(   r   r   r   get_instanceZ   s   	z"ValidationRequestPage.get_instancec                 C   r)   )r*   z(<Twilio.Api.V2010.ValidationRequestPage>r   r+   r   r   r   r,   e   r-   zValidationRequestPage.__repr__)r.   r/   r0   r
   r6   r,   r2   r   r   r   r   r3   H   s    r3   c                       s`   e Zd Z fddZedd Zedd Zedd Zed	d
 Zedd Z	dd Z
  ZS )r!   c                    sT   t t| | |d|d|d|d|dd| _d| _d|i| _dS )z
        Initialize the ValidationRequestInstance

        :returns: twilio.rest.api.v2010.account.validation_request.ValidationRequestInstance
        :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestInstance
        r   call_sidr#   r"   validation_code)r   r7   r#   r"   r8   N)r	   r!   r
   get_properties_contextr   )r   r   r(   r   r   r   r   r
   q   s   	z"ValidationRequestInstance.__init__c                 C   
   | j d S )zd
        :returns: The SID of the Account that created the resource
        :rtype: unicode
        r   r:   r+   r   r   r   r         
z%ValidationRequestInstance.account_sidc                 C   r<   )zg
        :returns: The SID of the Call the resource is associated with
        :rtype: unicode
        r7   r=   r+   r   r   r   r7      r>   z"ValidationRequestInstance.call_sidc                 C   r<   )zi
        :returns: The string that you assigned to describe the resource
        :rtype: unicode
        r#   r=   r+   r   r   r   r#      r>   z'ValidationRequestInstance.friendly_namec                 C   r<   )z^
        :returns: The phone number to verify in E.164 format
        :rtype: unicode
        r"   r=   r+   r   r   r   r"      r>   z&ValidationRequestInstance.phone_numberc                 C   r<   )z
        :returns: The 6 digit validation code that someone must enter to validate the Caller ID  when `phone_number` is called
        :rtype: unicode
        r8   r=   r+   r   r   r   r8      r>   z)ValidationRequestInstance.validation_codec                 C   r)   )r*   z,<Twilio.Api.V2010.ValidationRequestInstance>r   r+   r   r   r   r,      r-   z"ValidationRequestInstance.__repr__)r.   r/   r0   r
   propertyr   r7   r#   r"   r8   r,   r2   r   r   r   r   r!   o   s    




r!   N)__doc__twilio.baser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r3   r!   r   r   r   r   <module>   s   9'