diff --git a/.codegen.json b/.codegen.json
index 0d0685676..20b0a328d 100644
--- a/.codegen.json
+++ b/.codegen.json
@@ -1 +1 @@
-{ "engineHash": "205c0e9", "specHash": "5bf3652", "version": "0.1.0" }
+{ "engineHash": "be39be6", "specHash": "24fbeb9", "version": "0.1.0" }
diff --git a/README.md b/README.md
index 5cbe15237..1413a3a07 100644
--- a/README.md
+++ b/README.md
@@ -2,15 +2,15 @@
-# Box Java SDK Gen
+# Box Java SDK
[](http://opensource.box.com/badges)
-
-
+
+

-[](https://coveralls.io/github/box/box-java-sdk-gen?branch=main)
+[](https://coveralls.io/github/box/box-java-sdk-gen?branch=sdk-gen)
-We are excited to introduce the Beta Release of the latest generation of Box Java SDK Gen, designed to elevate the developer experience and streamline your integration with the Box Content Cloud.
+We are excited to introduce the stable Release of the latest generation of Box Java SDK, designed to elevate the developer experience and streamline your integration with the Box Content Cloud.
With this SDK, you’ll have access to:
@@ -27,7 +27,7 @@ Embrace the new generation of Box SDKs and unlock the full potential of the Box
-- [Box Java SDK Gen](#box-java-sdk-gen)
+- [Box Java SDK](#box-java-sdk)
- [Table of contents](#table-of-contents)
- [Installing](#installing)
- [Getting Started](#getting-started)
@@ -46,20 +46,12 @@ Embrace the new generation of Box SDKs and unlock the full potential of the Box
# Installing
-To generate a .jar file download the source code and run the following command:
-
-```console
-./gradlew build
-```
-
-.jar file will be generated in the build/libs directory.
-
-The SDK is also available on [Maven Central Repository](https://mvnrepository.com/artifact/com.box/box-java-sdk-gen). To include the SDK in your project, add the following dependency to your `pom.xml` file:
+The SDK is available on [Maven Central Repository](https://mvnrepository.com/artifact/com.box/box-java-sdk). To include the SDK in your project, add the following dependency to your `pom.xml` file:
```xml
com.box
- box-java-sdk-gen
+ box-java-sdk
VERSION
```
@@ -67,10 +59,11 @@ The SDK is also available on [Maven Central Repository](https://mvnrepository.co
To include the SDK in your project using Gradle, add the following dependency to your `build.gradle` file:
```gradle
-implementation 'com.box:box-java-sdk-gen:VERSION'
+implementation 'com.box:box-java-sdk:VERSION'
```
-Where `VERSION` is the version of the SDK you want to use. You can find the latest version in the [Maven Central Repository](https://mvnrepository.com/artifact/com.box/box-java-sdk-gen).
+Where `VERSION` is the version of the SDK you want to use. The next generation of the SDK starts with version `10.0.0`.
+You can find the latest version in the [Maven Central Repository](https://mvnrepository.com/artifact/com.box/box-java-sdk).
# Getting Started
@@ -97,7 +90,7 @@ Browse the [docs](docs/README.md) or see [API Reference](https://developer.box.c
# Upgrades
-The SDK is updated regularly to include new features, enhancements, and bug fixes. If you are upgrading from our legacy SDKs to this new generation SDKs is a straightforward process. Checkout the [migration guide](MIGRATION_GUIDE.md) and [changelog](CHANGELOG.md) for more information.
+The SDK is updated regularly to include new features, enhancements, and bug fixes. If you are upgrading from manual SDK to this new generated SDKm checkout the [migration guide](MIGRATION_GUIDE.md) and [changelog](CHANGELOG.md) for more information.
# Integration Tests
@@ -136,7 +129,7 @@ To run integration tests locally, you can use the following command:
# 3rd Party Libraries & Licenses
-The Java SDK Gen uses third-party libraries that are required for usage. Their licenses are listed below:
+The Java SDK uses third-party libraries that are required for usage. Their licenses are listed below:
1. [jackson-annotations v2.17.2](https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations/2.17.2)
Maven: `com.fasterxml.jackson.core:jackson-annotations:2.17.2`
@@ -175,9 +168,9 @@ The following libraries are required for running tests:
# Questions, Bugs, and Feature Requests?
Need to contact us directly? [Browse the issues
-tickets](https://github.com/box/box-java-sdk-gen/issues)! Or, if that
+tickets](https://github.com/box/box-java-sdk/issues)! Or, if that
doesn't work, [file a new
-one](https://github.com/box/box-java-sdk-gen/issues/new) and we will get
+one](https://github.com/box/box-java-sdk/issues/new) and we will get
back to you. If you have general questions about the Box API, you can
post to the [Box Developer Forum](https://forum.box.com/).
diff --git a/docs/archives.md b/docs/archives.md
index d0a2f7b9c..173edd0c6 100644
--- a/docs/archives.md
+++ b/docs/archives.md
@@ -9,6 +9,8 @@
Retrieves archives for an enterprise.
+To learn more about the archive APIs, see the [Archive API Guide](g://archives).
+
This operation is performed by calling function `getArchivesV2025R0`.
See the endpoint docs at
@@ -38,6 +40,8 @@ Returns a list of archives in the enterprise.
Creates an archive.
+To learn more about the archive APIs, see the [Archive API Guide](g://archives).
+
This operation is performed by calling function `createArchiveV2025R0`.
See the endpoint docs at
@@ -67,6 +71,8 @@ Returns a new archive object.
Permanently deletes an archive.
+To learn more about the archive APIs, see the [Archive API Guide](g://archives).
+
This operation is performed by calling function `deleteArchiveByIdV2025R0`.
See the endpoint docs at
diff --git a/docs/docgen.md b/docs/docgen.md
index d7246e4df..ad7ad936f 100644
--- a/docs/docgen.md
+++ b/docs/docgen.md
@@ -46,7 +46,7 @@ See the endpoint docs at
```
-client.getDocgen().getDocgenJobsV2025R0(new GetDocgenJobsV2025R0QueryParams.Builder().limit(500L).build())
+client.getDocgen().getDocgenJobsV2025R0(new GetDocgenJobsV2025R0QueryParams.Builder().limit(10000L).build())
```
### Arguments
diff --git a/migration-guide.md b/migration-guide.md
index 9c5f5fc47..a38d4f5de 100644
--- a/migration-guide.md
+++ b/migration-guide.md
@@ -1,4 +1,4 @@
-# Migration guide from `box-java-sdk` to `box-java-sdk-gen`
+# Migration guide from v4 to v10 version of `box-java-sdk`
@@ -31,58 +31,64 @@
- [As-User header](#as-user-header)
- [Custom Base URLs](#custom-base-urls)
- [Convenience methods](#convenience-methods)
+ - [Webhook validation](#webhook-validation)
- [Chunked upload of big files](#chunked-upload-of-big-files)
## Introduction
-The new `box-java-sdk-gen` SDK library, which helps Java developers to conveniently integrate with Box API.
-In the contrary to the previous library (`box-java-sdk`), it is not manually maintained, but auto-generated
+The v10 release of `box-java-sdk` library helps Java developers to conveniently integrate with Box API.
+In the contrary to the previous versions (v4 or lower), it is not manually maintained, but auto-generated
based on Open API Specification. This means you can leverage the most up-to-date Box API features in your
-applications without delay. More information and benefits of using the new can be found in the
-[README](https://github.com/box/box-java-sdk-gen/blob/main/README.md) file.
+applications without delay. We introduced this major version bump to reflect the significant codebase changes
+and to align with other Box SDKs, which will also adopt generated code starting from their v10 releases.
+More information and benefits of using the new can be found in the
+[README](https://github.com/box/box-java-sdk/blob/sdk-gen/README.md) file.
## Installation
-To install a new Box Java SDK GENERATED library, you can use Maven or Gradle. The library is available in the
-[Maven Central Repository](https://search.maven.org/artifact/com.box/box-java-sdk-gen).
+To install v10 version of Box Java SDK, you can use Maven or Gradle. The library is available in the
+[Maven Central Repository](https://search.maven.org/artifact/com.box/box-java-sdk).
-The new Box Java SDK GENERATED library could be used in the same project along with the legacy one.
-If you want to use a feature available only in the new SDK, you don't need to necessarily migrate all your code
-to use Box Java SDK GENERATED at once. You can use a new feature from the new library,
+Soon we are going to introduce v5 version of Box Java SDK that will combine package `com.box.sdk` from
+v4 and `com.box.sdkgen` from v10 of the SDK so that code from both versions could be used in the same project.
+If you would like to use a feature available only in the new SDK, you won't need to necessarily migrate all your code
+to use generated SDK at once. You will be able to use a new feature from the `com.box.sdkgen` package,
while keeping the rest of your code unchanged. Note that it may be required to use fully qualified class names
-from the new SDK to avoid conflicts with the old one. However, we recommend to fully migrate to the new SDK eventually.
+to avoid conflicts between two packages. However, we recommend to fully migrate to the v10 of the SDK eventually.
### Maven
-To add a dependency to your Maven project, add the following to your `pom.xml` file:
+To start using generated version of the SDK in you Maven project just bump the version of the Box Java SDK library
+in `pom.xml`to 10.0.0 or higher:
```xml
com.box
- box-java-sdk-gen
- VERSION
+ box-java-sdk
+ 10.0.0
```
### Gradle
-To add a dependency to your Gradle project, add the following to your `build.gradle` file:
+To bump a dependency in your Gradle project, bump the version useed in your `build.gradle` file:
```groovy
-implementation 'com.box:box-java-sdk-gen:VERSION'
+implementation 'com.box:box-java-sdk:10.0.0'
```
## Key differences
### Manager approach
-The main difference between the old SDK and the new one is the way how API methods are aggregated into objects.
+The main difference between the manual v4 version of the SDK and the nextgen generated one,
+is the way how API methods are aggregated into objects.
-**Old (`box-java-sdk`)**
+**Old (`v4`)**
-Firstly, in the old SDK to be able to perform any action on an API object, e.g. `User`, you first had to create its class.
+Firstly, in the v4 version of the SDK to be able to perform any action on an API object, e.g. `User`, you first had to create its class.
To do it is required to call:
```java
@@ -104,9 +110,9 @@ info.setName(name);
user.updateInfo(info);
```
-**New (`box-java-sdk-gen`)**
+**New (`v10`)**
-In the new SDK the API methods are grouped into dedicated manager classes, e.g. `User` object
+In the v10 version of the SDK the API methods are grouped into dedicated manager classes, e.g. `User` object
has dedicated `UserManager` class. Each manager class instance is available in `BoxClient` object.
The fields storing references to the managers are named in the plural form of the resource that the
manager handles - `client.users` for `UsersManager`. If you want to perform any operation
@@ -138,12 +144,12 @@ UserFull updatedUser = client.users.updateUserById(user.getId(), requestBody);
### Immutable design
-The new SDK is designed to be mostly immutable. This means that methods,
-which used to modify the existing object in old SDK now return a new instance of the class with the modified state.
+The v10 is designed to be mostly immutable. This means that methods,
+which used to modify the existing object in v4 release now return a new instance of the class with the modified state.
This design pattern is used to avoid side effects and make the code more predictable and easier to reason about.
Methods, which returns a new modified instance of an object, will always have a prefix `with` in their names, e.g.
-**New (`box-java-sdk-gen`)**
+**New (`v10`)**
```java
BoxClient client = new BoxClient(auth);
@@ -154,9 +160,9 @@ BoxClient asUserClient = client.withAsUserHeader("USER_ID");
To facilitate easier work with the new SDK, we have changed the API method signatures to be consistent and unified.
-**Old (`box-java-sdk`)**
+**Old (`v4`)**
-In the old SDK, API methods had numerous parameters, which were not grouped into any objects and were passed as separate arguments, e.g. the method for creating a sign request looked like this:
+In the manual version, API methods had numerous parameters, which were not grouped into any objects and were passed as separate arguments, e.g. the method for creating a sign request looked like this:
```java
public static BoxSignRequest.Info createSignRequest(BoxAPIConnection api, List sourceFiles,
@@ -164,9 +170,9 @@ public static BoxSignRequest.Info createSignRequest(BoxAPIConnection api, List() {{
### Custom Base URLs
-**Old (`box-java-sdk`)**
+**Old (`v4`)**
-In old SDK you could specify the custom base URLs, which will be used for API calls made by setting
+In v4 you could specify the custom base URLs, which will be used for API calls made by setting
the new values of static variables of the `API` class.
```java
@@ -545,9 +552,9 @@ api.setUploadURL("https://upload.example.com");
api.setTokenURL("https://example.com/token");
```
-**New (`box-java-sdk-gen`)**
+**New (`v10`)**
-In the new SDK this functionality has been implemented as part of the `BoxClient` class.
+Inv10 this functionality has been implemented as part of the `BoxClient` class.
By calling the `client.withCustomBaseUrls()` method, you can specify the custom base URLs that will be used for API
calls made by client. Following the immutability pattern, this call creates a new client, leaving the original client unmodified.
@@ -562,14 +569,102 @@ BoxClient clientWithCustomBaseUrl = client.withCustomBaseUrls(baseUrls);
## Convenience methods
+### Webhook validation
+
+Webhook validation is used to validate a webhook message by verifying the signature and the delivery timestamp.
+
+**Old (`v4`)**
+
+In v4, when you receive a webhook message from Box, to validate that it actually came from Box
+you need to call `BoxWebHookSignatureVerifier#verify(String sigVersion, String sigAlgorithm, String primarySignature, String secondarySignature, String payload, String deliveryTimestamp)` method.
+It would return a `boolean` value indicating whether the message was valid.
+
+```java
+// Webhook message contents are shown for demonstration purposes
+// Normally these would come from your HTTP handler
+
+// Webhook message HTTP body
+String messagePayload = "{"
++ "\"type\":\"webhook_event","
++ "\"webhook\":{"
++ "\"id\":\"1234567890\""
++ "},"
++ "\"trigger\":\"FILE.UPLOADED\","
++ "\"source\":{"
++ "\"id\":\"1234567890\","
++ "\"type\":\"file\","
++ "\"name\":\"Test.txt\""
++ "}}";
+
+// Webhook message HTTP headers
+Map messageHeaders = new HashMap();
+headers.put("BOX-DELIVERY-ID", "f96bb54b-ee16-4fc5-aa65-8c2d9e5b546f");
+headers.put("BOX-DELIVERY-TIMESTAMP", "2020-01-01T00:00:00-07:00");
+headers.put("BOX-SIGNATURE-ALGORITHM", "HmacSHA256");
+headers.put("BOX-SIGNATURE-PRIMARY", "6TfeAW3A1PASkgboxxA5yqHNKOwFyMWuEXny/FPD5hI=");
+headers.put("BOX-SIGNATURE-SECONDARY", "v+1CD1Jdo3muIcbpv5lxxgPglOqMfsNHPV899xWYydo=");
+headers.put("BOX-SIGNATURE-VERSION", "1");
+
+// Your application's webhook keys, obtained from the Box Developer Console
+String primaryKey = "4py2I9eSFb0ezXH5iPeQRcFK1LRLCdip";
+String secondaryKey = "Aq5EEEjAu4ssbz8n9UMu7EerI0LKj2TL";
+
+BoxWebHookSignatureVerifier verifier = new BoxWebHookSignatureVerifier(primaryKey, secondaryKey);
+boolean isValidMessage = verifier.verify(
+ headers.get("BOX-SIGNATURE-VERSION"),
+ headers.get("BOX-SIGNATURE-ALGORITHM"),
+ headers.get("BOX-SIGNATURE-PRIMARY"),
+ headers.get("BOX-SIGNATURE-SECONDARY"),
+ messagePayload,
+ headers.get("BOX-DELIVERY-TIMESTAMP")
+);
+```
+
+**New (`v10`)**
+
+In the v10 version of ths SDK, the `WebhooksManager.validateMessage()` method requires the `messagePayload` to be of type `string`,
+map of headers to be of type `Map`, and the primary and secondary keys to be of type `String`.
+
+```java
+// Webhook message HTTP body
+String messagePayload = "{"
+ + "\"type\":\"webhook_event","
+ + "\"webhook\":{"
+ + "\"id\":\"1234567890\""
+ + "},"
+ + "\"trigger\":\"FILE.UPLOADED\","
+ + "\"source\":{"
+ + "\"id\":\"1234567890\","
+ + "\"type\":\"file\","
+ + "\"name\":\"Test.txt\""
+ + "}}";
+
+// Webhook message HTTP headers
+Map messageHeaders = new HashMap();
+headers.put("BOX-DELIVERY-ID", "f96bb54b-ee16-4fc5-aa65-8c2d9e5b546f");
+headers.put("BOX-DELIVERY-TIMESTAMP", "2020-01-01T00:00:00-07:00");
+headers.put("BOX-SIGNATURE-ALGORITHM", "HmacSHA256");
+headers.put("BOX-SIGNATURE-PRIMARY", "6TfeAW3A1PASkgboxxA5yqHNKOwFyMWuEXny/FPD5hI=");
+headers.put("BOX-SIGNATURE-SECONDARY", "v+1CD1Jdo3muIcbpv5lxxgPglOqMfsNHPV899xWYydo=");
+headers.put("BOX-SIGNATURE-VERSION", "1");
+
+// Your application's webhook keys, obtained from the Box Developer Console
+String primaryKey = "4py2I9eSFb0ezXH5iPeQRcFK1LRLCdip";
+String secondaryKey = "Aq5EEEjAu4ssbz8n9UMu7EerI0LKj2TL";
+
+boolean isValidMessage = WebhooksManager.validateMessage(
+ messagePayload, messageHeaders, primaryKey, secondaryKey);
+)
+```
+
### Chunked upload of big files
For large files or in cases where the network connection is less reliable, you may want to upload the file in parts.
This allows a single part to fail without aborting the entire upload, and failed parts are being retried automatically.
-**Old (`box-java-sdk`)**
+**Old (`v4`)**
-In the old SDK, you could use the `uploadLargeFile` method of the `BoxFolder` class to upload a large file.
+In the v4, you could use the `uploadLargeFile` method of the `BoxFolder` class to upload a large file.
This method accepted a `FileInputStream` as the input stream and the file size as a parameter. The method also required
```java
@@ -580,9 +675,9 @@ BoxFolder rootFolder = BoxFolder.getRootFolder(api);
BoxFile.Info fileInfo = rootFolder.uploadLargeFile(inputStream, "My_Large_File.txt", myFile.length());
```
-**New (`box-java-sdk-gen`)**
+**New (`v10`)**
-In the new SDK, the equivalent method is `chunked_uploads.uploadBigFile()`. It accepts a file-like object
+In the v10, the equivalent method is `chunked_uploads.uploadBigFile()`. It accepts a file-like object
as the `file` parameter, and the `fileName` and `fileSize` parameters are now passed as arguments.
The `parentFolderId` parameter is also required to specify the folder where the file will be uploaded.
diff --git a/src/main/java/com/box/sdkgen/schemas/fileorfolder/FileOrFolder.java b/src/main/java/com/box/sdkgen/schemas/fileorfolder/FileOrFolder.java
deleted file mode 100644
index 0eef1deab..000000000
--- a/src/main/java/com/box/sdkgen/schemas/fileorfolder/FileOrFolder.java
+++ /dev/null
@@ -1,213 +0,0 @@
-package com.box.sdkgen.schemas.fileorfolder;
-
-import com.box.sdkgen.internal.OneOfTwo;
-import com.box.sdkgen.schemas.file.File;
-import com.box.sdkgen.schemas.folder.Folder;
-import com.box.sdkgen.schemas.foldermini.FolderMini;
-import com.box.sdkgen.schemas.usermini.UserMini;
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.box.sdkgen.serialization.json.JsonManager;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonMappingException;
-import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import java.io.IOException;
-import java.util.Date;
-
-@JsonDeserialize(using = FileOrFolder.FileOrFolderDeserializer.class)
-@JsonSerialize(using = OneOfTwo.OneOfTwoSerializer.class)
-public class FileOrFolder extends OneOfTwo {
-
- protected final String description;
-
- protected final Long size;
-
- protected final Date createdAt;
-
- protected final Date modifiedAt;
-
- protected final Date trashedAt;
-
- protected final Date purgedAt;
-
- protected final Date contentCreatedAt;
-
- protected final Date contentModifiedAt;
-
- protected final UserMini createdBy;
-
- protected final UserMini modifiedBy;
-
- protected final UserMini ownedBy;
-
- protected final FolderMini parent;
-
- protected final String itemStatus;
-
- protected final String sequenceId;
-
- protected final String name;
-
- protected final String id;
-
- protected final String etag;
-
- protected final String type;
-
- public FileOrFolder(File file) {
- super(file, null);
- this.description = file.getDescription();
- this.size = file.getSize();
- this.createdAt = file.getCreatedAt();
- this.modifiedAt = file.getModifiedAt();
- this.trashedAt = file.getTrashedAt();
- this.purgedAt = file.getPurgedAt();
- this.contentCreatedAt = file.getContentCreatedAt();
- this.contentModifiedAt = file.getContentModifiedAt();
- this.createdBy = file.getCreatedBy();
- this.modifiedBy = file.getModifiedBy();
- this.ownedBy = file.getOwnedBy();
- this.parent = file.getParent();
- this.itemStatus = EnumWrapper.convertToString(file.getItemStatus());
- this.sequenceId = file.getSequenceId();
- this.name = file.getName();
- this.id = file.getId();
- this.etag = file.getEtag();
- this.type = EnumWrapper.convertToString(file.getType());
- }
-
- public FileOrFolder(Folder folder) {
- super(null, folder);
- this.description = folder.getDescription();
- this.size = folder.getSize();
- this.createdAt = folder.getCreatedAt();
- this.modifiedAt = folder.getModifiedAt();
- this.trashedAt = folder.getTrashedAt();
- this.purgedAt = folder.getPurgedAt();
- this.contentCreatedAt = folder.getContentCreatedAt();
- this.contentModifiedAt = folder.getContentModifiedAt();
- this.createdBy = folder.getCreatedBy();
- this.modifiedBy = folder.getModifiedBy();
- this.ownedBy = folder.getOwnedBy();
- this.parent = folder.getParent();
- this.itemStatus = EnumWrapper.convertToString(folder.getItemStatus());
- this.sequenceId = folder.getSequenceId();
- this.name = folder.getName();
- this.id = folder.getId();
- this.etag = folder.getEtag();
- this.type = EnumWrapper.convertToString(folder.getType());
- }
-
- public boolean isFile() {
- return value0 != null;
- }
-
- public File getFile() {
- return value0;
- }
-
- public boolean isFolder() {
- return value1 != null;
- }
-
- public Folder getFolder() {
- return value1;
- }
-
- public String getDescription() {
- return description;
- }
-
- public long getSize() {
- return size;
- }
-
- public Date getCreatedAt() {
- return createdAt;
- }
-
- public Date getModifiedAt() {
- return modifiedAt;
- }
-
- public Date getTrashedAt() {
- return trashedAt;
- }
-
- public Date getPurgedAt() {
- return purgedAt;
- }
-
- public Date getContentCreatedAt() {
- return contentCreatedAt;
- }
-
- public Date getContentModifiedAt() {
- return contentModifiedAt;
- }
-
- public UserMini getCreatedBy() {
- return createdBy;
- }
-
- public UserMini getModifiedBy() {
- return modifiedBy;
- }
-
- public UserMini getOwnedBy() {
- return ownedBy;
- }
-
- public FolderMini getParent() {
- return parent;
- }
-
- public String getItemStatus() {
- return itemStatus;
- }
-
- public String getSequenceId() {
- return sequenceId;
- }
-
- public String getName() {
- return name;
- }
-
- public String getId() {
- return id;
- }
-
- public String getEtag() {
- return etag;
- }
-
- public String getType() {
- return type;
- }
-
- static class FileOrFolderDeserializer extends JsonDeserializer {
-
- public FileOrFolderDeserializer() {
- super();
- }
-
- @Override
- public FileOrFolder deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException {
- JsonNode node = JsonManager.jsonToSerializedData(jp);
- JsonNode discriminant0 = node.get("type");
- if (!(discriminant0 == null)) {
- switch (discriminant0.asText()) {
- case "file":
- return new FileOrFolder(JsonManager.deserialize(node, File.class));
- case "folder":
- return new FileOrFolder(JsonManager.deserialize(node, Folder.class));
- }
- }
- throw new JsonMappingException(jp, "Unable to deserialize FileOrFolder");
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/metadataqueryindex/MetadataQueryIndex.java b/src/main/java/com/box/sdkgen/schemas/metadataqueryindex/MetadataQueryIndex.java
deleted file mode 100644
index f1461e06f..000000000
--- a/src/main/java/com/box/sdkgen/schemas/metadataqueryindex/MetadataQueryIndex.java
+++ /dev/null
@@ -1,144 +0,0 @@
-package com.box.sdkgen.schemas.metadataqueryindex;
-
-import com.box.sdkgen.internal.NullableFieldTracker;
-import com.box.sdkgen.internal.SerializableObject;
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.fasterxml.jackson.annotation.JsonFilter;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import java.util.List;
-import java.util.Objects;
-
-@JsonFilter("nullablePropertyFilter")
-public class MetadataQueryIndex extends SerializableObject {
-
- protected String id;
-
- protected final String type;
-
- @JsonDeserialize(
- using = MetadataQueryIndexStatusField.MetadataQueryIndexStatusFieldDeserializer.class)
- @JsonSerialize(
- using = MetadataQueryIndexStatusField.MetadataQueryIndexStatusFieldSerializer.class)
- protected final EnumWrapper status;
-
- protected List fields;
-
- public MetadataQueryIndex(String type, MetadataQueryIndexStatusField status) {
- super();
- this.type = type;
- this.status = new EnumWrapper(status);
- }
-
- public MetadataQueryIndex(
- @JsonProperty("type") String type,
- @JsonProperty("status") EnumWrapper status) {
- super();
- this.type = type;
- this.status = status;
- }
-
- protected MetadataQueryIndex(Builder builder) {
- super();
- this.id = builder.id;
- this.type = builder.type;
- this.status = builder.status;
- this.fields = builder.fields;
- markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
- }
-
- public String getId() {
- return id;
- }
-
- public String getType() {
- return type;
- }
-
- public EnumWrapper getStatus() {
- return status;
- }
-
- public List getFields() {
- return fields;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MetadataQueryIndex casted = (MetadataQueryIndex) o;
- return Objects.equals(id, casted.id)
- && Objects.equals(type, casted.type)
- && Objects.equals(status, casted.status)
- && Objects.equals(fields, casted.fields);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, type, status, fields);
- }
-
- @Override
- public String toString() {
- return "MetadataQueryIndex{"
- + "id='"
- + id
- + '\''
- + ", "
- + "type='"
- + type
- + '\''
- + ", "
- + "status='"
- + status
- + '\''
- + ", "
- + "fields='"
- + fields
- + '\''
- + "}";
- }
-
- public static class Builder extends NullableFieldTracker {
-
- protected String id;
-
- protected final String type;
-
- protected final EnumWrapper status;
-
- protected List fields;
-
- public Builder(String type, MetadataQueryIndexStatusField status) {
- super();
- this.type = type;
- this.status = new EnumWrapper(status);
- }
-
- public Builder(String type, EnumWrapper status) {
- super();
- this.type = type;
- this.status = status;
- }
-
- public Builder id(String id) {
- this.id = id;
- return this;
- }
-
- public Builder fields(List fields) {
- this.fields = fields;
- return this;
- }
-
- public MetadataQueryIndex build() {
- return new MetadataQueryIndex(this);
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/metadataqueryindex/MetadataQueryIndexFieldsField.java b/src/main/java/com/box/sdkgen/schemas/metadataqueryindex/MetadataQueryIndexFieldsField.java
deleted file mode 100644
index aabe1f4e1..000000000
--- a/src/main/java/com/box/sdkgen/schemas/metadataqueryindex/MetadataQueryIndexFieldsField.java
+++ /dev/null
@@ -1,104 +0,0 @@
-package com.box.sdkgen.schemas.metadataqueryindex;
-
-import com.box.sdkgen.internal.NullableFieldTracker;
-import com.box.sdkgen.internal.SerializableObject;
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.fasterxml.jackson.annotation.JsonFilter;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import java.util.Objects;
-
-@JsonFilter("nullablePropertyFilter")
-public class MetadataQueryIndexFieldsField extends SerializableObject {
-
- protected String key;
-
- @JsonDeserialize(
- using =
- MetadataQueryIndexFieldsSortDirectionField
- .MetadataQueryIndexFieldsSortDirectionFieldDeserializer.class)
- @JsonSerialize(
- using =
- MetadataQueryIndexFieldsSortDirectionField
- .MetadataQueryIndexFieldsSortDirectionFieldSerializer.class)
- @JsonProperty("sort_direction")
- protected EnumWrapper sortDirection;
-
- public MetadataQueryIndexFieldsField() {
- super();
- }
-
- protected MetadataQueryIndexFieldsField(Builder builder) {
- super();
- this.key = builder.key;
- this.sortDirection = builder.sortDirection;
- markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
- }
-
- public String getKey() {
- return key;
- }
-
- public EnumWrapper getSortDirection() {
- return sortDirection;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MetadataQueryIndexFieldsField casted = (MetadataQueryIndexFieldsField) o;
- return Objects.equals(key, casted.key) && Objects.equals(sortDirection, casted.sortDirection);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(key, sortDirection);
- }
-
- @Override
- public String toString() {
- return "MetadataQueryIndexFieldsField{"
- + "key='"
- + key
- + '\''
- + ", "
- + "sortDirection='"
- + sortDirection
- + '\''
- + "}";
- }
-
- public static class Builder extends NullableFieldTracker {
-
- protected String key;
-
- protected EnumWrapper sortDirection;
-
- public Builder key(String key) {
- this.key = key;
- return this;
- }
-
- public Builder sortDirection(MetadataQueryIndexFieldsSortDirectionField sortDirection) {
- this.sortDirection =
- new EnumWrapper(sortDirection);
- return this;
- }
-
- public Builder sortDirection(
- EnumWrapper sortDirection) {
- this.sortDirection = sortDirection;
- return this;
- }
-
- public MetadataQueryIndexFieldsField build() {
- return new MetadataQueryIndexFieldsField(this);
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/metadataqueryindex/MetadataQueryIndexFieldsSortDirectionField.java b/src/main/java/com/box/sdkgen/schemas/metadataqueryindex/MetadataQueryIndexFieldsSortDirectionField.java
deleted file mode 100644
index 75c387f89..000000000
--- a/src/main/java/com/box/sdkgen/schemas/metadataqueryindex/MetadataQueryIndexFieldsSortDirectionField.java
+++ /dev/null
@@ -1,63 +0,0 @@
-package com.box.sdkgen.schemas.metadataqueryindex;
-
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.box.sdkgen.serialization.json.Valuable;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonSerializer;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import java.io.IOException;
-import java.util.Arrays;
-
-public enum MetadataQueryIndexFieldsSortDirectionField implements Valuable {
- ASC("asc"),
- DESC("desc");
-
- private final String value;
-
- MetadataQueryIndexFieldsSortDirectionField(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static class MetadataQueryIndexFieldsSortDirectionFieldDeserializer
- extends JsonDeserializer> {
-
- public MetadataQueryIndexFieldsSortDirectionFieldDeserializer() {
- super();
- }
-
- @Override
- public EnumWrapper deserialize(
- JsonParser p, DeserializationContext ctxt) throws IOException {
- String value = p.getValueAsString();
- return Arrays.stream(MetadataQueryIndexFieldsSortDirectionField.values())
- .filter((v) -> v.getValue().equalsIgnoreCase(value))
- .findFirst()
- .map(EnumWrapper::new)
- .orElse(new EnumWrapper(value));
- }
- }
-
- public static class MetadataQueryIndexFieldsSortDirectionFieldSerializer
- extends JsonSerializer> {
-
- public MetadataQueryIndexFieldsSortDirectionFieldSerializer() {
- super();
- }
-
- @Override
- public void serialize(
- EnumWrapper value,
- JsonGenerator gen,
- SerializerProvider serializers)
- throws IOException {
- gen.writeString(value.getStringValue());
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/metadataqueryindex/MetadataQueryIndexStatusField.java b/src/main/java/com/box/sdkgen/schemas/metadataqueryindex/MetadataQueryIndexStatusField.java
deleted file mode 100644
index 22f4529ba..000000000
--- a/src/main/java/com/box/sdkgen/schemas/metadataqueryindex/MetadataQueryIndexStatusField.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package com.box.sdkgen.schemas.metadataqueryindex;
-
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.box.sdkgen.serialization.json.Valuable;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonSerializer;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import java.io.IOException;
-import java.util.Arrays;
-
-public enum MetadataQueryIndexStatusField implements Valuable {
- BUILDING("building"),
- ACTIVE("active"),
- DISABLED("disabled");
-
- private final String value;
-
- MetadataQueryIndexStatusField(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static class MetadataQueryIndexStatusFieldDeserializer
- extends JsonDeserializer> {
-
- public MetadataQueryIndexStatusFieldDeserializer() {
- super();
- }
-
- @Override
- public EnumWrapper deserialize(
- JsonParser p, DeserializationContext ctxt) throws IOException {
- String value = p.getValueAsString();
- return Arrays.stream(MetadataQueryIndexStatusField.values())
- .filter((v) -> v.getValue().equalsIgnoreCase(value))
- .findFirst()
- .map(EnumWrapper::new)
- .orElse(new EnumWrapper(value));
- }
- }
-
- public static class MetadataQueryIndexStatusFieldSerializer
- extends JsonSerializer> {
-
- public MetadataQueryIndexStatusFieldSerializer() {
- super();
- }
-
- @Override
- public void serialize(
- EnumWrapper value,
- JsonGenerator gen,
- SerializerProvider serializers)
- throws IOException {
- gen.writeString(value.getStringValue());
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/retentionpolicyassignmentbase/RetentionPolicyAssignmentBase.java b/src/main/java/com/box/sdkgen/schemas/retentionpolicyassignmentbase/RetentionPolicyAssignmentBase.java
deleted file mode 100644
index 41c9beb1f..000000000
--- a/src/main/java/com/box/sdkgen/schemas/retentionpolicyassignmentbase/RetentionPolicyAssignmentBase.java
+++ /dev/null
@@ -1,108 +0,0 @@
-package com.box.sdkgen.schemas.retentionpolicyassignmentbase;
-
-import com.box.sdkgen.internal.NullableFieldTracker;
-import com.box.sdkgen.internal.SerializableObject;
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.fasterxml.jackson.annotation.JsonFilter;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import java.util.Objects;
-
-@JsonFilter("nullablePropertyFilter")
-public class RetentionPolicyAssignmentBase extends SerializableObject {
-
- protected final String id;
-
- @JsonDeserialize(
- using =
- RetentionPolicyAssignmentBaseTypeField.RetentionPolicyAssignmentBaseTypeFieldDeserializer
- .class)
- @JsonSerialize(
- using =
- RetentionPolicyAssignmentBaseTypeField.RetentionPolicyAssignmentBaseTypeFieldSerializer
- .class)
- protected EnumWrapper type;
-
- public RetentionPolicyAssignmentBase(@JsonProperty("id") String id) {
- super();
- this.id = id;
- this.type =
- new EnumWrapper(
- RetentionPolicyAssignmentBaseTypeField.RETENTION_POLICY_ASSIGNMENT);
- }
-
- protected RetentionPolicyAssignmentBase(Builder builder) {
- super();
- this.id = builder.id;
- this.type = builder.type;
- markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
- }
-
- public String getId() {
- return id;
- }
-
- public EnumWrapper getType() {
- return type;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- RetentionPolicyAssignmentBase casted = (RetentionPolicyAssignmentBase) o;
- return Objects.equals(id, casted.id) && Objects.equals(type, casted.type);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, type);
- }
-
- @Override
- public String toString() {
- return "RetentionPolicyAssignmentBase{"
- + "id='"
- + id
- + '\''
- + ", "
- + "type='"
- + type
- + '\''
- + "}";
- }
-
- public static class Builder extends NullableFieldTracker {
-
- protected final String id;
-
- protected EnumWrapper type;
-
- public Builder(String id) {
- super();
- this.id = id;
- this.type =
- new EnumWrapper(
- RetentionPolicyAssignmentBaseTypeField.RETENTION_POLICY_ASSIGNMENT);
- }
-
- public Builder type(RetentionPolicyAssignmentBaseTypeField type) {
- this.type = new EnumWrapper(type);
- return this;
- }
-
- public Builder type(EnumWrapper type) {
- this.type = type;
- return this;
- }
-
- public RetentionPolicyAssignmentBase build() {
- return new RetentionPolicyAssignmentBase(this);
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/retentionpolicyassignmentbase/RetentionPolicyAssignmentBaseTypeField.java b/src/main/java/com/box/sdkgen/schemas/retentionpolicyassignmentbase/RetentionPolicyAssignmentBaseTypeField.java
deleted file mode 100644
index 5a119cc1c..000000000
--- a/src/main/java/com/box/sdkgen/schemas/retentionpolicyassignmentbase/RetentionPolicyAssignmentBaseTypeField.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.box.sdkgen.schemas.retentionpolicyassignmentbase;
-
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.box.sdkgen.serialization.json.Valuable;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonSerializer;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import java.io.IOException;
-import java.util.Arrays;
-
-public enum RetentionPolicyAssignmentBaseTypeField implements Valuable {
- RETENTION_POLICY_ASSIGNMENT("retention_policy_assignment");
-
- private final String value;
-
- RetentionPolicyAssignmentBaseTypeField(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static class RetentionPolicyAssignmentBaseTypeFieldDeserializer
- extends JsonDeserializer> {
-
- public RetentionPolicyAssignmentBaseTypeFieldDeserializer() {
- super();
- }
-
- @Override
- public EnumWrapper deserialize(
- JsonParser p, DeserializationContext ctxt) throws IOException {
- String value = p.getValueAsString();
- return Arrays.stream(RetentionPolicyAssignmentBaseTypeField.values())
- .filter((v) -> v.getValue().equalsIgnoreCase(value))
- .findFirst()
- .map(EnumWrapper::new)
- .orElse(new EnumWrapper(value));
- }
- }
-
- public static class RetentionPolicyAssignmentBaseTypeFieldSerializer
- extends JsonSerializer> {
-
- public RetentionPolicyAssignmentBaseTypeFieldSerializer() {
- super();
- }
-
- @Override
- public void serialize(
- EnumWrapper value,
- JsonGenerator gen,
- SerializerProvider serializers)
- throws IOException {
- gen.writeString(value.getStringValue());
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocation.java b/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocation.java
deleted file mode 100644
index 7742a06c6..000000000
--- a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocation.java
+++ /dev/null
@@ -1,268 +0,0 @@
-package com.box.sdkgen.schemas.skillinvocation;
-
-import com.box.sdkgen.internal.NullableFieldTracker;
-import com.box.sdkgen.internal.SerializableObject;
-import com.box.sdkgen.internal.utils.DateTimeUtils;
-import com.box.sdkgen.schemas.event.Event;
-import com.box.sdkgen.schemas.file.File;
-import com.box.sdkgen.schemas.fileorfolder.FileOrFolder;
-import com.box.sdkgen.schemas.folder.Folder;
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.fasterxml.jackson.annotation.JsonFilter;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import java.util.Date;
-import java.util.Objects;
-
-@JsonFilter("nullablePropertyFilter")
-public class SkillInvocation extends SerializableObject {
-
- @JsonDeserialize(using = SkillInvocationTypeField.SkillInvocationTypeFieldDeserializer.class)
- @JsonSerialize(using = SkillInvocationTypeField.SkillInvocationTypeFieldSerializer.class)
- protected EnumWrapper type;
-
- protected String id;
-
- protected SkillInvocationSkillField skill;
-
- protected SkillInvocationTokenField token;
-
- protected SkillInvocationStatusField status;
-
- @JsonProperty("created_at")
- @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
- @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
- protected Date createdAt;
-
- protected String trigger;
-
- protected SkillInvocationEnterpriseField enterprise;
-
- protected FileOrFolder source;
-
- protected Event event;
-
- public SkillInvocation() {
- super();
- }
-
- protected SkillInvocation(Builder builder) {
- super();
- this.type = builder.type;
- this.id = builder.id;
- this.skill = builder.skill;
- this.token = builder.token;
- this.status = builder.status;
- this.createdAt = builder.createdAt;
- this.trigger = builder.trigger;
- this.enterprise = builder.enterprise;
- this.source = builder.source;
- this.event = builder.event;
- markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
- }
-
- public EnumWrapper getType() {
- return type;
- }
-
- public String getId() {
- return id;
- }
-
- public SkillInvocationSkillField getSkill() {
- return skill;
- }
-
- public SkillInvocationTokenField getToken() {
- return token;
- }
-
- public SkillInvocationStatusField getStatus() {
- return status;
- }
-
- public Date getCreatedAt() {
- return createdAt;
- }
-
- public String getTrigger() {
- return trigger;
- }
-
- public SkillInvocationEnterpriseField getEnterprise() {
- return enterprise;
- }
-
- public FileOrFolder getSource() {
- return source;
- }
-
- public Event getEvent() {
- return event;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SkillInvocation casted = (SkillInvocation) o;
- return Objects.equals(type, casted.type)
- && Objects.equals(id, casted.id)
- && Objects.equals(skill, casted.skill)
- && Objects.equals(token, casted.token)
- && Objects.equals(status, casted.status)
- && Objects.equals(createdAt, casted.createdAt)
- && Objects.equals(trigger, casted.trigger)
- && Objects.equals(enterprise, casted.enterprise)
- && Objects.equals(source, casted.source)
- && Objects.equals(event, casted.event);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(
- type, id, skill, token, status, createdAt, trigger, enterprise, source, event);
- }
-
- @Override
- public String toString() {
- return "SkillInvocation{"
- + "type='"
- + type
- + '\''
- + ", "
- + "id='"
- + id
- + '\''
- + ", "
- + "skill='"
- + skill
- + '\''
- + ", "
- + "token='"
- + token
- + '\''
- + ", "
- + "status='"
- + status
- + '\''
- + ", "
- + "createdAt='"
- + createdAt
- + '\''
- + ", "
- + "trigger='"
- + trigger
- + '\''
- + ", "
- + "enterprise='"
- + enterprise
- + '\''
- + ", "
- + "source='"
- + source
- + '\''
- + ", "
- + "event='"
- + event
- + '\''
- + "}";
- }
-
- public static class Builder extends NullableFieldTracker {
-
- protected EnumWrapper type;
-
- protected String id;
-
- protected SkillInvocationSkillField skill;
-
- protected SkillInvocationTokenField token;
-
- protected SkillInvocationStatusField status;
-
- protected Date createdAt;
-
- protected String trigger;
-
- protected SkillInvocationEnterpriseField enterprise;
-
- protected FileOrFolder source;
-
- protected Event event;
-
- public Builder type(SkillInvocationTypeField type) {
- this.type = new EnumWrapper(type);
- return this;
- }
-
- public Builder type(EnumWrapper type) {
- this.type = type;
- return this;
- }
-
- public Builder id(String id) {
- this.id = id;
- return this;
- }
-
- public Builder skill(SkillInvocationSkillField skill) {
- this.skill = skill;
- return this;
- }
-
- public Builder token(SkillInvocationTokenField token) {
- this.token = token;
- return this;
- }
-
- public Builder status(SkillInvocationStatusField status) {
- this.status = status;
- return this;
- }
-
- public Builder createdAt(Date createdAt) {
- this.createdAt = createdAt;
- return this;
- }
-
- public Builder trigger(String trigger) {
- this.trigger = trigger;
- return this;
- }
-
- public Builder enterprise(SkillInvocationEnterpriseField enterprise) {
- this.enterprise = enterprise;
- return this;
- }
-
- public Builder source(File source) {
- this.source = new FileOrFolder(source);
- return this;
- }
-
- public Builder source(Folder source) {
- this.source = new FileOrFolder(source);
- return this;
- }
-
- public Builder source(FileOrFolder source) {
- this.source = source;
- return this;
- }
-
- public Builder event(Event event) {
- this.event = event;
- return this;
- }
-
- public SkillInvocation build() {
- return new SkillInvocation(this);
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationEnterpriseField.java b/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationEnterpriseField.java
deleted file mode 100644
index 053cb5541..000000000
--- a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationEnterpriseField.java
+++ /dev/null
@@ -1,117 +0,0 @@
-package com.box.sdkgen.schemas.skillinvocation;
-
-import com.box.sdkgen.internal.NullableFieldTracker;
-import com.box.sdkgen.internal.SerializableObject;
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.fasterxml.jackson.annotation.JsonFilter;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import java.util.Objects;
-
-@JsonFilter("nullablePropertyFilter")
-public class SkillInvocationEnterpriseField extends SerializableObject {
-
- protected String id;
-
- @JsonDeserialize(
- using =
- SkillInvocationEnterpriseTypeField.SkillInvocationEnterpriseTypeFieldDeserializer.class)
- @JsonSerialize(
- using = SkillInvocationEnterpriseTypeField.SkillInvocationEnterpriseTypeFieldSerializer.class)
- protected EnumWrapper type;
-
- protected String name;
-
- public SkillInvocationEnterpriseField() {
- super();
- }
-
- protected SkillInvocationEnterpriseField(Builder builder) {
- super();
- this.id = builder.id;
- this.type = builder.type;
- this.name = builder.name;
- markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
- }
-
- public String getId() {
- return id;
- }
-
- public EnumWrapper getType() {
- return type;
- }
-
- public String getName() {
- return name;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SkillInvocationEnterpriseField casted = (SkillInvocationEnterpriseField) o;
- return Objects.equals(id, casted.id)
- && Objects.equals(type, casted.type)
- && Objects.equals(name, casted.name);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, type, name);
- }
-
- @Override
- public String toString() {
- return "SkillInvocationEnterpriseField{"
- + "id='"
- + id
- + '\''
- + ", "
- + "type='"
- + type
- + '\''
- + ", "
- + "name='"
- + name
- + '\''
- + "}";
- }
-
- public static class Builder extends NullableFieldTracker {
-
- protected String id;
-
- protected EnumWrapper type;
-
- protected String name;
-
- public Builder id(String id) {
- this.id = id;
- return this;
- }
-
- public Builder type(SkillInvocationEnterpriseTypeField type) {
- this.type = new EnumWrapper(type);
- return this;
- }
-
- public Builder type(EnumWrapper type) {
- this.type = type;
- return this;
- }
-
- public Builder name(String name) {
- this.name = name;
- return this;
- }
-
- public SkillInvocationEnterpriseField build() {
- return new SkillInvocationEnterpriseField(this);
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationEnterpriseTypeField.java b/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationEnterpriseTypeField.java
deleted file mode 100644
index a45d617d1..000000000
--- a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationEnterpriseTypeField.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.box.sdkgen.schemas.skillinvocation;
-
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.box.sdkgen.serialization.json.Valuable;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonSerializer;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import java.io.IOException;
-import java.util.Arrays;
-
-public enum SkillInvocationEnterpriseTypeField implements Valuable {
- ENTERPRISE("enterprise");
-
- private final String value;
-
- SkillInvocationEnterpriseTypeField(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static class SkillInvocationEnterpriseTypeFieldDeserializer
- extends JsonDeserializer> {
-
- public SkillInvocationEnterpriseTypeFieldDeserializer() {
- super();
- }
-
- @Override
- public EnumWrapper deserialize(
- JsonParser p, DeserializationContext ctxt) throws IOException {
- String value = p.getValueAsString();
- return Arrays.stream(SkillInvocationEnterpriseTypeField.values())
- .filter((v) -> v.getValue().equalsIgnoreCase(value))
- .findFirst()
- .map(EnumWrapper::new)
- .orElse(new EnumWrapper(value));
- }
- }
-
- public static class SkillInvocationEnterpriseTypeFieldSerializer
- extends JsonSerializer> {
-
- public SkillInvocationEnterpriseTypeFieldSerializer() {
- super();
- }
-
- @Override
- public void serialize(
- EnumWrapper value,
- JsonGenerator gen,
- SerializerProvider serializers)
- throws IOException {
- gen.writeString(value.getStringValue());
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationSkillField.java b/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationSkillField.java
deleted file mode 100644
index d0524f67e..000000000
--- a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationSkillField.java
+++ /dev/null
@@ -1,137 +0,0 @@
-package com.box.sdkgen.schemas.skillinvocation;
-
-import com.box.sdkgen.internal.NullableFieldTracker;
-import com.box.sdkgen.internal.SerializableObject;
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.fasterxml.jackson.annotation.JsonFilter;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import java.util.Objects;
-
-@JsonFilter("nullablePropertyFilter")
-public class SkillInvocationSkillField extends SerializableObject {
-
- protected String id;
-
- @JsonDeserialize(
- using = SkillInvocationSkillTypeField.SkillInvocationSkillTypeFieldDeserializer.class)
- @JsonSerialize(
- using = SkillInvocationSkillTypeField.SkillInvocationSkillTypeFieldSerializer.class)
- protected EnumWrapper type;
-
- protected String name;
-
- @JsonProperty("api_key")
- protected String apiKey;
-
- public SkillInvocationSkillField() {
- super();
- }
-
- protected SkillInvocationSkillField(Builder builder) {
- super();
- this.id = builder.id;
- this.type = builder.type;
- this.name = builder.name;
- this.apiKey = builder.apiKey;
- markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
- }
-
- public String getId() {
- return id;
- }
-
- public EnumWrapper getType() {
- return type;
- }
-
- public String getName() {
- return name;
- }
-
- public String getApiKey() {
- return apiKey;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SkillInvocationSkillField casted = (SkillInvocationSkillField) o;
- return Objects.equals(id, casted.id)
- && Objects.equals(type, casted.type)
- && Objects.equals(name, casted.name)
- && Objects.equals(apiKey, casted.apiKey);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, type, name, apiKey);
- }
-
- @Override
- public String toString() {
- return "SkillInvocationSkillField{"
- + "id='"
- + id
- + '\''
- + ", "
- + "type='"
- + type
- + '\''
- + ", "
- + "name='"
- + name
- + '\''
- + ", "
- + "apiKey='"
- + apiKey
- + '\''
- + "}";
- }
-
- public static class Builder extends NullableFieldTracker {
-
- protected String id;
-
- protected EnumWrapper type;
-
- protected String name;
-
- protected String apiKey;
-
- public Builder id(String id) {
- this.id = id;
- return this;
- }
-
- public Builder type(SkillInvocationSkillTypeField type) {
- this.type = new EnumWrapper(type);
- return this;
- }
-
- public Builder type(EnumWrapper type) {
- this.type = type;
- return this;
- }
-
- public Builder name(String name) {
- this.name = name;
- return this;
- }
-
- public Builder apiKey(String apiKey) {
- this.apiKey = apiKey;
- return this;
- }
-
- public SkillInvocationSkillField build() {
- return new SkillInvocationSkillField(this);
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationSkillTypeField.java b/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationSkillTypeField.java
deleted file mode 100644
index 6e2295c0e..000000000
--- a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationSkillTypeField.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.box.sdkgen.schemas.skillinvocation;
-
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.box.sdkgen.serialization.json.Valuable;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonSerializer;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import java.io.IOException;
-import java.util.Arrays;
-
-public enum SkillInvocationSkillTypeField implements Valuable {
- SKILL("skill");
-
- private final String value;
-
- SkillInvocationSkillTypeField(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static class SkillInvocationSkillTypeFieldDeserializer
- extends JsonDeserializer> {
-
- public SkillInvocationSkillTypeFieldDeserializer() {
- super();
- }
-
- @Override
- public EnumWrapper deserialize(
- JsonParser p, DeserializationContext ctxt) throws IOException {
- String value = p.getValueAsString();
- return Arrays.stream(SkillInvocationSkillTypeField.values())
- .filter((v) -> v.getValue().equalsIgnoreCase(value))
- .findFirst()
- .map(EnumWrapper::new)
- .orElse(new EnumWrapper(value));
- }
- }
-
- public static class SkillInvocationSkillTypeFieldSerializer
- extends JsonSerializer> {
-
- public SkillInvocationSkillTypeFieldSerializer() {
- super();
- }
-
- @Override
- public void serialize(
- EnumWrapper value,
- JsonGenerator gen,
- SerializerProvider serializers)
- throws IOException {
- gen.writeString(value.getStringValue());
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationStatusField.java b/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationStatusField.java
deleted file mode 100644
index f7786cdab..000000000
--- a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationStatusField.java
+++ /dev/null
@@ -1,138 +0,0 @@
-package com.box.sdkgen.schemas.skillinvocation;
-
-import com.box.sdkgen.internal.NullableFieldTracker;
-import com.box.sdkgen.internal.SerializableObject;
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.fasterxml.jackson.annotation.JsonFilter;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import java.util.Objects;
-
-@JsonFilter("nullablePropertyFilter")
-public class SkillInvocationStatusField extends SerializableObject {
-
- @JsonDeserialize(
- using = SkillInvocationStatusStateField.SkillInvocationStatusStateFieldDeserializer.class)
- @JsonSerialize(
- using = SkillInvocationStatusStateField.SkillInvocationStatusStateFieldSerializer.class)
- protected EnumWrapper state;
-
- protected String message;
-
- @JsonProperty("error_code")
- protected String errorCode;
-
- @JsonProperty("additional_info")
- protected String additionalInfo;
-
- public SkillInvocationStatusField() {
- super();
- }
-
- protected SkillInvocationStatusField(Builder builder) {
- super();
- this.state = builder.state;
- this.message = builder.message;
- this.errorCode = builder.errorCode;
- this.additionalInfo = builder.additionalInfo;
- markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
- }
-
- public EnumWrapper getState() {
- return state;
- }
-
- public String getMessage() {
- return message;
- }
-
- public String getErrorCode() {
- return errorCode;
- }
-
- public String getAdditionalInfo() {
- return additionalInfo;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SkillInvocationStatusField casted = (SkillInvocationStatusField) o;
- return Objects.equals(state, casted.state)
- && Objects.equals(message, casted.message)
- && Objects.equals(errorCode, casted.errorCode)
- && Objects.equals(additionalInfo, casted.additionalInfo);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(state, message, errorCode, additionalInfo);
- }
-
- @Override
- public String toString() {
- return "SkillInvocationStatusField{"
- + "state='"
- + state
- + '\''
- + ", "
- + "message='"
- + message
- + '\''
- + ", "
- + "errorCode='"
- + errorCode
- + '\''
- + ", "
- + "additionalInfo='"
- + additionalInfo
- + '\''
- + "}";
- }
-
- public static class Builder extends NullableFieldTracker {
-
- protected EnumWrapper state;
-
- protected String message;
-
- protected String errorCode;
-
- protected String additionalInfo;
-
- public Builder state(SkillInvocationStatusStateField state) {
- this.state = new EnumWrapper(state);
- return this;
- }
-
- public Builder state(EnumWrapper state) {
- this.state = state;
- return this;
- }
-
- public Builder message(String message) {
- this.message = message;
- return this;
- }
-
- public Builder errorCode(String errorCode) {
- this.errorCode = errorCode;
- return this;
- }
-
- public Builder additionalInfo(String additionalInfo) {
- this.additionalInfo = additionalInfo;
- return this;
- }
-
- public SkillInvocationStatusField build() {
- return new SkillInvocationStatusField(this);
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationStatusStateField.java b/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationStatusStateField.java
deleted file mode 100644
index 548c35a45..000000000
--- a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationStatusStateField.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package com.box.sdkgen.schemas.skillinvocation;
-
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.box.sdkgen.serialization.json.Valuable;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonSerializer;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import java.io.IOException;
-import java.util.Arrays;
-
-public enum SkillInvocationStatusStateField implements Valuable {
- INVOKED("invoked"),
- PROCESSING("processing"),
- SUCCESS("success"),
- TRANSIENT_FAILURE("transient_failure"),
- PERMANENT_FAILURE("permanent_failure");
-
- private final String value;
-
- SkillInvocationStatusStateField(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static class SkillInvocationStatusStateFieldDeserializer
- extends JsonDeserializer> {
-
- public SkillInvocationStatusStateFieldDeserializer() {
- super();
- }
-
- @Override
- public EnumWrapper deserialize(
- JsonParser p, DeserializationContext ctxt) throws IOException {
- String value = p.getValueAsString();
- return Arrays.stream(SkillInvocationStatusStateField.values())
- .filter((v) -> v.getValue().equalsIgnoreCase(value))
- .findFirst()
- .map(EnumWrapper::new)
- .orElse(new EnumWrapper(value));
- }
- }
-
- public static class SkillInvocationStatusStateFieldSerializer
- extends JsonSerializer> {
-
- public SkillInvocationStatusStateFieldSerializer() {
- super();
- }
-
- @Override
- public void serialize(
- EnumWrapper value,
- JsonGenerator gen,
- SerializerProvider serializers)
- throws IOException {
- gen.writeString(value.getStringValue());
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenField.java b/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenField.java
deleted file mode 100644
index 237be0148..000000000
--- a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenField.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package com.box.sdkgen.schemas.skillinvocation;
-
-import com.box.sdkgen.internal.NullableFieldTracker;
-import com.box.sdkgen.internal.SerializableObject;
-import com.fasterxml.jackson.annotation.JsonFilter;
-import java.util.Objects;
-
-@JsonFilter("nullablePropertyFilter")
-public class SkillInvocationTokenField extends SerializableObject {
-
- protected SkillInvocationTokenReadField read;
-
- protected SkillInvocationTokenWriteField write;
-
- public SkillInvocationTokenField() {
- super();
- }
-
- protected SkillInvocationTokenField(Builder builder) {
- super();
- this.read = builder.read;
- this.write = builder.write;
- markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
- }
-
- public SkillInvocationTokenReadField getRead() {
- return read;
- }
-
- public SkillInvocationTokenWriteField getWrite() {
- return write;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SkillInvocationTokenField casted = (SkillInvocationTokenField) o;
- return Objects.equals(read, casted.read) && Objects.equals(write, casted.write);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(read, write);
- }
-
- @Override
- public String toString() {
- return "SkillInvocationTokenField{"
- + "read='"
- + read
- + '\''
- + ", "
- + "write='"
- + write
- + '\''
- + "}";
- }
-
- public static class Builder extends NullableFieldTracker {
-
- protected SkillInvocationTokenReadField read;
-
- protected SkillInvocationTokenWriteField write;
-
- public Builder read(SkillInvocationTokenReadField read) {
- this.read = read;
- return this;
- }
-
- public Builder write(SkillInvocationTokenWriteField write) {
- this.write = write;
- return this;
- }
-
- public SkillInvocationTokenField build() {
- return new SkillInvocationTokenField(this);
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenReadField.java b/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenReadField.java
deleted file mode 100644
index c41b763a2..000000000
--- a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenReadField.java
+++ /dev/null
@@ -1,144 +0,0 @@
-package com.box.sdkgen.schemas.skillinvocation;
-
-import com.box.sdkgen.internal.NullableFieldTracker;
-import com.box.sdkgen.internal.SerializableObject;
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.fasterxml.jackson.annotation.JsonFilter;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import java.util.Objects;
-
-@JsonFilter("nullablePropertyFilter")
-public class SkillInvocationTokenReadField extends SerializableObject {
-
- @JsonProperty("access_token")
- protected String accessToken;
-
- @JsonProperty("expires_in")
- protected Long expiresIn;
-
- @JsonDeserialize(
- using =
- SkillInvocationTokenReadTokenTypeField.SkillInvocationTokenReadTokenTypeFieldDeserializer
- .class)
- @JsonSerialize(
- using =
- SkillInvocationTokenReadTokenTypeField.SkillInvocationTokenReadTokenTypeFieldSerializer
- .class)
- @JsonProperty("token_type")
- protected EnumWrapper tokenType;
-
- @JsonProperty("restricted_to")
- protected String restrictedTo;
-
- public SkillInvocationTokenReadField() {
- super();
- }
-
- protected SkillInvocationTokenReadField(Builder builder) {
- super();
- this.accessToken = builder.accessToken;
- this.expiresIn = builder.expiresIn;
- this.tokenType = builder.tokenType;
- this.restrictedTo = builder.restrictedTo;
- markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
- }
-
- public String getAccessToken() {
- return accessToken;
- }
-
- public Long getExpiresIn() {
- return expiresIn;
- }
-
- public EnumWrapper getTokenType() {
- return tokenType;
- }
-
- public String getRestrictedTo() {
- return restrictedTo;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SkillInvocationTokenReadField casted = (SkillInvocationTokenReadField) o;
- return Objects.equals(accessToken, casted.accessToken)
- && Objects.equals(expiresIn, casted.expiresIn)
- && Objects.equals(tokenType, casted.tokenType)
- && Objects.equals(restrictedTo, casted.restrictedTo);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(accessToken, expiresIn, tokenType, restrictedTo);
- }
-
- @Override
- public String toString() {
- return "SkillInvocationTokenReadField{"
- + "accessToken='"
- + accessToken
- + '\''
- + ", "
- + "expiresIn='"
- + expiresIn
- + '\''
- + ", "
- + "tokenType='"
- + tokenType
- + '\''
- + ", "
- + "restrictedTo='"
- + restrictedTo
- + '\''
- + "}";
- }
-
- public static class Builder extends NullableFieldTracker {
-
- protected String accessToken;
-
- protected Long expiresIn;
-
- protected EnumWrapper tokenType;
-
- protected String restrictedTo;
-
- public Builder accessToken(String accessToken) {
- this.accessToken = accessToken;
- return this;
- }
-
- public Builder expiresIn(Long expiresIn) {
- this.expiresIn = expiresIn;
- return this;
- }
-
- public Builder tokenType(SkillInvocationTokenReadTokenTypeField tokenType) {
- this.tokenType = new EnumWrapper(tokenType);
- return this;
- }
-
- public Builder tokenType(EnumWrapper tokenType) {
- this.tokenType = tokenType;
- return this;
- }
-
- public Builder restrictedTo(String restrictedTo) {
- this.restrictedTo = restrictedTo;
- return this;
- }
-
- public SkillInvocationTokenReadField build() {
- return new SkillInvocationTokenReadField(this);
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenReadTokenTypeField.java b/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenReadTokenTypeField.java
deleted file mode 100644
index 2a96c401d..000000000
--- a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenReadTokenTypeField.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.box.sdkgen.schemas.skillinvocation;
-
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.box.sdkgen.serialization.json.Valuable;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonSerializer;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import java.io.IOException;
-import java.util.Arrays;
-
-public enum SkillInvocationTokenReadTokenTypeField implements Valuable {
- BEARER("bearer");
-
- private final String value;
-
- SkillInvocationTokenReadTokenTypeField(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static class SkillInvocationTokenReadTokenTypeFieldDeserializer
- extends JsonDeserializer> {
-
- public SkillInvocationTokenReadTokenTypeFieldDeserializer() {
- super();
- }
-
- @Override
- public EnumWrapper deserialize(
- JsonParser p, DeserializationContext ctxt) throws IOException {
- String value = p.getValueAsString();
- return Arrays.stream(SkillInvocationTokenReadTokenTypeField.values())
- .filter((v) -> v.getValue().equalsIgnoreCase(value))
- .findFirst()
- .map(EnumWrapper::new)
- .orElse(new EnumWrapper(value));
- }
- }
-
- public static class SkillInvocationTokenReadTokenTypeFieldSerializer
- extends JsonSerializer> {
-
- public SkillInvocationTokenReadTokenTypeFieldSerializer() {
- super();
- }
-
- @Override
- public void serialize(
- EnumWrapper value,
- JsonGenerator gen,
- SerializerProvider serializers)
- throws IOException {
- gen.writeString(value.getStringValue());
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenWriteField.java b/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenWriteField.java
deleted file mode 100644
index a8c02725f..000000000
--- a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenWriteField.java
+++ /dev/null
@@ -1,144 +0,0 @@
-package com.box.sdkgen.schemas.skillinvocation;
-
-import com.box.sdkgen.internal.NullableFieldTracker;
-import com.box.sdkgen.internal.SerializableObject;
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.fasterxml.jackson.annotation.JsonFilter;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import java.util.Objects;
-
-@JsonFilter("nullablePropertyFilter")
-public class SkillInvocationTokenWriteField extends SerializableObject {
-
- @JsonProperty("access_token")
- protected String accessToken;
-
- @JsonProperty("expires_in")
- protected Long expiresIn;
-
- @JsonDeserialize(
- using =
- SkillInvocationTokenWriteTokenTypeField
- .SkillInvocationTokenWriteTokenTypeFieldDeserializer.class)
- @JsonSerialize(
- using =
- SkillInvocationTokenWriteTokenTypeField.SkillInvocationTokenWriteTokenTypeFieldSerializer
- .class)
- @JsonProperty("token_type")
- protected EnumWrapper tokenType;
-
- @JsonProperty("restricted_to")
- protected String restrictedTo;
-
- public SkillInvocationTokenWriteField() {
- super();
- }
-
- protected SkillInvocationTokenWriteField(Builder builder) {
- super();
- this.accessToken = builder.accessToken;
- this.expiresIn = builder.expiresIn;
- this.tokenType = builder.tokenType;
- this.restrictedTo = builder.restrictedTo;
- markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
- }
-
- public String getAccessToken() {
- return accessToken;
- }
-
- public Long getExpiresIn() {
- return expiresIn;
- }
-
- public EnumWrapper getTokenType() {
- return tokenType;
- }
-
- public String getRestrictedTo() {
- return restrictedTo;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SkillInvocationTokenWriteField casted = (SkillInvocationTokenWriteField) o;
- return Objects.equals(accessToken, casted.accessToken)
- && Objects.equals(expiresIn, casted.expiresIn)
- && Objects.equals(tokenType, casted.tokenType)
- && Objects.equals(restrictedTo, casted.restrictedTo);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(accessToken, expiresIn, tokenType, restrictedTo);
- }
-
- @Override
- public String toString() {
- return "SkillInvocationTokenWriteField{"
- + "accessToken='"
- + accessToken
- + '\''
- + ", "
- + "expiresIn='"
- + expiresIn
- + '\''
- + ", "
- + "tokenType='"
- + tokenType
- + '\''
- + ", "
- + "restrictedTo='"
- + restrictedTo
- + '\''
- + "}";
- }
-
- public static class Builder extends NullableFieldTracker {
-
- protected String accessToken;
-
- protected Long expiresIn;
-
- protected EnumWrapper tokenType;
-
- protected String restrictedTo;
-
- public Builder accessToken(String accessToken) {
- this.accessToken = accessToken;
- return this;
- }
-
- public Builder expiresIn(Long expiresIn) {
- this.expiresIn = expiresIn;
- return this;
- }
-
- public Builder tokenType(SkillInvocationTokenWriteTokenTypeField tokenType) {
- this.tokenType = new EnumWrapper(tokenType);
- return this;
- }
-
- public Builder tokenType(EnumWrapper tokenType) {
- this.tokenType = tokenType;
- return this;
- }
-
- public Builder restrictedTo(String restrictedTo) {
- this.restrictedTo = restrictedTo;
- return this;
- }
-
- public SkillInvocationTokenWriteField build() {
- return new SkillInvocationTokenWriteField(this);
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenWriteTokenTypeField.java b/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenWriteTokenTypeField.java
deleted file mode 100644
index f6aa0d0dc..000000000
--- a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTokenWriteTokenTypeField.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.box.sdkgen.schemas.skillinvocation;
-
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.box.sdkgen.serialization.json.Valuable;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonSerializer;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import java.io.IOException;
-import java.util.Arrays;
-
-public enum SkillInvocationTokenWriteTokenTypeField implements Valuable {
- BEARER("bearer");
-
- private final String value;
-
- SkillInvocationTokenWriteTokenTypeField(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static class SkillInvocationTokenWriteTokenTypeFieldDeserializer
- extends JsonDeserializer> {
-
- public SkillInvocationTokenWriteTokenTypeFieldDeserializer() {
- super();
- }
-
- @Override
- public EnumWrapper deserialize(
- JsonParser p, DeserializationContext ctxt) throws IOException {
- String value = p.getValueAsString();
- return Arrays.stream(SkillInvocationTokenWriteTokenTypeField.values())
- .filter((v) -> v.getValue().equalsIgnoreCase(value))
- .findFirst()
- .map(EnumWrapper::new)
- .orElse(new EnumWrapper(value));
- }
- }
-
- public static class SkillInvocationTokenWriteTokenTypeFieldSerializer
- extends JsonSerializer> {
-
- public SkillInvocationTokenWriteTokenTypeFieldSerializer() {
- super();
- }
-
- @Override
- public void serialize(
- EnumWrapper value,
- JsonGenerator gen,
- SerializerProvider serializers)
- throws IOException {
- gen.writeString(value.getStringValue());
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTypeField.java b/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTypeField.java
deleted file mode 100644
index cd038b446..000000000
--- a/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocationTypeField.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.box.sdkgen.schemas.skillinvocation;
-
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.box.sdkgen.serialization.json.Valuable;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonSerializer;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import java.io.IOException;
-import java.util.Arrays;
-
-public enum SkillInvocationTypeField implements Valuable {
- SKILL_INVOCATION("skill_invocation");
-
- private final String value;
-
- SkillInvocationTypeField(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static class SkillInvocationTypeFieldDeserializer
- extends JsonDeserializer> {
-
- public SkillInvocationTypeFieldDeserializer() {
- super();
- }
-
- @Override
- public EnumWrapper deserialize(
- JsonParser p, DeserializationContext ctxt) throws IOException {
- String value = p.getValueAsString();
- return Arrays.stream(SkillInvocationTypeField.values())
- .filter((v) -> v.getValue().equalsIgnoreCase(value))
- .findFirst()
- .map(EnumWrapper::new)
- .orElse(new EnumWrapper(value));
- }
- }
-
- public static class SkillInvocationTypeFieldSerializer
- extends JsonSerializer> {
-
- public SkillInvocationTypeFieldSerializer() {
- super();
- }
-
- @Override
- public void serialize(
- EnumWrapper value,
- JsonGenerator gen,
- SerializerProvider serializers)
- throws IOException {
- gen.writeString(value.getStringValue());
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/v2025r0/hubactionv2025r0/HubActionV2025R0.java b/src/main/java/com/box/sdkgen/schemas/v2025r0/hubactionv2025r0/HubActionV2025R0.java
deleted file mode 100644
index ec5657659..000000000
--- a/src/main/java/com/box/sdkgen/schemas/v2025r0/hubactionv2025r0/HubActionV2025R0.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package com.box.sdkgen.schemas.v2025r0.hubactionv2025r0;
-
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.box.sdkgen.serialization.json.Valuable;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonSerializer;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import java.io.IOException;
-import java.util.Arrays;
-
-public enum HubActionV2025R0 implements Valuable {
- ADD("add"),
- REMOVE("remove");
-
- private final String value;
-
- HubActionV2025R0(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static class HubActionV2025R0Deserializer
- extends JsonDeserializer> {
-
- public HubActionV2025R0Deserializer() {
- super();
- }
-
- @Override
- public EnumWrapper deserialize(JsonParser p, DeserializationContext ctxt)
- throws IOException {
- String value = p.getValueAsString();
- return Arrays.stream(HubActionV2025R0.values())
- .filter((v) -> v.getValue().equalsIgnoreCase(value))
- .findFirst()
- .map(EnumWrapper::new)
- .orElse(new EnumWrapper(value));
- }
- }
-
- public static class HubActionV2025R0Serializer
- extends JsonSerializer> {
-
- public HubActionV2025R0Serializer() {
- super();
- }
-
- @Override
- public void serialize(
- EnumWrapper value, JsonGenerator gen, SerializerProvider serializers)
- throws IOException {
- gen.writeString(value.getStringValue());
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/webhookinvocation/WebhookInvocation.java b/src/main/java/com/box/sdkgen/schemas/webhookinvocation/WebhookInvocation.java
deleted file mode 100644
index 4ebb105fb..000000000
--- a/src/main/java/com/box/sdkgen/schemas/webhookinvocation/WebhookInvocation.java
+++ /dev/null
@@ -1,221 +0,0 @@
-package com.box.sdkgen.schemas.webhookinvocation;
-
-import com.box.sdkgen.internal.NullableFieldTracker;
-import com.box.sdkgen.internal.SerializableObject;
-import com.box.sdkgen.internal.utils.DateTimeUtils;
-import com.box.sdkgen.schemas.file.File;
-import com.box.sdkgen.schemas.fileorfolder.FileOrFolder;
-import com.box.sdkgen.schemas.folder.Folder;
-import com.box.sdkgen.schemas.usermini.UserMini;
-import com.box.sdkgen.schemas.webhook.Webhook;
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.fasterxml.jackson.annotation.JsonFilter;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import java.util.Date;
-import java.util.Objects;
-
-@JsonFilter("nullablePropertyFilter")
-public class WebhookInvocation extends SerializableObject {
-
- protected String id;
-
- @JsonDeserialize(using = WebhookInvocationTypeField.WebhookInvocationTypeFieldDeserializer.class)
- @JsonSerialize(using = WebhookInvocationTypeField.WebhookInvocationTypeFieldSerializer.class)
- protected EnumWrapper type;
-
- protected Webhook webhook;
-
- @JsonProperty("created_by")
- protected UserMini createdBy;
-
- @JsonProperty("created_at")
- @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
- @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
- protected Date createdAt;
-
- @JsonDeserialize(
- using = WebhookInvocationTriggerField.WebhookInvocationTriggerFieldDeserializer.class)
- @JsonSerialize(
- using = WebhookInvocationTriggerField.WebhookInvocationTriggerFieldSerializer.class)
- protected EnumWrapper trigger;
-
- protected FileOrFolder source;
-
- public WebhookInvocation() {
- super();
- }
-
- protected WebhookInvocation(Builder builder) {
- super();
- this.id = builder.id;
- this.type = builder.type;
- this.webhook = builder.webhook;
- this.createdBy = builder.createdBy;
- this.createdAt = builder.createdAt;
- this.trigger = builder.trigger;
- this.source = builder.source;
- markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
- }
-
- public String getId() {
- return id;
- }
-
- public EnumWrapper getType() {
- return type;
- }
-
- public Webhook getWebhook() {
- return webhook;
- }
-
- public UserMini getCreatedBy() {
- return createdBy;
- }
-
- public Date getCreatedAt() {
- return createdAt;
- }
-
- public EnumWrapper getTrigger() {
- return trigger;
- }
-
- public FileOrFolder getSource() {
- return source;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- WebhookInvocation casted = (WebhookInvocation) o;
- return Objects.equals(id, casted.id)
- && Objects.equals(type, casted.type)
- && Objects.equals(webhook, casted.webhook)
- && Objects.equals(createdBy, casted.createdBy)
- && Objects.equals(createdAt, casted.createdAt)
- && Objects.equals(trigger, casted.trigger)
- && Objects.equals(source, casted.source);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, type, webhook, createdBy, createdAt, trigger, source);
- }
-
- @Override
- public String toString() {
- return "WebhookInvocation{"
- + "id='"
- + id
- + '\''
- + ", "
- + "type='"
- + type
- + '\''
- + ", "
- + "webhook='"
- + webhook
- + '\''
- + ", "
- + "createdBy='"
- + createdBy
- + '\''
- + ", "
- + "createdAt='"
- + createdAt
- + '\''
- + ", "
- + "trigger='"
- + trigger
- + '\''
- + ", "
- + "source='"
- + source
- + '\''
- + "}";
- }
-
- public static class Builder extends NullableFieldTracker {
-
- protected String id;
-
- protected EnumWrapper type;
-
- protected Webhook webhook;
-
- protected UserMini createdBy;
-
- protected Date createdAt;
-
- protected EnumWrapper trigger;
-
- protected FileOrFolder source;
-
- public Builder id(String id) {
- this.id = id;
- return this;
- }
-
- public Builder type(WebhookInvocationTypeField type) {
- this.type = new EnumWrapper(type);
- return this;
- }
-
- public Builder type(EnumWrapper type) {
- this.type = type;
- return this;
- }
-
- public Builder webhook(Webhook webhook) {
- this.webhook = webhook;
- return this;
- }
-
- public Builder createdBy(UserMini createdBy) {
- this.createdBy = createdBy;
- return this;
- }
-
- public Builder createdAt(Date createdAt) {
- this.createdAt = createdAt;
- return this;
- }
-
- public Builder trigger(WebhookInvocationTriggerField trigger) {
- this.trigger = new EnumWrapper(trigger);
- return this;
- }
-
- public Builder trigger(EnumWrapper trigger) {
- this.trigger = trigger;
- return this;
- }
-
- public Builder source(File source) {
- this.source = new FileOrFolder(source);
- return this;
- }
-
- public Builder source(Folder source) {
- this.source = new FileOrFolder(source);
- return this;
- }
-
- public Builder source(FileOrFolder source) {
- this.source = source;
- return this;
- }
-
- public WebhookInvocation build() {
- return new WebhookInvocation(this);
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/webhookinvocation/WebhookInvocationTriggerField.java b/src/main/java/com/box/sdkgen/schemas/webhookinvocation/WebhookInvocationTriggerField.java
deleted file mode 100644
index dd299d6c2..000000000
--- a/src/main/java/com/box/sdkgen/schemas/webhookinvocation/WebhookInvocationTriggerField.java
+++ /dev/null
@@ -1,101 +0,0 @@
-package com.box.sdkgen.schemas.webhookinvocation;
-
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.box.sdkgen.serialization.json.Valuable;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonSerializer;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import java.io.IOException;
-import java.util.Arrays;
-
-public enum WebhookInvocationTriggerField implements Valuable {
- FILE_UPLOADED("FILE.UPLOADED"),
- FILE_PREVIEWED("FILE.PREVIEWED"),
- FILE_DOWNLOADED("FILE.DOWNLOADED"),
- FILE_TRASHED("FILE.TRASHED"),
- FILE_DELETED("FILE.DELETED"),
- FILE_RESTORED("FILE.RESTORED"),
- FILE_COPIED("FILE.COPIED"),
- FILE_MOVED("FILE.MOVED"),
- FILE_LOCKED("FILE.LOCKED"),
- FILE_UNLOCKED("FILE.UNLOCKED"),
- FILE_RENAMED("FILE.RENAMED"),
- COMMENT_CREATED("COMMENT.CREATED"),
- COMMENT_UPDATED("COMMENT.UPDATED"),
- COMMENT_DELETED("COMMENT.DELETED"),
- TASK_ASSIGNMENT_CREATED("TASK_ASSIGNMENT.CREATED"),
- TASK_ASSIGNMENT_UPDATED("TASK_ASSIGNMENT.UPDATED"),
- METADATA_INSTANCE_CREATED("METADATA_INSTANCE.CREATED"),
- METADATA_INSTANCE_UPDATED("METADATA_INSTANCE.UPDATED"),
- METADATA_INSTANCE_DELETED("METADATA_INSTANCE.DELETED"),
- FOLDER_CREATED("FOLDER.CREATED"),
- FOLDER_RENAMED("FOLDER.RENAMED"),
- FOLDER_DOWNLOADED("FOLDER.DOWNLOADED"),
- FOLDER_RESTORED("FOLDER.RESTORED"),
- FOLDER_DELETED("FOLDER.DELETED"),
- FOLDER_COPIED("FOLDER.COPIED"),
- FOLDER_MOVED("FOLDER.MOVED"),
- FOLDER_TRASHED("FOLDER.TRASHED"),
- WEBHOOK_DELETED("WEBHOOK.DELETED"),
- COLLABORATION_CREATED("COLLABORATION.CREATED"),
- COLLABORATION_ACCEPTED("COLLABORATION.ACCEPTED"),
- COLLABORATION_REJECTED("COLLABORATION.REJECTED"),
- COLLABORATION_REMOVED("COLLABORATION.REMOVED"),
- COLLABORATION_UPDATED("COLLABORATION.UPDATED"),
- SHARED_LINK_DELETED("SHARED_LINK.DELETED"),
- SHARED_LINK_CREATED("SHARED_LINK.CREATED"),
- SHARED_LINK_UPDATED("SHARED_LINK.UPDATED"),
- SIGN_REQUEST_COMPLETED("SIGN_REQUEST.COMPLETED"),
- SIGN_REQUEST_DECLINED("SIGN_REQUEST.DECLINED"),
- SIGN_REQUEST_EXPIRED("SIGN_REQUEST.EXPIRED"),
- SIGN_REQUEST_SIGNER_EMAIL_BOUNCED("SIGN_REQUEST.SIGNER_EMAIL_BOUNCED");
-
- private final String value;
-
- WebhookInvocationTriggerField(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static class WebhookInvocationTriggerFieldDeserializer
- extends JsonDeserializer> {
-
- public WebhookInvocationTriggerFieldDeserializer() {
- super();
- }
-
- @Override
- public EnumWrapper deserialize(
- JsonParser p, DeserializationContext ctxt) throws IOException {
- String value = p.getValueAsString();
- return Arrays.stream(WebhookInvocationTriggerField.values())
- .filter((v) -> v.getValue().equalsIgnoreCase(value))
- .findFirst()
- .map(EnumWrapper::new)
- .orElse(new EnumWrapper(value));
- }
- }
-
- public static class WebhookInvocationTriggerFieldSerializer
- extends JsonSerializer> {
-
- public WebhookInvocationTriggerFieldSerializer() {
- super();
- }
-
- @Override
- public void serialize(
- EnumWrapper value,
- JsonGenerator gen,
- SerializerProvider serializers)
- throws IOException {
- gen.writeString(value.getStringValue());
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/webhookinvocation/WebhookInvocationTypeField.java b/src/main/java/com/box/sdkgen/schemas/webhookinvocation/WebhookInvocationTypeField.java
deleted file mode 100644
index 29b06376b..000000000
--- a/src/main/java/com/box/sdkgen/schemas/webhookinvocation/WebhookInvocationTypeField.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.box.sdkgen.schemas.webhookinvocation;
-
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.box.sdkgen.serialization.json.Valuable;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonSerializer;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import java.io.IOException;
-import java.util.Arrays;
-
-public enum WebhookInvocationTypeField implements Valuable {
- WEBHOOK_EVENT("webhook_event");
-
- private final String value;
-
- WebhookInvocationTypeField(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- public static class WebhookInvocationTypeFieldDeserializer
- extends JsonDeserializer> {
-
- public WebhookInvocationTypeFieldDeserializer() {
- super();
- }
-
- @Override
- public EnumWrapper deserialize(
- JsonParser p, DeserializationContext ctxt) throws IOException {
- String value = p.getValueAsString();
- return Arrays.stream(WebhookInvocationTypeField.values())
- .filter((v) -> v.getValue().equalsIgnoreCase(value))
- .findFirst()
- .map(EnumWrapper::new)
- .orElse(new EnumWrapper(value));
- }
- }
-
- public static class WebhookInvocationTypeFieldSerializer
- extends JsonSerializer> {
-
- public WebhookInvocationTypeFieldSerializer() {
- super();
- }
-
- @Override
- public void serialize(
- EnumWrapper value,
- JsonGenerator gen,
- SerializerProvider serializers)
- throws IOException {
- gen.writeString(value.getStringValue());
- }
- }
-}
diff --git a/src/main/java/com/box/sdkgen/schemas/workflowfull/WorkflowFull.java b/src/main/java/com/box/sdkgen/schemas/workflowfull/WorkflowFull.java
deleted file mode 100644
index c3b845ac4..000000000
--- a/src/main/java/com/box/sdkgen/schemas/workflowfull/WorkflowFull.java
+++ /dev/null
@@ -1,222 +0,0 @@
-package com.box.sdkgen.schemas.workflowfull;
-
-import com.box.sdkgen.internal.utils.DateTimeUtils;
-import com.box.sdkgen.schemas.userbase.UserBase;
-import com.box.sdkgen.schemas.workflow.Workflow;
-import com.box.sdkgen.schemas.workflow.WorkflowFlowsField;
-import com.box.sdkgen.schemas.workflowmini.WorkflowMiniTypeField;
-import com.box.sdkgen.serialization.json.EnumWrapper;
-import com.fasterxml.jackson.annotation.JsonFilter;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import java.util.Date;
-import java.util.List;
-import java.util.Objects;
-
-@JsonFilter("nullablePropertyFilter")
-public class WorkflowFull extends Workflow {
-
- @JsonProperty("created_at")
- @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
- @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
- protected Date createdAt;
-
- @JsonProperty("modified_at")
- @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
- @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
- protected Date modifiedAt;
-
- @JsonProperty("created_by")
- protected UserBase createdBy;
-
- @JsonProperty("modified_by")
- protected UserBase modifiedBy;
-
- public WorkflowFull() {
- super();
- }
-
- protected WorkflowFull(Builder builder) {
- super(builder);
- this.createdAt = builder.createdAt;
- this.modifiedAt = builder.modifiedAt;
- this.createdBy = builder.createdBy;
- this.modifiedBy = builder.modifiedBy;
- markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
- }
-
- public Date getCreatedAt() {
- return createdAt;
- }
-
- public Date getModifiedAt() {
- return modifiedAt;
- }
-
- public UserBase getCreatedBy() {
- return createdBy;
- }
-
- public UserBase getModifiedBy() {
- return modifiedBy;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- WorkflowFull casted = (WorkflowFull) o;
- return Objects.equals(id, casted.id)
- && Objects.equals(type, casted.type)
- && Objects.equals(name, casted.name)
- && Objects.equals(description, casted.description)
- && Objects.equals(isEnabled, casted.isEnabled)
- && Objects.equals(flows, casted.flows)
- && Objects.equals(createdAt, casted.createdAt)
- && Objects.equals(modifiedAt, casted.modifiedAt)
- && Objects.equals(createdBy, casted.createdBy)
- && Objects.equals(modifiedBy, casted.modifiedBy);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(
- id,
- type,
- name,
- description,
- isEnabled,
- flows,
- createdAt,
- modifiedAt,
- createdBy,
- modifiedBy);
- }
-
- @Override
- public String toString() {
- return "WorkflowFull{"
- + "id='"
- + id
- + '\''
- + ", "
- + "type='"
- + type
- + '\''
- + ", "
- + "name='"
- + name
- + '\''
- + ", "
- + "description='"
- + description
- + '\''
- + ", "
- + "isEnabled='"
- + isEnabled
- + '\''
- + ", "
- + "flows='"
- + flows
- + '\''
- + ", "
- + "createdAt='"
- + createdAt
- + '\''
- + ", "
- + "modifiedAt='"
- + modifiedAt
- + '\''
- + ", "
- + "createdBy='"
- + createdBy
- + '\''
- + ", "
- + "modifiedBy='"
- + modifiedBy
- + '\''
- + "}";
- }
-
- public static class Builder extends Workflow.Builder {
-
- protected Date createdAt;
-
- protected Date modifiedAt;
-
- protected UserBase createdBy;
-
- protected UserBase modifiedBy;
-
- public Builder createdAt(Date createdAt) {
- this.createdAt = createdAt;
- return this;
- }
-
- public Builder modifiedAt(Date modifiedAt) {
- this.modifiedAt = modifiedAt;
- return this;
- }
-
- public Builder createdBy(UserBase createdBy) {
- this.createdBy = createdBy;
- return this;
- }
-
- public Builder modifiedBy(UserBase modifiedBy) {
- this.modifiedBy = modifiedBy;
- return this;
- }
-
- @Override
- public Builder id(String id) {
- this.id = id;
- return this;
- }
-
- @Override
- public Builder type(WorkflowMiniTypeField type) {
- this.type = new EnumWrapper(type);
- return this;
- }
-
- @Override
- public Builder type(EnumWrapper type) {
- this.type = type;
- return this;
- }
-
- @Override
- public Builder name(String name) {
- this.name = name;
- return this;
- }
-
- @Override
- public Builder description(String description) {
- this.description = description;
- return this;
- }
-
- @Override
- public Builder isEnabled(Boolean isEnabled) {
- this.isEnabled = isEnabled;
- return this;
- }
-
- @Override
- public Builder flows(List flows) {
- this.flows = flows;
- return this;
- }
-
- public WorkflowFull build() {
- return new WorkflowFull(this);
- }
- }
-}
diff --git a/src/test/java/com/box/sdkgen/test/docgen/DocgenITest.java b/src/test/java/com/box/sdkgen/test/docgen/DocgenITest.java
index bc0b96787..dd05c2df5 100644
--- a/src/test/java/com/box/sdkgen/test/docgen/DocgenITest.java
+++ b/src/test/java/com/box/sdkgen/test/docgen/DocgenITest.java
@@ -71,7 +71,7 @@ public void testDocgenBatchAndJobs() {
client
.getDocgen()
.getDocgenJobsV2025R0(
- new GetDocgenJobsV2025R0QueryParams.Builder().limit(500L).build());
+ new GetDocgenJobsV2025R0QueryParams.Builder().limit(10000L).build());
assert docgenJobs.getEntries().size() >= 1;
assert !(docgenJobs.getEntries().get(0).getBatch().getId().equals(""));
assert !(docgenJobs.getEntries().get(0).getCreatedBy().getId().equals(""));
@@ -87,7 +87,7 @@ assert convertToString(docgenJobs.getEntries().get(0).getTemplateFileVersion().g
.equals("file_version");
assert !(docgenJobs.getEntries().get(0).getTemplateFileVersion().getId().equals(""));
assert convertToString(docgenJobs.getEntries().get(0).getType()).equals("docgen_job");
- int indexOfItem = 0;
+ int indexOfItem = docgenJobs.getEntries().size() - 1;
DocGenJobFullV2025R0 docgenJobItemFromList = docgenJobs.getEntries().get(indexOfItem);
DocGenJobV2025R0 docgenJob =
client.getDocgen().getDocgenJobByIdV2025R0(docgenJobItemFromList.getId());