mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-07-01 14:48:28 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -35,7 +35,7 @@ public class IdAssetsBody1 implements Serializable {
|
||||
*
|
||||
* @return attachment
|
||||
*/
|
||||
@Schema(required = true, description = "attachment to upload")
|
||||
@Schema(description = "attachment to upload")
|
||||
public File getAttachment() {
|
||||
return attachment;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape}}
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
package org.gitnex.tea4j.v2.models;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.io.File;
|
||||
import java.io.Serializable;
|
||||
import java.util.Objects;
|
||||
|
||||
/** IdAssetsBody2 */
|
||||
public class IdAssetsBody2 implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("attachment")
|
||||
private File attachment = null;
|
||||
|
||||
public IdAssetsBody2 attachment(File attachment) {
|
||||
this.attachment = attachment;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* attachment to upload
|
||||
*
|
||||
* @return attachment
|
||||
*/
|
||||
@Schema(description = "attachment to upload")
|
||||
public File getAttachment() {
|
||||
return attachment;
|
||||
}
|
||||
|
||||
public void setAttachment(File attachment) {
|
||||
this.attachment = attachment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
IdAssetsBody2 idAssetsBody2 = (IdAssetsBody2) o;
|
||||
return Objects.equals(this.attachment, idAssetsBody2.attachment);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(Objects.hashCode(attachment));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class IdAssetsBody2 {\n");
|
||||
|
||||
sb.append(" attachment: ").append(toIndentedString(attachment)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user