Skip to content

Commit

Permalink
Merge fe353cc into 3f8c7aa
Browse files Browse the repository at this point in the history
  • Loading branch information
DropboxBot committed Mar 24, 2021
2 parents 3f8c7aa + fe353cc commit 6eee71f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dropbox/team.py
Expand Up @@ -591,7 +591,8 @@ class AdminTier(bb.Union):
:ivar team.AdminTier.user_management_admin: User can do most user
provisioning, de-provisioning and management.
:ivar team.AdminTier.support_admin: User can do a limited set of common
support tasks for existing users.
support tasks for existing users. Note: Dropbox is adding new types of
admin roles; these may display as support_admin.
:ivar team.AdminTier.member_only: User is not an admin of the team.
"""

Expand Down
26 changes: 26 additions & 0 deletions dropbox/team_log.py
Expand Up @@ -3366,6 +3366,10 @@ class ClassificationPolicyEnumWrapper(bb.Union):
# Attribute is overwritten below the class definition
enabled = None
# Attribute is overwritten below the class definition
member_and_team_folders = None
# Attribute is overwritten below the class definition
team_folders = None
# Attribute is overwritten below the class definition
other = None

def is_disabled(self):
Expand All @@ -3384,6 +3388,22 @@ def is_enabled(self):
"""
return self._tag == 'enabled'

def is_member_and_team_folders(self):
"""
Check if the union tag is ``member_and_team_folders``.

:rtype: bool
"""
return self._tag == 'member_and_team_folders'

def is_team_folders(self):
"""
Check if the union tag is ``team_folders``.

:rtype: bool
"""
return self._tag == 'team_folders'

def is_other(self):
"""
Check if the union tag is ``other``.
Expand Down Expand Up @@ -69789,15 +69809,21 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):

ClassificationPolicyEnumWrapper._disabled_validator = bv.Void()
ClassificationPolicyEnumWrapper._enabled_validator = bv.Void()
ClassificationPolicyEnumWrapper._member_and_team_folders_validator = bv.Void()
ClassificationPolicyEnumWrapper._team_folders_validator = bv.Void()
ClassificationPolicyEnumWrapper._other_validator = bv.Void()
ClassificationPolicyEnumWrapper._tagmap = {
'disabled': ClassificationPolicyEnumWrapper._disabled_validator,
'enabled': ClassificationPolicyEnumWrapper._enabled_validator,
'member_and_team_folders': ClassificationPolicyEnumWrapper._member_and_team_folders_validator,
'team_folders': ClassificationPolicyEnumWrapper._team_folders_validator,
'other': ClassificationPolicyEnumWrapper._other_validator,
}

ClassificationPolicyEnumWrapper.disabled = ClassificationPolicyEnumWrapper('disabled')
ClassificationPolicyEnumWrapper.enabled = ClassificationPolicyEnumWrapper('enabled')
ClassificationPolicyEnumWrapper.member_and_team_folders = ClassificationPolicyEnumWrapper('member_and_team_folders')
ClassificationPolicyEnumWrapper.team_folders = ClassificationPolicyEnumWrapper('team_folders')
ClassificationPolicyEnumWrapper.other = ClassificationPolicyEnumWrapper('other')

ClassificationType._personal_information_validator = bv.Void()
Expand Down
2 changes: 1 addition & 1 deletion spec

0 comments on commit 6eee71f

Please sign in to comment.