
    gG                         S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
JrJr  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$ )SigningKeyInstance   zI
:ivar sid:
:ivar friendly_name:
:ivar date_created:
:ivar date_updated:
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        q/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/api/v2010/account/signing_key.pyr   SigningKeyInstance.__init__!   s     	!")++e"4,3KK,H0;0L0LKK'1
 1<0L0LKK'1

 '?$((
 6:    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: SigningKeyContext for this SigningKeyInstance
r   r   r   )r#   SigningKeyContext_versionr"   r$   s    r&   _proxySigningKeyInstance._proxy9   sE     == - NN=9NN5)DM
 }}r(   c                 6    U R                   R                  5       $ )U
Deletes the SigningKeyInstance


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


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


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


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

:param friendly_name:

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

:param friendly_name:

:returns: The updated SigningKeyInstance
rC   N)r.   update_asyncrE   s     r&   rI   SigningKeyInstance.update_async{   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>.SigningKeyInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z(<Twilio.Api.V2010.SigningKeyInstance {}>joinr"   itemsrQ   r$   contexts     r&   __repr__SigningKeyInstance.__repr__   s6     ((SDNN<P<P<RSS9@@IIr(   )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     ":: c3h: 	:
 c]: :0  $ $0D 0#/ 39,,
"3;/
	
 39,,
"3;/
	
J# J J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)zv
Initialize the SigningKeyContext

:param version: Version that contains the resource
:param account_sid:
:param sid:
r   z./Accounts/{account_sid}/SigningKeys/{sid}.jsonN r   r   r"   rQ   _uri)r$   r   r   r   r%   s       r&   r   SigningKeyContext.__init__   sD     	! '
 EKK 
nn
	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   SigningKeyContext.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   SigningKeyContext.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;   SigningKeyContext.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?   SigningKeyContext.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   SigningKeyContext.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   SigningKeyContext.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   -SigningKeyContext.__repr__.<locals>.<genexpr>6  rX   rY   z'<Twilio.Api.V2010.SigningKeyContext {}>rZ   r]   s     r&   r_   SigningKeyContext.__repr__0  s6     ((SDNN<P<P<RSS8??HHr(   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    
 
c 
 
&
U 
U
D 

) 
*
#5 
0 39,,
"3;/
	
D 39,,
"3;/
	
BI# I Ir(   r+   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)SigningKeyPagei:  r   r)   c                 D    [        U R                  XR                  S   S9$ )zX
Build an instance of SigningKeyInstance

:param payload: Payload response from the API
r   )r   )r   r,   r"   )r$   r   s     r&   get_instanceSigningKeyPage.get_instance<  s#     "MM7}0M
 	
r(   c                     g)rL   z!<Twilio.Api.V2010.SigningKeyPage>rq   r-   s    r&   r_   SigningKeyPage.__repr__F       3r(   rq   N)ra   rb   rc   rd   r   rf   r   r   r   r_   rk   rq   r(   r&   r   r   :  s*    
DcN 
7I 
3# 3r(   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$ )SigningKeyListiO  r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)zh
Initialize the SigningKeyList

:param version: Version that contains the resource
:param account_sid:

r   z(/Accounts/{account_sid}/SigningKeys.jsonNrq   rr   )r$   r   r   r%   s      r&   r   SigningKeyList.__init__Q  s=     	! ;
 ?EEWW	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 SigningKeyInstance 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   SigningKeyList.streama  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 SigningKeyInstance 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   SigningKeyList.stream_asyncz  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists SigningKeyInstance 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   SigningKeyList.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 SigningKeyInstance 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SigningKeyList.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      $ )aA  
Retrieve a single page of SigningKeyInstance 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 SigningKeyInstance
	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   SigningKeyList.page  s{      yy'#%
 ))^-PQR.==%%dii & 
 dmmX~~FFr(   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)	aP  
Asynchronously retrieve a single page of SigningKeyInstance 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 SigningKeyInstance
r   r   r   r   r   r   r   N)r   r{   r,   r   rs   r   r"   r   s          r&   r   SigningKeyList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 dmmX~~FF
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 SigningKeyInstance records from the API.
Request is executed immediately

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

:returns: Page of SigningKeyInstance
r   )r,   domaintwiliorequestr   r"   r$   r   r   s      r&   get_pageSigningKeyList.get_page
  s;     ==''..66ujIdmmX~~FFr(   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 SigningKeyInstance records from the API.
Request is executed immediately

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

:returns: Page of SigningKeyInstance
r   N)r,   r   r   request_asyncr   r"   r   s      r&   get_page_asyncSigningKeyList.get_page_async  sG      --44BB5*UUdmmX~~FF Vs   4AA%Ar   c                 F    [        U R                  U R                  S   US9$ z-
Constructs a SigningKeyContext

:param sid:
r   r   r+   r,   r"   r$   r   s     r&   r    SigningKeyList.get"  %     !MMt~~m'D#
 	
r(   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r&   __call__SigningKeyList.__call__,  r   r(   c                     g)rL   z!<Twilio.Api.V2010.SigningKeyList>rq   r-   s    r&   r_   SigningKeyList.__repr__6  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   O  s$   X Xc X$  $#';}; C=; 
$	%	;6  $#'A}A C=A 
)	*	A6  $#'
}
 C=
 
 	!	
8  $#'
}
 C=
 
 	!	
: *0*0,,(.	G#v+&G 3;'G f%	G
 
GF *0*0,,(.	G#v+&G 3;'G f%	G
 
GB
G3 
G> 
G
Gs 
G~ 
G
s 
0 

C 
$5 
3# 3 3r(   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 ' !wJ) wJtdI dIN3T 3*m3\ m3r(   