B
    `                 @   sh   d 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
      /       /
    )values)InstanceResource)ListResource)Pagec                   s0   e Zd ZdZ fddZdd Zdd Z  ZS )AccessTokenListzk PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. c                s.   t t| | d|i| _djf | j| _dS )aX  
        Initialize the AccessTokenList

        :param Version version: Version that contains the resource
        :param service_sid: The unique string that identifies the resource

        :returns: twilio.rest.verify.v2.service.access_token.AccessTokenList
        :rtype: twilio.rest.verify.v2.service.access_token.AccessTokenList
        service_sidz$/Services/{service_sid}/AccessTokensN)superr   __init__	_solutionformat_uri)selfversionr   )	__class__ Y/home/dcms/DCMS/lib/python3.7/site-packages/twilio/rest/verify/v2/service/access_token.pyr	      s    

zAccessTokenList.__init__c             C   s:   t ||d}| jjd| j|d}t| j|| jd dS )aQ  
        Create the AccessTokenInstance

        :param unicode identity: Unique external identifier of the Entity
        :param AccessTokenInstance.FactorTypes factor_type: The Type of this Factor

        :returns: The created AccessTokenInstance
        :rtype: twilio.rest.verify.v2.service.access_token.AccessTokenInstance
        )ZIdentityZ
FactorTypePOST)methoduridatar   )r   )r   Zof_versioncreater   AccessTokenInstancer
   )r   identityZfactor_typer   payloadr   r   r   r   #   s    
zAccessTokenList.createc             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z"<Twilio.Verify.V2.AccessTokenList>r   )r   r   r   r   __repr__3   s    zAccessTokenList.__repr__)__name__
__module____qualname____doc__r	   r   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 )AccessTokenPagezk PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. c                s   t t| || || _dS )a  
        Initialize the AccessTokenPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param service_sid: The unique string that identifies the resource

        :returns: twilio.rest.verify.v2.service.access_token.AccessTokenPage
        :rtype: twilio.rest.verify.v2.service.access_token.AccessTokenPage
        N)r   r!   r	   r
   )r   r   responseZsolution)r   r   r   r	   A   s    zAccessTokenPage.__init__c             C   s   t | j|| jd dS )a  
        Build an instance of AccessTokenInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.verify.v2.service.access_token.AccessTokenInstance
        :rtype: twilio.rest.verify.v2.service.access_token.AccessTokenInstance
        r   )r   )r   r   r
   )r   r   r   r   r   get_instanceQ   s    	zAccessTokenPage.get_instancec             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z"<Twilio.Verify.V2.AccessTokenPage>r   )r   r   r   r   r   \   s    zAccessTokenPage.__repr__)r   r   r   r   r	   r#   r   r    r   r   )r   r   r!   =   s   r!   c                   sD   e Zd ZdZG dd deZ fddZedd Zdd	 Z	  Z
S )
r   zk PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. c               @   s   e Zd ZdZdS )zAccessTokenInstance.FactorTypespushN)r   r   r   ZPUSHr   r   r   r   FactorTypesj   s   r%   c                s4   t t| | d|di| _d| _d|i| _dS )z
        Initialize the AccessTokenInstance

        :returns: twilio.rest.verify.v2.service.access_token.AccessTokenInstance
        :rtype: twilio.rest.verify.v2.service.access_token.AccessTokenInstance
        tokenNr   )r   r   r	   get_properties_contextr
   )r   r   r   r   )r   r   r   r	   m   s    zAccessTokenInstance.__init__c             C   s
   | j d S )zK
        :returns: Generated access token.
        :rtype: unicode
        r&   )r(   )r   r   r   r   r&   }   s    zAccessTokenInstance.tokenc             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z&<Twilio.Verify.V2.AccessTokenInstance>r   )r   r   r   r   r      s    zAccessTokenInstance.__repr__)r   r   r   r   objectr%   r	   propertyr&   r   r    r   r   )r   r   r   f   s
   r   N)r   Ztwilio.baser   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.pager   r   r!   r   r   r   r   r   <module>   s   .)