diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 1a0f742ff6..bee48328d8 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -19795,6 +19795,9 @@ components: description: A URL pattern to block during the Synthetic test. type: string type: array + captureNetworkPayloads: + description: Capture HTTP request/response headers and bodies for Fetch/XHR calls made during browser tests. + type: boolean checkCertificateRevocation: description: |- For SSL tests, whether or not the test should fail on revoked certificate in stapled OCSP. diff --git a/src/datadogV1/model/model_synthetics_test_options.rs b/src/datadogV1/model/model_synthetics_test_options.rs index 1670cb047c..d659d6b163 100644 --- a/src/datadogV1/model/model_synthetics_test_options.rs +++ b/src/datadogV1/model/model_synthetics_test_options.rs @@ -21,6 +21,9 @@ pub struct SyntheticsTestOptions { /// Array of URL patterns to block. #[serde(rename = "blockedRequestPatterns")] pub blocked_request_patterns: Option>, + /// Capture HTTP request/response headers and bodies for Fetch/XHR calls made during browser tests. + #[serde(rename = "captureNetworkPayloads")] + pub capture_network_payloads: Option, /// For SSL tests, whether or not the test should fail on revoked certificate in stapled OCSP. #[serde(rename = "checkCertificateRevocation")] pub check_certificate_revocation: Option, @@ -118,6 +121,7 @@ impl SyntheticsTestOptions { accept_self_signed: None, allow_insecure: None, blocked_request_patterns: None, + capture_network_payloads: None, check_certificate_revocation: None, ci: None, device_ids: None, @@ -164,6 +168,12 @@ impl SyntheticsTestOptions { self } + #[allow(deprecated)] + pub fn capture_network_payloads(mut self, value: bool) -> Self { + self.capture_network_payloads = Some(value); + self + } + #[allow(deprecated)] pub fn check_certificate_revocation(mut self, value: bool) -> Self { self.check_certificate_revocation = Some(value); @@ -349,6 +359,7 @@ impl<'de> Deserialize<'de> for SyntheticsTestOptions { let mut accept_self_signed: Option = None; let mut allow_insecure: Option = None; let mut blocked_request_patterns: Option> = None; + let mut capture_network_payloads: Option = None; let mut check_certificate_revocation: Option = None; let mut ci: Option = None; let mut device_ids: Option> = None; @@ -409,6 +420,13 @@ impl<'de> Deserialize<'de> for SyntheticsTestOptions { blocked_request_patterns = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "captureNetworkPayloads" => { + if v.is_null() { + continue; + } + capture_network_payloads = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "checkCertificateRevocation" => { if v.is_null() { continue; @@ -586,6 +604,7 @@ impl<'de> Deserialize<'de> for SyntheticsTestOptions { accept_self_signed, allow_insecure, blocked_request_patterns, + capture_network_payloads, check_certificate_revocation, ci, device_ids,