
    d{iO                         d Z ddlmZmZmZ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 ddlm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.
    )AnyDictListOptionalUnionIteratorAsyncIterator)values)ApiResponse)InstanceResource)ListResource)Version)Pagec                   B     e Zd ZdZdedeeef   f fdZdefdZ	 xZ
S )TemplateInstanceai  
    :ivar sid: A 34 character string that uniquely identifies a Verification Template.
    :ivar account_sid: The unique SID identifier of the Account.
    :ivar friendly_name: A descriptive string that you create to describe a Template. It can be up to 32 characters long.
    :ivar channels: A list of channels that support the Template. Can include: sms, voice.
    :ivar translations: An object that contains the different translations of the template. Every translation is identified by the language short name and contains its respective information as the approval status, text and created/modified date.
    versionpayloadc                     t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        y )Nsidaccount_sidfriendly_namechannelstranslations)super__init__getr   r   r   r   r   )selfr   r   	__class__s      \/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/verify/v2/template.pyr   zTemplateInstance.__init__"   sc    !")++e"4*1++m*D,3KK,H-4[[-D9@^9T    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z#<Twilio.Verify.V2.TemplateInstance> r   s    r   __repr__zTemplateInstance.__repr__+   s     5r    )__name__
__module____qualname____doc__r   r   strr   r   r&   __classcell__r   s   @r   r   r      s2    U U$sCx. U5# 5r    r   c                   2    e Zd Zdeeef   defdZdefdZy)TemplatePager   r!   c                 .    t        | j                  |      S )zn
        Build an instance of TemplateInstance

        :param payload: Payload response from the API
        )r   _version)r   r   s     r   get_instancezTemplatePage.get_instance7   s      w77r    c                      y)r#   z<Twilio.Verify.V2.TemplatePage>r$   r%   s    r   r&   zTemplatePage.__repr__?        1r    N)	r'   r(   r)   r   r+   r   r   r2   r&   r$   r    r   r/   r/   5   s*    8DcN 87G 81# 1r    r/   c                   0    e Zd Zdef fdZej                  ddfdeee	f   de
e   de
e   dee   fdZej                  ddfdeee	f   de
e   de
e   dee   fd	Zej                  ddfdeee	f   de
e   de
e   defd
Zej                  ddfdeee	f   de
e   de
e   defdZej                  ddfdeee	f   de
e   de
e   dee   fdZej                  ddfdeee	f   de
e   de
e   dee   fdZej                  ddfdeee	f   de
e   de
e   defdZej                  ddfdeee	f   de
e   de
e   defdZ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f
dZ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f
dZ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f
dZ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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 )TemplateListr   c                 2    t         |   |       d| _        y)zj
        Initialize the TemplateList

        :param version: Version that contains the resource

        z
/TemplatesN)r   r   _uri)r   r   r   s     r   r   zTemplateList.__init__J   s     	! 	r    Nr   limit	page_sizer!   c                     | j                   j                  ||      }| j                  ||d         }| j                   j                  ||d         S )a  
        Streams TemplateInstance 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 str friendly_name: String filter used to query templates with a given friendly name.
        :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:   r9   )r1   read_limitspagestreamr   r   r9   r:   limitsr>   s         r   r?   zTemplateList.streamU   sL    , **5)<yy}{@SyT}}##D&/::r    c                    K   | j                   j                  ||      }| j                  ||d          d{   }| j                   j                  ||d         S 7 #w)a  
        Asynchronously streams TemplateInstance 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 str friendly_name: String filter used to query templates with a given friendly name.
        :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<   Nr9   )r1   r=   
page_asyncstream_asyncr@   s         r   rD   zTemplateList.stream_asyncp   sb     , **5)<__'6+3F % 
 
 }}))$w@@	
s   6AA$Ac                     | j                   j                  ||      }| j                  ||d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams TemplateInstance and returns headers from first page


        :param str friendly_name: String filter used to query templates with a given friendly name.
        :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<   r9   )r1   r=   page_with_http_infor?   datastatus_codeheadersr   r   r9   r:   rA   page_response	generators          r   stream_with_http_infoz"TemplateList.stream_with_http_info   st    ( **5)<00'6+3F 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)a%  
        Asynchronously streams TemplateInstance and returns headers from first page


        :param str friendly_name: String filter used to query templates with a given friendly name.
        :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<   Nr9   )r1   r=   page_with_http_info_asyncrD   rG   rH   rI   rJ   s          r   stream_with_http_info_asyncz(TemplateList.stream_with_http_info_async   s     ( **5)<"<<'6+3F = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   6BA?ABc                 <    t        | j                  |||            S )a_  
        Lists TemplateInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str friendly_name: String filter used to query templates with a given friendly name.
        :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   r9   r:   )listr?   )r   r   r9   r:   s       r   rS   zTemplateList.list   s+    * KK+#  
 	
r    c                 |   K   | j                  |||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)an  
        Asynchronously lists TemplateInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str friendly_name: String filter used to query templates with a given friendly name.
        :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
        rR   N)rD   )r   r   r9   r:   records        r   
list_asynczTemplateList.list_async   sW     . '+&7&7+# '8 ' !
 
 !
 
 	
 
s0   </<731
37<37<c                 d    | j                  |||      \  }}}t        |      }t        |||      S )a  
        Lists TemplateInstance and returns headers from first page


        :param str friendly_name: String filter used to query templates with a given friendly name.
        :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
        rR   rG   rH   rI   )rM   rS   r   )r   r   r9   r:   rL   rH   rI   itemss           r   list_with_http_infoz TemplateList.list_with_http_info   sD    ( +/*D*D' +E +
'	;
 Y;PPr    c                    K   | j                  |||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }}t        |||      S w)a  
        Asynchronously lists TemplateInstance and returns headers from first page


        :param str friendly_name: String filter used to query templates with a given friendly name.
        :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
        rR   NrX   )rP   r   )	r   r   r9   r:   rL   rH   rI   rU   rY   s	            r   list_with_http_info_asyncz&TemplateList.list_with_http_info_async  si     ( 150P0P' 1Q 1
 +
'	;
 -666&+

 7666;PPs4   A5A;97
9;A9;A
page_tokenpage_numberc                     t        j                  ||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )a  
        Retrieve a single page of TemplateInstance records from the API.
        Request is executed immediately

        :param friendly_name: String filter used to query templates with a given friendly name.
        :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 TemplateInstance
        FriendlyName	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsrI   )r
   ofr1   r>   r8   r/   r   r   r]   r^   r:   rG   rI   responses           r   r>   zTemplateList.page8  s|    $ yy -'#%	
 ))^-PQR.==%%diig & 
 DMM844r    c                   K   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 TemplateInstance records from the API.
        Request is executed immediately

        :param friendly_name: String filter used to query templates with a given friendly name.
        :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 TemplateInstance
        r`   rd   re   rf   rg   rh   ri   N)r
   rm   r1   rC   r8   r/   rn   s           r   rC   zTemplateList.page_async\  s     $ yy -'#%	
 ))^-PQR.11diig 2 
 
 DMM844
s   A#B%B &Bc                    t        j                  ||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}	t        | j                  |      }
t        |
||	      S )	a  
        Retrieve a single page with response metadata


        :param friendly_name: String filter used to query templates with a given friendly name.
        :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 TemplatePage, status code, and headers
        r`   rd   re   rf   rg   rh   ri   rX   )r
   rm   r1   page_with_response_infor8   r/   r   r   r   r]   r^   r:   rG   rI   ro   rH   response_headersr>   s              r   rF   z TemplateList.page_with_http_info  s    $ yy -'#%	
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ DMM84+GWXXr    c                 ,  K   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 friendly_name: String filter used to query templates with a given friendly name.
        :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 TemplatePage, status code, and headers
        r`   rd   re   rf   rg   rh   ri   NrX   )r
   rm   r1   page_with_response_info_asyncr8   r/   r   rs   s              r   rO   z&TemplateList.page_with_http_info_async  s     $ yy -'#%	
 ))^-PQR. --==$))D' >   	0+/
 DMM84+GWXXs   A#B%B&-B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )z
        Retrieve a specific page of TemplateInstance records from the API.
        Request is executed immediately

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

        :returns: Page of TemplateInstance
        rh   )r1   domaintwiliorequestr/   r   rw   ro   s      r   get_pagezTemplateList.get_page  s7     ==''..66ujIDMM844r    c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of TemplateInstance records from the API.
        Request is executed immediately

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

        :returns: Page of TemplateInstance
        rh   N)r1   ry   rz   request_asyncr/   r|   s      r   get_page_asynczTemplateList.get_page_async  sD      --44BB5*UUDMM844 Vs   4AAAc                      y)r#   z<Twilio.Verify.V2.TemplateList>r$   r%   s    r   r&   zTemplateList.__repr__  r4   r    )#r'   r(   r)   r   r   r
   unsetr   r+   objectr   intr   r   r?   r	   rD   tuplerM   rP   r   rS   rV   r   rZ   r\   r/   r>   rC   rF   rO   r}   r   r&   r,   r-   s   @r   r6   r6   H   s   	! 	! -3LL##'	;S&[); }; C=	;
 
"	#;: -3LL##'	AS&[)A }A C=	A
 
'	(A> -3LL##'	MS&[)M }M C=	M
 
M< -3LL##'	MS&[)M }M C=	M
 
M< -3LL##'	
S&[)
 }
 C=	

 
	
> -3LL##'	
S&[)
 }
 C=	

 
	
@ -3LL##'	QS&[)Q }Q C=	Q
 
Q< -3LL##'	QS&[)Q }Q C=	Q
 
Q< -3LL)/*0,,(."5S&[)"5 #v+&"5 3;'	"5
 f%"5 
"5L -3LL)/*0,,(."5S&[)"5 #v+&"5 3;'	"5
 f%"5 
"5L -3LL)/*0,,(.#YS&[)#Y #v+&#Y 3;'	#Y
 f%#Y 
#YN -3LL)/*0,,(.%YS&[)%Y #v+&%Y 3;'	%Y
 f%%Y 
%YN
53 
5< 
5
5s 
5| 
51# 1r    r6   N)r*   typingr   r   r   r   r   r   r	   twilio.baser
   twilio.base.api_responser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r/   r6   r$   r    r   <module>r      sO    M L L  0 : 2 ' !5' 5814 1&b1< b1r    