Skip to content

Commit 1fcd8e7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add disableAiaIntermediateFetching option (#780)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 579b96c commit 1fcd8e7

20 files changed

+106
-57
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "bb240c6",
3-
"generated": "2025-07-14 18:20:49.563"
2+
"spec_repo_commit": "d93d991",
3+
"generated": "2025-07-15 09:36:57.148"
44
}

.generator/schemas/v1/openapi.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17197,7 +17197,7 @@ components:
1719717197
description: Object describing the extra options for a Synthetic test.
1719817198
properties:
1719917199
accept_self_signed:
17200-
description: 'For SSL test, whether or not the test should allow self signed
17200+
description: 'For SSL tests, whether or not the test should allow self signed
1720117201

1720217202
certificates.'
1720317203
type: boolean
@@ -17206,7 +17206,7 @@ components:
1720617206
test.
1720717207
type: boolean
1720817208
checkCertificateRevocation:
17209-
description: For SSL test, whether or not the test should fail on revoked
17209+
description: For SSL tests, whether or not the test should fail on revoked
1721017210
certificate in stapled OCSP.
1721117211
type: boolean
1721217212
ci:
@@ -17217,6 +17217,10 @@ components:
1721717217
items:
1721817218
$ref: '#/components/schemas/SyntheticsDeviceID'
1721917219
type: array
17220+
disableAiaIntermediateFetching:
17221+
description: For SSL tests, whether or not the test should disable fetching
17222+
intermediate certificates from AIA.
17223+
type: boolean
1722017224
disableCors:
1722117225
description: Whether or not to disable CORS mechanism.
1722217226
type: boolean
@@ -17460,6 +17464,9 @@ components:
1746017464
description: A protobuf file that needs to be gzipped first then base64
1746117465
encoded.
1746217466
type: string
17467+
disableAiaIntermediateFetching:
17468+
description: Disable fetching intermediate certificates from AIA.
17469+
type: boolean
1746317470
dnsServer:
1746417471
description: DNS server to use for DNS tests.
1746517472
type: string

examples/v1_synthetics_CreateSyntheticsAPITest_1072503741.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ async fn main() {
4242
SyntheticsTestOptions::new()
4343
.accept_self_signed(true)
4444
.check_certificate_revocation(true)
45+
.disable_aia_intermediate_fetching(true)
4546
.tick_every(60),
4647
SyntheticsAPITestType::API,
4748
)

examples/v1_synthetics_CreateSyntheticsAPITest_1279271422.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ async fn main() {
158158
"SSL step".to_string(),
159159
SyntheticsTestRequest::new()
160160
.check_certificate_revocation(true)
161+
.disable_aia_intermediate_fetching(true)
161162
.host("example.org".to_string())
162163
.port(SyntheticsTestRequestPort::SyntheticsTestRequestNumericalPort(443)),
163164
SyntheticsAPITestStepSubtype::SSL,

src/datadogV1/model/model_synthetics_test_options.rs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct SyntheticsTestOptions {
14-
/// For SSL test, whether or not the test should allow self signed
14+
/// For SSL tests, whether or not the test should allow self signed
1515
/// certificates.
1616
#[serde(rename = "accept_self_signed")]
1717
pub accept_self_signed: Option<bool>,
1818
/// Allows loading insecure content for an HTTP request in an API test.
1919
#[serde(rename = "allow_insecure")]
2020
pub allow_insecure: Option<bool>,
21-
/// For SSL test, whether or not the test should fail on revoked certificate in stapled OCSP.
21+
/// For SSL tests, whether or not the test should fail on revoked certificate in stapled OCSP.
2222
#[serde(rename = "checkCertificateRevocation")]
2323
pub check_certificate_revocation: Option<bool>,
2424
/// CI/CD options for a Synthetic test.
@@ -27,6 +27,9 @@ pub struct SyntheticsTestOptions {
2727
/// For browser test, array with the different device IDs used to run the test.
2828
#[serde(rename = "device_ids")]
2929
pub device_ids: Option<Vec<String>>,
30+
/// For SSL tests, whether or not the test should disable fetching intermediate certificates from AIA.
31+
#[serde(rename = "disableAiaIntermediateFetching")]
32+
pub disable_aia_intermediate_fetching: Option<bool>,
3033
/// Whether or not to disable CORS mechanism.
3134
#[serde(rename = "disableCors")]
3235
pub disable_cors: Option<bool>,
@@ -113,6 +116,7 @@ impl SyntheticsTestOptions {
113116
check_certificate_revocation: None,
114117
ci: None,
115118
device_ids: None,
119+
disable_aia_intermediate_fetching: None,
116120
disable_cors: None,
117121
disable_csp: None,
118122
enable_profiling: None,
@@ -167,6 +171,12 @@ impl SyntheticsTestOptions {
167171
self
168172
}
169173

174+
#[allow(deprecated)]
175+
pub fn disable_aia_intermediate_fetching(mut self, value: bool) -> Self {
176+
self.disable_aia_intermediate_fetching = Some(value);
177+
self
178+
}
179+
170180
#[allow(deprecated)]
171181
pub fn disable_cors(mut self, value: bool) -> Self {
172182
self.disable_cors = Some(value);
@@ -330,6 +340,7 @@ impl<'de> Deserialize<'de> for SyntheticsTestOptions {
330340
let mut check_certificate_revocation: Option<bool> = None;
331341
let mut ci: Option<crate::datadogV1::model::SyntheticsTestCiOptions> = None;
332342
let mut device_ids: Option<Vec<String>> = None;
343+
let mut disable_aia_intermediate_fetching: Option<bool> = None;
333344
let mut disable_cors: Option<bool> = None;
334345
let mut disable_csp: Option<bool> = None;
335346
let mut enable_profiling: Option<bool> = None;
@@ -398,6 +409,13 @@ impl<'de> Deserialize<'de> for SyntheticsTestOptions {
398409
}
399410
device_ids = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
400411
}
412+
"disableAiaIntermediateFetching" => {
413+
if v.is_null() {
414+
continue;
415+
}
416+
disable_aia_intermediate_fetching =
417+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
418+
}
401419
"disableCors" => {
402420
if v.is_null() {
403421
continue;
@@ -551,6 +569,7 @@ impl<'de> Deserialize<'de> for SyntheticsTestOptions {
551569
check_certificate_revocation,
552570
ci,
553571
device_ids,
572+
disable_aia_intermediate_fetching,
554573
disable_cors,
555574
disable_csp,
556575
enable_profiling,

src/datadogV1/model/model_synthetics_test_request.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ pub struct SyntheticsTestRequest {
4141
/// A protobuf file that needs to be gzipped first then base64 encoded.
4242
#[serde(rename = "compressedProtoFile")]
4343
pub compressed_proto_file: Option<String>,
44+
/// Disable fetching intermediate certificates from AIA.
45+
#[serde(rename = "disableAiaIntermediateFetching")]
46+
pub disable_aia_intermediate_fetching: Option<bool>,
4447
/// DNS server to use for DNS tests.
4548
#[serde(rename = "dnsServer")]
4649
pub dns_server: Option<String>,
@@ -132,6 +135,7 @@ impl SyntheticsTestRequest {
132135
check_certificate_revocation: None,
133136
compressed_json_descriptor: None,
134137
compressed_proto_file: None,
138+
disable_aia_intermediate_fetching: None,
135139
dns_server: None,
136140
dns_server_port: None,
137141
files: None,
@@ -216,6 +220,11 @@ impl SyntheticsTestRequest {
216220
self
217221
}
218222

223+
pub fn disable_aia_intermediate_fetching(mut self, value: bool) -> Self {
224+
self.disable_aia_intermediate_fetching = Some(value);
225+
self
226+
}
227+
219228
pub fn dns_server(mut self, value: String) -> Self {
220229
self.dns_server = Some(value);
221230
self
@@ -385,6 +394,7 @@ impl<'de> Deserialize<'de> for SyntheticsTestRequest {
385394
let mut check_certificate_revocation: Option<bool> = None;
386395
let mut compressed_json_descriptor: Option<String> = None;
387396
let mut compressed_proto_file: Option<String> = None;
397+
let mut disable_aia_intermediate_fetching: Option<bool> = None;
388398
let mut dns_server: Option<String> = None;
389399
let mut dns_server_port: Option<
390400
crate::datadogV1::model::SyntheticsTestRequestDNSServerPort,
@@ -511,6 +521,13 @@ impl<'de> Deserialize<'de> for SyntheticsTestRequest {
511521
compressed_proto_file =
512522
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
513523
}
524+
"disableAiaIntermediateFetching" => {
525+
if v.is_null() {
526+
continue;
527+
}
528+
disable_aia_intermediate_fetching =
529+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
530+
}
514531
"dnsServer" => {
515532
if v.is_null() {
516533
continue;
@@ -700,6 +717,7 @@ impl<'de> Deserialize<'de> for SyntheticsTestRequest {
700717
check_certificate_revocation,
701718
compressed_json_descriptor,
702719
compressed_proto_file,
720+
disable_aia_intermediate_fetching,
703721
dns_server,
704722
dns_server_port,
705723
files,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-06-02T14:06:04.761Z
1+
2025-07-11T17:23:47.597Z

0 commit comments

Comments
 (0)