
    x
hO1                     
   d dl mZ d dlmZ d dlmZ d dlmZ  G d dej                        Z
 ej                  e
      Z G d dej                        Z ej                  e      Z G d	 d
ej                        Z ej                  e      Z G d dej                        Z ej                  e      Z G d dej                        Z ej                  e      Z ej*                         Z ej*                         Z ej*                  d      Z ej*                         Z ej*                         Z ej*                         Z ej8                         e
_         ej8                         e
_         ej8                         e
_         ej8                         e
_         e
j:                  e
j<                  e
j>                  e
j@                  de
_!         e
d      e
_"         e
d      e
_#         e
d      e
_$         e
d      e
_%         ej*                         ejL                  _'        eejP                  _'         ejR                  e      ejT                  _'         ejR                   ejV                               ejX                  _'        eejZ                  _'         e.g d      e_/        dejL                  jN                  fdejP                  jN                  fdejT                  jN                  fdejX                  jN                  fdejZ                  jN                  fge_0         ej8                         e_1         ej8                         e_         ej8                         e_         ejb                  ej:                  ej@                  de_!         ed      e_2         ed      e_"         ed      e_%         ej8                         e_3         ej8                         e_4         ej8                         e_5         ej8                         e_         ejf                  ejh                  ejj                  ej@                  de_!         ed      e_6         ed       e_7         ed!      e_8         ed      e_%         ejR                  ejr                        ejt                  _'         ejR                  ejr                        ejv                  _'         e.d"d#g      e_/        d"ejt                  jN                  fd#ejv                  jN                  fge_0        i Z<y$)%    )unicode_literals)
stone_base)stone_validators)commonc                   N     e Zd ZdZdZdZdZdZdZd Z	d Z
d Zd Z fdZ xZS )	GroupManagementTypeaO  
    The group type determines how a group is managed.

    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 team_common.GroupManagementType.user_managed: A group which is managed
        by selected users.
    :ivar team_common.GroupManagementType.company_managed: A group which is
        managed by team admins only.
    :ivar team_common.GroupManagementType.system_managed: A group which is
        managed automatically by Dropbox.
    otherNc                      | j                   dk(  S zS
        Check if the union tag is ``user_managed``.

        :rtype: bool
        user_managed_tagselfs    X/var/www/html/lionshead-backend/venv/lib/python3.12/site-packages/dropbox/team_common.pyis_user_managedz#GroupManagementType.is_user_managed&        yyN**    c                      | j                   dk(  S )zV
        Check if the union tag is ``company_managed``.

        :rtype: bool
        company_managedr   r   s    r   is_company_managedz&GroupManagementType.is_company_managed.   s     yy---r   c                      | j                   dk(  S )zU
        Check if the union tag is ``system_managed``.

        :rtype: bool
        system_managedr   r   s    r   is_system_managedz%GroupManagementType.is_system_managed6   s     yy,,,r   c                      | j                   dk(  S zL
        Check if the union tag is ``other``.

        :rtype: bool
        r	   r   r   s    r   is_otherzGroupManagementType.is_other>        yyG##r   c                 0    t         t        |   |||       y N)superr   _process_custom_annotationsr   annotation_type
field_path	processor	__class__s       r   r"   z/GroupManagementType._process_custom_annotationsF   s    !4D_V`bklr   )__name__
__module____qualname____doc__
_catch_allr   r   r   r	   r   r   r   r   r"   __classcell__r'   s   @r   r   r      sC     JLONE+.-$m mr   r   c                        e Zd ZdZg dZdZ	 	 	 	 	 ddZ ej                  d      Z	 ej                  d      Z
 ej                  dd      Z ej                  d	d      Z ej                  d
d      Z fdZ xZS )GroupSummaryay  
    Information about a group.

    :ivar team_common.GroupSummary.group_external_id: External ID of group. This
        is an arbitrary ID that an admin can attach to a group.
    :ivar team_common.GroupSummary.member_count: The number of members in the
        group.
    :ivar team_common.GroupSummary.group_management_type: Who is allowed to
        manage the group.
    )_group_name_value_group_id_value_group_external_id_value_member_count_value_group_management_type_valueTc                 2   t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        t         j                  | _        ||| _        ||| _        ||| _	        ||| _
        ||| _        y y r    )bbNOT_SETr1   r2   r3   r4   r5   
group_namegroup_idgroup_external_idmember_countgroup_management_type)r   r9   r:   r=   r;   r<   s         r   __init__zGroupSummary.__init__a   s     "$!zz(*

%#%:: ,.JJ)!(DO$DM(%6D"# ,D ,)>D& -r   r9   r:   r;   nullabler<   r=   )user_definedc                 0    t         t        |   |||       y r    )r!   r0   r"   r#   s       r   r"   z(GroupSummary._process_custom_annotations   s    lD=oz[der   )NNNNN)r(   r)   r*   r+   	__slots___has_required_fieldsr>   r7   	Attributer9   r:   r;   r<   r=   r"   r-   r.   s   @r   r0   r0   K   s    	I   !'+#'"?. l+J r||J'H %%84H  2<<>L )BLL)@tTf fr   r0   c                   D     e Zd ZdZdZdZdZdZd Zd Z	d Z
 fdZ xZS )	GroupTypea  
    The group type determines how a group is created and managed.

    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 team_common.GroupType.team: A group to which team members are
        automatically added. Applicable to `team folders
        <https://www.dropbox.com/help/986>`_ only.
    :ivar team_common.GroupType.user_managed: A group is created and managed by
        a user.
    r	   Nc                      | j                   dk(  S )zK
        Check if the union tag is ``team``.

        :rtype: bool
        teamr   r   s    r   is_teamzGroupType.is_team   s     yyF""r   c                      | j                   dk(  S r   r   r   s    r   r   zGroupType.is_user_managed   r   r   c                      | j                   dk(  S r   r   r   s    r   r   zGroupType.is_other   r   r   c                 0    t         t        |   |||       y r    )r!   rG   r"   r#   s       r   r"   z%GroupType._process_custom_annotations       i:?JXabr   )r(   r)   r*   r+   r,   rI   r   r	   rJ   r   r   r"   r-   r.   s   @r   rG   rG      s9     JDLE#+$c cr   rG   c                   N     e Zd ZdZdZdZdZdZdZd Z	d Z
d Zd Z fdZ xZS )	MemberSpaceLimitTypea  
    The type of the space limit imposed on a team member.

    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 team_common.MemberSpaceLimitType.off: The team member does not have
        imposed space limit.
    :ivar team_common.MemberSpaceLimitType.alert_only: The team member has soft
        imposed space limit - the limit is used for display and for
        notifications.
    :ivar team_common.MemberSpaceLimitType.stop_sync: The team member has hard
        imposed space limit - Dropbox file sync will stop after the limit is
        reached.
    r	   Nc                      | j                   dk(  S )zJ
        Check if the union tag is ``off``.

        :rtype: bool
        offr   r   s    r   is_offzMemberSpaceLimitType.is_off   s     yyE!!r   c                      | j                   dk(  S )zQ
        Check if the union tag is ``alert_only``.

        :rtype: bool
        
alert_onlyr   r   s    r   is_alert_onlyz"MemberSpaceLimitType.is_alert_only   s     yyL((r   c                      | j                   dk(  S )zP
        Check if the union tag is ``stop_sync``.

        :rtype: bool
        	stop_syncr   r   s    r   is_stop_syncz!MemberSpaceLimitType.is_stop_sync   s     yyK''r   c                      | j                   dk(  S r   r   r   s    r   r   zMemberSpaceLimitType.is_other   r   r   c                 0    t         t        |   |||       y r    )r!   rP   r"   r#   s       r   r"   z0MemberSpaceLimitType._process_custom_annotations   s    "DEoWaclmr   )r(   r)   r*   r+   r,   rR   rU   rX   r	   rS   rV   rY   r   r"   r-   r.   s   @r   rP   rP      sC    " J
CJIE")($n nr   rP   c                        e Zd ZdZddgZdZ	 	 ddZ ej                  dd      Z	 ej                  d	d      Z
 fd
Z xZS )	TimeRangez
    Time range.

    :ivar team_common.TimeRange.start_time: Optional starting time (inclusive).
    :ivar team_common.TimeRange.end_time: Optional ending time (exclusive).
    _start_time_value_end_time_valueFc                 ~    t         j                  | _        t         j                  | _        ||| _        ||| _        y y r    )r7   r8   r^   r_   
start_timeend_time)r   ra   rb   s      r   r>   zTimeRange.__init__  s;     "$!zz!(DO$DM  r   ra   Tr?   rb   c                 0    t         t        |   |||       y r    )r!   r]   r"   r#   s       r   r"   z%TimeRange._process_custom_annotations  rN   r   )NN)r(   r)   r*   r+   rC   rD   r>   r7   rE   ra   rb   r"   r-   r.   s   @r   r]   r]      s`     	I
 ! !% lT:J r||J6Hc cr   r]   @   )
max_length)r   r   r   r	   r   r   r   r	   )r9   r:   r;   r<   r=   r9   r:   r;   r<   r=   )rI   r   r	   rI   )rR   rU   rX   r	   rR   rU   rX   ra   rb   N)=
__future__r   stone.backends.python_rsrcr   r7   r   bvdropboxr   Unionr   GroupManagementType_validatorStructr0   GroupSummary_validatorrG   GroupType_validatorrP   MemberSpaceLimitType_validatorr]   TimeRange_validatorStringGroupExternalId_validatorGroupId_validatorMemberExternalId_validatorResellerId_validatorTeamId_validatorTeamMemberId_validatorVoid_user_managed_validator_company_managed_validator_system_managed_validator_other_validator_tagmapr   r   r   r	   r9   	validatorr:   Nullabler;   UInt32r<   r=   set_all_field_names__all_fields__team_validatorrI   _off_validator_alert_only_validator_stop_sync_validatorrR   rU   rX   DropboxTimestamp_validatorra   rb   ROUTES r   r   <module>r      s   ( 7 = ;m"(( ;mz !))< = <f299 <f| #<0 0c 0cd bhhy) =n288 =n~ "**>!?  c		  cD  bii	* %BIIK BIIK &RYY"5  ryy{ 299; " .5bggi  +18  .07	  -'.rwwy  $'??*EE)CC 11	   $7~#F   &9:K&L  #%89I%J  "/8  $-BIIK   !"3   +62;;7P+Q   (&1bkk)"))+&>   #/L " " ,!$ & "  <**445&&001,88BBC\..889l@@JJK  $BGGI	 $+BGGI	 !$RWWY	 %%55''	  6"	">2	 G$	&-bggi  #-4RWWY  *,3BGGI  )(/	  %..&<<%::!22	    06  "6|"D  !5k!B  1':  !,V-N-N!O	   *r{{6+L+LM	   !# 	 
 9''112##--.	 

r   