a
    !fj                     @   s|   d Z ddlmZmZ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 )a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Oauth
    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.
    )AnyDictOptional)InstanceContext)InstanceResource)ListResource)Versionc                       sl   e Zd ZdZeeeef d fddZe	ddddZ
d dd	d
Zd dddZedddZ  ZS )UserInfoInstanceaY  
    :ivar user_sid: The URL of the party that will create the token and sign it with its private key.
    :ivar first_name: The first name of the end-user.
    :ivar last_name: The last name of the end-user.
    :ivar friendly_name: The friendly name of the end-user.
    :ivar email: The end-user's preferred email address.
    :ivar url:
    )versionpayloadc                    s^   t  | |d| _|d| _|d| _|d| _|d| _|d| _d | _	d S )Nuser_sid
first_name	last_namefriendly_nameemailurl)
super__init__getr   r   r   r   r   r   _context)selfr
   r   	__class__ _/var/www/html/python-backend/venv/lib/python3.9/site-packages/twilio/rest/oauth/v1/user_info.pyr   "   s    zUserInfoInstance.__init__UserInfoContextreturnc                 C   s   | j du rt| j| _ | 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: UserInfoContext for this UserInfoInstance
        N)r   r   _versionr   r   r   r   _proxy.   s
    
zUserInfoInstance._proxyc                 C   s
   | j  S )]
        Fetch the UserInfoInstance


        :returns: The fetched UserInfoInstance
        )r    fetchr   r   r   r   r"   <   s    zUserInfoInstance.fetchc                    s   | j  I dH S )w
        Asynchronous coroutine to fetch the UserInfoInstance


        :returns: The fetched UserInfoInstance
        N)r    fetch_asyncr   r   r   r   r$   E   s    zUserInfoInstance.fetch_asyncc                 C   s   dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z"<Twilio.Oauth.V1.UserInfoInstance>r   r   r   r   r   __repr__N   s    zUserInfoInstance.__repr__)__name__
__module____qualname____doc__r   r   strr   r   propertyr    r"   r$   r&   __classcell__r   r   r   r   r	      s   			r	   c                       sL   e Zd Zed fddZedddZedddZedd	d
Z	  Z
S )r   r
   c                    s   t  | d| _dS )zl
        Initialize the UserInfoContext

        :param version: Version that contains the resource
        z	/userinfoN)r   r   _urir   r
   r   r   r   r   Y   s    zUserInfoContext.__init__r   c                 C   s   | j jd| jd}t| j |S )r!   GETmethoduri)r   r"   r/   r	   r   r   r   r   r   r"   c   s    zUserInfoContext.fetchc                    s$   | j jd| jdI dH }t| j |S )r#   r1   r2   N)r   r$   r/   r	   r5   r   r   r   r$   u   s    zUserInfoContext.fetch_asyncc                 C   s   dS )r%   z!<Twilio.Oauth.V1.UserInfoContext>r   r   r   r   r   r&      s    zUserInfoContext.__repr__)r'   r(   r)   r   r   r	   r"   r$   r+   r&   r-   r   r   r   r   r   X   s   
r   c                       sL   e Zd Zed fddZedddZedddZedd	d
Z	  Z
S )UserInfoListr.   c                    s   t  | dS )zj
        Initialize the UserInfoList

        :param version: Version that contains the resource

        N)r   r   r0   r   r   r   r      s    zUserInfoList.__init__r   c                 C   s
   t | jS z/
        Constructs a UserInfoContext

        r   r   r   r   r   r   r      s    zUserInfoList.getc                 C   s
   t | jS r7   r8   r   r   r   r   __call__   s    zUserInfoList.__call__c                 C   s   dS )r%   z<Twilio.Oauth.V1.UserInfoList>r   r   r   r   r   r&      s    zUserInfoList.__repr__)r'   r(   r)   r   r   r   r   r9   r+   r&   r-   r   r   r   r   r6      s   	r6   N)r*   typingr   r   r   Ztwilio.base.instance_contextr   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.versionr   r	   r   r6   r   r   r   r   <module>   s   A9