Skip to content

Commit f4ca18f

Browse files
rogebrdjiuyangzhao
authored andcommitted
Automated Spec Update
f98930849a4408d27e49c1bab6ce3abcc665eacb Change Notes: File Namespace: - Add SearchOrderBy unioin - Add SearchMatchTypeV2 union - Update SearchOptions to include order_by - Update SearchMatchV2 to include match_type Team Audit Log Namespace: - Add TeamBrandingPolicy union - Add TeamBrandingPolicyChangedDetails struct - Add TeamBrandingPolicyChangedType struct - Update EventDetails to include team_branding_policy_changed_details - Update EventType to include team_branding_policy_changed - Update EventTypeArg to include team_branding_policy_changed Team Reports Namespace: - Deprecate reports/get_storage - Deprecate reports/get_activity - Deprecate reports/get_membership - Deprecate reports/get_devices
1 parent c9edff2 commit f4ca18f

File tree

6 files changed

+558
-11
lines changed

6 files changed

+558
-11
lines changed

dropbox/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,7 +2612,7 @@ def files_search_v2(self,
26122612
query,
26132613
options=None,
26142614
match_field_options=None,
2615-
include_highlights=False):
2615+
include_highlights=None):
26162616
"""
26172617
Searches for files and folders. Note: :meth:`files_search_v2` along with
26182618
:meth:`files_search_continue_v2` can only be used to retrieve a maximum
@@ -2626,7 +2626,7 @@ def files_search_v2(self,
26262626
:param Nullable options: Options for more targeted search results.
26272627
:param Nullable match_field_options: Options for search results match
26282628
fields.
2629-
:param bool include_highlights: Deprecated and moved this option to
2629+
:param Nullable include_highlights: Deprecated and moved this option to
26302630
SearchMatchFieldOptions.
26312631
:rtype: :class:`dropbox.files.SearchV2Result`
26322632
:raises: :class:`.exceptions.ApiError`

dropbox/base_team.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,6 +1923,10 @@ def team_reports_get_activity(self,
19231923
If this raises, ApiError will contain:
19241924
:class:`dropbox.team.DateRangeError`
19251925
"""
1926+
warnings.warn(
1927+
'reports/get_activity is deprecated.',
1928+
DeprecationWarning,
1929+
)
19261930
arg = team.DateRange(start_date,
19271931
end_date)
19281932
r = self.request(
@@ -1949,6 +1953,10 @@ def team_reports_get_devices(self,
19491953
If this raises, ApiError will contain:
19501954
:class:`dropbox.team.DateRangeError`
19511955
"""
1956+
warnings.warn(
1957+
'reports/get_devices is deprecated.',
1958+
DeprecationWarning,
1959+
)
19521960
arg = team.DateRange(start_date,
19531961
end_date)
19541962
r = self.request(
@@ -1975,6 +1983,10 @@ def team_reports_get_membership(self,
19751983
If this raises, ApiError will contain:
19761984
:class:`dropbox.team.DateRangeError`
19771985
"""
1986+
warnings.warn(
1987+
'reports/get_membership is deprecated.',
1988+
DeprecationWarning,
1989+
)
19781990
arg = team.DateRange(start_date,
19791991
end_date)
19801992
r = self.request(
@@ -2001,6 +2013,10 @@ def team_reports_get_storage(self,
20012013
If this raises, ApiError will contain:
20022014
:class:`dropbox.team.DateRangeError`
20032015
"""
2016+
warnings.warn(
2017+
'reports/get_storage is deprecated.',
2018+
DeprecationWarning,
2019+
)
20042020
arg = team.DateRange(start_date,
20052021
end_date)
20062022
r = self.request(

0 commit comments

Comments
 (0)