Skip to content

Commit 1c6266b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ddcc2f9 of spec repo
1 parent 0b32005 commit 1c6266b

8 files changed

Lines changed: 143 additions & 2 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59622,6 +59622,7 @@ components:
5962259622
oneOf:
5962359623
- $ref: "#/components/schemas/SendSlackMessageAction"
5962459624
- $ref: "#/components/schemas/SendTeamsMessageAction"
59625+
- $ref: "#/components/schemas/TriggerWorkflowAutomationAction"
5962559626
RoutingRuleAttributes:
5962659627
description: Defines the configurable attributes of a routing rule, such as actions, query, time restriction, and urgency.
5962759628
properties:
@@ -79361,6 +79362,28 @@ components:
7936179362
type: string
7936279363
x-enum-varnames:
7936379364
- MONITOR_ALERT_TRIGGER
79365+
TriggerWorkflowAutomationAction:
79366+
description: "Triggers a Workflow Automation."
79367+
properties:
79368+
handle:
79369+
description: "The handle of the Workflow Automation to trigger."
79370+
example: my-workflow-handle
79371+
type: string
79372+
type:
79373+
$ref: "#/components/schemas/TriggerWorkflowAutomationActionType"
79374+
required:
79375+
- type
79376+
- handle
79377+
type: object
79378+
TriggerWorkflowAutomationActionType:
79379+
default: workflow
79380+
description: "Indicates that the action triggers a Workflow Automation."
79381+
enum:
79382+
- workflow
79383+
example: workflow
79384+
type: string
79385+
x-enum-varnames:
79386+
- TRIGGER_WORKFLOW_AUTOMATION
7936479387
UCConfigPair:
7936579388
description: The definition of `UCConfigPair` object.
7936679389
example:

docs/datadog_api_client.v2.model.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35081,6 +35081,20 @@ datadog\_api\_client.v2.model.trigger\_type module
3508135081
:members:
3508235082
:show-inheritance:
3508335083

35084+
datadog\_api\_client.v2.model.trigger\_workflow\_automation\_action module
35085+
--------------------------------------------------------------------------
35086+
35087+
.. automodule:: datadog_api_client.v2.model.trigger_workflow_automation_action
35088+
:members:
35089+
:show-inheritance:
35090+
35091+
datadog\_api\_client.v2.model.trigger\_workflow\_automation\_action\_type module
35092+
--------------------------------------------------------------------------------
35093+
35094+
.. automodule:: datadog_api_client.v2.model.trigger_workflow_automation_action_type
35095+
:members:
35096+
:show-inheritance:
35097+
3508435098
datadog\_api\_client.v2.model.uc\_config\_pair module
3508535099
-----------------------------------------------------
3508635100

src/datadog_api_client/v2/model/routing_rule_action.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ def __init__(self, **kwargs):
2929
3030
:param tenant: The tenant ID.
3131
:type tenant: str
32+
33+
:param handle: The handle of the Workflow Automation to trigger.
34+
:type handle: str
3235
"""
3336
super().__init__(kwargs)
3437

@@ -43,10 +46,12 @@ def _composed_schemas(_):
4346
# loading
4447
from datadog_api_client.v2.model.send_slack_message_action import SendSlackMessageAction
4548
from datadog_api_client.v2.model.send_teams_message_action import SendTeamsMessageAction
49+
from datadog_api_client.v2.model.trigger_workflow_automation_action import TriggerWorkflowAutomationAction
4650

4751
return {
4852
"oneOf": [
4953
SendSlackMessageAction,
5054
SendTeamsMessageAction,
55+
TriggerWorkflowAutomationAction,
5156
],
5257
}

src/datadog_api_client/v2/model/routing_rule_attributes.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from datadog_api_client.v2.model.urgency import Urgency
2020
from datadog_api_client.v2.model.send_slack_message_action import SendSlackMessageAction
2121
from datadog_api_client.v2.model.send_teams_message_action import SendTeamsMessageAction
22+
from datadog_api_client.v2.model.trigger_workflow_automation_action import TriggerWorkflowAutomationAction
2223

2324

2425
class RoutingRuleAttributes(ModelNormal):
@@ -45,7 +46,12 @@ def openapi_types(_):
4546
def __init__(
4647
self_,
4748
actions: Union[
48-
List[Union[RoutingRuleAction, SendSlackMessageAction, SendTeamsMessageAction]], UnsetType
49+
List[
50+
Union[
51+
RoutingRuleAction, SendSlackMessageAction, SendTeamsMessageAction, TriggerWorkflowAutomationAction
52+
]
53+
],
54+
UnsetType,
4955
] = unset,
5056
query: Union[str, UnsetType] = unset,
5157
time_restriction: Union[TimeRestrictions, UnsetType] = unset,

src/datadog_api_client/v2/model/team_routing_rules_request_rule.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from datadog_api_client.v2.model.urgency import Urgency
2020
from datadog_api_client.v2.model.send_slack_message_action import SendSlackMessageAction
2121
from datadog_api_client.v2.model.send_teams_message_action import SendTeamsMessageAction
22+
from datadog_api_client.v2.model.trigger_workflow_automation_action import TriggerWorkflowAutomationAction
2223

2324

2425
class TeamRoutingRulesRequestRule(ModelNormal):
@@ -47,7 +48,12 @@ def openapi_types(_):
4748
def __init__(
4849
self_,
4950
actions: Union[
50-
List[Union[RoutingRuleAction, SendSlackMessageAction, SendTeamsMessageAction]], UnsetType
51+
List[
52+
Union[
53+
RoutingRuleAction, SendSlackMessageAction, SendTeamsMessageAction, TriggerWorkflowAutomationAction
54+
]
55+
],
56+
UnsetType,
5157
] = unset,
5258
policy_id: Union[str, UnsetType] = unset,
5359
query: Union[str, UnsetType] = unset,
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
)
12+
13+
14+
if TYPE_CHECKING:
15+
from datadog_api_client.v2.model.trigger_workflow_automation_action_type import TriggerWorkflowAutomationActionType
16+
17+
18+
class TriggerWorkflowAutomationAction(ModelNormal):
19+
@cached_property
20+
def openapi_types(_):
21+
from datadog_api_client.v2.model.trigger_workflow_automation_action_type import (
22+
TriggerWorkflowAutomationActionType,
23+
)
24+
25+
return {
26+
"handle": (str,),
27+
"type": (TriggerWorkflowAutomationActionType,),
28+
}
29+
30+
attribute_map = {
31+
"handle": "handle",
32+
"type": "type",
33+
}
34+
35+
def __init__(self_, handle: str, type: TriggerWorkflowAutomationActionType, **kwargs):
36+
"""
37+
Triggers a Workflow Automation.
38+
39+
:param handle: The handle of the Workflow Automation to trigger.
40+
:type handle: str
41+
42+
:param type: Indicates that the action triggers a Workflow Automation.
43+
:type type: TriggerWorkflowAutomationActionType
44+
"""
45+
super().__init__(kwargs)
46+
47+
self_.handle = handle
48+
self_.type = type
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class TriggerWorkflowAutomationActionType(ModelSimple):
16+
"""
17+
Indicates that the action triggers a Workflow Automation.
18+
19+
:param value: If omitted defaults to "workflow". Must be one of ["workflow"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"workflow",
25+
}
26+
TRIGGER_WORKFLOW_AUTOMATION: ClassVar["TriggerWorkflowAutomationActionType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
TriggerWorkflowAutomationActionType.TRIGGER_WORKFLOW_AUTOMATION = TriggerWorkflowAutomationActionType("workflow")

src/datadog_api_client/v2/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7162,6 +7162,8 @@
71627162
from datadog_api_client.v2.model.trigger_rate_limit import TriggerRateLimit
71637163
from datadog_api_client.v2.model.trigger_source import TriggerSource
71647164
from datadog_api_client.v2.model.trigger_type import TriggerType
7165+
from datadog_api_client.v2.model.trigger_workflow_automation_action import TriggerWorkflowAutomationAction
7166+
from datadog_api_client.v2.model.trigger_workflow_automation_action_type import TriggerWorkflowAutomationActionType
71657167
from datadog_api_client.v2.model.uc_config_pair import UCConfigPair
71667168
from datadog_api_client.v2.model.uc_config_pair_data import UCConfigPairData
71677169
from datadog_api_client.v2.model.uc_config_pair_data_attributes import UCConfigPairDataAttributes
@@ -12504,6 +12506,8 @@
1250412506
"TriggerRateLimit",
1250512507
"TriggerSource",
1250612508
"TriggerType",
12509+
"TriggerWorkflowAutomationAction",
12510+
"TriggerWorkflowAutomationActionType",
1250712511
"UCConfigPair",
1250812512
"UCConfigPairData",
1250912513
"UCConfigPairDataAttributes",

0 commit comments

Comments
 (0)