|
1 | 1 | # Auto-generated by Stone, do not modify.
|
2 |
| -# flake8: noqa |
3 |
| -# pylint: skip-file |
4 | 2 |
|
5 | 3 | from abc import ABCMeta, abstractmethod
|
6 | 4 | import warnings
|
|
14 | 12 | sharing,
|
15 | 13 | team,
|
16 | 14 | team_common,
|
| 15 | + team_log, |
17 | 16 | team_policies,
|
18 | 17 | users,
|
| 18 | + users_common, |
19 | 19 | )
|
20 | 20 |
|
21 | 21 |
|
@@ -181,6 +181,31 @@ def team_devices_revoke_device_session_batch(self,
|
181 | 181 | )
|
182 | 182 | return r
|
183 | 183 |
|
| 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 | + |
184 | 209 | def team_get_info(self):
|
185 | 210 | """
|
186 | 211 | Retrieves information about a team.
|
@@ -1335,6 +1360,30 @@ def team_team_folder_list(self,
|
1335 | 1360 | )
|
1336 | 1361 | return r
|
1337 | 1362 |
|
| 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 | + |
1338 | 1387 | def team_team_folder_permanently_delete(self,
|
1339 | 1388 | team_folder_id):
|
1340 | 1389 | """
|
@@ -1376,3 +1425,24 @@ def team_team_folder_rename(self,
|
1376 | 1425 | None,
|
1377 | 1426 | )
|
1378 | 1427 | 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 | + |
0 commit comments