o
    È6÷d  ã                   @   sð  d dl mZ d dlmZ d dlmZ G dd„ dejƒZe e¡Z	G dd„ dej
ƒZe 
e¡ZG dd	„ d	ejƒZe e¡ZG d
d„ dej
ƒZe 
e¡Ze ¡ e_e ¡ e_ejejdœe_edƒe_edƒe_eg ƒe_g e_e	e_e ¡ e_ejejdœe_edƒe_e e ¡ ¡ej_e e ¡ ¡ej_e e ¡ ¡ej _e e !¡ ¡ej"_e ¡ ej#_e ¡ ej$_eg d¢ƒe_dejjfdejjfdej jfdej"jfdej#jfdej$jfge_dej#_%dej$_%e &dddeeeddddœ¡Z'de'iZ(dS ) é    )Úunicode_literals)Ú
stone_base)Ústone_validatorsc                       s<   e Zd ZdZdZdZdZdd„ Zdd„ Z‡ fdd	„Z	‡  Z
S )
ÚOpenIdErrora;  
    This class acts as a tagged union. Only one of the ``is_*`` methods will
    return true. To get the associated value of a tag (if one exists), use the
    corresponding ``get_*`` method.

    :ivar openid.OpenIdError.incorrect_openid_scopes: Missing openid claims for
        the associated access token.
    ÚotherNc                 C   ó
   | j dkS )z^
        Check if the union tag is ``incorrect_openid_scopes``.

        :rtype: bool
        Úincorrect_openid_scopes©Z_tag©Úself© r   úeC:\Users\jesus\OneDrive\Desktop\erpjis_fastapi\backend\jisbackend\Lib\site-packages\dropbox/openid.pyÚis_incorrect_openid_scopes   ó   
z&OpenIdError.is_incorrect_openid_scopesc                 C   r   ©zL
        Check if the union tag is ``other``.

        :rtype: bool
        r   r	   r
   r   r   r   Úis_other"   r   zOpenIdError.is_otherc                    ó   t t| ƒ |||¡ d S ©N)Úsuperr   Ú_process_custom_annotations©r   Zannotation_typeZ
field_pathÚ	processor©Ú	__class__r   r   r   *   ó   z'OpenIdError._process_custom_annotations)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
_catch_allr   r   r   r   r   Ú__classcell__r   r   r   r   r   
   s    	r   c                       s0   e Zd ZdZg ZdZdd„ Z‡ fdd„Z‡  ZS )ÚUserInfoArgsz
    No Parameters
    Fc                 C   s   d S r   r   r
   r   r   r   Ú__init__9   s   zUserInfoArgs.__init__c                    r   r   )r   r!   r   r   r   r   r   r   <   r   z(UserInfoArgs._process_custom_annotations)	r   r   r   r   Ú	__slots__Ú_has_required_fieldsr"   r   r    r   r   r   r   r!   /   s    r!   c                       sL   e Zd ZdZdZdZedd„ ƒZdd„ Zdd	„ Z	d
d„ Z
‡ fdd„Z‡  ZS )ÚUserInfoErrorzÅ
    This class acts as a tagged union. Only one of the ``is_*`` methods will
    return true. To get the associated value of a tag (if one exists), use the
    corresponding ``get_*`` method.
    r   Nc                 C   s
   | d|ƒS )z­
        Create an instance of this class set to the ``openid_error`` tag with
        value ``val``.

        :param OpenIdError val:
        :rtype: UserInfoError
        Úopenid_errorr   )ÚclsÚvalr   r   r   r&   L   s   
	zUserInfoError.openid_errorc                 C   r   )zS
        Check if the union tag is ``openid_error``.

        :rtype: bool
        r&   r	   r
   r   r   r   Úis_openid_errorW   r   zUserInfoError.is_openid_errorc                 C   r   r   r	   r
   r   r   r   r   _   r   zUserInfoError.is_otherc                 C   s   |   ¡ stdƒ‚| jS )za
        Only call this if :meth:`is_openid_error` is true.

        :rtype: OpenIdError
        ztag 'openid_error' not set)r)   ÚAttributeErrorÚ_valuer
   r   r   r   Úget_openid_errorg   s   zUserInfoError.get_openid_errorc                    r   r   )r   r%   r   r   r   r   r   r   q   r   z)UserInfoError._process_custom_annotations)r   r   r   r   r   r   Úclassmethodr&   r)   r   r,   r   r    r   r   r   r   r%   A   s    


r%   c                       sŽ   e Zd ZdZg d¢ZdZ						ddd„Zejddd	Z	ejd
dd	Z
ejddd	Zejddd	Ze d¡Ze d¡Z‡ fdd„Z‡  ZS )ÚUserInfoResulta  
    :ivar openid.UserInfoResult.family_name: Last name of user.
    :ivar openid.UserInfoResult.given_name: First name of user.
    :ivar openid.UserInfoResult.email: Email address of user.
    :ivar openid.UserInfoResult.email_verified: If user is email verified.
    :ivar openid.UserInfoResult.iss: Issuer of token (in this case Dropbox).
    :ivar openid.UserInfoResult.sub: An identifier for the user. This is the
        Dropbox account_id, a string value such as
        dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc.
    )Ú_family_name_valueÚ_given_name_valueÚ_email_valueÚ_email_verified_valueÚ
_iss_valueÚ
_sub_valueFNc                 C   sŒ   t j| _t j| _t j| _t j| _t j| _t j| _|d ur|| _|d ur&|| _	|d ur-|| _
|d ur4|| _|d ur;|| _|d urD|| _d S d S r   )ÚbbZNOT_SETr/   r0   r1   r2   r3   r4   Úfamily_nameÚ
given_nameÚemailÚemail_verifiedÚissÚsub)r   r6   r7   r8   r9   r:   r;   r   r   r   r"      s&   
ÿzUserInfoResult.__init__r6   T)Znullabler7   r8   r9   r:   r;   c                    r   r   )r   r.   r   r   r   r   r   r   ¹   r   z*UserInfoResult._process_custom_annotations)NNNNNN)r   r   r   r   r#   r$   r"   r5   Ú	Attributer6   r7   r8   r9   r:   r;   r   r    r   r   r   r   r.   v   s$    	
ú

r.   )r   r   r   r   )r&   r   )r6   r7   r8   r9   r:   r;   r6   r7   r8   r9   r:   r;   Ú Úuserinfoé   FÚuserÚapiZrpc)ÚauthÚhostÚstyleN))Ú
__future__r   Zstone.backends.python_rsrcr   r5   r   ZbvÚUnionr   ZOpenIdError_validatorÚStructr!   ZUserInfoArgs_validatorr%   ZUserInfoError_validatorr.   ZUserInfoResult_validatorZVoidZ"_incorrect_openid_scopes_validatorZ_other_validatorZ_tagmapr   r   ÚsetZ_all_field_names_Z_all_fields_Z_openid_error_validatorZNullableÚStringr6   Ú	validatorr7   r8   ÚBooleanr9   r:   r;   ÚdefaultZRouter>   ZROUTESr   r   r   r   Ú<module>   sp   
#

3
F

þ



þ

	




ú	þùÿ