Ë
    [üàg•L  ã                   óÜ   — 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 - Intelligence
    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	e   fˆ fd„Z
edd„«       Zdd	„Zdd
„Zdefd„Zˆ xZS )ÚPrebuiltOperatorInstancec                   ó   — e Zd ZdZdZdZdZy)ú%PrebuiltOperatorInstance.AvailabilityÚinternalÚbetaÚpublicÚretiredN)Ú__name__Ú
__module__Ú__qualname__ÚINTERNALÚBETAÚPUBLICÚRETIRED© ó    úk/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/intelligence/v2/prebuilt_operator.pyÚAvailabilityr      s   „ ØˆØˆØˆØ‰r"   r$   ÚversionÚpayloadÚsidc                 óâ  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _        |j                  d«      | _        |j                  d	«      | _        t        j                  |j                  d
«      «      | _        t        j                  |j                  d«      «      | _        |j                  d«      | _        d|xs | j                  i| _        d | _        y )NÚaccount_sidr'   Úfriendly_nameÚdescriptionÚauthorÚoperator_typer%   ÚavailabilityÚconfigÚdate_createdÚdate_updatedÚurl)ÚsuperÚ__init__Úgetr)   r'   r*   r+   r,   r-   r   Úintegerr%   r.   r/   Úiso8601_datetimer0   r1   r2   Ú	_solutionÚ_context)Úselfr%   r&   r'   Ú	__class__s       €r#   r4   z!PrebuiltOperatorInstance.__init__0   s+  ø€ ô 	‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔØ")§+¡+¨eÓ"4ˆŒØ,3¯K©K¸Ó,HˆÔØ*1¯+©+°mÓ*DˆÔØ%,§[¡[°Ó%:ˆŒØ,3¯K©K¸Ó,HˆÔÜ&1×&9Ñ&9¸'¿+¹+ÀiÓ:PÓ&QˆŒà�K‰K˜Ó'ð 	Ôð 4;·;±;¸xÓ3HˆŒÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð #*§+¡+¨eÓ"4ˆŒð �3’?˜$Ÿ(™(ð
ˆŒð <@ˆ�r"   Úreturnc                 ó„   — | j                   €)t        | j                  | 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: PrebuiltOperatorContext for this PrebuiltOperatorInstance
        r'   ©r'   )r9   ÚPrebuiltOperatorContextÚ_versionr8   ©r:   s    r#   Ú_proxyzPrebuiltOperatorInstance._proxyM   s9   € ð �=‰=Ð Ü3Ø—‘Ø—N‘N 5Ñ)ôˆDŒMð �}‰}Ðr"   c                 ó6   — | j                   j                  «       S )úm
        Fetch the PrebuiltOperatorInstance


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


        :returns: The fetched PrebuiltOperatorInstance
        N)rB   Úfetch_asyncrA   s    r#   rH   z$PrebuiltOperatorInstance.fetch_asynce   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>z4PrebuiltOperatorInstance.__repr__.<locals>.<genexpr>t   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z4<Twilio.Intelligence.V2.PrebuiltOperatorInstance {}>©Újoinr8   ÚitemsrO   ©r:   Úcontexts     r#   Ú__repr__z!PrebuiltOperatorInstance.__repr__n   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØE×LÑLÈWÓUÐUr"   )N)r<   r?   )r<   r   )r   r   r   Úobjectr$   r   r   Ústrr   r   r4   ÚpropertyrB   rE   rH   r\   Ú__classcell__©r;   s   @r#   r   r      st   ø„ ô�vô ðð  OSñ@Øð@Ø)-¨c°3¨h©ð@Ø>FÀs¹mõ@ð: òó ðó#ó/ðV˜#÷ Vr"   r   c                   óL   ‡ — e Zd Z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'   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)zÐ
        Initialize the PrebuiltOperatorContext

        :param version: Version that contains the resource
        :param sid: A 34 character string that uniquely identifies this Pre-built Operator.
        r'   z/Operators/PreBuilt/{sid}Nr!   )r3   r4   r8   rO   Ú_uri)r:   r%   r'   r;   s      €r#   r4   z PrebuiltOperatorContext.__init__z   s@   ø€ ô 	‰Ñ˜Ô!ð �3ð
ˆŒð 7Ð/×6Ñ6ÑH¸¿¹ÑHˆ�	r"   r<   c                 óÐ   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   ¬«      S )rD   úapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚheadersr'   r>   )r   Úofr@   rE   rd   r   r8   ©r:   rl   r&   s      r#   rE   zPrebuiltOperatorContext.fetch‰   s]   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆä'Ø�M‰MØØ—‘˜uÑ%ô
ð 	
r"   c              ƒ   óì   K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   ¬«      S 7 Œ)­w)rG   rf   rg   rh   ri   Nr'   r>   )r   rm   r@   rH   rd   r   r8   rn   s      r#   rH   z#PrebuiltOperatorContext.fetch_async�   sr   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô (Ø�M‰MØØ—‘˜uÑ%ô
ð 	
ð	
ús   ‚AA4ÁA2Á	*A4c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )rJ   rK   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wrM   rN   rP   s      r#   rT   z3PrebuiltOperatorContext.__repr__.<locals>.<genexpr>¹   rU   rV   z3<Twilio.Intelligence.V2.PrebuiltOperatorContext {}>rW   rZ   s     r#   r\   z PrebuiltOperatorContext.__repr__³   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØD×KÑKÈGÓTÐTr"   )r   r   r   r   r^   r4   r   rE   rH   r\   r`   ra   s   @r#   r?   r?   x   sA   ø„ ðI ð I¨cõ Ið
Ð/ó 
ð(
Ð#;ó 
ð,U˜#÷ Ur"   r?   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚPrebuiltOperatorPager&   r<   c                 ó.   — t        | j                  |«      S )zv
        Build an instance of PrebuiltOperatorInstance

        :param payload: Payload response from the API
        )r   r@   )r:   r&   s     r#   Úget_instancez!PrebuiltOperatorPage.get_instance¿   s   € ô (¨¯©°wÓ?Ð?r"   c                  ó   — y)rJ   z-<Twilio.Intelligence.V2.PrebuiltOperatorPage>r!   rA   s    r#   r\   zPrebuiltOperatorPage.__repr__Ç   ó   € ð ?r"   N)	r   r   r   r   r^   r   r   ru   r\   r!   r"   r#   rs   rs   ½   s-   „ ð@ D¨¨c¨¡Nð @Ð7Oó @ð?˜#ô ?r"   rs   c                   óÄ  ‡ — e Zd Zdefˆ fd„Zej                  ej                  ddfdedef   dee	ef   de
e   de
e   d	ee   f
d
„Zej                  ej                  ddfdedef   dee	ef   de
e   de
e   d	ee   f
d„Zej                  ej                  ddfdedef   dee	ef   de
e   de
e   d	ee   f
d„Zej                  ej                  ddfdede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                  ej                  fdede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                  ej                  fdede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	d	efd„Zde	d	efd„Zd	e	fd„Zˆ xZS )ÚPrebuiltOperatorListr%   c                 ó2   •— t         ‰| �  |«       d| _        y)zr
        Initialize the PrebuiltOperatorList

        :param version: Version that contains the resource

        z/Operators/PreBuiltN)r3   r4   rd   )r:   r%   r;   s     €r#   r4   zPrebuiltOperatorList.__init__Ò   s   ø€ ô 	‰Ñ˜Ô!à)ˆ�	r"   Nr.   r   Úlanguage_codeÚlimitÚ	page_sizer<   c                 ó¦   — | j                   j                  ||«      }| j                  |||d   ¬«      }| j                   j                  ||d   «      S )a�  
        Streams PrebuiltOperatorInstance 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 &quot;PrebuiltOperatorInstance.Availability&quot; availability: Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
        :param str language_code: Returns Pre-built Operators that support the provided language code.
        :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{   r}   r|   )r@   Úread_limitsÚpageÚstream©r:   r.   r{   r|   r}   Úlimitsr�   s          r#   r‚   zPrebuiltOperatorList.streamÝ   sX   € ð4 —‘×*Ñ*¨5°)Ó<ˆØ�y‰yØ%Ø'Ø˜[Ñ)ð ó 
ˆð �}‰}×#Ñ# D¨&°©/Ó:Ð:r"   c              ƒ   óÂ   K  — | j                   j                  ||«      }| j                  |||d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)až  
        Asynchronously streams PrebuiltOperatorInstance 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 &quot;PrebuiltOperatorInstance.Availability&quot; availability: Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
        :param str language_code: Returns Pre-built Operators that support the provided language code.
        :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   Nr|   )r@   r€   Ú
page_asyncÚstream_asyncrƒ   s          r#   r‡   z!PrebuiltOperatorList.stream_async   sf   è ø€ ð4 —‘×*Ñ*¨5°)Ó<ˆØ—_‘_Ø%Ø'Ø˜[Ñ)ð %ó 
÷ 
ˆð �}‰}×)Ñ)¨$°°w±Ó@Ð@ð
ús   ‚7A¹Aº$Ac                 ó>   — t        | j                  ||||¬«      «      S )a,  
        Lists PrebuiltOperatorInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param &quot;PrebuiltOperatorInstance.Availability&quot; availability: Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
        :param str language_code: Returns Pre-built Operators that support the provided language code.
        :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{   r|   r}   )Úlistr‚   )r:   r.   r{   r|   r}   s        r#   rŠ   zPrebuiltOperatorList.list#  s.   € ô2 Ø�K‰KØ)Ø+ØØ#ð	 ó ó
ð 	
r"   c              ƒ   ó~   K  — | j                  ||||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)a;  
        Asynchronously lists PrebuiltOperatorInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param &quot;PrebuiltOperatorInstance.Availability&quot; availability: Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
        :param str language_code: Returns Pre-built Operators that support the provided language code.
        :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‡   )r:   r.   r{   r|   r}   Úrecords         r#   Ú
list_asynczPrebuiltOperatorList.list_asyncE  sZ   è ø€ ð6 '+×&7Ñ&7Ø)Ø+ØØ#ð	 '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚=›0œ=¢8¤4¨2
©4¬8°=²4´8µ=Ú
page_tokenÚpage_numberc                 óî   — t        j                  |||||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  |«      S )ax  
        Retrieve a single page of PrebuiltOperatorInstance records from the API.
        Request is executed immediately

        :param availability: Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
        :param language_code: Returns Pre-built Operators that support the provided language code.
        :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 PrebuiltOperatorInstance
        ©r$   ÚLanguageCodeÚ	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedrf   rg   rh   ©rj   rk   Úparamsrl   )r   rm   r@   r�   rd   rs   ©	r:   r.   r{   rŽ   r�   r}   Údatarl   Úresponses	            r#   r�   zPrebuiltOperatorList.pageh  s   € ô, �y‰yà ,Ø -Ø'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô $ D§M¡M°8Ó<Ð<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 PrebuiltOperatorInstance records from the API.
        Request is executed immediately

        :param availability: Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
        :param language_code: Returns Pre-built Operators that support the provided language code.
        :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 PrebuiltOperatorInstance
        r‘   r•   r–   rf   rg   rh   r—   N)r   rm   r@   r†   rd   rs   r™   s	            r#   r†   zPrebuiltOperatorList.page_async‘  s�   è ø€ ô, �y‰yà ,Ø -Ø'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô $ D§M¡M°8Ó<Ð<ð
ús   ‚A$BÁ&BÁ'BÚ
target_urlc                 óŽ   — | j                   j                  j                  j                  d|«      }t	        | j                   |«      S )a  
        Retrieve a specific page of PrebuiltOperatorInstance records from the API.
        Request is executed immediately

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

        :returns: Page of PrebuiltOperatorInstance
        rh   )r@   ÚdomainÚtwilioÚrequestrs   ©r:   r�   r›   s      r#   Úget_pagezPrebuiltOperatorList.get_pageº  s7   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ# D§M¡M°8Ó<Ð<r"   c              ƒ   óª   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   |«      S 7 Œ­w)a  
        Asynchronously retrieve a specific page of PrebuiltOperatorInstance records from the API.
        Request is executed immediately

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

        :returns: Page of PrebuiltOperatorInstance
        rh   N)r@   rŸ   r    Úrequest_asyncrs   r¢   s      r#   Úget_page_asyncz#PrebuiltOperatorList.get_page_asyncÆ  sD   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ# D§M¡M°8Ó<Ð<ð Vús   ‚4A¶A·Ar'   c                 ó0   — t        | j                  |¬«      S ©z“
        Constructs a PrebuiltOperatorContext

        :param sid: A 34 character string that uniquely identifies this Pre-built Operator.
        r>   ©r?   r@   ©r:   r'   s     r#   r5   zPrebuiltOperatorList.getÒ  ó   € ô ' t§}¡}¸#Ô>Ð>r"   c                 ó0   — t        | j                  |¬«      S r¨   r©   rª   s     r#   Ú__call__zPrebuiltOperatorList.__call__Ú  r«   r"   c                  ó   — y)rJ   z-<Twilio.Intelligence.V2.PrebuiltOperatorList>r!   rA   s    r#   r\   zPrebuiltOperatorList.__repr__â  rw   r"   )r   r   r   r   r4   r   Úunsetr   r]   r^   r   Úintr	   r   r‚   r
   r‡   r   rŠ   r�   rs   r�   r†   r£   r¦   r?   r5   r­   r\   r`   ra   s   @r#   ry   ry   Ð   s]  ø„ ð	* õ 	*ð �L‰LØ,2¯L©LØ#Ø#'ñ!;àØ3°VÐ;ñ
ð!;ð
 ˜S &˜[Ñ)ð!;ð ˜‰}ð!;ð ˜C‘=ð!;ð 
Ð*Ñ	+ó!;ðN �L‰LØ,2¯L©LØ#Ø#'ñ!AàØ3°VÐ;ñ
ð!Að
 ˜S &˜[Ñ)ð!Að ˜‰}ð!Að ˜C‘=ð!Að 
Ð/Ñ	0ó!AðN �L‰LØ,2¯L©LØ#Ø#'ñ 
àØ3°VÐ;ñ
ð 
ð
 ˜S &˜[Ñ)ð 
ð ˜‰}ð 
ð ˜C‘=ð 
ð 
Ð&Ñ	'ó 
ðL �L‰LØ,2¯L©LØ#Ø#'ñ!
àØ3°VÐ;ñ
ð!
ð
 ˜S &˜[Ñ)ð!
ð ˜‰}ð!
ð ˜C‘=ð!
ð 
Ð&Ñ	'ó!
ðN �L‰LØ,2¯L©LØ)/¯©Ø*0¯,©,Ø(.¯©ñ'=àØ3°VÐ;ñ
ð'=ð
 ˜S &˜[Ñ)ð'=ð ˜#˜v˜+Ñ&ð'=ð ˜3 ˜;Ñ'ð'=ð ˜˜f˜Ñ%ð'=ð 
ó'=ðZ �L‰LØ,2¯L©LØ)/¯©Ø*0¯,©,Ø(.¯©ñ'=àØ3°VÐ;ñ
ð'=ð
 ˜S &˜[Ñ)ð'=ð ˜#˜v˜+Ñ&ð'=ð ˜3 ˜;Ñ'ð'=ð ˜˜f˜Ñ%ð'=ð 
ó'=ðR
= 3ð 
=Ð+?ó 
=ð
=¨sð 
=Ð7Kó 
=ð?�sð ?Ð6ó ?ð?˜Cð ?Ð$;ó ?ð?˜#÷ ?r"   ry   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?   rs   ry   r!   r"   r#   ú<module>r¹      sg   ðñõ ß L× LÑ Lß +Ý 8Ý :Ý 2Ý 'Ý !ô\VÐ/ô \Vô~BU˜oô BUôJ?˜4ô ?ô&X?˜<õ X?r"   