dropbox.team_common
– Team Common
- class dropbox.team_common.GroupManagementType(tag, value=None)
Bases:
Union
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 correspondingget_*
method.- Variables:
team_common.GroupManagementType.user_managed – A group which is managed by selected users.
team_common.GroupManagementType.company_managed – A group which is managed by team admins only.
team_common.GroupManagementType.system_managed – A group which is managed automatically by Dropbox.
- company_managed = GroupManagementType('company_managed', None)
- is_company_managed()
Check if the union tag is
company_managed
.- Return type:
bool
- is_other()
Check if the union tag is
other
.- Return type:
bool
- is_system_managed()
Check if the union tag is
system_managed
.- Return type:
bool
- is_user_managed()
Check if the union tag is
user_managed
.- Return type:
bool
- other = GroupManagementType('other', None)
- system_managed = GroupManagementType('system_managed', None)
- user_managed = GroupManagementType('user_managed', None)
- class dropbox.team_common.GroupSummary(group_name=None, group_id=None, group_management_type=None, group_external_id=None, member_count=None)
Bases:
Struct
Information about a group.
- Variables:
team_common.GroupSummary.group_external_id – External ID of group. This is an arbitrary ID that an admin can attach to a group.
team_common.GroupSummary.member_count – The number of members in the group.
team_common.GroupSummary.group_management_type – Who is allowed to manage the group.
- __init__(group_name=None, group_id=None, group_management_type=None, group_external_id=None, member_count=None)
- group_external_id
- group_id
- group_management_type
- group_name
- member_count
- class dropbox.team_common.GroupType(tag, value=None)
Bases:
Union
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 correspondingget_*
method.- Variables:
team_common.GroupType.team – A group to which team members are automatically added. Applicable to team folders only.
team_common.GroupType.user_managed – A group is created and managed by a user.
- is_other()
Check if the union tag is
other
.- Return type:
bool
- is_team()
Check if the union tag is
team
.- Return type:
bool
- is_user_managed()
Check if the union tag is
user_managed
.- Return type:
bool
- other = GroupType('other', None)
- team = GroupType('team', None)
- user_managed = GroupType('user_managed', None)
- class dropbox.team_common.MemberSpaceLimitType(tag, value=None)
Bases:
Union
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 correspondingget_*
method.- Variables:
team_common.MemberSpaceLimitType.off – The team member does not have imposed space limit.
team_common.MemberSpaceLimitType.alert_only – The team member has soft imposed space limit - the limit is used for display and for notifications.
team_common.MemberSpaceLimitType.stop_sync – The team member has hard imposed space limit - Dropbox file sync will stop after the limit is reached.
- alert_only = MemberSpaceLimitType('alert_only', None)
- is_alert_only()
Check if the union tag is
alert_only
.- Return type:
bool
- is_off()
Check if the union tag is
off
.- Return type:
bool
- is_other()
Check if the union tag is
other
.- Return type:
bool
- is_stop_sync()
Check if the union tag is
stop_sync
.- Return type:
bool
- off = MemberSpaceLimitType('off', None)
- other = MemberSpaceLimitType('other', None)
- stop_sync = MemberSpaceLimitType('stop_sync', None)
- class dropbox.team_common.TimeRange(start_time=None, end_time=None)
Bases:
Struct
Time range.
- Variables:
team_common.TimeRange.start_time – Optional starting time (inclusive).
team_common.TimeRange.end_time – Optional ending time (exclusive).
- __init__(start_time=None, end_time=None)
- end_time
- start_time