diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index b41f414fd..56e7d72a7 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -20357,7 +20357,7 @@ components: type: boolean ignore_certificate_validation: description: |- - For SSL tests, whether or not the test should ignore certificate validation. + For SSL tests, whether the test should ignore certificate validation. type: boolean initialNavigationTimeout: description: Timeout before declaring the initial step as failed (in seconds) for browser tests. @@ -20600,6 +20600,10 @@ components: type: string httpVersion: $ref: "#/components/schemas/SyntheticsTestOptionsHTTPVersion" + ignore_certificate_validation: + description: |- + For SSL tests, whether the test should ignore certificate validation. + type: boolean isMessageBase64Encoded: description: Whether the message is base64 encoded. type: boolean diff --git a/src/datadogV1/model/model_synthetics_test_options.rs b/src/datadogV1/model/model_synthetics_test_options.rs index 917c60cb1..6a8e217bb 100644 --- a/src/datadogV1/model/model_synthetics_test_options.rs +++ b/src/datadogV1/model/model_synthetics_test_options.rs @@ -58,7 +58,7 @@ pub struct SyntheticsTestOptions { /// Ignore server certificate error for browser tests. #[serde(rename = "ignoreServerCertificateError")] pub ignore_server_certificate_error: Option, - /// For SSL tests, whether or not the test should ignore certificate validation. + /// For SSL tests, whether the test should ignore certificate validation. #[serde(rename = "ignore_certificate_validation")] pub ignore_certificate_validation: Option, /// Timeout before declaring the initial step as failed (in seconds) for browser tests. diff --git a/src/datadogV1/model/model_synthetics_test_request.rs b/src/datadogV1/model/model_synthetics_test_request.rs index 519d7fcb7..f2333c951 100644 --- a/src/datadogV1/model/model_synthetics_test_request.rs +++ b/src/datadogV1/model/model_synthetics_test_request.rs @@ -70,6 +70,9 @@ pub struct SyntheticsTestRequest { /// HTTP version to use for a Synthetic test. #[serde(rename = "httpVersion")] pub http_version: Option, + /// For SSL tests, whether the test should ignore certificate validation. + #[serde(rename = "ignore_certificate_validation")] + pub ignore_certificate_validation: Option, /// Whether the message is base64 encoded. #[serde(rename = "isMessageBase64Encoded")] pub is_message_base64_encoded: Option, @@ -155,6 +158,7 @@ impl SyntheticsTestRequest { headers: None, host: None, http_version: None, + ignore_certificate_validation: None, is_message_base64_encoded: None, mcp_protocol_version: None, message: None, @@ -288,6 +292,11 @@ impl SyntheticsTestRequest { self } + pub fn ignore_certificate_validation(mut self, value: bool) -> Self { + self.ignore_certificate_validation = Some(value); + self + } + pub fn is_message_base64_encoded(mut self, value: bool) -> Self { self.is_message_base64_encoded = Some(value); self @@ -443,6 +452,7 @@ impl<'de> Deserialize<'de> for SyntheticsTestRequest { let mut http_version: Option< crate::datadogV1::model::SyntheticsTestOptionsHTTPVersion, > = None; + let mut ignore_certificate_validation: Option = None; let mut is_message_base64_encoded: Option = None; let mut mcp_protocol_version: Option< crate::datadogV1::model::SyntheticsMCPProtocolVersion, @@ -636,6 +646,13 @@ impl<'de> Deserialize<'de> for SyntheticsTestRequest { } } } + "ignore_certificate_validation" => { + if v.is_null() { + continue; + } + ignore_certificate_validation = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "isMessageBase64Encoded" => { if v.is_null() { continue; @@ -794,6 +811,7 @@ impl<'de> Deserialize<'de> for SyntheticsTestRequest { headers, host, http_version, + ignore_certificate_validation, is_message_base64_encoded, mcp_protocol_version, message,