Skip to content

Commit 134e84e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 32a1eac of spec repo
1 parent 321c642 commit 134e84e

2 files changed

Lines changed: 55 additions & 1 deletion

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37229,6 +37229,15 @@ components:
3722937229
description: Search query following the event search syntax.
3723037230
example: "service:orders-* AND @language:go"
3723137231
type: string
37232+
states:
37233+
description: Filter issues by state. Multiple values are combined with OR logic.
37234+
example:
37235+
- "OPEN"
37236+
- "ACKNOWLEDGED"
37237+
items:
37238+
$ref: "#/components/schemas/IssueState"
37239+
maxItems: 20
37240+
type: array
3723237241
team_ids:
3723337242
description: Filter issues by team IDs. Multiple values are combined with OR logic.
3723437243
example:

src/main/java/com/datadog/api/client/v2/model/IssuesSearchRequestDataAttributes.java

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
IssuesSearchRequestDataAttributes.JSON_PROPERTY_ORDER_BY,
2828
IssuesSearchRequestDataAttributes.JSON_PROPERTY_PERSONA,
2929
IssuesSearchRequestDataAttributes.JSON_PROPERTY_QUERY,
30+
IssuesSearchRequestDataAttributes.JSON_PROPERTY_STATES,
3031
IssuesSearchRequestDataAttributes.JSON_PROPERTY_TEAM_IDS,
3132
IssuesSearchRequestDataAttributes.JSON_PROPERTY_TO,
3233
IssuesSearchRequestDataAttributes.JSON_PROPERTY_TRACK
@@ -50,6 +51,9 @@ public class IssuesSearchRequestDataAttributes {
5051
public static final String JSON_PROPERTY_QUERY = "query";
5152
private String query;
5253

54+
public static final String JSON_PROPERTY_STATES = "states";
55+
private List<IssueState> states = null;
56+
5357
public static final String JSON_PROPERTY_TEAM_IDS = "team_ids";
5458
private List<UUID> teamIds = null;
5559

@@ -192,6 +196,36 @@ public void setQuery(String query) {
192196
this.query = query;
193197
}
194198

199+
public IssuesSearchRequestDataAttributes states(List<IssueState> states) {
200+
this.states = states;
201+
return this;
202+
}
203+
204+
public IssuesSearchRequestDataAttributes addStatesItem(IssueState statesItem) {
205+
if (this.states == null) {
206+
this.states = new ArrayList<>();
207+
}
208+
this.states.add(statesItem);
209+
this.unparsed |= !statesItem.isValid();
210+
return this;
211+
}
212+
213+
/**
214+
* Filter issues by state. Multiple values are combined with OR logic.
215+
*
216+
* @return states
217+
*/
218+
@jakarta.annotation.Nullable
219+
@JsonProperty(JSON_PROPERTY_STATES)
220+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
221+
public List<IssueState> getStates() {
222+
return states;
223+
}
224+
225+
public void setStates(List<IssueState> states) {
226+
this.states = states;
227+
}
228+
195229
public IssuesSearchRequestDataAttributes teamIds(List<UUID> teamIds) {
196230
this.teamIds = teamIds;
197231
return this;
@@ -328,6 +362,7 @@ public boolean equals(Object o) {
328362
&& Objects.equals(this.orderBy, issuesSearchRequestDataAttributes.orderBy)
329363
&& Objects.equals(this.persona, issuesSearchRequestDataAttributes.persona)
330364
&& Objects.equals(this.query, issuesSearchRequestDataAttributes.query)
365+
&& Objects.equals(this.states, issuesSearchRequestDataAttributes.states)
331366
&& Objects.equals(this.teamIds, issuesSearchRequestDataAttributes.teamIds)
332367
&& Objects.equals(this.to, issuesSearchRequestDataAttributes.to)
333368
&& Objects.equals(this.track, issuesSearchRequestDataAttributes.track)
@@ -338,7 +373,16 @@ public boolean equals(Object o) {
338373
@Override
339374
public int hashCode() {
340375
return Objects.hash(
341-
assigneeIds, from, orderBy, persona, query, teamIds, to, track, additionalProperties);
376+
assigneeIds,
377+
from,
378+
orderBy,
379+
persona,
380+
query,
381+
states,
382+
teamIds,
383+
to,
384+
track,
385+
additionalProperties);
342386
}
343387

344388
@Override
@@ -350,6 +394,7 @@ public String toString() {
350394
sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n");
351395
sb.append(" persona: ").append(toIndentedString(persona)).append("\n");
352396
sb.append(" query: ").append(toIndentedString(query)).append("\n");
397+
sb.append(" states: ").append(toIndentedString(states)).append("\n");
353398
sb.append(" teamIds: ").append(toIndentedString(teamIds)).append("\n");
354399
sb.append(" to: ").append(toIndentedString(to)).append("\n");
355400
sb.append(" track: ").append(toIndentedString(track)).append("\n");

0 commit comments

Comments
 (0)