Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3fa08e5

Browse files
DropboxBotBrent Bumann
and
Brent Bumann
authored
Automated Spec Update (dropbox#435)
c26b11df5170dcc03a86046b162c284ed24f7487 Change Notes:files Namespace- Update upload_session/start_batch route to include account_idCo-authored-by: DropboxBot <DropboxBot@users.noreply.github.com>Co-authored-by: Brent Bumann <bbumann@dropbox.com>
1 parent005a750 commit3fa08e5

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

‎dropbox/base.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3533,7 +3533,11 @@ def files_upload_session_start_batch(self,
35333533
session_type=None):
35343534
"""
35353535
This route starts batch of upload_sessions. Please refer to
3536-
`upload_session/start` usage.
3536+
`upload_session/start` usage. Calls to this endpoint will count as data
3537+
transport calls for any Dropbox Business teams with a limit on the
3538+
number of data transport calls allowed per month. For more information,
3539+
see the `Data transport limit page
3540+
<https://www.dropbox.com/developers/reference/data-transport-limit>`_.
35373541
35383542
Route attributes:
35393543
scope: files.content.write

‎dropbox/files.py‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7941,6 +7941,8 @@ class SearchOptions(bb.Struct):
79417941
extensions specified. Only supported for active file search.
79427942
:ivar files.SearchOptions.file_categories: Restricts search to only the file
79437943
categories specified. Only supported for active file search.
7944+
:ivar files.SearchOptions.account_id: Restricts results to the given account
7945+
id.
79447946
"""
79457947

79467948
__slots__= [
@@ -7951,6 +7953,7 @@ class SearchOptions(bb.Struct):
79517953
'_filename_only_value',
79527954
'_file_extensions_value',
79537955
'_file_categories_value',
7956+
'_account_id_value',
79547957
]
79557958

79567959
_has_required_fields=False
@@ -7962,14 +7965,16 @@ def __init__(self,
79627965
file_status=None,
79637966
filename_only=None,
79647967
file_extensions=None,
7965-
file_categories=None):
7968+
file_categories=None,
7969+
account_id=None):
79667970
self._path_value=bb.NOT_SET
79677971
self._max_results_value=bb.NOT_SET
79687972
self._order_by_value=bb.NOT_SET
79697973
self._file_status_value=bb.NOT_SET
79707974
self._filename_only_value=bb.NOT_SET
79717975
self._file_extensions_value=bb.NOT_SET
79727976
self._file_categories_value=bb.NOT_SET
7977+
self._account_id_value=bb.NOT_SET
79737978
ifpathisnotNone:
79747979
self.path=path
79757980
ifmax_resultsisnotNone:
@@ -7984,6 +7989,8 @@ def __init__(self,
79847989
self.file_extensions=file_extensions
79857990
iffile_categoriesisnotNone:
79867991
self.file_categories=file_categories
7992+
ifaccount_idisnotNone:
7993+
self.account_id=account_id
79877994

79887995
# Instance attribute type: str (validator is set below)
79897996
path=bb.Attribute("path",nullable=True)
@@ -8006,6 +8013,9 @@ def __init__(self,
80068013
# Instance attribute type: list of [FileCategory] (validator is set below)
80078014
file_categories=bb.Attribute("file_categories",nullable=True)
80088015

8016+
# Instance attribute type: str (validator is set below)
8017+
account_id=bb.Attribute("account_id",nullable=True)
8018+
80098019
def_process_custom_annotations(self,annotation_type,field_path,processor):
80108020
super(SearchOptions,self)._process_custom_annotations(annotation_type,field_path,processor)
80118021

@@ -12587,6 +12597,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
1258712597
SearchOptions.filename_only.validator=bv.Boolean()
1258812598
SearchOptions.file_extensions.validator=bv.Nullable(bv.List(bv.String()))
1258912599
SearchOptions.file_categories.validator=bv.Nullable(bv.List(FileCategory_validator))
12600+
SearchOptions.account_id.validator=bv.Nullable(users_common.AccountId_validator)
1259012601
SearchOptions._all_field_names_=set([
1259112602
'path',
1259212603
'max_results',
@@ -12595,6 +12606,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
1259512606
'filename_only',
1259612607
'file_extensions',
1259712608
'file_categories',
12609+
'account_id',
1259812610
])
1259912611
SearchOptions._all_fields_= [
1260012612
('path',SearchOptions.path.validator),
@@ -12604,6 +12616,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
1260412616
('filename_only',SearchOptions.filename_only.validator),
1260512617
('file_extensions',SearchOptions.file_extensions.validator),
1260612618
('file_categories',SearchOptions.file_categories.validator),
12619+
('account_id',SearchOptions.account_id.validator),
1260712620
]
1260812621

1260912622
SearchOrderBy._relevance_validator=bv.Void()

‎spec‎

Submodulespec updated1 file

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp