Skip to content

Commit fb80ea3

Browse files
authored
Automated Spec Update (dropbox#378)
e57f8a4da1b070bed3ac5d4d3ec325fcd3630686 Change Notes: sharing_files Namespace - Update Comments sharing_folders Namespace - Update Comments team_folders Namespace - Update Comments team_log_generated Namespace - Add ExternalDriveBackupPolicy union - Add ExternalDriveBackupPolicyChangedDetails and ExternalDriveBackupPolicyChangedType structs - Update EventDetails union to include external_drive_backup_policy_changed_details - Update EventType union to include external_drive_backup_policy_changed - Update EventTypeArg union to include external_drive_backup_policy_changed team_policies Namespace - Add ExternalDriveBackupPolicyState union Co-authored-by: DropboxBot <DropboxBot@users.noreply.github.com>
1 parent 17a4f59 commit fb80ea3

File tree

6 files changed

+298
-12
lines changed

6 files changed

+298
-12
lines changed

dropbox/base.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4668,7 +4668,8 @@ def sharing_relinquish_folder_membership(self,
46684668
46694669
:param str shared_folder_id: The ID for the shared folder.
46704670
:param bool leave_a_copy: Keep a copy of the folder's contents upon
4671-
relinquishing membership.
4671+
relinquishing membership. This must be set to false when the folder
4672+
is within a team folder or another shared folder.
46724673
:rtype: :class:`dropbox.sharing.LaunchEmptyResult`
46734674
:raises: :class:`.exceptions.ApiError`
46744675
@@ -4758,8 +4759,9 @@ def sharing_remove_folder_member(self,
47584759
:type member: :class:`dropbox.sharing.MemberSelector`
47594760
:param bool leave_a_copy: If true, the removed user will keep their copy
47604761
of the folder after it's unshared, assuming it was mounted.
4761-
Otherwise, it will be removed from their Dropbox. Also, this must be
4762-
set to false when kicking a group.
4762+
Otherwise, it will be removed from their Dropbox. This must be set
4763+
to false when removing a group, or when the folder is within a team
4764+
folder or another shared folder.
47634765
:rtype: :class:`dropbox.sharing.LaunchResultBase`
47644766
:raises: :class:`.exceptions.ApiError`
47654767

dropbox/base_team.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,7 +2332,8 @@ def team_team_folder_archive(self,
23322332
force_async_off=False):
23332333
"""
23342334
Sets an active team folder's status to archived and removes all folder
2335-
and file members. Permission : Team member file access.
2335+
and file members. This endpoint cannot be used for teams that have a
2336+
shared team space. Permission : Team member file access.
23362337
23372338
:param bool force_async_off: Whether to force the archive to happen
23382339
synchronously.
@@ -2375,8 +2376,9 @@ def team_team_folder_create(self,
23752376
name,
23762377
sync_setting=None):
23772378
"""
2378-
Creates a new, active, team folder with no members. Permission : Team
2379-
member file access.
2379+
Creates a new, active, team folder with no members. This endpoint can
2380+
only be used for teams that do not already have a shared team space.
2381+
Permission : Team member file access.
23802382
23812383
:param str name: Name for the new team folder.
23822384
:param Nullable[:class:`dropbox.team.SyncSettingArg`] sync_setting: The
@@ -2464,7 +2466,8 @@ def team_team_folder_list_continue(self,
24642466
def team_team_folder_permanently_delete(self,
24652467
team_folder_id):
24662468
"""
2467-
Permanently deletes an archived team folder. Permission : Team member
2469+
Permanently deletes an archived team folder. This endpoint cannot be
2470+
used for teams that have a shared team space. Permission : Team member
24682471
file access.
24692472
24702473
:param str team_folder_id: The ID of the team folder.

dropbox/sharing.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7034,7 +7034,8 @@ class RelinquishFolderMembershipArg(bb.Struct):
70347034
:ivar sharing.RelinquishFolderMembershipArg.shared_folder_id: The ID for the
70357035
shared folder.
70367036
:ivar sharing.RelinquishFolderMembershipArg.leave_a_copy: Keep a copy of the
7037-
folder's contents upon relinquishing membership.
7037+
folder's contents upon relinquishing membership. This must be set to
7038+
false when the folder is within a team folder or another shared folder.
70387039
"""
70397040

70407041
__slots__ = [
@@ -7366,8 +7367,9 @@ class RemoveFolderMemberArg(bb.Struct):
73667367
folder.
73677368
:ivar sharing.RemoveFolderMemberArg.leave_a_copy: If true, the removed user
73687369
will keep their copy of the folder after it's unshared, assuming it was
7369-
mounted. Otherwise, it will be removed from their Dropbox. Also, this
7370-
must be set to false when kicking a group.
7370+
mounted. Otherwise, it will be removed from their Dropbox. This must be
7371+
set to false when removing a group, or when the folder is within a team
7372+
folder or another shared folder.
73717373
"""
73727374

73737375
__slots__ = [
@@ -10689,7 +10691,8 @@ class UserFileMembershipInfo(UserMembershipInfo):
1068910691
last seen timestamp.
1069010692
1069110693
:ivar sharing.UserFileMembershipInfo.time_last_seen: The UTC timestamp of
10692-
when the user has last seen the content, if they have.
10694+
when the user has last seen the content. Only populated if the user has
10695+
seen the content and the caller has a plan that includes viewer history.
1069310696
:ivar sharing.UserFileMembershipInfo.platform_type: The platform on which
1069410697
the user has last seen the content, or unknown.
1069510698
"""

0 commit comments

Comments
 (0)