Skip to content

Commit abe6494

Browse files
committed
remove redundant user_id (box/box-openapi#487)
1 parent 7172e30 commit abe6494

File tree

5 files changed

+13
-109
lines changed

5 files changed

+13
-109
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "5604447", "specHash": "86fde16", "version": "0.2.0" }
1+
{ "engineHash": "5604447", "specHash": "b2a3e3b", "version": "0.2.0" }

src/main/java/com/box/sdkgen/managers/trashedfiles/RestoreFileFromTrashRequestBodyParentField.java

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
package com.box.sdkgen.managers.trashedfiles;
22

33
import com.box.sdkgen.internal.SerializableObject;
4-
import com.fasterxml.jackson.annotation.JsonProperty;
54
import java.util.Objects;
65

76
public class RestoreFileFromTrashRequestBodyParentField extends SerializableObject {
87

98
protected String id;
109

11-
@JsonProperty("user_id")
12-
protected String userId;
13-
1410
public RestoreFileFromTrashRequestBodyParentField() {
1511
super();
1612
}
@@ -19,17 +15,12 @@ protected RestoreFileFromTrashRequestBodyParentField(
1915
RestoreFileFromTrashRequestBodyParentFieldBuilder builder) {
2016
super();
2117
this.id = builder.id;
22-
this.userId = builder.userId;
2318
}
2419

2520
public String getId() {
2621
return id;
2722
}
2823

29-
public String getUserId() {
30-
return userId;
31-
}
32-
3324
@Override
3425
public boolean equals(Object o) {
3526
if (this == o) {
@@ -40,43 +31,28 @@ public boolean equals(Object o) {
4031
}
4132
RestoreFileFromTrashRequestBodyParentField casted =
4233
(RestoreFileFromTrashRequestBodyParentField) o;
43-
return Objects.equals(id, casted.id) && Objects.equals(userId, casted.userId);
34+
return Objects.equals(id, casted.id);
4435
}
4536

4637
@Override
4738
public int hashCode() {
48-
return Objects.hash(id, userId);
39+
return Objects.hash(id);
4940
}
5041

5142
@Override
5243
public String toString() {
53-
return "RestoreFileFromTrashRequestBodyParentField{"
54-
+ "id='"
55-
+ id
56-
+ '\''
57-
+ ", "
58-
+ "userId='"
59-
+ userId
60-
+ '\''
61-
+ "}";
44+
return "RestoreFileFromTrashRequestBodyParentField{" + "id='" + id + '\'' + "}";
6245
}
6346

6447
public static class RestoreFileFromTrashRequestBodyParentFieldBuilder {
6548

6649
protected String id;
6750

68-
protected String userId;
69-
7051
public RestoreFileFromTrashRequestBodyParentFieldBuilder id(String id) {
7152
this.id = id;
7253
return this;
7354
}
7455

75-
public RestoreFileFromTrashRequestBodyParentFieldBuilder userId(String userId) {
76-
this.userId = userId;
77-
return this;
78-
}
79-
8056
public RestoreFileFromTrashRequestBodyParentField build() {
8157
return new RestoreFileFromTrashRequestBodyParentField(this);
8258
}

src/main/java/com/box/sdkgen/managers/trashedfolders/RestoreFolderFromTrashRequestBodyParentField.java

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
package com.box.sdkgen.managers.trashedfolders;
22

33
import com.box.sdkgen.internal.SerializableObject;
4-
import com.fasterxml.jackson.annotation.JsonProperty;
54
import java.util.Objects;
65

76
public class RestoreFolderFromTrashRequestBodyParentField extends SerializableObject {
87

98
protected String id;
109

11-
@JsonProperty("user_id")
12-
protected String userId;
13-
1410
public RestoreFolderFromTrashRequestBodyParentField() {
1511
super();
1612
}
@@ -19,17 +15,12 @@ protected RestoreFolderFromTrashRequestBodyParentField(
1915
RestoreFolderFromTrashRequestBodyParentFieldBuilder builder) {
2016
super();
2117
this.id = builder.id;
22-
this.userId = builder.userId;
2318
}
2419

2520
public String getId() {
2621
return id;
2722
}
2823

29-
public String getUserId() {
30-
return userId;
31-
}
32-
3324
@Override
3425
public boolean equals(Object o) {
3526
if (this == o) {
@@ -40,43 +31,28 @@ public boolean equals(Object o) {
4031
}
4132
RestoreFolderFromTrashRequestBodyParentField casted =
4233
(RestoreFolderFromTrashRequestBodyParentField) o;
43-
return Objects.equals(id, casted.id) && Objects.equals(userId, casted.userId);
34+
return Objects.equals(id, casted.id);
4435
}
4536

4637
@Override
4738
public int hashCode() {
48-
return Objects.hash(id, userId);
39+
return Objects.hash(id);
4940
}
5041

5142
@Override
5243
public String toString() {
53-
return "RestoreFolderFromTrashRequestBodyParentField{"
54-
+ "id='"
55-
+ id
56-
+ '\''
57-
+ ", "
58-
+ "userId='"
59-
+ userId
60-
+ '\''
61-
+ "}";
44+
return "RestoreFolderFromTrashRequestBodyParentField{" + "id='" + id + '\'' + "}";
6245
}
6346

6447
public static class RestoreFolderFromTrashRequestBodyParentFieldBuilder {
6548

6649
protected String id;
6750

68-
protected String userId;
69-
7051
public RestoreFolderFromTrashRequestBodyParentFieldBuilder id(String id) {
7152
this.id = id;
7253
return this;
7354
}
7455

75-
public RestoreFolderFromTrashRequestBodyParentFieldBuilder userId(String userId) {
76-
this.userId = userId;
77-
return this;
78-
}
79-
8056
public RestoreFolderFromTrashRequestBodyParentField build() {
8157
return new RestoreFolderFromTrashRequestBodyParentField(this);
8258
}

src/main/java/com/box/sdkgen/managers/trashedweblinks/RestoreWeblinkFromTrashRequestBodyParentField.java

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
package com.box.sdkgen.managers.trashedweblinks;
22

33
import com.box.sdkgen.internal.SerializableObject;
4-
import com.fasterxml.jackson.annotation.JsonProperty;
54
import java.util.Objects;
65

76
public class RestoreWeblinkFromTrashRequestBodyParentField extends SerializableObject {
87

98
protected String id;
109

11-
@JsonProperty("user_id")
12-
protected String userId;
13-
1410
public RestoreWeblinkFromTrashRequestBodyParentField() {
1511
super();
1612
}
@@ -19,17 +15,12 @@ protected RestoreWeblinkFromTrashRequestBodyParentField(
1915
RestoreWeblinkFromTrashRequestBodyParentFieldBuilder builder) {
2016
super();
2117
this.id = builder.id;
22-
this.userId = builder.userId;
2318
}
2419

2520
public String getId() {
2621
return id;
2722
}
2823

29-
public String getUserId() {
30-
return userId;
31-
}
32-
3324
@Override
3425
public boolean equals(Object o) {
3526
if (this == o) {
@@ -40,43 +31,28 @@ public boolean equals(Object o) {
4031
}
4132
RestoreWeblinkFromTrashRequestBodyParentField casted =
4233
(RestoreWeblinkFromTrashRequestBodyParentField) o;
43-
return Objects.equals(id, casted.id) && Objects.equals(userId, casted.userId);
34+
return Objects.equals(id, casted.id);
4435
}
4536

4637
@Override
4738
public int hashCode() {
48-
return Objects.hash(id, userId);
39+
return Objects.hash(id);
4940
}
5041

5142
@Override
5243
public String toString() {
53-
return "RestoreWeblinkFromTrashRequestBodyParentField{"
54-
+ "id='"
55-
+ id
56-
+ '\''
57-
+ ", "
58-
+ "userId='"
59-
+ userId
60-
+ '\''
61-
+ "}";
44+
return "RestoreWeblinkFromTrashRequestBodyParentField{" + "id='" + id + '\'' + "}";
6245
}
6346

6447
public static class RestoreWeblinkFromTrashRequestBodyParentFieldBuilder {
6548

6649
protected String id;
6750

68-
protected String userId;
69-
7051
public RestoreWeblinkFromTrashRequestBodyParentFieldBuilder id(String id) {
7152
this.id = id;
7253
return this;
7354
}
7455

75-
public RestoreWeblinkFromTrashRequestBodyParentFieldBuilder userId(String userId) {
76-
this.userId = userId;
77-
return this;
78-
}
79-
8056
public RestoreWeblinkFromTrashRequestBodyParentField build() {
8157
return new RestoreWeblinkFromTrashRequestBodyParentField(this);
8258
}

src/main/java/com/box/sdkgen/managers/uploads/PreflightFileUploadCheckRequestBodyParentField.java

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
package com.box.sdkgen.managers.uploads;
22

33
import com.box.sdkgen.internal.SerializableObject;
4-
import com.fasterxml.jackson.annotation.JsonProperty;
54
import java.util.Objects;
65

76
public class PreflightFileUploadCheckRequestBodyParentField extends SerializableObject {
87

98
protected String id;
109

11-
@JsonProperty("user_id")
12-
protected String userId;
13-
1410
public PreflightFileUploadCheckRequestBodyParentField() {
1511
super();
1612
}
@@ -19,17 +15,12 @@ protected PreflightFileUploadCheckRequestBodyParentField(
1915
PreflightFileUploadCheckRequestBodyParentFieldBuilder builder) {
2016
super();
2117
this.id = builder.id;
22-
this.userId = builder.userId;
2318
}
2419

2520
public String getId() {
2621
return id;
2722
}
2823

29-
public String getUserId() {
30-
return userId;
31-
}
32-
3324
@Override
3425
public boolean equals(Object o) {
3526
if (this == o) {
@@ -40,43 +31,28 @@ public boolean equals(Object o) {
4031
}
4132
PreflightFileUploadCheckRequestBodyParentField casted =
4233
(PreflightFileUploadCheckRequestBodyParentField) o;
43-
return Objects.equals(id, casted.id) && Objects.equals(userId, casted.userId);
34+
return Objects.equals(id, casted.id);
4435
}
4536

4637
@Override
4738
public int hashCode() {
48-
return Objects.hash(id, userId);
39+
return Objects.hash(id);
4940
}
5041

5142
@Override
5243
public String toString() {
53-
return "PreflightFileUploadCheckRequestBodyParentField{"
54-
+ "id='"
55-
+ id
56-
+ '\''
57-
+ ", "
58-
+ "userId='"
59-
+ userId
60-
+ '\''
61-
+ "}";
44+
return "PreflightFileUploadCheckRequestBodyParentField{" + "id='" + id + '\'' + "}";
6245
}
6346

6447
public static class PreflightFileUploadCheckRequestBodyParentFieldBuilder {
6548

6649
protected String id;
6750

68-
protected String userId;
69-
7051
public PreflightFileUploadCheckRequestBodyParentFieldBuilder id(String id) {
7152
this.id = id;
7253
return this;
7354
}
7455

75-
public PreflightFileUploadCheckRequestBodyParentFieldBuilder userId(String userId) {
76-
this.userId = userId;
77-
return this;
78-
}
79-
8056
public PreflightFileUploadCheckRequestBodyParentField build() {
8157
return new PreflightFileUploadCheckRequestBodyParentField(this);
8258
}

0 commit comments

Comments
 (0)