mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-05-31 07:01:55 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
||||
**body** | [**List<IssueFormField>**](IssueFormField.md) | | [optional]
|
||||
**content** | **String** | | [optional]
|
||||
**fileName** | **String** | | [optional]
|
||||
**labels** | **List<String>** | | [optional]
|
||||
**labels** | [**IssueTemplateLabels**](IssueTemplateLabels.md) | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**ref** | **String** | | [optional]
|
||||
**title** | **String** | | [optional]
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
# IssueTemplateLabels
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
@@ -37,7 +37,7 @@ public class IssueTemplate implements Serializable {
|
||||
private String fileName = null;
|
||||
|
||||
@SerializedName("labels")
|
||||
private List<String> labels = null;
|
||||
private IssueTemplateLabels labels = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
@@ -132,30 +132,22 @@ public class IssueTemplate implements Serializable {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public IssueTemplate labels(List<String> labels) {
|
||||
public IssueTemplate labels(IssueTemplateLabels labels) {
|
||||
this.labels = labels;
|
||||
return this;
|
||||
}
|
||||
|
||||
public IssueTemplate addLabelsItem(String labelsItem) {
|
||||
if (this.labels == null) {
|
||||
this.labels = new ArrayList<>();
|
||||
}
|
||||
this.labels.add(labelsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get labels
|
||||
*
|
||||
* @return labels
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public List<String> getLabels() {
|
||||
public IssueTemplateLabels getLabels() {
|
||||
return labels;
|
||||
}
|
||||
|
||||
public void setLabels(List<String> labels) {
|
||||
public void setLabels(IssueTemplateLabels labels) {
|
||||
this.labels = labels;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Gitea API.
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape | Safe}}
|
||||
*
|
||||
*
|
||||
* 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 java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Objects;
|
||||
|
||||
/** IssueTemplateLabels */
|
||||
public class IssueTemplateLabels extends ArrayList<String> implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
return super.equals(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(super.hashCode());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class IssueTemplateLabels {\n");
|
||||
sb.append(" ").append(toIndentedString(super.toString())).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