Skip to content

Commit 69959f5

Browse files
committed
Updated spec
Files namespace: - Added too_many_write_operations in UploadSessionFinishError. - Removed PathRootError and invalid_path_root in LookupError. (breaking change) - Added team_folder to WriteError. Sharing namespace: - Added access_level to LinkSettings. - Added change_access_level to LinkAction. - Added access_level and audience_restricting_shared_folder to SharedContentLinkMetadataBase. - Added access_type and expected_link_metadata to SharedFileMetadata. - Added path to ParentFolderAccessInfo. - Added actions to UpdateFolderPolicyArg. - Added team_folder to UpdateFolderPolicyError. Stone Cfg namespace: - Added allow_app_folder_app attribute. - Added takes_path_root attribute. Team namespace: - Added route token/get_authenticated_admin. - Added route features/get_values. - Added expires to ActiveWebSession. - Added cursor and has_more to TeamFolderListResult for pagination. - Added route team_folder/list/continue. - Made member_given_name and member_surname optional in MemberAddArg. (breaking change) User namepsace: - Moved AccountType from user namespace to user_common namespace. Added TeamLog namespace.
1 parent 2b2b8bf commit 69959f5

21 files changed

+41721
-867
lines changed

docs/moduledoc.rst

+16
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ SDK Documentation
2525
:special-members: __init__
2626
:undoc-members:
2727

28+
:mod:`dropbox.auth` -- Auth
29+
============================================
30+
.. automodule:: dropbox.auth
31+
:members:
32+
:show-inheritance:
33+
:special-members: __init__
34+
:undoc-members:
35+
2836
:mod:`dropbox.files` -- Files
2937
============================================
3038
.. automodule:: dropbox.files
@@ -56,6 +64,14 @@ SDK Documentation
5664
:special-members: __init__
5765
:undoc-members:
5866

67+
:mod:`dropbox.team_log` -- Team Log
68+
============================================
69+
.. automodule:: dropbox.team_log
70+
:members:
71+
:show-inheritance:
72+
:special-members: __init__
73+
:undoc-members:
74+
5975
:mod:`dropbox.users` -- Users
6076
============================================
6177
.. automodule:: dropbox.users

dropbox/async.py

+1
Original file line numberDiff line numberDiff line change
@@ -307,3 +307,4 @@ def __repr__(self):
307307

308308
ROUTES = {
309309
}
310+

dropbox/auth.py

+1
Original file line numberDiff line numberDiff line change
@@ -720,3 +720,4 @@ def __repr__(self):
720720
'token/from_oauth1': token_from_oauth1,
721721
'token/revoke': token_revoke,
722722
}
723+

dropbox/base.py

+132-50
Large diffs are not rendered by default.

dropbox/base_team.py

+72-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# Auto-generated by Stone, do not modify.
2-
# flake8: noqa
3-
# pylint: skip-file
42

53
from abc import ABCMeta, abstractmethod
64
import warnings
@@ -14,8 +12,10 @@
1412
sharing,
1513
team,
1614
team_common,
15+
team_log,
1716
team_policies,
1817
users,
18+
users_common,
1919
)
2020

2121

@@ -181,6 +181,31 @@ def team_devices_revoke_device_session_batch(self,
181181
)
182182
return r
183183

184+
def team_features_get_values(self,
185+
features):
186+
"""
187+
Get the values for one or more featues. This route allows you to check
188+
your account's capability for what feature you can access or what value
189+
you have for certain features. Permission : Team information.
190+
191+
:param list features: A list of features in
192+
:class:`dropbox.team.Feature`. If the list is empty, this route will
193+
return :class:`dropbox.team.FeaturesGetValuesBatchError`.
194+
:rtype: :class:`dropbox.team.FeaturesGetValuesBatchResult`
195+
:raises: :class:`dropbox.exceptions.ApiError`
196+
197+
If this raises, ApiError.reason is of type:
198+
:class:`dropbox.team.FeaturesGetValuesBatchError`
199+
"""
200+
arg = team.FeaturesGetValuesBatchArg(features)
201+
r = self.request(
202+
team.features_get_values,
203+
'team',
204+
arg,
205+
None,
206+
)
207+
return r
208+
184209
def team_get_info(self):
185210
"""
186211
Retrieves information about a team.
@@ -1335,6 +1360,30 @@ def team_team_folder_list(self,
13351360
)
13361361
return r
13371362

1363+
def team_team_folder_list_continue(self,
1364+
cursor):
1365+
"""
1366+
Once a cursor has been retrieved from :meth:`team_team_folder_list`, use
1367+
this to paginate through all team folders. Permission : Team member file
1368+
access.
1369+
1370+
:param str cursor: Indicates from what point to get the next set of team
1371+
folders.
1372+
:rtype: :class:`dropbox.team.TeamFolderListResult`
1373+
:raises: :class:`dropbox.exceptions.ApiError`
1374+
1375+
If this raises, ApiError.reason is of type:
1376+
:class:`dropbox.team.TeamFolderListContinueError`
1377+
"""
1378+
arg = team.TeamFolderListContinueArg(cursor)
1379+
r = self.request(
1380+
team.team_folder_list_continue,
1381+
'team',
1382+
arg,
1383+
None,
1384+
)
1385+
return r
1386+
13381387
def team_team_folder_permanently_delete(self,
13391388
team_folder_id):
13401389
"""
@@ -1376,3 +1425,24 @@ def team_team_folder_rename(self,
13761425
None,
13771426
)
13781427
return r
1428+
1429+
def team_token_get_authenticated_admin(self):
1430+
"""
1431+
Returns the member profile of the admin who generated the team access
1432+
token used to make the call.
1433+
1434+
:rtype: :class:`dropbox.team.TokenGetAuthenticatedAdminResult`
1435+
:raises: :class:`dropbox.exceptions.ApiError`
1436+
1437+
If this raises, ApiError.reason is of type:
1438+
:class:`dropbox.team.TokenGetAuthenticatedAdminError`
1439+
"""
1440+
arg = None
1441+
r = self.request(
1442+
team.token_get_authenticated_admin,
1443+
'team',
1444+
arg,
1445+
None,
1446+
)
1447+
return r
1448+

dropbox/common.py

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
EmailAddress_validator = bv.String(max_length=255, pattern=u"^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*.[A-Za-z]{2,15}$")
1818
NamePart_validator = bv.String(min_length=1, max_length=100, pattern=u'[^/:?*<>"|]*')
1919
NamespaceId_validator = bv.String(pattern=u'[-_0-9a-zA-Z:]+')
20+
SessionId_validator = bv.String()
2021
SharedFolderId_validator = NamespaceId_validator
2122
ROUTES = {
2223
}
24+

0 commit comments

Comments
 (0)