Skip to content

Commit

Permalink
Automated Spec Update (#398)
Browse files Browse the repository at this point in the history
bca5f1448ac6f65a17c9df95a5175cf7b878ad90

 Change Notes:

check_api_v2_service Namespace

check_api_v2_types Namespace

sharing_folders Namespace

team_log_generated Namespace
- Add UndoNamingConventionDetails, UndoOrganizeFolderWithTidyDetails, UndoNamingConventionType, UndoOrganizeFolderWithTidyType structs
  • Loading branch information
DropboxBot authored Nov 24, 2021
1 parent cc17caf commit 34f276e
Show file tree
Hide file tree
Showing 3 changed files with 281 additions and 9 deletions.
15 changes: 15 additions & 0 deletions dropbox/sharing.py
Original file line number Diff line number Diff line change
Expand Up @@ -8260,6 +8260,8 @@ class SharePathError(bb.Union):
folder inside a Mac OS X package.
:ivar sharing.SharePathError.is_vault: We do not support sharing the Vault
folder.
:ivar sharing.SharePathError.is_vault_locked: We do not support sharing a
folder inside a locked Vault.
:ivar sharing.SharePathError.is_family: We do not support sharing the Family
folder.
"""
Expand Down Expand Up @@ -8292,6 +8294,8 @@ class SharePathError(bb.Union):
# Attribute is overwritten below the class definition
is_vault = None
# Attribute is overwritten below the class definition
is_vault_locked = None
# Attribute is overwritten below the class definition
is_family = None
# Attribute is overwritten below the class definition
other = None
Expand Down Expand Up @@ -8419,6 +8423,14 @@ def is_is_vault(self):
"""
return self._tag == 'is_vault'

def is_is_vault_locked(self):
"""
Check if the union tag is ``is_vault_locked``.
:rtype: bool
"""
return self._tag == 'is_vault_locked'

def is_is_family(self):
"""
Check if the union tag is ``is_family``.
Expand Down Expand Up @@ -12793,6 +12805,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
SharePathError._is_osx_package_validator = bv.Void()
SharePathError._inside_osx_package_validator = bv.Void()
SharePathError._is_vault_validator = bv.Void()
SharePathError._is_vault_locked_validator = bv.Void()
SharePathError._is_family_validator = bv.Void()
SharePathError._other_validator = bv.Void()
SharePathError._tagmap = {
Expand All @@ -12810,6 +12823,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
'is_osx_package': SharePathError._is_osx_package_validator,
'inside_osx_package': SharePathError._inside_osx_package_validator,
'is_vault': SharePathError._is_vault_validator,
'is_vault_locked': SharePathError._is_vault_locked_validator,
'is_family': SharePathError._is_family_validator,
'other': SharePathError._other_validator,
}
Expand All @@ -12827,6 +12841,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
SharePathError.is_osx_package = SharePathError('is_osx_package')
SharePathError.inside_osx_package = SharePathError('inside_osx_package')
SharePathError.is_vault = SharePathError('is_vault')
SharePathError.is_vault_locked = SharePathError('is_vault_locked')
SharePathError.is_family = SharePathError('is_family')
SharePathError.other = SharePathError('other')

Expand Down
Loading

0 comments on commit 34f276e

Please sign in to comment.