Skip to content

Commit 4a39ad9

Browse files
author
ci.datadog-api-spec
committedApr 10, 2025
Regenerate client from commit 2d73b65d of spec repo
1 parent c562fc9 commit 4a39ad9

10 files changed

+33
-38
lines changed
 

Diff for: ‎.apigentools-info

+4-4
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-04-10 18:01:30.298822",
8-
"spec_repo_commit": "c0a45137"
7+
"regenerated": "2025-04-10 20:09:24.593813",
8+
"spec_repo_commit": "2d73b65d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-10 18:01:30.315459",
13-
"spec_repo_commit": "c0a45137"
12+
"regenerated": "2025-04-10 20:09:24.609417",
13+
"spec_repo_commit": "2d73b65d"
1414
}
1515
}
1616
}

Diff for: ‎examples/v2/incidents/CreateIncidentType.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
attributes=IncidentTypeAttributes(
1515
description="Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.",
1616
is_default=False,
17-
name="Security Incident",
17+
name="8d4bbb66dccf2456",
1818
),
1919
type=IncidentTypeType.INCIDENT_TYPES,
2020
),
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-04T19:02:20.402Z
1+
2025-04-09T20:37:29.894Z

Diff for: ‎tests/v2/cassettes/test_scenarios/test_create_an_incident_type_returns_created_response.yaml

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
interactions:
22
- request:
33
body: '{"data":{"attributes":{"description":"Any incidents that harm (or have
4-
the potential to) the confidentiality, integrity, or availability of our data.","is_default":false,"name":"Security
5-
Incident"},"type":"incident_types"}}'
4+
the potential to) the confidentiality, integrity, or availability of our data.","is_default":false,"name":"132365f074fae59b"},"type":"incident_types"}}'
65
headers:
76
accept:
87
- application/json
@@ -12,10 +11,9 @@ interactions:
1211
uri: https://api.datadoghq.com/api/v2/incidents/config/types
1312
response:
1413
body:
15-
string: '{"data":{"id":"6faef319-c810-435b-bdf3-57efb391e56e","type":"incident_types","attributes":{"createdAt":"2024-11-04T19:02:20.505437063Z","createdBy":"3ad549bf-eba0-11e9-a77a-0705486660d0","description":"Any
14+
string: '{"data":{"id":"6de50f7a-b42a-4547-8f80-08c1991cc7e7","type":"incident_types","attributes":{"createdAt":"2025-04-09T20:37:30.180243201Z","createdBy":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","description":"Any
1615
incidents that harm (or have the potential to) the confidentiality, integrity,
17-
or availability of our data.","is_default":false,"lastModifiedBy":"3ad549bf-eba0-11e9-a77a-0705486660d0","modifiedAt":"2024-11-04T19:02:20.505437063Z","name":"Security
18-
Incident","prefix":"IR"}}}'
16+
or availability of our data.","is_default":false,"lastModifiedBy":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","modifiedAt":"2025-04-09T20:37:30.180243275Z","name":"132365f074fae59b","prefix":"IR"},"relationships":{"created_by_user":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"users"}},"google_meet_configuration":{"data":null},"last_modified_by_user":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"users"}},"zoom_configuration":{"data":null}}}}'
1917
headers:
2018
content-type:
2119
- application/vnd.api+json
@@ -28,7 +26,7 @@ interactions:
2826
accept:
2927
- '*/*'
3028
method: DELETE
31-
uri: https://api.datadoghq.com/api/v2/incidents/config/types/6faef319-c810-435b-bdf3-57efb391e56e
29+
uri: https://api.datadoghq.com/api/v2/incidents/config/types/6de50f7a-b42a-4547-8f80-08c1991cc7e7
3230
response:
3331
body:
3432
string: ''
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-04T19:02:22.569Z
1+
2025-04-09T20:37:30.425Z

Diff for: ‎tests/v2/cassettes/test_scenarios/test_delete_an_incident_type_returns_ok_response.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
interactions:
22
- request:
33
body: '{"data":{"attributes":{"description":"Any incidents that harm (or have
4-
the potential to) the confidentiality, integrity, or availability of our data.","is_default":false,"name":"Security
5-
Incident"},"type":"incident_types"}}'
4+
the potential to) the confidentiality, integrity, or availability of our data.","is_default":false,"name":"fa473c6f81961a61"},"type":"incident_types"}}'
65
headers:
76
accept:
87
- application/json
@@ -12,10 +11,9 @@ interactions:
1211
uri: https://api.datadoghq.com/api/v2/incidents/config/types
1312
response:
1413
body:
15-
string: '{"data":{"id":"dbf7f2e1-8f37-4624-9762-6e744db257aa","type":"incident_types","attributes":{"createdAt":"2024-11-04T19:02:22.674338166Z","createdBy":"3ad549bf-eba0-11e9-a77a-0705486660d0","description":"Any
14+
string: '{"data":{"id":"dc0ba7fa-64c9-46bd-a93d-1249070b52b6","type":"incident_types","attributes":{"createdAt":"2025-04-09T20:37:30.487313985Z","createdBy":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","description":"Any
1615
incidents that harm (or have the potential to) the confidentiality, integrity,
17-
or availability of our data.","is_default":false,"lastModifiedBy":"3ad549bf-eba0-11e9-a77a-0705486660d0","modifiedAt":"2024-11-04T19:02:22.674338166Z","name":"Security
18-
Incident","prefix":"IR"}}}'
16+
or availability of our data.","is_default":false,"lastModifiedBy":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","modifiedAt":"2025-04-09T20:37:30.487314108Z","name":"fa473c6f81961a61","prefix":"IR"},"relationships":{"created_by_user":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"users"}},"google_meet_configuration":{"data":null},"last_modified_by_user":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"users"}},"zoom_configuration":{"data":null}}}}'
1917
headers:
2018
content-type:
2119
- application/vnd.api+json
@@ -28,7 +26,7 @@ interactions:
2826
accept:
2927
- '*/*'
3028
method: DELETE
31-
uri: https://api.datadoghq.com/api/v2/incidents/config/types/dbf7f2e1-8f37-4624-9762-6e744db257aa
29+
uri: https://api.datadoghq.com/api/v2/incidents/config/types/dc0ba7fa-64c9-46bd-a93d-1249070b52b6
3230
response:
3331
body:
3432
string: ''
@@ -42,12 +40,14 @@ interactions:
4240
accept:
4341
- '*/*'
4442
method: DELETE
45-
uri: https://api.datadoghq.com/api/v2/incidents/config/types/dbf7f2e1-8f37-4624-9762-6e744db257aa
43+
uri: https://api.datadoghq.com/api/v2/incidents/config/types/dc0ba7fa-64c9-46bd-a93d-1249070b52b6
4644
response:
4745
body:
48-
string: ''
49-
headers: {}
46+
string: '{"errors":[{"status":"404","title":"Not Found"}]}'
47+
headers:
48+
content-type:
49+
- application/vnd.api+json
5050
status:
51-
code: 204
52-
message: No Content
51+
code: 404
52+
message: Not Found
5353
version: 1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-04T19:02:38.662Z
1+
2025-04-09T20:37:30.806Z

Diff for: ‎tests/v2/cassettes/test_scenarios/test_update_an_incident_type_returns_ok_response.yaml

+8-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
interactions:
22
- request:
33
body: '{"data":{"attributes":{"description":"Any incidents that harm (or have
4-
the potential to) the confidentiality, integrity, or availability of our data.","is_default":false,"name":"Security
5-
Incident"},"type":"incident_types"}}'
4+
the potential to) the confidentiality, integrity, or availability of our data.","is_default":false,"name":"fbd30183c4400dd8"},"type":"incident_types"}}'
65
headers:
76
accept:
87
- application/json
@@ -12,31 +11,29 @@ interactions:
1211
uri: https://api.datadoghq.com/api/v2/incidents/config/types
1312
response:
1413
body:
15-
string: '{"data":{"id":"366ac7cc-9884-4a7f-a751-9d885f3136ed","type":"incident_types","attributes":{"createdAt":"2024-11-04T19:02:38.74682603Z","createdBy":"3ad549bf-eba0-11e9-a77a-0705486660d0","description":"Any
14+
string: '{"data":{"id":"b8bf5b6b-3c89-4df8-a689-ee9f4655113c","type":"incident_types","attributes":{"createdAt":"2025-04-09T20:37:31.105820953Z","createdBy":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","description":"Any
1615
incidents that harm (or have the potential to) the confidentiality, integrity,
17-
or availability of our data.","is_default":false,"lastModifiedBy":"3ad549bf-eba0-11e9-a77a-0705486660d0","modifiedAt":"2024-11-04T19:02:38.74682603Z","name":"Security
18-
Incident","prefix":"IR"}}}'
16+
or availability of our data.","is_default":false,"lastModifiedBy":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","modifiedAt":"2025-04-09T20:37:31.105821027Z","name":"fbd30183c4400dd8","prefix":"IR"},"relationships":{"created_by_user":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"users"}},"google_meet_configuration":{"data":null},"last_modified_by_user":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"users"}},"zoom_configuration":{"data":null}}}}'
1917
headers:
2018
content-type:
2119
- application/vnd.api+json
2220
status:
2321
code: 201
2422
message: Created
2523
- request:
26-
body: '{"data":{"attributes":{"name":"Security Incident-updated"},"id":"366ac7cc-9884-4a7f-a751-9d885f3136ed","type":"incident_types"}}'
24+
body: '{"data":{"attributes":{"name":"fbd30183c4400dd8-updated"},"id":"b8bf5b6b-3c89-4df8-a689-ee9f4655113c","type":"incident_types"}}'
2725
headers:
2826
accept:
2927
- application/json
3028
content-type:
3129
- application/json
3230
method: PATCH
33-
uri: https://api.datadoghq.com/api/v2/incidents/config/types/366ac7cc-9884-4a7f-a751-9d885f3136ed
31+
uri: https://api.datadoghq.com/api/v2/incidents/config/types/b8bf5b6b-3c89-4df8-a689-ee9f4655113c
3432
response:
3533
body:
36-
string: '{"data":{"id":"366ac7cc-9884-4a7f-a751-9d885f3136ed","type":"incident_types","attributes":{"createdAt":"2024-11-04T19:02:38.746826Z","createdBy":"3ad549bf-eba0-11e9-a77a-0705486660d0","description":"Any
34+
string: '{"data":{"id":"b8bf5b6b-3c89-4df8-a689-ee9f4655113c","type":"incident_types","attributes":{"createdAt":"2025-04-09T20:37:31.105821Z","createdBy":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","description":"Any
3735
incidents that harm (or have the potential to) the confidentiality, integrity,
38-
or availability of our data.","is_default":false,"lastModifiedBy":"3ad549bf-eba0-11e9-a77a-0705486660d0","modifiedAt":"2024-11-04T19:02:38.837509595Z","name":"Security
39-
Incident-updated","prefix":"IR"}}}'
36+
or availability of our data.","is_default":false,"lastModifiedBy":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","modifiedAt":"2025-04-09T20:37:31.295207Z","name":"fbd30183c4400dd8-updated","prefix":"IR"},"relationships":{"created_by_user":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"users"}},"google_meet_configuration":{"data":null},"last_modified_by_user":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"users"}},"zoom_configuration":{"data":null}}}}'
4037
headers:
4138
content-type:
4239
- application/vnd.api+json
@@ -49,7 +46,7 @@ interactions:
4946
accept:
5047
- '*/*'
5148
method: DELETE
52-
uri: https://api.datadoghq.com/api/v2/incidents/config/types/366ac7cc-9884-4a7f-a751-9d885f3136ed
49+
uri: https://api.datadoghq.com/api/v2/incidents/config/types/b8bf5b6b-3c89-4df8-a689-ee9f4655113c
5350
response:
5451
body:
5552
string: ''

Diff for: ‎tests/v2/features/given.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
"parameters": [
197197
{
198198
"name": "body",
199-
"value": "{\n \"data\": {\n \"attributes\": {\n \"name\": \"Security Incident\",\n \"description\": \"Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.\",\n \"is_default\": false\n },\n \"type\": \"incident_types\"\n }\n}"
199+
"value": "{\n \"data\": {\n \"attributes\": {\n \"name\": \"{{ unique_hash }}\",\n \"description\": \"Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.\",\n \"is_default\": false\n },\n \"type\": \"incident_types\"\n }\n}"
200200
}
201201
],
202202
"step": "there is a valid \"incident_type\" in the system",

Diff for: ‎tests/v2/features/incidents.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Feature: Incidents
134134
Scenario: Create an incident type returns "CREATED" response
135135
Given operation "CreateIncidentType" enabled
136136
And new "CreateIncidentType" request
137-
And body with value {"data": {"attributes": {"description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.", "is_default": false, "name": "Security Incident"}, "type": "incident_types"}}
137+
And body with value {"data": {"attributes": {"description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.", "is_default": false, "name": "{{ unique_hash }}"}, "type": "incident_types"}}
138138
When the request is sent
139139
Then the response status is 201 CREATED
140140

0 commit comments

Comments
 (0)