
    pi0                         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  G d	 d
e      Z G d de      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Iam
    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)InstanceResource)ListResource)Version)Pagec                   B     e Zd ZdZdedeeef   f fdZdefdZ	 xZ
S )GetApiKeysInstancea  
    :ivar sid: The unique string that we created to identify the Key resource.
    :ivar friendly_name: The string that you assigned to describe the resource.
    :ivar date_created: The date and time in GMT that 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 that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    :ivar flags:
    versionpayloadc                 L   t         |   |       |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _        |j                  d      | _	        y )Nsidfriendly_namedate_createddate_updatedflags)
super__init__getr   r   r   rfc2822_datetimer   r   r   )selfr   r   	__class__s      a/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/iam/v1/get_api_keys.pyr   zGetApiKeysInstance.__init__"   s    !")++e"4,3KK,H0;0L0LKK'1
 1<0L0LKK'1
 +2++g*>
    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z"<Twilio.Iam.V1.GetApiKeysInstance> r   s    r!   __repr__zGetApiKeysInstance.__repr__/   s     4r"   )__name__
__module____qualname____doc__r   r   strr   r   r(   __classcell__r    s   @r!   r   r      s/    ? ?$sCx. ?4# 4r"   r   c                   2    e Zd Zdeeef   defdZdefdZy)GetApiKeysPager   r#   c                 .    t        | j                  |      S )zp
        Build an instance of GetApiKeysInstance

        :param payload: Payload response from the API
        )r   _version)r   r   s     r!   get_instancezGetApiKeysPage.get_instance;   s     "$--99r"   c                      y)r%   z<Twilio.Iam.V1.GetApiKeysPage>r&   r'   s    r!   r(   zGetApiKeysPage.__repr__C        0r"   N)	r)   r*   r+   r   r-   r   r   r4   r(   r&   r"   r!   r1   r1   9   s*    :DcN :7I :0# 0r"   r1   c                       e Zd Zdef fdZej                  ddfdeee	f   de
e   de
e   dee   fdZej                  ddfdeee	f   de
e   de
e   dee   fd	Zej                  ddfdeee	f   de
e   de
e   dee   fd
Zej                  ddfdeee	f   de
e   de
e   dee   fdZej                  ej                  ej                  ej                  fdeee	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                  ej                  fdeee	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fdZ xZS )GetApiKeysListr   c                 2    t         |   |       d| _        y)zl
        Initialize the GetApiKeysList

        :param version: Version that contains the resource

        z/KeysN)r   r   _uri)r   r   r    s     r!   r   zGetApiKeysList.__init__N   s     	!	r"   Naccount_sidlimit	page_sizer#   c                     | j                   j                  ||      }| j                  ||d         }| j                   j                  ||d         S )a  
        Streams GetApiKeysInstance 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 str account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
        :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<   )r3   read_limitspagestreamr   r;   r<   r=   limitsrA   s         r!   rB   zGetApiKeysList.streamY   sL    , **5)<yy[F;<OyP}}##D&/::r"   c                    K   | j                   j                  ||      }| j                  ||d          d{   }| j                   j                  ||d         S 7 #w)a  
        Asynchronously streams GetApiKeysInstance 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 str account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
        :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<   )r3   r@   
page_asyncstream_asyncrC   s         r!   rG   zGetApiKeysList.stream_asynct   sb     , **5)<__#vk/B % 
 
 }}))$w@@	
s   6AA$Ac                 <    t        | j                  |||            S )a  
        Lists GetApiKeysInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
        :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<   r=   )listrB   )r   r;   r<   r=   s       r!   rJ   zGetApiKeysList.list   s+    * KK'#  
 	
r"   c                 |   K   | j                  |||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists GetApiKeysInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
        :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
        rI   N)rG   )r   r;   r<   r=   records        r!   
list_asynczGetApiKeysList.list_async   sW     . '+&7&7'# '8 ' !
 
 !
 
 	
 
s0   </<731
37<37<
page_tokenpage_numberc                     t        j                  ||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )a  
        Retrieve a single page of GetApiKeysInstance records from the API.
        Request is executed immediately

        :param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
        :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 GetApiKeysInstance
        
AccountSid	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)r   ofr3   rA   r:   r1   r   r;   rN   rO   r=   datar^   responses           r!   rA   zGetApiKeysList.page   s|    $ yy)'#%	
 ))^-PQR.==%%diig & 
 dmmX66r"   c                   K   t        j                  ||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	a  
        Asynchronously retrieve a single page of GetApiKeysInstance records from the API.
        Request is executed immediately

        :param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
        :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 GetApiKeysInstance
        rQ   rU   rV   rW   rX   rY   rZ   N)r   r_   r3   rF   r:   r1   r`   s           r!   rF   zGetApiKeysList.page_async   s     $ yy)'#%	
 ))^-PQR.11diig 2 
 
 dmmX66
s   A#B%B &B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )z
        Retrieve a specific page of GetApiKeysInstance records from the API.
        Request is executed immediately

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

        :returns: Page of GetApiKeysInstance
        rY   )r3   domaintwiliorequestr1   r   rd   rb   s      r!   get_pagezGetApiKeysList.get_page  s7     ==''..66ujIdmmX66r"   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of GetApiKeysInstance records from the API.
        Request is executed immediately

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

        :returns: Page of GetApiKeysInstance
        rY   N)r3   rf   rg   request_asyncr1   ri   s      r!   get_page_asynczGetApiKeysList.get_page_async   sD      --44BB5*UUdmmX66 Vs   4AAAc                      y)r%   z<Twilio.Iam.V1.GetApiKeysList>r&   r'   s    r!   r(   zGetApiKeysList.__repr__,  r6   r"   )r)   r*   r+   r   r   r   unsetr   r-   objectr   intr	   r   rB   r
   rG   r   rJ   rM   r1   rA   rF   rj   rm   r(   r.   r/   s   @r!   r8   r8   L   s{   	 	 +1,,##'	;3;'; }; C=	;
 
$	%;: +1,,##'	A3;'A }A C=	A
 
)	*A> +1,,##'	
3;'
 }
 C=	

 
 	!
> +1,,##'	
3;'
 }
 C=	

 
 	!
@ +1,,)/*0,,(."73;'"7 #v+&"7 3;'	"7
 f%"7 
"7L +1,,)/*0,,(."73;'"7 #v+&"7 3;'	"7
 f%"7 
"7H
73 
7> 
7
7s 
7~ 
70# 0r"   r8   N)r,   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r1   r8   r&   r"   r!   <module>rx      sO     L L L + : 2 ' !4) 4@0T 0&f0\ f0r"   