Ë
    [üàg/  ã                   óª   — 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  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)Ú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      €ú\/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/verify/v2/template.pyr   zTemplateInstance.__init__!   sc   ø€ Ü‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ*1¯+©+°mÓ*DˆÔØ,3¯K©K¸Ó,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°$°s¸C°x±.õ 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_instance6   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   r1   r%   r#   r   r   r.   r.   4   s*   „ ð8 D¨¨c¨¡Nð 8Ð7Gó 8ð1˜#ô 1r   r.   c                   óÌ  ‡ — 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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                  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__I   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
        r9   ©r   r9   r8   )r0   Úread_limitsÚpageÚstream©r   r   r8   r9   Úlimitsr=   s         r   r>   zTemplateList.streamT   sL   € ð, —‘×*Ñ*¨5°)Ó<ˆØ�y‰y }ÀÀ{Ñ@SˆyÓ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
        r9   r;   Nr8   )r0   r<   Ú
page_asyncÚstream_asyncr?   s         r   rC   zTemplateList.stream_asynco   sb   è ø€ ð, —‘×*Ñ*¨5°)Ó<ˆØ—_‘_Ø'°6¸+Ñ3Fð %ó 
÷ 
ˆð �}‰}×)Ñ)¨$°°w±Ó@Ð@ð	
ús   ‚6A¸A¹$A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   r8   r9   )Úlistr>   )r   r   r8   r9   s       r   rF   zTemplateList.listŒ   s+   € ô* Ø�K‰KØ+ØØ#ð ó ó
ð 	
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
        rE   N)rC   )r   r   r8   r9   Úrecords        r   Ú
list_asynczTemplateList.list_async©   sW   è ø€ ð. '+×&7Ñ&7Ø+ØØ#ð '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚<š/›<¡7£3§1
¨3«7¯<±3³7´<Ú
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ÚparamsÚheaders)r
   Úofr0   r=   r7   r.   ©r   r   rJ   rK   r9   ÚdatarZ   Úresponses           r   r=   zTemplateList.pageÇ   s|   € ô$ �y‰yà -Ø'Ø#Ø%ñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜DŸM™M¨8Ó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
        rM   rQ   rR   rS   rT   rU   rV   N)r
   r[   r0   rB   r7   r.   r\   s           r   rB   zTemplateList.page_asyncë   sŠ   è ø€ ô$ �y‰yà -Ø'Ø#Ø%ñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜DŸM™M¨8Ó4Ð4ð
ú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
        rU   )r0   ÚdomainÚtwilioÚrequestr.   ©r   r`   r^   s      r   Úget_pagezTemplateList.get_page  s7   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜DŸM™M¨8Ó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
        rU   N)r0   rb   rc   Úrequest_asyncr.   re   s      r   Úget_page_asynczTemplateList.get_page_async  sD   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜DŸM™M¨8Ó4Ð4ð Vús   ‚4A¶A·Ac                  ó   — y)r"   z<Twilio.Verify.V2.TemplateList>r#   r$   s    r   r%   zTemplateList.__repr__'  r3   r   )r&   r'   r(   r   r   r
   Úunsetr   r*   Úobjectr   Úintr   r   r>   r	   rC   r   rF   rI   r.   r=   rB   rf   ri   r%   r+   r,   s   @r   r5   r5   G   s{  ø„ ð	! õ 	!ð -3¯L©LØ#Ø#'ñ	;à˜S &˜[Ñ)ð;ð ˜‰}ð;ð ˜C‘=ð	;ð
 
Ð"Ñ	#ó;ð: -3¯L©LØ#Ø#'ñ	Aà˜S &˜[Ñ)ðAð ˜‰}ðAð ˜C‘=ð	Að
 
Ð'Ñ	(óAð> -3¯L©LØ#Ø#'ñ	
à˜S &˜[Ñ)ð
ð ˜‰}ð
ð ˜C‘=ð	
ð
 
ÐÑ	ó
ð> -3¯L©LØ#Ø#'ñ	
à˜S &˜[Ñ)ð
ð ˜‰}ð
ð ˜C‘=ð	
ð
 
ÐÑ	ó
ð@ -3¯L©LØ)/¯©Ø*0¯,©,Ø(.¯©ñ"5à˜S &˜[Ñ)ð"5ð ˜#˜v˜+Ñ&ð"5ð ˜3 ˜;Ñ'ð	"5ð
 ˜˜f˜Ñ%ð"5ð 
ó"5ðL -3¯L©LØ)/¯©Ø*0¯,©,Ø(.¯©ñ"5à˜S &˜[Ñ)ð"5ð ˜#˜v˜+Ñ&ð"5ð ˜3 ˜;Ñ'ð	"5ð
 ˜˜f˜Ñ%ð"5ð 
ó"5ðH
5 3ð 
5¨<ó 
5ð
5¨sð 
5°|ó 
5ð1˜#÷ 1r   r5   N)r)   Útypingr   r   r   r   r   r   r	   Útwilio.baser
   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r.   r5   r#   r   r   ú<module>rt      sL   ðñ÷ M× LÑ LÝ å :Ý 2Ý 'Ý !ô5Ð'ô 5ô81�4ô 1ô&f1�<õ f1r   