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
62 changes: 62 additions & 0 deletions dropbox/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -6635,6 +6635,10 @@ class RelocationError(bb.Union):
Some content cannot be moved into the Family Room folder under certain
circumstances, see detailed error.
:vartype RelocationError.cant_move_into_family: MoveIntoFamilyError
:ivar RelocationError.team_folder_insufficient_quota:
The destination team folder has reached its storage limit.
:ivar RelocationError.member_folder_insufficient_quota:
The user's member folder has reached its storage limit.
"""

_catch_all = "other"
Expand All @@ -6657,6 +6661,10 @@ class RelocationError(bb.Union):
# Attribute is overwritten below the class definition
cant_move_shared_folder = None
# Attribute is overwritten below the class definition
team_folder_insufficient_quota = None
# Attribute is overwritten below the class definition
member_folder_insufficient_quota = None
# Attribute is overwritten below the class definition
other = None

@classmethod
Expand Down Expand Up @@ -6826,6 +6834,22 @@ def is_cant_move_into_family(self):
"""
return self._tag == "cant_move_into_family"

def is_team_folder_insufficient_quota(self):
"""
Check if the union tag is ``team_folder_insufficient_quota``.

:rtype: bool
"""
return self._tag == "team_folder_insufficient_quota"

def is_member_folder_insufficient_quota(self):
"""
Check if the union tag is ``member_folder_insufficient_quota``.

:rtype: bool
"""
return self._tag == "member_folder_insufficient_quota"

def is_other(self):
"""
Check if the union tag is ``other``.
Expand Down Expand Up @@ -12177,6 +12201,10 @@ class WriteError(bb.Union):
:ivar WriteError.access_restricted:
The user doesn't have permission to perform the action due to
restrictions set by a team administrator
:ivar WriteError.team_folder_insufficient_space:
The destination team folder has reached its storage limit.
:ivar WriteError.member_folder_insufficient_space:
The user's member folder has reached its storage limit.
"""

_catch_all = "other"
Expand All @@ -12195,6 +12223,10 @@ class WriteError(bb.Union):
# Attribute is overwritten below the class definition
access_restricted = None
# Attribute is overwritten below the class definition
team_folder_insufficient_space = None
# Attribute is overwritten below the class definition
member_folder_insufficient_space = None
# Attribute is overwritten below the class definition
other = None

@classmethod
Expand Down Expand Up @@ -12291,6 +12323,22 @@ def is_access_restricted(self):
"""
return self._tag == "access_restricted"

def is_team_folder_insufficient_space(self):
"""
Check if the union tag is ``team_folder_insufficient_space``.

:rtype: bool
"""
return self._tag == "team_folder_insufficient_space"

def is_member_folder_insufficient_space(self):
"""
Check if the union tag is ``member_folder_insufficient_space``.

:rtype: bool
"""
return self._tag == "member_folder_insufficient_space"

def is_other(self):
"""
Check if the union tag is ``other``.
Expand Down Expand Up @@ -13992,6 +14040,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
RelocationError._cant_move_shared_folder_validator = bv.Void()
RelocationError._cant_move_into_vault_validator = MoveIntoVaultError_validator
RelocationError._cant_move_into_family_validator = MoveIntoFamilyError_validator
RelocationError._team_folder_insufficient_quota_validator = bv.Void()
RelocationError._member_folder_insufficient_quota_validator = bv.Void()
RelocationError._other_validator = bv.Void()
RelocationError._tagmap = {
"from_lookup": RelocationError._from_lookup_validator,
Expand All @@ -14008,6 +14058,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
"cant_move_shared_folder": RelocationError._cant_move_shared_folder_validator,
"cant_move_into_vault": RelocationError._cant_move_into_vault_validator,
"cant_move_into_family": RelocationError._cant_move_into_family_validator,
"team_folder_insufficient_quota": RelocationError._team_folder_insufficient_quota_validator,
"member_folder_insufficient_quota": RelocationError._member_folder_insufficient_quota_validator,
"other": RelocationError._other_validator,
}

Expand All @@ -14020,6 +14072,10 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
RelocationError.insufficient_quota = RelocationError("insufficient_quota")
RelocationError.internal_error = RelocationError("internal_error")
RelocationError.cant_move_shared_folder = RelocationError("cant_move_shared_folder")
RelocationError.team_folder_insufficient_quota = RelocationError("team_folder_insufficient_quota")
RelocationError.member_folder_insufficient_quota = RelocationError(
"member_folder_insufficient_quota"
)
RelocationError.other = RelocationError("other")

RelocationBatchError._too_many_write_operations_validator = bv.Void()
Expand Down Expand Up @@ -15201,6 +15257,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
WriteError._operation_suppressed_validator = bv.Void()
WriteError._too_many_write_operations_validator = bv.Void()
WriteError._access_restricted_validator = bv.Void()
WriteError._team_folder_insufficient_space_validator = bv.Void()
WriteError._member_folder_insufficient_space_validator = bv.Void()
WriteError._other_validator = bv.Void()
WriteError._tagmap = {
"malformed_path": WriteError._malformed_path_validator,
Expand All @@ -15212,6 +15270,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
"operation_suppressed": WriteError._operation_suppressed_validator,
"too_many_write_operations": WriteError._too_many_write_operations_validator,
"access_restricted": WriteError._access_restricted_validator,
"team_folder_insufficient_space": WriteError._team_folder_insufficient_space_validator,
"member_folder_insufficient_space": WriteError._member_folder_insufficient_space_validator,
"other": WriteError._other_validator,
}

Expand All @@ -15222,6 +15282,8 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
WriteError.operation_suppressed = WriteError("operation_suppressed")
WriteError.too_many_write_operations = WriteError("too_many_write_operations")
WriteError.access_restricted = WriteError("access_restricted")
WriteError.team_folder_insufficient_space = WriteError("team_folder_insufficient_space")
WriteError.member_folder_insufficient_space = WriteError("member_folder_insufficient_space")
WriteError.other = WriteError("other")

WriteMode._add_validator = bv.Void()
Expand Down
2 changes: 1 addition & 1 deletion spec
Submodule spec updated 1 files
+8 −0 files.stone
Loading