Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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