mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-06-17 23:20:39 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -44,6 +44,9 @@ public class CreateHookOption implements Serializable {
|
||||
@SerializedName("events")
|
||||
private List<String> events = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
/** Gets or Sets type */
|
||||
@JsonAdapter(TypeEnum.Adapter.class)
|
||||
public enum TypeEnum {
|
||||
@@ -203,6 +206,25 @@ public class CreateHookOption implements Serializable {
|
||||
this.events = events;
|
||||
}
|
||||
|
||||
public CreateHookOption name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional human-readable name for the webhook
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
@Schema(description = "Optional human-readable name for the webhook")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public CreateHookOption type(TypeEnum type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -236,12 +258,13 @@ public class CreateHookOption implements Serializable {
|
||||
&& Objects.equals(this.branchFilter, createHookOption.branchFilter)
|
||||
&& Objects.equals(this.config, createHookOption.config)
|
||||
&& Objects.equals(this.events, createHookOption.events)
|
||||
&& Objects.equals(this.name, createHookOption.name)
|
||||
&& Objects.equals(this.type, createHookOption.type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(active, authorizationHeader, branchFilter, config, events, type);
|
||||
return Objects.hash(active, authorizationHeader, branchFilter, config, events, name, type);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -256,6 +279,7 @@ public class CreateHookOption implements Serializable {
|
||||
sb.append(" branchFilter: ").append(toIndentedString(branchFilter)).append("\n");
|
||||
sb.append(" config: ").append(toIndentedString(config)).append("\n");
|
||||
sb.append(" events: ").append(toIndentedString(events)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -41,6 +41,9 @@ public class EditHookOption implements Serializable {
|
||||
@SerializedName("events")
|
||||
private List<String> events = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
public EditHookOption active(Boolean active) {
|
||||
this.active = active;
|
||||
return this;
|
||||
@@ -152,6 +155,25 @@ public class EditHookOption implements Serializable {
|
||||
this.events = events;
|
||||
}
|
||||
|
||||
public EditHookOption name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional human-readable name
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
@Schema(description = "Optional human-readable name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -165,12 +187,13 @@ public class EditHookOption implements Serializable {
|
||||
&& Objects.equals(this.authorizationHeader, editHookOption.authorizationHeader)
|
||||
&& Objects.equals(this.branchFilter, editHookOption.branchFilter)
|
||||
&& Objects.equals(this.config, editHookOption.config)
|
||||
&& Objects.equals(this.events, editHookOption.events);
|
||||
&& Objects.equals(this.events, editHookOption.events)
|
||||
&& Objects.equals(this.name, editHookOption.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(active, authorizationHeader, branchFilter, config, events);
|
||||
return Objects.hash(active, authorizationHeader, branchFilter, config, events, name);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -185,6 +208,7 @@ public class EditHookOption implements Serializable {
|
||||
sb.append(" branchFilter: ").append(toIndentedString(branchFilter)).append("\n");
|
||||
sb.append(" config: ").append(toIndentedString(config)).append("\n");
|
||||
sb.append(" events: ").append(toIndentedString(events)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -48,6 +48,9 @@ public class Hook implements Serializable {
|
||||
@SerializedName("id")
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@SerializedName("type")
|
||||
private String type = null;
|
||||
|
||||
@@ -203,6 +206,25 @@ public class Hook implements Serializable {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Hook name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional human-readable name for the webhook
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
@Schema(description = "Optional human-readable name for the webhook")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Hook type(String type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -257,6 +279,7 @@ public class Hook implements Serializable {
|
||||
&& Objects.equals(this.createdAt, hook.createdAt)
|
||||
&& Objects.equals(this.events, hook.events)
|
||||
&& Objects.equals(this.id, hook.id)
|
||||
&& Objects.equals(this.name, hook.name)
|
||||
&& Objects.equals(this.type, hook.type)
|
||||
&& Objects.equals(this.updatedAt, hook.updatedAt);
|
||||
}
|
||||
@@ -264,7 +287,16 @@ public class Hook implements Serializable {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
active, authorizationHeader, branchFilter, config, createdAt, events, id, type, updatedAt);
|
||||
active,
|
||||
authorizationHeader,
|
||||
branchFilter,
|
||||
config,
|
||||
createdAt,
|
||||
events,
|
||||
id,
|
||||
name,
|
||||
type,
|
||||
updatedAt);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -281,6 +313,7 @@ public class Hook implements Serializable {
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
sb.append(" events: ").append(toIndentedString(events)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
||||
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
Reference in New Issue
Block a user