o
    �¨Êh  ã                   @   st   d 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„ deƒZ
G d	d
„ d
e	ƒZG dd„ deƒZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
é    )Údeserialize)Úvalues)ÚInstanceResource)ÚListResource)ÚPagec                       s6   e Zd ZdZ‡ fdd„Zejfdd„Zdd„ Z‡  Z	S )Ú
NewKeyListú  c                    s2   t t| ƒ |¡ d|i| _djdi | j¤Ž| _dS )aN  
        Initialize the NewKeyList

        :param Version version: Version that contains the resource
        :param account_sid: A 34 character string that uniquely identifies this resource.

        :returns: twilio.rest.api.v2010.account.new_key.NewKeyList
        :rtype: twilio.rest.api.v2010.account.new_key.NewKeyList
        Úaccount_sidz!/Accounts/{account_sid}/Keys.jsonN© )Úsuperr   Ú__init__Ú	_solutionÚformatÚ_uri)ÚselfÚversionr	   ©Ú	__class__r
   úW/var/www/html/env/lib/python3.10/site-packages/twilio/rest/api/v2010/account/new_key.pyr      s   

zNewKeyList.__init__c                 C   s8   t  d|i¡}| jjd| j|d�}t| j|| jd d�S )zÛ
        Create a new NewKeyInstance

        :param unicode friendly_name: The friendly_name

        :returns: Newly created NewKeyInstance
        :rtype: twilio.rest.api.v2010.account.new_key.NewKeyInstance
        ÚFriendlyNameÚPOST)Údatar	   ©r	   )r   ÚofÚ_versionÚcreater   ÚNewKeyInstancer   )r   Úfriendly_namer   Úpayloadr
   r
   r   r   #   s   	ýzNewKeyList.createc                 C   ó   dS )úz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Api.V2010.NewKeyList>r
   ©r   r
   r
   r   Ú__repr__6   ó   zNewKeyList.__repr__)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Úunsetr   r"   Ú__classcell__r
   r
   r   r   r      s
    r   c                       s0   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Z‡  ZS )Ú
NewKeyPager   c                    s   t t| ƒ ||¡ || _dS )a†  
        Initialize the NewKeyPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param account_sid: A 34 character string that uniquely identifies this resource.

        :returns: twilio.rest.api.v2010.account.new_key.NewKeyPage
        :rtype: twilio.rest.api.v2010.account.new_key.NewKeyPage
        N)r   r*   r   r   )r   r   ÚresponseÚsolutionr   r
   r   r   C   s   
zNewKeyPage.__init__c                 C   s   t | j|| jd d�S )zþ
        Build an instance of NewKeyInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.api.v2010.account.new_key.NewKeyInstance
        :rtype: twilio.rest.api.v2010.account.new_key.NewKeyInstance
        r	   r   )r   r   r   )r   r   r
   r
   r   Úget_instanceS   s   	zNewKeyPage.get_instancec                 C   r   )r    z<Twilio.Api.V2010.NewKeyPage>r
   r!   r
   r
   r   r"   ^   r#   zNewKeyPage.__repr__)r$   r%   r&   r'   r   r-   r"   r)   r
   r
   r   r   r*   @   s
    r*   c                       sd   e Zd ZdZ‡ fdd„Zedd„ ƒZedd„ ƒZedd	„ ƒZed
d„ ƒZ	edd„ ƒZ
dd„ Z‡  ZS )r   r   c                    sV   t t| ƒ |¡ |d |d t |d ¡t |d ¡|d dœ| _d| _d|i| _dS )	z¼
        Initialize the NewKeyInstance

        :returns: twilio.rest.api.v2010.account.new_key.NewKeyInstance
        :rtype: twilio.rest.api.v2010.account.new_key.NewKeyInstance
        Úsidr   Údate_createdÚdate_updatedÚsecret)r.   r   r/   r0   r1   Nr	   )r   r   r   r   Úrfc2822_datetimeÚ_propertiesÚ_contextr   )r   r   r   r	   r   r
   r   r   k   s   û	zNewKeyInstance.__init__c                 C   ó
   | j d S )z;
        :returns: The sid
        :rtype: unicode
        r.   ©r3   r!   r
   r
   r   r.   �   ó   
zNewKeyInstance.sidc                 C   r5   )zE
        :returns: The friendly_name
        :rtype: unicode
        r   r6   r!   r
   r
   r   r   ‰   r7   zNewKeyInstance.friendly_namec                 C   r5   )zE
        :returns: The date_created
        :rtype: datetime
        r/   r6   r!   r
   r
   r   r/   ‘   r7   zNewKeyInstance.date_createdc                 C   r5   )zE
        :returns: The date_updated
        :rtype: datetime
        r0   r6   r!   r
   r
   r   r0   ™   r7   zNewKeyInstance.date_updatedc                 C   r5   )z>
        :returns: The secret
        :rtype: unicode
        r1   r6   r!   r
   r
   r   r1   ¡   r7   zNewKeyInstance.secretc                 C   r   )r    z!<Twilio.Api.V2010.NewKeyInstance>r
   r!   r
   r
   r   r"   ©   r#   zNewKeyInstance.__repr__)r$   r%   r&   r'   r   Úpropertyr.   r   r/   r0   r1   r"   r)   r
   r
   r   r   r   h   s    




r   N)r'   Útwilio.baser   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.pager   r   r*   r   r
   r
   r
   r   Ú<module>   s   0(