diff --git a/docs/EditRepoOption.md b/docs/EditRepoOption.md index ab25dac..1ef7031 100644 --- a/docs/EditRepoOption.md +++ b/docs/EditRepoOption.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **externalTracker** | [**ExternalTracker**](ExternalTracker.md) | | [optional] **externalWiki** | [**ExternalWiki**](ExternalWiki.md) | | [optional] **hasActions** | **Boolean** | either `true` to enable actions unit, or `false` to disable them. | [optional] +**hasCode** | **Boolean** | either `true` to enable code for this repository or `false` to disable it. | [optional] **hasIssues** | **Boolean** | either `true` to enable issues for this repository or `false` to disable them. | [optional] **hasPackages** | **Boolean** | either `true` to enable packages unit, or `false` to disable them. | [optional] **hasProjects** | **Boolean** | either `true` to enable project unit, or `false` to disable them. | [optional] diff --git a/docs/Repository.md b/docs/Repository.md index c77df4d..f744b65 100644 --- a/docs/Repository.md +++ b/docs/Repository.md @@ -28,6 +28,7 @@ Name | Type | Description | Notes **forksCount** | **Long** | | [optional] **fullName** | **String** | | [optional] **hasActions** | **Boolean** | | [optional] +**hasCode** | **Boolean** | | [optional] **hasIssues** | **Boolean** | | [optional] **hasPackages** | **Boolean** | | [optional] **hasProjects** | **Boolean** | | [optional] diff --git a/src/main/java/org/gitnex/tea4j/v2/models/EditRepoOption.java b/src/main/java/org/gitnex/tea4j/v2/models/EditRepoOption.java index 78dce04..bf96beb 100644 --- a/src/main/java/org/gitnex/tea4j/v2/models/EditRepoOption.java +++ b/src/main/java/org/gitnex/tea4j/v2/models/EditRepoOption.java @@ -76,6 +76,9 @@ public class EditRepoOption implements Serializable { @SerializedName("has_actions") private Boolean hasActions = null; + @SerializedName("has_code") + private Boolean hasCode = null; + @SerializedName("has_issues") private Boolean hasIssues = null; @@ -494,6 +497,26 @@ public class EditRepoOption implements Serializable { this.hasActions = hasActions; } + public EditRepoOption hasCode(Boolean hasCode) { + this.hasCode = hasCode; + return this; + } + + /** + * either `true` to enable code for this repository or `false` to disable it. + * + * @return hasCode + */ + @Schema( + description = "either `true` to enable code for this repository or `false` to disable it.") + public Boolean isHasCode() { + return hasCode; + } + + public void setHasCode(Boolean hasCode) { + this.hasCode = hasCode; + } + public EditRepoOption hasIssues(Boolean hasIssues) { this.hasIssues = hasIssues; return this; @@ -812,6 +835,7 @@ public class EditRepoOption implements Serializable { && Objects.equals(this.externalTracker, editRepoOption.externalTracker) && Objects.equals(this.externalWiki, editRepoOption.externalWiki) && Objects.equals(this.hasActions, editRepoOption.hasActions) + && Objects.equals(this.hasCode, editRepoOption.hasCode) && Objects.equals(this.hasIssues, editRepoOption.hasIssues) && Objects.equals(this.hasPackages, editRepoOption.hasPackages) && Objects.equals(this.hasProjects, editRepoOption.hasProjects) @@ -849,6 +873,7 @@ public class EditRepoOption implements Serializable { externalTracker, externalWiki, hasActions, + hasCode, hasIssues, hasPackages, hasProjects, @@ -898,6 +923,7 @@ public class EditRepoOption implements Serializable { sb.append(" externalTracker: ").append(toIndentedString(externalTracker)).append("\n"); sb.append(" externalWiki: ").append(toIndentedString(externalWiki)).append("\n"); sb.append(" hasActions: ").append(toIndentedString(hasActions)).append("\n"); + sb.append(" hasCode: ").append(toIndentedString(hasCode)).append("\n"); sb.append(" hasIssues: ").append(toIndentedString(hasIssues)).append("\n"); sb.append(" hasPackages: ").append(toIndentedString(hasPackages)).append("\n"); sb.append(" hasProjects: ").append(toIndentedString(hasProjects)).append("\n"); diff --git a/src/main/java/org/gitnex/tea4j/v2/models/Repository.java b/src/main/java/org/gitnex/tea4j/v2/models/Repository.java index e442b74..19f11c6 100644 --- a/src/main/java/org/gitnex/tea4j/v2/models/Repository.java +++ b/src/main/java/org/gitnex/tea4j/v2/models/Repository.java @@ -105,6 +105,9 @@ public class Repository implements Serializable { @SerializedName("has_actions") private Boolean hasActions = null; + @SerializedName("has_code") + private Boolean hasCode = null; + @SerializedName("has_issues") private Boolean hasIssues = null; @@ -742,6 +745,25 @@ public class Repository implements Serializable { this.hasActions = hasActions; } + public Repository hasCode(Boolean hasCode) { + this.hasCode = hasCode; + return this; + } + + /** + * Get hasCode + * + * @return hasCode + */ + @Schema(description = "") + public Boolean isHasCode() { + return hasCode; + } + + public void setHasCode(Boolean hasCode) { + this.hasCode = hasCode; + } + public Repository hasIssues(Boolean hasIssues) { this.hasIssues = hasIssues; return this; @@ -1534,6 +1556,7 @@ public class Repository implements Serializable { && Objects.equals(this.forksCount, repository.forksCount) && Objects.equals(this.fullName, repository.fullName) && Objects.equals(this.hasActions, repository.hasActions) + && Objects.equals(this.hasCode, repository.hasCode) && Objects.equals(this.hasIssues, repository.hasIssues) && Objects.equals(this.hasPackages, repository.hasPackages) && Objects.equals(this.hasProjects, repository.hasProjects) @@ -1603,6 +1626,7 @@ public class Repository implements Serializable { forksCount, fullName, hasActions, + hasCode, hasIssues, hasPackages, hasProjects, @@ -1684,6 +1708,7 @@ public class Repository implements Serializable { sb.append(" forksCount: ").append(toIndentedString(forksCount)).append("\n"); sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n"); sb.append(" hasActions: ").append(toIndentedString(hasActions)).append("\n"); + sb.append(" hasCode: ").append(toIndentedString(hasCode)).append("\n"); sb.append(" hasIssues: ").append(toIndentedString(hasIssues)).append("\n"); sb.append(" hasPackages: ").append(toIndentedString(hasPackages)).append("\n"); sb.append(" hasProjects: ").append(toIndentedString(hasProjects)).append("\n");