diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 75755ab7e79..8a51fd127ec 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -35984,6 +35984,15 @@ components: IssuesSearchRequestDataAttributes: description: Object describing a search issue request. properties: + assignee_ids: + description: Filter issues by assignee IDs. Multiple values are combined with OR logic. + example: + - "00000000-0000-0000-0000-000000000001" + items: + format: uuid + type: string + maxItems: 50 + type: array from: description: Start date (inclusive) of the query in milliseconds since the Unix epoch. example: 1671612804000 @@ -35997,6 +36006,15 @@ components: description: Search query following the event search syntax. example: "service:orders-* AND @language:go" type: string + team_ids: + description: Filter issues by team IDs. Multiple values are combined with OR logic. + example: + - "00000000-0000-0000-0000-000000000002" + items: + format: uuid + type: string + maxItems: 50 + type: array to: description: End date (exclusive) of the query in milliseconds since the Unix epoch. example: 1671620004000 diff --git a/src/main/java/com/datadog/api/client/v2/model/IssuesSearchRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/IssuesSearchRequestDataAttributes.java index 25256acdc2b..32270024df9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IssuesSearchRequestDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/IssuesSearchRequestDataAttributes.java @@ -13,16 +13,21 @@ 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; +import java.util.UUID; /** Object describing a search issue request. */ @JsonPropertyOrder({ + IssuesSearchRequestDataAttributes.JSON_PROPERTY_ASSIGNEE_IDS, IssuesSearchRequestDataAttributes.JSON_PROPERTY_FROM, IssuesSearchRequestDataAttributes.JSON_PROPERTY_ORDER_BY, IssuesSearchRequestDataAttributes.JSON_PROPERTY_PERSONA, IssuesSearchRequestDataAttributes.JSON_PROPERTY_QUERY, + IssuesSearchRequestDataAttributes.JSON_PROPERTY_TEAM_IDS, IssuesSearchRequestDataAttributes.JSON_PROPERTY_TO, IssuesSearchRequestDataAttributes.JSON_PROPERTY_TRACK }) @@ -30,6 +35,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class IssuesSearchRequestDataAttributes { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ASSIGNEE_IDS = "assignee_ids"; + private List assigneeIds = null; + public static final String JSON_PROPERTY_FROM = "from"; private Long from; @@ -42,6 +50,9 @@ public class IssuesSearchRequestDataAttributes { public static final String JSON_PROPERTY_QUERY = "query"; private String query; + public static final String JSON_PROPERTY_TEAM_IDS = "team_ids"; + private List teamIds = null; + public static final String JSON_PROPERTY_TO = "to"; private Long to; @@ -60,6 +71,35 @@ public IssuesSearchRequestDataAttributes( this.to = to; } + public IssuesSearchRequestDataAttributes assigneeIds(List assigneeIds) { + this.assigneeIds = assigneeIds; + return this; + } + + public IssuesSearchRequestDataAttributes addAssigneeIdsItem(UUID assigneeIdsItem) { + if (this.assigneeIds == null) { + this.assigneeIds = new ArrayList<>(); + } + this.assigneeIds.add(assigneeIdsItem); + return this; + } + + /** + * Filter issues by assignee IDs. Multiple values are combined with OR logic. + * + * @return assigneeIds + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ASSIGNEE_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getAssigneeIds() { + return assigneeIds; + } + + public void setAssigneeIds(List assigneeIds) { + this.assigneeIds = assigneeIds; + } + public IssuesSearchRequestDataAttributes from(Long from) { this.from = from; return this; @@ -152,6 +192,35 @@ public void setQuery(String query) { this.query = query; } + public IssuesSearchRequestDataAttributes teamIds(List teamIds) { + this.teamIds = teamIds; + return this; + } + + public IssuesSearchRequestDataAttributes addTeamIdsItem(UUID teamIdsItem) { + if (this.teamIds == null) { + this.teamIds = new ArrayList<>(); + } + this.teamIds.add(teamIdsItem); + return this; + } + + /** + * Filter issues by team IDs. Multiple values are combined with OR logic. + * + * @return teamIds + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TEAM_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTeamIds() { + return teamIds; + } + + public void setTeamIds(List teamIds) { + this.teamIds = teamIds; + } + public IssuesSearchRequestDataAttributes to(Long to) { this.to = to; return this; @@ -254,10 +323,12 @@ public boolean equals(Object o) { } IssuesSearchRequestDataAttributes issuesSearchRequestDataAttributes = (IssuesSearchRequestDataAttributes) o; - return Objects.equals(this.from, issuesSearchRequestDataAttributes.from) + return Objects.equals(this.assigneeIds, issuesSearchRequestDataAttributes.assigneeIds) + && Objects.equals(this.from, issuesSearchRequestDataAttributes.from) && Objects.equals(this.orderBy, issuesSearchRequestDataAttributes.orderBy) && Objects.equals(this.persona, issuesSearchRequestDataAttributes.persona) && Objects.equals(this.query, issuesSearchRequestDataAttributes.query) + && Objects.equals(this.teamIds, issuesSearchRequestDataAttributes.teamIds) && Objects.equals(this.to, issuesSearchRequestDataAttributes.to) && Objects.equals(this.track, issuesSearchRequestDataAttributes.track) && Objects.equals( @@ -266,17 +337,20 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(from, orderBy, persona, query, to, track, additionalProperties); + return Objects.hash( + assigneeIds, from, orderBy, persona, query, teamIds, to, track, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IssuesSearchRequestDataAttributes {\n"); + sb.append(" assigneeIds: ").append(toIndentedString(assigneeIds)).append("\n"); sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n"); sb.append(" persona: ").append(toIndentedString(persona)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" teamIds: ").append(toIndentedString(teamIds)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); sb.append(" track: ").append(toIndentedString(track)).append("\n"); sb.append(" additionalProperties: ")