
    d{i]Q                         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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)ApiResponse)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      ]/home/sas/my/fyp/ringai/.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__0   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__D        0r#   N)	r*   r+   r,   r   r.   r   r   r5   r)   r'   r#   r"   r2   r2   :   s*    :DcN :7I :0# 0r#   r2   c                   0    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fd
Zej                  ddfdeee	f   de
e   de
e   d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fdZej                  ddfdeee	f   de
e   de
e   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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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__O   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=   )r4   read_limitspagestreamr    r<   r=   r>   limitsrB   s         r"   rC   zGetApiKeysList.streamZ   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=   )r4   rA   
page_asyncstream_asyncrD   s         r"   rH   zGetApiKeysList.stream_asyncu   sb     , **5)<__#vk/B % 
 
 }}))$w@@	
s   6AA$Ac                     | j                   j                  ||      }| j                  ||d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a>  
        Streams GetApiKeysInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r>   r@   r=   )r4   rA   page_with_http_inforC   datastatus_codeheadersr    r<   r=   r>   rE   page_response	generators          r"   stream_with_http_infoz$GetApiKeysList.stream_with_http_info   st    ( **5)<00#vk/B 1 
 MM((););VG_M	=44m6K6KLLr#   c                   K   | j                   j                  ||      }| j                  ||d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)aM  
        Asynchronously streams GetApiKeysInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r>   r@   Nr=   )r4   rA   page_with_http_info_asyncrH   rK   rL   rM   rN   s          r"   stream_with_http_info_asyncz*GetApiKeysList.stream_with_http_info_async   s     ( **5)<"<<#vk/B = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   6BA?AB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>   )listrC   )r    r<   r=   r>   s       r"   rW   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
        rV   N)rH   )r    r<   r=   r>   records        r"   
list_asynczGetApiKeysList.list_async   sW     . '+&7&7'# '8 ' !
 
 !
 
 	
 
s0   </<731
37<37<c                 d    | j                  |||      \  }}}t        |      }t        |||      S )a)  
        Lists GetApiKeysInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        rV   rK   rL   rM   )rQ   rW   r   )r    r<   r=   r>   rP   rL   rM   itemss           r"   list_with_http_infoz"GetApiKeysList.list_with_http_info  sD    ( +/*D*D# +E +
'	;
 Y;PPr#   c                    K   | j                  |||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }}t        |||      S w)a8  
        Asynchronously lists GetApiKeysInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        rV   Nr\   )rT   r   )	r    r<   r=   r>   rP   rL   rM   rY   r]   s	            r"   list_with_http_info_asyncz(GetApiKeysList.list_with_http_info_async!  si     ( 150P0P# 1Q 1
 +
'	;
 -666&+

 7666;PPs4   A5A;97
9;A9;A
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paramsrM   )r   ofr4   rB   r;   r2   r    r<   ra   rb   r>   rK   rM   responses           r"   rB   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
        rd   rh   ri   rj   rk   rl   rm   N)r   rq   r4   rG   r;   r2   rr   s           r"   rG   zGetApiKeysList.page_asynca  s     $ yy)'#%	
 ))^-PQR.11diig 2 
 
 dmmX66
s   A#B%B &Bc                    t        j                  ||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}	t        | j                  |      }
t        |
||	      S )	a  
        Retrieve a single page with response metadata


        :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: ApiResponse with GetApiKeysPage, status code, and headers
        rd   rh   ri   rj   rk   rl   rm   r\   )r   rq   r4   page_with_response_infor;   r2   r   r    r<   ra   rb   r>   rK   rM   rs   rL   response_headersrB   s              r"   rJ   z"GetApiKeysList.page_with_http_info  s    $ yy)'#%	
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ dmmX6+GWXXr#   c                 ,  K   t        j                  ||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}	t        | j                  |      }
t        |
||		      S 7 ,w)
a  
        Asynchronously retrieve a single page with response metadata


        :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: ApiResponse with GetApiKeysPage, status code, and headers
        rd   rh   ri   rj   rk   rl   rm   Nr\   )r   rq   r4   page_with_response_info_asyncr;   r2   r   rw   s              r"   rS   z(GetApiKeysList.page_with_http_info_async  s     $ yy)'#%	
 ))^-PQR. --==$))D' >   	0+/
 dmmX6+GWXX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
        rl   )r4   domaintwiliorequestr2   r    r{   rs   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
        rl   N)r4   r}   r~   request_asyncr2   r   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__  r7   r#   )#r*   r+   r,   r   r   r   unsetr   r.   objectr   intr	   r   rC   r
   rH   tuplerQ   rT   r   rW   rZ   r   r^   r`   r2   rB   rG   rJ   rS   r   r   r)   r/   r0   s   @r"   r9   r9   M   s   	 	 +1,,##'	;3;'; }; C=	;
 
$	%;: +1,,##'	A3;'A }A C=	A
 
)	*A> +1,,##'	M3;'M }M C=	M
 
M< +1,,##'	M3;'M }M C=	M
 
M< +1,,##'	
3;'
 }
 C=	

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

 
 	!
@ +1,,##'	Q3;'Q }Q C=	Q
 
Q< +1,,##'	Q3;'Q }Q C=	Q
 
Q< +1,,)/*0,,(."73;'"7 #v+&"7 3;'	"7
 f%"7 
"7L +1,,)/*0,,(."73;'"7 #v+&"7 3;'	"7
 f%"7 
"7L +1,,)/*0,,(.#Y3;'#Y #v+&#Y 3;'	#Y
 f%#Y 
#YN +1,,)/*0,,(.%Y3;'%Y #v+&%Y 3;'	%Y
 f%%Y 
%YN
73 
7> 
7
7s 
7~ 
70# 0r#   r9   N)r-   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.api_responser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r2   r9   r'   r#   r"   <module>r      sR     L L L + 0 : 2 ' !4) 4@0T 0&b0\ b0r#   