Skip to content

Commit 5575c65

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add disableAiaIntermediateFetching option (#3213)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 22c588d commit 5575c65

20 files changed

Lines changed: 234 additions & 142 deletions

.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:17:41.136"
2+
"spec_repo_commit": "d93d991",
3+
"generated": "2025-07-15 09:33:07.334"
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

api/datadogV1/model_synthetics_test_options.go

Lines changed: 62 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ import (
1010

1111
// SyntheticsTestOptions Object describing the extra options for a Synthetic test.
1212
type SyntheticsTestOptions struct {
13-
// For SSL test, whether or not the test should allow self signed
13+
// For SSL tests, whether or not the test should allow self signed
1414
// certificates.
1515
AcceptSelfSigned *bool `json:"accept_self_signed,omitempty"`
1616
// Allows loading insecure content for an HTTP request in an API test.
1717
AllowInsecure *bool `json:"allow_insecure,omitempty"`
18-
// For SSL test, whether or not the test should fail on revoked certificate in stapled OCSP.
18+
// For SSL tests, whether or not the test should fail on revoked certificate in stapled OCSP.
1919
CheckCertificateRevocation *bool `json:"checkCertificateRevocation,omitempty"`
2020
// CI/CD options for a Synthetic test.
2121
Ci *SyntheticsTestCiOptions `json:"ci,omitempty"`
2222
// For browser test, array with the different device IDs used to run the test.
2323
DeviceIds []string `json:"device_ids,omitempty"`
24+
// For SSL tests, whether or not the test should disable fetching intermediate certificates from AIA.
25+
DisableAiaIntermediateFetching *bool `json:"disableAiaIntermediateFetching,omitempty"`
2426
// Whether or not to disable CORS mechanism.
2527
DisableCors *bool `json:"disableCors,omitempty"`
2628
// Disable Content Security Policy for browser tests.
@@ -234,6 +236,34 @@ func (o *SyntheticsTestOptions) SetDeviceIds(v []string) {
234236
o.DeviceIds = v
235237
}
236238

239+
// GetDisableAiaIntermediateFetching returns the DisableAiaIntermediateFetching field value if set, zero value otherwise.
240+
func (o *SyntheticsTestOptions) GetDisableAiaIntermediateFetching() bool {
241+
if o == nil || o.DisableAiaIntermediateFetching == nil {
242+
var ret bool
243+
return ret
244+
}
245+
return *o.DisableAiaIntermediateFetching
246+
}
247+
248+
// GetDisableAiaIntermediateFetchingOk returns a tuple with the DisableAiaIntermediateFetching field value if set, nil otherwise
249+
// and a boolean to check if the value has been set.
250+
func (o *SyntheticsTestOptions) GetDisableAiaIntermediateFetchingOk() (*bool, bool) {
251+
if o == nil || o.DisableAiaIntermediateFetching == nil {
252+
return nil, false
253+
}
254+
return o.DisableAiaIntermediateFetching, true
255+
}
256+
257+
// HasDisableAiaIntermediateFetching returns a boolean if a field has been set.
258+
func (o *SyntheticsTestOptions) HasDisableAiaIntermediateFetching() bool {
259+
return o != nil && o.DisableAiaIntermediateFetching != nil
260+
}
261+
262+
// SetDisableAiaIntermediateFetching gets a reference to the given bool and assigns it to the DisableAiaIntermediateFetching field.
263+
func (o *SyntheticsTestOptions) SetDisableAiaIntermediateFetching(v bool) {
264+
o.DisableAiaIntermediateFetching = &v
265+
}
266+
237267
// GetDisableCors returns the DisableCors field value if set, zero value otherwise.
238268
func (o *SyntheticsTestOptions) GetDisableCors() bool {
239269
if o == nil || o.DisableCors == nil {
@@ -790,6 +820,9 @@ func (o SyntheticsTestOptions) MarshalJSON() ([]byte, error) {
790820
if o.DeviceIds != nil {
791821
toSerialize["device_ids"] = o.DeviceIds
792822
}
823+
if o.DisableAiaIntermediateFetching != nil {
824+
toSerialize["disableAiaIntermediateFetching"] = o.DisableAiaIntermediateFetching
825+
}
793826
if o.DisableCors != nil {
794827
toSerialize["disableCors"] = o.DisableCors
795828
}
@@ -857,37 +890,38 @@ func (o SyntheticsTestOptions) MarshalJSON() ([]byte, error) {
857890
// UnmarshalJSON deserializes the given payload.
858891
func (o *SyntheticsTestOptions) UnmarshalJSON(bytes []byte) (err error) {
859892
all := struct {
860-
AcceptSelfSigned *bool `json:"accept_self_signed,omitempty"`
861-
AllowInsecure *bool `json:"allow_insecure,omitempty"`
862-
CheckCertificateRevocation *bool `json:"checkCertificateRevocation,omitempty"`
863-
Ci *SyntheticsTestCiOptions `json:"ci,omitempty"`
864-
DeviceIds []string `json:"device_ids,omitempty"`
865-
DisableCors *bool `json:"disableCors,omitempty"`
866-
DisableCsp *bool `json:"disableCsp,omitempty"`
867-
EnableProfiling *bool `json:"enableProfiling,omitempty"`
868-
EnableSecurityTesting *bool `json:"enableSecurityTesting,omitempty"`
869-
FollowRedirects *bool `json:"follow_redirects,omitempty"`
870-
HttpVersion *SyntheticsTestOptionsHTTPVersion `json:"httpVersion,omitempty"`
871-
IgnoreServerCertificateError *bool `json:"ignoreServerCertificateError,omitempty"`
872-
InitialNavigationTimeout *int64 `json:"initialNavigationTimeout,omitempty"`
873-
MinFailureDuration *int64 `json:"min_failure_duration,omitempty"`
874-
MinLocationFailed *int64 `json:"min_location_failed,omitempty"`
875-
MonitorName *string `json:"monitor_name,omitempty"`
876-
MonitorOptions *SyntheticsTestOptionsMonitorOptions `json:"monitor_options,omitempty"`
877-
MonitorPriority *int32 `json:"monitor_priority,omitempty"`
878-
NoScreenshot *bool `json:"noScreenshot,omitempty"`
879-
RestrictedRoles []string `json:"restricted_roles,omitempty"`
880-
Retry *SyntheticsTestOptionsRetry `json:"retry,omitempty"`
881-
RumSettings *SyntheticsBrowserTestRumSettings `json:"rumSettings,omitempty"`
882-
Scheduling *SyntheticsTestOptionsScheduling `json:"scheduling,omitempty"`
883-
TickEvery *int64 `json:"tick_every,omitempty"`
893+
AcceptSelfSigned *bool `json:"accept_self_signed,omitempty"`
894+
AllowInsecure *bool `json:"allow_insecure,omitempty"`
895+
CheckCertificateRevocation *bool `json:"checkCertificateRevocation,omitempty"`
896+
Ci *SyntheticsTestCiOptions `json:"ci,omitempty"`
897+
DeviceIds []string `json:"device_ids,omitempty"`
898+
DisableAiaIntermediateFetching *bool `json:"disableAiaIntermediateFetching,omitempty"`
899+
DisableCors *bool `json:"disableCors,omitempty"`
900+
DisableCsp *bool `json:"disableCsp,omitempty"`
901+
EnableProfiling *bool `json:"enableProfiling,omitempty"`
902+
EnableSecurityTesting *bool `json:"enableSecurityTesting,omitempty"`
903+
FollowRedirects *bool `json:"follow_redirects,omitempty"`
904+
HttpVersion *SyntheticsTestOptionsHTTPVersion `json:"httpVersion,omitempty"`
905+
IgnoreServerCertificateError *bool `json:"ignoreServerCertificateError,omitempty"`
906+
InitialNavigationTimeout *int64 `json:"initialNavigationTimeout,omitempty"`
907+
MinFailureDuration *int64 `json:"min_failure_duration,omitempty"`
908+
MinLocationFailed *int64 `json:"min_location_failed,omitempty"`
909+
MonitorName *string `json:"monitor_name,omitempty"`
910+
MonitorOptions *SyntheticsTestOptionsMonitorOptions `json:"monitor_options,omitempty"`
911+
MonitorPriority *int32 `json:"monitor_priority,omitempty"`
912+
NoScreenshot *bool `json:"noScreenshot,omitempty"`
913+
RestrictedRoles []string `json:"restricted_roles,omitempty"`
914+
Retry *SyntheticsTestOptionsRetry `json:"retry,omitempty"`
915+
RumSettings *SyntheticsBrowserTestRumSettings `json:"rumSettings,omitempty"`
916+
Scheduling *SyntheticsTestOptionsScheduling `json:"scheduling,omitempty"`
917+
TickEvery *int64 `json:"tick_every,omitempty"`
884918
}{}
885919
if err = datadog.Unmarshal(bytes, &all); err != nil {
886920
return datadog.Unmarshal(bytes, &o.UnparsedObject)
887921
}
888922
additionalProperties := make(map[string]interface{})
889923
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
890-
datadog.DeleteKeys(additionalProperties, &[]string{"accept_self_signed", "allow_insecure", "checkCertificateRevocation", "ci", "device_ids", "disableCors", "disableCsp", "enableProfiling", "enableSecurityTesting", "follow_redirects", "httpVersion", "ignoreServerCertificateError", "initialNavigationTimeout", "min_failure_duration", "min_location_failed", "monitor_name", "monitor_options", "monitor_priority", "noScreenshot", "restricted_roles", "retry", "rumSettings", "scheduling", "tick_every"})
924+
datadog.DeleteKeys(additionalProperties, &[]string{"accept_self_signed", "allow_insecure", "checkCertificateRevocation", "ci", "device_ids", "disableAiaIntermediateFetching", "disableCors", "disableCsp", "enableProfiling", "enableSecurityTesting", "follow_redirects", "httpVersion", "ignoreServerCertificateError", "initialNavigationTimeout", "min_failure_duration", "min_location_failed", "monitor_name", "monitor_options", "monitor_priority", "noScreenshot", "restricted_roles", "retry", "rumSettings", "scheduling", "tick_every"})
891925
} else {
892926
return err
893927
}
@@ -901,6 +935,7 @@ func (o *SyntheticsTestOptions) UnmarshalJSON(bytes []byte) (err error) {
901935
}
902936
o.Ci = all.Ci
903937
o.DeviceIds = all.DeviceIds
938+
o.DisableAiaIntermediateFetching = all.DisableAiaIntermediateFetching
904939
o.DisableCors = all.DisableCors
905940
o.DisableCsp = all.DisableCsp
906941
o.EnableProfiling = all.EnableProfiling

0 commit comments

Comments
 (0)