From e387291fbe6b3f69dc68aaac68bc6d8e209bbb24 Mon Sep 17 00:00:00 2001 From: gitnexbot Date: Sat, 6 Jul 2024 00:07:52 +0000 Subject: [PATCH] Synchronizing API and documentation updates --- docs/BranchProtection.md | 5 + docs/CreateBranchProtectionOption.md | 5 + docs/EditBranchProtectionOption.md | 5 + .../tea4j/v2/models/BranchProtection.java | 152 +++++++++++++++++ .../models/CreateBranchProtectionOption.java | 160 ++++++++++++++++++ .../v2/models/EditBranchProtectionOption.java | 159 +++++++++++++++++ 6 files changed, 486 insertions(+) diff --git a/docs/BranchProtection.md b/docs/BranchProtection.md index 63a2a8e..7e0b192 100644 --- a/docs/BranchProtection.md +++ b/docs/BranchProtection.md @@ -12,10 +12,15 @@ Name | Type | Description | Notes **createdAt** | [**Date**](Date.md) | | [optional] **dismissStaleApprovals** | **Boolean** | | [optional] **enableApprovalsWhitelist** | **Boolean** | | [optional] +**enableForcePush** | **Boolean** | | [optional] +**enableForcePushAllowlist** | **Boolean** | | [optional] **enableMergeWhitelist** | **Boolean** | | [optional] **enablePush** | **Boolean** | | [optional] **enablePushWhitelist** | **Boolean** | | [optional] **enableStatusCheck** | **Boolean** | | [optional] +**forcePushAllowlistDeployKeys** | **Boolean** | | [optional] +**forcePushAllowlistTeams** | **List<String>** | | [optional] +**forcePushAllowlistUsernames** | **List<String>** | | [optional] **ignoreStaleApprovals** | **Boolean** | | [optional] **mergeWhitelistTeams** | **List<String>** | | [optional] **mergeWhitelistUsernames** | **List<String>** | | [optional] diff --git a/docs/CreateBranchProtectionOption.md b/docs/CreateBranchProtectionOption.md index e1881e1..3820b3c 100644 --- a/docs/CreateBranchProtectionOption.md +++ b/docs/CreateBranchProtectionOption.md @@ -11,10 +11,15 @@ Name | Type | Description | Notes **branchName** | **String** | Deprecated: true | [optional] **dismissStaleApprovals** | **Boolean** | | [optional] **enableApprovalsWhitelist** | **Boolean** | | [optional] +**enableForcePush** | **Boolean** | | [optional] +**enableForcePushAllowlist** | **Boolean** | | [optional] **enableMergeWhitelist** | **Boolean** | | [optional] **enablePush** | **Boolean** | | [optional] **enablePushWhitelist** | **Boolean** | | [optional] **enableStatusCheck** | **Boolean** | | [optional] +**forcePushAllowlistDeployKeys** | **Boolean** | | [optional] +**forcePushAllowlistTeams** | **List<String>** | | [optional] +**forcePushAllowlistUsernames** | **List<String>** | | [optional] **ignoreStaleApprovals** | **Boolean** | | [optional] **mergeWhitelistTeams** | **List<String>** | | [optional] **mergeWhitelistUsernames** | **List<String>** | | [optional] diff --git a/docs/EditBranchProtectionOption.md b/docs/EditBranchProtectionOption.md index 11c9936..541eed7 100644 --- a/docs/EditBranchProtectionOption.md +++ b/docs/EditBranchProtectionOption.md @@ -10,10 +10,15 @@ Name | Type | Description | Notes **blockOnRejectedReviews** | **Boolean** | | [optional] **dismissStaleApprovals** | **Boolean** | | [optional] **enableApprovalsWhitelist** | **Boolean** | | [optional] +**enableForcePush** | **Boolean** | | [optional] +**enableForcePushAllowlist** | **Boolean** | | [optional] **enableMergeWhitelist** | **Boolean** | | [optional] **enablePush** | **Boolean** | | [optional] **enablePushWhitelist** | **Boolean** | | [optional] **enableStatusCheck** | **Boolean** | | [optional] +**forcePushAllowlistDeployKeys** | **Boolean** | | [optional] +**forcePushAllowlistTeams** | **List<String>** | | [optional] +**forcePushAllowlistUsernames** | **List<String>** | | [optional] **ignoreStaleApprovals** | **Boolean** | | [optional] **mergeWhitelistTeams** | **List<String>** | | [optional] **mergeWhitelistUsernames** | **List<String>** | | [optional] diff --git a/src/main/java/org/gitnex/tea4j/v2/models/BranchProtection.java b/src/main/java/org/gitnex/tea4j/v2/models/BranchProtection.java index 97b319c..2d0afef 100644 --- a/src/main/java/org/gitnex/tea4j/v2/models/BranchProtection.java +++ b/src/main/java/org/gitnex/tea4j/v2/models/BranchProtection.java @@ -52,6 +52,12 @@ public class BranchProtection implements Serializable { @SerializedName("enable_approvals_whitelist") private Boolean enableApprovalsWhitelist = null; + @SerializedName("enable_force_push") + private Boolean enableForcePush = null; + + @SerializedName("enable_force_push_allowlist") + private Boolean enableForcePushAllowlist = null; + @SerializedName("enable_merge_whitelist") private Boolean enableMergeWhitelist = null; @@ -64,6 +70,15 @@ public class BranchProtection implements Serializable { @SerializedName("enable_status_check") private Boolean enableStatusCheck = null; + @SerializedName("force_push_allowlist_deploy_keys") + private Boolean forcePushAllowlistDeployKeys = null; + + @SerializedName("force_push_allowlist_teams") + private List forcePushAllowlistTeams = null; + + @SerializedName("force_push_allowlist_usernames") + private List forcePushAllowlistUsernames = null; + @SerializedName("ignore_stale_approvals") private Boolean ignoreStaleApprovals = null; @@ -290,6 +305,44 @@ public class BranchProtection implements Serializable { this.enableApprovalsWhitelist = enableApprovalsWhitelist; } + public BranchProtection enableForcePush(Boolean enableForcePush) { + this.enableForcePush = enableForcePush; + return this; + } + + /** + * Get enableForcePush + * + * @return enableForcePush + */ + @Schema(description = "") + public Boolean isEnableForcePush() { + return enableForcePush; + } + + public void setEnableForcePush(Boolean enableForcePush) { + this.enableForcePush = enableForcePush; + } + + public BranchProtection enableForcePushAllowlist(Boolean enableForcePushAllowlist) { + this.enableForcePushAllowlist = enableForcePushAllowlist; + return this; + } + + /** + * Get enableForcePushAllowlist + * + * @return enableForcePushAllowlist + */ + @Schema(description = "") + public Boolean isEnableForcePushAllowlist() { + return enableForcePushAllowlist; + } + + public void setEnableForcePushAllowlist(Boolean enableForcePushAllowlist) { + this.enableForcePushAllowlist = enableForcePushAllowlist; + } + public BranchProtection enableMergeWhitelist(Boolean enableMergeWhitelist) { this.enableMergeWhitelist = enableMergeWhitelist; return this; @@ -366,6 +419,80 @@ public class BranchProtection implements Serializable { this.enableStatusCheck = enableStatusCheck; } + public BranchProtection forcePushAllowlistDeployKeys(Boolean forcePushAllowlistDeployKeys) { + this.forcePushAllowlistDeployKeys = forcePushAllowlistDeployKeys; + return this; + } + + /** + * Get forcePushAllowlistDeployKeys + * + * @return forcePushAllowlistDeployKeys + */ + @Schema(description = "") + public Boolean isForcePushAllowlistDeployKeys() { + return forcePushAllowlistDeployKeys; + } + + public void setForcePushAllowlistDeployKeys(Boolean forcePushAllowlistDeployKeys) { + this.forcePushAllowlistDeployKeys = forcePushAllowlistDeployKeys; + } + + public BranchProtection forcePushAllowlistTeams(List forcePushAllowlistTeams) { + this.forcePushAllowlistTeams = forcePushAllowlistTeams; + return this; + } + + public BranchProtection addForcePushAllowlistTeamsItem(String forcePushAllowlistTeamsItem) { + if (this.forcePushAllowlistTeams == null) { + this.forcePushAllowlistTeams = new ArrayList<>(); + } + this.forcePushAllowlistTeams.add(forcePushAllowlistTeamsItem); + return this; + } + + /** + * Get forcePushAllowlistTeams + * + * @return forcePushAllowlistTeams + */ + @Schema(description = "") + public List getForcePushAllowlistTeams() { + return forcePushAllowlistTeams; + } + + public void setForcePushAllowlistTeams(List forcePushAllowlistTeams) { + this.forcePushAllowlistTeams = forcePushAllowlistTeams; + } + + public BranchProtection forcePushAllowlistUsernames(List forcePushAllowlistUsernames) { + this.forcePushAllowlistUsernames = forcePushAllowlistUsernames; + return this; + } + + public BranchProtection addForcePushAllowlistUsernamesItem( + String forcePushAllowlistUsernamesItem) { + if (this.forcePushAllowlistUsernames == null) { + this.forcePushAllowlistUsernames = new ArrayList<>(); + } + this.forcePushAllowlistUsernames.add(forcePushAllowlistUsernamesItem); + return this; + } + + /** + * Get forcePushAllowlistUsernames + * + * @return forcePushAllowlistUsernames + */ + @Schema(description = "") + public List getForcePushAllowlistUsernames() { + return forcePushAllowlistUsernames; + } + + public void setForcePushAllowlistUsernames(List forcePushAllowlistUsernames) { + this.forcePushAllowlistUsernames = forcePushAllowlistUsernames; + } + public BranchProtection ignoreStaleApprovals(Boolean ignoreStaleApprovals) { this.ignoreStaleApprovals = ignoreStaleApprovals; return this; @@ -673,10 +800,17 @@ public class BranchProtection implements Serializable { && Objects.equals(this.createdAt, branchProtection.createdAt) && Objects.equals(this.dismissStaleApprovals, branchProtection.dismissStaleApprovals) && Objects.equals(this.enableApprovalsWhitelist, branchProtection.enableApprovalsWhitelist) + && Objects.equals(this.enableForcePush, branchProtection.enableForcePush) + && Objects.equals(this.enableForcePushAllowlist, branchProtection.enableForcePushAllowlist) && Objects.equals(this.enableMergeWhitelist, branchProtection.enableMergeWhitelist) && Objects.equals(this.enablePush, branchProtection.enablePush) && Objects.equals(this.enablePushWhitelist, branchProtection.enablePushWhitelist) && Objects.equals(this.enableStatusCheck, branchProtection.enableStatusCheck) + && Objects.equals( + this.forcePushAllowlistDeployKeys, branchProtection.forcePushAllowlistDeployKeys) + && Objects.equals(this.forcePushAllowlistTeams, branchProtection.forcePushAllowlistTeams) + && Objects.equals( + this.forcePushAllowlistUsernames, branchProtection.forcePushAllowlistUsernames) && Objects.equals(this.ignoreStaleApprovals, branchProtection.ignoreStaleApprovals) && Objects.equals(this.mergeWhitelistTeams, branchProtection.mergeWhitelistTeams) && Objects.equals(this.mergeWhitelistUsernames, branchProtection.mergeWhitelistUsernames) @@ -704,10 +838,15 @@ public class BranchProtection implements Serializable { createdAt, dismissStaleApprovals, enableApprovalsWhitelist, + enableForcePush, + enableForcePushAllowlist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, + forcePushAllowlistDeployKeys, + forcePushAllowlistTeams, + forcePushAllowlistUsernames, ignoreStaleApprovals, mergeWhitelistTeams, mergeWhitelistUsernames, @@ -751,6 +890,10 @@ public class BranchProtection implements Serializable { sb.append(" enableApprovalsWhitelist: ") .append(toIndentedString(enableApprovalsWhitelist)) .append("\n"); + sb.append(" enableForcePush: ").append(toIndentedString(enableForcePush)).append("\n"); + sb.append(" enableForcePushAllowlist: ") + .append(toIndentedString(enableForcePushAllowlist)) + .append("\n"); sb.append(" enableMergeWhitelist: ") .append(toIndentedString(enableMergeWhitelist)) .append("\n"); @@ -759,6 +902,15 @@ public class BranchProtection implements Serializable { .append(toIndentedString(enablePushWhitelist)) .append("\n"); sb.append(" enableStatusCheck: ").append(toIndentedString(enableStatusCheck)).append("\n"); + sb.append(" forcePushAllowlistDeployKeys: ") + .append(toIndentedString(forcePushAllowlistDeployKeys)) + .append("\n"); + sb.append(" forcePushAllowlistTeams: ") + .append(toIndentedString(forcePushAllowlistTeams)) + .append("\n"); + sb.append(" forcePushAllowlistUsernames: ") + .append(toIndentedString(forcePushAllowlistUsernames)) + .append("\n"); sb.append(" ignoreStaleApprovals: ") .append(toIndentedString(ignoreStaleApprovals)) .append("\n"); diff --git a/src/main/java/org/gitnex/tea4j/v2/models/CreateBranchProtectionOption.java b/src/main/java/org/gitnex/tea4j/v2/models/CreateBranchProtectionOption.java index ded69d7..95180bf 100644 --- a/src/main/java/org/gitnex/tea4j/v2/models/CreateBranchProtectionOption.java +++ b/src/main/java/org/gitnex/tea4j/v2/models/CreateBranchProtectionOption.java @@ -48,6 +48,12 @@ public class CreateBranchProtectionOption implements Serializable { @SerializedName("enable_approvals_whitelist") private Boolean enableApprovalsWhitelist = null; + @SerializedName("enable_force_push") + private Boolean enableForcePush = null; + + @SerializedName("enable_force_push_allowlist") + private Boolean enableForcePushAllowlist = null; + @SerializedName("enable_merge_whitelist") private Boolean enableMergeWhitelist = null; @@ -60,6 +66,15 @@ public class CreateBranchProtectionOption implements Serializable { @SerializedName("enable_status_check") private Boolean enableStatusCheck = null; + @SerializedName("force_push_allowlist_deploy_keys") + private Boolean forcePushAllowlistDeployKeys = null; + + @SerializedName("force_push_allowlist_teams") + private List forcePushAllowlistTeams = null; + + @SerializedName("force_push_allowlist_usernames") + private List forcePushAllowlistUsernames = null; + @SerializedName("ignore_stale_approvals") private Boolean ignoreStaleApprovals = null; @@ -269,6 +284,44 @@ public class CreateBranchProtectionOption implements Serializable { this.enableApprovalsWhitelist = enableApprovalsWhitelist; } + public CreateBranchProtectionOption enableForcePush(Boolean enableForcePush) { + this.enableForcePush = enableForcePush; + return this; + } + + /** + * Get enableForcePush + * + * @return enableForcePush + */ + @Schema(description = "") + public Boolean isEnableForcePush() { + return enableForcePush; + } + + public void setEnableForcePush(Boolean enableForcePush) { + this.enableForcePush = enableForcePush; + } + + public CreateBranchProtectionOption enableForcePushAllowlist(Boolean enableForcePushAllowlist) { + this.enableForcePushAllowlist = enableForcePushAllowlist; + return this; + } + + /** + * Get enableForcePushAllowlist + * + * @return enableForcePushAllowlist + */ + @Schema(description = "") + public Boolean isEnableForcePushAllowlist() { + return enableForcePushAllowlist; + } + + public void setEnableForcePushAllowlist(Boolean enableForcePushAllowlist) { + this.enableForcePushAllowlist = enableForcePushAllowlist; + } + public CreateBranchProtectionOption enableMergeWhitelist(Boolean enableMergeWhitelist) { this.enableMergeWhitelist = enableMergeWhitelist; return this; @@ -345,6 +398,84 @@ public class CreateBranchProtectionOption implements Serializable { this.enableStatusCheck = enableStatusCheck; } + public CreateBranchProtectionOption forcePushAllowlistDeployKeys( + Boolean forcePushAllowlistDeployKeys) { + this.forcePushAllowlistDeployKeys = forcePushAllowlistDeployKeys; + return this; + } + + /** + * Get forcePushAllowlistDeployKeys + * + * @return forcePushAllowlistDeployKeys + */ + @Schema(description = "") + public Boolean isForcePushAllowlistDeployKeys() { + return forcePushAllowlistDeployKeys; + } + + public void setForcePushAllowlistDeployKeys(Boolean forcePushAllowlistDeployKeys) { + this.forcePushAllowlistDeployKeys = forcePushAllowlistDeployKeys; + } + + public CreateBranchProtectionOption forcePushAllowlistTeams( + List forcePushAllowlistTeams) { + this.forcePushAllowlistTeams = forcePushAllowlistTeams; + return this; + } + + public CreateBranchProtectionOption addForcePushAllowlistTeamsItem( + String forcePushAllowlistTeamsItem) { + if (this.forcePushAllowlistTeams == null) { + this.forcePushAllowlistTeams = new ArrayList<>(); + } + this.forcePushAllowlistTeams.add(forcePushAllowlistTeamsItem); + return this; + } + + /** + * Get forcePushAllowlistTeams + * + * @return forcePushAllowlistTeams + */ + @Schema(description = "") + public List getForcePushAllowlistTeams() { + return forcePushAllowlistTeams; + } + + public void setForcePushAllowlistTeams(List forcePushAllowlistTeams) { + this.forcePushAllowlistTeams = forcePushAllowlistTeams; + } + + public CreateBranchProtectionOption forcePushAllowlistUsernames( + List forcePushAllowlistUsernames) { + this.forcePushAllowlistUsernames = forcePushAllowlistUsernames; + return this; + } + + public CreateBranchProtectionOption addForcePushAllowlistUsernamesItem( + String forcePushAllowlistUsernamesItem) { + if (this.forcePushAllowlistUsernames == null) { + this.forcePushAllowlistUsernames = new ArrayList<>(); + } + this.forcePushAllowlistUsernames.add(forcePushAllowlistUsernamesItem); + return this; + } + + /** + * Get forcePushAllowlistUsernames + * + * @return forcePushAllowlistUsernames + */ + @Schema(description = "") + public List getForcePushAllowlistUsernames() { + return forcePushAllowlistUsernames; + } + + public void setForcePushAllowlistUsernames(List forcePushAllowlistUsernames) { + this.forcePushAllowlistUsernames = forcePushAllowlistUsernames; + } + public CreateBranchProtectionOption ignoreStaleApprovals(Boolean ignoreStaleApprovals) { this.ignoreStaleApprovals = ignoreStaleApprovals; return this; @@ -642,12 +773,23 @@ public class CreateBranchProtectionOption implements Serializable { this.dismissStaleApprovals, createBranchProtectionOption.dismissStaleApprovals) && Objects.equals( this.enableApprovalsWhitelist, createBranchProtectionOption.enableApprovalsWhitelist) + && Objects.equals(this.enableForcePush, createBranchProtectionOption.enableForcePush) + && Objects.equals( + this.enableForcePushAllowlist, createBranchProtectionOption.enableForcePushAllowlist) && Objects.equals( this.enableMergeWhitelist, createBranchProtectionOption.enableMergeWhitelist) && Objects.equals(this.enablePush, createBranchProtectionOption.enablePush) && Objects.equals( this.enablePushWhitelist, createBranchProtectionOption.enablePushWhitelist) && Objects.equals(this.enableStatusCheck, createBranchProtectionOption.enableStatusCheck) + && Objects.equals( + this.forcePushAllowlistDeployKeys, + createBranchProtectionOption.forcePushAllowlistDeployKeys) + && Objects.equals( + this.forcePushAllowlistTeams, createBranchProtectionOption.forcePushAllowlistTeams) + && Objects.equals( + this.forcePushAllowlistUsernames, + createBranchProtectionOption.forcePushAllowlistUsernames) && Objects.equals( this.ignoreStaleApprovals, createBranchProtectionOption.ignoreStaleApprovals) && Objects.equals( @@ -682,10 +824,15 @@ public class CreateBranchProtectionOption implements Serializable { branchName, dismissStaleApprovals, enableApprovalsWhitelist, + enableForcePush, + enableForcePushAllowlist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, + forcePushAllowlistDeployKeys, + forcePushAllowlistTeams, + forcePushAllowlistUsernames, ignoreStaleApprovals, mergeWhitelistTeams, mergeWhitelistUsernames, @@ -727,6 +874,10 @@ public class CreateBranchProtectionOption implements Serializable { sb.append(" enableApprovalsWhitelist: ") .append(toIndentedString(enableApprovalsWhitelist)) .append("\n"); + sb.append(" enableForcePush: ").append(toIndentedString(enableForcePush)).append("\n"); + sb.append(" enableForcePushAllowlist: ") + .append(toIndentedString(enableForcePushAllowlist)) + .append("\n"); sb.append(" enableMergeWhitelist: ") .append(toIndentedString(enableMergeWhitelist)) .append("\n"); @@ -735,6 +886,15 @@ public class CreateBranchProtectionOption implements Serializable { .append(toIndentedString(enablePushWhitelist)) .append("\n"); sb.append(" enableStatusCheck: ").append(toIndentedString(enableStatusCheck)).append("\n"); + sb.append(" forcePushAllowlistDeployKeys: ") + .append(toIndentedString(forcePushAllowlistDeployKeys)) + .append("\n"); + sb.append(" forcePushAllowlistTeams: ") + .append(toIndentedString(forcePushAllowlistTeams)) + .append("\n"); + sb.append(" forcePushAllowlistUsernames: ") + .append(toIndentedString(forcePushAllowlistUsernames)) + .append("\n"); sb.append(" ignoreStaleApprovals: ") .append(toIndentedString(ignoreStaleApprovals)) .append("\n"); diff --git a/src/main/java/org/gitnex/tea4j/v2/models/EditBranchProtectionOption.java b/src/main/java/org/gitnex/tea4j/v2/models/EditBranchProtectionOption.java index 2189935..a64bde3 100644 --- a/src/main/java/org/gitnex/tea4j/v2/models/EditBranchProtectionOption.java +++ b/src/main/java/org/gitnex/tea4j/v2/models/EditBranchProtectionOption.java @@ -45,6 +45,12 @@ public class EditBranchProtectionOption implements Serializable { @SerializedName("enable_approvals_whitelist") private Boolean enableApprovalsWhitelist = null; + @SerializedName("enable_force_push") + private Boolean enableForcePush = null; + + @SerializedName("enable_force_push_allowlist") + private Boolean enableForcePushAllowlist = null; + @SerializedName("enable_merge_whitelist") private Boolean enableMergeWhitelist = null; @@ -57,6 +63,15 @@ public class EditBranchProtectionOption implements Serializable { @SerializedName("enable_status_check") private Boolean enableStatusCheck = null; + @SerializedName("force_push_allowlist_deploy_keys") + private Boolean forcePushAllowlistDeployKeys = null; + + @SerializedName("force_push_allowlist_teams") + private List forcePushAllowlistTeams = null; + + @SerializedName("force_push_allowlist_usernames") + private List forcePushAllowlistUsernames = null; + @SerializedName("ignore_stale_approvals") private Boolean ignoreStaleApprovals = null; @@ -243,6 +258,44 @@ public class EditBranchProtectionOption implements Serializable { this.enableApprovalsWhitelist = enableApprovalsWhitelist; } + public EditBranchProtectionOption enableForcePush(Boolean enableForcePush) { + this.enableForcePush = enableForcePush; + return this; + } + + /** + * Get enableForcePush + * + * @return enableForcePush + */ + @Schema(description = "") + public Boolean isEnableForcePush() { + return enableForcePush; + } + + public void setEnableForcePush(Boolean enableForcePush) { + this.enableForcePush = enableForcePush; + } + + public EditBranchProtectionOption enableForcePushAllowlist(Boolean enableForcePushAllowlist) { + this.enableForcePushAllowlist = enableForcePushAllowlist; + return this; + } + + /** + * Get enableForcePushAllowlist + * + * @return enableForcePushAllowlist + */ + @Schema(description = "") + public Boolean isEnableForcePushAllowlist() { + return enableForcePushAllowlist; + } + + public void setEnableForcePushAllowlist(Boolean enableForcePushAllowlist) { + this.enableForcePushAllowlist = enableForcePushAllowlist; + } + public EditBranchProtectionOption enableMergeWhitelist(Boolean enableMergeWhitelist) { this.enableMergeWhitelist = enableMergeWhitelist; return this; @@ -319,6 +372,83 @@ public class EditBranchProtectionOption implements Serializable { this.enableStatusCheck = enableStatusCheck; } + public EditBranchProtectionOption forcePushAllowlistDeployKeys( + Boolean forcePushAllowlistDeployKeys) { + this.forcePushAllowlistDeployKeys = forcePushAllowlistDeployKeys; + return this; + } + + /** + * Get forcePushAllowlistDeployKeys + * + * @return forcePushAllowlistDeployKeys + */ + @Schema(description = "") + public Boolean isForcePushAllowlistDeployKeys() { + return forcePushAllowlistDeployKeys; + } + + public void setForcePushAllowlistDeployKeys(Boolean forcePushAllowlistDeployKeys) { + this.forcePushAllowlistDeployKeys = forcePushAllowlistDeployKeys; + } + + public EditBranchProtectionOption forcePushAllowlistTeams(List forcePushAllowlistTeams) { + this.forcePushAllowlistTeams = forcePushAllowlistTeams; + return this; + } + + public EditBranchProtectionOption addForcePushAllowlistTeamsItem( + String forcePushAllowlistTeamsItem) { + if (this.forcePushAllowlistTeams == null) { + this.forcePushAllowlistTeams = new ArrayList<>(); + } + this.forcePushAllowlistTeams.add(forcePushAllowlistTeamsItem); + return this; + } + + /** + * Get forcePushAllowlistTeams + * + * @return forcePushAllowlistTeams + */ + @Schema(description = "") + public List getForcePushAllowlistTeams() { + return forcePushAllowlistTeams; + } + + public void setForcePushAllowlistTeams(List forcePushAllowlistTeams) { + this.forcePushAllowlistTeams = forcePushAllowlistTeams; + } + + public EditBranchProtectionOption forcePushAllowlistUsernames( + List forcePushAllowlistUsernames) { + this.forcePushAllowlistUsernames = forcePushAllowlistUsernames; + return this; + } + + public EditBranchProtectionOption addForcePushAllowlistUsernamesItem( + String forcePushAllowlistUsernamesItem) { + if (this.forcePushAllowlistUsernames == null) { + this.forcePushAllowlistUsernames = new ArrayList<>(); + } + this.forcePushAllowlistUsernames.add(forcePushAllowlistUsernamesItem); + return this; + } + + /** + * Get forcePushAllowlistUsernames + * + * @return forcePushAllowlistUsernames + */ + @Schema(description = "") + public List getForcePushAllowlistUsernames() { + return forcePushAllowlistUsernames; + } + + public void setForcePushAllowlistUsernames(List forcePushAllowlistUsernames) { + this.forcePushAllowlistUsernames = forcePushAllowlistUsernames; + } + public EditBranchProtectionOption ignoreStaleApprovals(Boolean ignoreStaleApprovals) { this.ignoreStaleApprovals = ignoreStaleApprovals; return this; @@ -594,11 +724,22 @@ public class EditBranchProtectionOption implements Serializable { this.dismissStaleApprovals, editBranchProtectionOption.dismissStaleApprovals) && Objects.equals( this.enableApprovalsWhitelist, editBranchProtectionOption.enableApprovalsWhitelist) + && Objects.equals(this.enableForcePush, editBranchProtectionOption.enableForcePush) + && Objects.equals( + this.enableForcePushAllowlist, editBranchProtectionOption.enableForcePushAllowlist) && Objects.equals( this.enableMergeWhitelist, editBranchProtectionOption.enableMergeWhitelist) && Objects.equals(this.enablePush, editBranchProtectionOption.enablePush) && Objects.equals(this.enablePushWhitelist, editBranchProtectionOption.enablePushWhitelist) && Objects.equals(this.enableStatusCheck, editBranchProtectionOption.enableStatusCheck) + && Objects.equals( + this.forcePushAllowlistDeployKeys, + editBranchProtectionOption.forcePushAllowlistDeployKeys) + && Objects.equals( + this.forcePushAllowlistTeams, editBranchProtectionOption.forcePushAllowlistTeams) + && Objects.equals( + this.forcePushAllowlistUsernames, + editBranchProtectionOption.forcePushAllowlistUsernames) && Objects.equals( this.ignoreStaleApprovals, editBranchProtectionOption.ignoreStaleApprovals) && Objects.equals(this.mergeWhitelistTeams, editBranchProtectionOption.mergeWhitelistTeams) @@ -629,10 +770,15 @@ public class EditBranchProtectionOption implements Serializable { blockOnRejectedReviews, dismissStaleApprovals, enableApprovalsWhitelist, + enableForcePush, + enableForcePushAllowlist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, + forcePushAllowlistDeployKeys, + forcePushAllowlistTeams, + forcePushAllowlistUsernames, ignoreStaleApprovals, mergeWhitelistTeams, mergeWhitelistUsernames, @@ -672,6 +818,10 @@ public class EditBranchProtectionOption implements Serializable { sb.append(" enableApprovalsWhitelist: ") .append(toIndentedString(enableApprovalsWhitelist)) .append("\n"); + sb.append(" enableForcePush: ").append(toIndentedString(enableForcePush)).append("\n"); + sb.append(" enableForcePushAllowlist: ") + .append(toIndentedString(enableForcePushAllowlist)) + .append("\n"); sb.append(" enableMergeWhitelist: ") .append(toIndentedString(enableMergeWhitelist)) .append("\n"); @@ -680,6 +830,15 @@ public class EditBranchProtectionOption implements Serializable { .append(toIndentedString(enablePushWhitelist)) .append("\n"); sb.append(" enableStatusCheck: ").append(toIndentedString(enableStatusCheck)).append("\n"); + sb.append(" forcePushAllowlistDeployKeys: ") + .append(toIndentedString(forcePushAllowlistDeployKeys)) + .append("\n"); + sb.append(" forcePushAllowlistTeams: ") + .append(toIndentedString(forcePushAllowlistTeams)) + .append("\n"); + sb.append(" forcePushAllowlistUsernames: ") + .append(toIndentedString(forcePushAllowlistUsernames)) + .append("\n"); sb.append(" ignoreStaleApprovals: ") .append(toIndentedString(ignoreStaleApprovals)) .append("\n");