Skip to content

Commit 3cf3f08

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[synthetics][SYNTH-27770] Add ignore_certificate_validation to SyntheticsTestRequest (#1840)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent bfd0a22 commit 3cf3f08

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20357,7 +20357,7 @@ components:
2035720357
type: boolean
2035820358
ignore_certificate_validation:
2035920359
description: |-
20360-
For SSL tests, whether or not the test should ignore certificate validation.
20360+
For SSL tests, whether the test should ignore certificate validation.
2036120361
type: boolean
2036220362
initialNavigationTimeout:
2036320363
description: Timeout before declaring the initial step as failed (in seconds) for browser tests.
@@ -20600,6 +20600,10 @@ components:
2060020600
type: string
2060120601
httpVersion:
2060220602
$ref: "#/components/schemas/SyntheticsTestOptionsHTTPVersion"
20603+
ignore_certificate_validation:
20604+
description: |-
20605+
For SSL tests, whether the test should ignore certificate validation.
20606+
type: boolean
2060320607
isMessageBase64Encoded:
2060420608
description: Whether the message is base64 encoded.
2060520609
type: boolean

src/datadogV1/model/model_synthetics_test_options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub struct SyntheticsTestOptions {
5858
/// Ignore server certificate error for browser tests.
5959
#[serde(rename = "ignoreServerCertificateError")]
6060
pub ignore_server_certificate_error: Option<bool>,
61-
/// For SSL tests, whether or not the test should ignore certificate validation.
61+
/// For SSL tests, whether the test should ignore certificate validation.
6262
#[serde(rename = "ignore_certificate_validation")]
6363
pub ignore_certificate_validation: Option<bool>,
6464
/// Timeout before declaring the initial step as failed (in seconds) for browser tests.

src/datadogV1/model/model_synthetics_test_request.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ pub struct SyntheticsTestRequest {
7070
/// HTTP version to use for a Synthetic test.
7171
#[serde(rename = "httpVersion")]
7272
pub http_version: Option<crate::datadogV1::model::SyntheticsTestOptionsHTTPVersion>,
73+
/// For SSL tests, whether the test should ignore certificate validation.
74+
#[serde(rename = "ignore_certificate_validation")]
75+
pub ignore_certificate_validation: Option<bool>,
7376
/// Whether the message is base64 encoded.
7477
#[serde(rename = "isMessageBase64Encoded")]
7578
pub is_message_base64_encoded: Option<bool>,
@@ -155,6 +158,7 @@ impl SyntheticsTestRequest {
155158
headers: None,
156159
host: None,
157160
http_version: None,
161+
ignore_certificate_validation: None,
158162
is_message_base64_encoded: None,
159163
mcp_protocol_version: None,
160164
message: None,
@@ -288,6 +292,11 @@ impl SyntheticsTestRequest {
288292
self
289293
}
290294

295+
pub fn ignore_certificate_validation(mut self, value: bool) -> Self {
296+
self.ignore_certificate_validation = Some(value);
297+
self
298+
}
299+
291300
pub fn is_message_base64_encoded(mut self, value: bool) -> Self {
292301
self.is_message_base64_encoded = Some(value);
293302
self
@@ -443,6 +452,7 @@ impl<'de> Deserialize<'de> for SyntheticsTestRequest {
443452
let mut http_version: Option<
444453
crate::datadogV1::model::SyntheticsTestOptionsHTTPVersion,
445454
> = None;
455+
let mut ignore_certificate_validation: Option<bool> = None;
446456
let mut is_message_base64_encoded: Option<bool> = None;
447457
let mut mcp_protocol_version: Option<
448458
crate::datadogV1::model::SyntheticsMCPProtocolVersion,
@@ -636,6 +646,13 @@ impl<'de> Deserialize<'de> for SyntheticsTestRequest {
636646
}
637647
}
638648
}
649+
"ignore_certificate_validation" => {
650+
if v.is_null() {
651+
continue;
652+
}
653+
ignore_certificate_validation =
654+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
655+
}
639656
"isMessageBase64Encoded" => {
640657
if v.is_null() {
641658
continue;
@@ -794,6 +811,7 @@ impl<'de> Deserialize<'de> for SyntheticsTestRequest {
794811
headers,
795812
host,
796813
http_version,
814+
ignore_certificate_validation,
797815
is_message_base64_encoded,
798816
mcp_protocol_version,
799817
message,

0 commit comments

Comments
 (0)