Ë
    [üàgÄH  ã                   óÜ   — 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 )ÚOperatorInstancec                   ó   — e Zd ZdZdZdZdZy)úOperatorInstance.AvailabilityÚinternalÚbetaÚpublicÚretiredN)Ú__name__Ú
__module__Ú__qualname__ÚINTERNALÚBETAÚPUBLICÚRETIRED© ó    úb/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/intelligence/v2/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OperatorInstance.__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ˆŒØGNÇ{Á{ØóH
ˆÔð 4;·;±;¸xÓ3HˆŒÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð #*§+¡+¨eÓ"4ˆŒð �3’?˜$Ÿ(™(ð
ˆŒð 48ˆ�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: OperatorContext for this OperatorInstance
        r'   ©r'   )r9   ÚOperatorContextÚ_versionr8   ©r:   s    r#   Ú_proxyzOperatorInstance._proxyM   s9   € ð �=‰=Ð Ü+Ø—‘Ø—N‘N 5Ñ)ôˆDŒMð �}‰}Ðr"   c                 ó6   — | j                   j                  «       S )ú]
        Fetch the OperatorInstance


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


        :returns: The fetched OperatorInstance
        N)rB   Úfetch_asyncrA   s    r#   rH   zOperatorInstance.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>z,OperatorInstance.__repr__.<locals>.<genexpr>t   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z,<Twilio.Intelligence.V2.OperatorInstance {}>©Újoinr8   ÚitemsrO   ©r:   Úcontexts     r#   Ú__repr__zOperatorInstance.__repr__n   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ=×DÑDÀWÓMÐMr"   )N)r<   r?   )r<   r   )r   r   r   Úobjectr$   r   r   Ústrr   r   r4   ÚpropertyrB   rE   rH   r\   Ú__classcell__©r;   s   @r#   r   r      sp   ø„ ô�vô ðð  OSñ8Øð8Ø)-¨c°3¨h©ð8Ø>FÀs¹mõ8ð: òó ðó#ó/ðN˜#÷ N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 OperatorContext

        :param version: Version that contains the resource
        :param sid: A 34 character string that uniquely identifies this Operator.
        r'   z/Operators/{sid}Nr!   )r3   r4   r8   rO   Ú_uri)r:   r%   r'   r;   s      €r#   r4   zOperatorContext.__init__z   s@   ø€ ô 	‰Ñ˜Ô!ð �3ð
ˆŒð .Ð&×-Ñ-Ñ?°·±Ñ?ˆ�	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OperatorContext.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OperatorContext.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   z+OperatorContext.__repr__.<locals>.<genexpr>¹   rU   rV   z+<Twilio.Intelligence.V2.OperatorContext {}>rW   rZ   s     r#   r\   zOperatorContext.__repr__³   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ<×CÑCÀGÓLÐLr"   )r   r   r   r   r^   r4   r   rE   rH   r\   r`   ra   s   @r#   r?   r?   x   sA   ø„ ð@ ð @¨cõ @ð
Ð'ó 
ð(
Ð#3ó 
ð,M˜#÷ Mr"   r?   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚOperatorPager&   r<   c                 ó.   — t        | j                  |«      S )zn
        Build an instance of OperatorInstance

        :param payload: Payload response from the API
        )r   r@   )r:   r&   s     r#   Úget_instancezOperatorPage.get_instance¿   s   € ô   §¡¨wÓ7Ð7r"   c                  ó   — y)rJ   z%<Twilio.Intelligence.V2.OperatorPage>r!   rA   s    r#   r\   zOperatorPage.__repr__Ç   ó   € ð 7r"   N)	r   r   r   r   r^   r   r   ru   r\   r!   r"   r#   rs   rs   ½   s*   „ ð8 D¨¨c¨¡Nð 8Ð7Gó 8ð7˜#ô 7r"   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 )ÚOperatorListr%   c                 ó2   •— t         ‰| �  |«       d| _        y)zj
        Initialize the OperatorList

        :param version: Version that contains the resource

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

        :param &quot;OperatorInstance.Availability&quot; availability: Returns Operators with the provided availability type. Possible values: internal, beta, public, retired.
        :param str language_code: Returns 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OperatorList.list  s.   € ô. Ø�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 OperatorInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param &quot;OperatorInstance.Availability&quot; availability: Returns Operators with the provided availability type. Possible values: internal, beta, public, retired.
        :param str language_code: Returns 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OperatorList.list_async?  sZ   è ø€ ð2 '+×&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 )aT  
        Retrieve a single page of OperatorInstance records from the API.
        Request is executed immediately

        :param availability: Returns Operators with the provided availability type. Possible values: internal, beta, public, retired.
        :param language_code: Returns 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 OperatorInstance
        ©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OperatorList.page`  s   € ô( �y‰yà ,Ø -Ø'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜DŸM™M¨8Ó4Ð4r"   c              ƒ   ó
  K  — t        j                  |||||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  |«      S 7 Œ­w)	ac  
        Asynchronously retrieve a single page of OperatorInstance records from the API.
        Request is executed immediately

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

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

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

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

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

        :param sid: A 34 character string that uniquely identifies this Operator.
        r>   ©r?   r@   ©r:   r'   s     r#   r5   zOperatorList.getÆ  ó   € ô ˜tŸ}™}°#Ô6Ð6r"   c                 ó0   — t        | j                  |¬«      S r¨   r©   rª   s     r#   Ú__call__zOperatorList.__call__Î  r«   r"   c                  ó   — y)rJ   z%<Twilio.Intelligence.V2.OperatorList>r!   rA   s    r#   r\   zOperatorList.__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   Ð   sY  ø„ ð	! õ 	!ð HNÇ|Á|Ø,2¯L©LØ#Ø#'ñ;àÐ;¸VÐCÑDð;ð ˜S &˜[Ñ)ð;ð ˜‰}ð	;ð
 ˜C‘=ð;ð 
Ð"Ñ	#ó;ðF HNÇ|Á|Ø,2¯L©LØ#Ø#'ñAàÐ;¸VÐCÑDðAð ˜S &˜[Ñ)ðAð ˜‰}ð	Að
 ˜C‘=ðAð 
Ð'Ñ	(óAðF HNÇ|Á|Ø,2¯L©LØ#Ø#'ñ
àÐ;¸VÐCÑDð
ð ˜S &˜[Ñ)ð
ð ˜‰}ð	
ð
 ˜C‘=ð
ð 
ÐÑ	ó
ðD HNÇ|Á|Ø,2¯L©LØ#Ø#'ñ
àÐ;¸VÐCÑDð
ð ˜S &˜[Ñ)ð
ð ˜‰}ð	
ð
 ˜C‘=ð
ð 
ÐÑ	ó
ðF HNÇ|Á|Ø,2¯L©LØ)/¯©Ø*0¯,©,Ø(.¯©ñ%5àÐ;¸VÐCÑDð%5ð ˜S &˜[Ñ)ð%5ð ˜#˜v˜+Ñ&ð	%5ð
 ˜3 ˜;Ñ'ð%5ð ˜˜f˜Ñ%ð%5ð 
ó%5ðR HNÇ|Á|Ø,2¯L©LØ)/¯©Ø*0¯,©,Ø(.¯©ñ%5àÐ;¸VÐCÑDð%5ð ˜S &˜[Ñ)ð%5ð ˜#˜v˜+Ñ&ð	%5ð
 ˜3 ˜;Ñ'ð%5ð ˜˜f˜Ñ%ð%5ð 
ó%5ðN
5 3ð 
5¨<ó 
5ð
5¨sð 
5°|ó 
5ð7�sð 7˜ó 7ð7˜Cð 7 Oó 7ð7˜#÷ 7r"   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Ý 'Ý !ô\NÐ'ô \Nô~BM�oô BMôJ7�4ô 7ô&L7�<õ L7r"   