Ë
    [üàg›0  ã                   óº   — 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 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 - Content
    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Ú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 )ÚLegacyContentInstancea¸  
    :ivar date_created: The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    :ivar date_updated: The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    :ivar sid: The unique string that that we created to identify the Content resource.
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource.
    :ivar friendly_name: A string name used to describe the Content resource. Not visible to the end recipient.
    :ivar language: Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in.
    :ivar variables: Defines the default placeholder values for variables included in the Content resource. e.g. {"1": "Customer_Name"}.
    :ivar types: The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
    :ivar legacy_template_name: The string name of the legacy content template associated with this Content resource, unique across all template names for its account.  Only lowercase letters, numbers and underscores are allowed
    :ivar legacy_body: The string body field of the legacy content template associated with this Content resource
    :ivar url: The URL of the resource, relative to `https://content.twilio.com`.
    ÚversionÚpayloadc                 óT  •— t         ‰| �  |«       t        j                  |j	                  d«      «      | _        t        j                  |j	                  d«      «      | _        |j	                  d«      | _        |j	                  d«      | _        |j	                  d«      | _	        |j	                  d«      | _
        |j	                  d«      | _        |j	                  d«      | _        |j	                  d	«      | _        |j	                  d
«      | _        |j	                  d«      | _        y )NÚdate_createdÚdate_updatedÚsidÚaccount_sidÚfriendly_nameÚlanguageÚ	variablesÚtypesÚlegacy_template_nameÚlegacy_bodyÚurl)ÚsuperÚ__init__r   Úiso8601_datetimeÚgetr   r   r   r   r   r   r   r   r   r   r    )Úselfr   r   Ú	__class__s      €úc/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/content/v1/legacy_content.pyr"   zLegacyContentInstance.__init__(   sç   ø€ Ü‰Ñ˜Ô!ä0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð #*§+¡+¨eÓ"4ˆŒØ*1¯+©+°mÓ*DˆÔØ,3¯K©K¸Ó,HˆÔØ'.§{¡{°:Ó'>ˆŒØ6=·k±kÀ+Ó6NˆŒØ29·+±+¸gÓ2FˆŒ
Ø3:·;±;Ð?UÓ3VˆÔ!Ø*1¯+©+°mÓ*DˆÔØ")§+¡+¨eÓ"4ˆ�ó    Úreturnc                  ó   — y)úf
        Provide a friendly representation

        :returns: Machine friendly representation
        z)<Twilio.Content.V1.LegacyContentInstance>© ©r%   s    r'   Ú__repr__zLegacyContentInstance.__repr__;   s   € ð ;r(   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r"   r.   Ú__classcell__©r&   s   @r'   r   r      s/   ø„ ñð5 ð 5°$°s¸C°x±.õ 5ð&;˜#÷ ;r(   r   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚLegacyContentPager   r)   c                 ó.   — t        | j                  |«      S )zs
        Build an instance of LegacyContentInstance

        :param payload: Payload response from the API
        )r   Ú_version)r%   r   s     r'   Úget_instancezLegacyContentPage.get_instanceG   s   € ô % T§]¡]°GÓ<Ð<r(   c                  ó   — y)r+   z%<Twilio.Content.V1.LegacyContentPage>r,   r-   s    r'   r.   zLegacyContentPage.__repr__O   ó   € ð 7r(   N)	r/   r0   r1   r   r3   r   r   r:   r.   r,   r(   r'   r7   r7   E   s*   „ ð= D¨¨c¨¡Nð =Ð7Ló =ð7˜#ô 7r(   r7   c            	       óô  ‡ — e Zd Zdefˆ fd„Z	 	 ddee   dee   dee   fd„Z		 	 ddee   dee   de
e   fd„Z	 	 ddee   dee   dee   fd„Z	 	 ddee   dee   dee   fd	„Zej                   ej                   ej                   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                   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 )ÚLegacyContentListr   c                 ó2   •— t         ‰| �  |«       d| _        y)zo
        Initialize the LegacyContentList

        :param version: Version that contains the resource

        z/LegacyContentN)r!   r"   Ú_uri)r%   r   r&   s     €r'   r"   zLegacyContentList.__init__Z   s   ø€ ô 	‰Ñ˜Ô!à$ˆ�	r(   ÚlimitÚ	page_sizer)   c                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )ac  
        Streams LegacyContentInstance 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 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
        rB   ©rB   rA   )r9   Úread_limitsÚpageÚstream©r%   rA   rB   ÚlimitsrF   s        r'   rG   zLegacyContentList.streame   sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r(   c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)ar  
        Asynchronously streams LegacyContentInstance 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 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
        rB   rD   NrA   )r9   rE   Ú
page_asyncÚstream_asyncrH   s        r'   rL   zLegacyContentList.stream_async~   sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )a   
        Lists LegacyContentInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :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
        ©rA   rB   )ÚlistrG   )r%   rA   rB   s      r'   rO   zLegacyContentList.list—   s(   € ô& Ø�K‰KØØ#ð ó ó
ð 	
r(   c              ƒ   óz   K  — | j                  ||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)a  
        Asynchronously lists LegacyContentInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :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
        rN   N)rL   )r%   rA   rB   Úrecords       r'   Ú
list_asynczLegacyContentList.list_async±   sT   è ø€ ð* '+×&7Ñ&7ØØ#ð '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚;™.š; 6¢2¦0
§2ª6®;°2²6³;Ú
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 LegacyContentInstance records from the API.
        Request is executed immediately

        :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 LegacyContentInstance
        ©Ú	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheaders)r   Úofr9   rF   r@   r7   ©r%   rS   rT   rB   Údatarb   Úresponses          r'   rF   zLegacyContentList.pageÌ   sy   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ! §¡°Ó9Ð9r(   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 LegacyContentInstance records from the API.
        Request is executed immediately

        :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 LegacyContentInstance
        rV   rY   rZ   r[   r\   r]   r^   N)r   rc   r9   rK   r@   r7   rd   s          r'   rK   zLegacyContentList.page_asyncí   s‡   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ! §¡°Ó9Ð9ð
ús   ‚A"BÁ$A?Á%BÚ
target_urlc                 óŽ   — | j                   j                  j                  j                  d|«      }t	        | j                   |«      S )zÿ
        Retrieve a specific page of LegacyContentInstance records from the API.
        Request is executed immediately

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

        :returns: Page of LegacyContentInstance
        r]   )r9   ÚdomainÚtwilioÚrequestr7   ©r%   rh   rf   s      r'   Úget_pagezLegacyContentList.get_page  s7   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ  §¡°Ó9Ð9r(   c              ƒ   óª   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   |«      S 7 Œ­w)a  
        Asynchronously retrieve a specific page of LegacyContentInstance records from the API.
        Request is executed immediately

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

        :returns: Page of LegacyContentInstance
        r]   N)r9   rj   rk   Úrequest_asyncr7   rm   s      r'   Úget_page_asyncz LegacyContentList.get_page_async  sD   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ  §¡°Ó9Ð9ð Vús   ‚4A¶A·Ac                  ó   — y)r+   z%<Twilio.Content.V1.LegacyContentList>r,   r-   s    r'   r.   zLegacyContentList.__repr__&  r<   r(   )NN)r/   r0   r1   r   r"   r   Úintr	   r   rG   r
   rL   r   rO   rR   r   Úunsetr   r3   Úobjectr7   rF   rK   rn   rq   r.   r4   r5   s   @r'   r>   r>   X   sß  ø„ ð	% õ 	%ð  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
Ð'Ñ	(ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
Ð,Ñ	-ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð#Ñ	$ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð#Ñ	$ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	:à˜#˜v˜+Ñ&ð:ð ˜3 ˜;Ñ'ð:ð ˜˜f˜Ñ%ð	:ð
 
ó:ðF *0¯©Ø*0¯,©,Ø(.¯©ñ	:à˜#˜v˜+Ñ&ð:ð ˜3 ˜;Ñ'ð:ð ˜˜f˜Ñ%ð	:ð
 
ó:ðB
: 3ð 
:Ð+<ó 
:ð
:¨sð 
:Ð7Hó 
:ð7˜#÷ 7r(   r>   N)r2   r   Útypingr   r   r   r   r   r	   r
   Útwilio.baser   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r7   r>   r,   r(   r'   ú<module>r|      sO   ðñõ ß L× LÑ Lß +å :Ý 2Ý 'Ý !ô);Ð,ô );ôX7˜ô 7ô&T7˜õ T7r(   