@@ -205,6 +205,9 @@ def file_properties_templates_update_for_team(self,
205
205
# ------------------------------------------
206
206
# Routes in files namespace
207
207
208
+ # ------------------------------------------
209
+ # Routes in openid namespace
210
+
208
211
# ------------------------------------------
209
212
# Routes in paper namespace
210
213
@@ -2559,6 +2562,123 @@ def team_reports_get_storage(self,
2559
2562
)
2560
2563
return r
2561
2564
2565
+ def team_sharing_allowlist_add (self ,
2566
+ domains = None ,
2567
+ emails = None ):
2568
+ """
2569
+ Endpoint adds Approve List entries. Changes are effective immediately.
2570
+ Changes are committed in transaction. In case of single validation error
2571
+ - all entries are rejected. Valid domains (RFC-1034/5) and emails
2572
+ (RFC-5322/822) are accepted. Added entries cannot overflow limit of
2573
+ 10000 entries per team. Maximum 100 entries per call is allowed.
2574
+
2575
+ Route attributes:
2576
+ scope: team_info.write
2577
+
2578
+ :param Nullable[List[str]] domains: List of domains represented by valid
2579
+ string representation (RFC-1034/5).
2580
+ :param Nullable[List[str]] emails: List of emails represented by valid
2581
+ string representation (RFC-5322/822).
2582
+ :rtype: :class:`dropbox.team.SharingAllowlistAddResponse`
2583
+ :raises: :class:`.exceptions.ApiError`
2584
+
2585
+ If this raises, ApiError will contain:
2586
+ :class:`dropbox.team.SharingAllowlistAddError`
2587
+ """
2588
+ arg = team .SharingAllowlistAddArgs (domains ,
2589
+ emails )
2590
+ r = self .request (
2591
+ team .sharing_allowlist_add ,
2592
+ 'team' ,
2593
+ arg ,
2594
+ None ,
2595
+ )
2596
+ return r
2597
+
2598
+ def team_sharing_allowlist_list (self ,
2599
+ limit = 1000 ):
2600
+ """
2601
+ Lists Approve List entries for given team, from newest to oldest,
2602
+ returning up to `limit` entries at a time. If there are more than
2603
+ `limit` entries associated with the current team, more can be fetched by
2604
+ passing the returned `cursor` to
2605
+ :meth:`team_sharing_allowlist_list_continue`.
2606
+
2607
+ Route attributes:
2608
+ scope: team_info.read
2609
+
2610
+ :param int limit: The number of entries to fetch at one time.
2611
+ :rtype: :class:`dropbox.team.SharingAllowlistListResponse`
2612
+ """
2613
+ arg = team .SharingAllowlistListArg (limit )
2614
+ r = self .request (
2615
+ team .sharing_allowlist_list ,
2616
+ 'team' ,
2617
+ arg ,
2618
+ None ,
2619
+ )
2620
+ return r
2621
+
2622
+ def team_sharing_allowlist_list_continue (self ,
2623
+ cursor ):
2624
+ """
2625
+ Lists entries associated with given team, starting from a the cursor.
2626
+ See :meth:`team_sharing_allowlist_list`.
2627
+
2628
+ Route attributes:
2629
+ scope: team_info.read
2630
+
2631
+ :param str cursor: The cursor returned from a previous call to
2632
+ :meth:`team_sharing_allowlist_list` or
2633
+ :meth:`team_sharing_allowlist_list_continue`.
2634
+ :rtype: :class:`dropbox.team.SharingAllowlistListResponse`
2635
+ :raises: :class:`.exceptions.ApiError`
2636
+
2637
+ If this raises, ApiError will contain:
2638
+ :class:`dropbox.team.SharingAllowlistListContinueError`
2639
+ """
2640
+ arg = team .SharingAllowlistListContinueArg (cursor )
2641
+ r = self .request (
2642
+ team .sharing_allowlist_list_continue ,
2643
+ 'team' ,
2644
+ arg ,
2645
+ None ,
2646
+ )
2647
+ return r
2648
+
2649
+ def team_sharing_allowlist_remove (self ,
2650
+ domains = None ,
2651
+ emails = None ):
2652
+ """
2653
+ Endpoint removes Approve List entries. Changes are effective
2654
+ immediately. Changes are committed in transaction. In case of single
2655
+ validation error - all entries are rejected. Valid domains (RFC-1034/5)
2656
+ and emails (RFC-5322/822) are accepted. Entries being removed have to be
2657
+ present on the list. Maximum 1000 entries per call is allowed.
2658
+
2659
+ Route attributes:
2660
+ scope: team_info.write
2661
+
2662
+ :param Nullable[List[str]] domains: List of domains represented by valid
2663
+ string representation (RFC-1034/5).
2664
+ :param Nullable[List[str]] emails: List of emails represented by valid
2665
+ string representation (RFC-5322/822).
2666
+ :rtype: :class:`dropbox.team.SharingAllowlistRemoveResponse`
2667
+ :raises: :class:`.exceptions.ApiError`
2668
+
2669
+ If this raises, ApiError will contain:
2670
+ :class:`dropbox.team.SharingAllowlistRemoveError`
2671
+ """
2672
+ arg = team .SharingAllowlistRemoveArgs (domains ,
2673
+ emails )
2674
+ r = self .request (
2675
+ team .sharing_allowlist_remove ,
2676
+ 'team' ,
2677
+ arg ,
2678
+ None ,
2679
+ )
2680
+ return r
2681
+
2562
2682
def team_team_folder_activate (self ,
2563
2683
team_folder_id ):
2564
2684
"""
0 commit comments