Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
19 changes: 19 additions & 0 deletions src/datadogV1/model/model_synthetics_test_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ pub struct SyntheticsTestOptions {
/// Array of URL patterns to block.
#[serde(rename = "blockedRequestPatterns")]
pub blocked_request_patterns: Option<Vec<String>>,
/// Capture HTTP request/response headers and bodies for Fetch/XHR calls made during browser tests.
#[serde(rename = "captureNetworkPayloads")]
pub capture_network_payloads: Option<bool>,
/// For SSL tests, whether or not the test should fail on revoked certificate in stapled OCSP.
#[serde(rename = "checkCertificateRevocation")]
pub check_certificate_revocation: Option<bool>,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -349,6 +359,7 @@ impl<'de> Deserialize<'de> for SyntheticsTestOptions {
let mut accept_self_signed: Option<bool> = None;
let mut allow_insecure: Option<bool> = None;
let mut blocked_request_patterns: Option<Vec<String>> = None;
let mut capture_network_payloads: Option<bool> = None;
let mut check_certificate_revocation: Option<bool> = None;
let mut ci: Option<crate::datadogV1::model::SyntheticsTestCiOptions> = None;
let mut device_ids: Option<Vec<String>> = None;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down
Loading