Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated Spec Update #435

Merged
merged 1 commit into from Jun 15, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion dropbox/base.py
Expand Up @@ -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
<https://www.dropbox.com/developers/reference/data-transport-limit>`_.

Route attributes:
scope: files.content.write
Expand Down
15 changes: 14 additions & 1 deletion dropbox/files.py
Expand Up @@ -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__ = [
Expand All @@ -7951,6 +7953,7 @@ class SearchOptions(bb.Struct):
'_filename_only_value',
'_file_extensions_value',
'_file_categories_value',
'_account_id_value',
]

_has_required_fields = False
Expand All @@ -7962,14 +7965,16 @@ 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
self._file_status_value = bb.NOT_SET
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:
Expand All @@ -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)
Expand All @@ -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)

Expand Down Expand Up @@ -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',
Expand All @@ -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),
Expand All @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion spec
Submodule spec updated 1 files
+9 −1 files.stone