
    g`                         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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.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserialize	serializevalues)InstanceContext)InstanceResource)ListResource)Version)Pagec                      ^  \ rS rSr " S S\5      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$ )EsimProfileInstance   c                   ,    \ rS rSrSrSrSrSrSrSr	Sr
g	)
EsimProfileInstance.Status   new	reserving	available
downloaded	installedfailed N)__name__
__module____qualname____firstlineno__NEW	RESERVING	AVAILABLE
DOWNLOADED	INSTALLEDFAILED__static_attributes__r       l/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/supersim/v1/esim_profile.pyStatusr      s     		!
	r+   r-   versionpayload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        UR                  S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=(       d    U R                  0U l        S U l        g )Nr0   account_sidiccidsim_sidstatuseidsmdp_plus_addressmatching_idactivation_code
error_codeerror_messagedate_createddate_updatedurl)super__init__getr0   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r   iso8601_datetimer<   r=   r>   	_solution_context)selfr.   r/   r0   	__class__s       r,   r@   EsimProfileInstance.__init__4   s<    	!")++e"4*1++m*D$+KK$8
&-kk)&<>Ekk(>S")++e"407<O0P*1++m*D.5kk:K.L)0\)B,3KK,H0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 7;r+   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: EsimProfileContext for this EsimProfileInstance
r0   r0   )rD   EsimProfileContext_versionrC   rE   s    r,   _proxyEsimProfileInstance._proxyQ   s9     == .NN5)DM }}r+   c                 6    U R                   R                  5       $ )K
Fetch the EsimProfileInstance


:returns: The fetched EsimProfileInstance
)rN   fetchrM   s    r,   rR   EsimProfileInstance.fetch`   s     {{  ""r+   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)e
Asynchronous coroutine to fetch the EsimProfileInstance


:returns: The fetched EsimProfileInstance
N)rN   fetch_asyncrM   s    r,   rV   EsimProfileInstance.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>/EsimProfileInstance.__repr__.<locals>.<genexpr>x         S<RDA7>>!//<R    "z+<Twilio.Supersim.V1.EsimProfileInstance {}>joinrC   itemsr^   rE   contexts     r,   __repr__EsimProfileInstance.__repr__r   s6     ((SDNN<P<P<RSS<CCGLLr+   )rD   rC   r2   r9   r<   r=   r6   r:   r;   r3   r8   r0   r4   r7   r5   r>   )N)rH   rK   )rH   r   )r    r!   r"   r#   objectr-   r   r   strr   r   r@   propertyrN   rR   rV   rl   r*   __classcell__rF   s   @r,   r   r      s{     $ OS;;)-c3h;>Fsm; ;:  #/M# M M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$ )
rK   |   r.   r0   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 EsimProfileContext

:param version: Version that contains the resource
:param sid: The SID of the eSIM Profile resource to fetch.
r0   z/ESimProfiles/{sid}Nr   )r?   r@   rC   r^   _uri)rE   r.   r0   rF   s      r,   r@   EsimProfileContext.__init__~   s=     	! 3
 *00B4>>B	r+   rH   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$ )rQ   application/jsonAcceptGETmethoduriheadersr0   rJ   )r   ofrL   rR   rv   r   rC   rE   r   r/   s      r,   rR   EsimProfileContext.fetch   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)rU   ry   rz   r{   r|   Nr0   rJ   )r   r   rL   rV   rv   r   rC   r   s      r,   rV   EsimProfileContext.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      $ )rY   rZ   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr\   r]   r_   s      r,   rc   .EsimProfileContext.__repr__.<locals>.<genexpr>   re   rf   z*<Twilio.Supersim.V1.EsimProfileContext {}>rg   rj   s     r,   rl   EsimProfileContext.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr+   )rC   rv   )r    r!   r"   r#   r   ro   r@   r   rR   rV   rl   r*   rq   rr   s   @r,   rK   rK   |   sG    C Cc C
* 
(
#6 
,L# L Lr+   rK   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)EsimProfilePage   r/   rH   c                 .    [        U R                  U5      $ )zY
Build an instance of EsimProfileInstance

:param payload: Payload response from the API
)r   rL   )rE   r/   s     r,   get_instanceEsimProfilePage.get_instance   s     #4=='::r+   c                     g)rY   z$<Twilio.Supersim.V1.EsimProfilePage>r   rM   s    r,   rl   EsimProfilePage.__repr__        6r+   r   N)r    r!   r"   r#   r   ro   r   r   r   rl   r*   r   r+   r,   r   r      s*    ;DcN ;7J ;6# 6r+   r   c                     ^  \ rS rSrS\4U 4S jjr\R                  \R                  \R                  \R                  4S\\	\
4   S\\	\
4   S\\\
4   S\\	\
4   S\4
S	 jjr\R                  \R                  \R                  \R                  4S\\	\
4   S\\	\
4   S\\\
4   S\\	\
4   S\4
S
 jjr\R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\S\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\S\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\S\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\S\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\\	\
4   S\\	\
4   S\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\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"$ )!EsimProfileList   r.   c                 2   > [         TU ]  U5        SU l        g)zU
Initialize the EsimProfileList

:param version: Version that contains the resource

z/ESimProfilesN)r?   r@   rv   )rE   r.   rF   s     r,   r@   EsimProfileList.__init__   s     	!#	r+   callback_urlcallback_methodgenerate_matching_idr6   rH   c                    [         R                  " UU[        R                  " U5      US.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XVS9n[        U R                  U5      $ )aq  
Create the EsimProfileInstance

:param callback_url: The URL we should call using the `callback_method` when the status of the eSIM Profile changes. At this stage of the eSIM Profile pilot, the a request to the URL will only be called when the ESimProfile resource changes from `reserving` to `available`.
:param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST.
:param generate_matching_id: When set to `true`, a value for `Eid` does not need to be provided. Instead, when the eSIM profile is reserved, a matching ID will be generated and returned via the `matching_id` property. This identifies the specific eSIM profile that can be used by any capable device to claim and download the profile.
:param eid: Identifier of the eUICC that will claim the eSIM Profile.

:returns: The created EsimProfileInstance
CallbackUrlCallbackMethodGenerateMatchingIdEidContent-Type!application/x-www-form-urlencodedry   rz   POSTr}   r~   datar   )r   r   r   boolean_to_stringrL   createrv   r   rE   r   r   r   r6   r   r   r/   s           r,   r   EsimProfileList.create   s    $ yy+"1&/&A&ABV&W	
 ))^-PQR"E.--&&tyyt ' 
 #4=='::r+   c                 6  #    [         R                  " UU[        R                  " U5      US.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XVS9I Sh  vN n[        U R                  U5      $  N7f)	a  
Asynchronously create the EsimProfileInstance

:param callback_url: The URL we should call using the `callback_method` when the status of the eSIM Profile changes. At this stage of the eSIM Profile pilot, the a request to the URL will only be called when the ESimProfile resource changes from `reserving` to `available`.
:param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST.
:param generate_matching_id: When set to `true`, a value for `Eid` does not need to be provided. Instead, when the eSIM profile is reserved, a matching ID will be generated and returned via the `matching_id` property. This identifies the specific eSIM profile that can be used by any capable device to claim and download the profile.
:param eid: Identifier of the eUICC that will claim the eSIM Profile.

:returns: The created EsimProfileInstance
r   r   r   ry   rz   r   r   N)r   r   r   r   rL   create_asyncrv   r   r   s           r,   r   EsimProfileList.create_async  s     $ yy+"1&/&A&ABV&W	
 ))^-PQR"E.22tyyt 3 
 
 #4=='::	
s   A:B<B=BNr4   r5   r   limit	page_sizec                     U R                   R                  XE5      nU R                  XX6S   S9nU R                   R                  XvS   5      $ )a  
Streams EsimProfileInstance 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 eid: List the eSIM Profiles that have been associated with an EId.
:param str sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
:param &quot;EsimProfileInstance.Status&quot; status: List the eSIM Profiles that are in a given status.
: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   r6   r4   r5   r   r   )rL   read_limitspagestreamrE   r6   r4   r5   r   r   limitsr   s           r,   r   EsimProfileList.stream-  sP    4 **5<yyVk?R  
 }}##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 EsimProfileInstance 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 eid: List the eSIM Profiles that have been associated with an EId.
:param str sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
:param &quot;EsimProfileInstance.Status&quot; status: List the eSIM Profiles that are in a given status.
: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   )rL   r   
page_asyncstream_asyncr   s           r,   r   EsimProfileList.stream_asyncN  s]     4 **5<__Vk?R % 
 
 }}))$w@@	
s   2AA#Ac           
      :    [        U R                  UUUUUS95      $ )a9  
Lists EsimProfileInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str eid: List the eSIM Profiles that have been associated with an EId.
:param str sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
:param &quot;EsimProfileInstance.Status&quot; status: List the eSIM Profiles that are in a given status.
: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
r6   r4   r5   r   r   )listr   )rE   r6   r4   r5   r   r   s         r,   r   EsimProfileList.listo  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)aH  
Asynchronously lists EsimProfileInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str eid: List the eSIM Profiles that have been associated with an EId.
:param str sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
:param &quot;EsimProfileInstance.Status&quot; status: List the eSIM Profiles that are in a given status.
: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   )rE   r6   r4   r5   r   r   records          r,   
list_asyncEsimProfileList.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 EsimProfileInstance records from the API.
Request is executed immediately

:param eid: List the eSIM Profiles that have been associated with an EId.
:param sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
:param status: List the eSIM Profiles that are in a given status.
: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 EsimProfileInstance
r   SimSidr-   	PageTokenr   PageSizer   r   ry   rz   r{   r}   r~   paramsr   )r   r   rL   r   rv   r   
rE   r6   r4   r5   r   r   r   r   r   responses
             r,   r   EsimProfileList.page  s    , yy! '#%	
 ))^-PQR.==%%dii & 
 t}}h77r+   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 EsimProfileInstance records from the API.
Request is executed immediately

:param eid: List the eSIM Profiles that have been associated with an EId.
:param sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
:param status: List the eSIM Profiles that are in a given status.
: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 EsimProfileInstance
r   r   r   ry   rz   r{   r   N)r   r   rL   r   rv   r   r   s
             r,   r   EsimProfileList.page_async  s     , yy! '#%	
 ))^-PQR.11dii 2 
 
 t}}h77
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 EsimProfileInstance records from the API.
Request is executed immediately

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

:returns: Page of EsimProfileInstance
r{   )rL   domaintwiliorequestr   rE   r   r   s      r,   get_pageEsimProfileList.get_page
  s7     ==''..66ujIt}}h77r+   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 EsimProfileInstance records from the API.
Request is executed immediately

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

:returns: Page of EsimProfileInstance
r{   N)rL   r   r   request_asyncr   r   s      r,   get_page_asyncEsimProfileList.get_page_async  sC      --44BB5*UUt}}h77 Vs   4AAAr0   c                 *    [        U R                  US9$ z]
Constructs a EsimProfileContext

:param sid: The SID of the eSIM Profile resource to fetch.
rJ   rK   rL   rE   r0   s     r,   rA   EsimProfileList.get"       "$--S99r+   c                 *    [        U R                  US9$ r   r   r   s     r,   __call__EsimProfileList.__call__*  r   r+   c                     g)rY   z$<Twilio.Supersim.V1.EsimProfileList>r   rM   s    r,   rl   EsimProfileList.__repr__2  r   r+   )rv   )#r    r!   r"   r#   r   r@   r   unsetr   ro   rn   boolr   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   rK   rA   r   rl   r*   rq   rr   s   @r,   r   r      s   	$ 	$ ,2<<.4ll4:LL"(,,$;CK($; sF{+$; $D&L1	$;
 3;$; 
$;P ,2<<.4ll4:LL"(,,$;CK($; sF{+$; $D&L1	$;
 3;$; 
$;P #),,&,ll>Dll##';3;; sF{#; 2F:;	;
 }; C=; 
%	&;F #),,&,ll>Dll##'A3;A sF{#A 2F:;	A
 }A C=A 
*	+AF #),,&,ll>Dll##'!
3;!
 sF{#!
 2F:;	!

 }!
 C=!
 
!	"!
J #),,&,ll>Dll##'"
3;"
 sF{#"
 2F:;	"

 }"
 C="
 
!	""
L #),,&,ll>Dll)/*0,,(.(83;(8 sF{#(8 2F:;	(8
 #v+&(8 3;'(8 f%(8 
(8X #),,&,ll>Dll)/*0,,(.(83;(8 sF{#(8 2F:;	(8
 #v+&(8 3;'(8 f%(8 
(8T
83 
8? 
8
8s 
8 
8:s :1 ::C :$6 :6# 6 6r+   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rK   r   r   r   r+   r,   <module>r      sj     L L L 6 6 8 : 2 ' !`M* `MFBL BLJ6d 6&d6l d6r+   