From 4378cf3c7759360701b17cfc4e653c240f959dc3 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 21 Jan 2026 10:20:23 -0800 Subject: [PATCH 1/2] feat: Add watermarking permissions and sources information (box/box-openapi#579) --- .codegen.json | 2 +- .../filefull/FileFullPermissionsField.java | 103 +++++++++++++++++- .../filefull/FileFullWatermarkInfoField.java | 52 ++++++++- .../FolderFullPermissionsField.java | 78 ++++++++++++- .../FolderFullWatermarkInfoField.java | 52 ++++++++- 5 files changed, 276 insertions(+), 11 deletions(-) diff --git a/.codegen.json b/.codegen.json index 2863d0164..89af8ed93 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "3e11b6f", "specHash": "425a724", "version": "10.4.0" } +{ "engineHash": "3e11b6f", "specHash": "4beaa19", "version": "10.4.0" } diff --git a/src/main/java/com/box/sdkgen/schemas/filefull/FileFullPermissionsField.java b/src/main/java/com/box/sdkgen/schemas/filefull/FileFullPermissionsField.java index d8611a030..44774352a 100644 --- a/src/main/java/com/box/sdkgen/schemas/filefull/FileFullPermissionsField.java +++ b/src/main/java/com/box/sdkgen/schemas/filefull/FileFullPermissionsField.java @@ -1,5 +1,6 @@ package com.box.sdkgen.schemas.filefull; +import com.box.sdkgen.internal.NullableFieldTracker; import com.box.sdkgen.internal.SerializableObject; import com.fasterxml.jackson.annotation.JsonFilter; import com.fasterxml.jackson.annotation.JsonProperty; @@ -59,6 +60,10 @@ public class FileFullPermissionsField extends SerializableObject { @JsonProperty("can_view_annotations_self") protected final boolean canViewAnnotationsSelf; + /** Specifies if the user can apply a watermark to this file. */ + @JsonProperty("can_apply_watermark") + protected Boolean canApplyWatermark; + public FileFullPermissionsField( @JsonProperty("can_delete") boolean canDelete, @JsonProperty("can_download") boolean canDownload, @@ -87,6 +92,24 @@ public FileFullPermissionsField( this.canViewAnnotationsSelf = canViewAnnotationsSelf; } + protected FileFullPermissionsField(Builder builder) { + super(); + this.canDelete = builder.canDelete; + this.canDownload = builder.canDownload; + this.canInviteCollaborator = builder.canInviteCollaborator; + this.canRename = builder.canRename; + this.canSetShareAccess = builder.canSetShareAccess; + this.canShare = builder.canShare; + this.canAnnotate = builder.canAnnotate; + this.canComment = builder.canComment; + this.canPreview = builder.canPreview; + this.canUpload = builder.canUpload; + this.canViewAnnotationsAll = builder.canViewAnnotationsAll; + this.canViewAnnotationsSelf = builder.canViewAnnotationsSelf; + this.canApplyWatermark = builder.canApplyWatermark; + markNullableFieldsAsSet(builder.getExplicitlySetNullableFields()); + } + public boolean getCanDelete() { return canDelete; } @@ -135,6 +158,10 @@ public boolean getCanViewAnnotationsSelf() { return canViewAnnotationsSelf; } + public Boolean getCanApplyWatermark() { + return canApplyWatermark; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -155,7 +182,8 @@ public boolean equals(Object o) { && Objects.equals(canPreview, casted.canPreview) && Objects.equals(canUpload, casted.canUpload) && Objects.equals(canViewAnnotationsAll, casted.canViewAnnotationsAll) - && Objects.equals(canViewAnnotationsSelf, casted.canViewAnnotationsSelf); + && Objects.equals(canViewAnnotationsSelf, casted.canViewAnnotationsSelf) + && Objects.equals(canApplyWatermark, casted.canApplyWatermark); } @Override @@ -172,7 +200,8 @@ public int hashCode() { canPreview, canUpload, canViewAnnotationsAll, - canViewAnnotationsSelf); + canViewAnnotationsSelf, + canApplyWatermark); } @Override @@ -225,6 +254,76 @@ public String toString() { + "canViewAnnotationsSelf='" + canViewAnnotationsSelf + '\'' + + ", " + + "canApplyWatermark='" + + canApplyWatermark + + '\'' + "}"; } + + public static class Builder extends NullableFieldTracker { + + protected final boolean canDelete; + + protected final boolean canDownload; + + protected final boolean canInviteCollaborator; + + protected final boolean canRename; + + protected final boolean canSetShareAccess; + + protected final boolean canShare; + + protected final boolean canAnnotate; + + protected final boolean canComment; + + protected final boolean canPreview; + + protected final boolean canUpload; + + protected final boolean canViewAnnotationsAll; + + protected final boolean canViewAnnotationsSelf; + + protected Boolean canApplyWatermark; + + public Builder( + boolean canDelete, + boolean canDownload, + boolean canInviteCollaborator, + boolean canRename, + boolean canSetShareAccess, + boolean canShare, + boolean canAnnotate, + boolean canComment, + boolean canPreview, + boolean canUpload, + boolean canViewAnnotationsAll, + boolean canViewAnnotationsSelf) { + super(); + this.canDelete = canDelete; + this.canDownload = canDownload; + this.canInviteCollaborator = canInviteCollaborator; + this.canRename = canRename; + this.canSetShareAccess = canSetShareAccess; + this.canShare = canShare; + this.canAnnotate = canAnnotate; + this.canComment = canComment; + this.canPreview = canPreview; + this.canUpload = canUpload; + this.canViewAnnotationsAll = canViewAnnotationsAll; + this.canViewAnnotationsSelf = canViewAnnotationsSelf; + } + + public Builder canApplyWatermark(Boolean canApplyWatermark) { + this.canApplyWatermark = canApplyWatermark; + return this; + } + + public FileFullPermissionsField build() { + return new FileFullPermissionsField(this); + } + } } diff --git a/src/main/java/com/box/sdkgen/schemas/filefull/FileFullWatermarkInfoField.java b/src/main/java/com/box/sdkgen/schemas/filefull/FileFullWatermarkInfoField.java index 13402d238..9945b8380 100644 --- a/src/main/java/com/box/sdkgen/schemas/filefull/FileFullWatermarkInfoField.java +++ b/src/main/java/com/box/sdkgen/schemas/filefull/FileFullWatermarkInfoField.java @@ -13,6 +13,14 @@ public class FileFullWatermarkInfoField extends SerializableObject { @JsonProperty("is_watermarked") protected Boolean isWatermarked; + /** Specifies if the watermark is inherited from any parent folder in the hierarchy. */ + @JsonProperty("is_watermark_inherited") + protected Boolean isWatermarkInherited; + + /** Specifies if the watermark is enforced by an access policy. */ + @JsonProperty("is_watermarked_by_access_policy") + protected Boolean isWatermarkedByAccessPolicy; + public FileFullWatermarkInfoField() { super(); } @@ -20,6 +28,8 @@ public FileFullWatermarkInfoField() { protected FileFullWatermarkInfoField(Builder builder) { super(); this.isWatermarked = builder.isWatermarked; + this.isWatermarkInherited = builder.isWatermarkInherited; + this.isWatermarkedByAccessPolicy = builder.isWatermarkedByAccessPolicy; markNullableFieldsAsSet(builder.getExplicitlySetNullableFields()); } @@ -27,6 +37,14 @@ public Boolean getIsWatermarked() { return isWatermarked; } + public Boolean getIsWatermarkInherited() { + return isWatermarkInherited; + } + + public Boolean getIsWatermarkedByAccessPolicy() { + return isWatermarkedByAccessPolicy; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -36,28 +54,56 @@ public boolean equals(Object o) { return false; } FileFullWatermarkInfoField casted = (FileFullWatermarkInfoField) o; - return Objects.equals(isWatermarked, casted.isWatermarked); + return Objects.equals(isWatermarked, casted.isWatermarked) + && Objects.equals(isWatermarkInherited, casted.isWatermarkInherited) + && Objects.equals(isWatermarkedByAccessPolicy, casted.isWatermarkedByAccessPolicy); } @Override public int hashCode() { - return Objects.hash(isWatermarked); + return Objects.hash(isWatermarked, isWatermarkInherited, isWatermarkedByAccessPolicy); } @Override public String toString() { - return "FileFullWatermarkInfoField{" + "isWatermarked='" + isWatermarked + '\'' + "}"; + return "FileFullWatermarkInfoField{" + + "isWatermarked='" + + isWatermarked + + '\'' + + ", " + + "isWatermarkInherited='" + + isWatermarkInherited + + '\'' + + ", " + + "isWatermarkedByAccessPolicy='" + + isWatermarkedByAccessPolicy + + '\'' + + "}"; } public static class Builder extends NullableFieldTracker { protected Boolean isWatermarked; + protected Boolean isWatermarkInherited; + + protected Boolean isWatermarkedByAccessPolicy; + public Builder isWatermarked(Boolean isWatermarked) { this.isWatermarked = isWatermarked; return this; } + public Builder isWatermarkInherited(Boolean isWatermarkInherited) { + this.isWatermarkInherited = isWatermarkInherited; + return this; + } + + public Builder isWatermarkedByAccessPolicy(Boolean isWatermarkedByAccessPolicy) { + this.isWatermarkedByAccessPolicy = isWatermarkedByAccessPolicy; + return this; + } + public FileFullWatermarkInfoField build() { return new FileFullWatermarkInfoField(this); } diff --git a/src/main/java/com/box/sdkgen/schemas/folderfull/FolderFullPermissionsField.java b/src/main/java/com/box/sdkgen/schemas/folderfull/FolderFullPermissionsField.java index 622c729f9..8e292b294 100644 --- a/src/main/java/com/box/sdkgen/schemas/folderfull/FolderFullPermissionsField.java +++ b/src/main/java/com/box/sdkgen/schemas/folderfull/FolderFullPermissionsField.java @@ -1,5 +1,6 @@ package com.box.sdkgen.schemas.folderfull; +import com.box.sdkgen.internal.NullableFieldTracker; import com.box.sdkgen.internal.SerializableObject; import com.fasterxml.jackson.annotation.JsonFilter; import com.fasterxml.jackson.annotation.JsonProperty; @@ -39,6 +40,10 @@ public class FolderFullPermissionsField extends SerializableObject { @JsonProperty("can_upload") protected final boolean canUpload; + /** Specifies if the user can apply a watermark to this folder and its contents. */ + @JsonProperty("can_apply_watermark") + protected Boolean canApplyWatermark; + public FolderFullPermissionsField( @JsonProperty("can_delete") boolean canDelete, @JsonProperty("can_download") boolean canDownload, @@ -57,6 +62,19 @@ public FolderFullPermissionsField( this.canUpload = canUpload; } + protected FolderFullPermissionsField(Builder builder) { + super(); + this.canDelete = builder.canDelete; + this.canDownload = builder.canDownload; + this.canInviteCollaborator = builder.canInviteCollaborator; + this.canRename = builder.canRename; + this.canSetShareAccess = builder.canSetShareAccess; + this.canShare = builder.canShare; + this.canUpload = builder.canUpload; + this.canApplyWatermark = builder.canApplyWatermark; + markNullableFieldsAsSet(builder.getExplicitlySetNullableFields()); + } + public boolean getCanDelete() { return canDelete; } @@ -85,6 +103,10 @@ public boolean getCanUpload() { return canUpload; } + public Boolean getCanApplyWatermark() { + return canApplyWatermark; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -100,7 +122,8 @@ public boolean equals(Object o) { && Objects.equals(canRename, casted.canRename) && Objects.equals(canSetShareAccess, casted.canSetShareAccess) && Objects.equals(canShare, casted.canShare) - && Objects.equals(canUpload, casted.canUpload); + && Objects.equals(canUpload, casted.canUpload) + && Objects.equals(canApplyWatermark, casted.canApplyWatermark); } @Override @@ -112,7 +135,8 @@ public int hashCode() { canRename, canSetShareAccess, canShare, - canUpload); + canUpload, + canApplyWatermark); } @Override @@ -145,6 +169,56 @@ public String toString() { + "canUpload='" + canUpload + '\'' + + ", " + + "canApplyWatermark='" + + canApplyWatermark + + '\'' + "}"; } + + public static class Builder extends NullableFieldTracker { + + protected final boolean canDelete; + + protected final boolean canDownload; + + protected final boolean canInviteCollaborator; + + protected final boolean canRename; + + protected final boolean canSetShareAccess; + + protected final boolean canShare; + + protected final boolean canUpload; + + protected Boolean canApplyWatermark; + + public Builder( + boolean canDelete, + boolean canDownload, + boolean canInviteCollaborator, + boolean canRename, + boolean canSetShareAccess, + boolean canShare, + boolean canUpload) { + super(); + this.canDelete = canDelete; + this.canDownload = canDownload; + this.canInviteCollaborator = canInviteCollaborator; + this.canRename = canRename; + this.canSetShareAccess = canSetShareAccess; + this.canShare = canShare; + this.canUpload = canUpload; + } + + public Builder canApplyWatermark(Boolean canApplyWatermark) { + this.canApplyWatermark = canApplyWatermark; + return this; + } + + public FolderFullPermissionsField build() { + return new FolderFullPermissionsField(this); + } + } } diff --git a/src/main/java/com/box/sdkgen/schemas/folderfull/FolderFullWatermarkInfoField.java b/src/main/java/com/box/sdkgen/schemas/folderfull/FolderFullWatermarkInfoField.java index b884b9654..a4cf7e8a7 100644 --- a/src/main/java/com/box/sdkgen/schemas/folderfull/FolderFullWatermarkInfoField.java +++ b/src/main/java/com/box/sdkgen/schemas/folderfull/FolderFullWatermarkInfoField.java @@ -13,6 +13,14 @@ public class FolderFullWatermarkInfoField extends SerializableObject { @JsonProperty("is_watermarked") protected Boolean isWatermarked; + /** Specifies if the watermark is inherited from any parent folder in the hierarchy. */ + @JsonProperty("is_watermark_inherited") + protected Boolean isWatermarkInherited; + + /** Specifies if the watermark is enforced by an access policy. */ + @JsonProperty("is_watermarked_by_access_policy") + protected Boolean isWatermarkedByAccessPolicy; + public FolderFullWatermarkInfoField() { super(); } @@ -20,6 +28,8 @@ public FolderFullWatermarkInfoField() { protected FolderFullWatermarkInfoField(Builder builder) { super(); this.isWatermarked = builder.isWatermarked; + this.isWatermarkInherited = builder.isWatermarkInherited; + this.isWatermarkedByAccessPolicy = builder.isWatermarkedByAccessPolicy; markNullableFieldsAsSet(builder.getExplicitlySetNullableFields()); } @@ -27,6 +37,14 @@ public Boolean getIsWatermarked() { return isWatermarked; } + public Boolean getIsWatermarkInherited() { + return isWatermarkInherited; + } + + public Boolean getIsWatermarkedByAccessPolicy() { + return isWatermarkedByAccessPolicy; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -36,28 +54,56 @@ public boolean equals(Object o) { return false; } FolderFullWatermarkInfoField casted = (FolderFullWatermarkInfoField) o; - return Objects.equals(isWatermarked, casted.isWatermarked); + return Objects.equals(isWatermarked, casted.isWatermarked) + && Objects.equals(isWatermarkInherited, casted.isWatermarkInherited) + && Objects.equals(isWatermarkedByAccessPolicy, casted.isWatermarkedByAccessPolicy); } @Override public int hashCode() { - return Objects.hash(isWatermarked); + return Objects.hash(isWatermarked, isWatermarkInherited, isWatermarkedByAccessPolicy); } @Override public String toString() { - return "FolderFullWatermarkInfoField{" + "isWatermarked='" + isWatermarked + '\'' + "}"; + return "FolderFullWatermarkInfoField{" + + "isWatermarked='" + + isWatermarked + + '\'' + + ", " + + "isWatermarkInherited='" + + isWatermarkInherited + + '\'' + + ", " + + "isWatermarkedByAccessPolicy='" + + isWatermarkedByAccessPolicy + + '\'' + + "}"; } public static class Builder extends NullableFieldTracker { protected Boolean isWatermarked; + protected Boolean isWatermarkInherited; + + protected Boolean isWatermarkedByAccessPolicy; + public Builder isWatermarked(Boolean isWatermarked) { this.isWatermarked = isWatermarked; return this; } + public Builder isWatermarkInherited(Boolean isWatermarkInherited) { + this.isWatermarkInherited = isWatermarkInherited; + return this; + } + + public Builder isWatermarkedByAccessPolicy(Boolean isWatermarkedByAccessPolicy) { + this.isWatermarkedByAccessPolicy = isWatermarkedByAccessPolicy; + return this; + } + public FolderFullWatermarkInfoField build() { return new FolderFullWatermarkInfoField(this); } From 2189a3b16353cd48d5b76943e9292e2ba760915a Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 21 Jan 2026 10:23:00 -0800 Subject: [PATCH 2/2] fix: add missing tag to API resources (box/box-openapi#580) --- .codegen.json | 2 +- docs/authorization.md | 2 +- docs/comments.md | 2 +- docs/events.md | 4 ++-- docs/files.md | 6 +++--- docs/fileversions.md | 2 +- docs/folders.md | 10 +++++----- docs/users.md | 4 ++-- .../managers/authorization/AuthorizationManager.java | 8 ++++---- .../com/box/sdkgen/managers/events/EventsManager.java | 10 ++++++---- .../box/sdkgen/managers/folders/FoldersManager.java | 8 ++++---- .../sdkgen/managers/users/CreateUserRequestBody.java | 2 +- .../managers/users/UpdateUserByIdRequestBody.java | 2 +- .../sdkgen/schemas/realtimeserver/RealtimeServer.java | 2 +- src/main/java/com/box/sdkgen/schemas/user/User.java | 2 +- 15 files changed, 34 insertions(+), 32 deletions(-) diff --git a/.codegen.json b/.codegen.json index 89af8ed93..b7840ea83 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "3e11b6f", "specHash": "4beaa19", "version": "10.4.0" } +{ "engineHash": "3e11b6f", "specHash": "ad08e8c", "version": "10.4.0" } diff --git a/docs/authorization.md b/docs/authorization.md index b2be220ec..5356772c0 100644 --- a/docs/authorization.md +++ b/docs/authorization.md @@ -46,7 +46,7 @@ authorization code or a server-side JWT assertion. An Access Token is a string that enables Box to verify that a request belongs to an authorized session. In the normal order of operations you will begin by requesting authentication from the -[authorize](#get-authorize) endpoint and Box will send you an +[authorize](https://developer.box.com/reference/get-authorize) endpoint and Box will send you an authorization code. You will then send this code to this endpoint to exchange it for diff --git a/docs/comments.md b/docs/comments.md index 4691d323e..4572fa92d 100644 --- a/docs/comments.md +++ b/docs/comments.md @@ -165,7 +165,7 @@ This function returns a value of type `CommentFull`. Returns the newly created comment object. Not all available fields are returned by default. Use the -[fields](#param-fields) query parameter to explicitly request +[fields](#parameter-fields) query parameter to explicitly request any specific fields. diff --git a/docs/events.md b/docs/events.md index 94013cc64..c826a9814 100644 --- a/docs/events.md +++ b/docs/events.md @@ -8,7 +8,7 @@ ## Get events long poll endpoint Returns a list of real-time servers that can be used for long-polling updates -to the [event stream](#get-events). +to the [event stream](https://developer.box.com/reference/get-events). Long polling is the concept where a HTTP request is kept open until the server sends a response, then repeating the process over and over to receive @@ -23,7 +23,7 @@ URLs. Next, make a long poll request to any of the provided URLs. When an event occurs in monitored account a response with the value `new_change` will be sent. The response contains no other details as it only serves as a prompt to take further action such as sending a -request to the [events endpoint](#get-events) with the last known +request to the [events endpoint](https://developer.box.com/reference/get-events) with the last known `stream_position`. After the server sends this response it closes the connection. You must now diff --git a/docs/files.md b/docs/files.md index bcb48a240..38d3faa2f 100644 --- a/docs/files.md +++ b/docs/files.md @@ -39,7 +39,7 @@ This function returns a value of type `FileFull`. Returns a file object. Not all available fields are returned by default. Use the -[fields](#param-fields) query parameter to explicitly request +[fields](#parameter-fields) query parameter to explicitly request any specific fields. @@ -77,7 +77,7 @@ This function returns a value of type `FileFull`. Returns a file object. Not all available fields are returned by default. Use the -[fields](#param-fields) query parameter to explicitly request +[fields](#parameter-fields) query parameter to explicitly request any specific fields. @@ -148,7 +148,7 @@ This function returns a value of type `FileFull`. Returns a new file object representing the copied file. Not all available fields are returned by default. Use the -[fields](#param-fields) query parameter to explicitly request +[fields](#parameter-fields) query parameter to explicitly request any specific fields. diff --git a/docs/fileversions.md b/docs/fileversions.md index 3f9153904..9bbdd3a01 100644 --- a/docs/fileversions.md +++ b/docs/fileversions.md @@ -76,7 +76,7 @@ This function returns a value of type `FileVersionFull`. Returns a specific version of a file. Not all available fields are returned by default. Use the -[fields](#param-fields) query parameter to explicitly request +[fields](#parameter-fields) query parameter to explicitly request any specific fields. diff --git a/docs/folders.md b/docs/folders.md index 5e36f6882..2bfee2c40 100644 --- a/docs/folders.md +++ b/docs/folders.md @@ -54,7 +54,7 @@ To fetch more items within the folder, use the [Get items in a folder](https://developer.box.com/reference/get-folders-id-items)) endpoint. Not all available fields are returned by default. Use the -[fields](#param-fields) query parameter to explicitly request +[fields](#parameter-fields) query parameter to explicitly request any specific fields. @@ -92,7 +92,7 @@ This function returns a value of type `FolderFull`. Returns a folder object for the updated folder Not all available fields are returned by default. Use the -[fields](#param-fields) query parameter to explicitly request +[fields](#parameter-fields) query parameter to explicitly request any specific fields. If the user is moving folders with a large number of items in all of @@ -140,7 +140,7 @@ Retrieves a page of items in a folder. These items can be files, folders, and web links. To request more information about the folder itself, like its size, -use the [Get a folder](#get-folders-id) endpoint instead. +use the [Get a folder](https://developer.box.com/reference/get-folders-id) endpoint instead. This operation is performed by calling function `getFolderItems`. @@ -200,7 +200,7 @@ This function returns a value of type `FolderFull`. Returns a folder object. Not all available fields are returned by default. Use the -[fields](#param-fields) query parameter to explicitly request +[fields](#parameter-fields) query parameter to explicitly request any specific fields. @@ -239,7 +239,7 @@ This function returns a value of type `FolderFull`. Returns a new folder object representing the copied folder. Not all available fields are returned by default. Use the -[fields](#param-fields) query parameter to explicitly request +[fields](#parameter-fields) query parameter to explicitly request any specific fields. diff --git a/docs/users.md b/docs/users.md index ce02fe99b..efc2df4cd 100644 --- a/docs/users.md +++ b/docs/users.md @@ -154,8 +154,8 @@ This function returns a value of type `UserFull`. Returns a single user object. Not all available fields are returned by default. Use the -[fields](#param-fields) query parameter to explicitly request -any specific fields using the [fields](#get-users-id--request--fields) +[fields](#parameter-fields) query parameter to explicitly request +any specific fields using the [fields](#parameter-fields) parameter. diff --git a/src/main/java/com/box/sdkgen/managers/authorization/AuthorizationManager.java b/src/main/java/com/box/sdkgen/managers/authorization/AuthorizationManager.java index 4c7d9bcac..9ad04e021 100644 --- a/src/main/java/com/box/sdkgen/managers/authorization/AuthorizationManager.java +++ b/src/main/java/com/box/sdkgen/managers/authorization/AuthorizationManager.java @@ -90,8 +90,8 @@ public void authorizeUser(AuthorizeUserQueryParams queryParams, AuthorizeUserHea * *

An Access Token is a string that enables Box to verify that a request belongs to an * authorized session. In the normal order of operations you will begin by requesting - * authentication from the [authorize](#get-authorize) endpoint and Box will send you an - * authorization code. + * authentication from the [authorize](https://developer.box.com/reference/get-authorize) endpoint + * and Box will send you an authorization code. * *

You will then send this code to this endpoint to exchange it for an Access Token. The * returned Access Token can then be used to to make Box API calls. @@ -108,8 +108,8 @@ public AccessToken requestAccessToken(PostOAuth2Token requestBody) { * *

An Access Token is a string that enables Box to verify that a request belongs to an * authorized session. In the normal order of operations you will begin by requesting - * authentication from the [authorize](#get-authorize) endpoint and Box will send you an - * authorization code. + * authentication from the [authorize](https://developer.box.com/reference/get-authorize) endpoint + * and Box will send you an authorization code. * *

You will then send this code to this endpoint to exchange it for an Access Token. The * returned Access Token can then be used to to make Box API calls. diff --git a/src/main/java/com/box/sdkgen/managers/events/EventsManager.java b/src/main/java/com/box/sdkgen/managers/events/EventsManager.java index 979af703f..e1a6d7bed 100644 --- a/src/main/java/com/box/sdkgen/managers/events/EventsManager.java +++ b/src/main/java/com/box/sdkgen/managers/events/EventsManager.java @@ -34,7 +34,7 @@ protected EventsManager(Builder builder) { /** * Returns a list of real-time servers that can be used for long-polling updates to the [event - * stream](#get-events). + * stream](https://developer.box.com/reference/get-events). * *

Long polling is the concept where a HTTP request is kept open until the server sends a * response, then repeating the process over and over to receive updated responses. @@ -46,7 +46,8 @@ protected EventsManager(Builder builder) { * *

When an event occurs in monitored account a response with the value `new_change` will be * sent. The response contains no other details as it only serves as a prompt to take further - * action such as sending a request to the [events endpoint](#get-events) with the last known + * action such as sending a request to the [events + * endpoint](https://developer.box.com/reference/get-events) with the last known * `stream_position`. * *

After the server sends this response it closes the connection. You must now repeat the long @@ -69,7 +70,7 @@ public RealtimeServers getEventsWithLongPolling() { /** * Returns a list of real-time servers that can be used for long-polling updates to the [event - * stream](#get-events). + * stream](https://developer.box.com/reference/get-events). * *

Long polling is the concept where a HTTP request is kept open until the server sends a * response, then repeating the process over and over to receive updated responses. @@ -81,7 +82,8 @@ public RealtimeServers getEventsWithLongPolling() { * *

When an event occurs in monitored account a response with the value `new_change` will be * sent. The response contains no other details as it only serves as a prompt to take further - * action such as sending a request to the [events endpoint](#get-events) with the last known + * action such as sending a request to the [events + * endpoint](https://developer.box.com/reference/get-events) with the last known * `stream_position`. * *

After the server sends this response it closes the connection. You must now repeat the long diff --git a/src/main/java/com/box/sdkgen/managers/folders/FoldersManager.java b/src/main/java/com/box/sdkgen/managers/folders/FoldersManager.java index 4b65da022..8aa60cdd7 100644 --- a/src/main/java/com/box/sdkgen/managers/folders/FoldersManager.java +++ b/src/main/java/com/box/sdkgen/managers/folders/FoldersManager.java @@ -398,7 +398,7 @@ public void deleteFolderById( * Retrieves a page of items in a folder. These items can be files, folders, and web links. * *

To request more information about the folder itself, like its size, use the [Get a - * folder](#get-folders-id) endpoint instead. + * folder](https://developer.box.com/reference/get-folders-id) endpoint instead. * * @param folderId The unique identifier that represent a folder. *

The ID for any folder can be determined by visiting this folder in the web application @@ -414,7 +414,7 @@ public Items getFolderItems(String folderId) { * Retrieves a page of items in a folder. These items can be files, folders, and web links. * *

To request more information about the folder itself, like its size, use the [Get a - * folder](#get-folders-id) endpoint instead. + * folder](https://developer.box.com/reference/get-folders-id) endpoint instead. * * @param folderId The unique identifier that represent a folder. *

The ID for any folder can be determined by visiting this folder in the web application @@ -431,7 +431,7 @@ public Items getFolderItems(String folderId, GetFolderItemsQueryParams queryPara * Retrieves a page of items in a folder. These items can be files, folders, and web links. * *

To request more information about the folder itself, like its size, use the [Get a - * folder](#get-folders-id) endpoint instead. + * folder](https://developer.box.com/reference/get-folders-id) endpoint instead. * * @param folderId The unique identifier that represent a folder. *

The ID for any folder can be determined by visiting this folder in the web application @@ -448,7 +448,7 @@ public Items getFolderItems(String folderId, GetFolderItemsHeaders headers) { * Retrieves a page of items in a folder. These items can be files, folders, and web links. * *

To request more information about the folder itself, like its size, use the [Get a - * folder](#get-folders-id) endpoint instead. + * folder](https://developer.box.com/reference/get-folders-id) endpoint instead. * * @param folderId The unique identifier that represent a folder. *

The ID for any folder can be determined by visiting this folder in the web application diff --git a/src/main/java/com/box/sdkgen/managers/users/CreateUserRequestBody.java b/src/main/java/com/box/sdkgen/managers/users/CreateUserRequestBody.java index 206ccf199..e1cf8fd8d 100644 --- a/src/main/java/com/box/sdkgen/managers/users/CreateUserRequestBody.java +++ b/src/main/java/com/box/sdkgen/managers/users/CreateUserRequestBody.java @@ -37,7 +37,7 @@ public class CreateUserRequestBody extends SerializableObject { /** * The language of the user, formatted in modified version of the [ISO - * 639-1](/guides/api-calls/language-codes) format. + * 639-1](https://developer.box.com/guides/api-calls/language-codes) format. */ protected String language; diff --git a/src/main/java/com/box/sdkgen/managers/users/UpdateUserByIdRequestBody.java b/src/main/java/com/box/sdkgen/managers/users/UpdateUserByIdRequestBody.java index cf2d13c0f..bac250baf 100644 --- a/src/main/java/com/box/sdkgen/managers/users/UpdateUserByIdRequestBody.java +++ b/src/main/java/com/box/sdkgen/managers/users/UpdateUserByIdRequestBody.java @@ -42,7 +42,7 @@ public class UpdateUserByIdRequestBody extends SerializableObject { /** * The language of the user, formatted in modified version of the [ISO - * 639-1](/guides/api-calls/language-codes) format. + * 639-1](https://developer.box.com/guides/api-calls/language-codes) format. */ protected String language; diff --git a/src/main/java/com/box/sdkgen/schemas/realtimeserver/RealtimeServer.java b/src/main/java/com/box/sdkgen/schemas/realtimeserver/RealtimeServer.java index f06cc762c..69cca1503 100644 --- a/src/main/java/com/box/sdkgen/schemas/realtimeserver/RealtimeServer.java +++ b/src/main/java/com/box/sdkgen/schemas/realtimeserver/RealtimeServer.java @@ -21,7 +21,7 @@ public class RealtimeServer extends SerializableObject { /** * The maximum number of retries this server will allow before a new long poll should be started - * by getting a [new list of server](#options-events). + * by getting a [new list of server](https://developer.box.com/reference/options-events). */ @JsonProperty("max_retries") protected String maxRetries; diff --git a/src/main/java/com/box/sdkgen/schemas/user/User.java b/src/main/java/com/box/sdkgen/schemas/user/User.java index 74c17b4e3..eaa2bf93d 100644 --- a/src/main/java/com/box/sdkgen/schemas/user/User.java +++ b/src/main/java/com/box/sdkgen/schemas/user/User.java @@ -30,7 +30,7 @@ public class User extends UserMini { /** * The language of the user, formatted in modified version of the [ISO - * 639-1](/guides/api-calls/language-codes) format. + * 639-1](https://developer.box.com/guides/api-calls/language-codes) format. */ protected String language;