
    d{ir5                         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 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)ApiResponse)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       n/home/sas/my/fyp/ringai/.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>4   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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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__:   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                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        PhoneNumberFriendlyName	CallDelay	ExtensionStatusCallbackStatusCallbackMethodContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r   of_versioncreate_with_response_infor7   	r   r   r   r8   r9   r:   r;   rL   rM   s	            r   _createzValidationRequestList._createL   s|      yy+ -'&"1(>	
 ))^-PQR"E.}}66tyytW 7 
 	
r   c                     | 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
        r   r   r8   r9   r:   r;   r   r   )rR   r   rO   r   	r   r   r   r8   r9   r:   r;   r   _s	            r   createzValidationRequestList.createp   sR    * %'!+#9 % 
A )MM7}0M
 	
r   c                     | j                  ||||||      \  }}}	t        | j                  || j                  d         }
t	        |
||	      S )ai  
        Create the ValidationRequestInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rT   r   rU   rL   status_coderM   )rR   r   rO   r   r   r   r   r   r8   r9   r:   r;   r   r[   rM   instances              r   create_with_http_infoz+ValidationRequestList.create_with_http_info   sa    * )-%'!+#9 )5 )
%g -MM7}0M
 k7SSr   c           	         K   t        j                  ||||||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r=   rD   rE   rF   rG   rH   rI   N)r   rN   rO   create_with_response_info_asyncr7   rQ   s	            r   _create_asyncz#ValidationRequestList._create_async   s       yy+ -'&"1(>	
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A*A3,A1-A3c                    K   | 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
        rT   Nr   rU   )ra   r   rO   r   rV   s	            r   create_asyncz"ValidationRequestList.create_async   sb     * #00%'!+#9 1 
 
A )MM7}0M
 	

s   AA.Ac                    K   | j                  ||||||       d{   \  }}}	t        | j                  || j                  d         }
t	        |
||	      S 7 ;w)ax  
        Asynchronously create the ValidationRequestInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rT   Nr   rU   rZ   )ra   r   rO   r   r   r\   s              r   create_with_http_info_asyncz1ValidationRequestList.create_with_http_info_async   sr     * /3.@.@%'!+#9 /A /
 )
%g -MM7}0M
 k7SS)
s   AA<Ac                      y)r    z(<Twilio.Api.V2010.ValidationRequestList>r6   )r   s    r   r+   zValidationRequestList.__repr__  s     :r   )r,   r-   r.   r   r0   r   r   unsetr   objectinttuplerR   r   rX   r   r^   ra   rc   re   r+   r1   r2   s   @r   r4   r4   8   s   
 
c 
* -3LL)/(..4ll5;\\"
"
 S&[)"
 #v+&	"

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

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

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

 f%
 sF{+
 !&c6k 2
 
#
H -3LL)/(..4ll5;\\ T T S&[) T #v+&	 T
 f% T sF{+ T !&c6k 2 T 
 TD:# :r   r4   N)r/   typingr   r   r   r   twilio.baser   twilio.base.api_responser   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r4   r6   r   r   <module>rq      s?    . -  0 : 2 'Q 0 Q@h:L h:r   