Skip to content

Commit 9e64fb8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f5f447a of spec repo
1 parent 330bd16 commit 9e64fb8

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53833,6 +53833,10 @@ components:
5383353833
OnCallTrigger:
5383453834
description: "Trigger a workflow from an On-Call Page or On-Call Handover. For automatic triggering a handle must be configured and the workflow must be published."
5383553835
properties:
53836+
handle:
53837+
description: "The handle used to reference this trigger from On-Call. Required for automatic triggering."
53838+
example: ""
53839+
type: string
5383653840
rateLimit:
5383753841
$ref: "#/components/schemas/TriggerRateLimit"
5383853842
type: object

src/datadog_api_client/v2/model/on_call_trigger.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,29 @@ def openapi_types(_):
2323
from datadog_api_client.v2.model.trigger_rate_limit import TriggerRateLimit
2424

2525
return {
26+
"handle": (str,),
2627
"rate_limit": (TriggerRateLimit,),
2728
}
2829

2930
attribute_map = {
31+
"handle": "handle",
3032
"rate_limit": "rateLimit",
3133
}
3234

33-
def __init__(self_, rate_limit: Union[TriggerRateLimit, UnsetType] = unset, **kwargs):
35+
def __init__(
36+
self_, handle: Union[str, UnsetType] = unset, rate_limit: Union[TriggerRateLimit, UnsetType] = unset, **kwargs
37+
):
3438
"""
3539
Trigger a workflow from an On-Call Page or On-Call Handover. For automatic triggering a handle must be configured and the workflow must be published.
3640
41+
:param handle: The handle used to reference this trigger from On-Call. Required for automatic triggering.
42+
:type handle: str, optional
43+
3744
:param rate_limit: Defines a rate limit for a trigger.
3845
:type rate_limit: TriggerRateLimit, optional
3946
"""
47+
if handle is not unset:
48+
kwargs["handle"] = handle
4049
if rate_limit is not unset:
4150
kwargs["rate_limit"] = rate_limit
4251
super().__init__(kwargs)

0 commit comments

Comments
 (0)