mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-06-04 16:52:17 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -1003,6 +1003,10 @@ public interface RepositoryApi {
|
||||
* @param path filepath of a file/dir (optional)
|
||||
* @param stat include diff stats for every commit (disable for speedup, default 'true')
|
||||
* (optional)
|
||||
* @param verification include verification for every commit (disable for speedup, default
|
||||
* 'true') (optional)
|
||||
* @param files include a list of affected files for every commit (disable for speedup, default
|
||||
* 'true') (optional)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (ignored if used with 'path') (optional)
|
||||
* @param not commits that match the given specifier will not be listed. (optional)
|
||||
@@ -1015,6 +1019,8 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Query("sha") String sha,
|
||||
@retrofit2.http.Query("path") String path,
|
||||
@retrofit2.http.Query("stat") Boolean stat,
|
||||
@retrofit2.http.Query("verification") Boolean verification,
|
||||
@retrofit2.http.Query("files") Boolean files,
|
||||
@retrofit2.http.Query("page") Integer page,
|
||||
@retrofit2.http.Query("limit") Integer limit,
|
||||
@retrofit2.http.Query("not") String not);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user