o
    e                     @   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                       s2   e Zd Z fddZejfddZdd Z  ZS )
NewKeyListc                    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	   X/var/www/html/venv/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 the NewKeyInstance

        :param unicode friendly_name: A string to describe the resource

        :returns: The created NewKeyInstance
        :rtype: twilio.rest.api.v2010.account.new_key.NewKeyInstance
        FriendlyNamePOST)methoduri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__1      zNewKeyList.__repr__)	__name__
__module____qualname__r   r   unsetr   r#   __classcell__r	   r	   r   r   r      s    r   c                       s,   e Zd Z fddZdd Zdd Z  ZS )
NewKeyPagec                    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   =   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_instanceM   s   	zNewKeyPage.get_instancec                 C   r    )r!   z<Twilio.Api.V2010.NewKeyPage>r	   r"   r	   r	   r   r#   X   r$   zNewKeyPage.__repr__)r%   r&   r'   r   r-   r#   r)   r	   r	   r   r   r*   ;   s    r*   c                       s`   e 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   c                    s`   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   getr   rfc2822_datetime_properties_contextr   )r   r   r   r   r   r	   r   r   d   s   	zNewKeyInstance.__init__c                 C   
   | j d S )zb
        :returns: The unique string that identifies the resource
        :rtype: unicode
        r.   r4   r"   r	   r	   r   r.   z      
zNewKeyInstance.sidc                 C   r6   )zi
        :returns: The string that you assigned to describe the resource
        :rtype: unicode
        r   r7   r"   r	   r	   r   r      r8   zNewKeyInstance.friendly_namec                 C   r6   )zt
        :returns: The RFC 2822 date and time in GMT that the resource was created
        :rtype: datetime
        r/   r7   r"   r	   r	   r   r/      r8   zNewKeyInstance.date_createdc                 C   r6   )zy
        :returns: The RFC 2822 date and time in GMT that the resource was last updated
        :rtype: datetime
        r0   r7   r"   r	   r	   r   r0      r8   zNewKeyInstance.date_updatedc                 C   r6   )z
        :returns: The secret your application uses to sign Access Tokens and to authenticate to the REST API.
        :rtype: unicode
        r1   r7   r"   r	   r	   r   r1      r8   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   propertyr.   r   r/   r0   r1   r#   r)   r	   r	   r   r   r   b   s    




r   N)__doc__twilio.baser   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r*   r   r	   r	   r	   r   <module>   s   +'