Ë
    [üàgÔ/  ã                   óº   — 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 )ÚContentAndApprovalsInstancea{  
    :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 approval_requests: The submitted information and approval request status of the Content resource.
    ÚversionÚpayloadc                 óü  •— t         ‰| �  |«       t        j                  |j	                  d«      «      | _        t        j                  |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Úapproval_requests)ÚsuperÚ__init__r   Úiso8601_datetimeÚgetr   r   r   r   r   r   r   r   r   )Úselfr   r   Ú	__class__s      €új/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/content/v1/content_and_approvals.pyr    z$ContentAndApprovalsInstance.__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ˆŒ
Ø>E¿k¹kØó?
ˆÕó    Úreturnc                  ó   — y)úf
        Provide a friendly representation

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

        :param payload: Payload response from the API
        )r   Ú_version)r#   r   s     r%   Úget_instancez$ContentAndApprovalsPage.get_instanceE   s   € ô +¨4¯=©=¸'ÓBÐBr&   c                  ó   — y)r)   z+<Twilio.Content.V1.ContentAndApprovalsPage>r*   r+   s    r%   r,   z ContentAndApprovalsPage.__repr__M   ó   € ð =r&   N)	r-   r.   r/   r   r1   r   r   r8   r,   r*   r&   r%   r5   r5   C   s-   „ ðC D¨¨c¨¡Nð CÐ7Ró Cð=˜#ô =r&   r5   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 )ÚContentAndApprovalsListr   c                 ó2   •— t         ‰| �  |«       d| _        y)zu
        Initialize the ContentAndApprovalsList

        :param version: Version that contains the resource

        z/ContentAndApprovalsN)r   r    Ú_uri)r#   r   r$   s     €r%   r    z ContentAndApprovalsList.__init__X   s   ø€ ô 	‰Ñ˜Ô!à*ˆ�	r&   ÚlimitÚ	page_sizer'   c                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )ai  
        Streams ContentAndApprovalsInstance 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
        r@   ©r@   r?   )r7   Úread_limitsÚpageÚstream©r#   r?   r@   ÚlimitsrD   s        r%   rE   zContentAndApprovalsList.streamc   sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r&   c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)ax  
        Asynchronously streams ContentAndApprovalsInstance 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
        r@   rB   Nr?   )r7   rC   Ú
page_asyncÚstream_asyncrF   s        r%   rJ   z$ContentAndApprovalsList.stream_async|   sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )a  
        Lists ContentAndApprovalsInstance 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
        ©r?   r@   )ÚlistrE   )r#   r?   r@   s      r%   rM   zContentAndApprovalsList.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 ContentAndApprovalsInstance 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
        rL   N)rJ   )r#   r?   r@   Úrecords       r%   Ú
list_asyncz"ContentAndApprovalsList.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 ContentAndApprovalsInstance 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 ContentAndApprovalsInstance
        ©Ú	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheaders)r   Úofr7   rD   r>   r5   ©r#   rQ   rR   r@   Údatar`   Úresponses          r%   rD   zContentAndApprovalsList.pageÊ   sy   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ' t§}¡}°hÓ?Ð?r&   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 ContentAndApprovalsInstance 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 ContentAndApprovalsInstance
        rT   rW   rX   rY   rZ   r[   r\   N)r   ra   r7   rI   r>   r5   rb   s          r%   rI   z"ContentAndApprovalsList.page_asyncë   s‡   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ' t§}¡}°hÓ?Ð?ð
ús   ‚A"BÁ$A?Á%BÚ
target_urlc                 óŽ   — | j                   j                  j                  j                  d|«      }t	        | j                   |«      S )a  
        Retrieve a specific page of ContentAndApprovalsInstance records from the API.
        Request is executed immediately

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

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

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

        :returns: Page of ContentAndApprovalsInstance
        r[   N)r7   rh   ri   Úrequest_asyncr5   rk   s      r%   Úget_page_asyncz&ContentAndApprovalsList.get_page_async  sD   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ& t§}¡}°hÓ?Ð?ð Vús   ‚4A¶A·Ac                  ó   — y)r)   z+<Twilio.Content.V1.ContentAndApprovalsList>r*   r+   s    r%   r,   z ContentAndApprovalsList.__repr__$  r:   r&   )NN)r-   r.   r/   r   r    r   Úintr	   r   rE   r
   rJ   r   rM   rP   r   Úunsetr   r1   Úobjectr5   rD   rI   rl   ro   r,   r2   r3   s   @r%   r<   r<   V   sï  ø„ ð	+ õ 	+ð  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
Ð-Ñ	.ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
Ð2Ñ	3ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð)Ñ	*ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð)Ñ	*ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	@à˜#˜v˜+Ñ&ð@ð ˜3 ˜;Ñ'ð@ð ˜˜f˜Ñ%ð	@ð
 
!ó@ðF *0¯©Ø*0¯,©,Ø(.¯©ñ	@à˜#˜v˜+Ñ&ð@ð ˜3 ˜;Ñ'ð@ð ˜˜f˜Ñ%ð	@ð
 
!ó@ðB
@ 3ð 
@Ð+Bó 
@ð
@¨sð 
@Ð7Nó 
@ð=˜#÷ =r&   r<   N)r0   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   r5   r<   r*   r&   r%   ú<module>rz      sQ   ðñõ ß L× LÑ Lß +å :Ý 2Ý 'Ý !ô'AÐ"2ô 'AôT=˜dô =ô&T=˜lõ T=r&   