
    g6]                         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\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$ )SmsCommandInstance   c                       \ rS rSrSrSrSrg)SmsCommandInstance.Direction   to_simfrom_sim N)__name__
__module____qualname____firstlineno__TO_SIMFROM_SIM__static_attributes__r       k/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/supersim/v1/sms_command.py	Directionr      s    r"   r$   c                   (    \ rS rSrSrSrSrSrSrSr	g)	SmsCommandInstance.Status   queuedsent	deliveredreceivedfailedr   N)
r   r   r   r   QUEUEDSENT	DELIVEREDRECEIVEDFAILEDr!   r   r"   r#   Statusr&      s    	r"   r2   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        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 )
Nr5   account_sidsim_sidr4   status	directiondate_createddate_updatedurl)super__init__getr5   r7   r8   r4   r9   r:   r   iso8601_datetimer;   r<   r=   	_solution_context)selfr3   r4   r5   	__class__s       r#   r?   SmsCommandInstance.__init__2   s     	!")++e"4*1++m*D&-kk)&<&-kk)&<=D[[=RCJ;;D
 1<0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 6: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: SmsCommandContext for this SmsCommandInstance
r5   r5   )rC   SmsCommandContext_versionrB   rD   s    r#   _proxySmsCommandInstance._proxyL   s9     == -NN5)DM }}r"   c                 6    U R                   R                  5       $ )I
Fetch the SmsCommandInstance


:returns: The fetched SmsCommandInstance
)rM   fetchrL   s    r#   rQ   SmsCommandInstance.fetch[   s     {{  ""r"   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)c
Asynchronous coroutine to fetch the SmsCommandInstance


:returns: The fetched SmsCommandInstance
N)rM   fetch_asyncrL   s    r#   rU   SmsCommandInstance.fetch_asyncd   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>.SmsCommandInstance.__repr__.<locals>.<genexpr>s         S<RDA7>>!//<R    "z*<Twilio.Supersim.V1.SmsCommandInstance {}>joinrB   itemsr]   rD   contexts     r#   __repr__SmsCommandInstance.__repr__m   s6     ((SDNN<P<P<RSS;BB7KKr"   )rC   rB   r7   r;   r<   r:   r4   r5   r8   r9   r=   )N)rG   rJ   )rG   r   )r   r   r   r   objectr$   r2   r   r   strr   r   r?   propertyrM   rQ   rU   rk   r!   __classcell__rE   s   @r#   r   r      s    F  
 OS::)-c3h:>Fsm: :4  #/L# L L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$ )
rJ   w   r3   r5   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 SmsCommandContext

:param version: Version that contains the resource
:param sid: The SID of the SMS Command resource to fetch.
r5   z/SmsCommands/{sid}Nr   )r>   r?   rB   r]   _uri)rD   r3   r5   rE   s      r#   r?   SmsCommandContext.__init__y   s=     	! 3
 )//A$..A	r"   rG   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$ )rP   application/jsonAcceptGETmethoduriheadersr5   rI   )r   ofrK   rQ   ru   r   rB   rD   r~   r4   s      r#   rQ   SmsCommandContext.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)rT   rx   ry   rz   r{   Nr5   rI   )r   r   rK   rU   ru   r   rB   r   s      r#   rU   SmsCommandContext.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      $ )rX   rY   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr[   r\   r^   s      r#   rb   -SmsCommandContext.__repr__.<locals>.<genexpr>   rd   re   z)<Twilio.Supersim.V1.SmsCommandContext {}>rf   ri   s     r#   rk   SmsCommandContext.__repr__   s6     ((SDNN<P<P<RSS:AA'JJr"   )rB   ru   )r   r   r   r   r   rn   r?   r   rQ   rU   rk   r!   rp   rq   s   @r#   rJ   rJ   w   sG    B Bc B
) 
(
#5 
,K# K Kr"   rJ   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)SmsCommandPage   r4   rG   c                 .    [        U R                  U5      $ )zX
Build an instance of SmsCommandInstance

:param payload: Payload response from the API
)r   rK   )rD   r4   s     r#   get_instanceSmsCommandPage.get_instance   s     "$--99r"   c                     g)rX   z#<Twilio.Supersim.V1.SmsCommandPage>r   rL   s    r#   rk   SmsCommandPage.__repr__        5r"   r   N)r   r   r   r   r   rn   r   r   r   rk   r!   r   r"   r#   r   r      s*    :DcN :7I :5# 5r"   r   c                     ^  \ rS rSrS\4U 4S jjr\R                  \R                  4S\S\S\	\\
4   S\	\\
4   S\4
S	 jjr\R                  \R                  4S\S\S\	\\
4   S\	\\
4   S\4
S
 jjr\R                  \R                  \R                  SS4S\	\\
4   S\	S\
4   S\	S\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  SS4S\	\\
4   S\	S\
4   S\	S\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  SS4S\	\\
4   S\	S\
4   S\	S\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  SS4S\	\\
4   S\	S\
4   S\	S\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  \R                  \R                  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                  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!$ )"SmsCommandList   r3   c                 2   > [         TU ]  U5        SU l        g)zT
Initialize the SmsCommandList

:param version: Version that contains the resource

z/SmsCommandsN)r>   r?   ru   )rD   r3   rE   s     r#   r?   SmsCommandList.__init__   s     	!"	r"   simr4   callback_methodcallback_urlrG   c                     [         R                  " 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                  XVS9n[        U R                  U5      $ )a  
Create the SmsCommandInstance

:param sim: The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the SMS Command to.
:param payload: The message body of the SMS Command.
:param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST.
:param callback_url: The URL we should call using the `callback_method` after we have sent the command.

:returns: The created SmsCommandInstance
SimPayloadCallbackMethodCallbackUrlContent-Type!application/x-www-form-urlencodedrx   ry   POSTr|   r}   datar~   )r   r   rK   createru   r   rD   r   r4   r   r   r   r~   s          r#   r   SmsCommandList.create   s    $ yy""1+	
 ))^-PQR"E.--&&tyyt ' 
 "$--99r"   c                   #    [         R                  " 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                  XVS9I Sh  vN n[        U R                  U5      $  N7f)	a   
Asynchronously create the SmsCommandInstance

:param sim: The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the SMS Command to.
:param payload: The message body of the SMS Command.
:param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST.
:param callback_url: The URL we should call using the `callback_method` after we have sent the command.

:returns: The created SmsCommandInstance
r   r   r   rx   ry   r   r   N)r   r   rK   create_asyncru   r   r   s          r#   r   SmsCommandList.create_async  s     $ yy""1+	
 ))^-PQR"E.22tyyt 3 
 
 "$--99	
s   A&B(B)BNr9   r&   r:   r   limit	page_sizec                     U R                   R                  XE5      nU R                  XX6S   S9nU R                   R                  XvS   5      $ )a  
Streams SmsCommandInstance 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 SMS Command was sent to or from.
:param &quot;SmsCommandInstance.Status&quot; status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
:param &quot;SmsCommandInstance.Direction&quot; direction: The direction of the SMS 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   r9   r:   r   r   )rK   read_limitspagestreamrD   r   r9   r:   r   r   limitsr   s           r#   r   SmsCommandList.stream(  sP    4 **5<yyi+CV  
 }}##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 SmsCommandInstance 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 SMS Command was sent to or from.
:param &quot;SmsCommandInstance.Status&quot; status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
:param &quot;SmsCommandInstance.Direction&quot; direction: The direction of the SMS 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   )rK   r   
page_asyncstream_asyncr   s           r#   r   SmsCommandList.stream_asyncI  s]     4 **5<__i+CV % 
 
 }}))$w@@	
s   2AA#Ac           
      :    [        U R                  UUUUUS95      $ )a+  
Lists SmsCommandInstance 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 SMS Command was sent to or from.
:param &quot;SmsCommandInstance.Status&quot; status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
:param &quot;SmsCommandInstance.Direction&quot; direction: The direction of the SMS 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   r9   r:   r   r   )listr   )rD   r   r9   r:   r   r   s         r#   r   SmsCommandList.listj  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)a:  
Asynchronously lists SmsCommandInstance 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 SMS Command was sent to or from.
:param &quot;SmsCommandInstance.Status&quot; status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
:param &quot;SmsCommandInstance.Direction&quot; direction: The direction of the SMS 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   )rD   r   r9   r:   r   r   records          r#   
list_asyncSmsCommandList.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      $ )at  
Retrieve a single page of SmsCommandInstance records from the API.
Request is executed immediately

:param sim: The SID or unique name of the Sim resource that SMS Command was sent to or from.
:param status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
:param direction: The direction of the SMS 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 SmsCommandInstance
r   r2   r$   	PageTokenr   PageSizer   r   rx   ry   rz   r|   r}   paramsr~   )r   r   rK   r   ru   r   
rD   r   r9   r:   r   r   r   r   r~   responses
             r#   r   SmsCommandList.page  s    , yy &'#%	
 ))^-PQR.==%%dii & 
 dmmX66r"   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 SmsCommandInstance records from the API.
Request is executed immediately

:param sim: The SID or unique name of the Sim resource that SMS Command was sent to or from.
:param status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
:param direction: The direction of the SMS 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 SmsCommandInstance
r   r   r   rx   ry   rz   r   N)r   r   rK   r   ru   r   r   s
             r#   r   SmsCommandList.page_async  s     , yy &'#%	
 ))^-PQR.11dii 2 
 
 dmmX66
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 SmsCommandInstance records from the API.
Request is executed immediately

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

:returns: Page of SmsCommandInstance
rz   )rK   domaintwiliorequestr   rD   r   r   s      r#   get_pageSmsCommandList.get_page  s7     ==''..66ujIdmmX66r"   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 SmsCommandInstance records from the API.
Request is executed immediately

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

:returns: Page of SmsCommandInstance
rz   N)rK   r   r   request_asyncr   r   s      r#   get_page_asyncSmsCommandList.get_page_async  sC      --44BB5*UUdmmX66 Vs   4AAAr5   c                 *    [        U R                  US9$ z[
Constructs a SmsCommandContext

:param sid: The SID of the SMS Command resource to fetch.
rI   rJ   rK   rD   r5   s     r#   r@   SmsCommandList.get       !C88r"   c                 *    [        U R                  US9$ r   r   r   s     r#   __call__SmsCommandList.__call__%  r   r"   c                     g)rX   z#<Twilio.Supersim.V1.SmsCommandList>r   rL   s    r#   rk   SmsCommandList.__repr__-  r   r"   )ru   )"r   r   r   r   r   r?   r   unsetrn   r   rm   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   rJ   r@   r   rk   r!   rp   rq   s   @r#   r   r      s   	# 	# /5ll+1<<$:$: $: sF{+	$:
 CK($: 
$:T /5ll+1<<$:$: $: sF{+	$:
 CK($: 
$:P #),,=C\\CI<<##';3;; 169:; 7?@	;
 }; C=; 
$	%;F #),,=C\\CI<<##'A3;A 169:A 7?@	A
 }A C=A 
)	*AF #),,=C\\CI<<##'!
3;!
 169:!
 7?@	!

 }!
 C=!
 
 	!!
J #),,=C\\CI<<##'"
3;"
 169:"
 7?@	"

 }"
 C="
 
 	!"
L #),,=C\\CI<<)/*0,,(.(73;(7 169:(7 7?@	(7
 #v+&(7 3;'(7 f%(7 
(7X #),,=C\\CI<<)/*0,,(.(73;(7 169:(7 7?@	(7
 #v+&(7 3;'(7 f%(7 
(7T
73 
7> 
7
7s 
7~ 
79s 90 99C 9$5 95# 5 5r"   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   rJ   r   r   r   r"   r#   <module>r      sg     L L L + 8 : 2 ' ![L) [L|BK BKJ5T 5&d5\ d5r"   