From fa0f68a886ad768167763bc405c6fb625f68ce68 Mon Sep 17 00:00:00 2001 From: "dapla-bot[bot]" <143391972+dapla-bot[bot]@users.noreply.github.com> Date: Wed, 7 Aug 2024 09:44:51 +0000 Subject: [PATCH] [GENERATE] Java classes from JSON Schema --- .../ssb/dapla/kuben/v1/ArtifactRegistry.java | 53 ++++++++++++++++--- 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/v1/ArtifactRegistry.java b/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/v1/ArtifactRegistry.java index 0b09505..13e811c 100644 --- a/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/v1/ArtifactRegistry.java +++ b/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/v1/ArtifactRegistry.java @@ -19,6 +19,7 @@ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "formats", + "location", "repos" }) @Generated("jsonschema2pojo") @@ -33,6 +34,13 @@ public class ArtifactRegistry implements Serializable @JsonPropertyDescription("Set of formats - in upper case- to create artifact registries for, as defined in https://cloud.google.com/artifact-registry/docs/supported-formats . Examples is DOCKER, PYTHON") @Valid private List formats = new ArrayList(); + /** + * The location for the artifact registry repositories. + * + */ + @JsonProperty("location") + @JsonPropertyDescription("The location for the artifact registry repositories.") + private String location; /** * A list of github repositories under Statistics Norway-organisation that is allowed to push to Artifact Registry repositories of the team. * @@ -44,7 +52,7 @@ public class ArtifactRegistry implements Serializable @JsonIgnore @Valid private Map additionalProperties = new LinkedHashMap(); - private final static long serialVersionUID = -2223012852394825404L; + private final static long serialVersionUID = 8182237757758119666L; /** * No args constructor for use in serialization @@ -59,10 +67,13 @@ public ArtifactRegistry() { * Set of formats - in upper case- to create artifact registries for, as defined in https://cloud.google.com/artifact-registry/docs/supported-formats . Examples is DOCKER, PYTHON. * @param repos * A list of github repositories under Statistics Norway-organisation that is allowed to push to Artifact Registry repositories of the team. + * @param location + * The location for the artifact registry repositories. */ - public ArtifactRegistry(List formats, List repos) { + public ArtifactRegistry(List formats, String location, List repos) { super(); this.formats = formats; + this.location = location; this.repos = repos; } @@ -88,6 +99,24 @@ public void setFormats(List formats) { this.formats = formats; } + /** + * The location for the artifact registry repositories. + * + */ + @JsonProperty("location") + public String getLocation() { + return location; + } + + /** + * The location for the artifact registry repositories. + * + */ + @JsonProperty("location") + public void setLocation(String location) { + this.location = location; + } + /** * A list of github repositories under Statistics Norway-organisation that is allowed to push to Artifact Registry repositories of the team. * @@ -124,6 +153,10 @@ public String toString() { sb.append('='); sb.append(((this.formats == null)?"":this.formats)); sb.append(','); + sb.append("location"); + sb.append('='); + sb.append(((this.location == null)?"":this.location)); + sb.append(','); sb.append("repos"); sb.append('='); sb.append(((this.repos == null)?"":this.repos)); @@ -143,6 +176,7 @@ public String toString() { @Override public int hashCode() { int result = 1; + result = ((result* 31)+((this.location == null)? 0 :this.location.hashCode())); result = ((result* 31)+((this.formats == null)? 0 :this.formats.hashCode())); result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode())); result = ((result* 31)+((this.repos == null)? 0 :this.repos.hashCode())); @@ -158,7 +192,7 @@ public boolean equals(Object other) { return false; } ArtifactRegistry rhs = ((ArtifactRegistry) other); - return ((((this.formats == rhs.formats)||((this.formats!= null)&&this.formats.equals(rhs.formats)))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.repos == rhs.repos)||((this.repos!= null)&&this.repos.equals(rhs.repos)))); + return (((((this.location == rhs.location)||((this.location!= null)&&this.location.equals(rhs.location)))&&((this.formats == rhs.formats)||((this.formats!= null)&&this.formats.equals(rhs.formats))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.repos == rhs.repos)||((this.repos!= null)&&this.repos.equals(rhs.repos)))); } public static class ArtifactRegistryBuilder @@ -170,8 +204,8 @@ public ArtifactRegistryBuilder() { super(); } - public ArtifactRegistryBuilder(List formats, List repos) { - super(formats, repos); + public ArtifactRegistryBuilder(List formats, String location, List repos) { + super(formats, location, repos); } } @@ -189,10 +223,10 @@ public ArtifactRegistryBuilderBase() { } @SuppressWarnings("unchecked") - public ArtifactRegistryBuilderBase(List formats, List repos) { + public ArtifactRegistryBuilderBase(List formats, String location, List repos) { // Skip initialization when called from subclass if (this.getClass().equals(ArtifactRegistry.ArtifactRegistryBuilder.class)) { - this.instance = ((T) new ArtifactRegistry(formats, repos)); + this.instance = ((T) new ArtifactRegistry(formats, location, repos)); } } @@ -208,6 +242,11 @@ public ArtifactRegistry.ArtifactRegistryBuilderBase withFormats(List for return this; } + public ArtifactRegistry.ArtifactRegistryBuilderBase withLocation(String location) { + ((ArtifactRegistry) this.instance).location = location; + return this; + } + public ArtifactRegistry.ArtifactRegistryBuilderBase withRepos(List repos) { ((ArtifactRegistry) this.instance).repos = repos; return this;