diff --git a/.apigentools-info b/.apigentools-info index 71297e5f3..37220d5e9 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-21 20:59:47.825157", - "spec_repo_commit": "9ac9609b" + "regenerated": "2024-10-23 10:08:19.228929", + "spec_repo_commit": "df3187ca" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-21 20:59:47.843315", - "spec_repo_commit": "9ac9609b" + "regenerated": "2024-10-23 10:08:19.247211", + "spec_repo_commit": "df3187ca" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 0ec2691c5..96ed41e5a 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -16168,6 +16168,9 @@ components: SyntheticsStepDetail: description: Object describing a step for a Synthetic test. properties: + allowFailure: + description: Whether or not the step was allowed to fail. + type: boolean browserErrors: description: Array of errors collected for a browser test. items: @@ -16185,6 +16188,8 @@ components: error: description: Error returned by the test. type: string + failure: + $ref: '#/components/schemas/SyntheticsBrowserTestResultFailure' playingTab: $ref: '#/components/schemas/SyntheticsPlayingTab' screenshotBucketKey: diff --git a/src/datadogV1/model/model_synthetics_step_detail.rs b/src/datadogV1/model/model_synthetics_step_detail.rs index 2a54ac29f..fb67660eb 100644 --- a/src/datadogV1/model/model_synthetics_step_detail.rs +++ b/src/datadogV1/model/model_synthetics_step_detail.rs @@ -11,6 +11,9 @@ use std::fmt::{self, Formatter}; #[skip_serializing_none] #[derive(Clone, Debug, PartialEq, Serialize)] pub struct SyntheticsStepDetail { + /// Whether or not the step was allowed to fail. + #[serde(rename = "allowFailure")] + pub allow_failure: Option, /// Array of errors collected for a browser test. #[serde(rename = "browserErrors")] pub browser_errors: Option>, @@ -26,6 +29,9 @@ pub struct SyntheticsStepDetail { /// Error returned by the test. #[serde(rename = "error")] pub error: Option, + /// The browser test failure details. + #[serde(rename = "failure")] + pub failure: Option, /// Navigate between different tabs for your browser test. #[serde(rename = "playingTab")] pub playing_tab: Option, @@ -73,11 +79,13 @@ pub struct SyntheticsStepDetail { impl SyntheticsStepDetail { pub fn new() -> SyntheticsStepDetail { SyntheticsStepDetail { + allow_failure: None, browser_errors: None, check_type: None, description: None, duration: None, error: None, + failure: None, playing_tab: None, screenshot_bucket_key: None, skipped: None, @@ -95,6 +103,11 @@ impl SyntheticsStepDetail { } } + pub fn allow_failure(mut self, value: bool) -> Self { + self.allow_failure = Some(value); + self + } + pub fn browser_errors( mut self, value: Vec, @@ -123,6 +136,14 @@ impl SyntheticsStepDetail { self } + pub fn failure( + mut self, + value: crate::datadogV1::model::SyntheticsBrowserTestResultFailure, + ) -> Self { + self.failure = Some(value); + self + } + pub fn playing_tab(mut self, value: crate::datadogV1::model::SyntheticsPlayingTab) -> Self { self.playing_tab = Some(value); self @@ -224,6 +245,7 @@ impl<'de> Deserialize<'de> for SyntheticsStepDetail { where M: MapAccess<'a>, { + let mut allow_failure: Option = None; let mut browser_errors: Option< Vec, > = None; @@ -231,6 +253,9 @@ impl<'de> Deserialize<'de> for SyntheticsStepDetail { let mut description: Option = None; let mut duration: Option = None; let mut error: Option = None; + let mut failure: Option< + crate::datadogV1::model::SyntheticsBrowserTestResultFailure, + > = None; let mut playing_tab: Option = None; let mut screenshot_bucket_key: Option = None; let mut skipped: Option = None; @@ -257,6 +282,13 @@ impl<'de> Deserialize<'de> for SyntheticsStepDetail { while let Some((k, v)) = map.next_entry::()? { match k.as_str() { + "allowFailure" => { + if v.is_null() { + continue; + } + allow_failure = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "browserErrors" => { if v.is_null() { continue; @@ -297,6 +329,12 @@ impl<'de> Deserialize<'de> for SyntheticsStepDetail { } error = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "failure" => { + if v.is_null() { + continue; + } + failure = Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "playingTab" => { if v.is_null() { continue; @@ -402,11 +440,13 @@ impl<'de> Deserialize<'de> for SyntheticsStepDetail { } let content = SyntheticsStepDetail { + allow_failure, browser_errors, check_type, description, duration, error, + failure, playing_tab, screenshot_bucket_key, skipped,