
    d{i                         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 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)ApiResponse)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efd
ZdefdZddZddZdefdZdef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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 )PublicKeyInstancea  
    :ivar sid: The unique string that that we created to identify the PublicKey resource.
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Credential that the PublicKey resource belongs to.
    :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       k/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/accounts/v1/credential/public_key.pyr   zPublicKeyInstance.__init__$   s     	!")++e"4*1++m*D,3KK,H0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 59    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: PublicKeyContext for this PublicKeyInstance
        r   r   )r#   PublicKeyContext_versionr"   r$   s    r&   _proxyzPublicKeyInstance._proxy9   s9     == ,NN5)DM }}r'   c                 6    | j                   j                         S zl
        Deletes the PublicKeyInstance


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


        :returns: True if delete succeeds, False otherwise
        N)r.   delete_asyncr-   s    r&   r4   zPublicKeyInstance.delete_asyncQ   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the PublicKeyInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )r.   delete_with_http_infor-   s    r&   r7   z'PublicKeyInstance.delete_with_http_infoZ   s     {{0022r'   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the PublicKeyInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)r.   delete_with_http_info_asyncr-   s    r&   r9   z-PublicKeyInstance.delete_with_http_info_asyncc   s!      [[<<>>>>r5   c                 6    | j                   j                         S )_
        Fetch the PublicKeyInstance


        :returns: The fetched PublicKeyInstance
        )r.   fetchr-   s    r&   r<   zPublicKeyInstance.fetchl   s     {{  ""r'   c                 R   K   | j                   j                          d{   S 7 w)y
        Asynchronous coroutine to fetch the PublicKeyInstance


        :returns: The fetched PublicKeyInstance
        N)r.   fetch_asyncr-   s    r&   r?   zPublicKeyInstance.fetch_asyncu   s!      [[,,....r5   c                 6    | j                   j                         S )z
        Fetch the PublicKeyInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r.   fetch_with_http_infor-   s    r&   rA   z&PublicKeyInstance.fetch_with_http_info~   s     {{//11r'   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the PublicKeyInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r.   fetch_with_http_info_asyncr-   s    r&   rC   z,PublicKeyInstance.fetch_with_http_info_async   s!      [[;;====r5   r   c                 :    | j                   j                  |      S )
        Update the PublicKeyInstance

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

        :returns: The updated PublicKeyInstance
        r   )r.   updater$   r   s     r&   rG   zPublicKeyInstance.update   s#     {{!!' " 
 	
r'   c                 V   K   | j                   j                  |       d{   S 7 w)
        Asynchronous coroutine to update the PublicKeyInstance

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

        :returns: The updated PublicKeyInstance
        rF   N)r.   update_asyncrH   s     r&   rK   zPublicKeyInstance.update_async   s1      [[--' . 
 
 	
 
    )')c                 :    | j                   j                  |      S )a  
        Update the PublicKeyInstance with HTTP info

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

        :returns: ApiResponse with instance, status code, and headers
        rF   )r.   update_with_http_inforH   s     r&   rN   z'PublicKeyInstance.update_with_http_info   s#     {{00' 1 
 	
r'   c                 V   K   | j                   j                  |       d{   S 7 w)a   
        Asynchronous coroutine to update the PublicKeyInstance with HTTP info

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

        :returns: ApiResponse with instance, status code, and headers
        rF   N)r.   update_with_http_info_asyncrH   s     r&   rP   z-PublicKeyInstance.update_with_http_info_async   s1      [[<<' = 
 
 	
 
rL   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-PublicKeyInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z)<Twilio.Accounts.V1.PublicKeyInstance {}>joinr"   itemsrW   r$   contexts     r&   __repr__zPublicKeyInstance.__repr__   s6     ((SDNN<P<P<RSS:AA'JJr'   )N)r(   r+   )r(   r   ) __name__
__module____qualname____doc__r   r   strr   r   r   propertyr.   boolr1   r4   r   r7   r9   r<   r?   rA   rC   r   unsetr   objectrG   rK   rN   rP   rd   __classcell__r%   s   @r&   r   r      sH    OS99)-c3h9>Fsm9*  $ $0D 03{ 3?; ?#/2k 2>+ > 39,,
"3;/
	
 39,,
"3;/
	
 39,,
"3;/
	
 39,,
"3;/
	
K# K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defd	Zde
fd
ZdefdZde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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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 PublicKeyContext

        :param version: Version that contains the resource
        :param sid: The Twilio-provided string that uniquely identifies the PublicKey resource to update.
        r   z/Credentials/PublicKeys/{sid}N )r   r   r"   rW   _uri)r$   r   r   r%   s      r&   r   zPublicKeyContext.__init__   s@     	! 3
 ;3::LT^^L	r'   r(   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        DELETEmethoduriheaders)r   ofr,   delete_with_response_infors   r$   ry   s     r&   _deletezPublicKeyContext._delete   s8     ))B-}}66G 7 
 	
r'   c                 .    | j                         \  }}}|S r0   )r}   r$   success_s      r&   r1   zPublicKeyContext.delete   s     Ar'   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the PublicKeyInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_codery   )r}   r   r$   r   r   ry   s       r&   r7   z&PublicKeyContext.delete_with_http_info   s%     )-%g['RRr'   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        ru   rv   N)r   rz   r,   delete_with_response_info_asyncrs   r|   s     r&   _delete_asynczPublicKeyContext._delete_async  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wr3   )r   r   s      r&   r4   zPublicKeyContext.delete_async  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the PublicKeyInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r&   r9   z,PublicKeyContext.delete_with_http_info_async  s5      /3.@.@.B(B%g['RR )Cs   /-/c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETrv   )r   rz   r,   fetch_with_response_infors   r|   s     r&   _fetchzPublicKeyContext._fetch'  sB     ))B-.}}55dii 6 
 	
r'   c                 t    | j                         \  }}}t        | j                  || j                  d         S )r;   r   r*   )r   r   r,   r"   r$   r   r   s      r&   r<   zPublicKeyContext.fetch7  s8     A MMu%
 	
r'   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the PublicKeyInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r*   r   )r   r   r,   r"   r   r$   r   r   ry   instances        r&   rA   z%PublicKeyContext.fetch_with_http_infoE  sG     )-%g$MMu%

 k7SSr'   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   rv   N)r   rz   r,   fetch_with_response_info_asyncrs   r|   s     r&   _fetch_asynczPublicKeyContext._fetch_asyncT  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)r>   Nr   r*   )r   r   r,   r"   r   s      r&   r?   zPublicKeyContext.fetch_asyncd  sG      #//11A MMu%
 	
 2s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to fetch the PublicKeyInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r*   r   )r   r   r,   r"   r   r   s        r&   rC   z+PublicKeyContext.fetch_with_http_info_asyncr  sW      /3.?.?.A(A%g$MMu%

 k7SS )Bs   AA<Ar   c                     t        j                  d|i      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        FriendlyName!application/x-www-form-urlencodedContent-Typer   r   POSTrw   rx   r   ry   )r   rz   r,   update_with_response_infors   r$   r   r   ry   s       r&   _updatezPublicKeyContext._update  sh     yy

 ))B-"E.}}66tyytW 7 
 	
r'   c                 x    | j                  |      \  }}}t        | j                  || j                  d         S )rE   rF   r   r*   )r   r   r,   r"   r$   r   r   r   s       r&   rG   zPublicKeyContext.update  s6     =AA T^^E=RSSr'   c                     | j                  |      \  }}}t        | j                  || j                  d         }t	        |||      S )a  
        Update the PublicKeyInstance and return response metadata

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

        :returns: ApiResponse with instance, status code, and headers
        rF   r   r*   r   )r   r   r,   r"   r   r$   r   r   r   ry   r   s         r&   rN   z&PublicKeyContext.update_with_http_info  sF     )-=(Q%g$T]]GPUAVWk7SSr'   c                    K   t        j                  d|i      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   rz   r,   update_with_response_info_asyncrs   r   s       r&   _update_asynczPublicKeyContext._update_async  sw      yy

 ))B-"E.]]BBtyytW C 
 
 	
 
s   A#A,%A*&A,c                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         S 7 -w)rJ   rF   Nr   r*   )r   r   r,   r"   r   s       r&   rK   zPublicKeyContext.update_async  sF      #00}0MMA T^^E=RSS Ns   AA.Ac                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)a.  
        Asynchronous coroutine to update the PublicKeyInstance and return response metadata

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

        :returns: ApiResponse with instance, status code, and headers
        rF   Nr   r*   r   )r   r   r,   r"   r   r   s         r&   rP   z,PublicKeyContext.update_with_http_info_async  s_      /3.@.@' /A /
 )
%g %T]]GPUAVWk7SS	)
s   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )rR   rS   c              3   F   K   | ]  \  }}d j                  ||        ywrU   rV   rX   s      r&   r\   z,PublicKeyContext.__repr__.<locals>.<genexpr>  r]   r^   z(<Twilio.Accounts.V1.PublicKeyContext {}>r_   rb   s     r&   rd   zPublicKeyContext.__repr__  s6     ((SDNN<P<P<RSS9@@IIr'   )"re   rf   rg   r   ri   r   tupler}   rk   r1   r   r7   r   r4   r9   r   r   r<   rA   r   r?   rC   r   rl   r   rm   r   rG   rN   r   rK   rP   rd   rn   ro   s   @r&   r+   r+      s   M Mc M
 
 S{ S
U 
D S; S
 
 
( 
Tk T
E 
 
#4 
T+ T ;A,, 
U3;%7 
5 
0 39,,T"3;/T	T 39,,T"3;/T	T 39,,
"3;/
	
4 39,,T"3;/T	T 39,,T"3;/T	T J# Jr'   r+   c                   2    e Zd Zdeeef   defdZdefdZy)PublicKeyPager   r(   c                 .    t        | j                  |      S )zo
        Build an instance of PublicKeyInstance

        :param payload: Payload response from the API
        )r   r,   )r$   r   s     r&   get_instancezPublicKeyPage.get_instance  s     !88r'   c                      y)rR   z"<Twilio.Accounts.V1.PublicKeyPage>rr   r-   s    r&   rd   zPublicKeyPage.__repr__       4r'   N)	re   rf   rg   r   ri   r   r   r   rd   rr   r'   r&   r   r     s*    9DcN 97H 94# 4r'   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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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
fdZ	 	 d$dee   dee   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fdZ	 	 d$dee   dee   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!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#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 )%PublicKeyListr   c                 2    t         |   |       d| _        y)zk
        Initialize the PublicKeyList

        :param version: Version that contains the resource

        z/Credentials/PublicKeysN)r   r   rs   )r$   r   r%   s     r&   r   zPublicKeyList.__init__  s     	!-	r'   
public_keyr   r   r(   c                     t        j                  |||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        	PublicKeyr   
AccountSidr   r   r   r   r   r   )r   rz   r,   create_with_response_infors   r$   r   r   r   r   ry   s         r&   _createzPublicKeyList._create  ss     yy' -)
 ))^-PQR"E.}}66tyytW 7 
 	
r'   c                 ^    | j                  |||      \  }}}t        | j                  |      S )a'  
        Create the PublicKeyInstance

        :param public_key: A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----`
        :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 PublicKeyInstance
        r   r   r   )r   r   r,   r$   r   r   r   r   r   s         r&   createzPublicKeyList.create1  s7     !K % 
A !88r'   c                 z    | j                  |||      \  }}}t        | j                  |      }t        |||      S )aZ  
        Create the PublicKeyInstance and return response metadata

        :param public_key: A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----`
        :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: ApiResponse with instance, status code, and headers
        r   r   )r   r   r,   r   r$   r   r   r   r   r   ry   r   s           r&   create_with_http_infoz#PublicKeyList.create_with_http_infoE  sF     )-!K )5 )
%g %T]]G<k7SSr'   c                    K   t        j                  |||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   rz   r,   create_with_response_info_asyncrs   r   s         r&   _create_asynczPublicKeyList._create_asyncZ  s      yy' -)
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A'A0)A.*A0c                 z   K   | j                  |||       d{   \  }}}t        | j                  |      S 7 w)a6  
        Asynchronously create the PublicKeyInstance

        :param public_key: A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----`
        :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 PublicKeyInstance
        r   N)r   r   r,   r   s         r&   create_asynczPublicKeyList.create_asyncx  sG      #00!K 1 
 
A !88
s   ;9;c                    K   | j                  |||       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)ai  
        Asynchronously create the PublicKeyInstance and return response metadata

        :param public_key: A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----`
        :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: ApiResponse with instance, status code, and headers
        r   Nr   )r   r   r,   r   r   s           r&   create_with_http_info_asyncz)PublicKeyList.create_with_http_info_async  sW      /3.@.@!K /A /
 )
%g %T]]G<k7SS	)
s   A	A-A	limit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )a_  
        Streams PublicKeyInstance 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PublicKeyList.stream  sJ    ( **5)<yy6+#6y7}}##D&/::r'   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)an  
        Asynchronously streams PublicKeyInstance 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PublicKeyList.stream_async  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                     | j                   j                  ||      }| j                  |d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams PublicKeyInstance and returns headers from first page


        :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   )r,   r   page_with_http_infor   r   r   ry   r$   r   r   r   page_response	generators         r&   stream_with_http_infoz#PublicKeyList.stream_with_http_info  sk    $ **5)<006+;N0O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)a  
        Asynchronously streams PublicKeyInstance and returns headers from first page


        :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   )r,   r   page_with_http_info_asyncr   r   r   ry   r   s         r&   stream_with_http_info_asyncz)PublicKeyList.stream_with_http_info_async  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB c                 :    t        | j                  ||            S )a  
        Lists PublicKeyInstance 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PublicKeyList.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 PublicKeyInstance 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PublicKeyList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists PublicKeyInstance and returns headers from first page


        :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
        r   r   )r   r   r   )r$   r   r   r   r   ry   ra   s          r&   list_with_http_infoz!PublicKeyList.list_with_http_info:  sA    $ +/*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)a  
        Asynchronously lists PublicKeyInstance and returns headers from first page


        :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
        r   Nr   )r   r   )r$   r   r   r   r   ry   r   ra   s           r&   list_with_http_info_asyncz'PublicKeyList.list_with_http_info_asyncS  sf     $ 150P0P 1Q 1
 +
'	; -666&	+
 7666;PPs4   A4A:86
8:A8:A
page_tokenpage_numberc                     t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )aw  
        Retrieve a single page of PublicKeyInstance 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 PublicKeyInstance
        	PageTokenr   PageSizer   r   r   r   r   rw   rx   paramsry   )r   rz   r,   r   rs   r   r$   r   r   r   r   ry   responses          r&   r   zPublicKeyList.pagel  sy      yy'#%
 ))^-PQR.==%%diig & 
 T]]H55r'   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 PublicKeyInstance 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 PublicKeyInstance
        r   r   r   r   r   r   r   N)r   rz   r,   r   rs   r   r   s          r&   r   zPublicKeyList.page_async  s       yy'#%
 ))^-PQR.11diig 2 
 
 T]]H55
s   A"B$A?%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 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 PublicKeyPage, status code, and headers
        r   r   r   r   r   r   r   r   )r   rz   r,   page_with_response_infors   r   r   
r$   r   r   r   r   ry   r   r   response_headersr   s
             r&   r   z!PublicKeyList.page_with_http_info  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ T]]H5+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)
aj  
        Asynchronously retrieve a single page with response metadata


        :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 PublicKeyPage, status code, and headers
        r   r   r   r   r   r   r   Nr   )r   rz   r,   page_with_response_info_asyncrs   r   r   r   s
             r&   r   z'PublicKeyList.page_with_http_info_async  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 T]]H5+GWXXs   A"B$B%-B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )z
        Retrieve a specific page of PublicKeyInstance records from the API.
        Request is executed immediately

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

        :returns: Page of PublicKeyInstance
        r   )r,   domaintwiliorequestr   r$   r   r   s      r&   get_pagezPublicKeyList.get_page  s7     ==''..66ujIT]]H55r'   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of PublicKeyInstance records from the API.
        Request is executed immediately

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

        :returns: Page of PublicKeyInstance
        r   N)r,   r  r  request_asyncr   r  s      r&   get_page_asynczPublicKeyList.get_page_async   sD      --44BB5*UUT]]H55 Vs   4AAAr   c                 0    t        | j                  |      S z
        Constructs a PublicKeyContext

        :param sid: The Twilio-provided string that uniquely identifies the PublicKey resource to update.
        r*   r+   r,   r$   r   s     r&   r    zPublicKeyList.get        377r'   c                 0    t        | j                  |      S r  r  r  s     r&   __call__zPublicKeyList.__call__  r  r'   c                      y)rR   z"<Twilio.Accounts.V1.PublicKeyList>rr   r-   s    r&   rd   zPublicKeyList.__repr__  r   r'   )NN),re   rf   rg   r   r   r   rl   ri   r   rm   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   r   r  r	  r+   r    r  rd   rn   ro   s   @r&   r   r     sy   	. 	. -3LL*0,,	

 S&[)
 3;'	

 

B -3LL*0,,	99 S&[)9 3;'	9
 
9. -3LL*0,,	TT S&[)T 3;'	T
 
T0 -3LL*0,,	

 S&[)
 3;'	

 

B -3LL*0,,	99 S&[)9 3;'	9
 
9. -3LL*0,,	TT S&[)T 3;'	T
 
T.  $#';}; C=; 
#	$	;6  $#'A}A C=A 
(	)	A6  $#'M}M C=M 
	M4  $#'M}M C=M 
	M8  $#'
}
 C=
 
	 	
8  $#'
}
 C=
 
	 	
:  $#'Q}Q C=Q 
	Q6  $#'Q}Q C=Q 
	Q6 *0*0,,(.	6#v+&6 3;'6 f%	6
 
6F *0*0,,(.	6#v+&6 3;'6 f%	6
 
6F *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
63 
6= 
6
6s 
6} 
68s 8/ 88C 8$4 84# 4r'   r   N)rh   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.api_responser   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     sj     L L L + 0 8 : 2 ' !uK( uKp^J ^JB	4D 4&\4L \4r'   