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/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -12198,6 +12198,8 @@ class WriteError(bb.Union):
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.
:ivar WriteError.upload_traffic_limit_reached:
The user has reached their monthly upload traffic limit.
"""

_catch_all = "other"
Expand All @@ -12220,6 +12222,8 @@ class WriteError(bb.Union):
# Attribute is overwritten below the class definition
member_folder_insufficient_space = None
# Attribute is overwritten below the class definition
upload_traffic_limit_reached = None
# Attribute is overwritten below the class definition
other = None

@classmethod
Expand Down Expand Up @@ -12332,6 +12336,14 @@ def is_member_folder_insufficient_space(self):
"""
return self._tag == "member_folder_insufficient_space"

def is_upload_traffic_limit_reached(self):
"""
Check if the union tag is ``upload_traffic_limit_reached``.

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

def is_other(self):
"""
Check if the union tag is ``other``.
Expand Down Expand Up @@ -15246,6 +15258,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
WriteError._access_restricted_validator = bv.Void()
WriteError._team_folder_insufficient_space_validator = bv.Void()
WriteError._member_folder_insufficient_space_validator = bv.Void()
WriteError._upload_traffic_limit_reached_validator = bv.Void()
WriteError._other_validator = bv.Void()
WriteError._tagmap = {
"malformed_path": WriteError._malformed_path_validator,
Expand All @@ -15259,6 +15272,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
"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,
"upload_traffic_limit_reached": WriteError._upload_traffic_limit_reached_validator,
"other": WriteError._other_validator,
}

Expand All @@ -15271,6 +15285,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
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.upload_traffic_limit_reached = WriteError("upload_traffic_limit_reached")
WriteError.other = WriteError("other")

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