From 75cfe0192b16379f6b9abc0e2d616c29794e43c8 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Thu, 3 Dec 2026 06:37:18 -0800 Subject: [PATCH 1/2] docs: (CENTURION-947)Fix documentation (invites public API) (box/box-openapi#633) --- .codegen.json | 2 +- docs/invites.md | 3 --- .../box/sdkgen/managers/invites/InvitesManager.java | 12 ------------ 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/.codegen.json b/.codegen.json index 1fe2910e3..f6c85033d 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "8b17929", "specHash": "338aabc", "version": "10.22.0" } +{ "engineHash": "8b17929", "specHash": "9c01006", "version": "10.22.0" } diff --git a/docs/invites.md b/docs/invites.md index 1cf175428..0524382c5 100644 --- a/docs/invites.md +++ b/docs/invites.md @@ -19,9 +19,6 @@ accept the invitation and is added to the enterprise automatically after is a free user whose email domain matches one of the enterprise's domains. Availability depends on the enterprise's plan. -This method requires the "Manage An Enterprise" scope enabled for -the application, which can be enabled within the developer console. - This operation is performed by calling function `createInvite`. See the endpoint docs at diff --git a/src/main/java/com/box/sdkgen/managers/invites/InvitesManager.java b/src/main/java/com/box/sdkgen/managers/invites/InvitesManager.java index 40cae735d..378ab6cbe 100644 --- a/src/main/java/com/box/sdkgen/managers/invites/InvitesManager.java +++ b/src/main/java/com/box/sdkgen/managers/invites/InvitesManager.java @@ -42,9 +42,6 @@ protected InvitesManager(Builder builder) { * be invited this way. An unmanaged user is a free user whose email domain matches one of the * enterprise's domains. Availability depends on the enterprise's plan. * - *

This method requires the "Manage An Enterprise" scope enabled for the application, which can - * be enabled within the developer console. - * * @param requestBody Request body of createInvite method */ public Invite createInvite(CreateInviteRequestBody requestBody) { @@ -63,9 +60,6 @@ public Invite createInvite(CreateInviteRequestBody requestBody) { * be invited this way. An unmanaged user is a free user whose email domain matches one of the * enterprise's domains. Availability depends on the enterprise's plan. * - *

This method requires the "Manage An Enterprise" scope enabled for the application, which can - * be enabled within the developer console. - * * @param requestBody Request body of createInvite method * @param queryParams Query parameters of createInvite method */ @@ -86,9 +80,6 @@ public Invite createInvite( * be invited this way. An unmanaged user is a free user whose email domain matches one of the * enterprise's domains. Availability depends on the enterprise's plan. * - *

This method requires the "Manage An Enterprise" scope enabled for the application, which can - * be enabled within the developer console. - * * @param requestBody Request body of createInvite method * @param headers Headers of createInvite method */ @@ -108,9 +99,6 @@ public Invite createInvite(CreateInviteRequestBody requestBody, CreateInviteHead * be invited this way. An unmanaged user is a free user whose email domain matches one of the * enterprise's domains. Availability depends on the enterprise's plan. * - *

This method requires the "Manage An Enterprise" scope enabled for the application, which can - * be enabled within the developer console. - * * @param requestBody Request body of createInvite method * @param queryParams Query parameters of createInvite method * @param headers Headers of createInvite method From a106e7148340e0a07cd25e9da29eefdbad223685 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Thu, 3 Dec 2026 08:40:37 -0800 Subject: [PATCH 2/2] docs: (DDOC-1969) - Fix OTP and password endpoint inaccuracies (box/box-openapi#634) --- .codegen.json | 2 +- .../schemas/file/FileSharedLinkField.java | 194 +++++++++++++++-- .../schemas/folder/FolderSharedLinkField.java | 194 +++++++++++++++-- .../weblink/WebLinkSharedLinkField.java | 196 ++++++++++++++++-- 4 files changed, 549 insertions(+), 37 deletions(-) diff --git a/.codegen.json b/.codegen.json index f6c85033d..d9326a8c2 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "8b17929", "specHash": "9c01006", "version": "10.22.0" } +{ "engineHash": "8b17929", "specHash": "d21130e", "version": "10.22.0" } diff --git a/src/main/java/com/box/sdkgen/schemas/file/FileSharedLinkField.java b/src/main/java/com/box/sdkgen/schemas/file/FileSharedLinkField.java index fa6a25781..1292d2761 100644 --- a/src/main/java/com/box/sdkgen/schemas/file/FileSharedLinkField.java +++ b/src/main/java/com/box/sdkgen/schemas/file/FileSharedLinkField.java @@ -62,7 +62,7 @@ public class FileSharedLinkField extends SerializableObject { */ @JsonDeserialize(using = FileSharedLinkAccessField.FileSharedLinkAccessFieldDeserializer.class) @JsonSerialize(using = FileSharedLinkAccessField.FileSharedLinkAccessFieldSerializer.class) - protected EnumWrapper access; + protected final EnumWrapper access; /** * The effective access level for the shared link. This can be a more restrictive access level @@ -126,6 +126,7 @@ public class FileSharedLinkField extends SerializableObject { public FileSharedLinkField( String url, + FileSharedLinkAccessField access, FileSharedLinkEffectiveAccessField effectiveAccess, FileSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, @@ -134,6 +135,7 @@ public FileSharedLinkField( FileSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = new EnumWrapper(access); this.effectiveAccess = new EnumWrapper(effectiveAccess); this.effectivePermission = new EnumWrapper(effectivePermission); @@ -145,6 +147,7 @@ public FileSharedLinkField( public FileSharedLinkField( String url, + FileSharedLinkAccessField access, FileSharedLinkEffectiveAccessField effectiveAccess, EnumWrapper effectivePermission, boolean isPasswordEnabled, @@ -153,6 +156,7 @@ public FileSharedLinkField( FileSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = new EnumWrapper(access); this.effectiveAccess = new EnumWrapper(effectiveAccess); this.effectivePermission = effectivePermission; this.isPasswordEnabled = isPasswordEnabled; @@ -163,6 +167,7 @@ public FileSharedLinkField( public FileSharedLinkField( String url, + FileSharedLinkAccessField access, EnumWrapper effectiveAccess, FileSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, @@ -171,6 +176,89 @@ public FileSharedLinkField( FileSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = effectiveAccess; + this.effectivePermission = + new EnumWrapper(effectivePermission); + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public FileSharedLinkField( + String url, + FileSharedLinkAccessField access, + EnumWrapper effectiveAccess, + EnumWrapper effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FileSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = effectiveAccess; + this.effectivePermission = effectivePermission; + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public FileSharedLinkField( + String url, + EnumWrapper access, + FileSharedLinkEffectiveAccessField effectiveAccess, + FileSharedLinkEffectivePermissionField effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FileSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = access; + this.effectiveAccess = new EnumWrapper(effectiveAccess); + this.effectivePermission = + new EnumWrapper(effectivePermission); + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public FileSharedLinkField( + String url, + EnumWrapper access, + FileSharedLinkEffectiveAccessField effectiveAccess, + EnumWrapper effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FileSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = access; + this.effectiveAccess = new EnumWrapper(effectiveAccess); + this.effectivePermission = effectivePermission; + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public FileSharedLinkField( + String url, + EnumWrapper access, + EnumWrapper effectiveAccess, + FileSharedLinkEffectivePermissionField effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FileSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = access; this.effectiveAccess = effectiveAccess; this.effectivePermission = new EnumWrapper(effectivePermission); @@ -182,6 +270,7 @@ public FileSharedLinkField( public FileSharedLinkField( @JsonProperty("url") String url, + @JsonProperty("access") EnumWrapper access, @JsonProperty("effective_access") EnumWrapper effectiveAccess, @JsonProperty("effective_permission") @@ -192,6 +281,7 @@ public FileSharedLinkField( @JsonProperty("one_time_passcode") FileSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = effectiveAccess; this.effectivePermission = effectivePermission; this.isPasswordEnabled = isPasswordEnabled; @@ -379,7 +469,7 @@ public static class Builder extends NullableFieldTracker { protected String vanityName; - protected EnumWrapper access; + protected final EnumWrapper access; protected final EnumWrapper effectiveAccess; @@ -399,6 +489,89 @@ public static class Builder extends NullableFieldTracker { public Builder( String url, + FileSharedLinkAccessField access, + FileSharedLinkEffectiveAccessField effectiveAccess, + FileSharedLinkEffectivePermissionField effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FileSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = new EnumWrapper(effectiveAccess); + this.effectivePermission = + new EnumWrapper(effectivePermission); + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public Builder( + String url, + FileSharedLinkAccessField access, + FileSharedLinkEffectiveAccessField effectiveAccess, + EnumWrapper effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FileSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = new EnumWrapper(effectiveAccess); + this.effectivePermission = effectivePermission; + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public Builder( + String url, + FileSharedLinkAccessField access, + EnumWrapper effectiveAccess, + FileSharedLinkEffectivePermissionField effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FileSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = effectiveAccess; + this.effectivePermission = + new EnumWrapper(effectivePermission); + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public Builder( + String url, + FileSharedLinkAccessField access, + EnumWrapper effectiveAccess, + EnumWrapper effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FileSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = effectiveAccess; + this.effectivePermission = effectivePermission; + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public Builder( + String url, + EnumWrapper access, FileSharedLinkEffectiveAccessField effectiveAccess, FileSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, @@ -407,6 +580,7 @@ public Builder( FileSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = new EnumWrapper(effectiveAccess); this.effectivePermission = new EnumWrapper(effectivePermission); @@ -418,6 +592,7 @@ public Builder( public Builder( String url, + EnumWrapper access, FileSharedLinkEffectiveAccessField effectiveAccess, EnumWrapper effectivePermission, boolean isPasswordEnabled, @@ -426,6 +601,7 @@ public Builder( FileSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = new EnumWrapper(effectiveAccess); this.effectivePermission = effectivePermission; this.isPasswordEnabled = isPasswordEnabled; @@ -436,6 +612,7 @@ public Builder( public Builder( String url, + EnumWrapper access, EnumWrapper effectiveAccess, FileSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, @@ -444,6 +621,7 @@ public Builder( FileSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = effectiveAccess; this.effectivePermission = new EnumWrapper(effectivePermission); @@ -455,6 +633,7 @@ public Builder( public Builder( String url, + EnumWrapper access, EnumWrapper effectiveAccess, EnumWrapper effectivePermission, boolean isPasswordEnabled, @@ -463,6 +642,7 @@ public Builder( FileSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = effectiveAccess; this.effectivePermission = effectivePermission; this.isPasswordEnabled = isPasswordEnabled; @@ -489,16 +669,6 @@ public Builder vanityName(String vanityName) { return this; } - public Builder access(FileSharedLinkAccessField access) { - this.access = new EnumWrapper(access); - return this; - } - - public Builder access(EnumWrapper access) { - this.access = access; - return this; - } - public Builder unsharedAt(OffsetDateTime unsharedAt) { this.unsharedAt = unsharedAt; this.markNullableFieldAsSet("unshared_at"); diff --git a/src/main/java/com/box/sdkgen/schemas/folder/FolderSharedLinkField.java b/src/main/java/com/box/sdkgen/schemas/folder/FolderSharedLinkField.java index 4557eb90e..bd5bc5e2b 100644 --- a/src/main/java/com/box/sdkgen/schemas/folder/FolderSharedLinkField.java +++ b/src/main/java/com/box/sdkgen/schemas/folder/FolderSharedLinkField.java @@ -63,7 +63,7 @@ public class FolderSharedLinkField extends SerializableObject { @JsonDeserialize( using = FolderSharedLinkAccessField.FolderSharedLinkAccessFieldDeserializer.class) @JsonSerialize(using = FolderSharedLinkAccessField.FolderSharedLinkAccessFieldSerializer.class) - protected EnumWrapper access; + protected final EnumWrapper access; /** * The effective access level for the shared link. This can be a more restrictive access level @@ -129,6 +129,7 @@ public class FolderSharedLinkField extends SerializableObject { public FolderSharedLinkField( String url, + FolderSharedLinkAccessField access, FolderSharedLinkEffectiveAccessField effectiveAccess, FolderSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, @@ -137,6 +138,7 @@ public FolderSharedLinkField( FolderSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = new EnumWrapper(access); this.effectiveAccess = new EnumWrapper(effectiveAccess); this.effectivePermission = new EnumWrapper(effectivePermission); @@ -148,6 +150,7 @@ public FolderSharedLinkField( public FolderSharedLinkField( String url, + FolderSharedLinkAccessField access, FolderSharedLinkEffectiveAccessField effectiveAccess, EnumWrapper effectivePermission, boolean isPasswordEnabled, @@ -156,6 +159,7 @@ public FolderSharedLinkField( FolderSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = new EnumWrapper(access); this.effectiveAccess = new EnumWrapper(effectiveAccess); this.effectivePermission = effectivePermission; this.isPasswordEnabled = isPasswordEnabled; @@ -166,6 +170,7 @@ public FolderSharedLinkField( public FolderSharedLinkField( String url, + FolderSharedLinkAccessField access, EnumWrapper effectiveAccess, FolderSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, @@ -174,6 +179,89 @@ public FolderSharedLinkField( FolderSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = effectiveAccess; + this.effectivePermission = + new EnumWrapper(effectivePermission); + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public FolderSharedLinkField( + String url, + FolderSharedLinkAccessField access, + EnumWrapper effectiveAccess, + EnumWrapper effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FolderSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = effectiveAccess; + this.effectivePermission = effectivePermission; + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public FolderSharedLinkField( + String url, + EnumWrapper access, + FolderSharedLinkEffectiveAccessField effectiveAccess, + FolderSharedLinkEffectivePermissionField effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FolderSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = access; + this.effectiveAccess = new EnumWrapper(effectiveAccess); + this.effectivePermission = + new EnumWrapper(effectivePermission); + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public FolderSharedLinkField( + String url, + EnumWrapper access, + FolderSharedLinkEffectiveAccessField effectiveAccess, + EnumWrapper effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FolderSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = access; + this.effectiveAccess = new EnumWrapper(effectiveAccess); + this.effectivePermission = effectivePermission; + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public FolderSharedLinkField( + String url, + EnumWrapper access, + EnumWrapper effectiveAccess, + FolderSharedLinkEffectivePermissionField effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FolderSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = access; this.effectiveAccess = effectiveAccess; this.effectivePermission = new EnumWrapper(effectivePermission); @@ -185,6 +273,7 @@ public FolderSharedLinkField( public FolderSharedLinkField( @JsonProperty("url") String url, + @JsonProperty("access") EnumWrapper access, @JsonProperty("effective_access") EnumWrapper effectiveAccess, @JsonProperty("effective_permission") @@ -195,6 +284,7 @@ public FolderSharedLinkField( @JsonProperty("one_time_passcode") FolderSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = effectiveAccess; this.effectivePermission = effectivePermission; this.isPasswordEnabled = isPasswordEnabled; @@ -382,7 +472,7 @@ public static class Builder extends NullableFieldTracker { protected String vanityName; - protected EnumWrapper access; + protected final EnumWrapper access; protected final EnumWrapper effectiveAccess; @@ -402,6 +492,89 @@ public static class Builder extends NullableFieldTracker { public Builder( String url, + FolderSharedLinkAccessField access, + FolderSharedLinkEffectiveAccessField effectiveAccess, + FolderSharedLinkEffectivePermissionField effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FolderSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = new EnumWrapper(effectiveAccess); + this.effectivePermission = + new EnumWrapper(effectivePermission); + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public Builder( + String url, + FolderSharedLinkAccessField access, + FolderSharedLinkEffectiveAccessField effectiveAccess, + EnumWrapper effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FolderSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = new EnumWrapper(effectiveAccess); + this.effectivePermission = effectivePermission; + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public Builder( + String url, + FolderSharedLinkAccessField access, + EnumWrapper effectiveAccess, + FolderSharedLinkEffectivePermissionField effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FolderSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = effectiveAccess; + this.effectivePermission = + new EnumWrapper(effectivePermission); + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public Builder( + String url, + FolderSharedLinkAccessField access, + EnumWrapper effectiveAccess, + EnumWrapper effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + FolderSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = effectiveAccess; + this.effectivePermission = effectivePermission; + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public Builder( + String url, + EnumWrapper access, FolderSharedLinkEffectiveAccessField effectiveAccess, FolderSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, @@ -410,6 +583,7 @@ public Builder( FolderSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = new EnumWrapper(effectiveAccess); this.effectivePermission = new EnumWrapper(effectivePermission); @@ -421,6 +595,7 @@ public Builder( public Builder( String url, + EnumWrapper access, FolderSharedLinkEffectiveAccessField effectiveAccess, EnumWrapper effectivePermission, boolean isPasswordEnabled, @@ -429,6 +604,7 @@ public Builder( FolderSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = new EnumWrapper(effectiveAccess); this.effectivePermission = effectivePermission; this.isPasswordEnabled = isPasswordEnabled; @@ -439,6 +615,7 @@ public Builder( public Builder( String url, + EnumWrapper access, EnumWrapper effectiveAccess, FolderSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, @@ -447,6 +624,7 @@ public Builder( FolderSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = effectiveAccess; this.effectivePermission = new EnumWrapper(effectivePermission); @@ -458,6 +636,7 @@ public Builder( public Builder( String url, + EnumWrapper access, EnumWrapper effectiveAccess, EnumWrapper effectivePermission, boolean isPasswordEnabled, @@ -466,6 +645,7 @@ public Builder( FolderSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = effectiveAccess; this.effectivePermission = effectivePermission; this.isPasswordEnabled = isPasswordEnabled; @@ -492,16 +672,6 @@ public Builder vanityName(String vanityName) { return this; } - public Builder access(FolderSharedLinkAccessField access) { - this.access = new EnumWrapper(access); - return this; - } - - public Builder access(EnumWrapper access) { - this.access = access; - return this; - } - public Builder unsharedAt(OffsetDateTime unsharedAt) { this.unsharedAt = unsharedAt; this.markNullableFieldAsSet("unshared_at"); diff --git a/src/main/java/com/box/sdkgen/schemas/weblink/WebLinkSharedLinkField.java b/src/main/java/com/box/sdkgen/schemas/weblink/WebLinkSharedLinkField.java index 289eac90c..834491933 100644 --- a/src/main/java/com/box/sdkgen/schemas/weblink/WebLinkSharedLinkField.java +++ b/src/main/java/com/box/sdkgen/schemas/weblink/WebLinkSharedLinkField.java @@ -63,7 +63,7 @@ public class WebLinkSharedLinkField extends SerializableObject { @JsonDeserialize( using = WebLinkSharedLinkAccessField.WebLinkSharedLinkAccessFieldDeserializer.class) @JsonSerialize(using = WebLinkSharedLinkAccessField.WebLinkSharedLinkAccessFieldSerializer.class) - protected EnumWrapper access; + protected final EnumWrapper access; /** * The effective access level for the shared link. This can be a more restrictive access level @@ -130,6 +130,7 @@ public class WebLinkSharedLinkField extends SerializableObject { public WebLinkSharedLinkField( String url, + WebLinkSharedLinkAccessField access, WebLinkSharedLinkEffectiveAccessField effectiveAccess, WebLinkSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, @@ -138,6 +139,7 @@ public WebLinkSharedLinkField( WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = new EnumWrapper(access); this.effectiveAccess = new EnumWrapper(effectiveAccess); this.effectivePermission = new EnumWrapper(effectivePermission); @@ -149,6 +151,7 @@ public WebLinkSharedLinkField( public WebLinkSharedLinkField( String url, + WebLinkSharedLinkAccessField access, WebLinkSharedLinkEffectiveAccessField effectiveAccess, EnumWrapper effectivePermission, boolean isPasswordEnabled, @@ -157,6 +160,7 @@ public WebLinkSharedLinkField( WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = new EnumWrapper(access); this.effectiveAccess = new EnumWrapper(effectiveAccess); this.effectivePermission = effectivePermission; this.isPasswordEnabled = isPasswordEnabled; @@ -167,6 +171,7 @@ public WebLinkSharedLinkField( public WebLinkSharedLinkField( String url, + WebLinkSharedLinkAccessField access, EnumWrapper effectiveAccess, WebLinkSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, @@ -175,6 +180,89 @@ public WebLinkSharedLinkField( WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = effectiveAccess; + this.effectivePermission = + new EnumWrapper(effectivePermission); + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public WebLinkSharedLinkField( + String url, + WebLinkSharedLinkAccessField access, + EnumWrapper effectiveAccess, + EnumWrapper effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = effectiveAccess; + this.effectivePermission = effectivePermission; + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public WebLinkSharedLinkField( + String url, + EnumWrapper access, + WebLinkSharedLinkEffectiveAccessField effectiveAccess, + WebLinkSharedLinkEffectivePermissionField effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = access; + this.effectiveAccess = new EnumWrapper(effectiveAccess); + this.effectivePermission = + new EnumWrapper(effectivePermission); + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public WebLinkSharedLinkField( + String url, + EnumWrapper access, + WebLinkSharedLinkEffectiveAccessField effectiveAccess, + EnumWrapper effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = access; + this.effectiveAccess = new EnumWrapper(effectiveAccess); + this.effectivePermission = effectivePermission; + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public WebLinkSharedLinkField( + String url, + EnumWrapper access, + EnumWrapper effectiveAccess, + WebLinkSharedLinkEffectivePermissionField effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = access; this.effectiveAccess = effectiveAccess; this.effectivePermission = new EnumWrapper(effectivePermission); @@ -186,6 +274,7 @@ public WebLinkSharedLinkField( public WebLinkSharedLinkField( @JsonProperty("url") String url, + @JsonProperty("access") EnumWrapper access, @JsonProperty("effective_access") EnumWrapper effectiveAccess, @JsonProperty("effective_permission") @@ -196,6 +285,7 @@ public WebLinkSharedLinkField( @JsonProperty("one_time_passcode") WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = effectiveAccess; this.effectivePermission = effectivePermission; this.isPasswordEnabled = isPasswordEnabled; @@ -383,7 +473,7 @@ public static class Builder extends NullableFieldTracker { protected String vanityName; - protected EnumWrapper access; + protected final EnumWrapper access; protected final EnumWrapper effectiveAccess; @@ -403,7 +493,51 @@ public static class Builder extends NullableFieldTracker { public Builder( String url, + WebLinkSharedLinkAccessField access, + WebLinkSharedLinkEffectiveAccessField effectiveAccess, + WebLinkSharedLinkEffectivePermissionField effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = + new EnumWrapper(effectiveAccess); + this.effectivePermission = + new EnumWrapper(effectivePermission); + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public Builder( + String url, + WebLinkSharedLinkAccessField access, WebLinkSharedLinkEffectiveAccessField effectiveAccess, + EnumWrapper effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = + new EnumWrapper(effectiveAccess); + this.effectivePermission = effectivePermission; + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public Builder( + String url, + WebLinkSharedLinkAccessField access, + EnumWrapper effectiveAccess, WebLinkSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, long downloadCount, @@ -411,6 +545,48 @@ public Builder( WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = effectiveAccess; + this.effectivePermission = + new EnumWrapper(effectivePermission); + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public Builder( + String url, + WebLinkSharedLinkAccessField access, + EnumWrapper effectiveAccess, + EnumWrapper effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = new EnumWrapper(access); + this.effectiveAccess = effectiveAccess; + this.effectivePermission = effectivePermission; + this.isPasswordEnabled = isPasswordEnabled; + this.downloadCount = downloadCount; + this.previewCount = previewCount; + this.oneTimePasscode = oneTimePasscode; + } + + public Builder( + String url, + EnumWrapper access, + WebLinkSharedLinkEffectiveAccessField effectiveAccess, + WebLinkSharedLinkEffectivePermissionField effectivePermission, + boolean isPasswordEnabled, + long downloadCount, + long previewCount, + WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { + super(); + this.url = url; + this.access = access; this.effectiveAccess = new EnumWrapper(effectiveAccess); this.effectivePermission = @@ -423,6 +599,7 @@ public Builder( public Builder( String url, + EnumWrapper access, WebLinkSharedLinkEffectiveAccessField effectiveAccess, EnumWrapper effectivePermission, boolean isPasswordEnabled, @@ -431,6 +608,7 @@ public Builder( WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = new EnumWrapper(effectiveAccess); this.effectivePermission = effectivePermission; @@ -442,6 +620,7 @@ public Builder( public Builder( String url, + EnumWrapper access, EnumWrapper effectiveAccess, WebLinkSharedLinkEffectivePermissionField effectivePermission, boolean isPasswordEnabled, @@ -450,6 +629,7 @@ public Builder( WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = effectiveAccess; this.effectivePermission = new EnumWrapper(effectivePermission); @@ -461,6 +641,7 @@ public Builder( public Builder( String url, + EnumWrapper access, EnumWrapper effectiveAccess, EnumWrapper effectivePermission, boolean isPasswordEnabled, @@ -469,6 +650,7 @@ public Builder( WebLinkSharedLinkOneTimePasscodeField oneTimePasscode) { super(); this.url = url; + this.access = access; this.effectiveAccess = effectiveAccess; this.effectivePermission = effectivePermission; this.isPasswordEnabled = isPasswordEnabled; @@ -495,16 +677,6 @@ public Builder vanityName(String vanityName) { return this; } - public Builder access(WebLinkSharedLinkAccessField access) { - this.access = new EnumWrapper(access); - return this; - } - - public Builder access(EnumWrapper access) { - this.access = access; - return this; - } - public Builder unsharedAt(OffsetDateTime unsharedAt) { this.unsharedAt = unsharedAt; this.markNullableFieldAsSet("unshared_at");