diff --git a/.generated-info b/.generated-info index f029dbd2d2c..f75800ed5b6 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "4727afe", - "generated": "2025-07-23 15:38:09.593" + "spec_repo_commit": "c09ac23", + "generated": "2025-07-24 19:59:23.532" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d6126b44306..db8036425c4 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -22454,8 +22454,19 @@ components: readOnly: true type: object MetricAssetAttributes: - description: Assets related to the object, including title and url. + description: Assets related to the object, including title, url, and tags. properties: + 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/MetricAssetAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricAssetAttributes.java index 3ca21f8fd64..e684625bbac 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricAssetAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricAssetAttributes.java @@ -12,12 +12,15 @@ 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; -/** Assets related to the object, including title and url. */ +/** Assets related to the object, including title, url, and tags. */ @JsonPropertyOrder({ + MetricAssetAttributes.JSON_PROPERTY_TAGS, MetricAssetAttributes.JSON_PROPERTY_TITLE, MetricAssetAttributes.JSON_PROPERTY_URL }) @@ -25,12 +28,44 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MetricAssetAttributes { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_TAGS = "tags"; + private List tags = null; + public static final String JSON_PROPERTY_TITLE = "title"; private String title; public static final String JSON_PROPERTY_URL = "url"; private String url; + public MetricAssetAttributes tags(List tags) { + this.tags = tags; + return this; + } + + public MetricAssetAttributes 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 MetricAssetAttributes title(String title) { this.title = title; return this; @@ -129,20 +164,22 @@ public boolean equals(Object o) { return false; } MetricAssetAttributes metricAssetAttributes = (MetricAssetAttributes) o; - return Objects.equals(this.title, metricAssetAttributes.title) + return Objects.equals(this.tags, metricAssetAttributes.tags) + && Objects.equals(this.title, metricAssetAttributes.title) && Objects.equals(this.url, metricAssetAttributes.url) && Objects.equals(this.additionalProperties, metricAssetAttributes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(title, url, additionalProperties); + return Objects.hash(tags, title, url, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetricAssetAttributes {\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: ") diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricMonitorAsset.java b/src/main/java/com/datadog/api/client/v2/model/MetricMonitorAsset.java index 1cca44b827e..d6c46bd0c23 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricMonitorAsset.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricMonitorAsset.java @@ -54,7 +54,7 @@ public MetricMonitorAsset attributes(MetricAssetAttributes attributes) { } /** - * Assets related to the object, including title and url. + * Assets related to the object, including title, url, and tags. * * @return attributes */ diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricNotebookAsset.java b/src/main/java/com/datadog/api/client/v2/model/MetricNotebookAsset.java index 60de888aa8f..b8b1fb2641d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricNotebookAsset.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricNotebookAsset.java @@ -54,7 +54,7 @@ public MetricNotebookAsset attributes(MetricAssetAttributes attributes) { } /** - * Assets related to the object, including title and url. + * Assets related to the object, including title, url, and tags. * * @return attributes */ diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricSLOAsset.java b/src/main/java/com/datadog/api/client/v2/model/MetricSLOAsset.java index 11d6c2c0f0f..eb0d8149eb9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricSLOAsset.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricSLOAsset.java @@ -54,7 +54,7 @@ public MetricSLOAsset attributes(MetricAssetAttributes attributes) { } /** - * Assets related to the object, including title and url. + * Assets related to the object, including title, url, and tags. * * @return attributes */