Skip to content

Commit 52b408e

Browse files
fix!: Correct search content type 'tags' to match API (box/box-openapi#591) (#1766)
1 parent 8f82b46 commit 52b408e

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

.codegen.json

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

src/main/java/com/box/sdkgen/managers/search/SearchForContentQueryParamsContentTypesField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public enum SearchForContentQueryParamsContentTypesField implements Valuable {
1616
DESCRIPTION("description"),
1717
FILE_CONTENT("file_content"),
1818
COMMENTS("comments"),
19-
TAG("tag");
19+
TAGS("tags");
2020

2121
private final String value;
2222

src/main/java/com/box/sdkgen/schemas/v2025r0/hubitemoperationresultv2025r0/HubItemOperationResultV2025R0.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.box.sdkgen.schemas.v2025r0.hubitemreferencev2025r0.HubItemReferenceV2025R0;
88
import com.box.sdkgen.schemas.v2025r0.weblinkreferencev2025r0.WeblinkReferenceV2025R0;
99
import com.fasterxml.jackson.annotation.JsonFilter;
10+
import com.fasterxml.jackson.annotation.JsonProperty;
1011
import java.util.Objects;
1112

1213
/** Result of a Box Hub item operation. */
@@ -18,6 +19,10 @@ public class HubItemOperationResultV2025R0 extends SerializableObject {
1819

1920
protected HubItemReferenceV2025R0 item;
2021

22+
/** The ID of the parent block the item was added to. */
23+
@JsonProperty("parent_id")
24+
protected String parentId;
25+
2126
/** The HTTP status code of the operation. */
2227
protected Long status;
2328

@@ -32,6 +37,7 @@ protected HubItemOperationResultV2025R0(Builder builder) {
3237
super();
3338
this.action = builder.action;
3439
this.item = builder.item;
40+
this.parentId = builder.parentId;
3541
this.status = builder.status;
3642
this.error = builder.error;
3743
markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
@@ -45,6 +51,10 @@ public HubItemReferenceV2025R0 getItem() {
4551
return item;
4652
}
4753

54+
public String getParentId() {
55+
return parentId;
56+
}
57+
4858
public Long getStatus() {
4959
return status;
5060
}
@@ -64,13 +74,14 @@ public boolean equals(Object o) {
6474
HubItemOperationResultV2025R0 casted = (HubItemOperationResultV2025R0) o;
6575
return Objects.equals(action, casted.action)
6676
&& Objects.equals(item, casted.item)
77+
&& Objects.equals(parentId, casted.parentId)
6778
&& Objects.equals(status, casted.status)
6879
&& Objects.equals(error, casted.error);
6980
}
7081

7182
@Override
7283
public int hashCode() {
73-
return Objects.hash(action, item, status, error);
84+
return Objects.hash(action, item, parentId, status, error);
7485
}
7586

7687
@Override
@@ -84,6 +95,10 @@ public String toString() {
8495
+ item
8596
+ '\''
8697
+ ", "
98+
+ "parentId='"
99+
+ parentId
100+
+ '\''
101+
+ ", "
87102
+ "status='"
88103
+ status
89104
+ '\''
@@ -100,6 +115,8 @@ public static class Builder extends NullableFieldTracker {
100115

101116
protected HubItemReferenceV2025R0 item;
102117

118+
protected String parentId;
119+
103120
protected Long status;
104121

105122
protected String error;
@@ -129,6 +146,11 @@ public Builder item(HubItemReferenceV2025R0 item) {
129146
return this;
130147
}
131148

149+
public Builder parentId(String parentId) {
150+
this.parentId = parentId;
151+
return this;
152+
}
153+
132154
public Builder status(Long status) {
133155
this.status = status;
134156
return this;

0 commit comments

Comments
 (0)