Skip to content

Commit 0d05be6

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

File tree

5 files changed

+30
-6
lines changed

5 files changed

+30
-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:51.161048",
8-
"spec_repo_commit": "51c17453"
7+
"regenerated": "2025-06-25 21:28:41.007506",
8+
"spec_repo_commit": "31044eb9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-25 17:36:51.176090",
13-
"spec_repo_commit": "51c17453"
12+
"regenerated": "2025-06-25 21:28:41.023625",
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/datadog_api_client/v2/model/incident_create_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def openapi_types(_):
4343
"fields": ({str: (IncidentFieldAttributes,)},),
4444
"incident_type_uuid": (str,),
4545
"initial_cells": ([IncidentTimelineCellCreateAttributes],),
46+
"is_test": (bool,),
4647
"notification_handles": ([IncidentNotificationHandle],),
4748
"title": (str,),
4849
}
@@ -53,6 +54,7 @@ def openapi_types(_):
5354
"fields": "fields",
5455
"incident_type_uuid": "incident_type_uuid",
5556
"initial_cells": "initial_cells",
57+
"is_test": "is_test",
5658
"notification_handles": "notification_handles",
5759
"title": "title",
5860
}
@@ -75,6 +77,7 @@ def __init__(
7577
initial_cells: Union[
7678
List[Union[IncidentTimelineCellCreateAttributes, IncidentTimelineCellMarkdownCreateAttributes]], UnsetType
7779
] = unset,
80+
is_test: Union[bool, UnsetType] = unset,
7881
notification_handles: Union[List[IncidentNotificationHandle], UnsetType] = unset,
7982
**kwargs,
8083
):
@@ -96,6 +99,9 @@ def __init__(
9699
:param initial_cells: An array of initial timeline cells to be placed at the beginning of the incident timeline.
97100
:type initial_cells: [IncidentTimelineCellCreateAttributes], optional
98101
102+
:param is_test: A flag indicating whether the incident is a test incident.
103+
:type is_test: bool, optional
104+
99105
:param notification_handles: Notification handles that will be notified of the incident at creation.
100106
:type notification_handles: [IncidentNotificationHandle], optional
101107
@@ -110,6 +116,8 @@ def __init__(
110116
kwargs["incident_type_uuid"] = incident_type_uuid
111117
if initial_cells is not unset:
112118
kwargs["initial_cells"] = initial_cells
119+
if is_test is not unset:
120+
kwargs["is_test"] = is_test
113121
if notification_handles is not unset:
114122
kwargs["notification_handles"] = notification_handles
115123
super().__init__(kwargs)

src/datadog_api_client/v2/model/incident_response_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def openapi_types(_):
4646
"detected": (datetime, none_type),
4747
"fields": ({str: (IncidentFieldAttributes,)},),
4848
"incident_type_uuid": (str,),
49+
"is_test": (bool,),
4950
"modified": (datetime,),
5051
"non_datadog_creator": (IncidentNonDatadogCreator,),
5152
"notification_handles": ([IncidentNotificationHandle], none_type),
@@ -73,6 +74,7 @@ def openapi_types(_):
7374
"detected": "detected",
7475
"fields": "fields",
7576
"incident_type_uuid": "incident_type_uuid",
77+
"is_test": "is_test",
7678
"modified": "modified",
7779
"non_datadog_creator": "non_datadog_creator",
7880
"notification_handles": "notification_handles",
@@ -120,6 +122,7 @@ def __init__(
120122
UnsetType,
121123
] = unset,
122124
incident_type_uuid: Union[str, UnsetType] = unset,
125+
is_test: Union[bool, UnsetType] = unset,
123126
modified: Union[datetime, UnsetType] = unset,
124127
non_datadog_creator: Union[IncidentNonDatadogCreator, none_type, UnsetType] = unset,
125128
notification_handles: Union[List[IncidentNotificationHandle], none_type, UnsetType] = unset,
@@ -171,6 +174,9 @@ def __init__(
171174
:param incident_type_uuid: A unique identifier that represents an incident type.
172175
:type incident_type_uuid: str, optional
173176
177+
:param is_test: A flag indicating whether the incident is a test incident.
178+
:type is_test: bool, optional
179+
174180
:param modified: Timestamp when the incident was last modified.
175181
:type modified: datetime, optional
176182
@@ -233,6 +239,8 @@ def __init__(
233239
kwargs["fields"] = fields
234240
if incident_type_uuid is not unset:
235241
kwargs["incident_type_uuid"] = incident_type_uuid
242+
if is_test is not unset:
243+
kwargs["is_test"] = is_test
236244
if modified is not unset:
237245
kwargs["modified"] = modified
238246
if non_datadog_creator is not unset:

tests/v2/features/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)