
    g39                         S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
JrJr  SSKJr  SSKJr  SSKJr  SSKJr   " S	 S
\5      r " S S\5      r " S S\5      rg)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                   T   ^  \ rS rSrSrS\S\\\4   S\4U 4S jjr	S\4S jr
S	rU =r$ )
DataSessionInstance   a
  
: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U ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l	        UR                  S5      U l
        UR                  S	5      U l        UR                  S
5      U l        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S5      5      U l        [        R"                  " UR                  S5      5      U l        [        R"                  " UR                  S5      5      U l        [        R"                  " UR                  S5      5      U l        UR                  S5      U l        SU0U l        g )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       p/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/wireless/v1/sim/data_session.pyr(   DataSessionInstance.__init__-   s~   !")++e"4&-kk)&<*1++m*D)0\)B+2;;~+F+2;;~+F/6{{;M/N,3KK,H&-kk)&<CJ;;$D
# 0;/B/BKK*+0
 2=1D1DKK,-2
 1<0L0LKK'1
 *5)E)EKK *

 (3'C'CGKKPUDV'W#*;;v#6	 w
    returnc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7f)z{}={}N)format).0kvs      r/   	<genexpr>/DataSessionInstance.__repr__.<locals>.<genexpr>U   s      S<RDA7>>!//<Rs    "z+<Twilio.Wireless.V1.DataSessionInstance {}>)joinr,   itemsr7   )r-   contexts     r/   __repr__DataSessionInstance.__repr__O   s6     ((SDNN<P<P<RSS<CCGLLr1   )r,   r   r   r    r%   r&   r#   r   r   r   r   r"   r!   r   r   r   r$   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r(   r@   __static_attributes____classcell__r.   s   @r/   r   r      s?    & 
  
$sCx.  
3  
DM# M Mr1   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)DataSessionPageY   r   r2   c                 D    [        U R                  XR                  S   S9$ )zY
Build an instance of DataSessionInstance

:param payload: Payload response from the API
r   )r   )r   _versionr,   )r-   r   s     r/   get_instanceDataSessionPage.get_instance[   s#     #MM7NN9,E
 	
r1   c                     g)r4   z$<Twilio.Wireless.V1.DataSessionPage> r-   s    r/   r@   DataSessionPage.__repr__e        6r1   rS   N)rB   rC   rD   rE   r   rG   r   r   rP   r@   rH   rS   r1   r/   rL   rL   Y   s*    
DcN 
7J 
6# 6r1   rL   c            	       "  ^  \ rS rSrS\S\4U 4S jjr  SS\\   S\\   S\	\
   4S jjr  SS\\   S\\   S\\
   4S	 jjr  SS\\   S\\   S\\
   4S
 jjr  SS\\   S\\   S\\
   4S jjr\R$                  \R$                  \R$                  4S\\\4   S\\\4   S\\\4   S\4S jjr\R$                  \R$                  \R$                  4S\\\4   S\\\4   S\\\4   S\4S jjrS\S\4S jrS\S\4S jrS\4S jrSrU =r$ )DataSessionListn   r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)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}/DataSessionsNrS   )r'   r(   r,   r7   _uri)r-   r   r   r.   s      r/   r(   DataSessionList.__init__p   s=     	! w
 399KDNNK	r1   limit	page_sizer2   c                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
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
r^   r^   r]   )rO   read_limitspagestreamr-   r]   r^   limitsrb   s        r/   rc   DataSessionList.stream   sF    ( **5<yy6+#6y7}}##D/::r1   c                    #    U R                   R                  X5      nU R                  US   S9I Sh  vN nU R                   R                  XCS   5      $  N"7f)a  
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
r^   r`   Nr]   )rO   ra   
page_asyncstream_asyncrd   s        r/   ri   DataSessionList.stream_async   sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )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
r]   r^   )listrc   )r-   r]   r^   s      r/   rm   DataSessionList.list   s(    & KK#  
 	
r1   c                 v   #    U R                  UUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)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
rl   N)ri   )r-   r]   r^   records       r/   
list_asyncDataSessionList.list_async   sQ     * '+&7&7# '8 ' ! !
 
 !
 	
 
s0   9,940.
049049
page_tokenpage_numberc                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9n[        U R                  X`R                  5      $ )aC  
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   ofrO   rb   r[   rL   r,   r-   rs   rt   r^   datar   responses          r/   rb   DataSessionList.page   s{      yy'#%
 ))^-PQR.==%%dii & 
 t}}hGGr1   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  X`R                  5      $  N$7f)	aR  
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
rv   ry   rz   r{   r|   r}   r~   N)r   r   rO   rh   r[   rL   r,   r   s          r/   rh   DataSessionList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 t}}hGG
s   A B	"B#%B	
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )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
r}   )rO   domaintwiliorequestrL   r,   r-   r   r   s      r/   get_pageDataSessionList.get_page)  s;     ==''..66ujIt}}hGGr1   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   X R
                  5      $  N$7f)z
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
r}   N)rO   r   r   request_asyncrL   r,   r   s      r/   get_page_asyncDataSessionList.get_page_async5  sG      --44BB5*UUt}}hGG Vs   4AA%Ac                     g)r4   z$<Twilio.Wireless.V1.DataSessionList>rS   rT   s    r/   r@   DataSessionList.__repr__A  rV   r1   )r,   r[   )NN)rB   rC   rD   rE   r   rG   r(   r   intr	   r   rc   r
   ri   r   rm   rq   r   unsetr   objectrL   rb   rh   r   r   r@   rH   rI   rJ   s   @r/   rX   rX   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# 6 6r1   rX   N)rF   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   rL   rX   rS   r1   r/   <module>r      sQ     L L L + : 2 ' !=M* =M@6d 6*Y6l Y6r1   