diff --git a/docs/CreateLabelOption.md b/docs/CreateLabelOption.md index 6c78f1f..3ba5ee3 100644 --- a/docs/CreateLabelOption.md +++ b/docs/CreateLabelOption.md @@ -5,4 +5,5 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **color** | **String** | | **description** | **String** | | [optional] +**exclusive** | **Boolean** | | [optional] **name** | **String** | | diff --git a/docs/EditLabelOption.md b/docs/EditLabelOption.md index ef5e2b1..5a5f288 100644 --- a/docs/EditLabelOption.md +++ b/docs/EditLabelOption.md @@ -5,4 +5,5 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **color** | **String** | | [optional] **description** | **String** | | [optional] +**exclusive** | **Boolean** | | [optional] **name** | **String** | | [optional] diff --git a/docs/Label.md b/docs/Label.md index 4bab2bb..8d09d11 100644 --- a/docs/Label.md +++ b/docs/Label.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **color** | **String** | | [optional] **description** | **String** | | [optional] +**exclusive** | **Boolean** | | [optional] **id** | **Long** | | [optional] **name** | **String** | | [optional] **url** | **String** | | [optional] diff --git a/src/main/java/org/gitnex/tea4j/v2/models/CreateLabelOption.java b/src/main/java/org/gitnex/tea4j/v2/models/CreateLabelOption.java index c8b8a63..c5d416e 100644 --- a/src/main/java/org/gitnex/tea4j/v2/models/CreateLabelOption.java +++ b/src/main/java/org/gitnex/tea4j/v2/models/CreateLabelOption.java @@ -28,6 +28,9 @@ public class CreateLabelOption implements Serializable { @SerializedName("description") private String description = null; + @SerializedName("exclusive") + private Boolean exclusive = null; + @SerializedName("name") private String name = null; @@ -69,6 +72,25 @@ public class CreateLabelOption implements Serializable { this.description = description; } + public CreateLabelOption exclusive(Boolean exclusive) { + this.exclusive = exclusive; + return this; + } + + /** + * Get exclusive + * + * @return exclusive + */ + @Schema(example = "false", description = "") + public Boolean isExclusive() { + return exclusive; + } + + public void setExclusive(Boolean exclusive) { + this.exclusive = exclusive; + } + public CreateLabelOption name(String name) { this.name = name; return this; @@ -99,12 +121,13 @@ public class CreateLabelOption implements Serializable { CreateLabelOption createLabelOption = (CreateLabelOption) o; return Objects.equals(this.color, createLabelOption.color) && Objects.equals(this.description, createLabelOption.description) + && Objects.equals(this.exclusive, createLabelOption.exclusive) && Objects.equals(this.name, createLabelOption.name); } @Override public int hashCode() { - return Objects.hash(color, description, name); + return Objects.hash(color, description, exclusive, name); } @Override @@ -114,6 +137,7 @@ public class CreateLabelOption implements Serializable { sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" exclusive: ").append(toIndentedString(exclusive)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/gitnex/tea4j/v2/models/EditLabelOption.java b/src/main/java/org/gitnex/tea4j/v2/models/EditLabelOption.java index 0091318..401de06 100644 --- a/src/main/java/org/gitnex/tea4j/v2/models/EditLabelOption.java +++ b/src/main/java/org/gitnex/tea4j/v2/models/EditLabelOption.java @@ -28,6 +28,9 @@ public class EditLabelOption implements Serializable { @SerializedName("description") private String description = null; + @SerializedName("exclusive") + private Boolean exclusive = null; + @SerializedName("name") private String name = null; @@ -41,7 +44,7 @@ public class EditLabelOption implements Serializable { * * @return color */ - @Schema(description = "") + @Schema(example = "#00aabb", description = "") public String getColor() { return color; } @@ -69,6 +72,25 @@ public class EditLabelOption implements Serializable { this.description = description; } + public EditLabelOption exclusive(Boolean exclusive) { + this.exclusive = exclusive; + return this; + } + + /** + * Get exclusive + * + * @return exclusive + */ + @Schema(example = "false", description = "") + public Boolean isExclusive() { + return exclusive; + } + + public void setExclusive(Boolean exclusive) { + this.exclusive = exclusive; + } + public EditLabelOption name(String name) { this.name = name; return this; @@ -99,12 +121,13 @@ public class EditLabelOption implements Serializable { EditLabelOption editLabelOption = (EditLabelOption) o; return Objects.equals(this.color, editLabelOption.color) && Objects.equals(this.description, editLabelOption.description) + && Objects.equals(this.exclusive, editLabelOption.exclusive) && Objects.equals(this.name, editLabelOption.name); } @Override public int hashCode() { - return Objects.hash(color, description, name); + return Objects.hash(color, description, exclusive, name); } @Override @@ -114,6 +137,7 @@ public class EditLabelOption implements Serializable { sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" exclusive: ").append(toIndentedString(exclusive)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/gitnex/tea4j/v2/models/Label.java b/src/main/java/org/gitnex/tea4j/v2/models/Label.java index 822039a..178af29 100644 --- a/src/main/java/org/gitnex/tea4j/v2/models/Label.java +++ b/src/main/java/org/gitnex/tea4j/v2/models/Label.java @@ -28,6 +28,9 @@ public class Label implements Serializable { @SerializedName("description") private String description = null; + @SerializedName("exclusive") + private Boolean exclusive = null; + @SerializedName("id") private Long id = null; @@ -75,6 +78,25 @@ public class Label implements Serializable { this.description = description; } + public Label exclusive(Boolean exclusive) { + this.exclusive = exclusive; + return this; + } + + /** + * Get exclusive + * + * @return exclusive + */ + @Schema(example = "false", description = "") + public Boolean isExclusive() { + return exclusive; + } + + public void setExclusive(Boolean exclusive) { + this.exclusive = exclusive; + } + public Label id(Long id) { this.id = id; return this; @@ -143,6 +165,7 @@ public class Label implements Serializable { Label label = (Label) o; return Objects.equals(this.color, label.color) && Objects.equals(this.description, label.description) + && Objects.equals(this.exclusive, label.exclusive) && Objects.equals(this.id, label.id) && Objects.equals(this.name, label.name) && Objects.equals(this.url, label.url); @@ -150,7 +173,7 @@ public class Label implements Serializable { @Override public int hashCode() { - return Objects.hash(color, description, id, name, url); + return Objects.hash(color, description, exclusive, id, name, url); } @Override @@ -160,6 +183,7 @@ public class Label implements Serializable { sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" exclusive: ").append(toIndentedString(exclusive)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n");