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
6 changes: 5 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/datadogV1/model/model_synthetics_test_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub struct SyntheticsTestOptions {
/// Ignore server certificate error for browser tests.
#[serde(rename = "ignoreServerCertificateError")]
pub ignore_server_certificate_error: Option<bool>,
/// 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<bool>,
/// Timeout before declaring the initial step as failed (in seconds) for browser tests.
Expand Down
18 changes: 18 additions & 0 deletions src/datadogV1/model/model_synthetics_test_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ pub struct SyntheticsTestRequest {
/// HTTP version to use for a Synthetic test.
#[serde(rename = "httpVersion")]
pub http_version: Option<crate::datadogV1::model::SyntheticsTestOptionsHTTPVersion>,
/// For SSL tests, whether the test should ignore certificate validation.
#[serde(rename = "ignore_certificate_validation")]
pub ignore_certificate_validation: Option<bool>,
/// Whether the message is base64 encoded.
#[serde(rename = "isMessageBase64Encoded")]
pub is_message_base64_encoded: Option<bool>,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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<bool> = None;
let mut is_message_base64_encoded: Option<bool> = None;
let mut mcp_protocol_version: Option<
crate::datadogV1::model::SyntheticsMCPProtocolVersion,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down
Loading