mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-06-30 06:18:25 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -88,6 +88,9 @@ public class BranchProtection implements Serializable {
|
||||
@SerializedName("required_approvals")
|
||||
private Long requiredApprovals = null;
|
||||
|
||||
@SerializedName("rule_name")
|
||||
private String ruleName = null;
|
||||
|
||||
@SerializedName("status_check_contexts")
|
||||
private List<String> statusCheckContexts = null;
|
||||
|
||||
@@ -214,11 +217,11 @@ public class BranchProtection implements Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get branchName
|
||||
* Deprecated: true
|
||||
*
|
||||
* @return branchName
|
||||
*/
|
||||
@Schema(description = "")
|
||||
@Schema(description = "Deprecated: true")
|
||||
public String getBranchName() {
|
||||
return branchName;
|
||||
}
|
||||
@@ -544,6 +547,25 @@ public class BranchProtection implements Serializable {
|
||||
this.requiredApprovals = requiredApprovals;
|
||||
}
|
||||
|
||||
public BranchProtection ruleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ruleName
|
||||
*
|
||||
* @return ruleName
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getRuleName() {
|
||||
return ruleName;
|
||||
}
|
||||
|
||||
public void setRuleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public BranchProtection statusCheckContexts(List<String> statusCheckContexts) {
|
||||
this.statusCheckContexts = statusCheckContexts;
|
||||
return this;
|
||||
@@ -641,6 +663,7 @@ public class BranchProtection implements Serializable {
|
||||
&& Objects.equals(this.pushWhitelistUsernames, branchProtection.pushWhitelistUsernames)
|
||||
&& Objects.equals(this.requireSignedCommits, branchProtection.requireSignedCommits)
|
||||
&& Objects.equals(this.requiredApprovals, branchProtection.requiredApprovals)
|
||||
&& Objects.equals(this.ruleName, branchProtection.ruleName)
|
||||
&& Objects.equals(this.statusCheckContexts, branchProtection.statusCheckContexts)
|
||||
&& Objects.equals(this.unprotectedFilePatterns, branchProtection.unprotectedFilePatterns)
|
||||
&& Objects.equals(this.updatedAt, branchProtection.updatedAt);
|
||||
@@ -670,6 +693,7 @@ public class BranchProtection implements Serializable {
|
||||
pushWhitelistUsernames,
|
||||
requireSignedCommits,
|
||||
requiredApprovals,
|
||||
ruleName,
|
||||
statusCheckContexts,
|
||||
unprotectedFilePatterns,
|
||||
updatedAt);
|
||||
@@ -731,6 +755,7 @@ public class BranchProtection implements Serializable {
|
||||
.append(toIndentedString(requireSignedCommits))
|
||||
.append("\n");
|
||||
sb.append(" requiredApprovals: ").append(toIndentedString(requiredApprovals)).append("\n");
|
||||
sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n");
|
||||
sb.append(" statusCheckContexts: ")
|
||||
.append(toIndentedString(statusCheckContexts))
|
||||
.append("\n");
|
||||
|
||||
@@ -84,6 +84,9 @@ public class CreateBranchProtectionOption implements Serializable {
|
||||
@SerializedName("required_approvals")
|
||||
private Long requiredApprovals = null;
|
||||
|
||||
@SerializedName("rule_name")
|
||||
private String ruleName = null;
|
||||
|
||||
@SerializedName("status_check_contexts")
|
||||
private List<String> statusCheckContexts = null;
|
||||
|
||||
@@ -212,11 +215,11 @@ public class CreateBranchProtectionOption implements Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get branchName
|
||||
* Deprecated: true
|
||||
*
|
||||
* @return branchName
|
||||
*/
|
||||
@Schema(description = "")
|
||||
@Schema(description = "Deprecated: true")
|
||||
public String getBranchName() {
|
||||
return branchName;
|
||||
}
|
||||
@@ -526,6 +529,25 @@ public class CreateBranchProtectionOption implements Serializable {
|
||||
this.requiredApprovals = requiredApprovals;
|
||||
}
|
||||
|
||||
public CreateBranchProtectionOption ruleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ruleName
|
||||
*
|
||||
* @return ruleName
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getRuleName() {
|
||||
return ruleName;
|
||||
}
|
||||
|
||||
public void setRuleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public CreateBranchProtectionOption statusCheckContexts(List<String> statusCheckContexts) {
|
||||
this.statusCheckContexts = statusCheckContexts;
|
||||
return this;
|
||||
@@ -618,6 +640,7 @@ public class CreateBranchProtectionOption implements Serializable {
|
||||
&& Objects.equals(
|
||||
this.requireSignedCommits, createBranchProtectionOption.requireSignedCommits)
|
||||
&& Objects.equals(this.requiredApprovals, createBranchProtectionOption.requiredApprovals)
|
||||
&& Objects.equals(this.ruleName, createBranchProtectionOption.ruleName)
|
||||
&& Objects.equals(
|
||||
this.statusCheckContexts, createBranchProtectionOption.statusCheckContexts)
|
||||
&& Objects.equals(
|
||||
@@ -647,6 +670,7 @@ public class CreateBranchProtectionOption implements Serializable {
|
||||
pushWhitelistUsernames,
|
||||
requireSignedCommits,
|
||||
requiredApprovals,
|
||||
ruleName,
|
||||
statusCheckContexts,
|
||||
unprotectedFilePatterns);
|
||||
}
|
||||
@@ -706,6 +730,7 @@ public class CreateBranchProtectionOption implements Serializable {
|
||||
.append(toIndentedString(requireSignedCommits))
|
||||
.append("\n");
|
||||
sb.append(" requiredApprovals: ").append(toIndentedString(requiredApprovals)).append("\n");
|
||||
sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n");
|
||||
sb.append(" statusCheckContexts: ")
|
||||
.append(toIndentedString(statusCheckContexts))
|
||||
.append("\n");
|
||||
|
||||
Reference in New Issue
Block a user