
    d{i                          d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
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 dd
lmZ  G d de      Z G d de      Z G d de      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Verify
    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.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserialize	serializevalues)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec                        e Zd Z G d de      Z G d de      Z	 	 ddedeee	f   de
e   f fdZedd
       ZddZddZd	efdZd	efdZd	efdZ xZS )VerificationAttemptInstancec                        e Zd ZdZdZdZdZdZy)$VerificationAttemptInstance.ChannelssmscallemailwhatsapprbmN)__name__
__module____qualname__SMSCALLEMAILWHATSAPPRBM     h/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/verify/v2/verification_attempt.pyChannelsr      s    r&   r(   c                       e Zd ZdZdZy),VerificationAttemptInstance.ConversionStatus	convertedunconvertedN)r   r   r   	CONVERTEDUNCONVERTEDr%   r&   r'   ConversionStatusr*   #   s    	#r&   r/   versionpayloadsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _	        t        j                  |j                  d            | _
        |j                  d      | _        |j                  d      | _        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        d|xs | j                  i| _        d | _        y )Nr2   account_sidservice_sidverification_siddate_createddate_updatedconversion_statuschannelpricechannel_dataurl)super__init__getr2   r4   r5   r6   r   iso8601_datetimer7   r8   r9   r:   r;   r<   r=   	_solution_context)selfr0   r1   r2   	__class__s       r'   r?   z$VerificationAttemptInstance.__init__5   s    	!")++e"4*1++m*D*1++m*D/6{{;M/N0;0L0LKK'1
 1<0L0LKK'1

 KK+, 	 JQJ
 3:++g2F
9@^9T")++e"4 3?$((
 ?Cr&   returnc                     | j                   )t        | j                  | j                  d         | _         | j                   S )a  
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: VerificationAttemptContext for this VerificationAttemptInstance
        r2   r2   )rC   VerificationAttemptContext_versionrB   rD   s    r'   _proxyz"VerificationAttemptInstance._proxyS   s9     == 6NN5)DM }}r&   c                 6    | j                   j                         S )s
        Fetch the VerificationAttemptInstance


        :returns: The fetched VerificationAttemptInstance
        )rL   fetchrK   s    r'   rO   z!VerificationAttemptInstance.fetchb   s     {{  ""r&   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the VerificationAttemptInstance


        :returns: The fetched VerificationAttemptInstance
        N)rL   fetch_asyncrK   s    r'   rR   z'VerificationAttemptInstance.fetch_asynck   s!      [[,,....   '%'c                 6    | j                   j                         S )z
        Fetch the VerificationAttemptInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )rL   fetch_with_http_inforK   s    r'   rU   z0VerificationAttemptInstance.fetch_with_http_infot   s     {{//11r&   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the VerificationAttemptInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)rL   fetch_with_http_info_asyncrK   s    r'   rW   z6VerificationAttemptInstance.fetch_with_http_info_async}   s!      [[;;====rS   c                     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>z7VerificationAttemptInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z1<Twilio.Verify.V2.VerificationAttemptInstance {}>joinrB   itemsr^   rD   contexts     r'   __repr__z$VerificationAttemptInstance.__repr__   s6     ((SDNN<P<P<RSSBII'RRr&   )N)rF   rI   )rF   r   )r   r   r   objectr(   r/   r   r   strr   r   r?   propertyrL   rO   rR   r   rU   rW   rk   __classcell__rE   s   @r'   r   r      s    6 $6 $ OSCC)-c3hC>FsmC<  #/2k 2>+ >S# Sr&   r   c                   |     e Zd Zdedef fdZdefdZdefdZ	de
fdZdefdZdefd	Zde
fd
ZdefdZ xZS )rI   r0   r2   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the VerificationAttemptContext

        :param version: Version that contains the resource
        :param sid: The unique SID identifier of a Verification Attempt
        r2   z/Attempts/{sid}Nr%   )r>   r?   rB   r^   _uri)rD   r0   r2   rE   s      r'   r?   z#VerificationAttemptContext.__init__   s@     	! 3
 -%,,>t~~>	r&   rF   c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETmethoduriheaders)r   ofrJ   fetch_with_response_infors   rD   r{   s     r'   _fetchz!VerificationAttemptContext._fetch   sB     ))B-.}}55dii 6 
 	
r&   c                 t    | j                         \  }}}t        | j                  || j                  d         S )rN   r2   rH   )r   r   rJ   rB   rD   r1   _s      r'   rO   z VerificationAttemptContext.fetch   s8     A*MMu%
 	
r&   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the VerificationAttemptInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r2   rH   datastatus_coder{   )r   r   rJ   rB   r   rD   r1   r   r{   instances        r'   rU   z/VerificationAttemptContext.fetch_with_http_info   sG     )-%g.MMu%

 k7SSr&   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        ru   rv   rw   rx   N)r   r|   rJ   fetch_with_response_info_asyncrs   r~   s     r'   _fetch_asyncz'VerificationAttemptContext._fetch_async   sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)rQ   Nr2   rH   )r   r   rJ   rB   r   s      r'   rR   z&VerificationAttemptContext.fetch_async   sG      #//11A*MMu%
 	
 2s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to fetch the VerificationAttemptInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr2   rH   r   )r   r   rJ   rB   r   r   s        r'   rW   z5VerificationAttemptContext.fetch_with_http_info_async   sW      /3.?.?.A(A%g.MMu%

 k7SS )Bs   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )rY   rZ   c              3   F   K   | ]  \  }}d j                  ||        ywr\   r]   r_   s      r'   rc   z6VerificationAttemptContext.__repr__.<locals>.<genexpr>  rd   re   z0<Twilio.Verify.V2.VerificationAttemptContext {}>rf   ri   s     r'   rk   z#VerificationAttemptContext.__repr__   s6     ((SDNN<P<P<RSSAHHQQr&   )r   r   r   r   rm   r?   tupler   r   rO   r   rU   r   rR   rW   rk   ro   rp   s   @r'   rI   rI      sr    ? ?c ?
 
 
2 
Tk T
E 
 
#> 
T+ TR# Rr&   rI   c                   2    e Zd Zdeeef   defdZdefdZy)VerificationAttemptPager1   rF   c                 .    t        | j                  |      S )zy
        Build an instance of VerificationAttemptInstance

        :param payload: Payload response from the API
        )r   rJ   )rD   r1   s     r'   get_instancez$VerificationAttemptPage.get_instance  s     +4=='BBr&   c                      y)rY   z*<Twilio.Verify.V2.VerificationAttemptPage>r%   rK   s    r'   rk   z VerificationAttemptPage.__repr__       <r&   N)	r   r   r   r   rm   r   r   r   rk   r%   r&   r'   r   r     s-    CDcN C7R C<# <r&   r   c                        e Zd Zdef fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ddf
deee	f   deee	f   dee
e	f   dee
e	f   ded	e	f   d
ee
e	f   dee
e	f   dede	f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ddf
deee	f   deee	f   dee
e	f   dee
e	f   ded	e	f   d
ee
e	f   dee
e	f   dede	f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ddf
deee	f   deee	f   dee
e	f   dee
e	f   ded	e	f   d
ee
e	f   dee
e	f   dede	f   dee   dee   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ddf
deee	f   deee	f   dee
e	f   dee
e	f   ded	e	f   d
ee
e	f   dee
e	f   dede	f   dee   dee   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ddf
deee	f   deee	f   dee
e	f   dee
e	f   ded	e	f   d
ee
e	f   dee
e	f   dede	f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ddf
deee	f   deee	f   dee
e	f   dee
e	f   ded	e	f   d
ee
e	f   dee
e	f   dede	f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ddf
deee	f   deee	f   dee
e	f   dee
e	f   ded	e	f   d
ee
e	f   dee
e	f   dede	f   dee   dee   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ddf
deee	f   deee	f   dee
e	f   dee
e	f   ded	e	f   d
ee
e	f   dee
e	f   dede	f   dee   dee   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   deee	f   dee
e	f   dee
e	f   ded	e	f   d
ee
e	f   dee
e	f   ded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                  ej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   deee	f   dee
e	f   dee
e	f   ded	e	f   d
ee
e	f   dee
e	f   ded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                  ej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   deee	f   dee
e	f   dee
e	f   ded	e	f   d
ee
e	f   dee
e	f   ded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                  ej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   deee	f   dee
e	f   dee
e	f   ded	e	f   d
ee
e	f   dee
e	f   dede	f   dee
e	f   deee	f   deee	f   defdZde
defd Z de
defd!Z!d"e
de"fd#Z#d"e
de"fd$Z$de
fd%Z% xZ&S )&VerificationAttemptListr0   c                 2    t         |   |       d| _        y)zu
        Initialize the VerificationAttemptList

        :param version: Version that contains the resource

        z	/AttemptsN)r>   r?   rs   )rD   r0   rE   s     r'   r?   z VerificationAttemptList.__init__  s     	!	r&   Ndate_created_afterdate_created_beforechannel_data_tocountryr:   r   verify_service_sidr6   statusr*   limit	page_sizerF   c                     | j                   j                  |	|
      }| j                  |||||||||d   	      }| j                   j                  ||d         S )a	  
        Streams VerificationAttemptInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param datetime date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param datetime date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param str channel_data_to: Destination of a verification. It is phone number in E.164 format.
        :param str country: Filter used to query Verification Attempts sent to the specified destination country.
        :param &quot;VerificationAttemptInstance.Channels&quot; channel: Filter used to query Verification Attempts by communication channel.
        :param str verify_service_sid: Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned.
        :param str verification_sid: Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned.
        :param &quot;VerificationAttemptInstance.ConversionStatus&quot; status: Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   	r   r   r   r   r:   r   r6   r   r   r   )rJ   read_limitspagestreamrD   r   r   r   r   r:   r   r6   r   r   r   limitsr   s                r'   r   zVerificationAttemptList.stream%  sk    L **5)<yy1 3+1-[)  

 }}##D&/::r&   c                    K   | j                   j                  |	|
      }| j                  |||||||||d   	       d{   }| j                   j                  ||d         S 7 #w)a	  
        Asynchronously streams VerificationAttemptInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param datetime date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param datetime date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param str channel_data_to: Destination of a verification. It is phone number in E.164 format.
        :param str country: Filter used to query Verification Attempts sent to the specified destination country.
        :param &quot;VerificationAttemptInstance.Channels&quot; channel: Filter used to query Verification Attempts by communication channel.
        :param str verify_service_sid: Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned.
        :param str verification_sid: Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned.
        :param &quot;VerificationAttemptInstance.ConversionStatus&quot; status: Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r   Nr   )rJ   r   
page_asyncstream_asyncr   s                r'   r   z$VerificationAttemptList.stream_asyncZ  sy     L **5)<__1 3+1-[) % 

 

 }}))$w@@

s   =A%A# $A%c                     | j                   j                  |	|
      }| j                  |||||||||d   	      }| j                   j                  |j                  |d         }||j
                  |j                  fS )aW  
        Streams VerificationAttemptInstance and returns headers from first page


        :param datetime date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param datetime date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param str channel_data_to: Destination of a verification. It is phone number in E.164 format.
        :param str country: Filter used to query Verification Attempts sent to the specified destination country.
        :param &quot;VerificationAttemptInstance.Channels&quot; channel: Filter used to query Verification Attempts by communication channel.
        :param str verify_service_sid: Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned.
        :param str verification_sid: Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned.
        :param &quot;VerificationAttemptInstance.ConversionStatus&quot; status: Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: tuple of (generator, status_code, headers) where generator yields instances
        r   r   r   )rJ   r   page_with_http_infor   r   r   r{   rD   r   r   r   r   r:   r   r6   r   r   r   r   page_response	generators                 r'   stream_with_http_infoz-VerificationAttemptList.stream_with_http_info  s    H **5)<001 3+1-[) 1 

 MM((););VG_M	=44m6K6KLLr&   c                   K   | j                   j                  |	|
      }| j                  |||||||||d   	       d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)af  
        Asynchronously streams VerificationAttemptInstance and returns headers from first page


        :param datetime date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param datetime date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param str channel_data_to: Destination of a verification. It is phone number in E.164 format.
        :param str country: Filter used to query Verification Attempts sent to the specified destination country.
        :param &quot;VerificationAttemptInstance.Channels&quot; channel: Filter used to query Verification Attempts by communication channel.
        :param str verify_service_sid: Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned.
        :param str verification_sid: Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned.
        :param &quot;VerificationAttemptInstance.ConversionStatus&quot; status: Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: tuple of (generator, status_code, headers) where generator yields instances
        r   r   Nr   )rJ   r   page_with_http_info_asyncr   r   r   r{   r   s                 r'   stream_with_http_info_asyncz3VerificationAttemptList.stream_with_http_info_async  s     H **5)<"<<1 3+1-[) = 

 

 MM..}/A/A6'?S	=44m6K6KLL

s   =BB ABc                 J    t        | j                  |||||||||	|

            S )a  
        Lists VerificationAttemptInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param datetime date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param datetime date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param str channel_data_to: Destination of a verification. It is phone number in E.164 format.
        :param str country: Filter used to query Verification Attempts sent to the specified destination country.
        :param &quot;VerificationAttemptInstance.Channels&quot; channel: Filter used to query Verification Attempts by communication channel.
        :param str verify_service_sid: Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned.
        :param str verification_sid: Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned.
        :param &quot;VerificationAttemptInstance.ConversionStatus&quot; status: Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        
r   r   r   r   r:   r   r6   r   r   r   )listr   )rD   r   r   r   r   r:   r   r6   r   r   r   s              r'   r   zVerificationAttemptList.list  sA    J KK#5$7 /#5!1#  
 	
r&   c                    K   | j                  |||||||||	|

       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists VerificationAttemptInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param datetime date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param datetime date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param str channel_data_to: Destination of a verification. It is phone number in E.164 format.
        :param str country: Filter used to query Verification Attempts sent to the specified destination country.
        :param &quot;VerificationAttemptInstance.Channels&quot; channel: Filter used to query Verification Attempts by communication channel.
        :param str verify_service_sid: Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned.
        :param str verification_sid: Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned.
        :param &quot;VerificationAttemptInstance.ConversionStatus&quot; status: Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   N)r   )rD   r   r   r   r   r:   r   r6   r   r   r   records               r'   
list_asyncz"VerificationAttemptList.list_async+  sm     N '+&7&7#5$7 /#5!1# '8 ' !
 
 !
 
 	
 
s4   A6A>:8
:>A:>Ac                 r    | j                  |||||||||	|

      \  }}}t        |      }t        |||      S )aB  
        Lists VerificationAttemptInstance and returns headers from first page


        :param datetime date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param datetime date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param str channel_data_to: Destination of a verification. It is phone number in E.164 format.
        :param str country: Filter used to query Verification Attempts sent to the specified destination country.
        :param &quot;VerificationAttemptInstance.Channels&quot; channel: Filter used to query Verification Attempts by communication channel.
        :param str verify_service_sid: Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned.
        :param str verification_sid: Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned.
        :param &quot;VerificationAttemptInstance.ConversionStatus&quot; status: Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: ApiResponse with list of instances, status code, and headers
        r   r   )r   r   r   )rD   r   r   r   r   r:   r   r6   r   r   r   r   r   r{   rh   s                  r'   list_with_http_infoz+VerificationAttemptList.list_with_http_info`  sZ    H +/*D*D1 3+1- +E +
'	; Y;PPr&   c                    K   | j                  |||||||||	|

       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }}t        |||      S w)aQ  
        Asynchronously lists VerificationAttemptInstance and returns headers from first page


        :param datetime date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param datetime date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param str channel_data_to: Destination of a verification. It is phone number in E.164 format.
        :param str country: Filter used to query Verification Attempts sent to the specified destination country.
        :param &quot;VerificationAttemptInstance.Channels&quot; channel: Filter used to query Verification Attempts by communication channel.
        :param str verify_service_sid: Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned.
        :param str verification_sid: Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned.
        :param &quot;VerificationAttemptInstance.ConversionStatus&quot; status: Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: ApiResponse with list of instances, status code, and headers
        r   Nr   )r   r   )rD   r   r   r   r   r:   r   r6   r   r   r   r   r   r{   r   rh   s                   r'   list_with_http_info_asyncz1VerificationAttemptList.list_with_http_info_async  s     H 150P0P1 3+1- 1Q 1
 +
'	; -666&+
 7666;PPs<   A<AAA >
A AAA  AA
page_tokenpage_numberc                 F   t        j                  t        j                  |      t        j                  |      |||||||	|
|d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )a  
        Retrieve a single page of VerificationAttemptInstance records from the API.
        Request is executed immediately

        :param date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param channel_data_to: Destination of a verification. It is phone number in E.164 format.
        :param country: Filter used to query Verification Attempts sent to the specified destination country.
        :param channel: Filter used to query Verification Attempts by communication channel.
        :param verify_service_sid: Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned.
        :param verification_sid: Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned.
        :param status: Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of VerificationAttemptInstance
        DateCreatedAfterDateCreatedBeforezChannelData.ToCountryChannelVerifyServiceSidVerificationSidStatus	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedru   rv   rw   ry   rz   paramsr{   )r   r|   r   rA   rJ   r   rs   r   rD   r   r   r   r   r:   r   r6   r   r   r   r   r   r{   responses                  r'   r   zVerificationAttemptList.page  s    D yy$-$>$>?Q$R%.%?%?@S%T"1""$6#3 '#%
  ))^-PQR.==%%diig & 
 't}}h??r&   c                 b  K   t        j                  t        j                  |      t        j                  |      |||||||	|
|d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	a  
        Asynchronously retrieve a single page of VerificationAttemptInstance records from the API.
        Request is executed immediately

        :param date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param channel_data_to: Destination of a verification. It is phone number in E.164 format.
        :param country: Filter used to query Verification Attempts sent to the specified destination country.
        :param channel: Filter used to query Verification Attempts by communication channel.
        :param verify_service_sid: Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned.
        :param verification_sid: Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned.
        :param status: Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of VerificationAttemptInstance
        r   r   r   ru   rv   rw   r   N)r   r|   r   rA   rJ   r   rs   r   r   s                  r'   r   z"VerificationAttemptList.page_async  s     D yy$-$>$>?Q$R%.%?%?@S%T"1""$6#3 '#%
  ))^-PQR.11diig 2 
 
 't}}h??
s   BB/B-B/c                 j   t        j                  t        j                  |      t        j                  |      |||||||	|
|d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  |      }t        |||      S )	as  
        Retrieve a single page with response metadata


        :param date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param channel_data_to: Destination of a verification. It is phone number in E.164 format.
        :param country: Filter used to query Verification Attempts sent to the specified destination country.
        :param channel: Filter used to query Verification Attempts by communication channel.
        :param verify_service_sid: Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned.
        :param verification_sid: Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned.
        :param status: Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with VerificationAttemptPage, status code, and headers
        r   r   r   ru   rv   rw   r   r   )	r   r|   r   rA   rJ   page_with_response_infors   r   r   rD   r   r   r   r   r:   r   r6   r   r   r   r   r   r{   r   r   response_headersr   s                     r'   r   z+VerificationAttemptList.page_with_http_info<  s    D yy$-$>$>?Q$R%.%?%?@S%T"1""$6#3 '#%
  ))^-PQR.26--2W2Wdiig 3X 3
/+/ 't}}h?+GWXXr&   c                   K   t        j                  t        j                  |      t        j                  |      |||||||	|
|d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  |      }t        |||	      S 7 ,w)
a  
        Asynchronously retrieve a single page with response metadata


        :param date_created_after: Datetime filter used to consider only Verification Attempts created after this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param date_created_before: Datetime filter used to consider only Verification Attempts created before this datetime on the summary aggregation. Given as GMT in ISO 8601 formatted datetime string: yyyy-MM-dd'T'HH:mm:ss'Z.
        :param channel_data_to: Destination of a verification. It is phone number in E.164 format.
        :param country: Filter used to query Verification Attempts sent to the specified destination country.
        :param channel: Filter used to query Verification Attempts by communication channel.
        :param verify_service_sid: Filter used to query Verification Attempts by verify service. Only attempts of the provided SID will be returned.
        :param verification_sid: Filter used to return all the Verification Attempts of a single verification. Only attempts of the provided verification SID will be returned.
        :param status: Filter used to query Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for attempts that were not converted, and `CONVERTED`, for attempts that were confirmed.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with VerificationAttemptPage, status code, and headers
        r   r   r   ru   rv   rw   r   Nr   )	r   r|   r   rA   rJ   page_with_response_info_asyncrs   r   r   r   s                     r'   r   z1VerificationAttemptList.page_with_http_info_asyncx  s     D yy$-$>$>?Q$R%.%?%?@S%T"1""$6#3 '#%
  ))^-PQR. --==$))D' >   	0+/
 't}}h?+GWXXs   BCB?-C
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )a  
        Retrieve a specific page of VerificationAttemptInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of VerificationAttemptInstance
        rw   )rJ   domaintwiliorequestr   rD   r   r   s      r'   get_pagez VerificationAttemptList.get_page  s7     ==''..66ujI&t}}h??r&   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of VerificationAttemptInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of VerificationAttemptInstance
        rw   N)rJ   r   r   request_asyncr   r   s      r'   get_page_asyncz&VerificationAttemptList.get_page_async  sD      --44BB5*UU&t}}h?? Vs   4AAAr2   c                 0    t        | j                  |      S z
        Constructs a VerificationAttemptContext

        :param sid: The unique SID identifier of a Verification Attempt
        rH   rI   rJ   rD   r2   s     r'   r@   zVerificationAttemptList.get       *$--SAAr&   c                 0    t        | j                  |      S r   r   r   s     r'   __call__z VerificationAttemptList.__call__  r   r&   c                      y)rY   z*<Twilio.Verify.V2.VerificationAttemptList>r%   rK   s    r'   rk   z VerificationAttemptList.__repr__  r   r&   )'r   r   r   r   r?   r   unsetr   r   rl   rm   r   intr	   r   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rI   r@   r   rk   ro   rp   s   @r'   r   r     s?   	  	  7=ll7=||.4ll&,llIO17/5|| LL##'3;!(F"233; #8V#343; sF{+	3;
 sF{#3; =vEF3; "#v+.3;  V,3; :FB
3; }3; C=3; 
-	.3;n 7=ll7=||.4ll&,llIO17/5|| LL##'3A!(F"233A #8V#343A sF{+	3A
 sF{#3A =vEF3A "#v+.3A  V,3A :FB
3A }3A C=3A 
2	33An 7=ll7=||.4ll&,llIO17/5|| LL##'2M!(F"232M #8V#342M sF{+	2M
 sF{#2M =vEF2M "#v+.2M  V,2M :FB
2M }2M C=2M 
2Ml 7=ll7=||.4ll&,llIO17/5|| LL##'2M!(F"232M #8V#342M sF{+	2M
 sF{#2M =vEF2M "#v+.2M  V,2M :FB
2M }2M C=2M 
2Ml 7=ll7=||.4ll&,llIO17/5|| LL##'2
!(F"232
 #8V#342
 sF{+	2

 sF{#2
 =vEF2
 "#v+.2
  V,2
 :FB
2
 }2
 C=2
 
)	*2
l 7=ll7=||.4ll&,llIO17/5|| LL##'3
!(F"233
 #8V#343
 sF{+	3

 sF{#3
 =vEF3
 "#v+.3
  V,3
 :FB
3
 }3
 C=3
 
)	*3
n 7=ll7=||.4ll&,llIO17/5|| LL##'1Q!(F"231Q #8V#341Q sF{+	1Q
 sF{#1Q =vEF1Q "#v+.1Q  V,1Q :FB
1Q }1Q C=1Q 
1Qj 7=ll7=||.4ll&,llIO17/5|| LL##'1Q!(F"231Q #8V#341Q sF{+	1Q
 sF{#1Q =vEF1Q "#v+.1Q  V,1Q :FB
1Q }1Q C=1Q 
1Qj 7=ll7=||.4ll&,llIO17/5|| LL)/*0,,(.9@!(F"239@ #8V#349@ sF{+	9@
 sF{#9@ =vEF9@ "#v+.9@  V,9@ :FB
9@ #v+&9@ 3;'9@ f%9@ 
!9@z 7=ll7=||.4ll&,llIO17/5|| LL)/*0,,(.9@!(F"239@ #8V#349@ sF{+	9@
 sF{#9@ =vEF9@ "#v+.9@  V,9@ :FB
9@ #v+&9@ 3;'9@ f%9@ 
!9@z 7=ll7=||.4ll&,llIO17/5|| LL)/*0,,(.:Y!(F"23:Y #8V#34:Y sF{+	:Y
 sF{#:Y =vEF:Y "#v+.:Y  V,:Y :FB
:Y #v+&:Y 3;':Y f%:Y 
:Y| 7=ll7=||.4ll&,llIO17/5|| LL)/*0,,(.<Y!(F"23<Y #8V#34<Y sF{+	<Y
 sF{#<Y =vEF<Y "#v+.<Y  V,<Y :FB
<Y #v+&<Y 3;'<Y f%<Y 
<Y|
@3 
@+B 
@
@s 
@7N 
@Bs B9 BBC B$> B<# <r&   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rI   r   r   r%   r&   r'   <module>r      sm     L L L 6 6 0 8 : 2 ' !sS"2 sSlrR rRj<d <&L<l L<r&   