mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-05-31 07:01:55 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**avatar** | **Boolean** | include avatar of the template repo | [optional]
|
||||
**defaultBranch** | **String** | Default branch of the new repository | [optional]
|
||||
**description** | **String** | Description of the repository to create | [optional]
|
||||
**gitContent** | **Boolean** | include git content of default branch in template repo | [optional]
|
||||
**gitHooks** | **Boolean** | include git hooks in template repo | [optional]
|
||||
|
||||
@@ -25,6 +25,9 @@ public class GenerateRepoOption implements Serializable {
|
||||
@SerializedName("avatar")
|
||||
private Boolean avatar = null;
|
||||
|
||||
@SerializedName("default_branch")
|
||||
private String defaultBranch = null;
|
||||
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
||||
@@ -71,6 +74,25 @@ public class GenerateRepoOption implements Serializable {
|
||||
this.avatar = avatar;
|
||||
}
|
||||
|
||||
public GenerateRepoOption defaultBranch(String defaultBranch) {
|
||||
this.defaultBranch = defaultBranch;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Default branch of the new repository
|
||||
*
|
||||
* @return defaultBranch
|
||||
*/
|
||||
@Schema(description = "Default branch of the new repository")
|
||||
public String getDefaultBranch() {
|
||||
return defaultBranch;
|
||||
}
|
||||
|
||||
public void setDefaultBranch(String defaultBranch) {
|
||||
this.defaultBranch = defaultBranch;
|
||||
}
|
||||
|
||||
public GenerateRepoOption description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
@@ -254,6 +276,7 @@ public class GenerateRepoOption implements Serializable {
|
||||
}
|
||||
GenerateRepoOption generateRepoOption = (GenerateRepoOption) o;
|
||||
return Objects.equals(this.avatar, generateRepoOption.avatar)
|
||||
&& Objects.equals(this.defaultBranch, generateRepoOption.defaultBranch)
|
||||
&& Objects.equals(this.description, generateRepoOption.description)
|
||||
&& Objects.equals(this.gitContent, generateRepoOption.gitContent)
|
||||
&& Objects.equals(this.gitHooks, generateRepoOption.gitHooks)
|
||||
@@ -268,7 +291,17 @@ public class GenerateRepoOption implements Serializable {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
avatar, description, gitContent, gitHooks, labels, name, owner, _private, topics, webhooks);
|
||||
avatar,
|
||||
defaultBranch,
|
||||
description,
|
||||
gitContent,
|
||||
gitHooks,
|
||||
labels,
|
||||
name,
|
||||
owner,
|
||||
_private,
|
||||
topics,
|
||||
webhooks);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -277,6 +310,7 @@ public class GenerateRepoOption implements Serializable {
|
||||
sb.append("class GenerateRepoOption {\n");
|
||||
|
||||
sb.append(" avatar: ").append(toIndentedString(avatar)).append("\n");
|
||||
sb.append(" defaultBranch: ").append(toIndentedString(defaultBranch)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" gitContent: ").append(toIndentedString(gitContent)).append("\n");
|
||||
sb.append(" gitHooks: ").append(toIndentedString(gitHooks)).append("\n");
|
||||
|
||||
Reference in New Issue
Block a user