Skip to content

Commit e6cda9a

Browse files
DropboxBotPranay Sowdaboinarogebrd
authored
Automated Spec Update (dropbox#317)
cce31b9a2e810b260c4f9fa6250030d00e968533 Change Notes: Files Namespace: - Update Comments - Update Legacy Scopes Shared Links Namespace: - Update Comments - Update Legacy Scopes Sharing Files Namespace: - Update Comments - Update Legacy Scopes Team Namespace: - Update Comments - Update Legacy Scopes Team Devices Namespace: - Update Comments - Update Legacy Scopes Team Linked Apps Namespace: - Update Comments - Update Legacy Scopes d5bb651e5b0236ccacd3860d6ce04508d7fd2c28 files namespace: Update comments team_legal_holds namespace: Update union LegalHoldsPolicyUpdateError team_log_generated namespce: Update union PolicyType Update comments Co-authored-by: Pranay Sowdaboina <[email protected]> Co-authored-by: DropboxBot <[email protected]> Co-authored-by: Pranay Sowdaboina <[email protected]> Co-authored-by: Brad Rogers <[email protected]>
1 parent f8a7f01 commit e6cda9a

File tree

6 files changed

+90
-100
lines changed

6 files changed

+90
-100
lines changed

dropbox/base.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -2630,8 +2630,7 @@ def files_search_v2(self,
26302630
be returned across pages. Some results may not be returned.
26312631
26322632
:param str query: The string to search for. May match across multiple
2633-
fields based on the request arguments. Query string may be rewritten
2634-
to improve relevance of results.
2633+
fields based on the request arguments.
26352634
:param Nullable[:class:`dropbox.files.SearchOptions`] options: Options
26362635
for more targeted search results.
26372636
:param Nullable[:class:`dropbox.files.SearchMatchFieldOptions`]

dropbox/base_team.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,8 @@ def team_properties_template_add(self,
18341834
def team_properties_template_get(self,
18351835
template_id):
18361836
"""
1837-
Permission : Team member file access.
1837+
Permission : Team member file access. The scope for the route is
1838+
files.team_metadata.write.
18381839
18391840
:param str template_id: An identifier for template added by route See
18401841
:meth:`team_templates_add_for_user` or
@@ -1860,7 +1861,8 @@ def team_properties_template_get(self,
18601861

18611862
def team_properties_template_list(self):
18621863
"""
1863-
Permission : Team member file access.
1864+
Permission : Team member file access. The scope for the route is
1865+
files.team_metadata.write.
18641866
18651867
:rtype: :class:`dropbox.team.ListTemplateResult`
18661868
:raises: :class:`.exceptions.ApiError`

dropbox/files.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -7205,8 +7205,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
72057205
class SearchV2Arg(bb.Struct):
72067206
"""
72077207
:ivar files.SearchV2Arg.query: The string to search for. May match across
7208-
multiple fields based on the request arguments. Query string may be
7209-
rewritten to improve relevance of results.
7208+
multiple fields based on the request arguments.
72107209
:ivar files.SearchV2Arg.options: Options for more targeted search results.
72117210
:ivar files.SearchV2Arg.match_field_options: Options for search results
72127211
match fields.

dropbox/team.py

+15
Original file line numberDiff line numberDiff line change
@@ -5343,6 +5343,8 @@ class LegalHoldsPolicyUpdateError(LegalHoldsError):
53435343
return true. To get the associated value of a tag (if one exists), use the
53445344
corresponding ``get_*`` method.
53455345

5346+
:ivar team.LegalHoldsPolicyUpdateError.transient_error: Temporary
5347+
infrastructure failure, please retry.
53465348
:ivar team.LegalHoldsPolicyUpdateError.inactive_legal_hold: Trying to
53475349
release an inactive legal hold.
53485350
:ivar
@@ -5361,6 +5363,8 @@ class LegalHoldsPolicyUpdateError(LegalHoldsError):
53615363
hold policy does not exist for ``LegalHoldsPolicyUpdateArg.id``.
53625364
"""
53635365

5366+
# Attribute is overwritten below the class definition
5367+
transient_error = None
53645368
# Attribute is overwritten below the class definition
53655369
inactive_legal_hold = None
53665370
# Attribute is overwritten below the class definition
@@ -5376,6 +5380,14 @@ class LegalHoldsPolicyUpdateError(LegalHoldsError):
53765380
# Attribute is overwritten below the class definition
53775381
legal_hold_policy_not_found = None
53785382

5383+
def is_transient_error(self):
5384+
"""
5385+
Check if the union tag is ``transient_error``.
5386+
5387+
:rtype: bool
5388+
"""
5389+
return self._tag == 'transient_error'
5390+
53795391
def is_inactive_legal_hold(self):
53805392
"""
53815393
Check if the union tag is ``inactive_legal_hold``.
@@ -13743,6 +13755,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
1374313755
('members', LegalHoldsPolicyUpdateArg.members.validator),
1374413756
]
1374513757

13758+
LegalHoldsPolicyUpdateError._transient_error_validator = bv.Void()
1374613759
LegalHoldsPolicyUpdateError._inactive_legal_hold_validator = bv.Void()
1374713760
LegalHoldsPolicyUpdateError._legal_hold_performing_another_operation_validator = bv.Void()
1374813761
LegalHoldsPolicyUpdateError._invalid_members_validator = bv.Void()
@@ -13751,6 +13764,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
1375113764
LegalHoldsPolicyUpdateError._name_must_be_unique_validator = bv.Void()
1375213765
LegalHoldsPolicyUpdateError._legal_hold_policy_not_found_validator = bv.Void()
1375313766
LegalHoldsPolicyUpdateError._tagmap = {
13767+
'transient_error': LegalHoldsPolicyUpdateError._transient_error_validator,
1375413768
'inactive_legal_hold': LegalHoldsPolicyUpdateError._inactive_legal_hold_validator,
1375513769
'legal_hold_performing_another_operation': LegalHoldsPolicyUpdateError._legal_hold_performing_another_operation_validator,
1375613770
'invalid_members': LegalHoldsPolicyUpdateError._invalid_members_validator,
@@ -13761,6 +13775,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
1376113775
}
1376213776
LegalHoldsPolicyUpdateError._tagmap.update(LegalHoldsError._tagmap)
1376313777

13778+
LegalHoldsPolicyUpdateError.transient_error = LegalHoldsPolicyUpdateError('transient_error')
1376413779
LegalHoldsPolicyUpdateError.inactive_legal_hold = LegalHoldsPolicyUpdateError('inactive_legal_hold')
1376513780
LegalHoldsPolicyUpdateError.legal_hold_performing_another_operation = LegalHoldsPolicyUpdateError('legal_hold_performing_another_operation')
1376613781
LegalHoldsPolicyUpdateError.invalid_members = LegalHoldsPolicyUpdateError('invalid_members')

0 commit comments

Comments
 (0)