From 588a7dd0a3009b01a646accf5df90046daf46e10 Mon Sep 17 00:00:00 2001 From: DropboxBot Date: Wed, 15 Jun 2022 23:04:44 +0000 Subject: [PATCH] Automated Spec Update c26b11df5170dcc03a86046b162c284ed24f7487 Change Notes: files Namespace - Update upload_session/start_batch route to include account_id Co-authored-by: Brent Bumann --- dropbox/base.py | 6 +++++- dropbox/files.py | 15 ++++++++++++++- spec | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/dropbox/base.py b/dropbox/base.py index df8037d9..73b7307b 100644 --- a/dropbox/base.py +++ b/dropbox/base.py @@ -3533,7 +3533,11 @@ def files_upload_session_start_batch(self, session_type=None): """ This route starts batch of upload_sessions. Please refer to - `upload_session/start` usage. + `upload_session/start` usage. Calls to this endpoint will count as data + transport calls for any Dropbox Business teams with a limit on the + number of data transport calls allowed per month. For more information, + see the `Data transport limit page + `_. Route attributes: scope: files.content.write diff --git a/dropbox/files.py b/dropbox/files.py index f0aa1098..ecdcba46 100644 --- a/dropbox/files.py +++ b/dropbox/files.py @@ -7941,6 +7941,8 @@ class SearchOptions(bb.Struct): extensions specified. Only supported for active file search. :ivar files.SearchOptions.file_categories: Restricts search to only the file categories specified. Only supported for active file search. + :ivar files.SearchOptions.account_id: Restricts results to the given account + id. """ __slots__ = [ @@ -7951,6 +7953,7 @@ class SearchOptions(bb.Struct): '_filename_only_value', '_file_extensions_value', '_file_categories_value', + '_account_id_value', ] _has_required_fields = False @@ -7962,7 +7965,8 @@ def __init__(self, file_status=None, filename_only=None, file_extensions=None, - file_categories=None): + file_categories=None, + account_id=None): self._path_value = bb.NOT_SET self._max_results_value = bb.NOT_SET self._order_by_value = bb.NOT_SET @@ -7970,6 +7974,7 @@ def __init__(self, self._filename_only_value = bb.NOT_SET self._file_extensions_value = bb.NOT_SET self._file_categories_value = bb.NOT_SET + self._account_id_value = bb.NOT_SET if path is not None: self.path = path if max_results is not None: @@ -7984,6 +7989,8 @@ def __init__(self, self.file_extensions = file_extensions if file_categories is not None: self.file_categories = file_categories + if account_id is not None: + self.account_id = account_id # Instance attribute type: str (validator is set below) path = bb.Attribute("path", nullable=True) @@ -8006,6 +8013,9 @@ def __init__(self, # Instance attribute type: list of [FileCategory] (validator is set below) file_categories = bb.Attribute("file_categories", nullable=True) + # Instance attribute type: str (validator is set below) + account_id = bb.Attribute("account_id", nullable=True) + def _process_custom_annotations(self, annotation_type, field_path, processor): super(SearchOptions, self)._process_custom_annotations(annotation_type, field_path, processor) @@ -12587,6 +12597,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): SearchOptions.filename_only.validator = bv.Boolean() SearchOptions.file_extensions.validator = bv.Nullable(bv.List(bv.String())) SearchOptions.file_categories.validator = bv.Nullable(bv.List(FileCategory_validator)) +SearchOptions.account_id.validator = bv.Nullable(users_common.AccountId_validator) SearchOptions._all_field_names_ = set([ 'path', 'max_results', @@ -12595,6 +12606,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): 'filename_only', 'file_extensions', 'file_categories', + 'account_id', ]) SearchOptions._all_fields_ = [ ('path', SearchOptions.path.validator), @@ -12604,6 +12616,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ('filename_only', SearchOptions.filename_only.validator), ('file_extensions', SearchOptions.file_extensions.validator), ('file_categories', SearchOptions.file_categories.validator), + ('account_id', SearchOptions.account_id.validator), ] SearchOrderBy._relevance_validator = bv.Void() diff --git a/spec b/spec index 69f7bb2e..c26b11df 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit 69f7bb2ea7702db5564f12549efb23956c5d6329 +Subproject commit c26b11df5170dcc03a86046b162c284ed24f7487