Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2022-12-31 00:04:42 +00:00
parent 39d68e2f21
commit ab3f0a5fca
4 changed files with 61 additions and 4 deletions
+1
View File
@@ -7,3 +7,4 @@ Name | Type | Description | Notes
**remoteAddress** | **String** | | [optional]
**remotePassword** | **String** | | [optional]
**remoteUsername** | **String** | | [optional]
**syncOnCommit** | **Boolean** | | [optional]
+1
View File
@@ -10,3 +10,4 @@ Name | Type | Description | Notes
**remoteAddress** | **String** | | [optional]
**remoteName** | **String** | | [optional]
**repoName** | **String** | | [optional]
**syncOnCommit** | **Boolean** | | [optional]
@@ -33,6 +33,9 @@ public class CreatePushMirrorOption implements Serializable {
@SerializedName("remote_username")
private String remoteUsername = null;
@SerializedName("sync_on_commit")
private Boolean syncOnCommit = null;
public CreatePushMirrorOption interval(String interval) {
this.interval = interval;
return this;
@@ -109,6 +112,25 @@ public class CreatePushMirrorOption implements Serializable {
this.remoteUsername = remoteUsername;
}
public CreatePushMirrorOption syncOnCommit(Boolean syncOnCommit) {
this.syncOnCommit = syncOnCommit;
return this;
}
/**
* Get syncOnCommit
*
* @return syncOnCommit
*/
@Schema(description = "")
public Boolean isSyncOnCommit() {
return syncOnCommit;
}
public void setSyncOnCommit(Boolean syncOnCommit) {
this.syncOnCommit = syncOnCommit;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -121,12 +143,13 @@ public class CreatePushMirrorOption implements Serializable {
return Objects.equals(this.interval, createPushMirrorOption.interval)
&& Objects.equals(this.remoteAddress, createPushMirrorOption.remoteAddress)
&& Objects.equals(this.remotePassword, createPushMirrorOption.remotePassword)
&& Objects.equals(this.remoteUsername, createPushMirrorOption.remoteUsername);
&& Objects.equals(this.remoteUsername, createPushMirrorOption.remoteUsername)
&& Objects.equals(this.syncOnCommit, createPushMirrorOption.syncOnCommit);
}
@Override
public int hashCode() {
return Objects.hash(interval, remoteAddress, remotePassword, remoteUsername);
return Objects.hash(interval, remoteAddress, remotePassword, remoteUsername, syncOnCommit);
}
@Override
@@ -138,6 +161,7 @@ public class CreatePushMirrorOption implements Serializable {
sb.append(" remoteAddress: ").append(toIndentedString(remoteAddress)).append("\n");
sb.append(" remotePassword: ").append(toIndentedString(remotePassword)).append("\n");
sb.append(" remoteUsername: ").append(toIndentedString(remoteUsername)).append("\n");
sb.append(" syncOnCommit: ").append(toIndentedString(syncOnCommit)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -43,6 +43,9 @@ public class PushMirror implements Serializable {
@SerializedName("repo_name")
private String repoName = null;
@SerializedName("sync_on_commit")
private Boolean syncOnCommit = null;
public PushMirror created(String created) {
this.created = created;
return this;
@@ -176,6 +179,25 @@ public class PushMirror implements Serializable {
this.repoName = repoName;
}
public PushMirror syncOnCommit(Boolean syncOnCommit) {
this.syncOnCommit = syncOnCommit;
return this;
}
/**
* Get syncOnCommit
*
* @return syncOnCommit
*/
@Schema(description = "")
public Boolean isSyncOnCommit() {
return syncOnCommit;
}
public void setSyncOnCommit(Boolean syncOnCommit) {
this.syncOnCommit = syncOnCommit;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -191,13 +213,21 @@ public class PushMirror implements Serializable {
&& Objects.equals(this.lastUpdate, pushMirror.lastUpdate)
&& Objects.equals(this.remoteAddress, pushMirror.remoteAddress)
&& Objects.equals(this.remoteName, pushMirror.remoteName)
&& Objects.equals(this.repoName, pushMirror.repoName);
&& Objects.equals(this.repoName, pushMirror.repoName)
&& Objects.equals(this.syncOnCommit, pushMirror.syncOnCommit);
}
@Override
public int hashCode() {
return Objects.hash(
created, interval, lastError, lastUpdate, remoteAddress, remoteName, repoName);
created,
interval,
lastError,
lastUpdate,
remoteAddress,
remoteName,
repoName,
syncOnCommit);
}
@Override
@@ -212,6 +242,7 @@ public class PushMirror implements Serializable {
sb.append(" remoteAddress: ").append(toIndentedString(remoteAddress)).append("\n");
sb.append(" remoteName: ").append(toIndentedString(remoteName)).append("\n");
sb.append(" repoName: ").append(toIndentedString(repoName)).append("\n");
sb.append(" syncOnCommit: ").append(toIndentedString(syncOnCommit)).append("\n");
sb.append("}");
return sb.toString();
}