
    gpI                         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 - Api
 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\S\	\   4U 4S jjjr
\SS	 j5       rS\4S
 jrS\4S jrSS jrSS jr\R&                  4S\\\4   SS 4S jjr\R&                  4S\\\4   SS 4S jjrS\4S jrSrU =r$ )KeyInstance   a  
:ivar sid: The unique string that that we created to identify the Key resource.
:ivar friendly_name: The string that you assigned to describe the resource.
:ivar date_created: The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
:ivar date_updated: The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
versionpayloadaccount_sidsidc                 l  > [         TU ]  U5        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U=(       d    U R                  S.U l	        S U l
        g )Nr   friendly_namedate_createddate_updatedr   r   )super__init__getr   r   r   rfc2822_datetimer   r   	_solution_context)selfr   r   r   r   	__class__s        i/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/api/v2010/account/key.pyr   KeyInstance.__init__!   s     	!")++e"4,3KK,H0;0L0LKK'1
 1<0L0LKK'1

 '?$((
 /3    returnc                     U R                   c4  [        U R                  U R                  S   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: KeyContext for this KeyInstance
r   r   r   )r#   
KeyContext_versionr"   r$   s    r&   _proxyKeyInstance._proxy9   sE     == & NN=9NN5)DM
 }}r(   c                 6    U R                   R                  5       $ )N
Deletes the KeyInstance


:returns: True if delete succeeds, False otherwise
)r.   deleter-   s    r&   r2   KeyInstance.deleteI   s     {{!!##r(   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)j
Asynchronous coroutine that deletes the KeyInstance


:returns: True if delete succeeds, False otherwise
N)r.   delete_asyncr-   s    r&   r6   KeyInstance.delete_asyncR   s       [[--////   '%'c                 6    U R                   R                  5       $ );
Fetch the KeyInstance


:returns: The fetched KeyInstance
)r.   fetchr-   s    r&   r;   KeyInstance.fetch[   s     {{  ""r(   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)U
Asynchronous coroutine to fetch the KeyInstance


:returns: The fetched KeyInstance
N)r.   fetch_asyncr-   s    r&   r?   KeyInstance.fetch_asyncd   s       [[,,....r8   r   c                 4    U R                   R                  US9$ )
Update the KeyInstance

:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.

:returns: The updated KeyInstance
r   )r.   updater$   r   s     r&   rD   KeyInstance.updatem   s#     {{!!' " 
 	
r(   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)
Asynchronous coroutine to update the KeyInstance

:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.

:returns: The updated KeyInstance
rC   N)r.   update_asyncrE   s     r&   rI   KeyInstance.update_asyncy   s0      [[--' . 
 
 	
 
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>'KeyInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z!<Twilio.Api.V2010.KeyInstance {}>joinr"   itemsrQ   r$   contexts     r&   __repr__KeyInstance.__repr__   s6     ((SDNN<P<P<RSS299'BBr(   )r#   r"   r   r   r   r   )N)r)   r+   )r)   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr.   boolr2   r6   r;   r?   r   unsetr   objectrD   rI   r_   __static_attributes____classcell__r%   s   @r&   r   r      s     "33 c3h3 	3
 c]3 30  $ $0D 0#/ :@ 

E#v+$6 

- 

 39,,
"3;/
	
C# C Cr(   r   c                      ^  \ rS rSrS\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\
4S
 jr\R                  4S\\\4   S\
4S jjr\R                  4S\\\4   S\
4S jjrS\4S jrSrU =r$ )r+      r   r   r   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)a/  
Initialize the KeyContext

:param version: Version that contains the resource
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to update.
:param sid: The Twilio-provided string that uniquely identifies the Key resource to update.
r   z'/Accounts/{account_sid}/Keys/{sid}.jsonN r   r   r"   rQ   _uri)r$   r   r   r   r%   s       r&   r   KeyContext.__init__   s>     	! '
 >DDVt~~V	r(   r)   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r1   DELETEmethoduriheaders)r   ofr,   r2   rs   r$   rz   s     r&   r2   KeyContext.delete   s1     ))B-}}##8G#TTr(   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)r5   rv   rw   N)r   r{   r,   r6   rs   r|   s     r&   r6   KeyContext.delete_async   sE      ))B-]]//G 0 
 
 	
 
s   ?AAAc                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   U R                  S   S9$ )r:   application/jsonAcceptGETrw   r   r   r   )r   r{   r,   r;   rs   r   r"   r$   rz   r   s      r&   r;   KeyContext.fetch   si     ))B-.--%%U		7%SMM}5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   U R                  S   S9$  N47f)	r>   r   r   r   rw   Nr   r   r   )r   r{   r,   r?   rs   r   r"   r   s      r&   r?   KeyContext.fetch_async   s}      ))B-.11dii 2 
 
 MM}5u%	
 	
	
s   AA=A;5A=r   c                    [         R                  " SU05      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X#S9n[        U R                  UU R                  S   U R                  S	   S
9$ )rB   FriendlyName!application/x-www-form-urlencodedContent-Typer   r   POSTrx   ry   datarz   r   r   r   )r   r{   r,   rD   rs   r   r"   r$   r   r   rz   r   s        r&   rD   KeyContext.update   s     yy

 ))B-"E.--&&tyyt ' 
 MM}5u%	
 	
r(   c                 8  #    [         R                  " SU05      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X#S9I Sh  vN n[        U R                  UU R                  S	   U R                  S
   S9$  N47f)rH   r   r   r   r   r   r   r   Nr   r   r   )r   r{   r,   rI   rs   r   r"   r   s        r&   rI   KeyContext.update_async	  s      yy

 ))B-"E.22tyyt 3 
 
 MM}5u%	
 	
	
s   A!B#B$5Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rL   rM   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frO   rP   rR   s      r&   rV   &KeyContext.__repr__.<locals>.<genexpr>0  rX   rY   z <Twilio.Api.V2010.KeyContext {}>rZ   r]   s     r&   r_   KeyContext.__repr__*  s6     ((SDNN<P<P<RSS188AAr(   r"   rs   )ra   rb   rc   rd   r   rf   r   rh   r2   r6   r   r;   r?   r   ri   r   rj   rD   rI   r_   rk   rl   rm   s   @r&   r+   r+      s    W Wc W W"
U 
U
D 

{ 
*
; 
. :@ 
E#v+$6 
+ 
@ 39,,
"3;/
	
BB# B Br(   r+   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)KeyPagei4  r   r)   c                 D    [        U R                  XR                  S   S9$ )zQ
Build an instance of KeyInstance

:param payload: Payload response from the API
r   )r   )r   r,   r"   )r$   r   s     r&   get_instanceKeyPage.get_instance6  s#     MM7}0M
 	
r(   c                     g)rL   z<Twilio.Api.V2010.KeyPage>rq   r-   s    r&   r_   KeyPage.__repr__@       ,r(   rq   N)ra   rb   rc   rd   r   rf   r   r   r   r_   rk   rq   r(   r&   r   r   4  s)    
DcN 
{ 
,# ,r(   r   c            	       F  ^  \ rS rSrS\S\4U 4S jjr  SS\\   S\\   S\	\
   4S jjr  SS\\   S\\   S\\
   4S	 jjr  SS\\   S\\   S\\
   4S
 jjr  SS\\   S\\   S\\
   4S jjr\R$                  \R$                  \R$                  4S\\\4   S\\\4   S\\\4   S\4S jjr\R$                  \R$                  \R$                  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$ )KeyListiI  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 KeyList

:param version: Version that contains the resource
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to read.

r   z!/Accounts/{account_sid}/Keys.jsonNrq   rr   )r$   r   r   r%   s      r&   r   KeyList.__init__K  s=     	! ;
 8>>PP	r(   limit	page_sizer)   c                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams KeyInstance 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 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,   read_limitspagestreamr$   r   r   limitsr   s        r&   r   KeyList.stream[  sF    ( **5<yy6+#6y7}}##D/::r(   c                    #    U R                   R                  X5      nU R                  US   S9I Sh  vN nU R                   R                  XCS   5      $  N"7f)a  
Asynchronously streams KeyInstance 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 limit: Upper limit for the number of records to return. stream()
              guarantees to never return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, stream() will attempt to read the
                  limit with the most efficient page size, i.e. min(limit, 1000)

:returns: Generator that will yield up to limit results
r   r   Nr   )r,   r   
page_asyncstream_asyncr   s        r&   r   KeyList.stream_asynct  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists KeyInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

: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   )listr   )r$   r   r   s      r&   r   KeyList.list  s(    & KK#  
 	
r(   c                 v   #    U R                  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 KeyInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

: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   records       r&   
list_asyncKeyList.list_async  sQ     * '+&7&7# '8 ' ! !
 
 !
 	
 
s0   9,940.
049049
page_tokenpage_numberc                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9n[        U R                  X`R                  5      $ )a3  
Retrieve a single page of KeyInstance records from the API.
Request is executed immediately

: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 KeyInstance
	PageTokenr   PageSizer   r   r   r   r   rx   ry   paramsrz   )r   r{   r,   r   rs   r   r"   r$   r   r   r   r   rz   responses          r&   r   KeyList.page  s{      yy'#%
 ))^-PQR.==%%dii & 
 t}}h??r(   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  X`R                  5      $  N$7f)	aB  
Asynchronously retrieve a single page of KeyInstance records from the API.
Request is executed immediately

: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 KeyInstance
r   r   r   r   r   r   r   N)r   r{   r,   r   rs   r   r"   r   s          r&   r   KeyList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 t}}h??
s   A B	"B#%B	
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )z
Retrieve a specific page of KeyInstance records from the API.
Request is executed immediately

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

:returns: Page of KeyInstance
r   )r,   domaintwiliorequestr   r"   r$   r   r   s      r&   get_pageKeyList.get_page  s;     ==''..66ujIt}}h??r(   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   X R
                  5      $  N$7f)z
Asynchronously retrieve a specific page of KeyInstance records from the API.
Request is executed immediately

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

:returns: Page of KeyInstance
r   N)r,   r   r   request_asyncr   r"   r   s      r&   get_page_asyncKeyList.get_page_async  sG      --44BB5*UUt}}h?? Vs   4AA%Ar   c                 F    [        U R                  U R                  S   US9$ zv
Constructs a KeyContext

:param sid: The Twilio-provided string that uniquely identifies the Key resource to update.
r   r   r+   r,   r"   r$   r   s     r&   r    KeyList.get  %     MMt~~m'D#
 	
r(   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r&   __call__KeyList.__call__&  r   r(   c                     g)rL   z<Twilio.Api.V2010.KeyList>rq   r-   s    r&   r_   KeyList.__repr__0  r   r(   r   )NN) ra   rb   rc   rd   r   rf   r   r   intr	   r   r   r
   r   r   r   r   r   ri   r   rj   r   r   r   r   r   r+   r    r   r_   rk   rl   rm   s   @r&   r   r   I  s   Q Qc Q$  $#';}; C=; 
+		;6  $#'A}A C=A 
{	#	A6  $#'
}
 C=
 
k		
8  $#'
}
 C=
 
k		
: *0*0,,(.	@#v+&@ 3;'@ f%	@
 
@F *0*0,,(.	@#v+&@ 3;'@ f%	@
 
@B
@3 
@7 
@
@s 
@w 
@
s 
z 

C 
J 
,# , ,r(   r   N)re   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   r+   r   r   rq   r(   r&   <module>r      sg     L L L + 8 : 2 ' !uC" uCp`B `BF,d ,*m,l m,r(   