Ë
    [üàgŽF  ã                   óÌ   — d Z ddlmZmZmZmZmZ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 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 - Supersim
    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.
é    )ÚAnyÚDictÚListÚOptionalÚUnionÚIteratorÚAsyncIterator)Úvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   ór   ‡ — e Zd Zd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 )ÚNetworkInstanceaò  
    :ivar sid: The unique string that we created to identify the Network resource.
    :ivar friendly_name: A human readable identifier of this resource.
    :ivar url: The absolute URL of the Network resource.
    :ivar iso_country: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resource.
    :ivar identifiers: Array of objects identifying the [MCC-MNCs](https://en.wikipedia.org/wiki/Mobile_country_code) that are included in the Network resource.
    ÚversionÚpayloadÚsidc                 ó<  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        d|xs | j                  i| _        d | _	        y )Nr   Úfriendly_nameÚurlÚiso_countryÚidentifiers)
ÚsuperÚ__init__Úgetr   r   r   r   r   Ú	_solutionÚ_context)Úselfr   r   r   Ú	__class__s       €ú]/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/supersim/v1/network.pyr   zNetworkInstance.__init__!   s†   ø€ ô 	‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ,3¯K©K¸Ó,HˆÔØ")§+¡+¨eÓ"4ˆŒØ*1¯+©+°mÓ*DˆÔØ>E¿k¹kÈ-Ó>XˆÔð �3’?˜$Ÿ(™(ð
ˆŒð 37ˆ�ó    Ú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: NetworkContext for this NetworkInstance
        r   ©r   )r   ÚNetworkContextÚ_versionr   ©r   s    r!   Ú_proxyzNetworkInstance._proxy1   s9   € ð �=‰=Ð Ü*Ø—‘Ø—N‘N 5Ñ)ôˆDŒMð �}‰}Ðr"   c                 ó6   — | j                   j                  «       S )ú[
        Fetch the NetworkInstance


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


        :returns: The fetched NetworkInstance
        N)r)   Úfetch_asyncr(   s    r!   r/   zNetworkInstance.fetch_asyncI   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+NetworkInstance.__repr__.<locals>.<genexpr>X   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z'<Twilio.Supersim.V1.NetworkInstance {}>©Újoinr   Úitemsr6   ©r   Úcontexts     r!   Ú__repr__zNetworkInstance.__repr__R   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ8×?Ñ?ÀÓHÐHr"   )N)r#   r&   )r#   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r   Úpropertyr)   r,   r/   rC   Ú__classcell__©r    s   @r!   r   r      sd   ø„ ñð OSñ7Øð7Ø)-¨c°3¨h©ð7Ø>FÀs¹mõ7ð  òó ðó#ó/ðI˜#÷ I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 NetworkContext

        :param version: Version that contains the resource
        :param sid: The SID of the Network resource to fetch.
        r   z/Networks/{sid}N© )r   r   r   r6   Ú_uri)r   r   r   r    s      €r!   r   zNetworkContext.__init__^   s@   ø€ ô 	‰Ñ˜Ô!ð �3ð
ˆŒð -Ð%×,Ñ,Ñ>¨t¯~©~Ñ>ˆ�	r"   r#   c                 óÐ   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   ¬«      S )r+   úapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚheadersr   r%   )r
   Úofr'   r,   rO   r   r   ©r   rW   r   s      r!   r,   zNetworkContext.fetchm   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)r.   rQ   rR   rS   rT   Nr   r%   )r
   rX   r'   r/   rO   r   r   rY   s      r!   r/   zNetworkContext.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 )r1   r2   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wr4   r5   r7   s      r!   r;   z*NetworkContext.__repr__.<locals>.<genexpr>�   r<   r=   z&<Twilio.Supersim.V1.NetworkContext {}>r>   rA   s     r!   rC   zNetworkContext.__repr__—   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ7×>Ñ>¸wÓGÐGr"   )rD   rE   rF   r   rH   r   r   r,   r/   rC   rJ   rK   s   @r!   r&   r&   \   s<   ø„ ð? ð ?¨cõ ?ð
�ó 
ð(
 ?ó 
ð,H˜#÷ Hr"   r&   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚNetworkPager   r#   c                 ó.   — t        | j                  |«      S )zm
        Build an instance of NetworkInstance

        :param payload: Payload response from the API
        )r   r'   )r   r   s     r!   Úget_instancezNetworkPage.get_instance£   s   € ô ˜tŸ}™}¨gÓ6Ð6r"   c                  ó   — y)r1   z <Twilio.Supersim.V1.NetworkPage>rN   r(   s    r!   rC   zNetworkPage.__repr__«   ó   € ð 2r"   N)	rD   rE   rF   r   rH   r   r   r`   rC   rN   r"   r!   r^   r^   ¡   s)   „ ð7 D¨¨c¨¡Nð 7°ó 7ð2˜#ô 2r"   r^   c                   óœ  ‡ — e Zd Zdefˆ fd„Zej                  ej                  ej                  ddfdeee	f   dee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                  ddfdeee	f   dee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                  ddfdeee	f   dee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                  ddfdeee	f   dee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                  ej                  fdeee	f   dee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                  ej                  fdeee	f   dee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 )ÚNetworkListr   c                 ó2   •— t         ‰| �  |«       d| _        y)zi
        Initialize the NetworkList

        :param version: Version that contains the resource

        z	/NetworksN)r   r   rO   )r   r   r    s     €r!   r   zNetworkList.__init__¶   s   ø€ ô 	‰Ñ˜Ô!àˆ�	r"   Nr   ÚmccÚmncÚlimitÚ	page_sizer#   c                 ó¨   — | j                   j                  ||«      }| j                  ||||d   ¬«      }| j                   j                  ||d   «      S )a  
        Streams NetworkInstance 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 str iso_country: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resources to read.
        :param str mcc: The 'mobile country code' of a country. Network resources with this `mcc` in their `identifiers` will be read.
        :param str mnc: The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read.
        :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
        ri   ©r   rf   rg   ri   rh   )r'   Úread_limitsÚpageÚstream©r   r   rf   rg   rh   ri   Úlimitsrm   s           r!   rn   zNetworkList.streamÁ   sX   € ð4 —‘×*Ñ*¨5°)Ó<ˆØ�y‰yØ#¨°#ÀÈÑATð ó 
ˆð �}‰}×#Ñ# D¨&°©/Ó:Ð:r"   c              ƒ   óÄ   K  — | j                   j                  ||«      }| j                  ||||d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)a  
        Asynchronously streams NetworkInstance 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 str iso_country: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resources to read.
        :param str mcc: The 'mobile country code' of a country. Network resources with this `mcc` in their `identifiers` will be read.
        :param str mnc: The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read.
        :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
        ri   rk   Nrh   )r'   rl   Ú
page_asyncÚstream_asyncro   s           r!   rs   zNetworkList.stream_asyncâ   sf   è ø€ ð4 —‘×*Ñ*¨5°)Ó<ˆØ—_‘_Ø#¨°#ÀÈÑATð %ó 
÷ 
ˆð �}‰}×)Ñ)¨$°°w±Ó@Ð@ð	
ús   ‚8A ºA»$A c           	      ó@   — t        | j                  |||||¬«      «      S )a£  
        Lists NetworkInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str iso_country: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resources to read.
        :param str mcc: The 'mobile country code' of a country. Network resources with this `mcc` in their `identifiers` will be read.
        :param str mnc: The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read.
        :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   rf   rg   rh   ri   )Úlistrn   )r   r   rf   rg   rh   ri   s         r!   rv   zNetworkList.list  s1   € ô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 NetworkInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str iso_country: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resources to read.
        :param str mcc: The 'mobile country code' of a country. Network resources with this `mcc` in their `identifiers` will be read.
        :param str mnc: The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read.
        :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
        ru   N)rs   )r   r   rf   rg   rh   ri   Úrecords          r!   Ú
list_asynczNetworkList.list_async&  s]   è ø€ ð6 '+×&7Ñ&7Ø'ØØØØ#ð '8ó '÷ !÷	
ô 	
àò ð!øð	
øò 	
ð 		
ùò 	
ùs0   ‚>œ1�>£9¥5©3
ª5­9±>³5µ9¶>Ú
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 NetworkInstance records from the API.
        Request is executed immediately

        :param iso_country: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resources to read.
        :param mcc: The 'mobile country code' of a country. Network resources with this `mcc` in their `identifiers` will be read.
        :param mnc: The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read.
        :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 NetworkInstance
        ©Ú
IsoCountryÚMccÚMncÚ	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedrQ   rR   rS   ©rU   rV   ÚparamsrW   )r
   rX   r'   rm   rO   r^   ©
r   r   rf   rg   rz   r{   ri   ÚdatarW   Úresponses
             r!   rm   zNetworkList.pageJ  s‚   € ô, �y‰yà)ØØØ'Ø#Ø%ñó	
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜4Ÿ=™=¨(Ó3Ð3r"   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 NetworkInstance records from the API.
        Request is executed immediately

        :param iso_country: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resources to read.
        :param mcc: The 'mobile country code' of a country. Network resources with this `mcc` in their `identifiers` will be read.
        :param mnc: The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read.
        :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 NetworkInstance
        r}   rƒ   r„   rQ   rR   rS   r…   N)r
   rX   r'   rr   rO   r^   r‡   s
             r!   rr   zNetworkList.page_asynct  s�   è ø€ ô, �y‰yà)ØØØ'Ø#Ø%ñó	
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜4Ÿ=™=¨(Ó3Ð3ð
ús   ‚A%BÁ'BÁ(BÚ
target_urlc                 óŽ   — | j                   j                  j                  j                  d|«      }t	        | j                   |«      S )zó
        Retrieve a specific page of NetworkInstance records from the API.
        Request is executed immediately

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

        :returns: Page of NetworkInstance
        rS   )r'   ÚdomainÚtwilioÚrequestr^   ©r   r‹   r‰   s      r!   Úget_pagezNetworkList.get_pagež  s7   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜4Ÿ=™=¨(Ó3Ð3r"   c              ƒ   óª   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   |«      S 7 Œ­w)a  
        Asynchronously retrieve a specific page of NetworkInstance records from the API.
        Request is executed immediately

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

        :returns: Page of NetworkInstance
        rS   N)r'   r�   rŽ   Úrequest_asyncr^   r�   s      r!   Úget_page_asynczNetworkList.get_page_asyncª  sD   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜4Ÿ=™=¨(Ó3Ð3ð Vús   ‚4A¶A·Ar   c                 ó0   — t        | j                  |¬«      S ©zl
        Constructs a NetworkContext

        :param sid: The SID of the Network resource to fetch.
        r%   ©r&   r'   ©r   r   s     r!   r   zNetworkList.get¶  ó   € ô ˜dŸm™m°Ô5Ð5r"   c                 ó0   — t        | j                  |¬«      S r–   r—   r˜   s     r!   Ú__call__zNetworkList.__call__¾  r™   r"   c                  ó   — y)r1   z <Twilio.Supersim.V1.NetworkList>rN   r(   s    r!   rC   zNetworkList.__repr__Æ  rb   r"   )rD   rE   rF   r   r   r
   Úunsetr   rH   Úobjectr   Úintr   r   rn   r	   rs   r   rv   ry   r^   rm   rr   r‘   r”   r&   r   r›   rC   rJ   rK   s   @r!   rd   rd   ´   sÚ  ø„ ð	  õ 	 ð +1¯,©,Ø"(§,¡,Ø"(§,¡,Ø#Ø#'ñ;à˜3 ˜;Ñ'ð;ð �3˜�;Ñð;ð �3˜�;Ñð	;ð
 ˜‰}ð;ð ˜C‘=ð;ð 
�/Ñ	"ó;ðF +1¯,©,Ø"(§,¡,Ø"(§,¡,Ø#Ø#'ñAà˜3 ˜;Ñ'ðAð �3˜�;ÑðAð �3˜�;Ñð	Að
 ˜‰}ðAð ˜C‘=ðAð 
�Ñ	'óAðF +1¯,©,Ø"(§,¡,Ø"(§,¡,Ø#Ø#'ñ!
à˜3 ˜;Ñ'ð!
ð �3˜�;Ñð!
ð �3˜�;Ñð	!
ð
 ˜‰}ð!
ð ˜C‘=ð!
ð 
ˆoÑ	ó!
ðJ +1¯,©,Ø"(§,¡,Ø"(§,¡,Ø#Ø#'ñ"
à˜3 ˜;Ñ'ð"
ð �3˜�;Ñð"
ð �3˜�;Ñð	"
ð
 ˜‰}ð"
ð ˜C‘=ð"
ð 
ˆoÑ	ó"
ðL +1¯,©,Ø"(§,¡,Ø"(§,¡,Ø)/¯©Ø*0¯,©,Ø(.¯©ñ(4à˜3 ˜;Ñ'ð(4ð �3˜�;Ñð(4ð �3˜�;Ñð	(4ð
 ˜#˜v˜+Ñ&ð(4ð ˜3 ˜;Ñ'ð(4ð ˜˜f˜Ñ%ð(4ð 
ó(4ðX +1¯,©,Ø"(§,¡,Ø"(§,¡,Ø)/¯©Ø*0¯,©,Ø(.¯©ñ(4à˜3 ˜;Ñ'ð(4ð �3˜�;Ñð(4ð �3˜�;Ñð	(4ð
 ˜#˜v˜+Ñ&ð(4ð ˜3 ˜;Ñ'ð(4ð ˜˜f˜Ñ%ð(4ð 
ó(4ðT
4 3ð 
4¨;ó 
4ð
4¨sð 
4°{ó 
4ð6�sð 6˜~ó 6ð6˜Cð 6 Nó 6ð2˜#÷ 2r"   rd   N)rG   Útypingr   r   r   r   r   r   r	   Útwilio.baser
   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r&   r^   rd   rN   r"   r!   ú<module>r§      se   ðñ÷ M× LÑ LÝ Ý 8Ý :Ý 2Ý 'Ý !ôAIÐ&ô AIôHBH�_ô BHôJ2�$ô 2ô&X2�,õ X2r"   