
    gk                         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	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values)InstanceContext)InstanceResource)ListResource)Version)Pagec                      ^  \ rS rSr " S S\5      r " S S\5      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$ )IpCommandInstance   c                       \ rS rSrSrSrSrg)IpCommandInstance.Direction   to_simfrom_sim N)__name__
__module____qualname____firstlineno__TO_SIMFROM_SIM__static_attributes__r       j/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/supersim/v1/ip_command.py	Directionr      s    r"   r$   c                       \ rS rSrSrSrSrg)IpCommandInstance.PayloadType   textbinaryr   N)r   r   r   r   TEXTBINARYr!   r   r"   r#   PayloadTyper&      s    r"   r,   c                   $    \ rS rSrSrSrSrSrSrg)IpCommandInstance.Status#   queuedsentreceivedfailedr   N)	r   r   r   r   QUEUEDSENTRECEIVEDFAILEDr!   r   r"   r#   Statusr.   #   s    r"   r8   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	        [        R                  " UR                  S5      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 )Nr;   account_sidsim_sid	sim_iccidstatus	direction	device_ipdevice_portpayload_typer:   date_createddate_updatedurl)super__init__getr;   r=   r>   r?   r@   rA   rB   r   integerrC   rD   r:   iso8601_datetimerE   rF   rG   	_solution_context)selfr9   r:   r;   	__class__s       r#   rI   IpCommandInstance.__init__9   sF    	!")++e"4*1++m*D&-kk)&<(/K(@<CKK<QBI++C
 )0K(@*5*=*=KK&+
 HO{{H
 '.kk)&<0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 59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: IpCommandContext for this IpCommandInstance
r;   r;   )rN   IpCommandContext_versionrM   rO   s    r#   _proxyIpCommandInstance._proxy[   s9     == ,NN5)DM }}r"   c                 6    U R                   R                  5       $ )G
Fetch the IpCommandInstance


:returns: The fetched IpCommandInstance
)rX   fetchrW   s    r#   r\   IpCommandInstance.fetchj   s     {{  ""r"   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)a
Asynchronous coroutine to fetch the IpCommandInstance


:returns: The fetched IpCommandInstance
N)rX   fetch_asyncrW   s    r#   r`   IpCommandInstance.fetch_asyncs   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>-IpCommandInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z)<Twilio.Supersim.V1.IpCommandInstance {}>joinrM   itemsrh   rO   contexts     r#   __repr__IpCommandInstance.__repr__|   s6     ((SDNN<P<P<RSS:AA'JJr"   )rN   rM   r=   rE   rF   rB   rC   rA   r:   rD   r;   r?   r>   r@   rG   )N)rR   rU   )rR   r   )r   r   r   r   objectr$   r,   r8   r   r   strr   r   rI   propertyrX   r\   r`   rv   r!   __classcell__rP   s   @r#   r   r      s    F f  " OS 9 9)-c3h 9>Fsm 9  9D  #/K# K K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$ )
rU      r9   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 IpCommandContext

:param version: Version that contains the resource
:param sid: The SID of the IP Command resource to fetch.
r;   z/IpCommands/{sid}Nr   )rH   rI   rM   rh   _uri)rO   r9   r;   rP   s      r#   rI   IpCommandContext.__init__   s=     	! 3
 (..@@	r"   rR   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;   rT   )r   ofrV   r\   r   r   rM   rO   r   r:   s      r#   r\   IpCommandContext.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)r_   r   r   r   r   Nr;   rT   )r   r   rV   r`   r   r   rM   r   s      r#   r`   IpCommandContext.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      $ )rc   rd   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frf   rg   ri   s      r#   rm   ,IpCommandContext.__repr__.<locals>.<genexpr>   ro   rp   z(<Twilio.Supersim.V1.IpCommandContext {}>rq   rt   s     r#   rv   IpCommandContext.__repr__   s6     ((SDNN<P<P<RSS9@@IIr"   )rM   r   )r   r   r   r   r   ry   rI   r   r\   r`   rv   r!   r{   r|   s   @r#   rU   rU      sG    A Ac A
( 
(
#4 
,J# J Jr"   rU   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)IpCommandPage   r:   rR   c                 .    [        U R                  U5      $ )zW
Build an instance of IpCommandInstance

:param payload: Payload response from the API
)r   rV   )rO   r:   s     r#   get_instanceIpCommandPage.get_instance   s     !88r"   c                     g)rc   z"<Twilio.Supersim.V1.IpCommandPage>r   rW   s    r#   rv   IpCommandPage.__repr__        4r"   r   N)r   r   r   r   r   ry   r   r   r   rv   r!   r   r"   r#   r   r      s*    9DcN 97H 94# 4r"   r   c                     ^  \ rS rSrS\4U 4S jjr\R                  \R                  \R                  4S\S\S\	S\
S\4   S	\
\\4   S
\
\\4   S\4S jjr\R                  \R                  \R                  4S\S\S\	S\
S\4   S	\
\\4   S
\
\\4   S\4S jjr\R                  \R                  \R                  \R                  SS4S\
\\4   S\
\\4   S\
S\4   S\
S\4   S\\	   S\\	   S\\   4S jjr\R                  \R                  \R                  \R                  SS4S\
\\4   S\
\\4   S\
S\4   S\
S\4   S\\	   S\\	   S\\   4S jjr\R                  \R                  \R                  \R                  SS4S\
\\4   S\
\\4   S\
S\4   S\
S\4   S\\	   S\\	   S\\   4S jjr\R                  \R                  \R                  \R                  SS4S\
\\4   S\
\\4   S\
S\4   S\
S\4   S\\	   S\\	   S\\   4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\
\\4   S\
\\4   S\
S\4   S\
S\4   S\
\\4   S\
\	\4   S\
\	\4   S\4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\
\\4   S\
\\4   S\
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!$ )&IpCommandList   r9   c                 2   > [         TU ]  U5        SU l        g)zS
Initialize the IpCommandList

:param version: Version that contains the resource

z/IpCommandsN)rH   rI   r   )rO   r9   rP   s     r#   rI   IpCommandList.__init__   s     	!!	r"   simr:   rC   rD   r&   callback_urlcallback_methodrR   c           	          [         R                  " UUUUUUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XxS9n[        U R                  U5      $ )a
  
Create the IpCommandInstance

:param sim: The `sid` or `unique_name` of the [Super SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the IP Command to.
:param payload: The data that will be sent to the device. The payload cannot exceed 1300 bytes. If the PayloadType is set to text, the payload is encoded in UTF-8. If PayloadType is set to binary, the payload is encoded in Base64.
:param device_port: The device port to which the IP Command will be sent.
:param payload_type:
:param callback_url: The URL we should call using the `callback_method` after we have sent the IP Command.
:param callback_method: The HTTP method we should use to call `callback_url`. Can be `GET` or `POST`, and the default is `POST`.

:returns: The created IpCommandInstance
SimPayload
DevicePortr,   CallbackUrlCallbackMethodContent-Type!application/x-www-form-urlencodedr   r   POSTr   r   datar   )r   r   rV   creater   r   	rO   r   r:   rC   rD   r   r   r   r   s	            r#   r   IpCommandList.create   s    , yy")++"1	
 ))^-PQR"E.--&&tyyt ' 
 !88r"   c           	        #    [         R                  " UUUUUUS.5      n[         R                  " SS05      nSUS'   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 create the IpCommandInstance

:param sim: The `sid` or `unique_name` of the [Super SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the IP Command to.
:param payload: The data that will be sent to the device. The payload cannot exceed 1300 bytes. If the PayloadType is set to text, the payload is encoded in UTF-8. If PayloadType is set to binary, the payload is encoded in Base64.
:param device_port: The device port to which the IP Command will be sent.
:param payload_type:
:param callback_url: The URL we should call using the `callback_method` after we have sent the IP Command.
:param callback_method: The HTTP method we should use to call `callback_url`. Can be `GET` or `POST`, and the default is `POST`.

:returns: The created IpCommandInstance
r   r   r   r   r   r   r   N)r   r   rV   create_asyncr   r   r   s	            r#   r   IpCommandList.create_async  s     , yy")++"1	
 ))^-PQR"E.22tyyt 3 
 
 !88	
s   A(B*B+BNr?   r@   r.   rA   r   limit	page_sizec                     U R                   R                  XV5      nU R                  UUUUUS   S9nU R                   R                  XS   5      $ )a  
Streams IpCommandInstance 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 sim: The SID or unique name of the Sim resource that IP Command was sent to or from.
:param str sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
:param &quot;IpCommandInstance.Status&quot; status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
:param &quot;IpCommandInstance.Direction&quot; direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
: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?   r@   rA   r   r   )rV   read_limitspagestream	rO   r   r?   r@   rA   r   r   limitsr   s	            r#   r   IpCommandList.streamC  sZ    8 **5<yy[)  
 }}##D/::r"   c                    #    U R                   R                  XV5      nU R                  UUUUUS   S9I Sh  vN nU R                   R                  XS   5      $  N"7f)a  
Asynchronously streams IpCommandInstance 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 sim: The SID or unique name of the Sim resource that IP Command was sent to or from.
:param str sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
:param &quot;IpCommandInstance.Status&quot; status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
:param &quot;IpCommandInstance.Direction&quot; direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
: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   )rV   r   
page_asyncstream_asyncr   s	            r#   r   IpCommandList.stream_asyncj  sg     8 **5<__[) % 
 
 }}))$w@@
s   5AA#Ac                 <    [        U R                  UUUUUUS95      $ )ao  
Lists IpCommandInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str sim: The SID or unique name of the Sim resource that IP Command was sent to or from.
:param str sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
:param &quot;IpCommandInstance.Status&quot; status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
:param &quot;IpCommandInstance.Direction&quot; direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
: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?   r@   rA   r   r   )listr   )rO   r   r?   r@   rA   r   r   s          r#   r   IpCommandList.list  s4    6 KK###  	
 		
r"   c           	      ~   #    U R                  U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)a~  
Asynchronously lists IpCommandInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str sim: The SID or unique name of the Sim resource that IP Command was sent to or from.
:param str sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
:param &quot;IpCommandInstance.Status&quot; status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
:param &quot;IpCommandInstance.Direction&quot; direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
: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   )rO   r   r?   r@   rA   r   r   records           r#   
list_asyncIpCommandList.list_async  s]     : '+&7&7### '8 ' ! !

 

 !

 
	
 

s0   =0=842
48=48=
page_tokenpage_numberc           
          [         R                  " UUUUUUUS.5      n[         R                  " SS05      n	SU	S'   U R                  R                  SU R                  XS9n
[        U R                  U
5      $ )a  
Retrieve a single page of IpCommandInstance records from the API.
Request is executed immediately

:param sim: The SID or unique name of the Sim resource that IP Command was sent to or from.
:param sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
:param status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
:param direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
: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 IpCommandInstance
r   SimIccidr8   r$   	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )r   r   rV   r   r   r   rO   r   r?   r@   rA   r   r   r   r   r   responses              r#   r   IpCommandList.page  s    0 yy% &'#%

 ))^-PQR.==%%dii & 
 T]]H55r"   c           
      
  #    [         R                  " UUUUUUUS.5      n[         R                  " SS05      n	SU	S'   U R                  R                  SU R                  XS9I Sh  vN n
[        U R                  U
5      $  N7f)	a  
Asynchronously retrieve a single page of IpCommandInstance records from the API.
Request is executed immediately

:param sim: The SID or unique name of the Sim resource that IP Command was sent to or from.
:param sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
:param status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
:param direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
: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 IpCommandInstance
r   r   r   r   r   r   r   N)r   r   rV   r   r   r   r   s              r#   r   IpCommandList.page_async  s     0 yy% &'#%

 ))^-PQR.11dii 2 
 
 T]]H55
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 IpCommandInstance records from the API.
Request is executed immediately

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

:returns: Page of IpCommandInstance
r   )rV   domaintwiliorequestr   rO   r   r   s      r#   get_pageIpCommandList.get_page8  s7     ==''..66ujIT]]H55r"   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 IpCommandInstance records from the API.
Request is executed immediately

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

:returns: Page of IpCommandInstance
r   N)rV   r   r   request_asyncr   r   s      r#   get_page_asyncIpCommandList.get_page_asyncD  sC      --44BB5*UUT]]H55 Vs   4AAAr;   c                 *    [        U R                  US9$ zY
Constructs a IpCommandContext

:param sid: The SID of the IP Command resource to fetch.
rT   rU   rV   rO   r;   s     r#   rJ   IpCommandList.getP        377r"   c                 *    [        U R                  US9$ r   r   r   s     r#   __call__IpCommandList.__call__X  r   r"   c                     g)rc   z"<Twilio.Supersim.V1.IpCommandList>r   rW   s    r#   rv   IpCommandList.__repr__`  r   r"   )r   )"r   r   r   r   r   rI   r   unsetry   intr   rx   r   r   r   r   r	   r   r
   r   r   r   r   r   r   r   r   r   rU   rJ   r   rv   r!   r{   r|   s   @r#   r   r      s   	" 	"  HN||+1<<.4ll*9*9 *9 	*9
 ;VCD*9 CK(*9 sF{+*9 
*9b HN||+1<<.4ll*9*9 *9 	*9
 ;VCD*9 CK(*9 sF{+*9 
*9\ #),,(.<BLLBH,,##'%;3;%; f%%; 0&89	%;
 6>?%; }%; C=%; 
#	$%;R #),,(.<BLLBH,,##'%A3;%A f%%A 0&89	%A
 6>?%A }%A C=%A 
(	)%AR #),,(.<BLLBH,,##'$
3;$
 f%$
 0&89	$

 6>?$
 }$
 C=$
 
	 $
P #),,(.<BLLBH,,##'%
3;%
 f%%
 0&89	%

 6>?%
 }%
 C=%
 
	 %
R #),,(.<BLLBH,,)/*0,,(.+63;+6 f%+6 0&89	+6
 6>?+6 #v+&+6 3;'+6 f%+6 
+6^ #),,(.<BLLBH,,)/*0,,(.+63;+6 f%+6 0&89	+6
 6>?+6 #v+&+6 3;'+6 f%+6 
+6Z
63 
6= 
6
6s 
6} 
68s 8/ 88C 8$4 84# 4 4r"   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rU   r   r   r   r"   r#   <module>r      sg     L L L + 8 : 2 ' !jK( jKZBJ BJJ4D 4&H4L H4r"   