B
    `                 @   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                s.   t t| | d|i| _djf | 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__ _/home/dcms/DCMS/lib/python3.7/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
        )ZPhoneNumberZFriendlyNameZ	CallDelay	ExtensionZStatusCallbackZStatusCallbackMethodPOST)methoduridatar   )r   )r   Zof_versioncreater   ValidationRequestInstancer
   )	r   phone_numberfriendly_nameZ
call_delay	extensionZstatus_callbackZstatus_callback_methodr   payloadr   r   r   r   !   s    
zValidationRequestList.createc             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z(<Twilio.Api.V2010.ValidationRequestList>r   )r   r   r   r   __repr__>   s    zValidationRequestList.__repr__)	__name__
__module____qualname__r	   r   Z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   r#   r	   r
   )r   r   responseZsolution)r   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   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z(<Twilio.Api.V2010.ValidationRequestPage>r   )r   r   r   r   r   e   s    zValidationRequestPage.__repr__)r   r    r!   r	   r%   r   r"   r   r   )r   r   r#   H   s   r#   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   r&   r   r   r'   N)r   r   r	   get_properties_contextr
   )r   r   r   r   )r   r   r   r	   q   s    z"ValidationRequestInstance.__init__c             C   s
   | j d S )zd
        :returns: The SID of the Account that created the resource
        :rtype: unicode
        r   )r)   )r   r   r   r   r      s    z%ValidationRequestInstance.account_sidc             C   s
   | j d S )zg
        :returns: The SID of the Call the resource is associated with
        :rtype: unicode
        r&   )r)   )r   r   r   r   r&      s    z"ValidationRequestInstance.call_sidc             C   s
   | j d S )zi
        :returns: The string that you assigned to describe the resource
        :rtype: unicode
        r   )r)   )r   r   r   r   r      s    z'ValidationRequestInstance.friendly_namec             C   s
   | j d S )z^
        :returns: The phone number to verify in E.164 format
        :rtype: unicode
        r   )r)   )r   r   r   r   r      s    z&ValidationRequestInstance.phone_numberc             C   s
   | j d S )z
        :returns: The 6 digit validation code that someone must enter to validate the Caller ID  when `phone_number` is called
        :rtype: unicode
        r'   )r)   )r   r   r   r   r'      s    z)ValidationRequestInstance.validation_codec             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z,<Twilio.Api.V2010.ValidationRequestInstance>r   )r   r   r   r   r      s    z"ValidationRequestInstance.__repr__)r   r    r!   r	   propertyr   r&   r   r   r'   r   r"   r   r   )r   r   r   o   s   r   N)__doc__Ztwilio.baser   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.pager   r   r#   r   r   r   r   r   <module>   s   9'