Skip to content

Commit 0a916e5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add synthetics stepDetail.allowFailure and stepDetail.failure (#2217)
* Regenerate client from commit df3187ca of spec repo * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 5afd0ab commit 0a916e5

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
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-10-21 20:59:45.721712",
8-
"spec_repo_commit": "9ac9609b"
7+
"regenerated": "2024-10-23 10:08:15.499912",
8+
"spec_repo_commit": "df3187ca"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-21 20:59:45.738901",
13-
"spec_repo_commit": "9ac9609b"
12+
"regenerated": "2024-10-23 10:08:15.519291",
13+
"spec_repo_commit": "df3187ca"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16168,6 +16168,9 @@ components:
1616816168
SyntheticsStepDetail:
1616916169
description: Object describing a step for a Synthetic test.
1617016170
properties:
16171+
allowFailure:
16172+
description: Whether or not the step was allowed to fail.
16173+
type: boolean
1617116174
browserErrors:
1617216175
description: Array of errors collected for a browser test.
1617316176
items:
@@ -16185,6 +16188,8 @@ components:
1618516188
error:
1618616189
description: Error returned by the test.
1618716190
type: string
16191+
failure:
16192+
$ref: '#/components/schemas/SyntheticsBrowserTestResultFailure'
1618816193
playingTab:
1618916194
$ref: '#/components/schemas/SyntheticsPlayingTab'
1619016195
screenshotBucketKey:

src/datadog_api_client/v1/model/synthetics_step_detail.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
if TYPE_CHECKING:
2121
from datadog_api_client.v1.model.synthetics_browser_error import SyntheticsBrowserError
2222
from datadog_api_client.v1.model.synthetics_check_type import SyntheticsCheckType
23+
from datadog_api_client.v1.model.synthetics_browser_test_result_failure import SyntheticsBrowserTestResultFailure
2324
from datadog_api_client.v1.model.synthetics_playing_tab import SyntheticsPlayingTab
2425
from datadog_api_client.v1.model.synthetics_step_type import SyntheticsStepType
2526
from datadog_api_client.v1.model.synthetics_core_web_vitals import SyntheticsCoreWebVitals
@@ -31,17 +32,22 @@ class SyntheticsStepDetail(ModelNormal):
3132
def openapi_types(_):
3233
from datadog_api_client.v1.model.synthetics_browser_error import SyntheticsBrowserError
3334
from datadog_api_client.v1.model.synthetics_check_type import SyntheticsCheckType
35+
from datadog_api_client.v1.model.synthetics_browser_test_result_failure import (
36+
SyntheticsBrowserTestResultFailure,
37+
)
3438
from datadog_api_client.v1.model.synthetics_playing_tab import SyntheticsPlayingTab
3539
from datadog_api_client.v1.model.synthetics_step_type import SyntheticsStepType
3640
from datadog_api_client.v1.model.synthetics_core_web_vitals import SyntheticsCoreWebVitals
3741
from datadog_api_client.v1.model.synthetics_step_detail_warning import SyntheticsStepDetailWarning
3842

3943
return {
44+
"allow_failure": (bool,),
4045
"browser_errors": ([SyntheticsBrowserError],),
4146
"check_type": (SyntheticsCheckType,),
4247
"description": (str,),
4348
"duration": (float,),
4449
"error": (str,),
50+
"failure": (SyntheticsBrowserTestResultFailure,),
4551
"playing_tab": (SyntheticsPlayingTab,),
4652
"screenshot_bucket_key": (bool,),
4753
"skipped": (bool,),
@@ -68,11 +74,13 @@ def openapi_types(_):
6874
}
6975

7076
attribute_map = {
77+
"allow_failure": "allowFailure",
7178
"browser_errors": "browserErrors",
7279
"check_type": "checkType",
7380
"description": "description",
7481
"duration": "duration",
7582
"error": "error",
83+
"failure": "failure",
7684
"playing_tab": "playingTab",
7785
"screenshot_bucket_key": "screenshotBucketKey",
7886
"skipped": "skipped",
@@ -89,11 +97,13 @@ def openapi_types(_):
8997

9098
def __init__(
9199
self_,
100+
allow_failure: Union[bool, UnsetType] = unset,
92101
browser_errors: Union[List[SyntheticsBrowserError], UnsetType] = unset,
93102
check_type: Union[SyntheticsCheckType, UnsetType] = unset,
94103
description: Union[str, UnsetType] = unset,
95104
duration: Union[float, UnsetType] = unset,
96105
error: Union[str, UnsetType] = unset,
106+
failure: Union[SyntheticsBrowserTestResultFailure, UnsetType] = unset,
97107
playing_tab: Union[SyntheticsPlayingTab, UnsetType] = unset,
98108
screenshot_bucket_key: Union[bool, UnsetType] = unset,
99109
skipped: Union[bool, UnsetType] = unset,
@@ -111,6 +121,9 @@ def __init__(
111121
"""
112122
Object describing a step for a Synthetic test.
113123
124+
:param allow_failure: Whether or not the step was allowed to fail.
125+
:type allow_failure: bool, optional
126+
114127
:param browser_errors: Array of errors collected for a browser test.
115128
:type browser_errors: [SyntheticsBrowserError], optional
116129
@@ -126,6 +139,9 @@ def __init__(
126139
:param error: Error returned by the test.
127140
:type error: str, optional
128141
142+
:param failure: The browser test failure details.
143+
:type failure: SyntheticsBrowserTestResultFailure, optional
144+
129145
:param playing_tab: Navigate between different tabs for your browser test.
130146
:type playing_tab: SyntheticsPlayingTab, optional
131147
@@ -163,6 +179,8 @@ def __init__(
163179
:param warnings: Warning collected that didn't failed the step.
164180
:type warnings: [SyntheticsStepDetailWarning], optional
165181
"""
182+
if allow_failure is not unset:
183+
kwargs["allow_failure"] = allow_failure
166184
if browser_errors is not unset:
167185
kwargs["browser_errors"] = browser_errors
168186
if check_type is not unset:
@@ -173,6 +191,8 @@ def __init__(
173191
kwargs["duration"] = duration
174192
if error is not unset:
175193
kwargs["error"] = error
194+
if failure is not unset:
195+
kwargs["failure"] = failure
176196
if playing_tab is not unset:
177197
kwargs["playing_tab"] = playing_tab
178198
if screenshot_bucket_key is not unset:

0 commit comments

Comments
 (0)