Skip to content

Commit 3ba5c91

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c4a891f3 of spec repo
1 parent f5e98f5 commit 3ba5c91

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-10 19:45:55.876636",
8-
"spec_repo_commit": "049920eb"
7+
"regenerated": "2024-10-17 13:56:56.984946",
8+
"spec_repo_commit": "c4a891f3"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-10 19:45:55.894524",
13-
"spec_repo_commit": "049920eb"
12+
"regenerated": "2024-10-17 13:56:57.002556",
13+
"spec_repo_commit": "c4a891f3"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16166,6 +16166,9 @@ components:
1616616166
SyntheticsStepDetail:
1616716167
description: Object describing a step for a Synthetic test.
1616816168
properties:
16169+
allowFailure:
16170+
description: Whether or not the step was allowed to fail.
16171+
type: boolean
1616916172
browserErrors:
1617016173
description: Array of errors collected for a browser test.
1617116174
items:
@@ -16183,6 +16186,8 @@ components:
1618316186
error:
1618416187
description: Error returned by the test.
1618516188
type: string
16189+
failure:
16190+
$ref: '#/components/schemas/SyntheticsBrowserTestResultFailure'
1618616191
playingTab:
1618716192
$ref: '#/components/schemas/SyntheticsPlayingTab'
1618816193
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)