Skip to content

Commit 1837103

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add alwaysExecute and exitIfSucceed to Synthetics steps (#2246)
* Regenerate client from commit 1a56bfda of spec repo * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 092b0ba commit 1837103

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-11-05 15:05:42.147981",
8-
"spec_repo_commit": "8d63eae4"
7+
"regenerated": "2024-11-05 20:16:36.893099",
8+
"spec_repo_commit": "1a56bfda"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-05 15:05:42.166088",
13-
"spec_repo_commit": "8d63eae4"
12+
"regenerated": "2024-11-05 20:16:36.911327",
13+
"spec_repo_commit": "1a56bfda"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16227,6 +16227,13 @@ components:
1622716227
allowFailure:
1622816228
description: A boolean set to allow this step to fail.
1622916229
type: boolean
16230+
alwaysExecute:
16231+
description: A boolean set to always execute this step even if the previous
16232+
step failed or was skipped.
16233+
type: boolean
16234+
exitIfSucceed:
16235+
description: A boolean set to exit the test if the step succeeds.
16236+
type: boolean
1623016237
isCritical:
1623116238
description: A boolean to use in addition to `allowFailure` to determine
1623216239
if the test should be marked as failed when the step fails.
@@ -16235,7 +16242,7 @@ components:
1623516242
description: The name of the step.
1623616243
type: string
1623716244
noScreenshot:
16238-
description: A boolean set to not take a screenshot for the step.
16245+
description: A boolean set to skip taking a screenshot for the step.
1623916246
type: boolean
1624016247
params:
1624116248
description: The parameters of the step.

src/datadog_api_client/v1/model/synthetics_step.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ def openapi_types(_):
2424

2525
return {
2626
"allow_failure": (bool,),
27+
"always_execute": (bool,),
28+
"exit_if_succeed": (bool,),
2729
"is_critical": (bool,),
2830
"name": (str,),
2931
"no_screenshot": (bool,),
@@ -34,6 +36,8 @@ def openapi_types(_):
3436

3537
attribute_map = {
3638
"allow_failure": "allowFailure",
39+
"always_execute": "alwaysExecute",
40+
"exit_if_succeed": "exitIfSucceed",
3741
"is_critical": "isCritical",
3842
"name": "name",
3943
"no_screenshot": "noScreenshot",
@@ -45,6 +49,8 @@ def openapi_types(_):
4549
def __init__(
4650
self_,
4751
allow_failure: Union[bool, UnsetType] = unset,
52+
always_execute: Union[bool, UnsetType] = unset,
53+
exit_if_succeed: Union[bool, UnsetType] = unset,
4854
is_critical: Union[bool, UnsetType] = unset,
4955
name: Union[str, UnsetType] = unset,
5056
no_screenshot: Union[bool, UnsetType] = unset,
@@ -59,13 +65,19 @@ def __init__(
5965
:param allow_failure: A boolean set to allow this step to fail.
6066
:type allow_failure: bool, optional
6167
68+
:param always_execute: A boolean set to always execute this step even if the previous step failed or was skipped.
69+
:type always_execute: bool, optional
70+
71+
:param exit_if_succeed: A boolean set to exit the test if the step succeeds.
72+
:type exit_if_succeed: bool, optional
73+
6274
:param is_critical: A boolean to use in addition to ``allowFailure`` to determine if the test should be marked as failed when the step fails.
6375
:type is_critical: bool, optional
6476
6577
:param name: The name of the step.
6678
:type name: str, optional
6779
68-
:param no_screenshot: A boolean set to not take a screenshot for the step.
80+
:param no_screenshot: A boolean set to skip taking a screenshot for the step.
6981
:type no_screenshot: bool, optional
7082
7183
:param params: The parameters of the step.
@@ -79,6 +91,10 @@ def __init__(
7991
"""
8092
if allow_failure is not unset:
8193
kwargs["allow_failure"] = allow_failure
94+
if always_execute is not unset:
95+
kwargs["always_execute"] = always_execute
96+
if exit_if_succeed is not unset:
97+
kwargs["exit_if_succeed"] = exit_if_succeed
8298
if is_critical is not unset:
8399
kwargs["is_critical"] = is_critical
84100
if name is not unset:

0 commit comments

Comments
 (0)