
    piP                         d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
mZmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ  G d
 de      Z G d de      Z G d de      Z G d de      Zy)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                        e Zd ZdZ	 ddedeeef   dee   f fdZ	e
dd       ZdefdZdefd	Zdd
ZddZej$                  fdeeef   dd fdZej$                  fdeeef   dd fdZdefdZ xZS )AwsInstancea  
    :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         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _	        |j                  d      | _
        d|xs | j                  i| _        d | _        y )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       h/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/accounts/v1/credential/aws.pyr   zAwsInstance.__init__#   s     	!")++e"4*1++m*D,3KK,H0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 /3    returnc                     | j                   )t        | j                  | j                  d         | _         | j                   S )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%   _proxyzAwsInstance._proxy8   s9     == &NN5)DM }}r&   c                 6    | j                   j                         S )f
        Deletes the AwsInstance


        :returns: True if delete succeeds, False otherwise
        )r-   deleter,   s    r%   r0   zAwsInstance.deleteG   s     {{!!##r&   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine that deletes the AwsInstance


        :returns: True if delete succeeds, False otherwise
        N)r-   delete_asyncr,   s    r%   r3   zAwsInstance.delete_asyncP   s!      [[--////   '%'c                 6    | j                   j                         S )S
        Fetch the AwsInstance


        :returns: The fetched AwsInstance
        )r-   fetchr,   s    r%   r7   zAwsInstance.fetchY   s     {{  ""r&   c                 R   K   | j                   j                          d{   S 7 w)m
        Asynchronous coroutine to fetch the AwsInstance


        :returns: The fetched AwsInstance
        N)r-   fetch_asyncr,   s    r%   r:   zAwsInstance.fetch_asyncb   s!      [[,,....r4   r   c                 :    | j                   j                  |      S )
        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%   r>   zAwsInstance.updatek   s#     {{!!' " 
 	
r&   c                 V   K   | j                   j                  |       d{   S 7 w)
        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
        r=   N)r-   update_asyncr?   s     r%   rB   zAwsInstance.update_asyncw   s1      [[--' . 
 
 	
 
s    )')c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r%   	<genexpr>z'AwsInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z#<Twilio.Accounts.V1.AwsInstance {}>joinr!   itemsrI   r#   contexts     r%   __repr__zAwsInstance.__repr__   s6     ((SDNN<P<P<RSS4;;GDDr&   )N)r'   r*   )r'   r   )__name__
__module____qualname____doc__r   r   strr   r   r   propertyr-   boolr0   r3   r7   r:   r   unsetr   objectr>   rB   rV   __classcell__r$   s   @r%   r   r      s     OS33)-c3h3>Fsm3*  $ $0D 0#/ :@ 

E#v+$6 

- 

 39,,
"3;/
	
E# Er&   r   c                        e Zd Zdedef fdZdefdZdefdZde	fdZ
de	fdZej                  fd	eeef   de	fd
Zej                  fd	eeef   de	fdZdefdZ xZS )r*   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)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!   rI   _uri)r#   r   r   r$   s      r%   r   zAwsContext.__init__   s@     	! 3
 4,33EdnnE	r&   r'   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )r/   DELETEmethoduriheaders)r   ofr+   r0   re   r#   rk   s     r%   r0   zAwsContext.delete   s1     ))B-}}##8G#TTr&   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)r2   rg   rh   N)r   rl   r+   r3   re   rm   s     r%   r3   zAwsContext.delete_async   sF      ))B-]]//G 0 
 
 	
 
s   AA
AA
c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      }t        | j                  || j                  d         S )r6   application/jsonAcceptGETrh   r   r)   )r   rl   r+   r7   re   r   r!   r#   rk   r   s      r%   r7   zAwsContext.fetch   s]     ))B-.--%%U		7%SMMu%
 	
r&   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)r9   rp   rq   rr   rh   Nr   r)   )r   rl   r+   r:   re   r   r!   rs   s      r%   r:   zAwsContext.fetch_async   sr      ))B-.11dii 2 
 
 MMu%
 	
	
s   AA4A2	*A4r   c                 
   t        j                  d|i      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                  d   	      S )
r<   FriendlyName!application/x-www-form-urlencodedContent-Typerp   rq   POSTri   rj   datark   r   r)   )r   rl   r+   r>   re   r   r!   r#   r   r{   rk   r   s        r%   r>   zAwsContext.update   s     yy

 ))B-"E.--&&tyytW ' 
 4=='t~~e7LMMr&   c                 &  K   t        j                  d|i      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                  d	   
      S 7 )w)rA   rv   rw   rx   rp   rq   ry   rz   Nr   r)   )r   rl   r+   rB   re   r   r!   r|   s        r%   rB   zAwsContext.update_async   s      yy

 ))B-"E.22tyytW 3 
 
 4=='t~~e7LMM	
s   A#B%B&*Bc                     dj                  d | j                  j                         D              }dj                  |      S )rD   rE   c              3   F   K   | ]  \  }}d j                  ||        ywrG   rH   rJ   s      r%   rN   z&AwsContext.__repr__.<locals>.<genexpr>   rO   rP   z"<Twilio.Accounts.V1.AwsContext {}>rQ   rT   s     r%   rV   zAwsContext.__repr__  s6     ((SDNN<P<P<RSS3::7CCr&   )rW   rX   rY   r   r[   r   r]   r0   r3   r   r7   r:   r   r^   r   r_   r>   rB   rV   r`   ra   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r&   r*   c                   2    e Zd Zdeeef   defdZdefdZy)AwsPager   r'   c                 .    t        | j                  |      S )zi
        Build an instance of AwsInstance

        :param payload: Payload response from the API
        )r   r+   )r#   r   s     r%   get_instancezAwsPage.get_instance&  s     4=='22r&   c                      y)rD   z<Twilio.Accounts.V1.AwsPage>rd   r,   s    r%   rV   zAwsPage.__repr__.       .r&   N)	rW   rX   rY   r   r[   r   r   r   rV   rd   r&   r%   r   r   $  s)    3DcN 3{ 3.# .r&   r   c            	           e Zd Zdef fdZej                  ej                  fdedeee	f   deee	f   de
fdZej                  ej                  fdedeee	f   deee	f   de
fdZ	 	 dd	ee   d
ee   dee
   fdZ	 	 dd	ee   d
ee   dee
   fdZ	 	 dd	ee   d
ee   dee
   fdZ	 	 dd	ee   d
ee   dee
   fdZej                  ej                  ej                  fdeee	f   deee	f   d
eee	f   defdZej                  ej                  ej                  fdeee	f   deee	f   d
eee	f   defdZdedefdZdedefdZdedefdZdedefdZdefdZ xZS )AwsListr   c                 2    t         |   |       d| _        y)ze
        Initialize the AwsList

        :param version: Version that contains the resource

        z/Credentials/AWSN)r   r   re   )r#   r   r$   s     r%   r   zAwsList.__init__9  s     	!&	r&   credentialsr   r   r'   c                     t        j                  |||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )aR  
        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
        Credentialsrv   
AccountSidrx   rw   rp   rq   ry   rz   )r   rl   r+   createre   r   r#   r   r   r   r{   rk   r   s          r%   r   zAwsList.createD  s      yy* -)
 ))^-PQR"E.--&&tyytW ' 
 4=='22r&   c                   K   t        j                  |||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	aa  
        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   rx   rw   rp   rq   ry   rz   N)r   rl   r+   create_asyncre   r   r   s          r%   r   zAwsList.create_asyncg  s       yy* -)
 ))^-PQR"E.22tyytW 3 
 
 4=='22	
s   A'B)B*Blimit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )aY  
        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   zAwsList.stream  sJ    ( **5)<yy6+#6y7}}##D&/::r&   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)ah  
        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   zAwsList.stream_async  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                 :    t        | j                  ||            S )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   zAwsList.list  s(    & KK#  
 	
r&   c                 z   K   | j                  ||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)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_asynczAwsList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;
page_tokenpage_numberc                     t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )ak  
        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   PageSizerx   rw   rp   rq   rr   ri   rj   paramsrk   )r   rl   r+   r   re   r   r#   r   r   r   r{   rk   responses          r%   r   zAwsList.page  sy      yy'#%
 ))^-PQR.==%%diig & 
 t}}h//r&   c                   K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	az  
        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   rx   rw   rp   rq   rr   r   N)r   rl   r+   r   re   r   r   s          r%   r   zAwsList.page_async  s       yy'#%
 ))^-PQR.11diig 2 
 
 t}}h//
s   A"B$A?%B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )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
        rr   )r+   domaintwiliorequestr   r#   r   r   s      r%   get_pagezAwsList.get_page3  s7     ==''..66ujIt}}h//r&   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)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
        rr   N)r+   r   r   request_asyncr   r   s      r%   get_page_asynczAwsList.get_page_async?  sD      --44BB5*UUt}}h// Vs   4AAAr   c                 0    t        | j                  |      S z
        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   zAwsList.getK       $--S11r&   c                 0    t        | j                  |      S r   r   r   s     r%   __call__zAwsList.__call__S  r   r&   c                      y)rD   z<Twilio.Accounts.V1.AwsList>rd   r,   s    r%   rV   zAwsList.__repr__[  r   r&   )NN) rW   rX   rY   r   r   r   r^   r[   r   r_   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r*   r   r   rV   r`   ra   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)rZ   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   rd   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&   