Skip to content

Commit e02e6f6

Browse files
box-sdk-buildbox-sdk-build
andauthored
feat(boxsdkgen): add is_collaborated_content_available_when_owner_inactive property (box/box-openapi#613) (#1945)
Co-authored-by: box-sdk-build <box-sdk-build@box.com>
1 parent dfc3e67 commit e02e6f6

3 files changed

Lines changed: 61 additions & 1 deletion

File tree

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "2cee311", "specHash": "2aeae37", "version": "5.14.1" }
1+
{ "engineHash": "7146a71", "specHash": "86fcc6c", "version": "5.14.1" }

src/main/java/com/box/sdkgen/managers/users/UpdateUserByIdRequestBody.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ public class UpdateUserByIdRequestBody extends SerializableObject {
9191
@JsonProperty("is_password_reset_required")
9292
protected Boolean isPasswordResetRequired;
9393

94+
/**
95+
* Whether collaborators can access content owned by the user when the user is inactive. This
96+
* setting preserves existing collaborator access and does not grant new permissions.
97+
*/
98+
@JsonProperty("is_collaborated_content_available_when_owner_inactive")
99+
protected Boolean isCollaboratedContentAvailableWhenOwnerInactive;
100+
94101
/** The user's account status. */
95102
@JsonDeserialize(
96103
using =
@@ -149,6 +156,8 @@ protected UpdateUserByIdRequestBody(Builder builder) {
149156
this.isExemptFromDeviceLimits = builder.isExemptFromDeviceLimits;
150157
this.isExemptFromLoginVerification = builder.isExemptFromLoginVerification;
151158
this.isPasswordResetRequired = builder.isPasswordResetRequired;
159+
this.isCollaboratedContentAvailableWhenOwnerInactive =
160+
builder.isCollaboratedContentAvailableWhenOwnerInactive;
152161
this.status = builder.status;
153162
this.spaceAmount = builder.spaceAmount;
154163
this.notificationEmail = builder.notificationEmail;
@@ -224,6 +233,10 @@ public Boolean getIsPasswordResetRequired() {
224233
return isPasswordResetRequired;
225234
}
226235

236+
public Boolean getIsCollaboratedContentAvailableWhenOwnerInactive() {
237+
return isCollaboratedContentAvailableWhenOwnerInactive;
238+
}
239+
227240
public EnumWrapper<UpdateUserByIdRequestBodyStatusField> getStatus() {
228241
return status;
229242
}
@@ -266,6 +279,9 @@ public boolean equals(Object o) {
266279
&& Objects.equals(isExemptFromDeviceLimits, casted.isExemptFromDeviceLimits)
267280
&& Objects.equals(isExemptFromLoginVerification, casted.isExemptFromLoginVerification)
268281
&& Objects.equals(isPasswordResetRequired, casted.isPasswordResetRequired)
282+
&& Objects.equals(
283+
isCollaboratedContentAvailableWhenOwnerInactive,
284+
casted.isCollaboratedContentAvailableWhenOwnerInactive)
269285
&& Objects.equals(status, casted.status)
270286
&& Objects.equals(spaceAmount, casted.spaceAmount)
271287
&& Objects.equals(notificationEmail, casted.notificationEmail)
@@ -292,6 +308,7 @@ public int hashCode() {
292308
isExemptFromDeviceLimits,
293309
isExemptFromLoginVerification,
294310
isPasswordResetRequired,
311+
isCollaboratedContentAvailableWhenOwnerInactive,
295312
status,
296313
spaceAmount,
297314
notificationEmail,
@@ -369,6 +386,10 @@ public String toString() {
369386
+ isPasswordResetRequired
370387
+ '\''
371388
+ ", "
389+
+ "isCollaboratedContentAvailableWhenOwnerInactive='"
390+
+ isCollaboratedContentAvailableWhenOwnerInactive
391+
+ '\''
392+
+ ", "
372393
+ "status='"
373394
+ status
374395
+ '\''
@@ -423,6 +444,8 @@ public static class Builder extends NullableFieldTracker {
423444

424445
protected Boolean isPasswordResetRequired;
425446

447+
protected Boolean isCollaboratedContentAvailableWhenOwnerInactive;
448+
426449
protected EnumWrapper<UpdateUserByIdRequestBodyStatusField> status;
427450

428451
protected Long spaceAmount;
@@ -522,6 +545,13 @@ public Builder isPasswordResetRequired(Boolean isPasswordResetRequired) {
522545
return this;
523546
}
524547

548+
public Builder isCollaboratedContentAvailableWhenOwnerInactive(
549+
Boolean isCollaboratedContentAvailableWhenOwnerInactive) {
550+
this.isCollaboratedContentAvailableWhenOwnerInactive =
551+
isCollaboratedContentAvailableWhenOwnerInactive;
552+
return this;
553+
}
554+
525555
public Builder status(UpdateUserByIdRequestBodyStatusField status) {
526556
this.status = new EnumWrapper<UpdateUserByIdRequestBodyStatusField>(status);
527557
return this;

src/main/java/com/box/sdkgen/schemas/userfull/UserFull.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ public class UserFull extends User {
5151
@JsonProperty("is_exempt_from_login_verification")
5252
protected Boolean isExemptFromLoginVerification;
5353

54+
/**
55+
* Whether collaborators can access content owned by the user when the user is inactive. This
56+
* setting preserves existing collaborator access and does not grant new permissions.
57+
*/
58+
@JsonProperty("is_collaborated_content_available_when_owner_inactive")
59+
protected Boolean isCollaboratedContentAvailableWhenOwnerInactive;
60+
5461
protected UserFullEnterpriseField enterprise;
5562

5663
/**
@@ -87,6 +94,8 @@ protected UserFull(Builder builder) {
8794
this.isExternalCollabRestricted = builder.isExternalCollabRestricted;
8895
this.isExemptFromDeviceLimits = builder.isExemptFromDeviceLimits;
8996
this.isExemptFromLoginVerification = builder.isExemptFromLoginVerification;
97+
this.isCollaboratedContentAvailableWhenOwnerInactive =
98+
builder.isCollaboratedContentAvailableWhenOwnerInactive;
9099
this.enterprise = builder.enterprise;
91100
this.myTags = builder.myTags;
92101
this.hostname = builder.hostname;
@@ -123,6 +132,10 @@ public Boolean getIsExemptFromLoginVerification() {
123132
return isExemptFromLoginVerification;
124133
}
125134

135+
public Boolean getIsCollaboratedContentAvailableWhenOwnerInactive() {
136+
return isCollaboratedContentAvailableWhenOwnerInactive;
137+
}
138+
126139
public UserFullEnterpriseField getEnterprise() {
127140
return enterprise;
128141
}
@@ -176,6 +189,9 @@ public boolean equals(Object o) {
176189
&& Objects.equals(isExternalCollabRestricted, casted.isExternalCollabRestricted)
177190
&& Objects.equals(isExemptFromDeviceLimits, casted.isExemptFromDeviceLimits)
178191
&& Objects.equals(isExemptFromLoginVerification, casted.isExemptFromLoginVerification)
192+
&& Objects.equals(
193+
isCollaboratedContentAvailableWhenOwnerInactive,
194+
casted.isCollaboratedContentAvailableWhenOwnerInactive)
179195
&& Objects.equals(enterprise, casted.enterprise)
180196
&& Objects.equals(myTags, casted.myTags)
181197
&& Objects.equals(hostname, casted.hostname)
@@ -210,6 +226,7 @@ public int hashCode() {
210226
isExternalCollabRestricted,
211227
isExemptFromDeviceLimits,
212228
isExemptFromLoginVerification,
229+
isCollaboratedContentAvailableWhenOwnerInactive,
213230
enterprise,
214231
myTags,
215232
hostname,
@@ -316,6 +333,10 @@ public String toString() {
316333
+ isExemptFromLoginVerification
317334
+ '\''
318335
+ ", "
336+
+ "isCollaboratedContentAvailableWhenOwnerInactive='"
337+
+ isCollaboratedContentAvailableWhenOwnerInactive
338+
+ '\''
339+
+ ", "
319340
+ "enterprise='"
320341
+ enterprise
321342
+ '\''
@@ -354,6 +375,8 @@ public static class Builder extends User.Builder {
354375

355376
protected Boolean isExemptFromLoginVerification;
356377

378+
protected Boolean isCollaboratedContentAvailableWhenOwnerInactive;
379+
357380
protected UserFullEnterpriseField enterprise;
358381

359382
protected List<String> myTags;
@@ -408,6 +431,13 @@ public Builder isExemptFromLoginVerification(Boolean isExemptFromLoginVerificati
408431
return this;
409432
}
410433

434+
public Builder isCollaboratedContentAvailableWhenOwnerInactive(
435+
Boolean isCollaboratedContentAvailableWhenOwnerInactive) {
436+
this.isCollaboratedContentAvailableWhenOwnerInactive =
437+
isCollaboratedContentAvailableWhenOwnerInactive;
438+
return this;
439+
}
440+
411441
public Builder enterprise(UserFullEnterpriseField enterprise) {
412442
this.enterprise = enterprise;
413443
return this;

0 commit comments

Comments
 (0)