
    gF                         S r SSKJrJrJrJrJr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KJr  SSKJr   " S	 S
\5      r " S S\5      r " S S\5      r " S S\5      rg)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S rSrSr SS\S\\\4   S\	\   4U 4S jjjr
\SS j5       rSS	 jrSS
 jrS\4S jrSrU =r$ )NetworkInstance   a  
: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                 F  > [         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        SU=(       d    U R                  0U l        S U l	        g )Nr   friendly_nameurliso_countryidentifiers)
super__init__getr   r   r   r   r   	_solution_context)selfr   r   r   	__class__s       g/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/supersim/v1/network.pyr   NetworkInstance.__init__!   s     	!")++e"4,3KK,H")++e"4*1++m*D>Ekk->X 3?$((
 37    returnc                     U R                   c&  [        U R                  U R                  S   S9U l         U R                   $ )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"   _proxyNetworkInstance._proxy1   s9     == *NN5)DM }}r$   c                 6    U R                   R                  5       $ )C
Fetch the NetworkInstance


:returns: The fetched NetworkInstance
)r+   fetchr*   s    r"   r/   NetworkInstance.fetch@   s     {{  ""r$   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)]
Asynchronous coroutine to fetch the NetworkInstance


:returns: The fetched NetworkInstance
N)r+   fetch_asyncr*   s    r"   r3   NetworkInstance.fetch_asyncI   s       [[,,....s   '%'c                     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>+NetworkInstance.__repr__.<locals>.<genexpr>X         S<RDA7>>!//<R    "z'<Twilio.Supersim.V1.NetworkInstance {}>joinr   itemsr;   r    contexts     r"   __repr__NetworkInstance.__repr__R   s6     ((SDNN<P<P<RSS8??HHr$   )r   r   r   r   r   r   r   )N)r%   r(   )r%   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr+   r/   r3   rI   __static_attributes____classcell__r!   s   @r"   r   r      so     OS77)-c3h7>Fsm7 7   #/I# I Ir$   r   c                   ^   ^  \ rS rSrS\S\4U 4S jjrS\4S jrS\4S jr	S\4S jr
S	rU =r$ )
r(   \   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 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   r;   _uri)r    r   r   r!   s      r"   r   NetworkContext.__init__^   s=     	! 3
 &,,>t~~>	r$   r%   c                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   S9$ )r.   application/jsonAcceptGETmethoduriheadersr   r'   )r
   ofr)   r/   rY   r   r   r    rb   r   s      r"   r/   NetworkContext.fetchm   s]     ))B-.--%%U		7%SMMu%
 	
r$   c                    #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   S9$  N&7f)r2   r\   r]   r^   r_   Nr   r'   )r
   rc   r)   r3   rY   r   r   rd   s      r"   r3   NetworkContext.fetch_async   sq      ))B-.11dii 2 
 
 MMu%
 	
	
s   AA/A-'A/c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r6   r7   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr9   r:   r<   s      r"   r@   *NetworkContext.__repr__.<locals>.<genexpr>   rB   rC   z&<Twilio.Supersim.V1.NetworkContext {}>rD   rG   s     r"   rI   NetworkContext.__repr__   s6     ((SDNN<P<P<RSS7>>wGGr$   )r   rY   )rK   rL   rM   rN   r   rP   r   r   r/   r3   rI   rR   rS   rT   s   @r"   r(   r(   \   sB    ? ?c ?
 
(
? 
,H# H Hr$   r(   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)NetworkPage   r   r%   c                 .    [        U R                  U5      $ )zU
Build an instance of NetworkInstance

:param payload: Payload response from the API
)r   r)   )r    r   s     r"   get_instanceNetworkPage.get_instance   s     t}}g66r$   c                     g)r6   z <Twilio.Supersim.V1.NetworkPage>rX   r*   s    r"   rI   NetworkPage.__repr__        2r$   rX   N)rK   rL   rM   rN   r   rP   r   r   rp   rI   rR   rX   r$   r"   rm   rm      s)    7DcN 7 72# 2r$   rm   c                     ^  \ rS rSrS\4U 4S jjr\R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\\	\
4   S\\   S	\\   S
\\   4S jjr\R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\\	\
4   S\\   S	\\   S
\\   4S jjr\R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\\	\
4   S\\   S	\\   S
\\   4S jjr\R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\\	\
4   S\\   S	\\   S
\\   4S jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\\
4   S	\\\
4   S
\4S jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\\	\
4   S\\	\
4   S\\	\
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\	S
\4S jrS\	S
\4S jrS
\	4S jrSrU =r$ )NetworkList   r   c                 2   > [         TU ]  U5        SU l        g)zQ
Initialize the NetworkList

:param version: Version that contains the resource

z	/NetworksN)r   r   rY   )r    r   r!   s     r"   r   NetworkList.__init__   s     	!	r$   Nr   mccmnclimit	page_sizer%   c                     U R                   R                  XE5      nU R                  XX6S   S9nU R                   R                  XvS   5      $ )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
r}   r   rz   r{   r}   r|   )r)   read_limitspagestreamr    r   rz   r{   r|   r}   limitsr   s           r"   r   NetworkList.stream   sP    4 **5<yy##AT  
 }}##D/::r$   c                    #    U R                   R                  XE5      nU R                  XX6S   S9I Sh  vN nU R                   R                  XvS   5      $  N"7f)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
r}   r   Nr|   )r)   r   
page_asyncstream_asyncr   s           r"   r   NetworkList.stream_async   s]     4 **5<__##AT % 
 
 }}))$w@@	
s   2AA#Ac           
      :    [        U R                  UUUUUS95      $ )a3  
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   rz   r{   r|   r}   )listr   )r    r   rz   r{   r|   r}   s         r"   r   NetworkList.list  s1    2 KK'#  
 	
r$   c                 |   #    U R                  UUU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)aB  
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
r   N)r   )r    r   rz   r{   r|   r}   records          r"   
list_asyncNetworkList.list_async&  sZ     6 '+&7&7'# '8 ' ! !	
 	
 !	
 		
 	
s0   </<731
37<37<
page_tokenpage_numberc           	          [         R                  " UUUUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XxS9n	[        U R                  U	5      $ )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-urlencodedr\   r]   r^   r`   ra   paramsrb   )r
   rc   r)   r   rY   rm   
r    r   rz   r{   r   r   r}   datarb   responses
             r"   r   NetworkList.pageJ  s    , yy)'#%	
 ))^-PQR.==%%dii & 
 4==(33r$   c           	        #    [         R                  " UUUUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XxS9I Sh  vN n	[        U R                  U	5      $  N7f)	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   r\   r]   r^   r   N)r
   rc   r)   r   rY   rm   r   s
             r"   r   NetworkList.page_asynct  s     , yy)'#%	
 ))^-PQR.11dii 2 
 
 4==(33
s   A#B%B &B
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )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
r^   )r)   domaintwiliorequestrm   r    r   r   s      r"   get_pageNetworkList.get_page  s7     ==''..66ujI4==(33r$   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   U5      $  N7f)z
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
r^   N)r)   r   r   request_asyncrm   r   s      r"   get_page_asyncNetworkList.get_page_async  sC      --44BB5*UU4==(33 Vs   4AAAr   c                 *    [        U R                  US9$ zT
Constructs a NetworkContext

:param sid: The SID of the Network resource to fetch.
r'   r(   r)   r    r   s     r"   r   NetworkList.get       dmm55r$   c                 *    [        U R                  US9$ r   r   r   s     r"   __call__NetworkList.__call__  r   r$   c                     g)r6   z <Twilio.Supersim.V1.NetworkList>rX   r*   s    r"   rI   NetworkList.__repr__  rt   r$   )rY   ) rK   rL   rM   rN   r   r   r
   unsetr   rP   objectr   intr   r   r   r	   r   r   r   r   rm   r   r   r   r   r(   r   r   rI   rR   rS   rT   s   @r"   rv   rv      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 
(4X +1,,"(,,"(,,)/*0,,(.(43;'(4 3;(4 3;	(4
 #v+&(4 3;'(4 f%(4 
(4T
43 
4; 
4
4s 
4{ 
46s 6~ 66C 6N 62# 2 2r$   rv   N)rO   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(   rm   rv   rX   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$   