From b494dd8b9a8b48da0dd8d63e718d15d52eee3500 Mon Sep 17 00:00:00 2001 From: "dropbox-sdk-updater[bot]" <306210582+dropbox-sdk-updater[bot]@users.noreply.github.com> Date: Tue, 3 Nov 2026 18:03:49 +0000 Subject: [PATCH] Automated Spec Update ca951b75be4b8d94c589b380e22dcd2f0d28679c Automated update of the API specification Co-authored-by: dropbox-spec-updater[bot] <306253022+dropbox-spec-updater[bot]@users.noreply.github.com> --- dropbox/paper.py | 16 ++++++++++++++++ spec | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/dropbox/paper.py b/dropbox/paper.py index 509d85fc..a376eb00 100644 --- a/dropbox/paper.py +++ b/dropbox/paper.py @@ -388,10 +388,15 @@ class DocLookupError(PaperApiBaseError): :ivar DocLookupError.doc_not_found: The required doc was not found. + :ivar DocLookupError.folder_not_found: + Cloud Docs do not have legacy Paper folders. Use the Dropbox filesystem + APIs to look up their containing folders. """ # Attribute is overwritten below the class definition doc_not_found = None + # Attribute is overwritten below the class definition + folder_not_found = None def is_doc_not_found(self): """ @@ -401,6 +406,14 @@ def is_doc_not_found(self): """ return self._tag == "doc_not_found" + def is_folder_not_found(self): + """ + Check if the union tag is ``folder_not_found``. + + :rtype: bool + """ + return self._tag == "folder_not_found" + def _process_custom_annotations(self, annotation_type, field_path, processor): super(DocLookupError, self)._process_custom_annotations( annotation_type, field_path, processor @@ -2874,12 +2887,15 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): PaperApiBaseError.other = PaperApiBaseError("other") DocLookupError._doc_not_found_validator = bv.Void() +DocLookupError._folder_not_found_validator = bv.Void() DocLookupError._tagmap = { "doc_not_found": DocLookupError._doc_not_found_validator, + "folder_not_found": DocLookupError._folder_not_found_validator, } DocLookupError._tagmap.update(PaperApiBaseError._tagmap) DocLookupError.doc_not_found = DocLookupError("doc_not_found") +DocLookupError.folder_not_found = DocLookupError("folder_not_found") DocSubscriptionLevel._default_validator = bv.Void() DocSubscriptionLevel._ignore_validator = bv.Void() diff --git a/spec b/spec index 218820cd..ca951b75 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit 218820cd6597b17380bc140354d783c50fb339ed +Subproject commit ca951b75be4b8d94c589b380e22dcd2f0d28679c