Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2023-05-10 00:05:23 +00:00
parent 0a6acd87fd
commit 995c393ca7
4 changed files with 42 additions and 7 deletions
@@ -28,6 +28,9 @@ public class CreateBranchRepoOption implements Serializable {
@SerializedName("old_branch_name")
private String oldBranchName = null;
@SerializedName("old_ref_name")
private String oldRefName = null;
public CreateBranchRepoOption newBranchName(String newBranchName) {
this.newBranchName = newBranchName;
return this;
@@ -53,11 +56,11 @@ public class CreateBranchRepoOption implements Serializable {
}
/**
* Name of the old branch to create from
* Deprecated: true Name of the old branch to create from
*
* @return oldBranchName
*/
@Schema(description = "Name of the old branch to create from")
@Schema(description = "Deprecated: true Name of the old branch to create from")
public String getOldBranchName() {
return oldBranchName;
}
@@ -66,6 +69,25 @@ public class CreateBranchRepoOption implements Serializable {
this.oldBranchName = oldBranchName;
}
public CreateBranchRepoOption oldRefName(String oldRefName) {
this.oldRefName = oldRefName;
return this;
}
/**
* Name of the old branch/tag/commit to create from
*
* @return oldRefName
*/
@Schema(description = "Name of the old branch/tag/commit to create from")
public String getOldRefName() {
return oldRefName;
}
public void setOldRefName(String oldRefName) {
this.oldRefName = oldRefName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -76,12 +98,13 @@ public class CreateBranchRepoOption implements Serializable {
}
CreateBranchRepoOption createBranchRepoOption = (CreateBranchRepoOption) o;
return Objects.equals(this.newBranchName, createBranchRepoOption.newBranchName)
&& Objects.equals(this.oldBranchName, createBranchRepoOption.oldBranchName);
&& Objects.equals(this.oldBranchName, createBranchRepoOption.oldBranchName)
&& Objects.equals(this.oldRefName, createBranchRepoOption.oldRefName);
}
@Override
public int hashCode() {
return Objects.hash(newBranchName, oldBranchName);
return Objects.hash(newBranchName, oldBranchName, oldRefName);
}
@Override
@@ -91,6 +114,7 @@ public class CreateBranchRepoOption implements Serializable {
sb.append(" newBranchName: ").append(toIndentedString(newBranchName)).append("\n");
sb.append(" oldBranchName: ").append(toIndentedString(oldBranchName)).append("\n");
sb.append(" oldRefName: ").append(toIndentedString(oldRefName)).append("\n");
sb.append("}");
return sb.toString();
}