Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2022-04-28 22:00:39 +00:00
parent 08b075f6d1
commit 188d4d013f
4 changed files with 68 additions and 3 deletions
@@ -25,6 +25,9 @@ import java.util.Objects;
public class EditPullRequestOption implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("allow_maintainer_edit")
private Boolean allowMaintainerEdit = null;
@SerializedName("assignee")
private String assignee = null;
@@ -55,6 +58,25 @@ public class EditPullRequestOption implements Serializable {
@SerializedName("unset_due_date")
private Boolean unsetDueDate = null;
public EditPullRequestOption allowMaintainerEdit(Boolean allowMaintainerEdit) {
this.allowMaintainerEdit = allowMaintainerEdit;
return this;
}
/**
* Get allowMaintainerEdit
*
* @return allowMaintainerEdit
*/
@Schema(description = "")
public Boolean isAllowMaintainerEdit() {
return allowMaintainerEdit;
}
public void setAllowMaintainerEdit(Boolean allowMaintainerEdit) {
this.allowMaintainerEdit = allowMaintainerEdit;
}
public EditPullRequestOption assignee(String assignee) {
this.assignee = assignee;
return this;
@@ -270,7 +292,8 @@ public class EditPullRequestOption implements Serializable {
return false;
}
EditPullRequestOption editPullRequestOption = (EditPullRequestOption) o;
return Objects.equals(this.assignee, editPullRequestOption.assignee)
return Objects.equals(this.allowMaintainerEdit, editPullRequestOption.allowMaintainerEdit)
&& Objects.equals(this.assignee, editPullRequestOption.assignee)
&& Objects.equals(this.assignees, editPullRequestOption.assignees)
&& Objects.equals(this.base, editPullRequestOption.base)
&& Objects.equals(this.body, editPullRequestOption.body)
@@ -285,7 +308,17 @@ public class EditPullRequestOption implements Serializable {
@Override
public int hashCode() {
return Objects.hash(
assignee, assignees, base, body, dueDate, labels, milestone, state, title, unsetDueDate);
allowMaintainerEdit,
assignee,
assignees,
base,
body,
dueDate,
labels,
milestone,
state,
title,
unsetDueDate);
}
@Override
@@ -293,6 +326,9 @@ public class EditPullRequestOption implements Serializable {
StringBuilder sb = new StringBuilder();
sb.append("class EditPullRequestOption {\n");
sb.append(" allowMaintainerEdit: ")
.append(toIndentedString(allowMaintainerEdit))
.append("\n");
sb.append(" assignee: ").append(toIndentedString(assignee)).append("\n");
sb.append(" assignees: ").append(toIndentedString(assignees)).append("\n");
sb.append(" base: ").append(toIndentedString(base)).append("\n");
@@ -25,6 +25,9 @@ import java.util.Objects;
public class PullRequest implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("allow_maintainer_edit")
private Boolean allowMaintainerEdit = null;
@SerializedName("assignee")
private User assignee = null;
@@ -109,6 +112,25 @@ public class PullRequest implements Serializable {
@SerializedName("user")
private User user = null;
public PullRequest allowMaintainerEdit(Boolean allowMaintainerEdit) {
this.allowMaintainerEdit = allowMaintainerEdit;
return this;
}
/**
* Get allowMaintainerEdit
*
* @return allowMaintainerEdit
*/
@Schema(description = "")
public Boolean isAllowMaintainerEdit() {
return allowMaintainerEdit;
}
public void setAllowMaintainerEdit(Boolean allowMaintainerEdit) {
this.allowMaintainerEdit = allowMaintainerEdit;
}
public PullRequest assignee(User assignee) {
this.assignee = assignee;
return this;
@@ -666,7 +688,8 @@ public class PullRequest implements Serializable {
return false;
}
PullRequest pullRequest = (PullRequest) o;
return Objects.equals(this.assignee, pullRequest.assignee)
return Objects.equals(this.allowMaintainerEdit, pullRequest.allowMaintainerEdit)
&& Objects.equals(this.assignee, pullRequest.assignee)
&& Objects.equals(this.assignees, pullRequest.assignees)
&& Objects.equals(this.base, pullRequest.base)
&& Objects.equals(this.body, pullRequest.body)
@@ -699,6 +722,7 @@ public class PullRequest implements Serializable {
@Override
public int hashCode() {
return Objects.hash(
allowMaintainerEdit,
assignee,
assignees,
base,
@@ -734,6 +758,9 @@ public class PullRequest implements Serializable {
StringBuilder sb = new StringBuilder();
sb.append("class PullRequest {\n");
sb.append(" allowMaintainerEdit: ")
.append(toIndentedString(allowMaintainerEdit))
.append("\n");
sb.append(" assignee: ").append(toIndentedString(assignee)).append("\n");
sb.append(" assignees: ").append(toIndentedString(assignees)).append("\n");
sb.append(" base: ").append(toIndentedString(base)).append("\n");