Skip to content

Commit

Permalink
Automated Spec Update (#337)
Browse files Browse the repository at this point in the history
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 <bbumann@dropbox.com>

Co-authored-by: DropboxBot <DropboxBot@users.noreply.github.com>
Co-authored-by: Brent Bumann <bbumann@dropbox.com>
  • Loading branch information
3 people committed Mar 24, 2021
1 parent 3f8c7aa commit fc72aaa
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 fc72aaa

Please sign in to comment.