Skip to content

Commit 91f187c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 709f3f6 of spec repo
1 parent ed58689 commit 91f187c

10 files changed

Lines changed: 277 additions & 2 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59489,6 +59489,8 @@ components:
5948959489
oneOf:
5949059490
- $ref: "#/components/schemas/SendSlackMessageAction"
5949159491
- $ref: "#/components/schemas/SendTeamsMessageAction"
59492+
- $ref: "#/components/schemas/TriggerWorkflowAutomationAction"
59493+
- $ref: "#/components/schemas/WebhookAction"
5949259494
RoutingRuleAttributes:
5949359495
description: Defines the configurable attributes of a routing rule, such as actions, query, time restriction, and urgency.
5949459496
properties:
@@ -79228,6 +79230,28 @@ components:
7922879230
type: string
7922979231
x-enum-varnames:
7923079232
- MONITOR_ALERT_TRIGGER
79233+
TriggerWorkflowAutomationAction:
79234+
description: "Triggers a Workflow Automation."
79235+
properties:
79236+
handle:
79237+
description: "The handle of the Workflow Automation to trigger."
79238+
example: my-workflow-handle
79239+
type: string
79240+
type:
79241+
$ref: "#/components/schemas/TriggerWorkflowAutomationActionType"
79242+
required:
79243+
- type
79244+
- handle
79245+
type: object
79246+
TriggerWorkflowAutomationActionType:
79247+
default: workflow
79248+
description: "Indicates that the action triggers a Workflow Automation."
79249+
enum:
79250+
- workflow
79251+
example: workflow
79252+
type: string
79253+
x-enum-varnames:
79254+
- TRIGGER_WORKFLOW_AUTOMATION
7923179255
UCConfigPair:
7923279256
description: The definition of `UCConfigPair` object.
7923379257
example:
@@ -82522,6 +82546,28 @@ components:
8252282546
type: string
8252382547
x-enum-varnames:
8252482548
- RUM_REPLAY_WATCHER
82549+
WebhookAction:
82550+
description: "Sends a request to a webhook."
82551+
properties:
82552+
handle:
82553+
description: "The handle of the webhook to send the request to."
82554+
example: my-webhook-handle
82555+
type: string
82556+
type:
82557+
$ref: "#/components/schemas/WebhookActionType"
82558+
required:
82559+
- type
82560+
- handle
82561+
type: object
82562+
WebhookActionType:
82563+
default: webhook
82564+
description: "Indicates that the action sends a request to a webhook."
82565+
enum:
82566+
- webhook
82567+
example: webhook
82568+
type: string
82569+
x-enum-varnames:
82570+
- WEBHOOK
8252582571
Weekday:
8252682572
description: A day of the week.
8252782573
enum:

docs/datadog_api_client.v2.model.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35046,6 +35046,20 @@ datadog\_api\_client.v2.model.trigger\_type module
3504635046
:members:
3504735047
:show-inheritance:
3504835048

35049+
datadog\_api\_client.v2.model.trigger\_workflow\_automation\_action module
35050+
--------------------------------------------------------------------------
35051+
35052+
.. automodule:: datadog_api_client.v2.model.trigger_workflow_automation_action
35053+
:members:
35054+
:show-inheritance:
35055+
35056+
datadog\_api\_client.v2.model.trigger\_workflow\_automation\_action\_type module
35057+
--------------------------------------------------------------------------------
35058+
35059+
.. automodule:: datadog_api_client.v2.model.trigger_workflow_automation_action_type
35060+
:members:
35061+
:show-inheritance:
35062+
3504935063
datadog\_api\_client.v2.model.uc\_config\_pair module
3505035064
-----------------------------------------------------
3505135065

@@ -36551,6 +36565,20 @@ datadog\_api\_client.v2.model.watcher\_data\_type module
3655136565
:members:
3655236566
:show-inheritance:
3655336567

36568+
datadog\_api\_client.v2.model.webhook\_action module
36569+
----------------------------------------------------
36570+
36571+
.. automodule:: datadog_api_client.v2.model.webhook_action
36572+
:members:
36573+
:show-inheritance:
36574+
36575+
datadog\_api\_client.v2.model.webhook\_action\_type module
36576+
----------------------------------------------------------
36577+
36578+
.. automodule:: datadog_api_client.v2.model.webhook_action_type
36579+
:members:
36580+
:show-inheritance:
36581+
3655436582
datadog\_api\_client.v2.model.weekday module
3655536583
--------------------------------------------
3655636584

src/datadog_api_client/v2/model/routing_rule_action.py

Lines changed: 7 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,14 @@ 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
50+
from datadog_api_client.v2.model.webhook_action import WebhookAction
4651

4752
return {
4853
"oneOf": [
4954
SendSlackMessageAction,
5055
SendTeamsMessageAction,
56+
TriggerWorkflowAutomationAction,
57+
WebhookAction,
5158
],
5259
}

src/datadog_api_client/v2/model/routing_rule_attributes.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
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
23+
from datadog_api_client.v2.model.webhook_action import WebhookAction
2224

2325

2426
class RoutingRuleAttributes(ModelNormal):
@@ -45,7 +47,16 @@ def openapi_types(_):
4547
def __init__(
4648
self_,
4749
actions: Union[
48-
List[Union[RoutingRuleAction, SendSlackMessageAction, SendTeamsMessageAction]], UnsetType
50+
List[
51+
Union[
52+
RoutingRuleAction,
53+
SendSlackMessageAction,
54+
SendTeamsMessageAction,
55+
TriggerWorkflowAutomationAction,
56+
WebhookAction,
57+
]
58+
],
59+
UnsetType,
4960
] = unset,
5061
query: Union[str, UnsetType] = unset,
5162
time_restriction: Union[TimeRestrictions, UnsetType] = unset,

src/datadog_api_client/v2/model/team_routing_rules_request_rule.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
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
23+
from datadog_api_client.v2.model.webhook_action import WebhookAction
2224

2325

2426
class TeamRoutingRulesRequestRule(ModelNormal):
@@ -47,7 +49,16 @@ def openapi_types(_):
4749
def __init__(
4850
self_,
4951
actions: Union[
50-
List[Union[RoutingRuleAction, SendSlackMessageAction, SendTeamsMessageAction]], UnsetType
52+
List[
53+
Union[
54+
RoutingRuleAction,
55+
SendSlackMessageAction,
56+
SendTeamsMessageAction,
57+
TriggerWorkflowAutomationAction,
58+
WebhookAction,
59+
]
60+
],
61+
UnsetType,
5162
] = unset,
5263
policy_id: Union[str, UnsetType] = unset,
5364
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")
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.webhook_action_type import WebhookActionType
16+
17+
18+
class WebhookAction(ModelNormal):
19+
@cached_property
20+
def openapi_types(_):
21+
from datadog_api_client.v2.model.webhook_action_type import WebhookActionType
22+
23+
return {
24+
"handle": (str,),
25+
"type": (WebhookActionType,),
26+
}
27+
28+
attribute_map = {
29+
"handle": "handle",
30+
"type": "type",
31+
}
32+
33+
def __init__(self_, handle: str, type: WebhookActionType, **kwargs):
34+
"""
35+
Sends a request to a webhook.
36+
37+
:param handle: The handle of the webhook to send the request to.
38+
:type handle: str
39+
40+
:param type: Indicates that the action sends a request to a webhook.
41+
:type type: WebhookActionType
42+
"""
43+
super().__init__(kwargs)
44+
45+
self_.handle = handle
46+
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 WebhookActionType(ModelSimple):
16+
"""
17+
Indicates that the action sends a request to a webhook.
18+
19+
:param value: If omitted defaults to "webhook". Must be one of ["webhook"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"webhook",
25+
}
26+
WEBHOOK: ClassVar["WebhookActionType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
WebhookActionType.WEBHOOK = WebhookActionType("webhook")

src/datadog_api_client/v2/models/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7157,6 +7157,8 @@
71577157
from datadog_api_client.v2.model.trigger_rate_limit import TriggerRateLimit
71587158
from datadog_api_client.v2.model.trigger_source import TriggerSource
71597159
from datadog_api_client.v2.model.trigger_type import TriggerType
7160+
from datadog_api_client.v2.model.trigger_workflow_automation_action import TriggerWorkflowAutomationAction
7161+
from datadog_api_client.v2.model.trigger_workflow_automation_action_type import TriggerWorkflowAutomationActionType
71607162
from datadog_api_client.v2.model.uc_config_pair import UCConfigPair
71617163
from datadog_api_client.v2.model.uc_config_pair_data import UCConfigPairData
71627164
from datadog_api_client.v2.model.uc_config_pair_data_attributes import UCConfigPairDataAttributes
@@ -7430,6 +7432,8 @@
74307432
from datadog_api_client.v2.model.watcher_data import WatcherData
74317433
from datadog_api_client.v2.model.watcher_data_attributes import WatcherDataAttributes
74327434
from datadog_api_client.v2.model.watcher_data_type import WatcherDataType
7435+
from datadog_api_client.v2.model.webhook_action import WebhookAction
7436+
from datadog_api_client.v2.model.webhook_action_type import WebhookActionType
74337437
from datadog_api_client.v2.model.weekday import Weekday
74347438
from datadog_api_client.v2.model.widget_attributes import WidgetAttributes
74357439
from datadog_api_client.v2.model.widget_data import WidgetData
@@ -12494,6 +12498,8 @@
1249412498
"TriggerRateLimit",
1249512499
"TriggerSource",
1249612500
"TriggerType",
12501+
"TriggerWorkflowAutomationAction",
12502+
"TriggerWorkflowAutomationActionType",
1249712503
"UCConfigPair",
1249812504
"UCConfigPairData",
1249912505
"UCConfigPairDataAttributes",
@@ -12709,6 +12715,8 @@
1270912715
"WatcherData",
1271012716
"WatcherDataAttributes",
1271112717
"WatcherDataType",
12718+
"WebhookAction",
12719+
"WebhookActionType",
1271212720
"Weekday",
1271312721
"WidgetAttributes",
1271412722
"WidgetData",

0 commit comments

Comments
 (0)