Skip to content

Commit 224fa79

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit df3187ca of spec repo
1 parent a9dbf92 commit 224fa79

File tree

3 files changed

+49
-4
lines changed

3 files changed

+49
-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:47.825157",
8-
"spec_repo_commit": "9ac9609b"
7+
"regenerated": "2024-10-23 10:08:19.228929",
8+
"spec_repo_commit": "df3187ca"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-21 20:59:47.843315",
13-
"spec_repo_commit": "9ac9609b"
12+
"regenerated": "2024-10-23 10:08:19.247211",
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/datadogV1/model/model_synthetics_step_detail.rs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct SyntheticsStepDetail {
14+
/// Whether or not the step was allowed to fail.
15+
#[serde(rename = "allowFailure")]
16+
pub allow_failure: Option<bool>,
1417
/// Array of errors collected for a browser test.
1518
#[serde(rename = "browserErrors")]
1619
pub browser_errors: Option<Vec<crate::datadogV1::model::SyntheticsBrowserError>>,
@@ -26,6 +29,9 @@ pub struct SyntheticsStepDetail {
2629
/// Error returned by the test.
2730
#[serde(rename = "error")]
2831
pub error: Option<String>,
32+
/// The browser test failure details.
33+
#[serde(rename = "failure")]
34+
pub failure: Option<crate::datadogV1::model::SyntheticsBrowserTestResultFailure>,
2935
/// Navigate between different tabs for your browser test.
3036
#[serde(rename = "playingTab")]
3137
pub playing_tab: Option<crate::datadogV1::model::SyntheticsPlayingTab>,
@@ -73,11 +79,13 @@ pub struct SyntheticsStepDetail {
7379
impl SyntheticsStepDetail {
7480
pub fn new() -> SyntheticsStepDetail {
7581
SyntheticsStepDetail {
82+
allow_failure: None,
7683
browser_errors: None,
7784
check_type: None,
7885
description: None,
7986
duration: None,
8087
error: None,
88+
failure: None,
8189
playing_tab: None,
8290
screenshot_bucket_key: None,
8391
skipped: None,
@@ -95,6 +103,11 @@ impl SyntheticsStepDetail {
95103
}
96104
}
97105

106+
pub fn allow_failure(mut self, value: bool) -> Self {
107+
self.allow_failure = Some(value);
108+
self
109+
}
110+
98111
pub fn browser_errors(
99112
mut self,
100113
value: Vec<crate::datadogV1::model::SyntheticsBrowserError>,
@@ -123,6 +136,14 @@ impl SyntheticsStepDetail {
123136
self
124137
}
125138

139+
pub fn failure(
140+
mut self,
141+
value: crate::datadogV1::model::SyntheticsBrowserTestResultFailure,
142+
) -> Self {
143+
self.failure = Some(value);
144+
self
145+
}
146+
126147
pub fn playing_tab(mut self, value: crate::datadogV1::model::SyntheticsPlayingTab) -> Self {
127148
self.playing_tab = Some(value);
128149
self
@@ -224,13 +245,17 @@ impl<'de> Deserialize<'de> for SyntheticsStepDetail {
224245
where
225246
M: MapAccess<'a>,
226247
{
248+
let mut allow_failure: Option<bool> = None;
227249
let mut browser_errors: Option<
228250
Vec<crate::datadogV1::model::SyntheticsBrowserError>,
229251
> = None;
230252
let mut check_type: Option<crate::datadogV1::model::SyntheticsCheckType> = None;
231253
let mut description: Option<String> = None;
232254
let mut duration: Option<f64> = None;
233255
let mut error: Option<String> = None;
256+
let mut failure: Option<
257+
crate::datadogV1::model::SyntheticsBrowserTestResultFailure,
258+
> = None;
234259
let mut playing_tab: Option<crate::datadogV1::model::SyntheticsPlayingTab> = None;
235260
let mut screenshot_bucket_key: Option<bool> = None;
236261
let mut skipped: Option<bool> = None;
@@ -257,6 +282,13 @@ impl<'de> Deserialize<'de> for SyntheticsStepDetail {
257282

258283
while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
259284
match k.as_str() {
285+
"allowFailure" => {
286+
if v.is_null() {
287+
continue;
288+
}
289+
allow_failure =
290+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
291+
}
260292
"browserErrors" => {
261293
if v.is_null() {
262294
continue;
@@ -297,6 +329,12 @@ impl<'de> Deserialize<'de> for SyntheticsStepDetail {
297329
}
298330
error = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
299331
}
332+
"failure" => {
333+
if v.is_null() {
334+
continue;
335+
}
336+
failure = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
337+
}
300338
"playingTab" => {
301339
if v.is_null() {
302340
continue;
@@ -402,11 +440,13 @@ impl<'de> Deserialize<'de> for SyntheticsStepDetail {
402440
}
403441

404442
let content = SyntheticsStepDetail {
443+
allow_failure,
405444
browser_errors,
406445
check_type,
407446
description,
408447
duration,
409448
error,
449+
failure,
410450
playing_tab,
411451
screenshot_bucket_key,
412452
skipped,

0 commit comments

Comments
 (0)