From c9aef21227a4b4b119b014a316a28aecb1df7e0a Mon Sep 17 00:00:00 2001 From: David Kocher Date: Wed, 15 Sep 2021 16:52:49 +0200 Subject: [PATCH] Override codegen failures for upstream issue > https://github.com/box/box-openapi/issues/191 --- .../core/box/io/swagger/client/model/Body.java | 16 ++++++++-------- .../box/io/swagger/client/model/Body15.java | 8 ++++---- .../core/box/io/swagger/client/model/Body4.java | 8 ++++---- .../core/box/io/swagger/client/model/File.java | 16 ++++++++-------- .../box/io/swagger/client/model/FileMini.java | 13 +++++-------- .../box/io/swagger/client/model/Folder.java | 17 ++++++++--------- 6 files changed, 37 insertions(+), 41 deletions(-) diff --git a/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Body.java b/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Body.java index a336982786d..5ccb1afa38a 100644 --- a/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Body.java +++ b/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Body.java @@ -35,10 +35,10 @@ public class Body { private String description = null; @JsonProperty("parent") - private AllOfbodyParent parent = null; + private FoldersfolderIdParent parent = null; @JsonProperty("shared_link") - private AllOfbodySharedLink sharedLink = null; + private FilesfileIdaddSharedLinkSharedLink sharedLink = null; @JsonProperty("lock") private FilesfileIdLock lock = null; @@ -85,7 +85,7 @@ public void setDescription(String description) { this.description = description; } - public Body parent(AllOfbodyParent parent) { + public Body parent(FoldersfolderIdParent parent) { this.parent = parent; return this; } @@ -95,15 +95,15 @@ public Body parent(AllOfbodyParent parent) { * @return parent **/ @Schema(description = "") - public AllOfbodyParent getParent() { + public FoldersfolderIdParent getParent() { return parent; } - public void setParent(AllOfbodyParent parent) { + public void setParent(FoldersfolderIdParent parent) { this.parent = parent; } - public Body sharedLink(AllOfbodySharedLink sharedLink) { + public Body sharedLink(FilesfileIdaddSharedLinkSharedLink sharedLink) { this.sharedLink = sharedLink; return this; } @@ -113,11 +113,11 @@ public Body sharedLink(AllOfbodySharedLink sharedLink) { * @return sharedLink **/ @Schema(description = "") - public AllOfbodySharedLink getSharedLink() { + public FilesfileIdaddSharedLinkSharedLink getSharedLink() { return sharedLink; } - public void setSharedLink(AllOfbodySharedLink sharedLink) { + public void setSharedLink(FilesfileIdaddSharedLinkSharedLink sharedLink) { this.sharedLink = sharedLink; } diff --git a/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Body15.java b/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Body15.java index ca44bff021d..864cd00660c 100644 --- a/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Body15.java +++ b/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Body15.java @@ -76,7 +76,7 @@ public static SyncStateEnum fromValue(String text) { private FoldersfolderIdParent parent = null; @JsonProperty("shared_link") - private AllOfbody15SharedLink sharedLink = null; + private FoldersfolderIdaddSharedLinkSharedLink sharedLink = null; @JsonProperty("folder_upload_email") private AllOfbody15FolderUploadEmail folderUploadEmail = null; @@ -183,7 +183,7 @@ public void setParent(FoldersfolderIdParent parent) { this.parent = parent; } - public Body15 sharedLink(AllOfbody15SharedLink sharedLink) { + public Body15 sharedLink(FoldersfolderIdaddSharedLinkSharedLink sharedLink) { this.sharedLink = sharedLink; return this; } @@ -193,11 +193,11 @@ public Body15 sharedLink(AllOfbody15SharedLink sharedLink) { * @return sharedLink **/ @Schema(description = "") - public AllOfbody15SharedLink getSharedLink() { + public FoldersfolderIdaddSharedLinkSharedLink getSharedLink() { return sharedLink; } - public void setSharedLink(AllOfbody15SharedLink sharedLink) { + public void setSharedLink(FoldersfolderIdaddSharedLinkSharedLink sharedLink) { this.sharedLink = sharedLink; } diff --git a/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Body4.java b/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Body4.java index d553d5ebb95..6eaf6e55f27 100644 --- a/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Body4.java +++ b/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Body4.java @@ -28,7 +28,7 @@ public class Body4 { private String name = null; @JsonProperty("size") - private Integer size = null; + private Long size = null; @JsonProperty("parent") private AllOfbody4Parent parent = null; @@ -51,7 +51,7 @@ public void setName(String name) { this.name = name; } - public Body4 size(Integer size) { + public Body4 size(Long size) { this.size = size; return this; } @@ -61,11 +61,11 @@ public Body4 size(Integer size) { * @return size **/ @Schema(example = "1024", description = "The size of the file in bytes") - public Integer getSize() { + public Long getSize() { return size; } - public void setSize(Integer size) { + public void setSize(Long size) { this.size = size; } diff --git a/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/File.java b/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/File.java index 7b93beb9133..c18ff0cf96d 100644 --- a/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/File.java +++ b/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/File.java @@ -30,7 +30,7 @@ public class File extends FileMini implements OneOfMetadataQueryResultsEntriesIt private String description = null; @JsonProperty("size") - private Integer size = null; + private Long size = null; @JsonProperty("path_collection") private Object pathCollection = null; @@ -63,7 +63,7 @@ public class File extends FileMini implements OneOfMetadataQueryResultsEntriesIt private Object ownedBy = null; @JsonProperty("shared_link") - private Object sharedLink = null; + private String sharedLink = null; @JsonProperty("parent") private Object parent = null; @@ -121,7 +121,7 @@ public void setDescription(String description) { this.description = description; } - public File size(Integer size) { + public File size(Long size) { this.size = size; return this; } @@ -131,11 +131,11 @@ public File size(Integer size) { * @return size **/ @Schema(example = "629644", description = "The file size in bytes. Be careful parsing this integer as it can get very large and cause an integer overflow.") - public Integer getSize() { + public Long getSize() { return size; } - public void setSize(Integer size) { + public void setSize(Long size) { this.size = size; } @@ -319,7 +319,7 @@ public void setOwnedBy(Object ownedBy) { this.ownedBy = ownedBy; } - public File sharedLink(Object sharedLink) { + public File sharedLink(String sharedLink) { this.sharedLink = sharedLink; return this; } @@ -329,11 +329,11 @@ public File sharedLink(Object sharedLink) { * @return sharedLink **/ @Schema(description = "") - public Object getSharedLink() { + public String getSharedLink() { return sharedLink; } - public void setSharedLink(Object sharedLink) { + public void setSharedLink(String sharedLink) { this.sharedLink = sharedLink; } diff --git a/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/FileMini.java b/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/FileMini.java index 01f77901b02..e4866916154 100644 --- a/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/FileMini.java +++ b/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/FileMini.java @@ -13,11 +13,8 @@ package ch.cyberduck.core.box.io.swagger.client.model; import java.util.Objects; -import java.util.Arrays; -import ch.cyberduck.core.box.io.swagger.client.model.FileBase; + import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; /** * A mini representation of a file, used when nested under another resource. @@ -35,7 +32,7 @@ public class FileMini extends FileBase { private String sha1 = null; @JsonProperty("file_version") - private Object fileVersion = null; + private FileVersionMini fileVersion = null; public FileMini sequenceId(Object sequenceId) { this.sequenceId = sequenceId; @@ -91,7 +88,7 @@ public void setSha1(String sha1) { this.sha1 = sha1; } - public FileMini fileVersion(Object fileVersion) { + public FileMini fileVersion(FileVersionMini fileVersion) { this.fileVersion = fileVersion; return this; } @@ -101,11 +98,11 @@ public FileMini fileVersion(Object fileVersion) { * @return fileVersion **/ @Schema(description = "") - public Object getFileVersion() { + public FileVersionMini getFileVersion() { return fileVersion; } - public void setFileVersion(Object fileVersion) { + public void setFileVersion(FileVersionMini fileVersion) { this.fileVersion = fileVersion; } diff --git a/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Folder.java b/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Folder.java index c4958c04acd..766381f952c 100644 --- a/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Folder.java +++ b/box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/Folder.java @@ -12,15 +12,14 @@ package ch.cyberduck.core.box.io.swagger.client.model; +import org.joda.time.DateTime; + import java.util.Objects; -import java.util.Arrays; -import ch.cyberduck.core.box.io.swagger.client.model.FolderFolderUploadEmail; -import ch.cyberduck.core.box.io.swagger.client.model.FolderMini; -import com.fasterxml.jackson.annotation.JsonProperty; + import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; -import org.joda.time.DateTime; /** * A standard representation of a folder, as returned from any folder API endpoints by default */ @@ -67,7 +66,7 @@ public class Folder extends FolderMini implements OneOfMetadataQueryResultsEntri private Object ownedBy = null; @JsonProperty("shared_link") - private Object sharedLink = null; + private String sharedLink = null; @JsonProperty("folder_upload_email") private FolderFolderUploadEmail folderUploadEmail = null; @@ -347,7 +346,7 @@ public void setOwnedBy(Object ownedBy) { this.ownedBy = ownedBy; } - public Folder sharedLink(Object sharedLink) { + public Folder sharedLink(String sharedLink) { this.sharedLink = sharedLink; return this; } @@ -357,11 +356,11 @@ public Folder sharedLink(Object sharedLink) { * @return sharedLink **/ @Schema(description = "") - public Object getSharedLink() { + public String getSharedLink() { return sharedLink; } - public void setSharedLink(Object sharedLink) { + public void setSharedLink(String sharedLink) { this.sharedLink = sharedLink; }