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:
@@ -64,6 +64,9 @@ public class BranchProtection implements Serializable {
|
||||
@SerializedName("enable_status_check")
|
||||
private Boolean enableStatusCheck = null;
|
||||
|
||||
@SerializedName("ignore_stale_approvals")
|
||||
private Boolean ignoreStaleApprovals = null;
|
||||
|
||||
@SerializedName("merge_whitelist_teams")
|
||||
private List<String> mergeWhitelistTeams = null;
|
||||
|
||||
@@ -363,6 +366,25 @@ public class BranchProtection implements Serializable {
|
||||
this.enableStatusCheck = enableStatusCheck;
|
||||
}
|
||||
|
||||
public BranchProtection ignoreStaleApprovals(Boolean ignoreStaleApprovals) {
|
||||
this.ignoreStaleApprovals = ignoreStaleApprovals;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ignoreStaleApprovals
|
||||
*
|
||||
* @return ignoreStaleApprovals
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Boolean isIgnoreStaleApprovals() {
|
||||
return ignoreStaleApprovals;
|
||||
}
|
||||
|
||||
public void setIgnoreStaleApprovals(Boolean ignoreStaleApprovals) {
|
||||
this.ignoreStaleApprovals = ignoreStaleApprovals;
|
||||
}
|
||||
|
||||
public BranchProtection mergeWhitelistTeams(List<String> mergeWhitelistTeams) {
|
||||
this.mergeWhitelistTeams = mergeWhitelistTeams;
|
||||
return this;
|
||||
@@ -655,6 +677,7 @@ public class BranchProtection implements Serializable {
|
||||
&& Objects.equals(this.enablePush, branchProtection.enablePush)
|
||||
&& Objects.equals(this.enablePushWhitelist, branchProtection.enablePushWhitelist)
|
||||
&& Objects.equals(this.enableStatusCheck, branchProtection.enableStatusCheck)
|
||||
&& Objects.equals(this.ignoreStaleApprovals, branchProtection.ignoreStaleApprovals)
|
||||
&& Objects.equals(this.mergeWhitelistTeams, branchProtection.mergeWhitelistTeams)
|
||||
&& Objects.equals(this.mergeWhitelistUsernames, branchProtection.mergeWhitelistUsernames)
|
||||
&& Objects.equals(this.protectedFilePatterns, branchProtection.protectedFilePatterns)
|
||||
@@ -685,6 +708,7 @@ public class BranchProtection implements Serializable {
|
||||
enablePush,
|
||||
enablePushWhitelist,
|
||||
enableStatusCheck,
|
||||
ignoreStaleApprovals,
|
||||
mergeWhitelistTeams,
|
||||
mergeWhitelistUsernames,
|
||||
protectedFilePatterns,
|
||||
@@ -735,6 +759,9 @@ public class BranchProtection implements Serializable {
|
||||
.append(toIndentedString(enablePushWhitelist))
|
||||
.append("\n");
|
||||
sb.append(" enableStatusCheck: ").append(toIndentedString(enableStatusCheck)).append("\n");
|
||||
sb.append(" ignoreStaleApprovals: ")
|
||||
.append(toIndentedString(ignoreStaleApprovals))
|
||||
.append("\n");
|
||||
sb.append(" mergeWhitelistTeams: ")
|
||||
.append(toIndentedString(mergeWhitelistTeams))
|
||||
.append("\n");
|
||||
|
||||
@@ -60,6 +60,9 @@ public class CreateBranchProtectionOption implements Serializable {
|
||||
@SerializedName("enable_status_check")
|
||||
private Boolean enableStatusCheck = null;
|
||||
|
||||
@SerializedName("ignore_stale_approvals")
|
||||
private Boolean ignoreStaleApprovals = null;
|
||||
|
||||
@SerializedName("merge_whitelist_teams")
|
||||
private List<String> mergeWhitelistTeams = null;
|
||||
|
||||
@@ -342,6 +345,25 @@ public class CreateBranchProtectionOption implements Serializable {
|
||||
this.enableStatusCheck = enableStatusCheck;
|
||||
}
|
||||
|
||||
public CreateBranchProtectionOption ignoreStaleApprovals(Boolean ignoreStaleApprovals) {
|
||||
this.ignoreStaleApprovals = ignoreStaleApprovals;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ignoreStaleApprovals
|
||||
*
|
||||
* @return ignoreStaleApprovals
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Boolean isIgnoreStaleApprovals() {
|
||||
return ignoreStaleApprovals;
|
||||
}
|
||||
|
||||
public void setIgnoreStaleApprovals(Boolean ignoreStaleApprovals) {
|
||||
this.ignoreStaleApprovals = ignoreStaleApprovals;
|
||||
}
|
||||
|
||||
public CreateBranchProtectionOption mergeWhitelistTeams(List<String> mergeWhitelistTeams) {
|
||||
this.mergeWhitelistTeams = mergeWhitelistTeams;
|
||||
return this;
|
||||
@@ -626,6 +648,8 @@ public class CreateBranchProtectionOption implements Serializable {
|
||||
&& Objects.equals(
|
||||
this.enablePushWhitelist, createBranchProtectionOption.enablePushWhitelist)
|
||||
&& Objects.equals(this.enableStatusCheck, createBranchProtectionOption.enableStatusCheck)
|
||||
&& Objects.equals(
|
||||
this.ignoreStaleApprovals, createBranchProtectionOption.ignoreStaleApprovals)
|
||||
&& Objects.equals(
|
||||
this.mergeWhitelistTeams, createBranchProtectionOption.mergeWhitelistTeams)
|
||||
&& Objects.equals(
|
||||
@@ -662,6 +686,7 @@ public class CreateBranchProtectionOption implements Serializable {
|
||||
enablePush,
|
||||
enablePushWhitelist,
|
||||
enableStatusCheck,
|
||||
ignoreStaleApprovals,
|
||||
mergeWhitelistTeams,
|
||||
mergeWhitelistUsernames,
|
||||
protectedFilePatterns,
|
||||
@@ -710,6 +735,9 @@ public class CreateBranchProtectionOption implements Serializable {
|
||||
.append(toIndentedString(enablePushWhitelist))
|
||||
.append("\n");
|
||||
sb.append(" enableStatusCheck: ").append(toIndentedString(enableStatusCheck)).append("\n");
|
||||
sb.append(" ignoreStaleApprovals: ")
|
||||
.append(toIndentedString(ignoreStaleApprovals))
|
||||
.append("\n");
|
||||
sb.append(" mergeWhitelistTeams: ")
|
||||
.append(toIndentedString(mergeWhitelistTeams))
|
||||
.append("\n");
|
||||
|
||||
@@ -57,6 +57,9 @@ public class EditBranchProtectionOption implements Serializable {
|
||||
@SerializedName("enable_status_check")
|
||||
private Boolean enableStatusCheck = null;
|
||||
|
||||
@SerializedName("ignore_stale_approvals")
|
||||
private Boolean ignoreStaleApprovals = null;
|
||||
|
||||
@SerializedName("merge_whitelist_teams")
|
||||
private List<String> mergeWhitelistTeams = null;
|
||||
|
||||
@@ -316,6 +319,25 @@ public class EditBranchProtectionOption implements Serializable {
|
||||
this.enableStatusCheck = enableStatusCheck;
|
||||
}
|
||||
|
||||
public EditBranchProtectionOption ignoreStaleApprovals(Boolean ignoreStaleApprovals) {
|
||||
this.ignoreStaleApprovals = ignoreStaleApprovals;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ignoreStaleApprovals
|
||||
*
|
||||
* @return ignoreStaleApprovals
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Boolean isIgnoreStaleApprovals() {
|
||||
return ignoreStaleApprovals;
|
||||
}
|
||||
|
||||
public void setIgnoreStaleApprovals(Boolean ignoreStaleApprovals) {
|
||||
this.ignoreStaleApprovals = ignoreStaleApprovals;
|
||||
}
|
||||
|
||||
public EditBranchProtectionOption mergeWhitelistTeams(List<String> mergeWhitelistTeams) {
|
||||
this.mergeWhitelistTeams = mergeWhitelistTeams;
|
||||
return this;
|
||||
@@ -577,6 +599,8 @@ public class EditBranchProtectionOption implements Serializable {
|
||||
&& Objects.equals(this.enablePush, editBranchProtectionOption.enablePush)
|
||||
&& Objects.equals(this.enablePushWhitelist, editBranchProtectionOption.enablePushWhitelist)
|
||||
&& Objects.equals(this.enableStatusCheck, editBranchProtectionOption.enableStatusCheck)
|
||||
&& Objects.equals(
|
||||
this.ignoreStaleApprovals, editBranchProtectionOption.ignoreStaleApprovals)
|
||||
&& Objects.equals(this.mergeWhitelistTeams, editBranchProtectionOption.mergeWhitelistTeams)
|
||||
&& Objects.equals(
|
||||
this.mergeWhitelistUsernames, editBranchProtectionOption.mergeWhitelistUsernames)
|
||||
@@ -609,6 +633,7 @@ public class EditBranchProtectionOption implements Serializable {
|
||||
enablePush,
|
||||
enablePushWhitelist,
|
||||
enableStatusCheck,
|
||||
ignoreStaleApprovals,
|
||||
mergeWhitelistTeams,
|
||||
mergeWhitelistUsernames,
|
||||
protectedFilePatterns,
|
||||
@@ -655,6 +680,9 @@ public class EditBranchProtectionOption implements Serializable {
|
||||
.append(toIndentedString(enablePushWhitelist))
|
||||
.append("\n");
|
||||
sb.append(" enableStatusCheck: ").append(toIndentedString(enableStatusCheck)).append("\n");
|
||||
sb.append(" ignoreStaleApprovals: ")
|
||||
.append(toIndentedString(ignoreStaleApprovals))
|
||||
.append("\n");
|
||||
sb.append(" mergeWhitelistTeams: ")
|
||||
.append(toIndentedString(mergeWhitelistTeams))
|
||||
.append("\n");
|
||||
|
||||
Reference in New Issue
Block a user