
    g:M                         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 - Preview
 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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$ )CommandInstance   z
:ivar sid:
:ivar account_sid:
:ivar device_sid:
:ivar sim_sid:
:ivar command:
:ivar command_mode:
:ivar status:
:ivar direction:
:ivar date_created:
:ivar date_updated:
:ivar url:
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
        [        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
device_sidsim_sidcommandcommand_modestatus	directiondate_createddate_updatedurl)super__init__getr   r   r   r   r   r   r   r   r   iso8601_datetimer    r!   r"   	_solution_context)selfr   r   r   	__class__s       l/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/preview/wireless/command.pyr$   CommandInstance.__init__(   s    	!")++e"4*1++m*D)0\)B&-kk)&<&-kk)&<+2;;~+F%,[[%:(/K(@0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 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: CommandContext for this CommandInstance
r   r   )r(   CommandContext_versionr'   r)   s    r+   _proxyCommandInstance._proxyB   s9     == *NN5)DM }}r-   c                 6    U R                   R                  5       $ )C
Fetch the CommandInstance


:returns: The fetched CommandInstance
)r4   fetchr3   s    r+   r8   CommandInstance.fetchQ   s     {{  ""r-   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)]
Asynchronous coroutine to fetch the CommandInstance


:returns: The fetched CommandInstance
N)r4   fetch_asyncr3   s    r+   r<   CommandInstance.fetch_asyncZ   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>+CommandInstance.__repr__.<locals>.<genexpr>i         S<RDA7>>!//<R    "z,<Twilio.Preview.Wireless.CommandInstance {}>joinr'   itemsrD   r)   contexts     r+   __repr__CommandInstance.__repr__c   s6     ((SDNN<P<P<RSS=DDWMMr-   )r(   r'   r   r   r   r    r!   r   r   r   r   r   r"   )N)r.   r1   )r.   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r$   propertyr4   r8   r<   rR   __static_attributes____classcell__r*   s   @r+   r   r      so     OS77)-c3h7>Fsm7 74  #/N# N N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$ )
r1   m   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 CommandContext

:param version: Version that contains the resource
:param sid:
r   z/Commands/{sid}N )r#   r$   r'   rD   _uri)r)   r   r   r*   s      r+   r$   CommandContext.__init__o   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$ )r7   application/jsonAcceptGETmethoduriheadersr   r0   )r   ofr2   r8   rb   r   r'   r)   rk   r   s      r+   r8   CommandContext.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;   re   rf   rg   rh   Nr   r0   )r   rl   r2   r<   rb   r   r'   rm   s      r+   r<   CommandContext.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      $ )r?   r@   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frB   rC   rE   s      r+   rI   *CommandContext.__repr__.<locals>.<genexpr>   rK   rL   z+<Twilio.Preview.Wireless.CommandContext {}>rM   rP   s     r+   rR   CommandContext.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr-   )r'   rb   )rT   rU   rV   rW   r   rY   r$   r   r8   r<   rR   r[   r\   r]   s   @r+   r1   r1   m   sB    ? ?c ?
 
(
? 
,M# M Mr-   r1   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)CommandPage   r   r.   c                 .    [        U R                  U5      $ )zU
Build an instance of CommandInstance

:param payload: Payload response from the API
)r   r2   )r)   r   s     r+   get_instanceCommandPage.get_instance   s     t}}g66r-   c                     g)r?   z%<Twilio.Preview.Wireless.CommandPage>ra   r3   s    r+   rR   CommandPage.__repr__        7r-   ra   N)rT   rU   rV   rW   r   rY   r   r   ry   rR   r[   ra   r-   r+   rv   rv      s)    7DcN 7 77# 7r-   rv   c                   ~  ^  \ rS rSrS\4U 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\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\S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S	\	\\
4   S
\	\\
4   S\4S jjr\R                  \R                  \R                  \R                  SS4S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  SS4S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  SS4S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  SS4S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\	\\
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                  \R                  4S\	\\
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!$ )#CommandList   r   c                 2   > [         TU ]  U5        SU l        g)zQ
Initialize the CommandList

:param version: Version that contains the resource

z	/CommandsN)r#   r$   rb   )r)   r   r*   s     r+   r$   CommandList.__init__   s     	!	r-   r   devicesimcallback_methodcallback_urlr   include_sidr.   c           
          [         R                  " U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                  XS9n
[        U R                  U
5      $ )z
Create the CommandInstance

:param command:
:param device:
:param sim:
:param callback_method:
:param callback_url:
:param command_mode:
:param include_sid:

:returns: The created CommandInstance
CommandDeviceSimCallbackMethodCallbackUrlCommandMode
IncludeSidContent-Type!application/x-www-form-urlencodedre   rf   POSTri   rj   datark   )r   rl   r2   createrb   r   r)   r   r   r   r   r   r   r   r   rk   r   s              r+   r   CommandList.create   s    0 yy" "1++)

 ))^-PQR"E.--&&tyyt ' 
 t}}g66r-   c           
        #    [         R                  " U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                  XS9I Sh  vN n
[        U R                  U
5      $  N7f)	z
Asynchronously create the CommandInstance

:param command:
:param device:
:param sim:
:param callback_method:
:param callback_url:
:param command_mode:
:param include_sid:

:returns: The created CommandInstance
r   r   r   re   rf   r   r   N)r   rl   r2   create_asyncrb   r   r   s              r+   r   CommandList.create_async  s     0 yy" "1++)

 ))^-PQR"E.22tyyt 3 
 
 t}}g66	
s   A)B+B,BNr   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      $ )aI  
Streams CommandInstance 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 device:
:param str sim:
:param str status:
:param str direction:
: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   r   r   r   )r2   read_limitspagestream	r)   r   r   r   r   r   r   limitsr   s	            r+   r   CommandList.stream0  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)aX  
Asynchronously streams CommandInstance 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 device:
:param str sim:
:param str status:
:param str direction:
: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   )r2   r   
page_asyncstream_asyncr   s	            r+   r   CommandList.stream_asyncW  sg     8 **5<__[) % 
 
 }}))$w@@
s   5AA#Ac                 <    [        U R                  UUUUUUS95      $ )a  
Lists CommandInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str device:
:param str sim:
:param str status:
:param str direction:
: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   r   r   r   )listr   )r)   r   r   r   r   r   r   s          r+   r   CommandList.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 CommandInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str device:
:param str sim:
:param str status:
:param str direction:
: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   r   r   r   r   r   records           r+   
list_asyncCommandList.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      $ )aw  
Retrieve a single page of CommandInstance records from the API.
Request is executed immediately

:param device:
:param sim:
:param status:
:param direction:
: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 CommandInstance
r   r   Status	Direction	PageTokenr   PageSizer   r   re   rf   rg   ri   rj   paramsrk   )r   rl   r2   r   rb   rv   r)   r   r   r   r   r   r   r   r   rk   responses              r+   r   CommandList.page  s    0 yy  &'#%

 ))^-PQR.==%%dii & 
 4==(33r-   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 CommandInstance records from the API.
Request is executed immediately

:param device:
:param sim:
:param status:
:param direction:
: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 CommandInstance
r   r   r   re   rf   rg   r   N)r   rl   r2   r   rb   rv   r   s              r+   r   CommandList.page_async  s     0 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 CommandInstance records from the API.
Request is executed immediately

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

:returns: Page of CommandInstance
rg   )r2   domaintwiliorequestrv   r)   r   r   s      r+   get_pageCommandList.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 CommandInstance records from the API.
Request is executed immediately

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

:returns: Page of CommandInstance
rg   N)r2   r   r   request_asyncrv   r   s      r+   get_page_asyncCommandList.get_page_async1  sC      --44BB5*UU4==(33 Vs   4AAAr   c                 *    [        U R                  US9$ z*
Constructs a CommandContext

:param sid:
r0   r1   r2   r)   r   s     r+   r%   CommandList.get=       dmm55r-   c                 *    [        U R                  US9$ r   r   r   s     r+   __call__CommandList.__call__E  r   r-   c                     g)r?   z%<Twilio.Preview.Wireless.CommandList>ra   r3   s    r+   rR   CommandList.__repr__M  r}   r-   )rb   )"rT   rU   rV   rW   r   r$   r   unsetrY   r   objectr   r   r   r   intr	   r   r
   r   r   r   r   rv   r   r   r   r   r1   r%   r   rR   r[   r\   r]   s   @r+   r   r      s   	  	  &,\\"(,,.4ll+1<<+1<<*0,,-7-7 c6k"-7 3;	-7
 sF{+-7 CK(-7 CK(-7 3;'-7 
-7d &,\\"(,,.4ll+1<<+1<<*0,,-7-7 c6k"-7 3;	-7
 sF{+-7 CK(-7 CK(-7 3;'-7 
-7b &,\\"(,,%+\\(.##'%;c6k"%; 3;%; c6k"	%;
 f%%; }%; C=%; 
/	"%;R &,\\"(,,%+\\(.##'%Ac6k"%A 3;%A c6k"	%A
 f%%A }%A C=%A 
	'%AR &,\\"(,,%+\\(.##'$
c6k"$
 3;$
 c6k"	$

 f%$
 }$
 C=$
 
o	$
P &,\\"(,,%+\\(.##'%
c6k"%
 3;%
 c6k"	%

 f%%
 }%
 C=%
 
o	%
R &,\\"(,,%+\\(.)/*0,,(.+4c6k"+4 3;+4 c6k"	+4
 f%+4 #v+&+4 3;'+4 f%+4 
+4^ &,\\"(,,%+\\(.)/*0,,(.+4c6k"+4 3;+4 c6k"	+4
 f%+4 #v+&+4 3;'+4 f%+4 
+4Z
43 
4; 
4
4s 
4{ 
46s 6~ 66C 6N 67# 7 7r-   r   N)rX   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   r1   rv   r   ra   r-   r+   <module>r      sg     L L L + 8 : 2 ' !QN& QNhBM_ BMJ7$ 7&N7, N7r-   