diff --git a/dropbox/files.py b/dropbox/files.py index cd9a55d..566b919 100644 --- a/dropbox/files.py +++ b/dropbox/files.py @@ -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" @@ -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 @@ -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``. @@ -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, @@ -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, } @@ -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() diff --git a/spec b/spec index 4764f33..22a3058 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit 4764f3379d6eb252c8180e36b942f8d8e7874e44 +Subproject commit 22a3058f8c5594956fcded8d120700475c2ec9d7