mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-06-06 18:02:16 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -48,6 +48,54 @@ public class CreateRepoOption implements Serializable {
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
/** ObjectFormatName of the underlying git repository */
|
||||
@JsonAdapter(ObjectFormatNameEnum.Adapter.class)
|
||||
public enum ObjectFormatNameEnum {
|
||||
SHA1("sha1"),
|
||||
SHA256("sha256");
|
||||
|
||||
private String value;
|
||||
|
||||
ObjectFormatNameEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
|
||||
public static ObjectFormatNameEnum fromValue(String input) {
|
||||
for (ObjectFormatNameEnum b : ObjectFormatNameEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static class Adapter extends TypeAdapter<ObjectFormatNameEnum> {
|
||||
@Override
|
||||
public void write(final JsonWriter jsonWriter, final ObjectFormatNameEnum enumeration)
|
||||
throws IOException {
|
||||
jsonWriter.value(String.valueOf(enumeration.getValue()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public ObjectFormatNameEnum read(final JsonReader jsonReader) throws IOException {
|
||||
Object value = jsonReader.nextString();
|
||||
return ObjectFormatNameEnum.fromValue((String) (value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SerializedName("object_format_name")
|
||||
private ObjectFormatNameEnum objectFormatName = null;
|
||||
|
||||
@SerializedName("private")
|
||||
private Boolean _private = null;
|
||||
|
||||
@@ -240,6 +288,25 @@ public class CreateRepoOption implements Serializable {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public CreateRepoOption objectFormatName(ObjectFormatNameEnum objectFormatName) {
|
||||
this.objectFormatName = objectFormatName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* ObjectFormatName of the underlying git repository
|
||||
*
|
||||
* @return objectFormatName
|
||||
*/
|
||||
@Schema(description = "ObjectFormatName of the underlying git repository")
|
||||
public ObjectFormatNameEnum getObjectFormatName() {
|
||||
return objectFormatName;
|
||||
}
|
||||
|
||||
public void setObjectFormatName(ObjectFormatNameEnum objectFormatName) {
|
||||
this.objectFormatName = objectFormatName;
|
||||
}
|
||||
|
||||
public CreateRepoOption _private(Boolean _private) {
|
||||
this._private = _private;
|
||||
return this;
|
||||
@@ -332,6 +399,7 @@ public class CreateRepoOption implements Serializable {
|
||||
&& Objects.equals(this.issueLabels, createRepoOption.issueLabels)
|
||||
&& Objects.equals(this.license, createRepoOption.license)
|
||||
&& Objects.equals(this.name, createRepoOption.name)
|
||||
&& Objects.equals(this.objectFormatName, createRepoOption.objectFormatName)
|
||||
&& Objects.equals(this._private, createRepoOption._private)
|
||||
&& Objects.equals(this.readme, createRepoOption.readme)
|
||||
&& Objects.equals(this.template, createRepoOption.template)
|
||||
@@ -348,6 +416,7 @@ public class CreateRepoOption implements Serializable {
|
||||
issueLabels,
|
||||
license,
|
||||
name,
|
||||
objectFormatName,
|
||||
_private,
|
||||
readme,
|
||||
template,
|
||||
@@ -366,6 +435,7 @@ public class CreateRepoOption implements Serializable {
|
||||
sb.append(" issueLabels: ").append(toIndentedString(issueLabels)).append("\n");
|
||||
sb.append(" license: ").append(toIndentedString(license)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" objectFormatName: ").append(toIndentedString(objectFormatName)).append("\n");
|
||||
sb.append(" _private: ").append(toIndentedString(_private)).append("\n");
|
||||
sb.append(" readme: ").append(toIndentedString(readme)).append("\n");
|
||||
sb.append(" template: ").append(toIndentedString(template)).append("\n");
|
||||
|
||||
@@ -12,8 +12,13 @@
|
||||
|
||||
package org.gitnex.tea4j.v2.models;
|
||||
|
||||
import com.google.gson.TypeAdapter;
|
||||
import com.google.gson.annotations.JsonAdapter;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.google.gson.stream.JsonReader;
|
||||
import com.google.gson.stream.JsonWriter;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.Objects;
|
||||
@@ -143,6 +148,54 @@ public class Repository implements Serializable {
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
/** ObjectFormatName of the underlying git repository */
|
||||
@JsonAdapter(ObjectFormatNameEnum.Adapter.class)
|
||||
public enum ObjectFormatNameEnum {
|
||||
SHA1("sha1"),
|
||||
SHA256("sha256");
|
||||
|
||||
private String value;
|
||||
|
||||
ObjectFormatNameEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
|
||||
public static ObjectFormatNameEnum fromValue(String input) {
|
||||
for (ObjectFormatNameEnum b : ObjectFormatNameEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static class Adapter extends TypeAdapter<ObjectFormatNameEnum> {
|
||||
@Override
|
||||
public void write(final JsonWriter jsonWriter, final ObjectFormatNameEnum enumeration)
|
||||
throws IOException {
|
||||
jsonWriter.value(String.valueOf(enumeration.getValue()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public ObjectFormatNameEnum read(final JsonReader jsonReader) throws IOException {
|
||||
Object value = jsonReader.nextString();
|
||||
return ObjectFormatNameEnum.fromValue((String) (value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SerializedName("object_format_name")
|
||||
private ObjectFormatNameEnum objectFormatName = null;
|
||||
|
||||
@SerializedName("open_issues_count")
|
||||
private Long openIssuesCount = null;
|
||||
|
||||
@@ -954,6 +1007,25 @@ public class Repository implements Serializable {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Repository objectFormatName(ObjectFormatNameEnum objectFormatName) {
|
||||
this.objectFormatName = objectFormatName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* ObjectFormatName of the underlying git repository
|
||||
*
|
||||
* @return objectFormatName
|
||||
*/
|
||||
@Schema(description = "ObjectFormatName of the underlying git repository")
|
||||
public ObjectFormatNameEnum getObjectFormatName() {
|
||||
return objectFormatName;
|
||||
}
|
||||
|
||||
public void setObjectFormatName(ObjectFormatNameEnum objectFormatName) {
|
||||
this.objectFormatName = objectFormatName;
|
||||
}
|
||||
|
||||
public Repository openIssuesCount(Long openIssuesCount) {
|
||||
this.openIssuesCount = openIssuesCount;
|
||||
return this;
|
||||
@@ -1327,6 +1399,7 @@ public class Repository implements Serializable {
|
||||
&& Objects.equals(this.mirrorInterval, repository.mirrorInterval)
|
||||
&& Objects.equals(this.mirrorUpdated, repository.mirrorUpdated)
|
||||
&& Objects.equals(this.name, repository.name)
|
||||
&& Objects.equals(this.objectFormatName, repository.objectFormatName)
|
||||
&& Objects.equals(this.openIssuesCount, repository.openIssuesCount)
|
||||
&& Objects.equals(this.openPrCounter, repository.openPrCounter)
|
||||
&& Objects.equals(this.originalUrl, repository.originalUrl)
|
||||
@@ -1389,6 +1462,7 @@ public class Repository implements Serializable {
|
||||
mirrorInterval,
|
||||
mirrorUpdated,
|
||||
name,
|
||||
objectFormatName,
|
||||
openIssuesCount,
|
||||
openPrCounter,
|
||||
originalUrl,
|
||||
@@ -1461,6 +1535,7 @@ public class Repository implements Serializable {
|
||||
sb.append(" mirrorInterval: ").append(toIndentedString(mirrorInterval)).append("\n");
|
||||
sb.append(" mirrorUpdated: ").append(toIndentedString(mirrorUpdated)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" objectFormatName: ").append(toIndentedString(objectFormatName)).append("\n");
|
||||
sb.append(" openIssuesCount: ").append(toIndentedString(openIssuesCount)).append("\n");
|
||||
sb.append(" openPrCounter: ").append(toIndentedString(openPrCounter)).append("\n");
|
||||
sb.append(" originalUrl: ").append(toIndentedString(originalUrl)).append("\n");
|
||||
|
||||
Reference in New Issue
Block a user