B
    `                 @   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                s.   t t| | d|i| _djf | 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__ T/home/dcms/DCMS/lib/python3.7/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
        ZFriendlyNamePOST)methoduridatar   )r   )r   Zof_versioncreater   NewKeyInstancer   )r   friendly_namer   payloadr   r   r   r   "   s    	zNewKeyList.createc             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Api.V2010.NewKeyList>r   )r   r   r   r   __repr__1   s    zNewKeyList.__repr__)	__name__
__module____qualname__r
   r   Z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   responseZsolution)r   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   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Api.V2010.NewKeyPage>r   )r   r   r   r   r   X   s    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%   r&   r'   Nr   )	r	   r   r
   getr   Zrfc2822_datetime_properties_contextr   )r   r   r   r   )r   r   r   r
   d   s    zNewKeyInstance.__init__c             C   s
   | j d S )zb
        :returns: The unique string that identifies the resource
        :rtype: unicode
        r$   )r)   )r   r   r   r   r$   z   s    zNewKeyInstance.sidc             C   s
   | j d S )zi
        :returns: The string that you assigned to describe the resource
        :rtype: unicode
        r   )r)   )r   r   r   r   r      s    zNewKeyInstance.friendly_namec             C   s
   | j d S )zt
        :returns: The RFC 2822 date and time in GMT that the resource was created
        :rtype: datetime
        r%   )r)   )r   r   r   r   r%      s    zNewKeyInstance.date_createdc             C   s
   | j d S )zy
        :returns: The RFC 2822 date and time in GMT that the resource was last updated
        :rtype: datetime
        r&   )r)   )r   r   r   r   r&      s    zNewKeyInstance.date_updatedc             C   s
   | j d S )z
        :returns: The secret your application uses to sign Access Tokens and to authenticate to the REST API.
        :rtype: unicode
        r'   )r)   )r   r   r   r   r'      s    zNewKeyInstance.secretc             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z!<Twilio.Api.V2010.NewKeyInstance>r   )r   r   r   r   r      s    zNewKeyInstance.__repr__)r   r   r   r
   propertyr$   r   r%   r&   r'   r   r    r   r   )r   r   r   b   s   r   N)__doc__Ztwilio.baser   r   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.pager   r   r!   r   r   r   r   r   <module>   s   +'