
    gI                         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 - Microvisor
 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\4S	 jrS\4S
 jrSS jrSS jrS\SS 4S jrS\SS 4S jrS\4S jrSrU =r$ )AccountSecretInstance   zq
:ivar key: The secret key; up to 100 characters.
:ivar date_rotated:
:ivar url: The absolute URL of the Secret.
versionpayloadkeyc                   > [         TU ]  U5        UR                  S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   date_rotatedurl)
super__init__getr   r   iso8601_datetimer   r   	_solution_context)selfr   r   r   	__class__s       p/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/microvisor/v1/account_secret.pyr   AccountSecretInstance.__init__    st     	!")++e"40;0L0LKK'1
 #*++e"4 3?$((
 9=    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: AccountSecretContext for this AccountSecretInstance
r   r   )r    AccountSecretContext_versionr   r!   s    r#   _proxyAccountSecretInstance._proxy0   s9     == 0NN5)DM }}r%   c                 6    U R                   R                  5       $ )X
Deletes the AccountSecretInstance


:returns: True if delete succeeds, False otherwise
)r,   deleter+   s    r#   r0   AccountSecretInstance.delete?   s     {{!!##r%   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)t
Asynchronous coroutine that deletes the AccountSecretInstance


:returns: True if delete succeeds, False otherwise
N)r,   delete_asyncr+   s    r#   r4   "AccountSecretInstance.delete_asyncH   s       [[--////   '%'c                 6    U R                   R                  5       $ )O
Fetch the AccountSecretInstance


:returns: The fetched AccountSecretInstance
)r,   fetchr+   s    r#   r9   AccountSecretInstance.fetchQ   s     {{  ""r%   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)i
Asynchronous coroutine to fetch the AccountSecretInstance


:returns: The fetched AccountSecretInstance
N)r,   fetch_asyncr+   s    r#   r=   !AccountSecretInstance.fetch_asyncZ   s       [[,,....r6   valuec                 4    U R                   R                  US9$ )
Update the AccountSecretInstance

:param value: The secret value; up to 4096 characters.

:returns: The updated AccountSecretInstance
r?   )r,   updater!   r?   s     r#   rC   AccountSecretInstance.updatec   s#     {{!! " 
 	
r%   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)
Asynchronous coroutine to update the AccountSecretInstance

:param value: The secret value; up to 4096 characters.

:returns: The updated AccountSecretInstance
rB   N)r,   update_asyncrD   s     r#   rH   "AccountSecretInstance.update_asynco   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>1AccountSecretInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z/<Twilio.Microvisor.V1.AccountSecretInstance {}>joinr   itemsrP   r!   contexts     r#   __repr__AccountSecretInstance.__repr__{   s6     ((SDNN<P<P<RSS@GGPPr%   )r    r   r   r   r   )N)r&   r)   )r&   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr,   boolr0   r4   r9   r=   rC   rH   r^   __static_attributes____classcell__r"   s   @r#   r   r      s     OS==)-c3h=>Fsm= =   $ $0D 0#/

C 

$; 



 

0G 

Q# Q Q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\
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$ )r)      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 AccountSecretContext

:param version: Version that contains the resource
:param key: The secret key; up to 100 characters.
r   z/Secrets/{key}N )r   r   r   rP   _uri)r!   r   r   r"   s      r#   r   AccountSecretContext.__init__   s=     	! 3
 %++=dnn=	r%   r&   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r/   DELETEmethoduriheaders)r   ofr*   r0   ro   r!   rv   s     r#   r0   AccountSecretContext.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)r3   rr   rs   N)r   rw   r*   r4   ro   rx   s     r#   r4   !AccountSecretContext.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   S9$ )r8   application/jsonAcceptGETrs   r   r(   )r   rw   r*   r9   ro   r   r   r!   rv   r   s      r#   r9   AccountSecretContext.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   rs   Nr   r(   )r   rw   r*   r=   ro   r   r   r   s      r#   r=    AccountSecretContext.fetch_async   sq      ))B-.11dii 2 
 
 %MMu%
 	
	
s   AA/A-'A/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                  X@R                  S   S	9$ )
rA   Value!application/x-www-form-urlencodedContent-Typer}   r~   POSTrt   ru   datarv   r   r(   )r   rw   r*   rC   ro   r   r   r!   r?   r   rv   r   s        r#   rC   AccountSecretContext.update   s     yy

 ))B-"E.--&&tyyt ' 
 %T]]GPUAVWWr%   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I Sh  vN n[        U R                  X@R                  S	   S
9$  N%7f)rG   r   r   r   r}   r~   r   r   Nr   r(   )r   rw   r*   rH   ro   r   r   r   s        r#   rH   !AccountSecretContext.update_async   s      yy

 ))B-"E.22tyyt 3 
 
 %T]]GPUAVWW	
s   A!B#B	$&Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rK   rL   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frN   rO   rQ   s      r#   rU   0AccountSecretContext.__repr__.<locals>.<genexpr>  rW   rX   z.<Twilio.Microvisor.V1.AccountSecretContext {}>rY   r\   s     r#   r^   AccountSecretContext.__repr__  s6     ((SDNN<P<P<RSS?FFwOOr%   )r   ro   )r`   ra   rb   rc   r   re   r   rg   r0   r4   r   r9   r=   rC   rH   r^   rh   ri   rj   s   @r#   r)   r)      s    > >c >
U 
U
D 

, 
(
#8 
,XC X$9 X4X X0E X4P# P Pr%   r)   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)AccountSecretPagei  r   r&   c                 .    [        U R                  U5      $ )z[
Build an instance of AccountSecretInstance

:param payload: Payload response from the API
)r   r*   )r!   r   s     r#   get_instanceAccountSecretPage.get_instance  s     %T]]G<<r%   c                     g)rK   z(<Twilio.Microvisor.V1.AccountSecretPage>rn   r+   s    r#   r^   AccountSecretPage.__repr__"       :r%   rn   N)r`   ra   rb   rc   r   re   r   r   r   r^   rh   rn   r%   r#   r   r     s*    =DcN =7L =:# :r%   r   c            	       n  ^  \ rS rSrS\4U 4S jjrS\S\S\4S jrS\S\S\4S 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!$ )AccountSecretListi+  r   c                 2   > [         TU ]  U5        SU l        g)zW
Initialize the AccountSecretList

:param version: Version that contains the resource

z/SecretsN)r   r   ro   )r!   r   r"   s     r#   r   AccountSecretList.__init__-  s     	!	r%   r   r?   r&   c                     [         R                  " UUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  X4S9n[        U R                  U5      $ )z
Create the AccountSecretInstance

:param key: The secret key; up to 100 characters.
:param value: The secret value; up to 4096 characters.

:returns: The created AccountSecretInstance
Keyr   r   r   r}   r~   r   r   )r   rw   r*   createro   r   r!   r   r?   r   rv   r   s         r#   r   AccountSecretList.create8  s~     yy
 ))^-PQR"E.--&&tyyt ' 
 %T]]G<<r%   c                 
  #    [         R                  " UUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  X4S9I Sh  vN n[        U R                  U5      $  N7f)	z
Asynchronously create the AccountSecretInstance

:param key: The secret key; up to 100 characters.
:param value: The secret value; up to 4096 characters.

:returns: The created AccountSecretInstance
r   r   r   r}   r~   r   r   N)r   rw   r*   create_asyncro   r   r   s         r#   r   AccountSecretList.create_asyncT  s      yy
 ))^-PQR"E.22tyyt 3 
 
 %T]]G<<	
s   A$B&B'Blimit	page_sizec                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams AccountSecretInstance 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   AccountSecretList.streamp  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 AccountSecretInstance 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   AccountSecretList.stream_async  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists AccountSecretInstance 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   AccountSecretList.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 AccountSecretInstance 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AccountSecretList.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                  U5      $ )aG  
Retrieve a single page of AccountSecretInstance 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 AccountSecretInstance
	PageTokenr   PageSizer   r   r}   r~   r   rt   ru   paramsrv   )r   rw   r*   r   ro   r   r!   r   r   r   r   rv   responses          r#   r   AccountSecretList.page  sw      yy'#%
 ))^-PQR.==%%dii & 
 !99r%   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                  U5      $  N7f)	aV  
Asynchronously retrieve a single page of AccountSecretInstance 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 AccountSecretInstance
r   r   r   r}   r~   r   r   N)r   rw   r*   r   ro   r   r   s          r#   r   AccountSecretList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 !99
s   A A?"A=#A?
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )z
Retrieve a specific page of AccountSecretInstance records from the API.
Request is executed immediately

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

:returns: Page of AccountSecretInstance
r   )r*   domaintwiliorequestr   r!   r   r   s      r#   get_pageAccountSecretList.get_page  s7     ==''..66ujI 99r%   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 AccountSecretInstance records from the API.
Request is executed immediately

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

:returns: Page of AccountSecretInstance
r   N)r*   r   r   request_asyncr   r   s      r#   get_page_async AccountSecretList.get_page_async%  sC      --44BB5*UU 99 Vs   4AAAc                 *    [        U R                  US9$ zV
Constructs a AccountSecretContext

:param key: The secret key; up to 100 characters.
r(   r)   r*   r!   r   s     r#   r   AccountSecretList.get1       $DMMs;;r%   c                 *    [        U R                  US9$ r   r   r   s     r#   __call__AccountSecretList.__call__9  r   r%   c                     g)rK   z(<Twilio.Microvisor.V1.AccountSecretList>rn   r+   s    r#   r^   AccountSecretList.__repr__A  r   r%   )ro   )NN)"r`   ra   rb   rc   r   r   re   r   r   r   r   intr	   r   r
   r   r   r   r   r   unsetr   objectr   r   r   r   r   r)   r   r   r^   rh   ri   rj   s   @r#   r   r   +  sB   	 	=# =c =.C =8=c =# =:O =<  $#';}; C=; 
'	(	;6  $#'A}A C=A 
,	-	A6  $#'
}
 C=
 
#	$	
8  $#'
}
 C=
 
#	$	
: *0*0,,(.	:#v+&: 3;': f%	:
 
:F *0*0,,(.	:#v+&: 3;': f%	:
 
:B
:3 
:+< 
:
:s 
:7H 
:<s <3 <<C <$8 <:# : :r%   r   N)rd   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   rn   r%   r#   <module>r      sg     L L L + 8 : 2 ' !iQ, iQXPP? PPf: :&\: \:r%   