From 5fa2af417e8aabced936c71d80bc1339aafc156e Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 12 Nov 2026 17:59:27 +0000 Subject: [PATCH] Regenerate client from commit f75c352 of spec repo --- .generator/schemas/v2/openapi.yaml | 50 ++++++++++++++++--- .../v2/model/incident_created_trigger.py | 14 +++++- .../model/incident_impact_created_trigger.py | 14 +++++- .../model/incident_impact_updated_trigger.py | 14 +++++- .../incident_postmortem_updated_trigger.py | 14 +++++- .../incident_responder_created_trigger.py | 14 +++++- .../v2/model/incident_saved_trigger.py | 14 +++++- .../v2/model/incident_schedule_trigger.py | 14 +++++- .../model/incident_trigger_incident_type.py | 33 ++++++++++++ src/datadog_api_client/v2/models/__init__.py | 2 + 10 files changed, 162 insertions(+), 21 deletions(-) create mode 100644 src/datadog_api_client/v2/model/incident_trigger_incident_type.py diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 89b899e5cc..0116acf68e 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -67945,8 +67945,11 @@ components: description: "Trigger a workflow when an incident is declared." properties: incidentType: - description: "The type of incident that triggers the workflow." + deprecated: true + description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow." type: string + incidentTypes: + $ref: "#/components/schemas/IncidentTriggerIncidentTypes" tagCondition: $ref: "#/components/schemas/IncidentCondition" type: object @@ -68645,8 +68648,11 @@ components: executionLimit: $ref: "#/components/schemas/ExecutionLimit" incidentType: - description: "The type of incident that triggers the workflow." + deprecated: true + description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow." type: string + incidentTypes: + $ref: "#/components/schemas/IncidentTriggerIncidentTypes" tagCondition: $ref: "#/components/schemas/IncidentCondition" type: object @@ -68964,8 +68970,11 @@ components: executionLimit: $ref: "#/components/schemas/ExecutionLimit" incidentType: - description: "The type of incident that triggers the workflow." + deprecated: true + description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow." type: string + incidentTypes: + $ref: "#/components/schemas/IncidentTriggerIncidentTypes" tagCondition: $ref: "#/components/schemas/IncidentCondition" type: object @@ -70206,8 +70215,11 @@ components: executionLimit: $ref: "#/components/schemas/ExecutionLimit" incidentType: - description: "The type of incident that triggers the workflow." + deprecated: true + description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow." type: string + incidentTypes: + $ref: "#/components/schemas/IncidentTriggerIncidentTypes" tagCondition: $ref: "#/components/schemas/IncidentCondition" type: object @@ -70257,8 +70269,11 @@ components: executionLimit: $ref: "#/components/schemas/ExecutionLimit" incidentType: - description: "The type of incident that triggers the workflow." + deprecated: true + description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow." type: string + incidentTypes: + $ref: "#/components/schemas/IncidentTriggerIncidentTypes" tagCondition: $ref: "#/components/schemas/IncidentCondition" type: object @@ -71242,8 +71257,11 @@ components: executionLimit: $ref: "#/components/schemas/ExecutionLimit" incidentType: - description: "The type of incident that triggers the workflow." + deprecated: true + description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow." type: string + incidentTypes: + $ref: "#/components/schemas/IncidentTriggerIncidentTypes" serialExecution: $ref: "#/components/schemas/SerialExecution" tagCondition: @@ -71263,8 +71281,11 @@ components: description: "Trigger a workflow on a schedule for an incident." properties: incidentType: - description: "The type of incident that triggers the workflow." + deprecated: true + description: "Deprecated. Use `incidentTypes` instead. The type of incident that triggers the workflow." type: string + incidentTypes: + $ref: "#/components/schemas/IncidentTriggerIncidentTypes" rrule: description: "The recurrence rule for the schedule, expressed as an iCalendar `RRULE` string." example: "DTSTART:20241220T151700Z\nRRULE:FREQ=MONTHLY" @@ -72023,6 +72044,21 @@ components: description: "Version of the incident manual trigger." type: string type: object + IncidentTriggerIncidentType: + description: "An incident type that triggers the workflow." + properties: + id: + description: "The ID of the incident type." + example: "" + type: string + required: + - id + type: object + IncidentTriggerIncidentTypes: + description: "The types of incident that trigger the workflow." + items: + $ref: "#/components/schemas/IncidentTriggerIncidentType" + type: array IncidentTriggerWrapper: description: "Schema for an incident-based trigger." properties: diff --git a/src/datadog_api_client/v2/model/incident_created_trigger.py b/src/datadog_api_client/v2/model/incident_created_trigger.py index 08af39828d..9250c778dd 100644 --- a/src/datadog_api_client/v2/model/incident_created_trigger.py +++ b/src/datadog_api_client/v2/model/incident_created_trigger.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -14,41 +14,51 @@ if TYPE_CHECKING: + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.incident_condition import IncidentCondition class IncidentCreatedTrigger(ModelNormal): @cached_property def openapi_types(_): + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.incident_condition import IncidentCondition return { "incident_type": (str,), + "incident_types": ([IncidentTriggerIncidentType],), "tag_condition": (IncidentCondition,), } attribute_map = { "incident_type": "incidentType", + "incident_types": "incidentTypes", "tag_condition": "tagCondition", } def __init__( self_, incident_type: Union[str, UnsetType] = unset, + incident_types: Union[List[IncidentTriggerIncidentType], UnsetType] = unset, tag_condition: Union[IncidentCondition, UnsetType] = unset, **kwargs, ): """ Trigger a workflow when an incident is declared. - :param incident_type: The type of incident that triggers the workflow. + :param incident_type: Deprecated. Use ``incidentTypes`` instead. The type of incident that triggers the workflow. **Deprecated**. :type incident_type: str, optional + :param incident_types: The types of incident that trigger the workflow. + :type incident_types: [IncidentTriggerIncidentType], optional + :param tag_condition: Conditions that determine which incidents trigger the workflow. :type tag_condition: IncidentCondition, optional """ if incident_type is not unset: kwargs["incident_type"] = incident_type + if incident_types is not unset: + kwargs["incident_types"] = incident_types if tag_condition is not unset: kwargs["tag_condition"] = tag_condition super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/incident_impact_created_trigger.py b/src/datadog_api_client/v2/model/incident_impact_created_trigger.py index 1f8a8cce31..c4d4a3ebaa 100644 --- a/src/datadog_api_client/v2/model/incident_impact_created_trigger.py +++ b/src/datadog_api_client/v2/model/incident_impact_created_trigger.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -15,6 +15,7 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.execution_limit import ExecutionLimit + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.incident_condition import IncidentCondition @@ -22,17 +23,20 @@ class IncidentImpactCreatedTrigger(ModelNormal): @cached_property def openapi_types(_): from datadog_api_client.v2.model.execution_limit import ExecutionLimit + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.incident_condition import IncidentCondition return { "execution_limit": (ExecutionLimit,), "incident_type": (str,), + "incident_types": ([IncidentTriggerIncidentType],), "tag_condition": (IncidentCondition,), } attribute_map = { "execution_limit": "executionLimit", "incident_type": "incidentType", + "incident_types": "incidentTypes", "tag_condition": "tagCondition", } @@ -40,6 +44,7 @@ def __init__( self_, execution_limit: Union[ExecutionLimit, UnsetType] = unset, incident_type: Union[str, UnsetType] = unset, + incident_types: Union[List[IncidentTriggerIncidentType], UnsetType] = unset, tag_condition: Union[IncidentCondition, UnsetType] = unset, **kwargs, ): @@ -49,9 +54,12 @@ def __init__( :param execution_limit: The maximum number of times to execute a workflow for an incident. :type execution_limit: ExecutionLimit, optional - :param incident_type: The type of incident that triggers the workflow. + :param incident_type: Deprecated. Use ``incidentTypes`` instead. The type of incident that triggers the workflow. **Deprecated**. :type incident_type: str, optional + :param incident_types: The types of incident that trigger the workflow. + :type incident_types: [IncidentTriggerIncidentType], optional + :param tag_condition: Conditions that determine which incidents trigger the workflow. :type tag_condition: IncidentCondition, optional """ @@ -59,6 +67,8 @@ def __init__( kwargs["execution_limit"] = execution_limit if incident_type is not unset: kwargs["incident_type"] = incident_type + if incident_types is not unset: + kwargs["incident_types"] = incident_types if tag_condition is not unset: kwargs["tag_condition"] = tag_condition super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/incident_impact_updated_trigger.py b/src/datadog_api_client/v2/model/incident_impact_updated_trigger.py index 230a92129a..caaac14d1a 100644 --- a/src/datadog_api_client/v2/model/incident_impact_updated_trigger.py +++ b/src/datadog_api_client/v2/model/incident_impact_updated_trigger.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -15,6 +15,7 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.execution_limit import ExecutionLimit + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.incident_condition import IncidentCondition @@ -22,17 +23,20 @@ class IncidentImpactUpdatedTrigger(ModelNormal): @cached_property def openapi_types(_): from datadog_api_client.v2.model.execution_limit import ExecutionLimit + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.incident_condition import IncidentCondition return { "execution_limit": (ExecutionLimit,), "incident_type": (str,), + "incident_types": ([IncidentTriggerIncidentType],), "tag_condition": (IncidentCondition,), } attribute_map = { "execution_limit": "executionLimit", "incident_type": "incidentType", + "incident_types": "incidentTypes", "tag_condition": "tagCondition", } @@ -40,6 +44,7 @@ def __init__( self_, execution_limit: Union[ExecutionLimit, UnsetType] = unset, incident_type: Union[str, UnsetType] = unset, + incident_types: Union[List[IncidentTriggerIncidentType], UnsetType] = unset, tag_condition: Union[IncidentCondition, UnsetType] = unset, **kwargs, ): @@ -49,9 +54,12 @@ def __init__( :param execution_limit: The maximum number of times to execute a workflow for an incident. :type execution_limit: ExecutionLimit, optional - :param incident_type: The type of incident that triggers the workflow. + :param incident_type: Deprecated. Use ``incidentTypes`` instead. The type of incident that triggers the workflow. **Deprecated**. :type incident_type: str, optional + :param incident_types: The types of incident that trigger the workflow. + :type incident_types: [IncidentTriggerIncidentType], optional + :param tag_condition: Conditions that determine which incidents trigger the workflow. :type tag_condition: IncidentCondition, optional """ @@ -59,6 +67,8 @@ def __init__( kwargs["execution_limit"] = execution_limit if incident_type is not unset: kwargs["incident_type"] = incident_type + if incident_types is not unset: + kwargs["incident_types"] = incident_types if tag_condition is not unset: kwargs["tag_condition"] = tag_condition super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/incident_postmortem_updated_trigger.py b/src/datadog_api_client/v2/model/incident_postmortem_updated_trigger.py index 3de35b8a46..3a061abb51 100644 --- a/src/datadog_api_client/v2/model/incident_postmortem_updated_trigger.py +++ b/src/datadog_api_client/v2/model/incident_postmortem_updated_trigger.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -15,6 +15,7 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.execution_limit import ExecutionLimit + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.incident_condition import IncidentCondition @@ -22,17 +23,20 @@ class IncidentPostmortemUpdatedTrigger(ModelNormal): @cached_property def openapi_types(_): from datadog_api_client.v2.model.execution_limit import ExecutionLimit + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.incident_condition import IncidentCondition return { "execution_limit": (ExecutionLimit,), "incident_type": (str,), + "incident_types": ([IncidentTriggerIncidentType],), "tag_condition": (IncidentCondition,), } attribute_map = { "execution_limit": "executionLimit", "incident_type": "incidentType", + "incident_types": "incidentTypes", "tag_condition": "tagCondition", } @@ -40,6 +44,7 @@ def __init__( self_, execution_limit: Union[ExecutionLimit, UnsetType] = unset, incident_type: Union[str, UnsetType] = unset, + incident_types: Union[List[IncidentTriggerIncidentType], UnsetType] = unset, tag_condition: Union[IncidentCondition, UnsetType] = unset, **kwargs, ): @@ -49,9 +54,12 @@ def __init__( :param execution_limit: The maximum number of times to execute a workflow for an incident. :type execution_limit: ExecutionLimit, optional - :param incident_type: The type of incident that triggers the workflow. + :param incident_type: Deprecated. Use ``incidentTypes`` instead. The type of incident that triggers the workflow. **Deprecated**. :type incident_type: str, optional + :param incident_types: The types of incident that trigger the workflow. + :type incident_types: [IncidentTriggerIncidentType], optional + :param tag_condition: Conditions that determine which incidents trigger the workflow. :type tag_condition: IncidentCondition, optional """ @@ -59,6 +67,8 @@ def __init__( kwargs["execution_limit"] = execution_limit if incident_type is not unset: kwargs["incident_type"] = incident_type + if incident_types is not unset: + kwargs["incident_types"] = incident_types if tag_condition is not unset: kwargs["tag_condition"] = tag_condition super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/incident_responder_created_trigger.py b/src/datadog_api_client/v2/model/incident_responder_created_trigger.py index 3e9e7c8875..c0668b277a 100644 --- a/src/datadog_api_client/v2/model/incident_responder_created_trigger.py +++ b/src/datadog_api_client/v2/model/incident_responder_created_trigger.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -15,6 +15,7 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.execution_limit import ExecutionLimit + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.incident_condition import IncidentCondition @@ -22,17 +23,20 @@ class IncidentResponderCreatedTrigger(ModelNormal): @cached_property def openapi_types(_): from datadog_api_client.v2.model.execution_limit import ExecutionLimit + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.incident_condition import IncidentCondition return { "execution_limit": (ExecutionLimit,), "incident_type": (str,), + "incident_types": ([IncidentTriggerIncidentType],), "tag_condition": (IncidentCondition,), } attribute_map = { "execution_limit": "executionLimit", "incident_type": "incidentType", + "incident_types": "incidentTypes", "tag_condition": "tagCondition", } @@ -40,6 +44,7 @@ def __init__( self_, execution_limit: Union[ExecutionLimit, UnsetType] = unset, incident_type: Union[str, UnsetType] = unset, + incident_types: Union[List[IncidentTriggerIncidentType], UnsetType] = unset, tag_condition: Union[IncidentCondition, UnsetType] = unset, **kwargs, ): @@ -49,9 +54,12 @@ def __init__( :param execution_limit: The maximum number of times to execute a workflow for an incident. :type execution_limit: ExecutionLimit, optional - :param incident_type: The type of incident that triggers the workflow. + :param incident_type: Deprecated. Use ``incidentTypes`` instead. The type of incident that triggers the workflow. **Deprecated**. :type incident_type: str, optional + :param incident_types: The types of incident that trigger the workflow. + :type incident_types: [IncidentTriggerIncidentType], optional + :param tag_condition: Conditions that determine which incidents trigger the workflow. :type tag_condition: IncidentCondition, optional """ @@ -59,6 +67,8 @@ def __init__( kwargs["execution_limit"] = execution_limit if incident_type is not unset: kwargs["incident_type"] = incident_type + if incident_types is not unset: + kwargs["incident_types"] = incident_types if tag_condition is not unset: kwargs["tag_condition"] = tag_condition super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/incident_saved_trigger.py b/src/datadog_api_client/v2/model/incident_saved_trigger.py index c84d53b74a..b1638575fe 100644 --- a/src/datadog_api_client/v2/model/incident_saved_trigger.py +++ b/src/datadog_api_client/v2/model/incident_saved_trigger.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -15,6 +15,7 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.execution_limit import ExecutionLimit + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.serial_execution import SerialExecution from datadog_api_client.v2.model.incident_condition import IncidentCondition @@ -23,12 +24,14 @@ class IncidentSavedTrigger(ModelNormal): @cached_property def openapi_types(_): from datadog_api_client.v2.model.execution_limit import ExecutionLimit + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.serial_execution import SerialExecution from datadog_api_client.v2.model.incident_condition import IncidentCondition return { "execution_limit": (ExecutionLimit,), "incident_type": (str,), + "incident_types": ([IncidentTriggerIncidentType],), "serial_execution": (SerialExecution,), "tag_condition": (IncidentCondition,), } @@ -36,6 +39,7 @@ def openapi_types(_): attribute_map = { "execution_limit": "executionLimit", "incident_type": "incidentType", + "incident_types": "incidentTypes", "serial_execution": "serialExecution", "tag_condition": "tagCondition", } @@ -44,6 +48,7 @@ def __init__( self_, execution_limit: Union[ExecutionLimit, UnsetType] = unset, incident_type: Union[str, UnsetType] = unset, + incident_types: Union[List[IncidentTriggerIncidentType], UnsetType] = unset, serial_execution: Union[SerialExecution, UnsetType] = unset, tag_condition: Union[IncidentCondition, UnsetType] = unset, **kwargs, @@ -54,9 +59,12 @@ def __init__( :param execution_limit: The maximum number of times to execute a workflow for an incident. :type execution_limit: ExecutionLimit, optional - :param incident_type: The type of incident that triggers the workflow. + :param incident_type: Deprecated. Use ``incidentTypes`` instead. The type of incident that triggers the workflow. **Deprecated**. :type incident_type: str, optional + :param incident_types: The types of incident that trigger the workflow. + :type incident_types: [IncidentTriggerIncidentType], optional + :param serial_execution: Whether to execute the workflow serially for an incident. :type serial_execution: SerialExecution, optional @@ -67,6 +75,8 @@ def __init__( kwargs["execution_limit"] = execution_limit if incident_type is not unset: kwargs["incident_type"] = incident_type + if incident_types is not unset: + kwargs["incident_types"] = incident_types if serial_execution is not unset: kwargs["serial_execution"] = serial_execution if tag_condition is not unset: diff --git a/src/datadog_api_client/v2/model/incident_schedule_trigger.py b/src/datadog_api_client/v2/model/incident_schedule_trigger.py index d50820ce1c..d558c51039 100644 --- a/src/datadog_api_client/v2/model/incident_schedule_trigger.py +++ b/src/datadog_api_client/v2/model/incident_schedule_trigger.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -14,6 +14,7 @@ if TYPE_CHECKING: + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.incident_condition import IncidentCondition @@ -26,16 +27,19 @@ class IncidentScheduleTrigger(ModelNormal): @cached_property def openapi_types(_): + from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.incident_condition import IncidentCondition return { "incident_type": (str,), + "incident_types": ([IncidentTriggerIncidentType],), "rrule": (str,), "tag_condition": (IncidentCondition,), } attribute_map = { "incident_type": "incidentType", + "incident_types": "incidentTypes", "rrule": "rrule", "tag_condition": "tagCondition", } @@ -44,15 +48,19 @@ def __init__( self_, rrule: str, incident_type: Union[str, UnsetType] = unset, + incident_types: Union[List[IncidentTriggerIncidentType], UnsetType] = unset, tag_condition: Union[IncidentCondition, UnsetType] = unset, **kwargs, ): """ Trigger a workflow on a schedule for an incident. - :param incident_type: The type of incident that triggers the workflow. + :param incident_type: Deprecated. Use ``incidentTypes`` instead. The type of incident that triggers the workflow. **Deprecated**. :type incident_type: str, optional + :param incident_types: The types of incident that trigger the workflow. + :type incident_types: [IncidentTriggerIncidentType], optional + :param rrule: The recurrence rule for the schedule, expressed as an iCalendar ``RRULE`` string. :type rrule: str @@ -61,6 +69,8 @@ def __init__( """ if incident_type is not unset: kwargs["incident_type"] = incident_type + if incident_types is not unset: + kwargs["incident_types"] = incident_types if tag_condition is not unset: kwargs["tag_condition"] = tag_condition super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/incident_trigger_incident_type.py b/src/datadog_api_client/v2/model/incident_trigger_incident_type.py new file mode 100644 index 0000000000..a7c97a600f --- /dev/null +++ b/src/datadog_api_client/v2/model/incident_trigger_incident_type.py @@ -0,0 +1,33 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +class IncidentTriggerIncidentType(ModelNormal): + @cached_property + def openapi_types(_): + return { + "id": (str,), + } + + attribute_map = { + "id": "id", + } + + def __init__(self_, id: str, **kwargs): + """ + An incident type that triggers the workflow. + + :param id: The ID of the incident type. + :type id: str + """ + super().__init__(kwargs) + + self_.id = id diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index 023c204e6e..701b35a25d 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -5719,6 +5719,7 @@ from datadog_api_client.v2.model.incident_todo_response_included_item import IncidentTodoResponseIncludedItem from datadog_api_client.v2.model.incident_todo_type import IncidentTodoType from datadog_api_client.v2.model.incident_trigger import IncidentTrigger +from datadog_api_client.v2.model.incident_trigger_incident_type import IncidentTriggerIncidentType from datadog_api_client.v2.model.incident_trigger_wrapper import IncidentTriggerWrapper from datadog_api_client.v2.model.incident_type import IncidentType from datadog_api_client.v2.model.incident_type_attributes import IncidentTypeAttributes @@ -17939,6 +17940,7 @@ "IncidentTodoResponseIncludedItem", "IncidentTodoType", "IncidentTrigger", + "IncidentTriggerIncidentType", "IncidentTriggerWrapper", "IncidentType", "IncidentTypeAttributes",