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
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "bb240c6",
"generated": "2025-07-14 18:17:41.136"
"spec_repo_commit": "d93d991",
"generated": "2025-07-15 09:33:07.334"
}
11 changes: 9 additions & 2 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17197,7 +17197,7 @@ components:
description: Object describing the extra options for a Synthetic test.
properties:
accept_self_signed:
description: 'For SSL test, whether or not the test should allow self signed
description: 'For SSL tests, whether or not the test should allow self signed

certificates.'
type: boolean
Expand All @@ -17206,7 +17206,7 @@ components:
test.
type: boolean
checkCertificateRevocation:
description: For SSL test, whether or not the test should fail on revoked
description: For SSL tests, whether or not the test should fail on revoked
certificate in stapled OCSP.
type: boolean
ci:
Expand All @@ -17217,6 +17217,10 @@ components:
items:
$ref: '#/components/schemas/SyntheticsDeviceID'
type: array
disableAiaIntermediateFetching:
description: For SSL tests, whether or not the test should disable fetching
intermediate certificates from AIA.
type: boolean
disableCors:
description: Whether or not to disable CORS mechanism.
type: boolean
Expand Down Expand Up @@ -17460,6 +17464,9 @@ components:
description: A protobuf file that needs to be gzipped first then base64
encoded.
type: string
disableAiaIntermediateFetching:
description: Disable fetching intermediate certificates from AIA.
type: boolean
dnsServer:
description: DNS server to use for DNS tests.
type: string
Expand Down
89 changes: 62 additions & 27 deletions api/datadogV1/model_synthetics_test_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ import (

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

// GetDisableAiaIntermediateFetching returns the DisableAiaIntermediateFetching field value if set, zero value otherwise.
func (o *SyntheticsTestOptions) GetDisableAiaIntermediateFetching() bool {
if o == nil || o.DisableAiaIntermediateFetching == nil {
var ret bool
return ret
}
return *o.DisableAiaIntermediateFetching
}

// GetDisableAiaIntermediateFetchingOk returns a tuple with the DisableAiaIntermediateFetching field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SyntheticsTestOptions) GetDisableAiaIntermediateFetchingOk() (*bool, bool) {
if o == nil || o.DisableAiaIntermediateFetching == nil {
return nil, false
}
return o.DisableAiaIntermediateFetching, true
}

// HasDisableAiaIntermediateFetching returns a boolean if a field has been set.
func (o *SyntheticsTestOptions) HasDisableAiaIntermediateFetching() bool {
return o != nil && o.DisableAiaIntermediateFetching != nil
}

// SetDisableAiaIntermediateFetching gets a reference to the given bool and assigns it to the DisableAiaIntermediateFetching field.
func (o *SyntheticsTestOptions) SetDisableAiaIntermediateFetching(v bool) {
o.DisableAiaIntermediateFetching = &v
}

// GetDisableCors returns the DisableCors field value if set, zero value otherwise.
func (o *SyntheticsTestOptions) GetDisableCors() bool {
if o == nil || o.DisableCors == nil {
Expand Down Expand Up @@ -790,6 +820,9 @@ func (o SyntheticsTestOptions) MarshalJSON() ([]byte, error) {
if o.DeviceIds != nil {
toSerialize["device_ids"] = o.DeviceIds
}
if o.DisableAiaIntermediateFetching != nil {
toSerialize["disableAiaIntermediateFetching"] = o.DisableAiaIntermediateFetching
}
if o.DisableCors != nil {
toSerialize["disableCors"] = o.DisableCors
}
Expand Down Expand Up @@ -857,37 +890,38 @@ func (o SyntheticsTestOptions) MarshalJSON() ([]byte, error) {
// UnmarshalJSON deserializes the given payload.
func (o *SyntheticsTestOptions) UnmarshalJSON(bytes []byte) (err error) {
all := struct {
AcceptSelfSigned *bool `json:"accept_self_signed,omitempty"`
AllowInsecure *bool `json:"allow_insecure,omitempty"`
CheckCertificateRevocation *bool `json:"checkCertificateRevocation,omitempty"`
Ci *SyntheticsTestCiOptions `json:"ci,omitempty"`
DeviceIds []string `json:"device_ids,omitempty"`
DisableCors *bool `json:"disableCors,omitempty"`
DisableCsp *bool `json:"disableCsp,omitempty"`
EnableProfiling *bool `json:"enableProfiling,omitempty"`
EnableSecurityTesting *bool `json:"enableSecurityTesting,omitempty"`
FollowRedirects *bool `json:"follow_redirects,omitempty"`
HttpVersion *SyntheticsTestOptionsHTTPVersion `json:"httpVersion,omitempty"`
IgnoreServerCertificateError *bool `json:"ignoreServerCertificateError,omitempty"`
InitialNavigationTimeout *int64 `json:"initialNavigationTimeout,omitempty"`
MinFailureDuration *int64 `json:"min_failure_duration,omitempty"`
MinLocationFailed *int64 `json:"min_location_failed,omitempty"`
MonitorName *string `json:"monitor_name,omitempty"`
MonitorOptions *SyntheticsTestOptionsMonitorOptions `json:"monitor_options,omitempty"`
MonitorPriority *int32 `json:"monitor_priority,omitempty"`
NoScreenshot *bool `json:"noScreenshot,omitempty"`
RestrictedRoles []string `json:"restricted_roles,omitempty"`
Retry *SyntheticsTestOptionsRetry `json:"retry,omitempty"`
RumSettings *SyntheticsBrowserTestRumSettings `json:"rumSettings,omitempty"`
Scheduling *SyntheticsTestOptionsScheduling `json:"scheduling,omitempty"`
TickEvery *int64 `json:"tick_every,omitempty"`
AcceptSelfSigned *bool `json:"accept_self_signed,omitempty"`
AllowInsecure *bool `json:"allow_insecure,omitempty"`
CheckCertificateRevocation *bool `json:"checkCertificateRevocation,omitempty"`
Ci *SyntheticsTestCiOptions `json:"ci,omitempty"`
DeviceIds []string `json:"device_ids,omitempty"`
DisableAiaIntermediateFetching *bool `json:"disableAiaIntermediateFetching,omitempty"`
DisableCors *bool `json:"disableCors,omitempty"`
DisableCsp *bool `json:"disableCsp,omitempty"`
EnableProfiling *bool `json:"enableProfiling,omitempty"`
EnableSecurityTesting *bool `json:"enableSecurityTesting,omitempty"`
FollowRedirects *bool `json:"follow_redirects,omitempty"`
HttpVersion *SyntheticsTestOptionsHTTPVersion `json:"httpVersion,omitempty"`
IgnoreServerCertificateError *bool `json:"ignoreServerCertificateError,omitempty"`
InitialNavigationTimeout *int64 `json:"initialNavigationTimeout,omitempty"`
MinFailureDuration *int64 `json:"min_failure_duration,omitempty"`
MinLocationFailed *int64 `json:"min_location_failed,omitempty"`
MonitorName *string `json:"monitor_name,omitempty"`
MonitorOptions *SyntheticsTestOptionsMonitorOptions `json:"monitor_options,omitempty"`
MonitorPriority *int32 `json:"monitor_priority,omitempty"`
NoScreenshot *bool `json:"noScreenshot,omitempty"`
RestrictedRoles []string `json:"restricted_roles,omitempty"`
Retry *SyntheticsTestOptionsRetry `json:"retry,omitempty"`
RumSettings *SyntheticsBrowserTestRumSettings `json:"rumSettings,omitempty"`
Scheduling *SyntheticsTestOptionsScheduling `json:"scheduling,omitempty"`
TickEvery *int64 `json:"tick_every,omitempty"`
}{}
if err = datadog.Unmarshal(bytes, &all); err != nil {
return datadog.Unmarshal(bytes, &o.UnparsedObject)
}
additionalProperties := make(map[string]interface{})
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
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"})
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"})
} else {
return err
}
Expand All @@ -901,6 +935,7 @@ func (o *SyntheticsTestOptions) UnmarshalJSON(bytes []byte) (err error) {
}
o.Ci = all.Ci
o.DeviceIds = all.DeviceIds
o.DisableAiaIntermediateFetching = all.DisableAiaIntermediateFetching
o.DisableCors = all.DisableCors
o.DisableCsp = all.DisableCsp
o.EnableProfiling = all.EnableProfiling
Expand Down
Loading
Loading