o
    6d:                     @   s~	  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
 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ZeeZG dd dejZeeZG dd deZeeZG dd dejZeeZG dd de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 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(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/Z0G d+d, d,ejZ1ee1Z2G d-d. d.ejZ3ee3Z4G d/d0 d0ejZ5ee5Z6G d1d2 d2ejZ7ee7Z8e9eZ:ej;ej<_=e&ej>_=e? ej@_=eA ejB_=eCe? ejD_=eA ejE_=eFg d3e_Gd4ej<j=fd5ej>j=fd6ej@j=fd7ejBj=fd8ejDj=fd9ejEj=fge_HeA ejI_=eCe? ejJ_=ejGKeFd:d;ge_GejHd:ejIj=fd;ejJj=fg e_HeA e_LeM e_NejLejNd<e_Oed=e_PeCej?d>d>d?ejQ_=ej?d>d@ejR_=e? ejS_=eCeejT_=eCe? ejJ_=eA ejU_=ejVejW_=e	jXejY_=ejGKeFg dAe_GejHdBejQj=fdCejRj=fdDejSj=fdEejTj=fd;ejJj=fdFejUj=fdGejWj=fdHejYj=fg e_He? ejZ_=e? ej>_=eFdId5ge_GdIejZj=fd5ej>j=fge_Hej[ej\_=ej]ej^_=ejGKeFdJdKge_GejHdJej\j=fdKej^j=fg e_Hej;ej<_=eFd4ge_Gd4ej<j=fge_Hej9ej;dLdMej__=eFdNge_GdNej_j=fge_Hej;e_`eM e_Nej`ejNdOe_Oed=e_PeM e!_`eM e!_Ne!j`e!jNdOe!_Oe!dPe!_ae!d=e!_Peb e#jc_=eFdQge#_GdQe#jcj=fge#_He? e%jd_=e? e%je_=e? e%jf_=e? e%jg_=e? e%jh_=eFg dRe%_GdSe%jdj=fdTe%jej=fdUe%jfj=fdVe%jgj=fdWe%jhj=fge%_HeA e'_LeM e'_Ne'jLe'jNd<e'_Oe'd=e'_Pe$e)_ie.e)_jeM e)_Ne)jie)jje)jNdXe)_Oe)d=e)_Peb e+jk_=e*e+jl_=eFdYdZge+_GdYe+jkj=fdZe+jlj=fge+_Heb e-jk_=eb e-jc_=eb e-jm_=e
jne-jo_=eb e-jp_=eFg d[e-_GdYe-jkj=fdQe-jcj=fd\e-jmj=fd]e-joj=fd^e-jpj=fge-_HeM e/_qeM e/_reM e/_Ne/jqe/jre/jNd_e/_Oe/d`e/_se/dae/_te/d=e/_Pe(e1_qee1_reM e1_Ne1jqe1jre1jNd_e1_Oe1d=e1_Pe9e0e3ju_=eFdbge3_Gdbe3juj=fge3_HeM e5_veM e5_Ne5jve5jNdce5_Oe5dde5_we5d=e5_Pe9e2e7jx_=eFdege7_Gdee7jxj=fge7_HeydfdLdge4e8e6dhdidjdkZzeydldLdgeee"dhdidjdkZ{eydmdLdgee:e dhdidjdkZ|eydndLdgeM eeM dhdidjdkZ}eydodLdgeM e,eM dhdidjdkZ~eze{e|e}e~dpZdqS )rzG
This namespace contains endpoints and data types for user management.
    )unicode_literals)
stone_base)stone_validators)common)team_common)team_policies)users_commonc                       s   e Zd ZdZg dZdZ						dddZedZ	ejddd	Z
ed
ZedZejdddZedZ fddZ  ZS )Accounta  
    The amount of detail revealed about an account depends on the user being
    queried and the user making the query.

    :ivar users.Account.account_id: The user's unique Dropbox ID.
    :ivar users.Account.name: Details of a user's name.
    :ivar users.Account.email: The user's email address. Do not rely on this
        without checking the ``email_verified`` field. Even then, it's possible
        that the user has since lost access to their email.
    :ivar users.Account.email_verified: Whether the user has verified their
        email address.
    :ivar users.Account.profile_photo_url: URL for the photo representing the
        user, if one is set.
    :ivar users.Account.disabled: Whether the user has been disabled.
    )_account_id_value_name_value_email_value_email_verified_value_profile_photo_url_value_disabled_valueTNc                 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 N)bbNOT_SETr
   r   r   r   r   r   
account_idnameemailemail_verifiedprofile_photo_urldisabled)selfr   r   r   r   r   r    r   dC:\Users\jesus\OneDrive\Desktop\erpjis_fastapi\backend\jisbackend\Lib\site-packages\dropbox/users.py__init__/   s&   
zAccount.__init__r   r   user_definedr   r   r   nullabler   c                       t t| ||| d S r   )superr	   _process_custom_annotationsr   Zannotation_typeZ
field_path	processor	__class__r   r   r#   [      z#Account._process_custom_annotations)NNNNNN)__name__
__module____qualname____doc__	__slots___has_required_fieldsr   r   	Attributer   r   r   r   r   r   r#   __classcell__r   r   r&   r   r	      s$    	




r	   c                       sb   e Zd ZdZddgZdZ								d fdd	ZedZ	ejd	dd
Z
 fddZ  ZS )BasicAccounta  
    Basic information about any account.

    :ivar users.BasicAccount.is_teammate: Whether this user is a teammate of the
        current user. If this account is the current user's account, then this
        will be ``True``.
    :ivar users.BasicAccount.team_member_id: The user's unique team member id.
        This field will only be present if the user is part of a team and
        ``is_teammate`` is ``True``.
    _is_teammate_value_team_member_id_valueTNc	           	         sN   t t| |||||| tj| _tj| _|d ur|| _|d ur%|| _d S d S r   )	r"   r1   r   r   r   r2   r3   is_teammateteam_member_id)	r   r   r   r   r   r   r4   r   r5   r&   r   r   r   s   s   	
zBasicAccount.__init__r4   r5   r   c                    r!   r   )r"   r1   r#   r$   r&   r   r   r#      r(   z(BasicAccount._process_custom_annotations)NNNNNNNN)r)   r*   r+   r,   r-   r.   r   r   r/   r4   r5   r#   r0   r   r   r&   r   r1   `   s$    
r1   c                       L   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 )FileLockingValuea  
    The value for ``UserFeature.file_locking``.

    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 bool users.FileLockingValue.enabled: When this value is True, the user
        can lock files in shared directories. When the value is False the user
        can unlock the files they have locked or request to unlock files locked
        by others.
    otherNc                 C   
   | d|S )z
        Create an instance of this class set to the ``enabled`` tag with value
        ``val``.

        :param bool val:
        :rtype: FileLockingValue
        enabledr   clsvalr   r   r   r:         
	zFileLockingValue.enabledc                 C   
   | j dkS zN
        Check if the union tag is ``enabled``.

        :rtype: bool
        r:   Z_tagr   r   r   r   
is_enabled      
zFileLockingValue.is_enabledc                 C   r?   zL
        Check if the union tag is ``other``.

        :rtype: bool
        r8   rA   rB   r   r   r   is_other   rD   zFileLockingValue.is_otherc                 C      |   std| jS )a*  
        When this value is True, the user can lock files in shared directories.
        When the value is False the user can unlock the files they have locked
        or request to unlock files locked by others.

        Only call this if :meth:`is_enabled` is true.

        :rtype: bool
        tag 'enabled' not setrC   AttributeError_valuerB   r   r   r   get_enabled   s   
zFileLockingValue.get_enabledc                    r!   r   )r"   r7   r#   r$   r&   r   r   r#      r(   z,FileLockingValue._process_custom_annotationsr)   r*   r+   r,   
_catch_allr8   classmethodr:   rC   rF   rL   r#   r0   r   r   r&   r   r7      s    

r7   c                       s   e Zd ZdZg dZdZ														d fdd	ZejdddZ	ed	Z
ed
ZejddddZejdddZedZejdddZejdddZ fddZ  ZS )FullAccounta  
    Detailed information about the current user's account.

    :ivar users.FullAccount.country: The user's two-letter country code, if
        available. Country codes are based on `ISO 3166-1
        <http://en.wikipedia.org/wiki/ISO_3166-1>`_.
    :ivar users.FullAccount.locale: The language that the user specified. Locale
        tags will be `IETF language tags
        <http://en.wikipedia.org/wiki/IETF_language_tag>`_.
    :ivar users.FullAccount.referral_link: The user's `referral link
        <https://www.dropbox.com/referrals>`_.
    :ivar users.FullAccount.team: If this account is a member of a team,
        information about that team.
    :ivar users.FullAccount.team_member_id: This account's unique team member
        id. This field will only be present if ``team`` is present.
    :ivar users.FullAccount.is_paired: Whether the user has a personal and work
        account. If the current account is personal, then ``team`` will always
        be None, but ``is_paired`` will indicate if a work account is linked.
    :ivar users.FullAccount.account_type: What type of account this user has.
    :ivar users.FullAccount.root_info: The root info for this account.
    )_country_value_locale_value_referral_link_value_team_valuer3   _is_paired_value_account_type_value_root_info_valueTNc                    s   t t| |||||| tj| _tj| _tj| _tj| _tj| _	tj| _
tj| _tj| _|d ur4|| _|d ur;|| _|d urB|| _|d urI|| _|d urP|| _|d urW|| _|	d ur^|	| _|
d urg|
| _d S d S r   )r"   rP   r   r   r   rQ   rR   rS   rT   r3   rU   rV   rW   countrylocalereferral_linkteamr5   	is_pairedaccount_type	root_info)r   r   r   r   r   r   rY   rZ   r\   r]   r^   r   rX   r[   r5   r&   r   r   r      s@   
zFullAccount.__init__rX   r   rY   rZ   r[   )r    r   r5   r\   r]   r   r^   c                    r!   r   )r"   rP   r#   r$   r&   r   r   r#   >  r(   z'FullAccount._process_custom_annotations)NNNNNNNNNNNNNN)r)   r*   r+   r,   r-   r.   r   r   r/   rX   rY   rZ   r[   r5   r\   r]   r^   r#   r0   r   r   r&   r   rP      s8    /


rP   c                       sN   e Zd ZdZddgZdZ		dddZedZ	ed	Z
 fd
dZ  ZS )Teamz
    Information about a team.

    :ivar users.Team.id: The team's unique ID.
    :ivar users.Team.name: The name of the team.
    	_id_valuer   TNc                 C   4   t j| _t j| _|d ur|| _|d ur|| _d S d S r   )r   r   r`   r   idr   )r   rb   r   r   r   r   r   R     
zTeam.__init__rb   r   c                    r!   r   )r"   r_   r#   r$   r&   r   r   r#   b  r(   z Team._process_custom_annotationsNN)r)   r*   r+   r,   r-   r.   r   r   r/   rb   r   r#   r0   r   r   r&   r   r_   C  s    


r_   c                       s^   e Zd ZdZddgZdZ				d fdd	Zejddd	Z	ejd
dd	Z
 fddZ  ZS )FullTeamz
    Detailed information about a team.

    :ivar users.FullTeam.sharing_policies: Team policies governing sharing.
    :ivar users.FullTeam.office_addin_policy: Team policy governing the use of
        the Office Add-In.
    _sharing_policies_value_office_addin_policy_valueTNc                    sF   t t| || tj| _tj| _|d ur|| _|d ur!|| _d S d S r   )	r"   re   r   r   r   rf   rg   sharing_policiesoffice_addin_policy)r   rb   r   rh   ri   r&   r   r   r   w  s   
zFullTeam.__init__rh   r   ri   c                    r!   r   )r"   re   r#   r$   r&   r   r   r#     r(   z$FullTeam._process_custom_annotations)NNNN)r)   r*   r+   r,   r-   r.   r   r   r/   rh   ri   r#   r0   r   r   r&   r   re   g  s    	re   c                       @   e Zd ZdZdgZdZ	d
ddZedZ	 fdd	Z
  ZS )GetAccountArgzL
    :ivar users.GetAccountArg.account_id: A user's account identifier.
    r
   TNc                 C      t j| _|d ur|| _d S d S r   )r   r   r
   r   )r   r   r   r   r   r        
zGetAccountArg.__init__r   c                    r!   r   )r"   rk   r#   r$   r&   r   r   r#     r(   z)GetAccountArg._process_custom_annotationsr   )r)   r*   r+   r,   r-   r.   r   r   r/   r   r#   r0   r   r   r&   r   rk     s    

rk   c                       rj   )GetAccountBatchArgz
    :ivar users.GetAccountBatchArg.account_ids: List of user account
        identifiers.  Should not contain any duplicate account IDs.
    _account_ids_valueTNc                 C   rl   r   )r   r   ro   account_ids)r   rp   r   r   r   r     rm   zGetAccountBatchArg.__init__rp   c                    r!   r   )r"   rn   r#   r$   r&   r   r   r#     r(   z.GetAccountBatchArg._process_custom_annotationsr   )r)   r*   r+   r,   r-   r.   r   r   r/   rp   r#   r0   r   r   r&   r   rn         

rn   c                       r6   )GetAccountBatchErrorap  
    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 str users.GetAccountBatchError.no_account: The value is an account ID
        specified in :field:`GetAccountBatchArg.account_ids` that does not
        exist.
    r8   Nc                 C   r9   )z
        Create an instance of this class set to the ``no_account`` tag with
        value ``val``.

        :param str val:
        :rtype: GetAccountBatchError
        
no_accountr   r;   r   r   r   rs     r>   zGetAccountBatchError.no_accountc                 C   r?   zQ
        Check if the union tag is ``no_account``.

        :rtype: bool
        rs   rA   rB   r   r   r   is_no_account  rD   z"GetAccountBatchError.is_no_accountc                 C   r?   rE   rA   rB   r   r   r   rF     rD   zGetAccountBatchError.is_otherc                 C   rG   )z
        The value is an account ID specified in
        ``GetAccountBatchArg.account_ids`` that does not exist.

        Only call this if :meth:`is_no_account` is true.

        :rtype: str
        ztag 'no_account' not set)ru   rJ   rK   rB   r   r   r   get_no_account  s   	z#GetAccountBatchError.get_no_accountc                    r!   r   )r"   rr   r#   r$   r&   r   r   r#     r(   z0GetAccountBatchError._process_custom_annotations)r)   r*   r+   r,   rN   r8   rO   rs   ru   rF   rv   r#   r0   r   r   r&   r   rr     s    


rr   c                       <   e Zd ZdZdZdZdZdd Zdd Z fdd	Z	  Z
S )
GetAccountErrora5  
    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 users.GetAccountError.no_account: The specified
        ``GetAccountArg.account_id`` does not exist.
    r8   Nc                 C   r?   rt   rA   rB   r   r   r   ru     rD   zGetAccountError.is_no_accountc                 C   r?   rE   rA   rB   r   r   r   rF     rD   zGetAccountError.is_otherc                    r!   r   )r"   rx   r#   r$   r&   r   r   r#     r(   z+GetAccountError._process_custom_annotations)r)   r*   r+   r,   rN   rs   r8   ru   rF   r#   r0   r   r   r&   r   rx     s    	rx   c                       rj   )IndividualSpaceAllocationz{
    :ivar users.IndividualSpaceAllocation.allocated: The total space allocated
        to the user's account (bytes).
    _allocated_valueTNc                 C   rl   r   )r   r   rz   	allocated)r   r{   r   r   r   r   0  rm   z"IndividualSpaceAllocation.__init__r{   c                    r!   r   )r"   ry   r#   r$   r&   r   r   r#   9  r(   z5IndividualSpaceAllocation._process_custom_annotationsr   )r)   r*   r+   r,   r-   r.   r   r   r/   r{   r#   r0   r   r   r&   r   ry   $  rq   ry   c                       sr   e Zd ZdZg dZdZ					dddZedZ	edZ
ed	Zed
ZedZ fddZ  ZS )Namea  
    Representations for a person's name to assist with internationalization.

    :ivar users.Name.given_name: Also known as a first name.
    :ivar users.Name.surname: Also known as a last name or family name.
    :ivar users.Name.familiar_name: Locale-dependent name. In the US, a person's
        familiar name is their ``given_name``, but elsewhere, it could be any
        combination of a person's ``given_name`` and ``surname``.
    :ivar users.Name.display_name: A name that can be used directly to represent
        the name of a user's Dropbox account.
    :ivar users.Name.abbreviated_name: An abbreviated form of the person's name.
        Their initials in most locales.
    )_given_name_value_surname_value_familiar_name_value_display_name_value_abbreviated_name_valueTNc                 C   v   t j| _t j| _t j| _t j| _t j| _|d ur|| _|d ur"|| _|d ur)|| _	|d ur0|| _
|d ur9|| _d S d S r   )r   r   r}   r~   r   r   r   
given_namesurnamefamiliar_namedisplay_nameabbreviated_name)r   r   r   r   r   r   r   r   r   r   W      
zName.__init__r   r   r   r   r   c                    r!   r   )r"   r|   r#   r$   r&   r   r   r#   |  r(   z Name._process_custom_annotationsNNNNN)r)   r*   r+   r,   r-   r.   r   r   r/   r   r   r   r   r   r#   r0   r   r   r&   r   r|   >  s     





r|   c                       r6   )PaperAsFilesValueap  
    The value for ``UserFeature.paper_as_files``.

    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 bool users.PaperAsFilesValue.enabled: When this value is true, the
        user's Paper docs are accessible in Dropbox with the .paper extension
        and must be accessed via the /files endpoints.  When this value is
        false, the user's Paper docs are stored separate from Dropbox files and
        folders and should be accessed via the /paper endpoints.
    r8   Nc                 C   r9   )z
        Create an instance of this class set to the ``enabled`` tag with value
        ``val``.

        :param bool val:
        :rtype: PaperAsFilesValue
        r:   r   r;   r   r   r   r:     r>   zPaperAsFilesValue.enabledc                 C   r?   r@   rA   rB   r   r   r   rC     rD   zPaperAsFilesValue.is_enabledc                 C   r?   rE   rA   rB   r   r   r   rF     rD   zPaperAsFilesValue.is_otherc                 C   rG   )a  
        When this value is true, the user's Paper docs are accessible in Dropbox
        with the .paper extension and must be accessed via the /files endpoints.
        When this value is false, the user's Paper docs are stored separate from
        Dropbox files and folders and should be accessed via the /paper
        endpoints.

        Only call this if :meth:`is_enabled` is true.

        :rtype: bool
        rH   rI   rB   r   r   r   rL     s   zPaperAsFilesValue.get_enabledc                    r!   r   )r"   r   r#   r$   r&   r   r   r#     r(   z-PaperAsFilesValue._process_custom_annotationsrM   r   r   r&   r   r     s    

r   c                       h   e Zd ZdZdZdZedd Zedd Zdd	 Z	d
d Z
dd Zdd Zdd Z fddZ  ZS )SpaceAllocationa
  
    Space is allocated differently based on the type of account.

    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 IndividualSpaceAllocation SpaceAllocation.individual: The user's space
        allocation applies only to their individual account.
    :ivar TeamSpaceAllocation SpaceAllocation.team: The user shares space with
        other members of their team.
    r8   Nc                 C   r9   )z
        Create an instance of this class set to the ``individual`` tag with
        value ``val``.

        :param IndividualSpaceAllocation val:
        :rtype: SpaceAllocation
        
individualr   r;   r   r   r   r     r>   zSpaceAllocation.individualc                 C   r9   )z
        Create an instance of this class set to the ``team`` tag with value
        ``val``.

        :param TeamSpaceAllocation val:
        :rtype: SpaceAllocation
        r[   r   r;   r   r   r   r[     r>   zSpaceAllocation.teamc                 C   r?   )zQ
        Check if the union tag is ``individual``.

        :rtype: bool
        r   rA   rB   r   r   r   is_individual  rD   zSpaceAllocation.is_individualc                 C   r?   )zK
        Check if the union tag is ``team``.

        :rtype: bool
        r[   rA   rB   r   r   r   is_team  rD   zSpaceAllocation.is_teamc                 C   r?   rE   rA   rB   r   r   r   rF     rD   zSpaceAllocation.is_otherc                 C   rG   )z
        The user's space allocation applies only to their individual account.

        Only call this if :meth:`is_individual` is true.

        :rtype: IndividualSpaceAllocation
        ztag 'individual' not set)r   rJ   rK   rB   r   r   r   get_individual     zSpaceAllocation.get_individualc                 C   rG   )z
        The user shares space with other members of their team.

        Only call this if :meth:`is_team` is true.

        :rtype: TeamSpaceAllocation
        ztag 'team' not set)r   rJ   rK   rB   r   r   r   get_team  r   zSpaceAllocation.get_teamc                    r!   r   )r"   r   r#   r$   r&   r   r   r#     r(   z+SpaceAllocation._process_custom_annotations)r)   r*   r+   r,   rN   r8   rO   r   r[   r   r   rF   r   r   r#   r0   r   r   r&   r   r     s    



r   c                       sR   e Zd ZdZddgZdZ		dddZedZ	ejd	dd
Z
 fddZ  ZS )
SpaceUsagez
    Information about a user's space usage and quota.

    :ivar users.SpaceUsage.used: The user's total space usage (bytes).
    :ivar users.SpaceUsage.allocation: The user's space allocation.
    _used_value_allocation_valueTNc                 C   ra   r   )r   r   r   r   used
allocation)r   r   r   r   r   r   r   0  rc   zSpaceUsage.__init__r   r   r   c                    r!   r   )r"   r   r#   r$   r&   r   r   r#   @  r(   z&SpaceUsage._process_custom_annotationsrd   )r)   r*   r+   r,   r-   r.   r   r   r/   r   r   r#   r0   r   r   r&   r   r   !  s    

r   c                       sv   e Zd ZdZg dZdZ					dddZedZ	edZ
ed	Zejd
ddZedZ fddZ  ZS )TeamSpaceAllocationa  
    :ivar users.TeamSpaceAllocation.used: The total space currently used by the
        user's team (bytes).
    :ivar users.TeamSpaceAllocation.allocated: The total space allocated to the
        user's team (bytes).
    :ivar users.TeamSpaceAllocation.user_within_team_space_allocated: The total
        space allocated to the user within its team allocated space (0 means
        that no restriction is imposed on the user's quota within its team).
    :ivar users.TeamSpaceAllocation.user_within_team_space_limit_type: The type
        of the space limit imposed on the team member (off, alert_only,
        stop_sync).
    :ivar users.TeamSpaceAllocation.user_within_team_space_used_cached: An
        accurate cached calculation of a team member's total space usage
        (bytes).
    )r   rz   '_user_within_team_space_allocated_value(_user_within_team_space_limit_type_value)_user_within_team_space_used_cached_valueTNc                 C   r   r   )r   r   r   rz   r   r   r   r   r{    user_within_team_space_allocated!user_within_team_space_limit_type"user_within_team_space_used_cached)r   r   r{   r   r   r   r   r   r   r   `  r   zTeamSpaceAllocation.__init__r   r{   r   r   r   r   c                    r!   r   )r"   r   r#   r$   r&   r   r   r#     r(   z/TeamSpaceAllocation._process_custom_annotationsr   )r)   r*   r+   r,   r-   r.   r   r   r/   r   r{   r   r   r   r#   r0   r   r   r&   r   r   E  s     




r   c                       sH   e Zd ZdZdZdZdZdZdd Zdd Z	dd	 Z
 fd
dZ  ZS )UserFeaturea  
    A set of features that a Dropbox User account may have configured.

    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 users.UserFeature.paper_as_files: This feature contains information
        about how the user's Paper files are stored.
    :ivar users.UserFeature.file_locking: This feature allows users to lock
        files in order to restrict other users from editing them.
    r8   Nc                 C   r?   zU
        Check if the union tag is ``paper_as_files``.

        :rtype: bool
        paper_as_filesrA   rB   r   r   r   is_paper_as_files  rD   zUserFeature.is_paper_as_filesc                 C   r?   zS
        Check if the union tag is ``file_locking``.

        :rtype: bool
        file_lockingrA   rB   r   r   r   is_file_locking  rD   zUserFeature.is_file_lockingc                 C   r?   rE   rA   rB   r   r   r   rF     rD   zUserFeature.is_otherc                    r!   r   )r"   r   r#   r$   r&   r   r   r#     r(   z'UserFeature._process_custom_annotations)r)   r*   r+   r,   rN   r   r   r8   r   r   rF   r#   r0   r   r   r&   r   r     s    r   c                       r   )UserFeatureValuea  
    Values that correspond to entries in :class:`UserFeature`.

    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.
    r8   Nc                 C   r9   )z
        Create an instance of this class set to the ``paper_as_files`` tag with
        value ``val``.

        :param PaperAsFilesValue val:
        :rtype: UserFeatureValue
        r   r   r;   r   r   r   r     r>   zUserFeatureValue.paper_as_filesc                 C   r9   )z
        Create an instance of this class set to the ``file_locking`` tag with
        value ``val``.

        :param FileLockingValue val:
        :rtype: UserFeatureValue
        r   r   r;   r   r   r   r     r>   zUserFeatureValue.file_lockingc                 C   r?   r   rA   rB   r   r   r   r     rD   z"UserFeatureValue.is_paper_as_filesc                 C   r?   r   rA   rB   r   r   r   r     rD   z UserFeatureValue.is_file_lockingc                 C   r?   rE   rA   rB   r   r   r   rF     rD   zUserFeatureValue.is_otherc                 C   rG   )zi
        Only call this if :meth:`is_paper_as_files` is true.

        :rtype: PaperAsFilesValue
        ztag 'paper_as_files' not set)r   rJ   rK   rB   r   r   r   get_paper_as_files     z#UserFeatureValue.get_paper_as_filesc                 C   rG   )zf
        Only call this if :meth:`is_file_locking` is true.

        :rtype: FileLockingValue
        ztag 'file_locking' not set)r   rJ   rK   rB   r   r   r   get_file_locking  r   z!UserFeatureValue.get_file_lockingc                    r!   r   )r"   r   r#   r$   r&   r   r   r#     r(   z,UserFeatureValue._process_custom_annotations)r)   r*   r+   r,   rN   r8   rO   r   r   r   r   rF   r   r   r#   r0   r   r   r&   r   r     s    





r   c                       rj   )UserFeaturesGetValuesBatchArgz
    :ivar users.UserFeaturesGetValuesBatchArg.features: A list of features in
        :class:`UserFeature`. If the list is empty, this route will return
        :class:`UserFeaturesGetValuesBatchError`.
    _features_valueTNc                 C   rl   r   )r   r   r   features)r   r   r   r   r   r     rm   z&UserFeaturesGetValuesBatchArg.__init__r   c                    r!   r   )r"   r   r#   r$   r&   r   r   r#   '  r(   z9UserFeaturesGetValuesBatchArg._process_custom_annotationsr   )r)   r*   r+   r,   r-   r.   r   r   r/   r   r#   r0   r   r   r&   r   r     s    

r   c                       rw   )
UserFeaturesGetValuesBatchErrora  
    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 users.UserFeaturesGetValuesBatchError.empty_features_list: At least
        one :class:`UserFeature` must be included in the
        :class:`UserFeaturesGetValuesBatchArg`.features list.
    r8   Nc                 C   r?   )zZ
        Check if the union tag is ``empty_features_list``.

        :rtype: bool
        empty_features_listrA   rB   r   r   r   is_empty_features_list=  rD   z6UserFeaturesGetValuesBatchError.is_empty_features_listc                 C   r?   rE   rA   rB   r   r   r   rF   E  rD   z(UserFeaturesGetValuesBatchError.is_otherc                    r!   r   )r"   r   r#   r$   r&   r   r   r#   M  r(   z;UserFeaturesGetValuesBatchError._process_custom_annotations)r)   r*   r+   r,   rN   r   r8   r   rF   r#   r0   r   r   r&   r   r   ,  s    
r   c                       s<   e Zd ZdgZdZ	d	ddZedZ fddZ	  Z
S )
 UserFeaturesGetValuesBatchResult_values_valueTNc                 C   rl   r   )r   r   r   values)r   r   r   r   r   r   Z  rm   z)UserFeaturesGetValuesBatchResult.__init__r   c                    r!   r   )r"   r   r#   r$   r&   r   r   r#   c  r(   z<UserFeaturesGetValuesBatchResult._process_custom_annotationsr   )r)   r*   r+   r-   r.   r   r   r/   r   r#   r0   r   r   r&   r   r   R  s    

r   )r   r   r   r   r   r   r   r   r   r   r   r   r4   r5   )r:   r8   r8      )
min_length
max_length)r   )rX   rY   rZ   r[   r5   r\   r]   r^   rX   rY   rZ   r[   r\   r]   r^   rb   rh   ri      )Z	min_itemsrp   )rs   r8   rs   r{   )r   r   r   r   r   r   r   r   r   r   )r   r[   r8   r   r   )r   r{   r   r   r   r   r   r   )r   r   r8   r   r   r   )r   r8   r   r   features/get_valuesFuserapiZrpc)authhoststyleget_accountget_account_batchget_current_accountget_space_usage)r   r   r   r   r   N)r,   
__future__r   Zstone.backends.python_rsrcr   r   r   ZbvZdropboxr   r   r   r   Structr	   ZAccount_validatorr1   ZBasicAccount_validatorUnionr7   ZFileLockingValue_validatorrP   ZFullAccount_validatorr_   ZTeam_validatorre   ZFullTeam_validatorrk   ZGetAccountArg_validatorrn   ZGetAccountBatchArg_validatorrr   ZGetAccountBatchError_validatorrx   ZGetAccountError_validatorry   Z#IndividualSpaceAllocation_validatorr|   ZName_validatorr   ZPaperAsFilesValue_validatorr   ZSpaceAllocation_validatorr   ZSpaceUsage_validatorr   ZTeamSpaceAllocation_validatorr   ZUserFeature_validatorr   ZUserFeatureValue_validatorr   Z'UserFeaturesGetValuesBatchArg_validatorr   Z)UserFeaturesGetValuesBatchError_validatorr   Z*UserFeaturesGetValuesBatchResult_validatorListZGetAccountBatchResult_validatorZAccountId_validatorr   	validatorr   Stringr   Booleanr   ZNullabler   r   setZ_all_field_names_Z_all_fields_r4   r5   unionZ_enabled_validatorZVoidZ_other_validatorZ_tagmapr8   rX   rY   rZ   r[   r\   ZAccountType_validatorr]   ZRootInfo_validatorr^   rb   ZTeamSharingPolicies_validatorrh   ZOfficeAddInPolicy_validatorri   rp   Z_no_account_validatorrs   ZUInt64r{   r   r   r   r   r   Z_individual_validatorZ_team_validatorr   r   r   ZMemberSpaceLimitType_validatorr   r   Z_paper_as_files_validatorZ_file_locking_validatorr   r   r   Z_empty_features_list_validatorr   r   ZRouteZfeatures_get_valuesr   r   r   r   ZROUTESr   r   r   r   <module>   s:  
K
2
>
m
"
'


:
#

A
A
[
"
C
1
R

$



	




	





























































