Skip to content

Commit 6c1d652

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 31044eb9 of spec repo (#2945)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent b28c9bf commit 6c1d652

File tree

5 files changed

+70
-6
lines changed

5 files changed

+70
-6
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-06-25 17:36:54.437854",
8-
"spec_repo_commit": "51c17453"
7+
"regenerated": "2025-06-25 21:28:41.643700",
8+
"spec_repo_commit": "31044eb9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-25 17:36:54.453686",
13-
"spec_repo_commit": "51c17453"
12+
"regenerated": "2025-06-25 21:28:41.660214",
13+
"spec_repo_commit": "31044eb9"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17419,6 +17419,10 @@ components:
1741917419
items:
1742017420
$ref: '#/components/schemas/IncidentTimelineCellCreateAttributes'
1742117421
type: array
17422+
is_test:
17423+
description: A flag indicating whether the incident is a test incident.
17424+
example: false
17425+
type: boolean
1742217426
notification_handles:
1742317427
description: Notification handles that will be notified of the incident
1742417428
at creation.
@@ -17824,6 +17828,10 @@ components:
1782417828
description: A unique identifier that represents an incident type.
1782517829
example: 00000000-0000-0000-0000-000000000000
1782617830
type: string
17831+
is_test:
17832+
description: A flag indicating whether the incident is a test incident.
17833+
example: false
17834+
type: boolean
1782717835
modified:
1782817836
description: Timestamp when the incident was last modified.
1782917837
format: date-time

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
IncidentCreateAttributes.JSON_PROPERTY_FIELDS,
2727
IncidentCreateAttributes.JSON_PROPERTY_INCIDENT_TYPE_UUID,
2828
IncidentCreateAttributes.JSON_PROPERTY_INITIAL_CELLS,
29+
IncidentCreateAttributes.JSON_PROPERTY_IS_TEST,
2930
IncidentCreateAttributes.JSON_PROPERTY_NOTIFICATION_HANDLES,
3031
IncidentCreateAttributes.JSON_PROPERTY_TITLE
3132
})
@@ -48,6 +49,9 @@ public class IncidentCreateAttributes {
4849
public static final String JSON_PROPERTY_INITIAL_CELLS = "initial_cells";
4950
private List<IncidentTimelineCellCreateAttributes> initialCells = null;
5051

52+
public static final String JSON_PROPERTY_IS_TEST = "is_test";
53+
private Boolean isTest;
54+
5155
public static final String JSON_PROPERTY_NOTIFICATION_HANDLES = "notification_handles";
5256
private List<IncidentNotificationHandle> notificationHandles = null;
5357

@@ -193,6 +197,27 @@ public void setInitialCells(List<IncidentTimelineCellCreateAttributes> initialCe
193197
this.initialCells = initialCells;
194198
}
195199

200+
public IncidentCreateAttributes isTest(Boolean isTest) {
201+
this.isTest = isTest;
202+
return this;
203+
}
204+
205+
/**
206+
* A flag indicating whether the incident is a test incident.
207+
*
208+
* @return isTest
209+
*/
210+
@jakarta.annotation.Nullable
211+
@JsonProperty(JSON_PROPERTY_IS_TEST)
212+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
213+
public Boolean getIsTest() {
214+
return isTest;
215+
}
216+
217+
public void setIsTest(Boolean isTest) {
218+
this.isTest = isTest;
219+
}
220+
196221
public IncidentCreateAttributes notificationHandles(
197222
List<IncidentNotificationHandle> notificationHandles) {
198223
this.notificationHandles = notificationHandles;
@@ -309,6 +334,7 @@ public boolean equals(Object o) {
309334
&& Objects.equals(this.fields, incidentCreateAttributes.fields)
310335
&& Objects.equals(this.incidentTypeUuid, incidentCreateAttributes.incidentTypeUuid)
311336
&& Objects.equals(this.initialCells, incidentCreateAttributes.initialCells)
337+
&& Objects.equals(this.isTest, incidentCreateAttributes.isTest)
312338
&& Objects.equals(this.notificationHandles, incidentCreateAttributes.notificationHandles)
313339
&& Objects.equals(this.title, incidentCreateAttributes.title)
314340
&& Objects.equals(this.additionalProperties, incidentCreateAttributes.additionalProperties);
@@ -322,6 +348,7 @@ public int hashCode() {
322348
fields,
323349
incidentTypeUuid,
324350
initialCells,
351+
isTest,
325352
notificationHandles,
326353
title,
327354
additionalProperties);
@@ -338,6 +365,7 @@ public String toString() {
338365
sb.append(" fields: ").append(toIndentedString(fields)).append("\n");
339366
sb.append(" incidentTypeUuid: ").append(toIndentedString(incidentTypeUuid)).append("\n");
340367
sb.append(" initialCells: ").append(toIndentedString(initialCells)).append("\n");
368+
sb.append(" isTest: ").append(toIndentedString(isTest)).append("\n");
341369
sb.append(" notificationHandles: ")
342370
.append(toIndentedString(notificationHandles))
343371
.append("\n");

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
IncidentResponseAttributes.JSON_PROPERTY_DETECTED,
3535
IncidentResponseAttributes.JSON_PROPERTY_FIELDS,
3636
IncidentResponseAttributes.JSON_PROPERTY_INCIDENT_TYPE_UUID,
37+
IncidentResponseAttributes.JSON_PROPERTY_IS_TEST,
3738
IncidentResponseAttributes.JSON_PROPERTY_MODIFIED,
3839
IncidentResponseAttributes.JSON_PROPERTY_NON_DATADOG_CREATOR,
3940
IncidentResponseAttributes.JSON_PROPERTY_NOTIFICATION_HANDLES,
@@ -86,6 +87,9 @@ public class IncidentResponseAttributes {
8687
public static final String JSON_PROPERTY_INCIDENT_TYPE_UUID = "incident_type_uuid";
8788
private String incidentTypeUuid;
8889

90+
public static final String JSON_PROPERTY_IS_TEST = "is_test";
91+
private Boolean isTest;
92+
8993
public static final String JSON_PROPERTY_MODIFIED = "modified";
9094
private OffsetDateTime modified;
9195

@@ -413,6 +417,27 @@ public void setIncidentTypeUuid(String incidentTypeUuid) {
413417
this.incidentTypeUuid = incidentTypeUuid;
414418
}
415419

420+
public IncidentResponseAttributes isTest(Boolean isTest) {
421+
this.isTest = isTest;
422+
return this;
423+
}
424+
425+
/**
426+
* A flag indicating whether the incident is a test incident.
427+
*
428+
* @return isTest
429+
*/
430+
@jakarta.annotation.Nullable
431+
@JsonProperty(JSON_PROPERTY_IS_TEST)
432+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
433+
public Boolean getIsTest() {
434+
return isTest;
435+
}
436+
437+
public void setIsTest(Boolean isTest) {
438+
this.isTest = isTest;
439+
}
440+
416441
/**
417442
* Timestamp when the incident was last modified.
418443
*
@@ -786,6 +811,7 @@ public boolean equals(Object o) {
786811
&& Objects.equals(this.detected, incidentResponseAttributes.detected)
787812
&& Objects.equals(this.fields, incidentResponseAttributes.fields)
788813
&& Objects.equals(this.incidentTypeUuid, incidentResponseAttributes.incidentTypeUuid)
814+
&& Objects.equals(this.isTest, incidentResponseAttributes.isTest)
789815
&& Objects.equals(this.modified, incidentResponseAttributes.modified)
790816
&& Objects.equals(this.nonDatadogCreator, incidentResponseAttributes.nonDatadogCreator)
791817
&& Objects.equals(this.notificationHandles, incidentResponseAttributes.notificationHandles)
@@ -818,6 +844,7 @@ public int hashCode() {
818844
detected,
819845
fields,
820846
incidentTypeUuid,
847+
isTest,
821848
modified,
822849
nonDatadogCreator,
823850
notificationHandles,
@@ -855,6 +882,7 @@ public String toString() {
855882
sb.append(" detected: ").append(toIndentedString(detected)).append("\n");
856883
sb.append(" fields: ").append(toIndentedString(fields)).append("\n");
857884
sb.append(" incidentTypeUuid: ").append(toIndentedString(incidentTypeUuid)).append("\n");
885+
sb.append(" isTest: ").append(toIndentedString(isTest)).append("\n");
858886
sb.append(" modified: ").append(toIndentedString(modified)).append("\n");
859887
sb.append(" nonDatadogCreator: ").append(toIndentedString(nonDatadogCreator)).append("\n");
860888
sb.append(" notificationHandles: ")

src/test/resources/com/datadog/api/client/v2/api/incidents.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Feature: Incidents
7070
Scenario: Create an incident returns "Bad Request" response
7171
Given operation "CreateIncident" enabled
7272
And new "CreateIncident" request
73-
And body with value {"data": {"attributes": {"customer_impact_scope": "Example customer impact scope", "customer_impacted": false, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "incident_type_uuid": "00000000-0000-0000-0000-000000000000", "initial_cells": [{"cell_type": "markdown", "content": {"content": "An example timeline cell message."}, "important": false}], "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}, {"display_name": "Slack Channel", "handle": "@slack-channel"}, {"display_name": "Incident Workflow", "handle": "@workflow-from-incident"}], "title": "A test incident title"}, "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}}, "type": "incidents"}}
73+
And body with value {"data": {"attributes": {"customer_impact_scope": "Example customer impact scope", "customer_impacted": false, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "incident_type_uuid": "00000000-0000-0000-0000-000000000000", "initial_cells": [{"cell_type": "markdown", "content": {"content": "An example timeline cell message."}, "important": false}], "is_test": false, "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}, {"display_name": "Slack Channel", "handle": "@slack-channel"}, {"display_name": "Incident Workflow", "handle": "@workflow-from-incident"}], "title": "A test incident title"}, "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}}, "type": "incidents"}}
7474
When the request is sent
7575
Then the response status is 400 Bad Request
7676

@@ -89,7 +89,7 @@ Feature: Incidents
8989
Scenario: Create an incident returns "Not Found" response
9090
Given operation "CreateIncident" enabled
9191
And new "CreateIncident" request
92-
And body with value {"data": {"attributes": {"customer_impact_scope": "Example customer impact scope", "customer_impacted": false, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "incident_type_uuid": "00000000-0000-0000-0000-000000000000", "initial_cells": [{"cell_type": "markdown", "content": {"content": "An example timeline cell message."}, "important": false}], "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}, {"display_name": "Slack Channel", "handle": "@slack-channel"}, {"display_name": "Incident Workflow", "handle": "@workflow-from-incident"}], "title": "A test incident title"}, "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}}, "type": "incidents"}}
92+
And body with value {"data": {"attributes": {"customer_impact_scope": "Example customer impact scope", "customer_impacted": false, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "incident_type_uuid": "00000000-0000-0000-0000-000000000000", "initial_cells": [{"cell_type": "markdown", "content": {"content": "An example timeline cell message."}, "important": false}], "is_test": false, "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}, {"display_name": "Slack Channel", "handle": "@slack-channel"}, {"display_name": "Incident Workflow", "handle": "@workflow-from-incident"}], "title": "A test incident title"}, "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}}, "type": "incidents"}}
9393
When the request is sent
9494
Then the response status is 404 Not Found
9595

0 commit comments

Comments
 (0)