Ë
    [üà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 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 - Events
    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)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec            
       óv   ‡ — e Zd ZdZ	 ddedeeef   dedee	   fˆ fd„Z
edd„«       Zdd	„Zdd
„Zdefd„Zˆ xZS )ÚSchemaVersionInstanceaA  
    :ivar id: The unique identifier of the schema. Each schema can have multiple versions, that share the same id.
    :ivar schema_version: The version of this schema.
    :ivar date_created: The date the schema version was created, given in ISO 8601 format.
    :ivar url: The URL of this resource.
    :ivar raw:
    ÚversionÚpayloadÚidÚschema_versionc                 óŠ  •— t         ‰| �  |«       |j                  d«      | _        t	        j
                  |j                  d«      «      | _        t	        j                  |j                  d«      «      | _        |j                  d«      | _	        |j                  d«      | _
        ||xs | j                  dœ| _        d | _        y )Nr   r   Údate_createdÚurlÚraw©r   r   )ÚsuperÚ__init__Úgetr   r   Úintegerr   Úiso8601_datetimer   r   r   Ú	_solutionÚ_context)Úselfr   r   r   r   Ú	__class__s        €úi/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/events/v1/schema/schema_version.pyr   zSchemaVersionInstance.__init__"   sª   ø€ ô 	‰Ñ˜Ô!à!(§¡¨TÓ!2ˆŒÜ-8×-@Ñ-@Ø�K‰KÐ(Ó)ó.
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð #*§+¡+¨eÓ"4ˆŒØ")§+¡+¨eÓ"4ˆŒð Ø,ÒC°×0CÑ0Cñ
ˆŒð 9=ˆ�ó    Úreturnc                 ó    — | j                   €7t        | j                  | j                  d   | j                  d   ¬«      | _         | j                   S )zõ
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: SchemaVersionContext for this SchemaVersionInstance
        r   r   r   )r#   ÚSchemaVersionContextÚ_versionr"   ©r$   s    r&   Ú_proxyzSchemaVersionInstance._proxy;   sF   € ð �=‰=Ð Ü0Ø—‘Ø—>‘> $Ñ'Ø#Ÿ~™~Ð.>Ñ?ôˆDŒMð
 �}‰}Ðr'   c                 ó6   — | j                   j                  «       S )úg
        Fetch the SchemaVersionInstance


        :returns: The fetched SchemaVersionInstance
        )r-   Úfetchr,   s    r&   r0   zSchemaVersionInstance.fetchK   s   € ð �{‰{× Ñ Ó"Ð"r'   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)ú�
        Asynchronous coroutine to fetch the SchemaVersionInstance


        :returns: The fetched SchemaVersionInstance
        N)r-   Úfetch_asyncr,   s    r&   r3   z!SchemaVersionInstance.fetch_asyncT   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.ús   ‚' %¡'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>z1SchemaVersionInstance.__repr__.<locals>.<genexpr>c   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z+<Twilio.Events.V1.SchemaVersionInstance {}>©Újoinr"   Úitemsr:   ©r$   Úcontexts     r&   Ú__repr__zSchemaVersionInstance.__repr__]   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ<×CÑCÀGÓLÐLr'   )N)r(   r*   )r(   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   Úintr   Úpropertyr-   r0   r3   rG   Ú__classcell__©r%   s   @r&   r   r      sp   ø„ ñð )-ñ=àð=ð �c˜3�h‘ð=ð ð	=ð
 ! ™õ=ð2 òó ðó#ó/ðM˜#÷ Mr'   r   c                   óP   ‡ — e Zd Zdededefˆ fd„Zdefd„Zdefd„Z	defd„Z
ˆ xZS )	r*   r   r   r   c                 óz   •— t         ‰| �  |«       ||dœ| _         dj                  di | j                  ¤Ž| _        y)a"  
        Initialize the SchemaVersionContext

        :param version: Version that contains the resource
        :param id: The unique identifier of the schema. Each schema can have multiple versions, that share the same id.
        :param schema_version: The version of the schema
        r   z'/Schemas/{id}/Versions/{schema_version}N© ©r   r   r"   r:   Ú_uri)r$   r   r   r   r%   s       €r&   r   zSchemaVersionContext.__init__i   sB   ø€ ô 	‰Ñ˜Ô!ð Ø,ñ
ˆŒð EÐ=×DÑDÑVÀtÇ~Á~ÑVˆ�	r'   r(   c                 óì   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   | j                  d   ¬«      S )r/   úapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚheadersr   r   r   )r   Úofr+   r0   rU   r   r"   ©r$   r]   r   s      r&   r0   zSchemaVersionContext.fetchz   sj   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆä$Ø�M‰MØØ�~‰~˜dÑ#ØŸ>™>Ð*:Ñ;ô	
ð 	
r'   c              ƒ   ó  K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   | j                  d   ¬«      S 7 Œ7­w)	r2   rW   rX   rY   rZ   Nr   r   r   )r   r^   r+   r3   rU   r   r"   r_   s      r&   r3   z SchemaVersionContext.fetch_async�   s   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô %Ø�M‰MØØ�~‰~˜dÑ#ØŸ>™>Ð*:Ñ;ô	
ð 	
ð	
ús   ‚ABÁB Á	8Bc                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )r5   r6   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wr8   r9   r;   s      r&   r?   z0SchemaVersionContext.__repr__.<locals>.<genexpr>¬   r@   rA   z*<Twilio.Events.V1.SchemaVersionContext {}>rB   rE   s     r&   rG   zSchemaVersionContext.__repr__¦   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ;×BÑBÀ7ÓKÐKr'   )rH   rI   rJ   r   rL   rM   r   r   r0   r3   rG   rO   rP   s   @r&   r*   r*   g   sI   ø„ ðW ð W¨Sð WÀ#õ Wð"
Ð,ó 
ð*
Ð#8ó 
ð.L˜#÷ Lr'   r*   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚSchemaVersionPager   r(   c                 óL   — t        | j                  || j                  d   ¬«      S )zs
        Build an instance of SchemaVersionInstance

        :param payload: Payload response from the API
        r   )r   )r   r+   r"   )r$   r   s     r&   Úget_instancezSchemaVersionPage.get_instance²   s    € ô % T§]¡]°GÀÇÁÈtÑ@TÔUÐUr'   c                  ó   — y)r5   z$<Twilio.Events.V1.SchemaVersionPage>rS   r,   s    r&   rG   zSchemaVersionPage.__repr__º   ó   € ð 6r'   N)	rH   rI   rJ   r   rL   r   r   rf   rG   rS   r'   r&   rd   rd   °   s-   „ ðV D¨¨c¨¡Nð VÐ7Ló Vð6˜#ô 6r'   rd   c            	       ó  ‡ — e Zd Zde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defd„Zdedefd„Zdefd„Zˆ xZS )ÚSchemaVersionListr   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)zç
        Initialize the SchemaVersionList

        :param version: Version that contains the resource
        :param id: The unique identifier of the schema. Each schema can have multiple versions, that share the same id.

        r   z/Schemas/{id}/VersionsNrS   rT   )r$   r   r   r%   s      €r&   r   zSchemaVersionList.__init__Å   s@   ø€ ô 	‰Ñ˜Ô!ð �"ð
ˆŒð 4Ð,×3Ñ3ÑE°d·n±nÑEˆ�	r'   ÚlimitÚ	page_sizer(   c                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )ac  
        Streams SchemaVersionInstance 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
        rm   ©rm   rl   )r+   Úread_limitsÚpageÚstream©r$   rl   rm   Úlimitsrq   s        r&   rr   zSchemaVersionList.streamÕ   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 SchemaVersionInstance 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
        rm   ro   Nrl   )r+   rp   Ú
page_asyncÚstream_asyncrs   s        r&   rw   zSchemaVersionList.stream_asyncî   sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )a   
        Lists SchemaVersionInstance 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   rm   )Úlistrr   )r$   rl   rm   s      r&   rz   zSchemaVersionList.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 SchemaVersionInstance 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
        ry   N)rw   )r$   rl   rm   Úrecords       r&   Ú
list_asynczSchemaVersionList.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                  || j                  «      S )a  
        Retrieve a single page of SchemaVersionInstance 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 SchemaVersionInstance
        ©Ú	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedrW   rX   rY   ©r[   r\   Úparamsr]   )r   r^   r+   rq   rU   rd   r"   ©r$   r~   r   rm   Údatar]   Úresponses          r&   rq   zSchemaVersionList.page<  s   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ! §¡°¸$¿.¹.ÓIÐIr'   c              ƒ   ó  K  — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  «      S 7 Œ%­w)	aŽ  
        Asynchronously retrieve a single page of SchemaVersionInstance 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 SchemaVersionInstance
        r�   r„   r…   rW   rX   rY   r†   N)r   r^   r+   rv   rU   rd   r"   rˆ   s          r&   rv   zSchemaVersionList.page_async]  s�   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ! §¡°¸$¿.¹.ÓIÐIð
ús   ‚A"BÁ$B
Á%&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zÿ
        Retrieve a specific page of SchemaVersionInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SchemaVersionInstance
        rY   )r+   ÚdomainÚtwilioÚrequestrd   r"   ©r$   rŒ   rŠ   s      r&   Úget_pagezSchemaVersionList.get_page~  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ  §¡°¸$¿.¹.ÓIÐIr'   c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)a  
        Asynchronously retrieve a specific page of SchemaVersionInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SchemaVersionInstance
        rY   N)r+   rŽ   r�   Úrequest_asyncrd   r"   r‘   s      r&   Úget_page_asyncz SchemaVersionList.get_page_asyncŠ  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ  §¡°¸$¿.¹.ÓIÐIð Vús   ‚4A¶A·&Ar   c                 óL   — t        | j                  | j                  d   |¬«      S ©zm
        Constructs a SchemaVersionContext

        :param schema_version: The version of the schema
        r   r   ©r*   r+   r"   ©r$   r   s     r&   r   zSchemaVersionList.get–  ó%   € ô $Ø�M‰M˜dŸn™n¨TÑ2À>ô
ð 	
r'   c                 óL   — t        | j                  | j                  d   |¬«      S r—   r˜   r™   s     r&   Ú__call__zSchemaVersionList.__call__   rš   r'   c                  ó   — y)r5   z$<Twilio.Events.V1.SchemaVersionList>rS   r,   s    r&   rG   zSchemaVersionList.__repr__ª  rh   r'   )NN)rH   rI   rJ   r   rL   r   r   rM   r	   r   rr   r
   rw   r   rz   r}   r   Úunsetr   Úobjectrd   rq   rv   r’   r•   r*   r   rœ   rG   rO   rP   s   @r&   rj   rj   Ã   s!  ø„ ðF ð F¨Sõ Fð$  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
Ð'Ñ	(ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
Ð,Ñ	-ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð#Ñ	$ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð#Ñ	$ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	Jà˜#˜v˜+Ñ&ðJð ˜3 ˜;Ñ'ðJð ˜˜f˜Ñ%ð	Jð
 
óJðF *0¯©Ø*0¯,©,Ø(.¯©ñ	Jà˜#˜v˜+Ñ&ðJð ˜3 ˜;Ñ'ðJð ˜˜f˜Ñ%ð	Jð
 
óJðB
J 3ð 
JÐ+<ó 
Jð
J¨sð 
JÐ7Hó 
Jð
 #ð 
Ð*>ó 
ð
 sð 
Ð/Có 
ð6˜#÷ 6r'   rj   N)rK   r   Útypingr   r   r   r   r   r	   r
   Útwilio.baser   r   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r*   rd   rj   rS   r'   r&   ú<module>r§      sg   ðñõ ß L× LÑ Lß +Ý 8Ý :Ý 2Ý 'Ý !ôKMÐ,ô KMô\FL˜?ô FLôR6˜ô 6ô&m6˜õ m6r'   