From 2b5abe4395bca0271c5e5c27db781e7baf93faae Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 13 May 2026 10:57:24 +0000 Subject: [PATCH] Regenerate client from commit 4e0eafa of spec repo --- .generator/schemas/v2/openapi.yaml | 23 ++ .../api/client/v2/model/IssueAttributes.java | 29 +++ .../api/client/v2/model/IssueRegression.java | 201 ++++++++++++++++++ 3 files changed, 253 insertions(+) create mode 100644 src/main/java/com/datadog/api/client/v2/model/IssueRegression.java diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 5808b5f7964..e0b45ec9358 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -37090,6 +37090,8 @@ components: type: string platform: $ref: "#/components/schemas/IssuePlatform" + regression: + $ref: "#/components/schemas/IssueRegression" service: description: Service name. example: "email-api-py" @@ -37360,6 +37362,27 @@ components: - id - type type: object + IssueRegression: + description: Regression information for an issue that was previously resolved and then reopened. + properties: + regressed_at: + description: Timestamp when the issue was reopened (regressed). + example: "2024-01-03T08:00:00Z" + format: date-time + type: string + regressed_at_version: + description: Application version where the regression was observed. + example: "v2.5.2" + type: string + resolved_at: + description: Timestamp when the issue was resolved before the regression. + example: "2024-01-01T10:00:00Z" + format: date-time + type: string + required: + - resolved_at + - regressed_at + type: object IssueRelationships: description: Relationship between the issue and an assignee, case and/or teams. properties: diff --git a/src/main/java/com/datadog/api/client/v2/model/IssueAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IssueAttributes.java index 03c806dc43e..00e9428cb55 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IssueAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IssueAttributes.java @@ -31,6 +31,7 @@ IssueAttributes.JSON_PROPERTY_LAST_SEEN, IssueAttributes.JSON_PROPERTY_LAST_SEEN_VERSION, IssueAttributes.JSON_PROPERTY_PLATFORM, + IssueAttributes.JSON_PROPERTY_REGRESSION, IssueAttributes.JSON_PROPERTY_SERVICE, IssueAttributes.JSON_PROPERTY_STATE }) @@ -71,6 +72,9 @@ public class IssueAttributes { public static final String JSON_PROPERTY_PLATFORM = "platform"; private IssuePlatform platform; + public static final String JSON_PROPERTY_REGRESSION = "regression"; + private IssueRegression regression; + public static final String JSON_PROPERTY_SERVICE = "service"; private String service; @@ -321,6 +325,28 @@ public void setPlatform(IssuePlatform platform) { this.platform = platform; } + public IssueAttributes regression(IssueRegression regression) { + this.regression = regression; + this.unparsed |= regression.unparsed; + return this; + } + + /** + * Regression information for an issue that was previously resolved and then reopened. + * + * @return regression + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_REGRESSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public IssueRegression getRegression() { + return regression; + } + + public void setRegression(IssueRegression regression) { + this.regression = regression; + } + public IssueAttributes service(String service) { this.service = service; return this; @@ -434,6 +460,7 @@ public boolean equals(Object o) { && Objects.equals(this.lastSeen, issueAttributes.lastSeen) && Objects.equals(this.lastSeenVersion, issueAttributes.lastSeenVersion) && Objects.equals(this.platform, issueAttributes.platform) + && Objects.equals(this.regression, issueAttributes.regression) && Objects.equals(this.service, issueAttributes.service) && Objects.equals(this.state, issueAttributes.state) && Objects.equals(this.additionalProperties, issueAttributes.additionalProperties); @@ -453,6 +480,7 @@ public int hashCode() { lastSeen, lastSeenVersion, platform, + regression, service, state, additionalProperties); @@ -473,6 +501,7 @@ public String toString() { sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); sb.append(" lastSeenVersion: ").append(toIndentedString(lastSeenVersion)).append("\n"); sb.append(" platform: ").append(toIndentedString(platform)).append("\n"); + sb.append(" regression: ").append(toIndentedString(regression)).append("\n"); sb.append(" service: ").append(toIndentedString(service)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" additionalProperties: ") diff --git a/src/main/java/com/datadog/api/client/v2/model/IssueRegression.java b/src/main/java/com/datadog/api/client/v2/model/IssueRegression.java new file mode 100644 index 00000000000..d357126dc32 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/IssueRegression.java @@ -0,0 +1,201 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** Regression information for an issue that was previously resolved and then reopened. */ +@JsonPropertyOrder({ + IssueRegression.JSON_PROPERTY_REGRESSED_AT, + IssueRegression.JSON_PROPERTY_REGRESSED_AT_VERSION, + IssueRegression.JSON_PROPERTY_RESOLVED_AT +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class IssueRegression { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_REGRESSED_AT = "regressed_at"; + private OffsetDateTime regressedAt; + + public static final String JSON_PROPERTY_REGRESSED_AT_VERSION = "regressed_at_version"; + private String regressedAtVersion; + + public static final String JSON_PROPERTY_RESOLVED_AT = "resolved_at"; + private OffsetDateTime resolvedAt; + + public IssueRegression() {} + + @JsonCreator + public IssueRegression( + @JsonProperty(required = true, value = JSON_PROPERTY_REGRESSED_AT) OffsetDateTime regressedAt, + @JsonProperty(required = true, value = JSON_PROPERTY_RESOLVED_AT) OffsetDateTime resolvedAt) { + this.regressedAt = regressedAt; + this.resolvedAt = resolvedAt; + } + + public IssueRegression regressedAt(OffsetDateTime regressedAt) { + this.regressedAt = regressedAt; + return this; + } + + /** + * Timestamp when the issue was reopened (regressed). + * + * @return regressedAt + */ + @JsonProperty(JSON_PROPERTY_REGRESSED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public OffsetDateTime getRegressedAt() { + return regressedAt; + } + + public void setRegressedAt(OffsetDateTime regressedAt) { + this.regressedAt = regressedAt; + } + + public IssueRegression regressedAtVersion(String regressedAtVersion) { + this.regressedAtVersion = regressedAtVersion; + return this; + } + + /** + * Application version where the regression was observed. + * + * @return regressedAtVersion + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_REGRESSED_AT_VERSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRegressedAtVersion() { + return regressedAtVersion; + } + + public void setRegressedAtVersion(String regressedAtVersion) { + this.regressedAtVersion = regressedAtVersion; + } + + public IssueRegression resolvedAt(OffsetDateTime resolvedAt) { + this.resolvedAt = resolvedAt; + return this; + } + + /** + * Timestamp when the issue was resolved before the regression. + * + * @return resolvedAt + */ + @JsonProperty(JSON_PROPERTY_RESOLVED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public OffsetDateTime getResolvedAt() { + return resolvedAt; + } + + public void setResolvedAt(OffsetDateTime resolvedAt) { + this.resolvedAt = resolvedAt; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return IssueRegression + */ + @JsonAnySetter + public IssueRegression putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this IssueRegression object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IssueRegression issueRegression = (IssueRegression) o; + return Objects.equals(this.regressedAt, issueRegression.regressedAt) + && Objects.equals(this.regressedAtVersion, issueRegression.regressedAtVersion) + && Objects.equals(this.resolvedAt, issueRegression.resolvedAt) + && Objects.equals(this.additionalProperties, issueRegression.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(regressedAt, regressedAtVersion, resolvedAt, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IssueRegression {\n"); + sb.append(" regressedAt: ").append(toIndentedString(regressedAt)).append("\n"); + sb.append(" regressedAtVersion: ").append(toIndentedString(regressedAtVersion)).append("\n"); + sb.append(" resolvedAt: ").append(toIndentedString(resolvedAt)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +}