Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2023-07-22 00:08:29 +00:00
parent 775c255ffd
commit 980ca2647f
2 changed files with 26 additions and 0 deletions
+1
View File
@@ -12,5 +12,6 @@ Name | Type | Description | Notes
**name** | **String** | Name of the repository to create |
**owner** | **String** | The organization or person who will own the new repository |
**_private** | **Boolean** | Whether the repository is private | [optional]
**protectedBranch** | **Boolean** | include protected branches in template repo | [optional]
**topics** | **Boolean** | include topics in template repo | [optional]
**webhooks** | **Boolean** | include webhooks in template repo | [optional]
@@ -49,6 +49,9 @@ public class GenerateRepoOption implements Serializable {
@SerializedName("private")
private Boolean _private = null;
@SerializedName("protected_branch")
private Boolean protectedBranch = null;
@SerializedName("topics")
private Boolean topics = null;
@@ -228,6 +231,25 @@ public class GenerateRepoOption implements Serializable {
this._private = _private;
}
public GenerateRepoOption protectedBranch(Boolean protectedBranch) {
this.protectedBranch = protectedBranch;
return this;
}
/**
* include protected branches in template repo
*
* @return protectedBranch
*/
@Schema(description = "include protected branches in template repo")
public Boolean isProtectedBranch() {
return protectedBranch;
}
public void setProtectedBranch(Boolean protectedBranch) {
this.protectedBranch = protectedBranch;
}
public GenerateRepoOption topics(Boolean topics) {
this.topics = topics;
return this;
@@ -284,6 +306,7 @@ public class GenerateRepoOption implements Serializable {
&& Objects.equals(this.name, generateRepoOption.name)
&& Objects.equals(this.owner, generateRepoOption.owner)
&& Objects.equals(this._private, generateRepoOption._private)
&& Objects.equals(this.protectedBranch, generateRepoOption.protectedBranch)
&& Objects.equals(this.topics, generateRepoOption.topics)
&& Objects.equals(this.webhooks, generateRepoOption.webhooks);
}
@@ -300,6 +323,7 @@ public class GenerateRepoOption implements Serializable {
name,
owner,
_private,
protectedBranch,
topics,
webhooks);
}
@@ -318,6 +342,7 @@ public class GenerateRepoOption implements Serializable {
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
sb.append(" _private: ").append(toIndentedString(_private)).append("\n");
sb.append(" protectedBranch: ").append(toIndentedString(protectedBranch)).append("\n");
sb.append(" topics: ").append(toIndentedString(topics)).append("\n");
sb.append(" webhooks: ").append(toIndentedString(webhooks)).append("\n");
sb.append("}");