Skip to content

Commit 5ef1a2a

Browse files
authored
Remove Stone Submodule (#217)
* Remove Stone Submodule - Remove Stone as submodule and pin in requirements.txt - Pin Stone to major version 1.* until work can be done to upgrade to 2.* - Update Spec Files Namespace Add internal_error to SearchError union. Add locked to LookupError union. Add cant_move_into_vault to RelocationError union. Add MoveIntoVaultError union. Add SearchMatchFieldOptions struct. Add optional match_field_options to SearchV2Arg struct. Doc/example changes. Sharing Namespace Add is_vault to SharePathError union. Add invalid_shared_folder to AddFolderMemberError union. Team Namespace Make members field of LegalHoldsPolicyUpdateArg struct optional. Add app_folder_removal_not_supported to RevokeLinkedAppError union. Doc/example changes. Team Log Namespace Add auto_approve to InviteMethod union. Add moved_from_another_team to InviteMethod union. Add moved_from_another_team to MemberStatus union. Add no_one to SharedLinkVisibility union. Add optional new_team to MemberChangeStatusDetails struct. Add optional previous_team to MemberChangeStatusDetails struct. Add external_sharing_create_report_details to EventDetails union. Add external_sharing_report_failed to EventDetails union. Add content_administration_policy_changed_details to EventDetails Add external_sharing_create_report to EventType. Add external_sharing_report_failed to EventType. Add content_administration_policy_changed to EventType. union. Add send_for_signature_policy_changed_details to EventDetails union. Add external_sharing_create_report to EventTypeArgs union. Add external_sharing_report_failed to EventTypeArgs union. Add content_administration_policy_changed to EventTypeArgs union. Add send_for_signature_policy_changed to EventTypeArgs union. Add SendForSignaturePolicy union. Add ExternalSharingCreateReportDetails struct. Add ExternalSharingReportFailedDetails struct. Add ContentAdministrationPolicyChangedDetails struct. Add SendForSignaturePolicyChangedDetails struct. Add ExternalSharingCreateReportType struct. Add ExternalSharingReportFailedType struct. Add ContentAdministrationPolicyChangedType struct. Add SendForSignaturePolicyChangedType struct. * Remove stone folder
1 parent cbd9332 commit 5ef1a2a

11 files changed

+1341
-52
lines changed

.gitmodules

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[submodule "stone"]
2-
path = stone
3-
url = https://github.com/dropbox/stone.git
41
[submodule "spec"]
52
path = spec
63
url = https://github.com/dropbox/dropbox-api-spec.git

dropbox/base.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,7 @@ def files_get_temporary_upload_link(self,
17991799
upload path at any given time. The POST request on the temporary upload
18001800
link must have its Content-Type set to "application/octet-stream".
18011801
Example temporary upload link consumption request: curl -X POST
1802-
https://dl.dropboxusercontent.com/apitul/1/bNi2uIYF51cVBND --header
1802+
https://content.dropboxapi.com/apitul/1/bNi2uIYF51cVBND --header
18031803
"Content-Type: application/octet-stream" --data-binary @local_file.txt
18041804
A successful temporary upload link consumption request returns the
18051805
content hash of the uploaded data in JSON format. Example succesful
@@ -2776,8 +2776,9 @@ def files_search(self,
27762776
max_results=100,
27772777
mode=files.SearchMode.filename):
27782778
"""
2779-
Searches for files and folders. Note: Recent changes may not immediately
2780-
be reflected in search results due to a short delay in indexing.
2779+
Searches for files and folders. Note: Recent changes will be reflected
2780+
in search results within a few seconds and older revisions of existing
2781+
files may still match your query for up to a few days.
27812782
27822783
:param str path: The path in the user's Dropbox to search. Should
27832784
probably be a folder.
@@ -2819,6 +2820,7 @@ def files_search(self,
28192820
def files_search_v2(self,
28202821
query,
28212822
options=None,
2823+
match_field_options=None,
28222824
include_highlights=False):
28232825
"""
28242826
Searches for files and folders. Note: :meth:`files_search_v2` along with
@@ -2831,7 +2833,10 @@ def files_search_v2(self,
28312833
fields based on the request arguments. Query string may be rewritten
28322834
to improve relevance of results.
28332835
:param Nullable options: Options for more targeted search results.
2834-
:type include_highlights: bool
2836+
:param Nullable match_field_options: Options for search results match
2837+
fields.
2838+
:param bool include_highlights: Deprecated and moved this option to
2839+
SearchMatchFieldOptions.
28352840
:rtype: :class:`dropbox.files.SearchV2Result`
28362841
:raises: :class:`.exceptions.ApiError`
28372842
@@ -2840,6 +2845,7 @@ def files_search_v2(self,
28402845
"""
28412846
arg = files.SearchV2Arg(query,
28422847
options,
2848+
match_field_options,
28432849
include_highlights)
28442850
r = self.request(
28452851
files.search_v2,

dropbox/base_team.py

+25-16
Original file line numberDiff line numberDiff line change
@@ -736,11 +736,12 @@ def team_legal_holds_create_policy(self,
736736
start_date=None,
737737
end_date=None):
738738
"""
739-
Creates new legal hold policy. Permission : Team member file access.
739+
Creates new legal hold policy. Note: Legal Holds is a paid add-on. Not
740+
all teams have the feature. Permission : Team member file access.
740741
741742
:param str name: Policy name.
742743
:param Nullable description: A description of the legal hold policy.
743-
:param list members: List of team members added to the hold.
744+
:param list members: List of team member IDs added to the hold.
744745
:param Nullable start_date: start date of the legal hold policy.
745746
:param Nullable end_date: end date of the legal hold policy.
746747
:rtype: :class:`dropbox.team.LegalHoldPolicy`
@@ -765,7 +766,8 @@ def team_legal_holds_create_policy(self,
765766
def team_legal_holds_get_policy(self,
766767
id):
767768
"""
768-
Gets a legal hold by Id. Permission : Team member file access.
769+
Gets a legal hold by Id. Note: Legal Holds is a paid add-on. Not all
770+
teams have the feature. Permission : Team member file access.
769771
770772
:param str id: The legal hold Id.
771773
:rtype: :class:`dropbox.team.LegalHoldPolicy`
@@ -786,7 +788,8 @@ def team_legal_holds_get_policy(self,
786788
def team_legal_holds_list_held_revisions(self,
787789
id):
788790
"""
789-
List the file metadata that's under the hold. Permission : Team member
791+
List the file metadata that's under the hold. Note: Legal Holds is a
792+
paid add-on. Not all teams have the feature. Permission : Team member
790793
file access.
791794
792795
:param str id: The legal hold Id.
@@ -809,7 +812,8 @@ def team_legal_holds_list_held_revisions_continue(self,
809812
id,
810813
cursor=None):
811814
"""
812-
Continue listing the file metadata that's under the hold. Permission :
815+
Continue listing the file metadata that's under the hold. Note: Legal
816+
Holds is a paid add-on. Not all teams have the feature. Permission :
813817
Team member file access.
814818
815819
:param str id: The legal hold Id.
@@ -835,7 +839,8 @@ def team_legal_holds_list_held_revisions_continue(self,
835839
def team_legal_holds_list_policies(self,
836840
include_released=False):
837841
"""
838-
Lists legal holds on a team. Permission : Team member file access.
842+
Lists legal holds on a team. Note: Legal Holds is a paid add-on. Not all
843+
teams have the feature. Permission : Team member file access.
839844
840845
:param bool include_released: Whether to return holds that were
841846
released.
@@ -857,7 +862,8 @@ def team_legal_holds_list_policies(self,
857862
def team_legal_holds_release_policy(self,
858863
id):
859864
"""
860-
Releases a legal hold by Id. Permission : Team member file access.
865+
Releases a legal hold by Id. Note: Legal Holds is a paid add-on. Not all
866+
teams have the feature. Permission : Team member file access.
861867
862868
:param str id: The legal hold Id.
863869
:rtype: None
@@ -877,26 +883,27 @@ def team_legal_holds_release_policy(self,
877883

878884
def team_legal_holds_update_policy(self,
879885
id,
880-
members,
881886
name=None,
882-
description=None):
887+
description=None,
888+
members=None):
883889
"""
884-
Updates a legal hold. Permission : Team member file access.
890+
Updates a legal hold. Note: Legal Holds is a paid add-on. Not all teams
891+
have the feature. Permission : Team member file access.
885892
886893
:param str id: The legal hold Id.
887894
:param Nullable name: Policy new name.
888895
:param Nullable description: Policy new description.
889-
:param list members: List of team members to apply the policy on.
896+
:param Nullable members: List of team member IDs to apply the policy on.
890897
:rtype: :class:`dropbox.team.LegalHoldPolicy`
891898
:raises: :class:`.exceptions.ApiError`
892899
893900
If this raises, ApiError will contain:
894901
:class:`dropbox.team.LegalHoldsPolicyUpdateError`
895902
"""
896903
arg = team.LegalHoldsPolicyUpdateArg(id,
897-
members,
898904
name,
899-
description)
905+
description,
906+
members)
900907
r = self.request(
901908
team.legal_holds_update_policy,
902909
'team',
@@ -993,8 +1000,9 @@ def team_linked_apps_revoke_linked_app(self,
9931000
:param str app_id: The application's unique id.
9941001
:param str team_member_id: The unique id of the member owning the
9951002
device.
996-
:param bool keep_app_folder: Whether to keep the application dedicated
997-
folder (in case the application uses one).
1003+
:param bool keep_app_folder: This flag is not longer supported, the
1004+
application dedicated folder (in case the application uses one)
1005+
will be kept.
9981006
:rtype: None
9991007
:raises: :class:`.exceptions.ApiError`
10001008
@@ -2282,7 +2290,8 @@ def team_log_get_events(self,
22822290
Participants.
22832291
:param Nullable time: Filter by time range.
22842292
:param Nullable category: Filter the returned events to a single
2285-
category.
2293+
category. Note that category shouldn't be provided together with
2294+
event_type.
22862295
:param Nullable event_type: Filter the returned events to a single event
22872296
type. Note that event_type shouldn't be provided together with
22882297
category.

0 commit comments

Comments
 (0)