diff --git a/.generated-info b/.generated-info index 9cd7f08dbed..4186d87b58f 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "e4f653f", - "generated": "2025-07-25 14:08:34.729" + "spec_repo_commit": "b737cc4", + "generated": "2025-07-28 13:12:45.774" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 64cfcb7b7c4..c8e3b92e109 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -22867,6 +22867,17 @@ components: maximum: 5 minimum: 0 type: number + tags: + description: List of tag keys used in the asset. + example: + - env + - service + - host + - datacenter + items: + description: Tag key used in assets. + type: string + type: array title: description: Title of the asset. type: string diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricDashboardAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricDashboardAttributes.java index bae42bf9ccd..3288e632668 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricDashboardAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricDashboardAttributes.java @@ -12,13 +12,16 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; /** Attributes related to the dashboard, including title, popularity, and url. */ @JsonPropertyOrder({ MetricDashboardAttributes.JSON_PROPERTY_POPULARITY, + MetricDashboardAttributes.JSON_PROPERTY_TAGS, MetricDashboardAttributes.JSON_PROPERTY_TITLE, MetricDashboardAttributes.JSON_PROPERTY_URL }) @@ -29,6 +32,9 @@ public class MetricDashboardAttributes { public static final String JSON_PROPERTY_POPULARITY = "popularity"; private Double popularity; + public static final String JSON_PROPERTY_TAGS = "tags"; + private List tags = null; + public static final String JSON_PROPERTY_TITLE = "title"; private String title; @@ -56,6 +62,35 @@ public void setPopularity(Double popularity) { this.popularity = popularity; } + public MetricDashboardAttributes tags(List tags) { + this.tags = tags; + return this; + } + + public MetricDashboardAttributes addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + /** + * List of tag keys used in the asset. + * + * @return tags + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + public MetricDashboardAttributes title(String title) { this.title = title; return this; @@ -155,6 +190,7 @@ public boolean equals(Object o) { } MetricDashboardAttributes metricDashboardAttributes = (MetricDashboardAttributes) o; return Objects.equals(this.popularity, metricDashboardAttributes.popularity) + && Objects.equals(this.tags, metricDashboardAttributes.tags) && Objects.equals(this.title, metricDashboardAttributes.title) && Objects.equals(this.url, metricDashboardAttributes.url) && Objects.equals( @@ -163,7 +199,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(popularity, title, url, additionalProperties); + return Objects.hash(popularity, tags, title, url, additionalProperties); } @Override @@ -171,6 +207,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricDashboardAttributes {\n"); sb.append(" popularity: ").append(toIndentedString(popularity)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" additionalProperties: ")