Skip to content

Commit 477cd54

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b76ec20 of spec repo
1 parent 52579f2 commit 477cd54

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30806,6 +30806,9 @@ components:
3080630806
properties:
3080730807
rateLimit:
3080830808
$ref: '#/components/schemas/TriggerRateLimit'
30809+
version:
30810+
description: Version of the incident trigger.
30811+
type: string
3080930812
type: object
3081030813
IncidentTriggerWrapper:
3081130814
description: Schema for an Incident-based trigger.

src/datadog_api_client/v2/model/incident_trigger.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,28 @@ def openapi_types(_):
2424

2525
return {
2626
"rate_limit": (TriggerRateLimit,),
27+
"version": (str,),
2728
}
2829

2930
attribute_map = {
3031
"rate_limit": "rateLimit",
32+
"version": "version",
3133
}
3234

33-
def __init__(self_, rate_limit: Union[TriggerRateLimit, UnsetType] = unset, **kwargs):
35+
def __init__(
36+
self_, rate_limit: Union[TriggerRateLimit, UnsetType] = unset, version: Union[str, UnsetType] = unset, **kwargs
37+
):
3438
"""
3539
Trigger a workflow from an Incident. For automatic triggering a handle must be configured and the workflow must be published.
3640
3741
:param rate_limit: Defines a rate limit for a trigger.
3842
:type rate_limit: TriggerRateLimit, optional
43+
44+
:param version: Version of the incident trigger.
45+
:type version: str, optional
3946
"""
4047
if rate_limit is not unset:
4148
kwargs["rate_limit"] = rate_limit
49+
if version is not unset:
50+
kwargs["version"] = version
4251
super().__init__(kwargs)

0 commit comments

Comments
 (0)