Skip to content

Commit fb9a531

Browse files
committed
Updated spec
1 parent c342d12 commit fb9a531

File tree

14 files changed

+2408
-306
lines changed

14 files changed

+2408
-306
lines changed

dropbox/auth.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ def __repr__(self):
700700

701701
token_from_oauth1 = bb.Route(
702702
'token/from_oauth1',
703+
1,
703704
False,
704705
TokenFromOAuth1Arg_validator,
705706
TokenFromOAuth1Result_validator,
@@ -709,6 +710,7 @@ def __repr__(self):
709710
)
710711
token_revoke = bb.Route(
711712
'token/revoke',
713+
1,
712714
False,
713715
bv.Void(),
714716
bv.Void(),

dropbox/base.py

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,7 +2214,8 @@ def files_upload_session_append(self,
22142214
offset):
22152215
"""
22162216
Append more data to an upload session. A single request should not
2217-
upload more than 150 MB.
2217+
upload more than 150 MB. The maximum size of a file one can upload to an
2218+
upload session is 350 GB.
22182219
22192220
:param bytes f: Contents to upload.
22202221
:param str session_id: The upload session ID (returned by
@@ -2249,7 +2250,8 @@ def files_upload_session_append_v2(self,
22492250
"""
22502251
Append more data to an upload session. When the parameter close is set,
22512252
this call will close the session. A single request should not upload
2252-
more than 150 MB.
2253+
more than 150 MB. The maximum size of a file one can upload to an upload
2254+
session is 350 GB.
22532255
22542256
:param bytes f: Contents to upload.
22552257
:param cursor: Contains the upload session ID and the offset.
@@ -2280,7 +2282,8 @@ def files_upload_session_finish(self,
22802282
commit):
22812283
"""
22822284
Finish an upload session and save the uploaded data to the given file
2283-
path. A single request should not upload more than 150 MB.
2285+
path. A single request should not upload more than 150 MB. The maximum
2286+
size of a file one can upload to an upload session is 350 GB.
22842287
22852288
:param bytes f: Contents to upload.
22862289
:param cursor: Contains the upload session ID and the offset.
@@ -2316,7 +2319,8 @@ def files_upload_session_finish_batch(self,
23162319
upload sessions in a single request. ``UploadSessionStartArg.close`` or
23172320
``UploadSessionAppendArg.close`` needs to be true for the last
23182321
:meth:`files_upload_session_start` or
2319-
:meth:`files_upload_session_append_v2` call. This route will return a
2322+
:meth:`files_upload_session_append_v2` call. The maximum size of a file
2323+
one can upload to an upload session is 350 GB. This route will return a
23202324
job_id immediately and do the async commit job in background. Use
23212325
:meth:`files_upload_session_finish_batch_check` to check the job status.
23222326
For the same account, this route should be executed serially. That means
@@ -2368,9 +2372,10 @@ def files_upload_session_start(self,
23682372
This call starts a new upload session with the given data. You can then
23692373
use :meth:`files_upload_session_append_v2` to add more data and
23702374
:meth:`files_upload_session_finish` to save all the data to a file in
2371-
Dropbox. A single request should not upload more than 150 MB. An upload
2372-
session can be used for a maximum of 48 hours. Attempting to use an
2373-
``UploadSessionStartResult.session_id`` with
2375+
Dropbox. A single request should not upload more than 150 MB. The
2376+
maximum size of a file one can upload to an upload session is 350 GB. An
2377+
upload session can be used for a maximum of 48 hours. Attempting to use
2378+
an ``UploadSessionStartResult.session_id`` with
23742379
:meth:`files_upload_session_append_v2` or
23752380
:meth:`files_upload_session_finish` more than 48 hours after its
23762381
creation will return a ``UploadSessionLookupError.not_found``.
@@ -4190,7 +4195,11 @@ def team_log_get_events(self,
41904195
"""
41914196
Retrieves team events. Events have a lifespan of two years. Events older
41924197
than two years will not be returned. Many attributes note 'may be
4193-
missing due to historical data gap'. Permission : Team Auditing.
4198+
missing due to historical data gap'. Note that the file_operations
4199+
category and & analogous paper events are not available on all Dropbox
4200+
Business `plans </business/plans-comparison>`_. Use `features/get_values
4201+
</developers/documentation/http/teams#team-features-get_values>`_ to
4202+
check for this feature. Permission : Team Auditing.
41944203
41954204
:param long limit: Number of results to return per call.
41964205
:param Nullable account_id: Filter the events by account ID. Return ony

dropbox/base_team.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,8 @@ def team_members_set_profile(self,
11171117
new_external_id=None,
11181118
new_given_name=None,
11191119
new_surname=None,
1120-
new_persistent_id=None):
1120+
new_persistent_id=None,
1121+
new_is_directory_restricted=None):
11211122
"""
11221123
Updates a team member's profile. Permission : Team member management.
11231124
@@ -1129,6 +1130,8 @@ def team_members_set_profile(self,
11291130
:param Nullable new_surname: New surname for member.
11301131
:param Nullable new_persistent_id: New persistent ID. This field only
11311132
available to teams using persistent ID SAML configuration.
1133+
:param Nullable new_is_directory_restricted: New value for whether the
1134+
user is a directory restricted user.
11321135
:rtype: :class:`dropbox.team.TeamMemberInfo`
11331136
:raises: :class:`.exceptions.ApiError`
11341137
@@ -1140,7 +1143,8 @@ def team_members_set_profile(self,
11401143
new_external_id,
11411144
new_given_name,
11421145
new_surname,
1143-
new_persistent_id)
1146+
new_persistent_id,
1147+
new_is_directory_restricted)
11441148
r = self.request(
11451149
team.members_set_profile,
11461150
'team',

dropbox/file_properties.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3099,6 +3099,7 @@ def __repr__(self):
30993099

31003100
properties_add = bb.Route(
31013101
'properties/add',
3102+
1,
31023103
False,
31033104
AddPropertiesArg_validator,
31043105
bv.Void(),
@@ -3108,6 +3109,7 @@ def __repr__(self):
31083109
)
31093110
properties_overwrite = bb.Route(
31103111
'properties/overwrite',
3112+
1,
31113113
False,
31123114
OverwritePropertyGroupArg_validator,
31133115
bv.Void(),
@@ -3117,6 +3119,7 @@ def __repr__(self):
31173119
)
31183120
properties_remove = bb.Route(
31193121
'properties/remove',
3122+
1,
31203123
False,
31213124
RemovePropertiesArg_validator,
31223125
bv.Void(),
@@ -3126,6 +3129,7 @@ def __repr__(self):
31263129
)
31273130
properties_search = bb.Route(
31283131
'properties/search',
3132+
1,
31293133
False,
31303134
PropertiesSearchArg_validator,
31313135
PropertiesSearchResult_validator,
@@ -3135,6 +3139,7 @@ def __repr__(self):
31353139
)
31363140
properties_search_continue = bb.Route(
31373141
'properties/search/continue',
3142+
1,
31383143
False,
31393144
PropertiesSearchContinueArg_validator,
31403145
PropertiesSearchResult_validator,
@@ -3144,6 +3149,7 @@ def __repr__(self):
31443149
)
31453150
properties_update = bb.Route(
31463151
'properties/update',
3152+
1,
31473153
False,
31483154
UpdatePropertiesArg_validator,
31493155
bv.Void(),
@@ -3153,6 +3159,7 @@ def __repr__(self):
31533159
)
31543160
templates_add_for_team = bb.Route(
31553161
'templates/add_for_team',
3162+
1,
31563163
False,
31573164
AddTemplateArg_validator,
31583165
AddTemplateResult_validator,
@@ -3162,6 +3169,7 @@ def __repr__(self):
31623169
)
31633170
templates_add_for_user = bb.Route(
31643171
'templates/add_for_user',
3172+
1,
31653173
False,
31663174
AddTemplateArg_validator,
31673175
AddTemplateResult_validator,
@@ -3171,6 +3179,7 @@ def __repr__(self):
31713179
)
31723180
templates_get_for_team = bb.Route(
31733181
'templates/get_for_team',
3182+
1,
31743183
False,
31753184
GetTemplateArg_validator,
31763185
GetTemplateResult_validator,
@@ -3180,6 +3189,7 @@ def __repr__(self):
31803189
)
31813190
templates_get_for_user = bb.Route(
31823191
'templates/get_for_user',
3192+
1,
31833193
False,
31843194
GetTemplateArg_validator,
31853195
GetTemplateResult_validator,
@@ -3189,6 +3199,7 @@ def __repr__(self):
31893199
)
31903200
templates_list_for_team = bb.Route(
31913201
'templates/list_for_team',
3202+
1,
31923203
False,
31933204
bv.Void(),
31943205
ListTemplateResult_validator,
@@ -3198,6 +3209,7 @@ def __repr__(self):
31983209
)
31993210
templates_list_for_user = bb.Route(
32003211
'templates/list_for_user',
3212+
1,
32013213
False,
32023214
bv.Void(),
32033215
ListTemplateResult_validator,
@@ -3207,6 +3219,7 @@ def __repr__(self):
32073219
)
32083220
templates_remove_for_team = bb.Route(
32093221
'templates/remove_for_team',
3222+
1,
32103223
False,
32113224
RemoveTemplateArg_validator,
32123225
bv.Void(),
@@ -3216,6 +3229,7 @@ def __repr__(self):
32163229
)
32173230
templates_remove_for_user = bb.Route(
32183231
'templates/remove_for_user',
3232+
1,
32193233
False,
32203234
RemoveTemplateArg_validator,
32213235
bv.Void(),
@@ -3225,6 +3239,7 @@ def __repr__(self):
32253239
)
32263240
templates_update_for_team = bb.Route(
32273241
'templates/update_for_team',
3242+
1,
32283243
False,
32293244
UpdateTemplateArg_validator,
32303245
UpdateTemplateResult_validator,
@@ -3234,6 +3249,7 @@ def __repr__(self):
32343249
)
32353250
templates_update_for_user = bb.Route(
32363251
'templates/update_for_user',
3252+
1,
32373253
False,
32383254
UpdateTemplateArg_validator,
32393255
UpdateTemplateResult_validator,

dropbox/file_requests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,6 +1391,7 @@ def __repr__(self):
13911391

13921392
create = bb.Route(
13931393
'create',
1394+
1,
13941395
False,
13951396
CreateFileRequestArgs_validator,
13961397
FileRequest_validator,
@@ -1400,6 +1401,7 @@ def __repr__(self):
14001401
)
14011402
get = bb.Route(
14021403
'get',
1404+
1,
14031405
False,
14041406
GetFileRequestArgs_validator,
14051407
FileRequest_validator,
@@ -1409,6 +1411,7 @@ def __repr__(self):
14091411
)
14101412
list = bb.Route(
14111413
'list',
1414+
1,
14121415
False,
14131416
bv.Void(),
14141417
ListFileRequestsResult_validator,
@@ -1418,6 +1421,7 @@ def __repr__(self):
14181421
)
14191422
update = bb.Route(
14201423
'update',
1424+
1,
14211425
False,
14221426
UpdateFileRequestArgs_validator,
14231427
FileRequest_validator,

0 commit comments

Comments
 (0)