Ë
    [üà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 - Studio
    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            
       óŠ   ‡ — e Zd Z G d„ de«      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 )ÚFlowRevisionInstancec                   ó   — e Zd ZdZdZy)úFlowRevisionInstance.StatusÚdraftÚ	publishedN)Ú__name__Ú
__module__Ú__qualname__ÚDRAFTÚ	PUBLISHED© ó    úf/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/studio/v2/flow/flow_revision.pyÚStatusr      s   „ ØˆØ‰	r   r    ÚversionÚpayloadÚsidÚrevisionc                 óä  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _
        |j                  d«      | _        |j                  d«      | _        |j                  d	«      | _        t        j                  |j                  d
«      «      | _        t        j                  |j                  d«      «      | _        |j                  d«      | _        ||xs | j                  dœ| _        d | _        y )Nr#   Úaccount_sidÚfriendly_nameÚ
definitionÚstatusr$   Úcommit_messageÚvalidÚerrorsÚdate_createdÚdate_updatedÚurl©r#   r$   )ÚsuperÚ__init__Úgetr#   r&   r'   r(   r)   r   Úintegerr$   r*   r+   r,   Úiso8601_datetimer-   r.   r/   Ú	_solutionÚ_context)Úselfr!   r"   r#   r$   Ú	__class__s        €r   r2   zFlowRevisionInstance.__init__.   s&  ø€ ô 	‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ*1¯+©+°mÓ*DˆÔØ,3¯K©K¸Ó,HˆÔØ7>·{±{À<Ó7PˆŒØ?F¿{¹{È8Ó?TˆŒÜ'2×':Ñ':¸7¿;¹;ÀzÓ;RÓ'SˆŒØ-4¯[©[Ð9IÓ-JˆÔØ%,§[¡[°Ó%9ˆŒ
Ø9@¿¹ÀXÓ9NˆŒÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð #*§+¡+¨eÓ"4ˆŒð Ø Ò1 D§M¡Mñ
ˆŒð 8<ˆ�r   Ú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: FlowRevisionContext for this FlowRevisionInstance
        r#   r$   r0   )r7   ÚFlowRevisionContextÚ_versionr6   ©r8   s    r   Ú_proxyzFlowRevisionInstance._proxyN   sE   € ð �=‰=Ð Ü/Ø—‘Ø—N‘N 5Ñ)ØŸ™¨
Ñ3ôˆDŒMð
 �}‰}Ðr   c                 ó6   — | j                   j                  «       S )úe
        Fetch the FlowRevisionInstance


        :returns: The fetched FlowRevisionInstance
        )r?   Úfetchr>   s    r   rB   zFlowRevisionInstance.fetch^   s   € ð �{‰{× Ñ Ó"Ð"r   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)ú
        Asynchronous coroutine to fetch the FlowRevisionInstance


        :returns: The fetched FlowRevisionInstance
        N)r?   Úfetch_asyncr>   s    r   rE   z FlowRevisionInstance.fetch_asyncg   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>z0FlowRevisionInstance.__repr__.<locals>.<genexpr>v   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z*<Twilio.Studio.V2.FlowRevisionInstance {}>©Újoinr6   ÚitemsrL   ©r8   Úcontexts     r   Ú__repr__zFlowRevisionInstance.__repr__p   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ;×BÑBÀ7ÓKÐKr   )N)r:   r<   )r:   r   )r   r   r   Úobjectr    r   r   Ústrr   r   r2   Úpropertyr?   rB   rE   rY   Ú__classcell__©r9   s   @r   r   r      s}   ø„ ô �ô  ðð( #'ñ<àð<ð �c˜3�h‘ð<ð ð	<ð
 ˜3‘-õ<ð@ òó ðó#ó/ðL˜#÷ L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 FlowRevisionContext

        :param version: Version that contains the resource
        :param sid: The SID of the Flow resource to fetch.
        :param revision: Specific Revision number or can be `LatestPublished` and `LatestRevision`.
        r0   z!/Flows/{sid}/Revisions/{revision}Nr   ©r1   r2   r6   rL   Ú_uri)r8   r!   r#   r$   r9   s       €r   r2   zFlowRevisionContext.__init__|   sA   ø€ ô 	‰Ñ˜Ô!ð Ø ñ
ˆŒð ?Ð7×>Ñ>ÑPÀÇÁÑPˆ�	r   r:   c                 óì   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   | j                  d   ¬«      S )rA   úapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚheadersr#   r$   r0   )r   Úofr=   rB   rb   r   r6   ©r8   rj   r"   s      r   rB   zFlowRevisionContext.fetch�   si   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆä#Ø�M‰MØØ—‘˜uÑ%Ø—^‘^ JÑ/ô	
ð 	
r   c              ƒ   ó  K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   | j                  d   ¬«      S 7 Œ7­w)	rD   rd   re   rf   rg   Nr#   r$   r0   )r   rk   r=   rE   rb   r   r6   rl   s      r   rE   zFlowRevisionContext.fetch_async¢   s~   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô $Ø�M‰MØØ—‘˜uÑ%Ø—^‘^ JÑ/ô	
ð 	
ð	
ús   ‚ABÁB Á	8Bc                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )rG   rH   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wrJ   rK   rM   s      r   rQ   z/FlowRevisionContext.__repr__.<locals>.<genexpr>¿   rR   rS   z)<Twilio.Studio.V2.FlowRevisionContext {}>rT   rW   s     r   rY   zFlowRevisionContext.__repr__¹   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ:×AÑAÀ'ÓJÐJr   )r   r   r   r   r[   r2   r   rB   rE   rY   r]   r^   s   @r   r<   r<   z   sI   ø„ ðQ ð Q¨cð Q¸Sõ Qð"
Ð+ó 
ð*
Ð#7ó 
ð.K˜#÷ Kr   r<   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚFlowRevisionPager"   r:   c                 óL   — t        | j                  || j                  d   ¬«      S )zr
        Build an instance of FlowRevisionInstance

        :param payload: Payload response from the API
        r#   )r#   )r   r=   r6   )r8   r"   s     r   Úget_instancezFlowRevisionPage.get_instanceÅ   s    € ô $ D§M¡M°7ÀÇÁÈuÑ@UÔVÐVr   c                  ó   — y)rG   z#<Twilio.Studio.V2.FlowRevisionPage>r   r>   s    r   rY   zFlowRevisionPage.__repr__Í   ó   € ð 5r   N)	r   r   r   r   r[   r   r   rs   rY   r   r   r   rq   rq   Ã   s-   „ ðW D¨¨c¨¡Nð WÐ7Kó Wð5˜#ô 5r   rq   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 )ÚFlowRevisionListr!   r#   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)z©
        Initialize the FlowRevisionList

        :param version: Version that contains the resource
        :param sid: The SID of the Flow resource to fetch.

        r#   z/Flows/{sid}/RevisionsNr   ra   )r8   r!   r#   r9   s      €r   r2   zFlowRevisionList.__init__Ø   s@   ø€ ô 	‰Ñ˜Ô!ð �3ð
ˆŒð 4Ð,×3Ñ3ÑE°d·n±nÑEˆ�	r   ÚlimitÚ	page_sizer:   c                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )ab  
        Streams FlowRevisionInstance 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
        rz   ©rz   ry   )r=   Úread_limitsÚpageÚstream©r8   ry   rz   Úlimitsr~   s        r   r   zFlowRevisionList.streamè   sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r   c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)aq  
        Asynchronously streams FlowRevisionInstance 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
        rz   r|   Nry   )r=   r}   Ú
page_asyncÚstream_asyncr€   s        r   r„   zFlowRevisionList.stream_async  sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )aÿ  
        Lists FlowRevisionInstance 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   rz   )Úlistr   )r8   ry   rz   s      r   r‡   zFlowRevisionList.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 FlowRevisionInstance 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†   N)r„   )r8   ry   rz   Úrecords       r   Ú
list_asynczFlowRevisionList.list_async4  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 FlowRevisionInstance 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 FlowRevisionInstance
        ©Ú	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedrd   re   rf   ©rh   ri   Úparamsrj   )r   rk   r=   r~   rb   rq   r6   ©r8   r‹   rŒ   rz   Údatarj   Úresponses          r   r~   zFlowRevisionList.pageO  s   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô   §¡¨x¸¿¹ÓHÐHr   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 FlowRevisionInstance 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 FlowRevisionInstance
        rŽ   r‘   r’   rd   re   rf   r“   N)r   rk   r=   rƒ   rb   rq   r6   r•   s          r   rƒ   zFlowRevisionList.page_asyncp  s�   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô   §¡¨x¸¿¹ÓHÐHð
ús   ‚A"BÁ$B
Á%&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zý
        Retrieve a specific page of FlowRevisionInstance records from the API.
        Request is executed immediately

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

        :returns: Page of FlowRevisionInstance
        rf   )r=   ÚdomainÚtwilioÚrequestrq   r6   ©r8   r™   r—   s      r   Úget_pagezFlowRevisionList.get_page‘  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ §¡¨x¸¿¹ÓHÐHr   c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)a  
        Asynchronously retrieve a specific page of FlowRevisionInstance records from the API.
        Request is executed immediately

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

        :returns: Page of FlowRevisionInstance
        rf   N)r=   r›   rœ   Úrequest_asyncrq   r6   rž   s      r   Úget_page_asynczFlowRevisionList.get_page_async�  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ §¡¨x¸¿¹ÓHÐHð Vús   ‚4A¶A·&Ar$   c                 óL   — t        | j                  | j                  d   |¬«      S ©z—
        Constructs a FlowRevisionContext

        :param revision: Specific Revision number or can be `LatestPublished` and `LatestRevision`.
        r#   r0   ©r<   r=   r6   ©r8   r$   s     r   r3   zFlowRevisionList.get©  ó%   € ô #Ø�M‰M˜tŸ~™~¨eÑ4¸xô
ð 	
r   c                 óL   — t        | j                  | j                  d   |¬«      S r¤   r¥   r¦   s     r   Ú__call__zFlowRevisionList.__call__³  r§   r   c                  ó   — y)rG   z#<Twilio.Studio.V2.FlowRevisionList>r   r>   s    r   rY   zFlowRevisionList.__repr__½  ru   r   )NN)r   r   r   r   r[   r2   r   Úintr	   r   r   r
   r„   r   r‡   rŠ   r   Úunsetr   rZ   rq   r~   rƒ   rŸ   r¢   r<   r3   r©   rY   r]   r^   s   @r   rw   rw   Ö   s!  ø„ ðF ð F¨cõ Fð$  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
Ð&Ñ	'ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
Ð+Ñ	,ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð"Ñ	#ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð"Ñ	#ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	Ià˜#˜v˜+Ñ&ðIð ˜3 ˜;Ñ'ðIð ˜˜f˜Ñ%ð	Ið
 
óIðF *0¯©Ø*0¯,©,Ø(.¯©ñ	Ià˜#˜v˜+Ñ&ðIð ˜3 ˜;Ñ'ðIð ˜˜f˜Ñ%ð	Ið
 
óIðB
I 3ð 
IÐ+;ó 
Ið
I¨sð 
IÐ7Gó 
Ið
˜Cð 
Ð$7ó 
ð
 ð 
Ð)<ó 
ð5˜#÷ 5r   rw   N)Ú__doc__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<   rq   rw   r   r   r   ú<module>rµ      sg   ðñõ ß L× LÑ Lß +Ý 8Ý :Ý 2Ý 'Ý !ô^LÐ+ô ^LôBFK˜/ô FKôR5�tô 5ô&m5�|õ m5r   