
    gP                         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 - Accounts
 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\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$ )AwsInstance   a  
:ivar sid: The unique string that we created to identify the AWS resource.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AWS resource.
:ivar friendly_name: The string that you assigned to describe the resource.
:ivar date_created: The date and time in GMT when 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 when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
:ivar url: The URI for this resource, relative to `https://accounts.twilio.com`
versionpayloadsidc                   > [         TU ]  U5        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
        SU=(       d    U R                  0U l        S U l        g )Nr   account_sidfriendly_namedate_createddate_updatedurl)super__init__getr   r   r   r   iso8601_datetimer   r   r   	_solution_context)selfr   r   r   	__class__s       n/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/accounts/v1/credential/aws.pyr   AwsInstance.__init__#   s     	!")++e"4*1++m*D,3KK,H0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 /3    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: AwsContext for this AwsInstance
r   r   )r#   
AwsContext_versionr"   r$   s    r&   _proxyAwsInstance._proxy8   s9     == &NN5)DM }}r(   c                 6    U R                   R                  5       $ )N
Deletes the AwsInstance


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


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


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


:returns: The fetched AwsInstance
N)r/   fetch_asyncr.   s    r&   r@   AwsInstance.fetch_asyncb   s       [[,,....r9   r   c                 4    U R                   R                  US9$ )
Update the AwsInstance

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

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

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

:returns: The updated AwsInstance
rD   N)r/   update_asyncrF   s     r&   rJ   AwsInstance.update_asyncw   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>'AwsInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z#<Twilio.Accounts.V1.AwsInstance {}>joinr"   itemsrR   r$   contexts     r&   __repr__AwsInstance.__repr__   s6     ((SDNN<P<P<RSS4;;GDDr(   )r#   r"   r   r   r   r   r   r   )N)r)   r,   )r)   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr/   boolr3   r7   r<   r@   r   unsetr   objectrE   rJ   r`   __static_attributes____classcell__r%   s   @r&   r   r      s     OS33)-c3h3>Fsm3 3*  $ $0D 0#/ :@ 

E#v+$6 

- 

 39,,
"3;/
	
E# E E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\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   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 AwsContext

:param version: Version that contains the resource
:param sid: The Twilio-provided string that uniquely identifies the AWS resource to update.
r   z/Credentials/AWS/{sid}N )r   r   r"   rR   _uri)r$   r   r   r%   s      r&   r   AwsContext.__init__   s=     	! 3
 -33EdnnE	r(   r)   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r2   DELETEmethoduriheaders)r   ofr-   r3   rs   r$   rz   s     r&   r3   AwsContext.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)r6   rv   rw   N)r   r{   r-   r7   rs   r|   s     r&   r7   AwsContext.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$ )r;   application/jsonAcceptGETrw   r   r+   )r   r{   r-   r<   rs   r   r"   r$   rz   r   s      r&   r<   AwsContext.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   rw   Nr   r+   )r   r{   r-   r@   rs   r   r"   r   s      r&   r@   AwsContext.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$ )
rC   FriendlyName!application/x-www-form-urlencodedContent-Typer   r   POSTrx   ry   datarz   r   r+   )r   r{   r-   rE   rs   r   r"   r$   r   r   rz   r   s        r&   rE   AwsContext.update   s     yy

 ))B-"E.--&&tyyt ' 
 4=='~~e7LMMr(   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)rI   r   r   r   r   r   r   r   Nr   r+   )r   r{   r-   rJ   rs   r   r"   r   s        r&   rJ   AwsContext.update_async   s      yy

 ))B-"E.22tyyt 3 
 
 4=='~~e7LMM	
s   A!B#B	$&Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rM   rN   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frP   rQ   rS   s      r&   rW   &AwsContext.__repr__.<locals>.<genexpr>   rY   rZ   z"<Twilio.Accounts.V1.AwsContext {}>r[   r^   s     r&   r`   AwsContext.__repr__  s6     ((SDNN<P<P<RSS3::7CCr(   )r"   rs   )rb   rc   rd   re   r   rg   r   ri   r3   r7   r   r<   r@   r   rj   r   rk   rE   rJ   r`   rl   rm   rn   s   @r&   r,   r,      s    F Fc F
U 
U
D 

{ 
(
; 
, :@ NE#v+$6 N+ N6 39,,N"3;/N	N8D# D Dr(   r,   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)AwsPagei$  r   r)   c                 .    [        U R                  U5      $ )zQ
Build an instance of AwsInstance

:param payload: Payload response from the API
)r   r-   )r$   r   s     r&   get_instanceAwsPage.get_instance&  s     4=='22r(   c                     g)rM   z<Twilio.Accounts.V1.AwsPage>rr   r.   s    r&   r`   AwsPage.__repr__.       .r(   rr   N)rb   rc   rd   re   r   rg   r   r   r   r`   rl   rr   r(   r&   r   r   $  s)    3DcN 3{ 3.# .r(   r   c            	         ^  \ rS rSrS\4U 4S jjr\R                  \R                  4S\S\	\\
4   S\	\\
4   S\4S jjr\R                  \R                  4S\S\	\\
4   S\	\\
4   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  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!$ )AwsListi7  r   c                 2   > [         TU ]  U5        SU l        g)zM
Initialize the AwsList

:param version: Version that contains the resource

z/Credentials/AWSN)r   r   rs   )r$   r   r%   s     r&   r   AwsList.__init__9  s     	!&	r(   credentialsr   r   r)   c                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XES9n[        U R                  U5      $ )a"  
Create the AwsInstance

:param credentials: A string that contains the AWS access credentials in the format `<AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY>`. For example, `AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`
:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
:param account_sid: The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request.

:returns: The created AwsInstance
Credentialsr   
AccountSidr   r   r   r   r   r   )r   r{   r-   creaters   r   r$   r   r   r   r   rz   r   s          r&   r   AwsList.createD  s      yy* -)
 ))^-PQR"E.--&&tyyt ' 
 4=='22r(   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  U5      $  N7f)	a1  
Asynchronously create the AwsInstance

:param credentials: A string that contains the AWS access credentials in the format `<AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY>`. For example, `AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`
:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
:param account_sid: The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request.

:returns: The created AwsInstance
r   r   r   r   r   r   r   N)r   r{   r-   create_asyncrs   r   r   s          r&   r   AwsList.create_asyncg  s       yy* -)
 ))^-PQR"E.22tyyt 3 
 
 4=='22	
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 AwsInstance 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   AwsList.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 AwsInstance 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   AwsList.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 AwsInstance 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   AwsList.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 AwsInstance 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AwsList.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      $ )a3  
Retrieve a single page of AwsInstance 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 AwsInstance
	PageTokenr   PageSizer   r   r   r   r   rx   ry   paramsrz   )r   r{   r-   r   rs   r   r$   r   r   r   r   rz   responses          r&   r   AwsList.page  sw      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                  U5      $  N7f)	aB  
Asynchronously retrieve a single page of AwsInstance 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 AwsInstance
r   r   r   r   r   r   r   N)r   r{   r-   r   rs   r   r   s          r&   r   AwsList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 t}}h//
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 AwsInstance records from the API.
Request is executed immediately

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

:returns: Page of AwsInstance
r   )r-   domaintwiliorequestr   r$   r   r   s      r&   get_pageAwsList.get_page3  s7     ==''..66ujIt}}h//r(   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 AwsInstance records from the API.
Request is executed immediately

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

:returns: Page of AwsInstance
r   N)r-   r   r   request_asyncr   r   s      r&   get_page_asyncAwsList.get_page_async?  sC      --44BB5*UUt}}h// Vs   4AAAr   c                 *    [        U R                  US9$ zv
Constructs a AwsContext

:param sid: The Twilio-provided string that uniquely identifies the AWS resource to update.
r+   r,   r-   r$   r   s     r&   r    AwsList.getK       $--S11r(   c                 *    [        U R                  US9$ r   r   r   s     r&   __call__AwsList.__call__S  r   r(   c                     g)rM   z<Twilio.Accounts.V1.AwsList>rr   r.   s    r&   r`   AwsList.__repr__[  r   r(   )rs   )NN)"rb   rc   rd   re   r   r   r   rj   rg   r   rk   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r,   r    r   r`   rl   rm   rn   s   @r&   r   r   7  s   	' 	' -3LL*0,,	!3!3 S&[)!3 3;'	!3
 
!3L -3LL*0,,	!3!3 S&[)!3 3;'	!3
 
!3J  $#';}; C=; 
+		;6  $#'A}A C=A 
{	#	A6  $#'
}
 C=
 
k		
8  $#'
}
 C=
 
k		
: *0*0,,(.	0#v+&0 3;'0 f%	0
 
0F *0*0,,(.	0#v+&0 3;'0 f%	0
 
0B
03 
07 
0
0s 
0w 
02s 2z 22C 2J 2.# . .r(   r   N)rf   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   rr   r(   r&   <module>r      sg     L L L + 8 : 2 ' !sE" sElRD RDj.d .&j.l j.r(   