Skip to content

Commit 6259215

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f95975e of spec repo
1 parent af9e50b commit 6259215

136 files changed

Lines changed: 14006 additions & 375 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

Lines changed: 3809 additions & 1 deletion
Large diffs are not rendered by default.

docs/datadog_api_client.v2.model.rst

Lines changed: 1182 additions & 314 deletions
Large diffs are not rendered by default.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
"""
2+
Patch an incident impact 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_impact_create_attributes import IncidentImpactCreateAttributes
8+
from datadog_api_client.v2.model.incident_impact_create_data import IncidentImpactCreateData
9+
from datadog_api_client.v2.model.incident_impact_create_request import IncidentImpactCreateRequest
10+
from datadog_api_client.v2.model.incident_impact_fields_object import IncidentImpactFieldsObject
11+
from datadog_api_client.v2.model.incident_impact_type import IncidentImpactType
12+
from datetime import datetime
13+
from dateutil.tz import tzutc
14+
15+
body = IncidentImpactCreateRequest(
16+
data=IncidentImpactCreateData(
17+
attributes=IncidentImpactCreateAttributes(
18+
description="Service was unavailable for external users",
19+
end_at=datetime(2025, 8, 29, 13, 17, tzinfo=tzutc()),
20+
fields=IncidentImpactFieldsObject(
21+
[("customers_impacted", "all"), ("products_impacted", "['shopping', 'marketing']")]
22+
),
23+
start_at=datetime(2025, 8, 28, 13, 17, tzinfo=tzutc()),
24+
),
25+
type=IncidentImpactType.INCIDENT_IMPACTS,
26+
),
27+
)
28+
29+
configuration = Configuration()
30+
configuration.unstable_operations["patch_incident_impact"] = True
31+
with ApiClient(configuration) as api_client:
32+
api_instance = IncidentsApi(api_client)
33+
response = api_instance.patch_incident_impact(incident_id="incident_id", impact_id="impact_id", body=body)
34+
35+
print(response)
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
"""
2+
Update an incident impact 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_impact_create_attributes import IncidentImpactCreateAttributes
8+
from datadog_api_client.v2.model.incident_impact_create_data import IncidentImpactCreateData
9+
from datadog_api_client.v2.model.incident_impact_create_request import IncidentImpactCreateRequest
10+
from datadog_api_client.v2.model.incident_impact_fields_object import IncidentImpactFieldsObject
11+
from datadog_api_client.v2.model.incident_impact_type import IncidentImpactType
12+
from datetime import datetime
13+
from dateutil.tz import tzutc
14+
15+
body = IncidentImpactCreateRequest(
16+
data=IncidentImpactCreateData(
17+
attributes=IncidentImpactCreateAttributes(
18+
description="Service was unavailable for external users",
19+
end_at=datetime(2025, 8, 29, 13, 17, tzinfo=tzutc()),
20+
fields=IncidentImpactFieldsObject(
21+
[("customers_impacted", "all"), ("products_impacted", "['shopping', 'marketing']")]
22+
),
23+
start_at=datetime(2025, 8, 28, 13, 17, tzinfo=tzutc()),
24+
),
25+
type=IncidentImpactType.INCIDENT_IMPACTS,
26+
),
27+
)
28+
29+
configuration = Configuration()
30+
configuration.unstable_operations["update_incident_impact"] = True
31+
with ApiClient(configuration) as api_client:
32+
api_instance = IncidentsApi(api_client)
33+
response = api_instance.update_incident_impact(incident_id="incident_id", impact_id="impact_id", body=body)
34+
35+
print(response)

src/datadog_api_client/configuration.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,61 +563,93 @@ def __init__(
563563
"v2.create_global_incident_handle": False,
564564
"v2.create_incident": False,
565565
"v2.create_incident_attachment": False,
566+
"v2.create_incident_configuration": False,
567+
"v2.create_incident_google_chat_configuration": False,
568+
"v2.create_incident_google_meet_configuration": False,
569+
"v2.create_incident_impact_field": False,
566570
"v2.create_incident_integration": False,
567571
"v2.create_incident_notification_rule": False,
568572
"v2.create_incident_notification_template": False,
569573
"v2.create_incident_postmortem_attachment": False,
570574
"v2.create_incident_postmortem_template": False,
575+
"v2.create_incident_responder": False,
576+
"v2.create_incident_rule": False,
577+
"v2.create_incident_service_now_record": False,
571578
"v2.create_incident_todo": False,
572579
"v2.create_incident_type": False,
573580
"v2.create_incident_user_defined_field": False,
574581
"v2.create_incident_user_defined_role": False,
582+
"v2.create_on_call_page_from_incident": False,
583+
"v2.create_page_from_incident": False,
584+
"v2.create_timestamp_override": False,
575585
"v2.delete_global_incident_handle": False,
576586
"v2.delete_incident": False,
577587
"v2.delete_incident_attachment": False,
588+
"v2.delete_incident_impact_field": False,
578589
"v2.delete_incident_integration": False,
579590
"v2.delete_incident_notification_rule": False,
580591
"v2.delete_incident_notification_template": False,
581592
"v2.delete_incident_postmortem_template": False,
593+
"v2.delete_incident_responder": False,
594+
"v2.delete_incident_rule": False,
582595
"v2.delete_incident_todo": False,
583596
"v2.delete_incident_type": False,
584597
"v2.delete_incident_user_defined_field": False,
585598
"v2.delete_incident_user_defined_role": False,
599+
"v2.delete_timestamp_override": False,
586600
"v2.get_global_incident_settings": False,
587601
"v2.get_incident": False,
602+
"v2.get_incident_ai_postmortem": False,
588603
"v2.get_incident_integration": False,
589604
"v2.get_incident_notification_rule": False,
590605
"v2.get_incident_notification_template": False,
591606
"v2.get_incident_postmortem_template": False,
607+
"v2.get_incident_responder": False,
608+
"v2.get_incident_rule": False,
592609
"v2.get_incident_todo": False,
593610
"v2.get_incident_type": False,
594611
"v2.get_incident_user_defined_field": False,
595612
"v2.get_incident_user_defined_role": False,
613+
"v2.get_org_settings_by_incident_type": False,
596614
"v2.import_incident": False,
615+
"v2.link_page_to_incident": False,
597616
"v2.list_global_incident_handles": False,
598617
"v2.list_incident_attachments": False,
618+
"v2.list_incident_impact_fields": False,
599619
"v2.list_incident_integrations": False,
600620
"v2.list_incident_notification_rules": False,
601621
"v2.list_incident_notification_templates": False,
602622
"v2.list_incident_postmortem_templates": False,
623+
"v2.list_incident_responders": False,
624+
"v2.list_incident_rules": False,
603625
"v2.list_incidents": False,
604626
"v2.list_incident_todos": False,
605627
"v2.list_incident_types": False,
606628
"v2.list_incident_user_defined_fields": False,
607629
"v2.list_incident_user_defined_roles": False,
630+
"v2.list_org_settings": False,
631+
"v2.list_timestamp_overrides": False,
632+
"v2.patch_incident_impact": False,
608633
"v2.search_incidents": False,
609634
"v2.update_global_incident_handle": False,
610635
"v2.update_global_incident_settings": False,
611636
"v2.update_incident": False,
612637
"v2.update_incident_attachment": False,
638+
"v2.update_incident_configuration": False,
639+
"v2.update_incident_google_chat_configuration": False,
640+
"v2.update_incident_google_meet_configuration": False,
641+
"v2.update_incident_impact": False,
642+
"v2.update_incident_impact_field": False,
613643
"v2.update_incident_integration": False,
614644
"v2.update_incident_notification_rule": False,
615645
"v2.update_incident_notification_template": False,
616646
"v2.update_incident_postmortem_template": False,
647+
"v2.update_incident_rule": False,
617648
"v2.update_incident_todo": False,
618649
"v2.update_incident_type": False,
619650
"v2.update_incident_user_defined_field": False,
620651
"v2.update_incident_user_defined_role": False,
652+
"v2.update_timestamp_override": False,
621653
"v2.create_aws_account_ccm_config": False,
622654
"v2.delete_aws_account_ccm_config": False,
623655
"v2.get_aws_account_ccm_config": False,

0 commit comments

Comments
 (0)