Skip to content

Commit 213960d

Browse files
fix(boxsdkgen)!: Correct search content type 'tags' to match API (box/box-openapi#591) (#1370)
1 parent 113faa3 commit 213960d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "02fdae4", "specHash": "74a1e4a", "version": "4.5.0" }
1+
{ "engineHash": "02fdae4", "specHash": "c8e3a85", "version": "4.5.0" }

box_sdk_gen/managers/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class SearchForContentContentTypes(str, Enum):
9393
DESCRIPTION = 'description'
9494
FILE_CONTENT = 'file_content'
9595
COMMENTS = 'comments'
96-
TAG = 'tag'
96+
TAGS = 'tags'
9797

9898

9999
class SearchForContentType(str, Enum):

box_sdk_gen/schemas/v2025_r0/hub_item_operation_result_v2025_r0.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ def __init__(
2525
*,
2626
action: Optional[str] = None,
2727
item: Optional[HubItemReferenceV2025R0] = None,
28+
parent_id: Optional[str] = None,
2829
status: Optional[int] = None,
2930
error: Optional[str] = None,
3031
**kwargs
3132
):
3233
"""
3334
:param action: The action performed on the item., defaults to None
3435
:type action: Optional[str], optional
36+
:param parent_id: The ID of the parent block the item was added to., defaults to None
37+
:type parent_id: Optional[str], optional
3538
:param status: The HTTP status code of the operation., defaults to None
3639
:type status: Optional[int], optional
3740
:param error: Error message if the operation failed., defaults to None
@@ -40,5 +43,6 @@ def __init__(
4043
super().__init__(**kwargs)
4144
self.action = action
4245
self.item = item
46+
self.parent_id = parent_id
4347
self.status = status
4448
self.error = error

0 commit comments

Comments
 (0)