Skip to content

Commit 74e51e1

Browse files
authored
Automated Spec Update (#330)
9303b45bbfa3d1d3de75a2da609ac47c179d18ba Co-authored-by: DropboxBot <[email protected]>
1 parent 0968271 commit 74e51e1

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

dropbox/base.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ def auth_token_from_oauth1(self,
9090

9191
def auth_token_revoke(self):
9292
"""
93-
Disables the access token used to authenticate the call.
93+
Disables the access token used to authenticate the call. If there is a
94+
corresponding refresh token for the access token, this disables that
95+
refresh token, as well as any other access tokens for that refresh
96+
token.
9497
9598
:rtype: None
9699
"""
@@ -1317,9 +1320,10 @@ def files_download_zip(self,
13171320
path):
13181321
"""
13191322
Download a folder from the user's Dropbox, as a zip file. The folder
1320-
must be less than 20 GB in size and have fewer than 10,000 total files.
1321-
The input cannot be a single file. Any single file must be less than 4GB
1322-
in size.
1323+
must be less than 20 GB in size and any single file within must be less
1324+
than 4 GB in size. The resulting zip must have fewer than 10,000 total
1325+
file and folder entries, including the top level folder. The input
1326+
cannot be a single file.
13231327
13241328
:param str path: The path of the folder to download.
13251329
:rtype: (:class:`dropbox.files.DownloadZipResult`,
@@ -1349,9 +1353,10 @@ def files_download_zip_to_file(self,
13491353
path):
13501354
"""
13511355
Download a folder from the user's Dropbox, as a zip file. The folder
1352-
must be less than 20 GB in size and have fewer than 10,000 total files.
1353-
The input cannot be a single file. Any single file must be less than 4GB
1354-
in size.
1356+
must be less than 20 GB in size and any single file within must be less
1357+
than 4 GB in size. The resulting zip must have fewer than 10,000 total
1358+
file and folder entries, including the top level folder. The input
1359+
cannot be a single file.
13551360
13561361
:param str download_path: Path on local machine to save file.
13571362
:param str path: The path of the folder to download.

dropbox/team_log.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,6 +1569,8 @@ class AdminRole(bb.Union):
15691569

15701570
_catch_all = 'other'
15711571
# Attribute is overwritten below the class definition
1572+
billing_admin = None
1573+
# Attribute is overwritten below the class definition
15721574
limited_admin = None
15731575
# Attribute is overwritten below the class definition
15741576
member_only = None
@@ -1581,6 +1583,14 @@ class AdminRole(bb.Union):
15811583
# Attribute is overwritten below the class definition
15821584
other = None
15831585

1586+
def is_billing_admin(self):
1587+
"""
1588+
Check if the union tag is ``billing_admin``.
1589+
1590+
:rtype: bool
1591+
"""
1592+
return self._tag == 'billing_admin'
1593+
15841594
def is_limited_admin(self):
15851595
"""
15861596
Check if the union tag is ``limited_admin``.
@@ -69352,13 +69362,15 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
6935269362
AdminAlertingTriggeredAlertType._all_field_names_ = set(['description'])
6935369363
AdminAlertingTriggeredAlertType._all_fields_ = [('description', AdminAlertingTriggeredAlertType.description.validator)]
6935469364

69365+
AdminRole._billing_admin_validator = bv.Void()
6935569366
AdminRole._limited_admin_validator = bv.Void()
6935669367
AdminRole._member_only_validator = bv.Void()
6935769368
AdminRole._support_admin_validator = bv.Void()
6935869369
AdminRole._team_admin_validator = bv.Void()
6935969370
AdminRole._user_management_admin_validator = bv.Void()
6936069371
AdminRole._other_validator = bv.Void()
6936169372
AdminRole._tagmap = {
69373+
'billing_admin': AdminRole._billing_admin_validator,
6936269374
'limited_admin': AdminRole._limited_admin_validator,
6936369375
'member_only': AdminRole._member_only_validator,
6936469376
'support_admin': AdminRole._support_admin_validator,
@@ -69367,6 +69379,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
6936769379
'other': AdminRole._other_validator,
6936869380
}
6936969381

69382+
AdminRole.billing_admin = AdminRole('billing_admin')
6937069383
AdminRole.limited_admin = AdminRole('limited_admin')
6937169384
AdminRole.member_only = AdminRole('member_only')
6937269385
AdminRole.support_admin = AdminRole('support_admin')

0 commit comments

Comments
 (0)