
    g_J                         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$ )AccountConfigInstance   z
:ivar key: The config key; up to 100 characters.
:ivar date_updated:
:ivar value: The config value; up to 4096 characters.
:ivar url: The absolute URL of the Config.
versionpayloadkeyc                 B  > [         TU ]  U5        UR                  S5      U l        [        R
                  " UR                  S5      5      U l        UR                  S5      U l        UR                  S5      U l        SU=(       d    U R                  0U l	        S U l
        g )Nr   date_updatedvalueurl)super__init__getr   r   iso8601_datetimer   r   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_config.pyr   AccountConfigInstance.__init__!   s     	!")++e"40;0L0LKK'1
 %,KK$8
")++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: AccountConfigContext for this AccountConfigInstance
r   r   )r!   AccountConfigContext_versionr    r"   s    r$   _proxyAccountConfigInstance._proxy2   s9     == 0NN5)DM }}r&   c                 6    U R                   R                  5       $ )X
Deletes the AccountConfigInstance


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


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


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


:returns: The fetched AccountConfigInstance
N)r-   fetch_asyncr,   s    r$   r>   !AccountConfigInstance.fetch_async\   s       [[,,....r7   r   c                 4    U R                   R                  US9$ )
Update the AccountConfigInstance

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

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

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

:returns: The updated AccountConfigInstance
rB   N)r-   update_asyncrD   s     r$   rH   "AccountConfigInstance.update_asyncq   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>1AccountConfigInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z/<Twilio.Microvisor.V1.AccountConfigInstance {}>joinr    itemsrP   r"   contexts     r$   __repr__AccountConfigInstance.__repr__}   s6     ((SDNN<P<P<RSS@GGPPr&   )r!   r    r   r   r   r   )N)r'   r*   )r'   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr-   boolr1   r5   r:   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 AccountConfigContext

:param version: Version that contains the resource
:param key: The config key; up to 100 characters.
r   z/Configs/{key}N )r   r   r    rP   _uri)r"   r   r   r#   s      r$   r   AccountConfigContext.__init__   s=     	! 3
 %++=dnn=	r&   r'   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r0   DELETEmethoduriheaders)r   ofr+   r1   ro   r"   rv   s     r$   r1   AccountConfigContext.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)r4   rr   rs   N)r   rw   r+   r5   ro   rx   s     r$   r5   !AccountConfigContext.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$ )r9   application/jsonAcceptGETrs   r   r)   )r   rw   r+   r:   ro   r   r    r"   rv   r   s      r$   r:   AccountConfigContext.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>    AccountConfigContext.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   AccountConfigContext.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   !AccountConfigContext.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   0AccountConfigContext.__repr__.<locals>.<genexpr>  rW   rX   z.<Twilio.Microvisor.V1.AccountConfigContext {}>rY   r\   s     r$   r^   AccountConfigContext.__repr__  s6     ((SDNN<P<P<RSS?FFwOOr&   )r    ro   )r`   ra   rb   rc   r   re   r   rg   r1   r5   r   r:   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)AccountConfigPagei  r   r'   c                 .    [        U R                  U5      $ )z[
Build an instance of AccountConfigInstance

:param payload: Payload response from the API
)r   r+   )r"   r   s     r$   get_instanceAccountConfigPage.get_instance  s     %T]]G<<r&   c                     g)rK   z(<Twilio.Microvisor.V1.AccountConfigPage>rn   r,   s    r$   r^   AccountConfigPage.__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!$ )AccountConfigListi-  r   c                 2   > [         TU ]  U5        SU l        g)zW
Initialize the AccountConfigList

:param version: Version that contains the resource

z/ConfigsN)r   r   ro   )r"   r   r#   s     r$   r   AccountConfigList.__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 AccountConfigInstance

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

:returns: The created AccountConfigInstance
Keyr   r   r   r}   r~   r   r   )r   rw   r+   createro   r   r"   r   r   r   rv   r   s         r$   r   AccountConfigList.create:  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 AccountConfigInstance

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

:returns: The created AccountConfigInstance
r   r   r   r}   r~   r   r   N)r   rw   r+   create_asyncro   r   r   s         r$   r   AccountConfigList.create_asyncV  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 AccountConfigInstance 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   AccountConfigList.streamr  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 AccountConfigInstance 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   AccountConfigList.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 AccountConfigInstance 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   AccountConfigList.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 AccountConfigInstance 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AccountConfigList.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 AccountConfigInstance 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 AccountConfigInstance
	PageTokenr   PageSizer   r   r}   r~   r   rt   ru   paramsrv   )r   rw   r+   r   ro   r   r"   r   r   r   r   rv   responses          r$   r   AccountConfigList.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 AccountConfigInstance 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 AccountConfigInstance
r   r   r   r}   r~   r   r   N)r   rw   r+   r   ro   r   r   s          r$   r   AccountConfigList.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 AccountConfigInstance records from the API.
Request is executed immediately

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

:returns: Page of AccountConfigInstance
r   )r+   domaintwiliorequestr   r"   r   r   s      r$   get_pageAccountConfigList.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 AccountConfigInstance records from the API.
Request is executed immediately

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

:returns: Page of AccountConfigInstance
r   N)r+   r   r   request_asyncr   r   s      r$   get_page_async AccountConfigList.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 AccountConfigContext

:param key: The config key; up to 100 characters.
r)   r*   r+   r"   r   s     r$   r   AccountConfigList.get3       $DMMs;;r&   c                 *    [        U R                  US9$ r   r   r   s     r$   __call__AccountConfigList.__call__;  r   r&   c                     g)rK   z(<Twilio.Microvisor.V1.AccountConfigList>rn   r,   s    r$   r^   AccountConfigList.__repr__C  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 ' !kQ, kQ\PP? PPf: :&\: \:r&   