Skip to content

Commit 78bc1a8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c2e2c82 of spec repo
1 parent 3cae402 commit 78bc1a8

31 files changed

+2098
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 418 additions & 0 deletions
Large diffs are not rendered by default.

docs/datadog_api_client.v2.model.rst

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10679,6 +10679,48 @@ datadog\_api\_client.v2.model.gitlab\_integration\_update module
1067910679
:members:
1068010680
:show-inheritance:
1068110681

10682+
datadog\_api\_client.v2.model.global\_incident\_settings\_attributes module
10683+
---------------------------------------------------------------------------
10684+
10685+
.. automodule:: datadog_api_client.v2.model.global_incident_settings_attributes
10686+
:members:
10687+
:show-inheritance:
10688+
10689+
datadog\_api\_client.v2.model.global\_incident\_settings\_data\_request module
10690+
------------------------------------------------------------------------------
10691+
10692+
.. automodule:: datadog_api_client.v2.model.global_incident_settings_data_request
10693+
:members:
10694+
:show-inheritance:
10695+
10696+
datadog\_api\_client.v2.model.global\_incident\_settings\_data\_response module
10697+
-------------------------------------------------------------------------------
10698+
10699+
.. automodule:: datadog_api_client.v2.model.global_incident_settings_data_response
10700+
:members:
10701+
:show-inheritance:
10702+
10703+
datadog\_api\_client.v2.model.global\_incident\_settings\_request module
10704+
------------------------------------------------------------------------
10705+
10706+
.. automodule:: datadog_api_client.v2.model.global_incident_settings_request
10707+
:members:
10708+
:show-inheritance:
10709+
10710+
datadog\_api\_client.v2.model.global\_incident\_settings\_response module
10711+
-------------------------------------------------------------------------
10712+
10713+
.. automodule:: datadog_api_client.v2.model.global_incident_settings_response
10714+
:members:
10715+
:show-inheritance:
10716+
10717+
datadog\_api\_client.v2.model.global\_incident\_settings\_type module
10718+
---------------------------------------------------------------------
10719+
10720+
.. automodule:: datadog_api_client.v2.model.global_incident_settings_type
10721+
:members:
10722+
:show-inheritance:
10723+
1068210724
datadog\_api\_client.v2.model.global\_variable\_data module
1068310725
-----------------------------------------------------------
1068410726

@@ -11092,6 +11134,90 @@ datadog\_api\_client.v2.model.incident\_field\_attributes\_value\_type module
1109211134
:members:
1109311135
:show-inheritance:
1109411136

11137+
datadog\_api\_client.v2.model.incident\_handle\_attributes\_request module
11138+
--------------------------------------------------------------------------
11139+
11140+
.. automodule:: datadog_api_client.v2.model.incident_handle_attributes_request
11141+
:members:
11142+
:show-inheritance:
11143+
11144+
datadog\_api\_client.v2.model.incident\_handle\_attributes\_response module
11145+
---------------------------------------------------------------------------
11146+
11147+
.. automodule:: datadog_api_client.v2.model.incident_handle_attributes_response
11148+
:members:
11149+
:show-inheritance:
11150+
11151+
datadog\_api\_client.v2.model.incident\_handle\_data\_request module
11152+
--------------------------------------------------------------------
11153+
11154+
.. automodule:: datadog_api_client.v2.model.incident_handle_data_request
11155+
:members:
11156+
:show-inheritance:
11157+
11158+
datadog\_api\_client.v2.model.incident\_handle\_data\_response module
11159+
---------------------------------------------------------------------
11160+
11161+
.. automodule:: datadog_api_client.v2.model.incident_handle_data_response
11162+
:members:
11163+
:show-inheritance:
11164+
11165+
datadog\_api\_client.v2.model.incident\_handle\_included\_item\_response module
11166+
-------------------------------------------------------------------------------
11167+
11168+
.. automodule:: datadog_api_client.v2.model.incident_handle_included_item_response
11169+
:members:
11170+
:show-inheritance:
11171+
11172+
datadog\_api\_client.v2.model.incident\_handle\_relationship module
11173+
-------------------------------------------------------------------
11174+
11175+
.. automodule:: datadog_api_client.v2.model.incident_handle_relationship
11176+
:members:
11177+
:show-inheritance:
11178+
11179+
datadog\_api\_client.v2.model.incident\_handle\_relationship\_data module
11180+
-------------------------------------------------------------------------
11181+
11182+
.. automodule:: datadog_api_client.v2.model.incident_handle_relationship_data
11183+
:members:
11184+
:show-inheritance:
11185+
11186+
datadog\_api\_client.v2.model.incident\_handle\_relationships module
11187+
--------------------------------------------------------------------
11188+
11189+
.. automodule:: datadog_api_client.v2.model.incident_handle_relationships
11190+
:members:
11191+
:show-inheritance:
11192+
11193+
datadog\_api\_client.v2.model.incident\_handle\_request module
11194+
--------------------------------------------------------------
11195+
11196+
.. automodule:: datadog_api_client.v2.model.incident_handle_request
11197+
:members:
11198+
:show-inheritance:
11199+
11200+
datadog\_api\_client.v2.model.incident\_handle\_response module
11201+
---------------------------------------------------------------
11202+
11203+
.. automodule:: datadog_api_client.v2.model.incident_handle_response
11204+
:members:
11205+
:show-inheritance:
11206+
11207+
datadog\_api\_client.v2.model.incident\_handle\_type module
11208+
-----------------------------------------------------------
11209+
11210+
.. automodule:: datadog_api_client.v2.model.incident_handle_type
11211+
:members:
11212+
:show-inheritance:
11213+
11214+
datadog\_api\_client.v2.model.incident\_handles\_response module
11215+
----------------------------------------------------------------
11216+
11217+
.. automodule:: datadog_api_client.v2.model.incident_handles_response
11218+
:members:
11219+
:show-inheritance:
11220+
1109511221
datadog\_api\_client.v2.model.incident\_impact\_attributes module
1109611222
-----------------------------------------------------------------
1109711223

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
"""
2+
Create global incident handle returns "Created" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.incidents_api import IncidentsApi
7+
from datadog_api_client.v2.model.incident_handle_attributes_request import IncidentHandleAttributesRequest
8+
from datadog_api_client.v2.model.incident_handle_data_request import IncidentHandleDataRequest
9+
from datadog_api_client.v2.model.incident_handle_relationship import IncidentHandleRelationship
10+
from datadog_api_client.v2.model.incident_handle_relationship_data import IncidentHandleRelationshipData
11+
from datadog_api_client.v2.model.incident_handle_relationships import IncidentHandleRelationships
12+
from datadog_api_client.v2.model.incident_handle_request import IncidentHandleRequest
13+
from datadog_api_client.v2.model.incident_handle_type import IncidentHandleType
14+
15+
body = IncidentHandleRequest(
16+
data=IncidentHandleDataRequest(
17+
attributes=IncidentHandleAttributesRequest(
18+
fields=dict([("severity", "['SEV-1']")]),
19+
name="@incident-sev-1",
20+
),
21+
id="b2494081-cdf0-4205-b366-4e1dd4fdf0bf",
22+
relationships=IncidentHandleRelationships(
23+
commander_user=IncidentHandleRelationship(
24+
data=IncidentHandleRelationshipData(
25+
id="f7b538b1-ed7c-4e84-82de-fdf84a539d40",
26+
type="incident_types",
27+
),
28+
),
29+
created_by_user=IncidentHandleRelationship(
30+
data=IncidentHandleRelationshipData(
31+
id="f7b538b1-ed7c-4e84-82de-fdf84a539d40",
32+
type="incident_types",
33+
),
34+
),
35+
incident_type=IncidentHandleRelationship(
36+
data=IncidentHandleRelationshipData(
37+
id="f7b538b1-ed7c-4e84-82de-fdf84a539d40",
38+
type="incident_types",
39+
),
40+
),
41+
last_modified_by_user=IncidentHandleRelationship(
42+
data=IncidentHandleRelationshipData(
43+
id="f7b538b1-ed7c-4e84-82de-fdf84a539d40",
44+
type="incident_types",
45+
),
46+
),
47+
),
48+
type=IncidentHandleType.INCIDENTS_HANDLES,
49+
),
50+
)
51+
52+
configuration = Configuration()
53+
configuration.unstable_operations["create_global_incident_handle"] = True
54+
with ApiClient(configuration) as api_client:
55+
api_instance = IncidentsApi(api_client)
56+
response = api_instance.create_global_incident_handle(body=body)
57+
58+
print(response)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""
2+
Delete global incident handle returns "No Content" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.incidents_api import IncidentsApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["delete_global_incident_handle"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = IncidentsApi(api_client)
12+
api_instance.delete_global_incident_handle()
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
Get global incident settings returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.incidents_api import IncidentsApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["get_global_incident_settings"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = IncidentsApi(api_client)
12+
response = api_instance.get_global_incident_settings()
13+
14+
print(response)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
List global incident handles returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.incidents_api import IncidentsApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["list_global_incident_handles"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = IncidentsApi(api_client)
12+
response = api_instance.list_global_incident_handles()
13+
14+
print(response)
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
"""
2+
Update global incident handle returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.incidents_api import IncidentsApi
7+
from datadog_api_client.v2.model.incident_handle_attributes_request import IncidentHandleAttributesRequest
8+
from datadog_api_client.v2.model.incident_handle_data_request import IncidentHandleDataRequest
9+
from datadog_api_client.v2.model.incident_handle_relationship import IncidentHandleRelationship
10+
from datadog_api_client.v2.model.incident_handle_relationship_data import IncidentHandleRelationshipData
11+
from datadog_api_client.v2.model.incident_handle_relationships import IncidentHandleRelationships
12+
from datadog_api_client.v2.model.incident_handle_request import IncidentHandleRequest
13+
from datadog_api_client.v2.model.incident_handle_type import IncidentHandleType
14+
15+
body = IncidentHandleRequest(
16+
data=IncidentHandleDataRequest(
17+
attributes=IncidentHandleAttributesRequest(
18+
fields=dict([("severity", "['SEV-1']")]),
19+
name="@incident-sev-1",
20+
),
21+
id="b2494081-cdf0-4205-b366-4e1dd4fdf0bf",
22+
relationships=IncidentHandleRelationships(
23+
commander_user=IncidentHandleRelationship(
24+
data=IncidentHandleRelationshipData(
25+
id="f7b538b1-ed7c-4e84-82de-fdf84a539d40",
26+
type="incident_types",
27+
),
28+
),
29+
created_by_user=IncidentHandleRelationship(
30+
data=IncidentHandleRelationshipData(
31+
id="f7b538b1-ed7c-4e84-82de-fdf84a539d40",
32+
type="incident_types",
33+
),
34+
),
35+
incident_type=IncidentHandleRelationship(
36+
data=IncidentHandleRelationshipData(
37+
id="f7b538b1-ed7c-4e84-82de-fdf84a539d40",
38+
type="incident_types",
39+
),
40+
),
41+
last_modified_by_user=IncidentHandleRelationship(
42+
data=IncidentHandleRelationshipData(
43+
id="f7b538b1-ed7c-4e84-82de-fdf84a539d40",
44+
type="incident_types",
45+
),
46+
),
47+
),
48+
type=IncidentHandleType.INCIDENTS_HANDLES,
49+
),
50+
)
51+
52+
configuration = Configuration()
53+
configuration.unstable_operations["update_global_incident_handle"] = True
54+
with ApiClient(configuration) as api_client:
55+
api_instance = IncidentsApi(api_client)
56+
response = api_instance.update_global_incident_handle(body=body)
57+
58+
print(response)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
"""
2+
Update global incident settings returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.incidents_api import IncidentsApi
7+
from datadog_api_client.v2.model.global_incident_settings_attributes import GlobalIncidentSettingsAttributes
8+
from datadog_api_client.v2.model.global_incident_settings_data_request import GlobalIncidentSettingsDataRequest
9+
from datadog_api_client.v2.model.global_incident_settings_request import GlobalIncidentSettingsRequest
10+
from datadog_api_client.v2.model.global_incident_settings_type import GlobalIncidentSettingsType
11+
from datetime import datetime
12+
from dateutil.tz import tzutc
13+
14+
body = GlobalIncidentSettingsRequest(
15+
data=GlobalIncidentSettingsDataRequest(
16+
attributes=GlobalIncidentSettingsAttributes(
17+
analytics_dashboard_id="abc-123-def",
18+
created=datetime(2026, 1, 13, 17, 15, 56, 557278, tzinfo=tzutc()),
19+
modified=datetime(2026, 1, 13, 17, 15, 56, 557278, tzinfo=tzutc()),
20+
org_id=2,
21+
),
22+
type=GlobalIncidentSettingsType.INCIDENTS_GLOBAL_SETTINGS,
23+
),
24+
)
25+
26+
configuration = Configuration()
27+
configuration.unstable_operations["update_global_incident_settings"] = True
28+
with ApiClient(configuration) as api_client:
29+
api_instance = IncidentsApi(api_client)
30+
response = api_instance.update_global_incident_settings(body=body)
31+
32+
print(response)

src/datadog_api_client/configuration.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ def __init__(
306306
"v2.get_deployment_rule": False,
307307
"v2.update_deployment_gate": False,
308308
"v2.update_deployment_rule": False,
309+
"v2.create_global_incident_handle": False,
309310
"v2.create_incident": False,
310311
"v2.create_incident_attachment": False,
311312
"v2.create_incident_integration": False,
@@ -314,19 +315,22 @@ def __init__(
314315
"v2.create_incident_postmortem_attachment": False,
315316
"v2.create_incident_todo": False,
316317
"v2.create_incident_type": False,
318+
"v2.delete_global_incident_handle": False,
317319
"v2.delete_incident": False,
318320
"v2.delete_incident_attachment": False,
319321
"v2.delete_incident_integration": False,
320322
"v2.delete_incident_notification_rule": False,
321323
"v2.delete_incident_notification_template": False,
322324
"v2.delete_incident_todo": False,
323325
"v2.delete_incident_type": False,
326+
"v2.get_global_incident_settings": False,
324327
"v2.get_incident": False,
325328
"v2.get_incident_integration": False,
326329
"v2.get_incident_notification_rule": False,
327330
"v2.get_incident_notification_template": False,
328331
"v2.get_incident_todo": False,
329332
"v2.get_incident_type": False,
333+
"v2.list_global_incident_handles": False,
330334
"v2.list_incident_attachments": False,
331335
"v2.list_incident_integrations": False,
332336
"v2.list_incident_notification_rules": False,
@@ -335,6 +339,8 @@ def __init__(
335339
"v2.list_incident_todos": False,
336340
"v2.list_incident_types": False,
337341
"v2.search_incidents": False,
342+
"v2.update_global_incident_handle": False,
343+
"v2.update_global_incident_settings": False,
338344
"v2.update_incident": False,
339345
"v2.update_incident_attachment": False,
340346
"v2.update_incident_integration": False,

0 commit comments

Comments
 (0)