Skip to content

Commit fc72aaa

Browse files
DropboxBotBrent Bumann
and
Brent Bumann
authored
Automated Spec Update (dropbox#337)
b395c3e9a318665b48e20a087cfeb6109fc3132d Change Notes: Team Log Generated Namespace: - Update ClassificationPolicyEnumWrapper to include member_and_team_folders and team_folders - Update Examples Team Member Namespace: - Update Comments Co-authored-by: Brent Bumann <[email protected]> Co-authored-by: DropboxBot <[email protected]> Co-authored-by: Brent Bumann <[email protected]>
1 parent 3f8c7aa commit fc72aaa

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

dropbox/team.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,8 @@ class AdminTier(bb.Union):
591591
:ivar team.AdminTier.user_management_admin: User can do most user
592592
provisioning, de-provisioning and management.
593593
:ivar team.AdminTier.support_admin: User can do a limited set of common
594-
support tasks for existing users.
594+
support tasks for existing users. Note: Dropbox is adding new types of
595+
admin roles; these may display as support_admin.
595596
:ivar team.AdminTier.member_only: User is not an admin of the team.
596597
"""
597598

dropbox/team_log.py

+26
Original file line numberDiff line numberDiff line change
@@ -3366,6 +3366,10 @@ class ClassificationPolicyEnumWrapper(bb.Union):
33663366
# Attribute is overwritten below the class definition
33673367
enabled = None
33683368
# Attribute is overwritten below the class definition
3369+
member_and_team_folders = None
3370+
# Attribute is overwritten below the class definition
3371+
team_folders = None
3372+
# Attribute is overwritten below the class definition
33693373
other = None
33703374

33713375
def is_disabled(self):
@@ -3384,6 +3388,22 @@ def is_enabled(self):
33843388
"""
33853389
return self._tag == 'enabled'
33863390

3391+
def is_member_and_team_folders(self):
3392+
"""
3393+
Check if the union tag is ``member_and_team_folders``.
3394+
3395+
:rtype: bool
3396+
"""
3397+
return self._tag == 'member_and_team_folders'
3398+
3399+
def is_team_folders(self):
3400+
"""
3401+
Check if the union tag is ``team_folders``.
3402+
3403+
:rtype: bool
3404+
"""
3405+
return self._tag == 'team_folders'
3406+
33873407
def is_other(self):
33883408
"""
33893409
Check if the union tag is ``other``.
@@ -69789,15 +69809,21 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
6978969809

6979069810
ClassificationPolicyEnumWrapper._disabled_validator = bv.Void()
6979169811
ClassificationPolicyEnumWrapper._enabled_validator = bv.Void()
69812+
ClassificationPolicyEnumWrapper._member_and_team_folders_validator = bv.Void()
69813+
ClassificationPolicyEnumWrapper._team_folders_validator = bv.Void()
6979269814
ClassificationPolicyEnumWrapper._other_validator = bv.Void()
6979369815
ClassificationPolicyEnumWrapper._tagmap = {
6979469816
'disabled': ClassificationPolicyEnumWrapper._disabled_validator,
6979569817
'enabled': ClassificationPolicyEnumWrapper._enabled_validator,
69818+
'member_and_team_folders': ClassificationPolicyEnumWrapper._member_and_team_folders_validator,
69819+
'team_folders': ClassificationPolicyEnumWrapper._team_folders_validator,
6979669820
'other': ClassificationPolicyEnumWrapper._other_validator,
6979769821
}
6979869822

6979969823
ClassificationPolicyEnumWrapper.disabled = ClassificationPolicyEnumWrapper('disabled')
6980069824
ClassificationPolicyEnumWrapper.enabled = ClassificationPolicyEnumWrapper('enabled')
69825+
ClassificationPolicyEnumWrapper.member_and_team_folders = ClassificationPolicyEnumWrapper('member_and_team_folders')
69826+
ClassificationPolicyEnumWrapper.team_folders = ClassificationPolicyEnumWrapper('team_folders')
6980169827
ClassificationPolicyEnumWrapper.other = ClassificationPolicyEnumWrapper('other')
6980269828

6980369829
ClassificationType._personal_information_validator = bv.Void()

spec

0 commit comments

Comments
 (0)