@@ -41,13 +41,13 @@ def team_devices_list_member_devices(self,
41
41
"""
42
42
List all device sessions of a team's member.
43
43
44
- :param str team_member_id: The team's member id
44
+ :param str team_member_id: The team's member id.
45
45
:param bool include_web_sessions: Whether to list web sessions of the
46
- team's member
46
+ team's member.
47
47
:param bool include_desktop_clients: Whether to list linked desktop
48
- devices of the team's member
48
+ devices of the team's member.
49
49
:param bool include_mobile_clients: Whether to list linked mobile
50
- devices of the team's member
50
+ devices of the team's member.
51
51
:rtype: :class:`dropbox.team.ListMemberDevicesResult`
52
52
:raises: :class:`dropbox.exceptions.ApiError`
53
53
@@ -78,13 +78,13 @@ def team_devices_list_members_devices(self,
78
78
:meth:`team_devices_list_members_devices` the cursor shouldn't be
79
79
passed. Then, if the result of the call includes a cursor, the
80
80
following requests should include the received cursors in order to
81
- receive the next sub list of team devices
81
+ receive the next sub list of team devices.
82
82
:param bool include_web_sessions: Whether to list web sessions of the
83
- team members
83
+ team members.
84
84
:param bool include_desktop_clients: Whether to list desktop clients of
85
- the team members
85
+ the team members.
86
86
:param bool include_mobile_clients: Whether to list mobile clients of
87
- the team members
87
+ the team members.
88
88
:rtype: :class:`dropbox.team.ListMembersDevicesResult`
89
89
:raises: :class:`dropbox.exceptions.ApiError`
90
90
@@ -115,13 +115,13 @@ def team_devices_list_team_devices(self,
115
115
:meth:`team_devices_list_team_devices` the cursor shouldn't be
116
116
passed. Then, if the result of the call includes a cursor, the
117
117
following requests should include the received cursors in order to
118
- receive the next sub list of team devices
118
+ receive the next sub list of team devices.
119
119
:param bool include_web_sessions: Whether to list web sessions of the
120
- team members
120
+ team members.
121
121
:param bool include_desktop_clients: Whether to list desktop clients of
122
- the team members
122
+ the team members.
123
123
:param bool include_mobile_clients: Whether to list mobile clients of
124
- the team members
124
+ the team members.
125
125
:rtype: :class:`dropbox.team.ListTeamDevicesResult`
126
126
:raises: :class:`dropbox.exceptions.ApiError`
127
127
@@ -147,7 +147,7 @@ def team_devices_list_team_devices(self,
147
147
def team_devices_revoke_device_session (self ,
148
148
arg ):
149
149
"""
150
- Revoke a device session of a team's member
150
+ Revoke a device session of a team's member.
151
151
152
152
:type arg: :class:`dropbox.team.RevokeDeviceSessionArg`
153
153
:rtype: None
@@ -167,7 +167,7 @@ def team_devices_revoke_device_session(self,
167
167
def team_devices_revoke_device_session_batch (self ,
168
168
revoke_devices ):
169
169
"""
170
- Revoke a list of device sessions of team members
170
+ Revoke a list of device sessions of team members.
171
171
172
172
:type revoke_devices: list
173
173
:rtype: :class:`dropbox.team.RevokeDeviceSessionBatchResult`
@@ -558,7 +558,7 @@ def team_linked_apps_list_member_linked_apps(self,
558
558
List all linked applications of the team member. Note, this endpoint
559
559
does not list any team-linked applications.
560
560
561
- :param str team_member_id: The team member id
561
+ :param str team_member_id: The team member id.
562
562
:rtype: :class:`dropbox.team.ListMemberAppsResult`
563
563
:raises: :class:`dropbox.exceptions.ApiError`
564
564
@@ -584,7 +584,7 @@ def team_linked_apps_list_members_linked_apps(self,
584
584
:meth:`team_linked_apps_list_members_linked_apps` the cursor
585
585
shouldn't be passed. Then, if the result of the call includes a
586
586
cursor, the following requests should include the received cursors
587
- in order to receive the next sub list of the team applications
587
+ in order to receive the next sub list of the team applications.
588
588
:rtype: :class:`dropbox.team.ListMembersAppsResult`
589
589
:raises: :class:`dropbox.exceptions.ApiError`
590
590
@@ -610,7 +610,7 @@ def team_linked_apps_list_team_linked_apps(self,
610
610
:meth:`team_linked_apps_list_team_linked_apps` the cursor shouldn't
611
611
be passed. Then, if the result of the call includes a cursor, the
612
612
following requests should include the received cursors in order to
613
- receive the next sub list of the team applications
613
+ receive the next sub list of the team applications.
614
614
:rtype: :class:`dropbox.team.ListTeamAppsResult`
615
615
:raises: :class:`dropbox.exceptions.ApiError`
616
616
@@ -635,12 +635,13 @@ def team_linked_apps_revoke_linked_app(self,
635
635
team_member_id ,
636
636
keep_app_folder = True ):
637
637
"""
638
- Revoke a linked application of the team member
638
+ Revoke a linked application of the team member.
639
639
640
- :param str app_id: The application's unique id
641
- :param str team_member_id: The unique id of the member owning the device
640
+ :param str app_id: The application's unique id.
641
+ :param str team_member_id: The unique id of the member owning the
642
+ device.
642
643
:param bool keep_app_folder: Whether to keep the application dedicated
643
- folder (in case the application uses one)
644
+ folder (in case the application uses one).
644
645
:rtype: None
645
646
:raises: :class:`dropbox.exceptions.ApiError`
646
647
@@ -661,7 +662,7 @@ def team_linked_apps_revoke_linked_app(self,
661
662
def team_linked_apps_revoke_linked_app_batch (self ,
662
663
revoke_linked_app ):
663
664
"""
664
- Revoke a list of linked applications of the team members
665
+ Revoke a list of linked applications of the team members.
665
666
666
667
:type revoke_linked_app: list
667
668
:rtype: :class:`dropbox.team.RevokeLinkedAppBatchResult`
@@ -679,6 +680,72 @@ def team_linked_apps_revoke_linked_app_batch(self,
679
680
)
680
681
return r
681
682
683
+ def team_member_space_limits_get_custom_quota (self ,
684
+ users ):
685
+ """
686
+ Get users custom quota. Returns none as the custom quota if none was
687
+ set. A maximum of 1000 members can be specified in a single call.
688
+
689
+ :param list users: List of users.
690
+ :rtype: list
691
+ :raises: :class:`dropbox.exceptions.ApiError`
692
+
693
+ If this raises, ApiError.reason is of type:
694
+ :class:`dropbox.team.CustomQuotaError`
695
+ """
696
+ arg = team .CustomQuotaUsersArg (users )
697
+ r = self .request (
698
+ team .member_space_limits_get_custom_quota ,
699
+ 'team' ,
700
+ arg ,
701
+ None ,
702
+ )
703
+ return r
704
+
705
+ def team_member_space_limits_remove_custom_quota (self ,
706
+ users ):
707
+ """
708
+ Remove users custom quota. A maximum of 1000 members can be specified in
709
+ a single call.
710
+
711
+ :param list users: List of users.
712
+ :rtype: list
713
+ :raises: :class:`dropbox.exceptions.ApiError`
714
+
715
+ If this raises, ApiError.reason is of type:
716
+ :class:`dropbox.team.CustomQuotaError`
717
+ """
718
+ arg = team .CustomQuotaUsersArg (users )
719
+ r = self .request (
720
+ team .member_space_limits_remove_custom_quota ,
721
+ 'team' ,
722
+ arg ,
723
+ None ,
724
+ )
725
+ return r
726
+
727
+ def team_member_space_limits_set_custom_quota (self ,
728
+ users_and_quotas ):
729
+ """
730
+ Set users custom quota. Custom quota has to be at least 25GB. A maximum
731
+ of 1000 members can be specified in a single call.
732
+
733
+ :param list users_and_quotas: List of users and their custom quotas.
734
+ :rtype: list
735
+ :raises: :class:`dropbox.exceptions.ApiError`
736
+
737
+ If this raises, ApiError.reason is of type:
738
+ :class:`dropbox.team.CustomQuotaError`
739
+ """
740
+ arg = team .SetCustomQuotaArg (users_and_quotas )
741
+ r = self .request (
742
+ team .member_space_limits_set_custom_quota ,
743
+ 'team' ,
744
+ arg ,
745
+ None ,
746
+ )
747
+ return r
748
+
682
749
def team_members_add (self ,
683
750
new_members ,
684
751
force_async = False ):
@@ -715,7 +782,7 @@ def team_members_add_job_status_get(self,
715
782
"""
716
783
Once an async_job_id is returned from :meth:`team_members_add` , use
717
784
this to poll the status of the asynchronous request. Permission : Team
718
- member management
785
+ member management.
719
786
720
787
:param str async_job_id: Id of the asynchronous job. This is the value
721
788
of a response returned from the method that launched the job.
@@ -762,7 +829,7 @@ def team_members_list(self,
762
829
limit = 1000 ,
763
830
include_removed = False ):
764
831
"""
765
- Lists members of a team. Permission : Team information
832
+ Lists members of a team. Permission : Team information.
766
833
767
834
:param long limit: Number of results to return per call.
768
835
:param bool include_removed: Whether to return removed members.
@@ -786,7 +853,8 @@ def team_members_list_continue(self,
786
853
cursor ):
787
854
"""
788
855
Once a cursor has been retrieved from :meth:`team_members_list`, use
789
- this to paginate through all team members. Permission : Team information
856
+ this to paginate through all team members. Permission : Team
857
+ information.
790
858
791
859
:param str cursor: Indicates from what point to get the next set of
792
860
members.
@@ -882,7 +950,7 @@ def team_members_remove_job_status_get(self,
882
950
"""
883
951
Once an async_job_id is returned from :meth:`team_members_remove` , use
884
952
this to poll the status of the asynchronous request. Permission : Team
885
- member management
953
+ member management.
886
954
887
955
:param str async_job_id: Id of the asynchronous job. This is the value
888
956
of a response returned from the method that launched the job.
@@ -930,7 +998,8 @@ def team_members_set_admin_permissions(self,
930
998
user ,
931
999
new_role ):
932
1000
"""
933
- Updates a team member's permissions. Permission : Team member management
1001
+ Updates a team member's permissions. Permission : Team member
1002
+ management.
934
1003
935
1004
:param user: Identity of user whose role will be set.
936
1005
:type user: :class:`dropbox.team.UserSelectorArg`
@@ -960,7 +1029,7 @@ def team_members_set_profile(self,
960
1029
new_surname = None ,
961
1030
new_persistent_id = None ):
962
1031
"""
963
- Updates a team member's profile. Permission : Team member management
1032
+ Updates a team member's profile. Permission : Team member management.
964
1033
965
1034
:param user: Identity of user whose profile will be set.
966
1035
:type user: :class:`dropbox.team.UserSelectorArg`
@@ -1042,6 +1111,52 @@ def team_members_unsuspend(self,
1042
1111
)
1043
1112
return None
1044
1113
1114
+ def team_namespaces_list (self ,
1115
+ limit = 1000 ):
1116
+ """
1117
+ Returns a list of all team-accessible namespaces. This list includes
1118
+ team folders, shared folders containing team members, team members' home
1119
+ namespaces, and team members' app folders. Home namespaces and app
1120
+ folders are always owned by this team or members of the team, but shared
1121
+ folders may be owned by other users or other teams. Duplicates may occur
1122
+ in the list.
1123
+
1124
+ :param long limit: Specifying a value here has no effect.
1125
+ :rtype: :class:`dropbox.team.TeamNamespacesListResult`
1126
+ """
1127
+ arg = team .TeamNamespacesListArg (limit )
1128
+ r = self .request (
1129
+ team .namespaces_list ,
1130
+ 'team' ,
1131
+ arg ,
1132
+ None ,
1133
+ )
1134
+ return r
1135
+
1136
+ def team_namespaces_list_continue (self ,
1137
+ cursor ):
1138
+ """
1139
+ Once a cursor has been retrieved from :meth:`team_namespaces_list`, use
1140
+ this to paginate through all team-accessible namespaces. Duplicates may
1141
+ occur in the list.
1142
+
1143
+ :param str cursor: Indicates from what point to get the next set of
1144
+ team-accessible namespaces.
1145
+ :rtype: :class:`dropbox.team.TeamNamespacesListResult`
1146
+ :raises: :class:`dropbox.exceptions.ApiError`
1147
+
1148
+ If this raises, ApiError.reason is of type:
1149
+ :class:`dropbox.team.TeamNamespacesListContinueError`
1150
+ """
1151
+ arg = team .TeamNamespacesListContinueArg (cursor )
1152
+ r = self .request (
1153
+ team .namespaces_list_continue ,
1154
+ 'team' ,
1155
+ arg ,
1156
+ None ,
1157
+ )
1158
+ return r
1159
+
1045
1160
def team_properties_template_add (self ,
1046
1161
name ,
1047
1162
description ,
@@ -1151,8 +1266,8 @@ def team_reports_get_activity(self,
1151
1266
"""
1152
1267
Retrieves reporting data about a team's user activity.
1153
1268
1154
- :param Nullable start_date: Optional starting date (inclusive)
1155
- :param Nullable end_date: Optional ending date (exclusive)
1269
+ :param Nullable start_date: Optional starting date (inclusive).
1270
+ :param Nullable end_date: Optional ending date (exclusive).
1156
1271
:rtype: :class:`dropbox.team.GetActivityReport`
1157
1272
:raises: :class:`dropbox.exceptions.ApiError`
1158
1273
@@ -1175,8 +1290,8 @@ def team_reports_get_devices(self,
1175
1290
"""
1176
1291
Retrieves reporting data about a team's linked devices.
1177
1292
1178
- :param Nullable start_date: Optional starting date (inclusive)
1179
- :param Nullable end_date: Optional ending date (exclusive)
1293
+ :param Nullable start_date: Optional starting date (inclusive).
1294
+ :param Nullable end_date: Optional ending date (exclusive).
1180
1295
:rtype: :class:`dropbox.team.GetDevicesReport`
1181
1296
:raises: :class:`dropbox.exceptions.ApiError`
1182
1297
@@ -1199,8 +1314,8 @@ def team_reports_get_membership(self,
1199
1314
"""
1200
1315
Retrieves reporting data about a team's membership.
1201
1316
1202
- :param Nullable start_date: Optional starting date (inclusive)
1203
- :param Nullable end_date: Optional ending date (exclusive)
1317
+ :param Nullable start_date: Optional starting date (inclusive).
1318
+ :param Nullable end_date: Optional ending date (exclusive).
1204
1319
:rtype: :class:`dropbox.team.GetMembershipReport`
1205
1320
:raises: :class:`dropbox.exceptions.ApiError`
1206
1321
@@ -1223,8 +1338,8 @@ def team_reports_get_storage(self,
1223
1338
"""
1224
1339
Retrieves reporting data about a team's storage usage.
1225
1340
1226
- :param Nullable start_date: Optional starting date (inclusive)
1227
- :param Nullable end_date: Optional ending date (exclusive)
1341
+ :param Nullable start_date: Optional starting date (inclusive).
1342
+ :param Nullable end_date: Optional ending date (exclusive).
1228
1343
:rtype: :class:`dropbox.team.GetStorageReport`
1229
1344
:raises: :class:`dropbox.exceptions.ApiError`
1230
1345
0 commit comments