@@ -10,17 +10,19 @@ import (
1010
1111// SyntheticsTestOptions Object describing the extra options for a Synthetic test.
1212type 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.
238268func (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.
858891func (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