Ë
    [üàg39  ã                   óº   — 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  G d	„ d
e«      Z G d„ de«      Z G d„ de«      Zy)aë  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Wireless
    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)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   óF   ‡ — e Zd ZdZdedeeef   defˆ fd„Zdefd„Z	ˆ xZ
S )ÚDataSessionInstanceaR
  
    :ivar sid: The unique string that we created to identify the DataSession resource.
    :ivar sim_sid: The SID of the [Sim resource](https://www.twilio.com/docs/iot/wireless/api/sim-resource) that the Data Session is for.
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DataSession resource.
    :ivar radio_link: The generation of wireless technology that the device was using.
    :ivar operator_mcc: The 'mobile country code' is the unique ID of the home country where the Data Session took place. See: [MCC/MNC lookup](http://mcc-mnc.com/).
    :ivar operator_mnc: The 'mobile network code' is the unique ID specific to the mobile operator network where the Data Session took place.
    :ivar operator_country: The three letter country code representing where the device's Data Session took place. This is determined by looking up the `operator_mcc`.
    :ivar operator_name: The friendly name of the mobile operator network that the [SIM](https://www.twilio.com/docs/iot/wireless/api/sim-resource)-connected device is attached to. This is determined by looking up the `operator_mnc`.
    :ivar cell_id: The unique ID of the cellular tower that the device was attached to at the moment when the Data Session was last updated.
    :ivar cell_location_estimate: An object that describes the estimated location in latitude and longitude where the device's Data Session took place. The location is derived from the `cell_id` when the Data Session was last updated. See [Cell Location Estimate Object](https://www.twilio.com/docs/iot/wireless/api/datasession-resource#cell-location-estimate-object).
    :ivar packets_uploaded: The number of packets uploaded by the device between the `start` time and when the Data Session was last updated.
    :ivar packets_downloaded: The number of packets downloaded by the device between the `start` time and when the Data Session was last updated.
    :ivar last_updated: The date that the resource was last updated, given as GMT in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
    :ivar start: The date that the Data Session started, given as GMT in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
    :ivar end: The date that the record ended, given as GMT in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
    :ivar imei: The 'international mobile equipment identity' is the unique ID of the device using the SIM to connect. An IMEI is a 15-digit string: 14 digits for the device identifier plus a check digit calculated using the Luhn formula.
    ÚversionÚpayloadÚsim_sidc                 ó´  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _	        |j                  d«      | _
        |j                  d	«      | _        |j                  d
«      | _        t        j                  |j                  d«      «      | _        t        j                  |j                  d«      «      | _        t        j"                  |j                  d«      «      | _        t        j"                  |j                  d«      «      | _        t        j"                  |j                  d«      «      | _        |j                  d«      | _        d|i| _        y )NÚsidr   Úaccount_sidÚ
radio_linkÚoperator_mccÚoperator_mncÚoperator_countryÚoperator_nameÚcell_idÚcell_location_estimateÚpackets_uploadedÚpackets_downloadedÚlast_updatedÚstartÚendÚimei)ÚsuperÚ__init__Úgetr   r   r   r   r   r   r   r   r   r   r   Úintegerr    r!   Úiso8601_datetimer"   r#   r$   r%   Ú	_solution)Úselfr   r   r   Ú	__class__s       €úf/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/wireless/v1/sim/data_session.pyr'   zDataSessionInstance.__init__-   s~  ø€ Ü‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ&-§k¡k°)Ó&<ˆŒØ*1¯+©+°mÓ*DˆÔØ)0¯©°\Ó)BˆŒØ+2¯;©;°~Ó+FˆÔØ+2¯;©;°~Ó+FˆÔØ/6¯{©{Ð;MÓ/NˆÔØ,3¯K©K¸Ó,HˆÔØ&-§k¡k°)Ó&<ˆŒØCJÇ;Á;Ø$óD
ˆÔ#ô 0;×/BÑ/BØ�K‰KÐ*Ó+ó0
ˆÔô 2=×1DÑ1DØ�K‰KÐ,Ó-ó2
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô *5×)EÑ)EØ�K‰K˜Ó ó*
ˆŒ
ô (3×'CÑ'CÀGÇKÁKÐPUÓDVÓ'WˆŒØ#*§;¡;¨vÓ#6ˆŒ	ð �wð
ˆ�ó    Úreturnc                 ó„   — 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/DataSessionInstance.__repr__.<locals>.<genexpr>U   s   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùs   ‚!z+<Twilio.Wireless.V1.DataSessionInstance {}>)Újoinr+   Úitemsr5   )r,   Úcontexts     r.   Ú__repr__zDataSessionInstance.__repr__O   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ<×CÑCÀGÓLÐLr/   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r'   r=   Ú__classcell__©r-   s   @r.   r   r      s9   ø„ ñð& 
 ð  
°$°s¸C°x±.ð  
È3õ  
ðD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)ÚDataSessionPager   r0   c                 óL   — t        | j                  || j                  d   ¬«      S )zq
        Build an instance of DataSessionInstance

        :param payload: Payload response from the API
        r   )r   )r   Ú_versionr+   )r,   r   s     r.   Úget_instancezDataSessionPage.get_instance[   s%   € ô #Ø�M‰M˜7¨D¯N©N¸9Ñ,Eô
ð 	
r/   c                  ó   — y)r2   z$<Twilio.Wireless.V1.DataSessionPage>© ©r,   s    r.   r=   zDataSessionPage.__repr__e   ó   € ð 6r/   N)	r>   r?   r@   r   rB   r   r   rI   r=   rK   r/   r.   rF   rF   Y   s*   „ ð
 D¨¨c¨¡Nð 
Ð7Jó 
ð6˜#ô 6r/   rF   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fd„Zˆ xZS )ÚDataSessionListr   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)zþ
        Initialize the DataSessionList

        :param version: Version that contains the resource
        :param sim_sid: The SID of the [Sim resource](https://www.twilio.com/docs/iot/wireless/api/sim-resource) with the Data Sessions to read.

        r   z/Sims/{sim_sid}/DataSessionsNrK   )r&   r'   r+   r5   Ú_uri)r,   r   r   r-   s      €r.   r'   zDataSessionList.__init__p   s@   ø€ ô 	‰Ñ˜Ô!ð �wð
ˆŒð :Ð2×9Ñ9ÑK¸D¿N¹NÑKˆ�	r/   ÚlimitÚ	page_sizer0   c                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )aa  
        Streams DataSessionInstance 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
        rS   ©rS   rR   )rH   Úread_limitsÚpageÚstream©r,   rR   rS   ÚlimitsrW   s        r.   rX   zDataSessionList.stream€   sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r/   c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)ap  
        Asynchronously streams DataSessionInstance 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
        rS   rU   NrR   )rH   rV   Ú
page_asyncÚstream_asyncrY   s        r.   r]   zDataSessionList.stream_async™   sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )aþ  
        Lists DataSessionInstance 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
        ©rR   rS   )ÚlistrX   )r,   rR   rS   s      r.   r`   zDataSessionList.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 DataSessionInstance 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]   )r,   rR   rS   Úrecords       r.   Ú
list_asynczDataSessionList.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 DataSessionInstance 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 DataSessionInstance
        ©Ú	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheaders)r   ÚofrH   rW   rQ   rF   r+   ©r,   rd   re   rS   Údatars   Úresponses          r.   rW   zDataSessionList.pageç   s   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜tŸ}™}¨h¸¿¹ÓGÐGr/   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 DataSessionInstance 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 DataSessionInstance
        rg   rj   rk   rl   rm   rn   ro   N)r   rt   rH   r\   rQ   rF   r+   ru   s          r.   r\   zDataSessionList.page_async  s�   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜tŸ}™}¨h¸¿¹ÓGÐGð
ús   ‚A"BÁ$B
Á%&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zû
        Retrieve a specific page of DataSessionInstance records from the API.
        Request is executed immediately

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

        :returns: Page of DataSessionInstance
        rn   )rH   ÚdomainÚtwilioÚrequestrF   r+   ©r,   ry   rw   s      r.   Úget_pagezDataSessionList.get_page)  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜tŸ}™}¨h¸¿¹ÓGÐGr/   c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)a
  
        Asynchronously retrieve a specific page of DataSessionInstance records from the API.
        Request is executed immediately

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

        :returns: Page of DataSessionInstance
        rn   N)rH   r{   r|   Úrequest_asyncrF   r+   r~   s      r.   Úget_page_asynczDataSessionList.get_page_async5  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜tŸ}™}¨h¸¿¹ÓGÐGð Vús   ‚4A¶A·&Ac                  ó   — y)r2   z$<Twilio.Wireless.V1.DataSessionList>rK   rL   s    r.   r=   zDataSessionList.__repr__A  rM   r/   )NN)r>   r?   r@   r   rB   r'   r   Úintr	   r   rX   r
   r]   r   r`   rc   r   Úunsetr   ÚobjectrF   rW   r\   r   r‚   r=   rC   rD   s   @r.   rO   rO   n   s÷  ø„ ðL ð L°#õ Lð$  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
Ð%Ñ	&ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
Ð*Ñ	+ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð!Ñ	"ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð!Ñ	"ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	Hà˜#˜v˜+Ñ&ðHð ˜3 ˜;Ñ'ðHð ˜˜f˜Ñ%ð	Hð
 
óHðF *0¯©Ø*0¯,©,Ø(.¯©ñ	Hà˜#˜v˜+Ñ&ðHð ˜3 ˜;Ñ'ðHð ˜˜f˜Ñ%ð	Hð
 
óHðB
H 3ð 
H¨?ó 
Hð
H¨sð 
H°ó 
Hð6˜#÷ 6r/   rO   N)rA   r   Útypingr   r   r   r   r   r	   r
   Útwilio.baser   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   rF   rO   rK   r/   r.   ú<module>r�      sQ   ðñõ ß L× LÑ Lß +å :Ý 2Ý 'Ý !ô=MÐ*ô =Mô@6�dô 6ô*Y6�lõ Y6r/   