Skip to content

Commit 277745e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 31044eb9 of spec repo
1 parent a9e5e45 commit 277745e

File tree

5 files changed

+36
-8
lines changed

5 files changed

+36
-8
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:55.733772",
8-
"spec_repo_commit": "51c17453"
7+
"regenerated": "2025-06-25 21:28:38.141615",
8+
"spec_repo_commit": "31044eb9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-25 17:36:55.750302",
13-
"spec_repo_commit": "51c17453"
12+
"regenerated": "2025-06-25 21:28:38.157113",
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

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

lib/datadog_api_client/v2/models/incident_create_attributes.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ class IncidentCreateAttributes
3636
# An array of initial timeline cells to be placed at the beginning of the incident timeline.
3737
attr_accessor :initial_cells
3838

39+
# A flag indicating whether the incident is a test incident.
40+
attr_accessor :is_test
41+
3942
# Notification handles that will be notified of the incident at creation.
4043
attr_accessor :notification_handles
4144

@@ -53,6 +56,7 @@ def self.attribute_map
5356
:'fields' => :'fields',
5457
:'incident_type_uuid' => :'incident_type_uuid',
5558
:'initial_cells' => :'initial_cells',
59+
:'is_test' => :'is_test',
5660
:'notification_handles' => :'notification_handles',
5761
:'title' => :'title'
5862
}
@@ -67,6 +71,7 @@ def self.openapi_types
6771
:'fields' => :'Hash<String, IncidentFieldAttributes>',
6872
:'incident_type_uuid' => :'String',
6973
:'initial_cells' => :'Array<IncidentTimelineCellCreateAttributes>',
74+
:'is_test' => :'Boolean',
7075
:'notification_handles' => :'Array<IncidentNotificationHandle>',
7176
:'title' => :'String'
7277
}
@@ -112,6 +117,10 @@ def initialize(attributes = {})
112117
end
113118
end
114119

120+
if attributes.key?(:'is_test')
121+
self.is_test = attributes[:'is_test']
122+
end
123+
115124
if attributes.key?(:'notification_handles')
116125
if (value = attributes[:'notification_handles']).is_a?(Array)
117126
self.notification_handles = value
@@ -183,6 +192,7 @@ def ==(o)
183192
fields == o.fields &&
184193
incident_type_uuid == o.incident_type_uuid &&
185194
initial_cells == o.initial_cells &&
195+
is_test == o.is_test &&
186196
notification_handles == o.notification_handles &&
187197
title == o.title &&
188198
additional_properties == o.additional_properties
@@ -192,7 +202,7 @@ def ==(o)
192202
# @return [Integer] Hash code
193203
# @!visibility private
194204
def hash
195-
[customer_impact_scope, customer_impacted, fields, incident_type_uuid, initial_cells, notification_handles, title, additional_properties].hash
205+
[customer_impact_scope, customer_impacted, fields, incident_type_uuid, initial_cells, is_test, notification_handles, title, additional_properties].hash
196206
end
197207
end
198208
end

lib/datadog_api_client/v2/models/incident_response_attributes.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ class IncidentResponseAttributes
5555
# A unique identifier that represents an incident type.
5656
attr_accessor :incident_type_uuid
5757

58+
# A flag indicating whether the incident is a test incident.
59+
attr_accessor :is_test
60+
5861
# Timestamp when the incident was last modified.
5962
attr_accessor :modified
6063

@@ -112,6 +115,7 @@ def self.attribute_map
112115
:'detected' => :'detected',
113116
:'fields' => :'fields',
114117
:'incident_type_uuid' => :'incident_type_uuid',
118+
:'is_test' => :'is_test',
115119
:'modified' => :'modified',
116120
:'non_datadog_creator' => :'non_datadog_creator',
117121
:'notification_handles' => :'notification_handles',
@@ -143,6 +147,7 @@ def self.openapi_types
143147
:'detected' => :'Time',
144148
:'fields' => :'Hash<String, IncidentFieldAttributes>',
145149
:'incident_type_uuid' => :'String',
150+
:'is_test' => :'Boolean',
146151
:'modified' => :'Time',
147152
:'non_datadog_creator' => :'IncidentNonDatadogCreator',
148153
:'notification_handles' => :'Array<IncidentNotificationHandle>',
@@ -239,6 +244,10 @@ def initialize(attributes = {})
239244
self.incident_type_uuid = attributes[:'incident_type_uuid']
240245
end
241246

247+
if attributes.key?(:'is_test')
248+
self.is_test = attributes[:'is_test']
249+
end
250+
242251
if attributes.key?(:'modified')
243252
self.modified = attributes[:'modified']
244253
end
@@ -349,6 +358,7 @@ def ==(o)
349358
detected == o.detected &&
350359
fields == o.fields &&
351360
incident_type_uuid == o.incident_type_uuid &&
361+
is_test == o.is_test &&
352362
modified == o.modified &&
353363
non_datadog_creator == o.non_datadog_creator &&
354364
notification_handles == o.notification_handles &&
@@ -369,7 +379,7 @@ def ==(o)
369379
# @return [Integer] Hash code
370380
# @!visibility private
371381
def hash
372-
[archived, case_id, created, customer_impact_duration, customer_impact_end, customer_impact_scope, customer_impact_start, customer_impacted, detected, fields, incident_type_uuid, modified, non_datadog_creator, notification_handles, public_id, resolved, severity, state, time_to_detect, time_to_internal_response, time_to_repair, time_to_resolve, title, visibility, additional_properties].hash
382+
[archived, case_id, created, customer_impact_duration, customer_impact_end, customer_impact_scope, customer_impact_start, customer_impacted, detected, fields, incident_type_uuid, is_test, modified, non_datadog_creator, notification_handles, public_id, resolved, severity, state, time_to_detect, time_to_internal_response, time_to_repair, time_to_resolve, title, visibility, additional_properties].hash
373383
end
374384
end
375385
end

0 commit comments

Comments
 (0)