
    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 - Serverless
 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\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&                  \R&                  4S\\\4   S\\\4   S	S 4S jjr\R&                  \R&                  4S\\\4   S\\\4   S	S 4S jjrS	\4S jrSrU =r$ )VariableInstance   av  
:ivar sid: The unique string that we created to identify the Variable resource.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Variable resource.
:ivar service_sid: The SID of the Service that the Variable resource is associated with.
:ivar environment_sid: The SID of the Environment in which the Variable exists.
:ivar key: A string by which the Variable resource can be referenced.
:ivar value: A string that contains the actual value of the Variable.
:ivar date_created: The date and time in GMT when the Variable resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar date_updated: The date and time in GMT when the Variable resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar url: The absolute URL of the Variable resource.
versionpayloadservice_sidenvironment_sidsidc                 J  > [         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        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S5      5      U l        UR                  S	5      U l        UUU=(       d    U R                  S
.U l        S U l        g )Nr   account_sidr   r   keyvaluedate_createddate_updatedurlr   r   r   )super__init__getr   r   r   r   r   r   r   iso8601_datetimer   r   r    	_solution_context)selfr   r   r   r   r   	__class__s         ~/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/serverless/v1/service/environment/variable.pyr#   VariableInstance.__init__&   s     	!")++e"4*1++m*D*1++m*D.5kk:K.L")++e"4$+KK$8
0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 '.?$((

 48    returnc                     U R                   cB  [        U R                  U R                  S   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: VariableContext for this VariableInstance
r   r   r   r!   )r'   VariableContext_versionr&   r(   s    r*   _proxyVariableInstance._proxyE   sR     == + NN=9 $/@ ANN5)	DM }}r,   c                 6    U R                   R                  5       $ )S
Deletes the VariableInstance


:returns: True if delete succeeds, False otherwise
)r2   deleter1   s    r*   r6   VariableInstance.deleteV   s     {{!!##r,   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)o
Asynchronous coroutine that deletes the VariableInstance


:returns: True if delete succeeds, False otherwise
N)r2   delete_asyncr1   s    r*   r:   VariableInstance.delete_async_   s       [[--////   '%'c                 6    U R                   R                  5       $ )E
Fetch the VariableInstance


:returns: The fetched VariableInstance
)r2   fetchr1   s    r*   r?   VariableInstance.fetchh   s     {{  ""r,   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)_
Asynchronous coroutine to fetch the VariableInstance


:returns: The fetched VariableInstance
N)r2   fetch_asyncr1   s    r*   rC   VariableInstance.fetch_asyncq   s       [[,,....r<   r   r   c                 6    U R                   R                  UUS9$ )%  
Update the VariableInstance

:param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
:param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

:returns: The updated VariableInstance
r   r   )r2   updater(   r   r   s      r*   rH   VariableInstance.updatez   s&     {{!! " 
 	
r,   c                 R   #    U R                   R                  UUS9I Sh  vN $  N7f)?  
Asynchronous coroutine to update the VariableInstance

:param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
:param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

:returns: The updated VariableInstance
rG   N)r2   update_asyncrI   s      r*   rM   VariableInstance.update_async   s3      [[-- . 
 
 	
 
r<   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>,VariableInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z*<Twilio.Serverless.V1.VariableInstance {}>joinr&   itemsrU   r(   contexts     r*   __repr__VariableInstance.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr,   )r'   r&   r   r   r   r   r   r   r   r    r   )N)r-   r/   )r-   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r#   propertyr2   boolr6   r:   r?   rC   r   unsetr   objectrH   rM   rc   __static_attributes____classcell__r)   s   @r*   r   r      s#   
$ "88 c3h8 	8
 8 c]8 8>   $ $0D 0#/ #),,$*LL
3;
 S&[!
 
	
( #),,$*LL
3;
 S&[!
 
	
$L# L Lr,   r   c                   6  ^  \ rS rSrS\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                  \R                  4S\\\4   S\\\4   S\
4S jjr\R                  \R                  4S\\\4   S\\\4   S\
4S jjrS\4S jrSrU =r$ )r/      r   r   r   r   c                 |   > [         TU ]  U5        UUUS.U l        SR                  " S0 U R                  D6U l        g)a7  
Initialize the VariableContext

:param version: Version that contains the resource
:param service_sid: The SID of the Service to update the Variable resource under.
:param environment_sid: The SID of the Environment with the Variable resource to update.
:param sid: The SID of the Variable resource to update.
r!   zF/Services/{service_sid}/Environments/{environment_sid}/Variables/{sid}N r"   r#   r&   rU   _uri)r(   r   r   r   r   r)   s        r*   r#   VariableContext.__init__   sG     	! '.

 ]cc 
nn
	r,   r-   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r5   DELETEmethoduriheaders)r   ofr0   r6   rw   r(   r~   s     r*   r6   VariableContext.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)r9   rz   r{   N)r   r   r0   r:   rw   r   s     r*   r:   VariableContext.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   U R                  S   S9$ )	r>   application/jsonAcceptGETr{   r   r   r   r!   )r   r   r0   r?   rw   r   r&   r(   r~   r   s      r*   r?   VariableContext.fetch   sv     ))B-.--%%U		7%SMM}5 NN+<=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   U R                  S   S	9$  NB7f)
rB   r   r   r   r{   Nr   r   r   r!   )r   r   r0   rC   rw   r   r&   r   s      r*   rC   VariableContext.fetch_async   s      ))B-.11dii 2 
 
  MM}5 NN+<=u%
 	
	
s   ABB	ABr   r   c                 :   [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X4S9n[        U R                  UU R                  S   U R                  S	   U R                  S
   S9$ )rF   KeyValue!application/x-www-form-urlencodedContent-Typer   r   POSTr|   r}   datar~   r   r   r   r!   )r   r   r0   rH   rw   r   r&   r(   r   r   r   r~   r   s         r*   rH   VariableContext.update	  s     yy
 ))B-"E.--&&tyyt ' 
  MM}5 NN+<=u%
 	
r,   c                 V  #    [         R                  " UUS.5      n[         R                  " 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U R                  S	   U R                  S
   U R                  S   S9$  NB7f)rL   r   r   r   r   r   r   r   Nr   r   r   r!   )r   r   r0   rM   rw   r   r&   r   s         r*   rM   VariableContext.update_async/  s      yy
 ))B-"E.22tyyt 3 
 
  MM}5 NN+<=u%
 	
	
s   A"B)$B'%AB)c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rP   rQ   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frS   rT   rV   s      r*   rZ   +VariableContext.__repr__.<locals>.<genexpr>[  r\   r]   z)<Twilio.Serverless.V1.VariableContext {}>r^   ra   s     r*   rc   VariableContext.__repr__U  s6     ((SDNN<P<P<RSS:AA'JJr,   r&   rw   )re   rf   rg   rh   r   rj   r#   rl   r6   r:   r   r?   rC   r   rm   r   rn   rH   rM   rc   ro   rp   rq   s   @r*   r/   r/      s    

-0
CF
MP
.
U 
U
D 

' 
,
#3 
4 #),,$*LL$
3;$
 S&[!$
 
	$
P #),,$*LL$
3;$
 S&[!$
 
	$
LK# K Kr,   r/   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)VariablePagei_  r   r-   c                 b    [        U R                  UU R                  S   U R                  S   S9$ )zV
Build an instance of VariableInstance

:param payload: Payload response from the API
r   r   r   r   )r   r0   r&   )r(   r   s     r*   get_instanceVariablePage.get_instancea  s4      MM}5 NN+<=	
 	
r,   c                     g)rP   z#<Twilio.Serverless.V1.VariablePage>ru   r1   s    r*   rc   VariablePage.__repr__n       5r,   ru   N)re   rf   rg   rh   r   rj   r   r   r   rc   ro   ru   r,   r*   r   r   _  s*    
DcN 
7G 
5# 5r,   r   c            	       v  ^  \ rS rSrS\S\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!$ )VariableListiw  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)z
Initialize the VariableList

:param version: Version that contains the resource
:param service_sid: The SID of the Service to read the Variable resources from.
:param environment_sid: The SID of the Environment with the Variable resources to read.

r   z@/Services/{service_sid}/Environments/{environment_sid}/VariablesNru   rv   )r(   r   r   r   r)   s       r*   r#   VariableList.__init__y  sG     	! '.

 OUU .. 		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U R                  S   U R                  S	   S
9$ )a%  
Create the VariableInstance

:param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
:param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

:returns: The created VariableInstance
r   r   r   r   r   r   r   r   r   r   )r   r   r0   createrw   r   r&   r   s         r*   r   VariableList.create  s     yy
 ))^-PQR"E.--&&tyyt ' 
  MM}5 NN+<=	
 	
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U R                  S	   U R                  S
   S9$  N47f)a4  
Asynchronously create the VariableInstance

:param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
:param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

:returns: The created VariableInstance
r   r   r   r   r   r   r   Nr   r   r   )r   r   r0   create_asyncrw   r   r&   r   s         r*   r   VariableList.create_async  s      yy
 ))^-PQR"E.22tyyt 3 
 
  MM}5 NN+<=	
 	
	
s   A$B&B'5Blimit	page_sizec                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams VariableInstance 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   )r0   read_limitspagestreamr(   r   r   limitsr   s        r*   r   VariableList.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 VariableInstance 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   )r0   r   
page_asyncstream_asyncr   s        r*   r   VariableList.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 VariableInstance 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   VariableList.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 VariableInstance 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VariableList.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      $ )a=  
Retrieve a single page of VariableInstance 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 VariableInstance
	PageTokenr   PageSizer   r   r   r   r   r|   r}   paramsr~   )r   r   r0   r   rw   r   r&   r(   r   r   r   r   r~   responses          r*   r   VariableList.page8  s{      yy'#%
 ))^-PQR.==%%dii & 
 DMM8^^DDr,   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)	aL  
Asynchronously retrieve a single page of VariableInstance 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 VariableInstance
r   r   r   r   r   r   r   N)r   r   r0   r   rw   r   r&   r   s          r*   r   VariableList.page_asyncY  s       yy'#%
 ))^-PQR.11dii 2 
 
 DMM8^^DD
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 VariableInstance records from the API.
Request is executed immediately

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

:returns: Page of VariableInstance
r   )r0   domaintwiliorequestr   r&   r(   r   r   s      r*   get_pageVariableList.get_pagez  s;     ==''..66ujIDMM8^^DDr,   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 VariableInstance records from the API.
Request is executed immediately

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

:returns: Page of VariableInstance
r   N)r0   r   r   request_asyncr   r&   r   s      r*   get_page_asyncVariableList.get_page_async  sG      --44BB5*UUDMM8^^DD Vs   4AA%Ar   c                 b    [        U R                  U R                  S   U R                  S   US9$ zW
Constructs a VariableContext

:param sid: The SID of the Variable resource to update.
r   r   r!   r/   r0   r&   r(   r   s     r*   r$   VariableList.get  4     MM}5 NN+<=	
 	
r,   c                 b    [        U R                  U R                  S   U R                  S   US9$ r   r   r   s     r*   __call__VariableList.__call__  r   r,   c                     g)rP   z#<Twilio.Serverless.V1.VariableList>ru   r1   s    r*   rc   VariableList.__repr__  r   r,   r   )NN)"re   rf   rg   rh   r   rj   r#   r   r   r   r   intr	   r   r
   r   r   r   r   r   rm   r   rn   r   r   r   r   r   r/   r$   r   rc   ro   rp   rq   s   @r*   r   r   w  s^   
 
c 
C 
,
# 
c 
.> 
B
c 
# 
:J 
F  $#';}; C=; 
"	#	;6  $#'A}A C=A 
'	(	A6  $#'
}
 C=
 
		
8  $#'
}
 C=
 
		
: *0*0,,(.	E#v+&E 3;'E f%	E
 
EF *0*0,,(.	E#v+&E 3;'E f%	E
 
EB
E3 
E< 
E
Es 
E| 
E
s 
 

C 
O 
5# 5 5r,   r   N)ri   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   ru   r,   r*   <module>r      sg     L L L + 8 : 2 ' !LL' LL^tKo tKn54 50{5< {5r,   