Skip to content

Commit

Permalink
Override codegen failures for upstream issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Oct 29, 2021
1 parent ad18dfc commit c9aef21
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand All @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}

Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}

Expand Down

0 comments on commit c9aef21

Please sign in to comment.