From 91f187ca6c62af69731bfe27ae01e56e8ea53456 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 4 May 2026 14:42:03 +0000 Subject: [PATCH] Regenerate client from commit 709f3f6 of spec repo --- .generator/schemas/v2/openapi.yaml | 46 ++++++++++++++++++ docs/datadog_api_client.v2.model.rst | 28 +++++++++++ .../v2/model/routing_rule_action.py | 7 +++ .../v2/model/routing_rule_attributes.py | 13 ++++- .../model/team_routing_rules_request_rule.py | 13 ++++- .../trigger_workflow_automation_action.py | 48 +++++++++++++++++++ ...trigger_workflow_automation_action_type.py | 35 ++++++++++++++ .../v2/model/webhook_action.py | 46 ++++++++++++++++++ .../v2/model/webhook_action_type.py | 35 ++++++++++++++ src/datadog_api_client/v2/models/__init__.py | 8 ++++ 10 files changed, 277 insertions(+), 2 deletions(-) create mode 100644 src/datadog_api_client/v2/model/trigger_workflow_automation_action.py create mode 100644 src/datadog_api_client/v2/model/trigger_workflow_automation_action_type.py create mode 100644 src/datadog_api_client/v2/model/webhook_action.py create mode 100644 src/datadog_api_client/v2/model/webhook_action_type.py diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 93b41388a7..b7f41fcfaa 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -59489,6 +59489,8 @@ components: oneOf: - $ref: "#/components/schemas/SendSlackMessageAction" - $ref: "#/components/schemas/SendTeamsMessageAction" + - $ref: "#/components/schemas/TriggerWorkflowAutomationAction" + - $ref: "#/components/schemas/WebhookAction" RoutingRuleAttributes: description: Defines the configurable attributes of a routing rule, such as actions, query, time restriction, and urgency. properties: @@ -79228,6 +79230,28 @@ components: type: string x-enum-varnames: - MONITOR_ALERT_TRIGGER + TriggerWorkflowAutomationAction: + description: "Triggers a Workflow Automation." + properties: + handle: + description: "The handle of the Workflow Automation to trigger." + example: my-workflow-handle + type: string + type: + $ref: "#/components/schemas/TriggerWorkflowAutomationActionType" + required: + - type + - handle + type: object + TriggerWorkflowAutomationActionType: + default: workflow + description: "Indicates that the action triggers a Workflow Automation." + enum: + - workflow + example: workflow + type: string + x-enum-varnames: + - TRIGGER_WORKFLOW_AUTOMATION UCConfigPair: description: The definition of `UCConfigPair` object. example: @@ -82522,6 +82546,28 @@ components: type: string x-enum-varnames: - RUM_REPLAY_WATCHER + WebhookAction: + description: "Sends a request to a webhook." + properties: + handle: + description: "The handle of the webhook to send the request to." + example: my-webhook-handle + type: string + type: + $ref: "#/components/schemas/WebhookActionType" + required: + - type + - handle + type: object + WebhookActionType: + default: webhook + description: "Indicates that the action sends a request to a webhook." + enum: + - webhook + example: webhook + type: string + x-enum-varnames: + - WEBHOOK Weekday: description: A day of the week. enum: diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index a796374b93..c92f295445 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -35046,6 +35046,20 @@ datadog\_api\_client.v2.model.trigger\_type module :members: :show-inheritance: +datadog\_api\_client.v2.model.trigger\_workflow\_automation\_action module +-------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.trigger_workflow_automation_action + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.trigger\_workflow\_automation\_action\_type module +-------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.trigger_workflow_automation_action_type + :members: + :show-inheritance: + datadog\_api\_client.v2.model.uc\_config\_pair module ----------------------------------------------------- @@ -36551,6 +36565,20 @@ datadog\_api\_client.v2.model.watcher\_data\_type module :members: :show-inheritance: +datadog\_api\_client.v2.model.webhook\_action module +---------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.webhook_action + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.webhook\_action\_type module +---------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.webhook_action_type + :members: + :show-inheritance: + datadog\_api\_client.v2.model.weekday module -------------------------------------------- diff --git a/src/datadog_api_client/v2/model/routing_rule_action.py b/src/datadog_api_client/v2/model/routing_rule_action.py index 0619e999ae..9d36011633 100644 --- a/src/datadog_api_client/v2/model/routing_rule_action.py +++ b/src/datadog_api_client/v2/model/routing_rule_action.py @@ -29,6 +29,9 @@ def __init__(self, **kwargs): :param tenant: The tenant ID. :type tenant: str + + :param handle: The handle of the Workflow Automation to trigger. + :type handle: str """ super().__init__(kwargs) @@ -43,10 +46,14 @@ def _composed_schemas(_): # loading from datadog_api_client.v2.model.send_slack_message_action import SendSlackMessageAction from datadog_api_client.v2.model.send_teams_message_action import SendTeamsMessageAction + from datadog_api_client.v2.model.trigger_workflow_automation_action import TriggerWorkflowAutomationAction + from datadog_api_client.v2.model.webhook_action import WebhookAction return { "oneOf": [ SendSlackMessageAction, SendTeamsMessageAction, + TriggerWorkflowAutomationAction, + WebhookAction, ], } diff --git a/src/datadog_api_client/v2/model/routing_rule_attributes.py b/src/datadog_api_client/v2/model/routing_rule_attributes.py index 55096f012e..122e3af138 100644 --- a/src/datadog_api_client/v2/model/routing_rule_attributes.py +++ b/src/datadog_api_client/v2/model/routing_rule_attributes.py @@ -19,6 +19,8 @@ from datadog_api_client.v2.model.urgency import Urgency from datadog_api_client.v2.model.send_slack_message_action import SendSlackMessageAction from datadog_api_client.v2.model.send_teams_message_action import SendTeamsMessageAction + from datadog_api_client.v2.model.trigger_workflow_automation_action import TriggerWorkflowAutomationAction + from datadog_api_client.v2.model.webhook_action import WebhookAction class RoutingRuleAttributes(ModelNormal): @@ -45,7 +47,16 @@ def openapi_types(_): def __init__( self_, actions: Union[ - List[Union[RoutingRuleAction, SendSlackMessageAction, SendTeamsMessageAction]], UnsetType + List[ + Union[ + RoutingRuleAction, + SendSlackMessageAction, + SendTeamsMessageAction, + TriggerWorkflowAutomationAction, + WebhookAction, + ] + ], + UnsetType, ] = unset, query: Union[str, UnsetType] = unset, time_restriction: Union[TimeRestrictions, UnsetType] = unset, diff --git a/src/datadog_api_client/v2/model/team_routing_rules_request_rule.py b/src/datadog_api_client/v2/model/team_routing_rules_request_rule.py index 94ce34e5b2..2247e92248 100644 --- a/src/datadog_api_client/v2/model/team_routing_rules_request_rule.py +++ b/src/datadog_api_client/v2/model/team_routing_rules_request_rule.py @@ -19,6 +19,8 @@ from datadog_api_client.v2.model.urgency import Urgency from datadog_api_client.v2.model.send_slack_message_action import SendSlackMessageAction from datadog_api_client.v2.model.send_teams_message_action import SendTeamsMessageAction + from datadog_api_client.v2.model.trigger_workflow_automation_action import TriggerWorkflowAutomationAction + from datadog_api_client.v2.model.webhook_action import WebhookAction class TeamRoutingRulesRequestRule(ModelNormal): @@ -47,7 +49,16 @@ def openapi_types(_): def __init__( self_, actions: Union[ - List[Union[RoutingRuleAction, SendSlackMessageAction, SendTeamsMessageAction]], UnsetType + List[ + Union[ + RoutingRuleAction, + SendSlackMessageAction, + SendTeamsMessageAction, + TriggerWorkflowAutomationAction, + WebhookAction, + ] + ], + UnsetType, ] = unset, policy_id: Union[str, UnsetType] = unset, query: Union[str, UnsetType] = unset, diff --git a/src/datadog_api_client/v2/model/trigger_workflow_automation_action.py b/src/datadog_api_client/v2/model/trigger_workflow_automation_action.py new file mode 100644 index 0000000000..2fb2d9b9fc --- /dev/null +++ b/src/datadog_api_client/v2/model/trigger_workflow_automation_action.py @@ -0,0 +1,48 @@ +# 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 typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.trigger_workflow_automation_action_type import TriggerWorkflowAutomationActionType + + +class TriggerWorkflowAutomationAction(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.trigger_workflow_automation_action_type import ( + TriggerWorkflowAutomationActionType, + ) + + return { + "handle": (str,), + "type": (TriggerWorkflowAutomationActionType,), + } + + attribute_map = { + "handle": "handle", + "type": "type", + } + + def __init__(self_, handle: str, type: TriggerWorkflowAutomationActionType, **kwargs): + """ + Triggers a Workflow Automation. + + :param handle: The handle of the Workflow Automation to trigger. + :type handle: str + + :param type: Indicates that the action triggers a Workflow Automation. + :type type: TriggerWorkflowAutomationActionType + """ + super().__init__(kwargs) + + self_.handle = handle + self_.type = type diff --git a/src/datadog_api_client/v2/model/trigger_workflow_automation_action_type.py b/src/datadog_api_client/v2/model/trigger_workflow_automation_action_type.py new file mode 100644 index 0000000000..94e4b5a060 --- /dev/null +++ b/src/datadog_api_client/v2/model/trigger_workflow_automation_action_type.py @@ -0,0 +1,35 @@ +# 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 ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class TriggerWorkflowAutomationActionType(ModelSimple): + """ + Indicates that the action triggers a Workflow Automation. + + :param value: If omitted defaults to "workflow". Must be one of ["workflow"]. + :type value: str + """ + + allowed_values = { + "workflow", + } + TRIGGER_WORKFLOW_AUTOMATION: ClassVar["TriggerWorkflowAutomationActionType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +TriggerWorkflowAutomationActionType.TRIGGER_WORKFLOW_AUTOMATION = TriggerWorkflowAutomationActionType("workflow") diff --git a/src/datadog_api_client/v2/model/webhook_action.py b/src/datadog_api_client/v2/model/webhook_action.py new file mode 100644 index 0000000000..80a64efdb1 --- /dev/null +++ b/src/datadog_api_client/v2/model/webhook_action.py @@ -0,0 +1,46 @@ +# 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 typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.webhook_action_type import WebhookActionType + + +class WebhookAction(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.webhook_action_type import WebhookActionType + + return { + "handle": (str,), + "type": (WebhookActionType,), + } + + attribute_map = { + "handle": "handle", + "type": "type", + } + + def __init__(self_, handle: str, type: WebhookActionType, **kwargs): + """ + Sends a request to a webhook. + + :param handle: The handle of the webhook to send the request to. + :type handle: str + + :param type: Indicates that the action sends a request to a webhook. + :type type: WebhookActionType + """ + super().__init__(kwargs) + + self_.handle = handle + self_.type = type diff --git a/src/datadog_api_client/v2/model/webhook_action_type.py b/src/datadog_api_client/v2/model/webhook_action_type.py new file mode 100644 index 0000000000..cd65d5d5c1 --- /dev/null +++ b/src/datadog_api_client/v2/model/webhook_action_type.py @@ -0,0 +1,35 @@ +# 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 ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class WebhookActionType(ModelSimple): + """ + Indicates that the action sends a request to a webhook. + + :param value: If omitted defaults to "webhook". Must be one of ["webhook"]. + :type value: str + """ + + allowed_values = { + "webhook", + } + WEBHOOK: ClassVar["WebhookActionType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +WebhookActionType.WEBHOOK = WebhookActionType("webhook") diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index 75f28c1ac9..6ac42b25f4 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -7157,6 +7157,8 @@ from datadog_api_client.v2.model.trigger_rate_limit import TriggerRateLimit from datadog_api_client.v2.model.trigger_source import TriggerSource from datadog_api_client.v2.model.trigger_type import TriggerType +from datadog_api_client.v2.model.trigger_workflow_automation_action import TriggerWorkflowAutomationAction +from datadog_api_client.v2.model.trigger_workflow_automation_action_type import TriggerWorkflowAutomationActionType from datadog_api_client.v2.model.uc_config_pair import UCConfigPair from datadog_api_client.v2.model.uc_config_pair_data import UCConfigPairData from datadog_api_client.v2.model.uc_config_pair_data_attributes import UCConfigPairDataAttributes @@ -7430,6 +7432,8 @@ from datadog_api_client.v2.model.watcher_data import WatcherData from datadog_api_client.v2.model.watcher_data_attributes import WatcherDataAttributes from datadog_api_client.v2.model.watcher_data_type import WatcherDataType +from datadog_api_client.v2.model.webhook_action import WebhookAction +from datadog_api_client.v2.model.webhook_action_type import WebhookActionType from datadog_api_client.v2.model.weekday import Weekday from datadog_api_client.v2.model.widget_attributes import WidgetAttributes from datadog_api_client.v2.model.widget_data import WidgetData @@ -12494,6 +12498,8 @@ "TriggerRateLimit", "TriggerSource", "TriggerType", + "TriggerWorkflowAutomationAction", + "TriggerWorkflowAutomationActionType", "UCConfigPair", "UCConfigPairData", "UCConfigPairDataAttributes", @@ -12709,6 +12715,8 @@ "WatcherData", "WatcherDataAttributes", "WatcherDataType", + "WebhookAction", + "WebhookActionType", "Weekday", "WidgetAttributes", "WidgetData",