Skip to content

Commit a50fe4d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add support for all subtypes in multistep steps (#3100)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 29be77f commit a50fe4d

16 files changed

Lines changed: 544 additions & 92 deletions

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-06-05 09:49:41.695191",
8-
"spec_repo_commit": "faa72400"
7+
"regenerated": "2025-06-06 09:05:59.854943",
8+
"spec_repo_commit": "14586db5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-05 09:49:41.711238",
13-
"spec_repo_commit": "faa72400"
12+
"regenerated": "2025-06-06 09:05:59.870887",
13+
"spec_repo_commit": "14586db5"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14107,11 +14107,23 @@ components:
1410714107
enum:
1410814108
- http
1410914109
- grpc
14110+
- ssl
14111+
- dns
14112+
- tcp
14113+
- udp
14114+
- icmp
14115+
- websocket
1411014116
example: http
1411114117
type: string
1411214118
x-enum-varnames:
1411314119
- HTTP
1411414120
- GRPC
14121+
- SSL
14122+
- DNS
14123+
- TCP
14124+
- UDP
14125+
- ICMP
14126+
- WEBSOCKET
1411514127
SyntheticsAPITestType:
1411614128
default: api
1411714129
description: Type of the Synthetic test, `api`.
@@ -17177,6 +17189,9 @@ components:
1717717189
example: ''
1717817190
type: string
1717917191
type: array
17192+
checkCertificateRevocation:
17193+
description: Check for certificate revocation.
17194+
type: boolean
1718017195
compressedJsonDescriptor:
1718117196
description: A protobuf JSON descriptor that needs to be gzipped first then
1718217197
base64 encoded.
@@ -17206,6 +17221,9 @@ components:
1720617221
type: string
1720717222
httpVersion:
1720817223
$ref: '#/components/schemas/SyntheticsTestOptionsHTTPVersion'
17224+
isMessageBase64Encoded:
17225+
description: Whether the message is base64 encoded.
17226+
type: boolean
1720917227
message:
1721017228
description: Message to send for UDP or WebSocket tests.
1721117229
type: string

api/datadogV1/model_synthetics_api_test_step_subtype.go

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,25 @@ type SyntheticsAPITestStepSubtype string
1515

1616
// List of SyntheticsAPITestStepSubtype.
1717
const (
18-
SYNTHETICSAPITESTSTEPSUBTYPE_HTTP SyntheticsAPITestStepSubtype = "http"
19-
SYNTHETICSAPITESTSTEPSUBTYPE_GRPC SyntheticsAPITestStepSubtype = "grpc"
18+
SYNTHETICSAPITESTSTEPSUBTYPE_HTTP SyntheticsAPITestStepSubtype = "http"
19+
SYNTHETICSAPITESTSTEPSUBTYPE_GRPC SyntheticsAPITestStepSubtype = "grpc"
20+
SYNTHETICSAPITESTSTEPSUBTYPE_SSL SyntheticsAPITestStepSubtype = "ssl"
21+
SYNTHETICSAPITESTSTEPSUBTYPE_DNS SyntheticsAPITestStepSubtype = "dns"
22+
SYNTHETICSAPITESTSTEPSUBTYPE_TCP SyntheticsAPITestStepSubtype = "tcp"
23+
SYNTHETICSAPITESTSTEPSUBTYPE_UDP SyntheticsAPITestStepSubtype = "udp"
24+
SYNTHETICSAPITESTSTEPSUBTYPE_ICMP SyntheticsAPITestStepSubtype = "icmp"
25+
SYNTHETICSAPITESTSTEPSUBTYPE_WEBSOCKET SyntheticsAPITestStepSubtype = "websocket"
2026
)
2127

2228
var allowedSyntheticsAPITestStepSubtypeEnumValues = []SyntheticsAPITestStepSubtype{
2329
SYNTHETICSAPITESTSTEPSUBTYPE_HTTP,
2430
SYNTHETICSAPITESTSTEPSUBTYPE_GRPC,
31+
SYNTHETICSAPITESTSTEPSUBTYPE_SSL,
32+
SYNTHETICSAPITESTSTEPSUBTYPE_DNS,
33+
SYNTHETICSAPITESTSTEPSUBTYPE_TCP,
34+
SYNTHETICSAPITESTSTEPSUBTYPE_UDP,
35+
SYNTHETICSAPITESTSTEPSUBTYPE_ICMP,
36+
SYNTHETICSAPITESTSTEPSUBTYPE_WEBSOCKET,
2537
}
2638

2739
// GetAllowedValues reeturns the list of possible values.

api/datadogV1/model_synthetics_test_request.go

Lines changed: 101 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ type SyntheticsTestRequest struct {
2424
Certificate *SyntheticsTestRequestCertificate `json:"certificate,omitempty"`
2525
// By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificateDomains`.
2626
CertificateDomains []string `json:"certificateDomains,omitempty"`
27+
// Check for certificate revocation.
28+
CheckCertificateRevocation *bool `json:"checkCertificateRevocation,omitempty"`
2729
// A protobuf JSON descriptor that needs to be gzipped first then base64 encoded.
2830
CompressedJsonDescriptor *string `json:"compressedJsonDescriptor,omitempty"`
2931
// A protobuf file that needs to be gzipped first then base64 encoded.
@@ -42,6 +44,8 @@ type SyntheticsTestRequest struct {
4244
Host *string `json:"host,omitempty"`
4345
// HTTP version to use for a Synthetic test.
4446
HttpVersion *SyntheticsTestOptionsHTTPVersion `json:"httpVersion,omitempty"`
47+
// Whether the message is base64 encoded.
48+
IsMessageBase64Encoded *bool `json:"isMessageBase64Encoded,omitempty"`
4549
// Message to send for UDP or WebSocket tests.
4650
Message *string `json:"message,omitempty"`
4751
// Metadata to include when performing the gRPC test.
@@ -290,6 +294,34 @@ func (o *SyntheticsTestRequest) SetCertificateDomains(v []string) {
290294
o.CertificateDomains = v
291295
}
292296

297+
// GetCheckCertificateRevocation returns the CheckCertificateRevocation field value if set, zero value otherwise.
298+
func (o *SyntheticsTestRequest) GetCheckCertificateRevocation() bool {
299+
if o == nil || o.CheckCertificateRevocation == nil {
300+
var ret bool
301+
return ret
302+
}
303+
return *o.CheckCertificateRevocation
304+
}
305+
306+
// GetCheckCertificateRevocationOk returns a tuple with the CheckCertificateRevocation field value if set, nil otherwise
307+
// and a boolean to check if the value has been set.
308+
func (o *SyntheticsTestRequest) GetCheckCertificateRevocationOk() (*bool, bool) {
309+
if o == nil || o.CheckCertificateRevocation == nil {
310+
return nil, false
311+
}
312+
return o.CheckCertificateRevocation, true
313+
}
314+
315+
// HasCheckCertificateRevocation returns a boolean if a field has been set.
316+
func (o *SyntheticsTestRequest) HasCheckCertificateRevocation() bool {
317+
return o != nil && o.CheckCertificateRevocation != nil
318+
}
319+
320+
// SetCheckCertificateRevocation gets a reference to the given bool and assigns it to the CheckCertificateRevocation field.
321+
func (o *SyntheticsTestRequest) SetCheckCertificateRevocation(v bool) {
322+
o.CheckCertificateRevocation = &v
323+
}
324+
293325
// GetCompressedJsonDescriptor returns the CompressedJsonDescriptor field value if set, zero value otherwise.
294326
func (o *SyntheticsTestRequest) GetCompressedJsonDescriptor() string {
295327
if o == nil || o.CompressedJsonDescriptor == nil {
@@ -542,6 +574,34 @@ func (o *SyntheticsTestRequest) SetHttpVersion(v SyntheticsTestOptionsHTTPVersio
542574
o.HttpVersion = &v
543575
}
544576

577+
// GetIsMessageBase64Encoded returns the IsMessageBase64Encoded field value if set, zero value otherwise.
578+
func (o *SyntheticsTestRequest) GetIsMessageBase64Encoded() bool {
579+
if o == nil || o.IsMessageBase64Encoded == nil {
580+
var ret bool
581+
return ret
582+
}
583+
return *o.IsMessageBase64Encoded
584+
}
585+
586+
// GetIsMessageBase64EncodedOk returns a tuple with the IsMessageBase64Encoded field value if set, nil otherwise
587+
// and a boolean to check if the value has been set.
588+
func (o *SyntheticsTestRequest) GetIsMessageBase64EncodedOk() (*bool, bool) {
589+
if o == nil || o.IsMessageBase64Encoded == nil {
590+
return nil, false
591+
}
592+
return o.IsMessageBase64Encoded, true
593+
}
594+
595+
// HasIsMessageBase64Encoded returns a boolean if a field has been set.
596+
func (o *SyntheticsTestRequest) HasIsMessageBase64Encoded() bool {
597+
return o != nil && o.IsMessageBase64Encoded != nil
598+
}
599+
600+
// SetIsMessageBase64Encoded gets a reference to the given bool and assigns it to the IsMessageBase64Encoded field.
601+
func (o *SyntheticsTestRequest) SetIsMessageBase64Encoded(v bool) {
602+
o.IsMessageBase64Encoded = &v
603+
}
604+
545605
// GetMessage returns the Message field value if set, zero value otherwise.
546606
func (o *SyntheticsTestRequest) GetMessage() string {
547607
if o == nil || o.Message == nil {
@@ -961,6 +1021,9 @@ func (o SyntheticsTestRequest) MarshalJSON() ([]byte, error) {
9611021
if o.CertificateDomains != nil {
9621022
toSerialize["certificateDomains"] = o.CertificateDomains
9631023
}
1024+
if o.CheckCertificateRevocation != nil {
1025+
toSerialize["checkCertificateRevocation"] = o.CheckCertificateRevocation
1026+
}
9641027
if o.CompressedJsonDescriptor != nil {
9651028
toSerialize["compressedJsonDescriptor"] = o.CompressedJsonDescriptor
9661029
}
@@ -988,6 +1051,9 @@ func (o SyntheticsTestRequest) MarshalJSON() ([]byte, error) {
9881051
if o.HttpVersion != nil {
9891052
toSerialize["httpVersion"] = o.HttpVersion
9901053
}
1054+
if o.IsMessageBase64Encoded != nil {
1055+
toSerialize["isMessageBase64Encoded"] = o.IsMessageBase64Encoded
1056+
}
9911057
if o.Message != nil {
9921058
toSerialize["message"] = o.Message
9931059
}
@@ -1040,43 +1106,45 @@ func (o SyntheticsTestRequest) MarshalJSON() ([]byte, error) {
10401106
// UnmarshalJSON deserializes the given payload.
10411107
func (o *SyntheticsTestRequest) UnmarshalJSON(bytes []byte) (err error) {
10421108
all := struct {
1043-
AllowInsecure *bool `json:"allow_insecure,omitempty"`
1044-
BasicAuth *SyntheticsBasicAuth `json:"basicAuth,omitempty"`
1045-
Body *string `json:"body,omitempty"`
1046-
BodyType *SyntheticsTestRequestBodyType `json:"bodyType,omitempty"`
1047-
CallType *SyntheticsTestCallType `json:"callType,omitempty"`
1048-
Certificate *SyntheticsTestRequestCertificate `json:"certificate,omitempty"`
1049-
CertificateDomains []string `json:"certificateDomains,omitempty"`
1050-
CompressedJsonDescriptor *string `json:"compressedJsonDescriptor,omitempty"`
1051-
CompressedProtoFile *string `json:"compressedProtoFile,omitempty"`
1052-
DnsServer *string `json:"dnsServer,omitempty"`
1053-
DnsServerPort *string `json:"dnsServerPort,omitempty"`
1054-
Files []SyntheticsTestRequestBodyFile `json:"files,omitempty"`
1055-
FollowRedirects *bool `json:"follow_redirects,omitempty"`
1056-
Headers map[string]string `json:"headers,omitempty"`
1057-
Host *string `json:"host,omitempty"`
1058-
HttpVersion *SyntheticsTestOptionsHTTPVersion `json:"httpVersion,omitempty"`
1059-
Message *string `json:"message,omitempty"`
1060-
Metadata map[string]string `json:"metadata,omitempty"`
1061-
Method *string `json:"method,omitempty"`
1062-
NoSavingResponseBody *bool `json:"noSavingResponseBody,omitempty"`
1063-
NumberOfPackets *int32 `json:"numberOfPackets,omitempty"`
1064-
PersistCookies *bool `json:"persistCookies,omitempty"`
1065-
Port *SyntheticsTestRequestPort `json:"port,omitempty"`
1066-
Proxy *SyntheticsTestRequestProxy `json:"proxy,omitempty"`
1067-
Query interface{} `json:"query,omitempty"`
1068-
Servername *string `json:"servername,omitempty"`
1069-
Service *string `json:"service,omitempty"`
1070-
ShouldTrackHops *bool `json:"shouldTrackHops,omitempty"`
1071-
Timeout *float64 `json:"timeout,omitempty"`
1072-
Url *string `json:"url,omitempty"`
1109+
AllowInsecure *bool `json:"allow_insecure,omitempty"`
1110+
BasicAuth *SyntheticsBasicAuth `json:"basicAuth,omitempty"`
1111+
Body *string `json:"body,omitempty"`
1112+
BodyType *SyntheticsTestRequestBodyType `json:"bodyType,omitempty"`
1113+
CallType *SyntheticsTestCallType `json:"callType,omitempty"`
1114+
Certificate *SyntheticsTestRequestCertificate `json:"certificate,omitempty"`
1115+
CertificateDomains []string `json:"certificateDomains,omitempty"`
1116+
CheckCertificateRevocation *bool `json:"checkCertificateRevocation,omitempty"`
1117+
CompressedJsonDescriptor *string `json:"compressedJsonDescriptor,omitempty"`
1118+
CompressedProtoFile *string `json:"compressedProtoFile,omitempty"`
1119+
DnsServer *string `json:"dnsServer,omitempty"`
1120+
DnsServerPort *string `json:"dnsServerPort,omitempty"`
1121+
Files []SyntheticsTestRequestBodyFile `json:"files,omitempty"`
1122+
FollowRedirects *bool `json:"follow_redirects,omitempty"`
1123+
Headers map[string]string `json:"headers,omitempty"`
1124+
Host *string `json:"host,omitempty"`
1125+
HttpVersion *SyntheticsTestOptionsHTTPVersion `json:"httpVersion,omitempty"`
1126+
IsMessageBase64Encoded *bool `json:"isMessageBase64Encoded,omitempty"`
1127+
Message *string `json:"message,omitempty"`
1128+
Metadata map[string]string `json:"metadata,omitempty"`
1129+
Method *string `json:"method,omitempty"`
1130+
NoSavingResponseBody *bool `json:"noSavingResponseBody,omitempty"`
1131+
NumberOfPackets *int32 `json:"numberOfPackets,omitempty"`
1132+
PersistCookies *bool `json:"persistCookies,omitempty"`
1133+
Port *SyntheticsTestRequestPort `json:"port,omitempty"`
1134+
Proxy *SyntheticsTestRequestProxy `json:"proxy,omitempty"`
1135+
Query interface{} `json:"query,omitempty"`
1136+
Servername *string `json:"servername,omitempty"`
1137+
Service *string `json:"service,omitempty"`
1138+
ShouldTrackHops *bool `json:"shouldTrackHops,omitempty"`
1139+
Timeout *float64 `json:"timeout,omitempty"`
1140+
Url *string `json:"url,omitempty"`
10731141
}{}
10741142
if err = datadog.Unmarshal(bytes, &all); err != nil {
10751143
return datadog.Unmarshal(bytes, &o.UnparsedObject)
10761144
}
10771145
additionalProperties := make(map[string]interface{})
10781146
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
1079-
datadog.DeleteKeys(additionalProperties, &[]string{"allow_insecure", "basicAuth", "body", "bodyType", "callType", "certificate", "certificateDomains", "compressedJsonDescriptor", "compressedProtoFile", "dnsServer", "dnsServerPort", "files", "follow_redirects", "headers", "host", "httpVersion", "message", "metadata", "method", "noSavingResponseBody", "numberOfPackets", "persistCookies", "port", "proxy", "query", "servername", "service", "shouldTrackHops", "timeout", "url"})
1147+
datadog.DeleteKeys(additionalProperties, &[]string{"allow_insecure", "basicAuth", "body", "bodyType", "callType", "certificate", "certificateDomains", "checkCertificateRevocation", "compressedJsonDescriptor", "compressedProtoFile", "dnsServer", "dnsServerPort", "files", "follow_redirects", "headers", "host", "httpVersion", "isMessageBase64Encoded", "message", "metadata", "method", "noSavingResponseBody", "numberOfPackets", "persistCookies", "port", "proxy", "query", "servername", "service", "shouldTrackHops", "timeout", "url"})
10801148
} else {
10811149
return err
10821150
}
@@ -1100,6 +1168,7 @@ func (o *SyntheticsTestRequest) UnmarshalJSON(bytes []byte) (err error) {
11001168
}
11011169
o.Certificate = all.Certificate
11021170
o.CertificateDomains = all.CertificateDomains
1171+
o.CheckCertificateRevocation = all.CheckCertificateRevocation
11031172
o.CompressedJsonDescriptor = all.CompressedJsonDescriptor
11041173
o.CompressedProtoFile = all.CompressedProtoFile
11051174
o.DnsServer = all.DnsServer
@@ -1113,6 +1182,7 @@ func (o *SyntheticsTestRequest) UnmarshalJSON(bytes []byte) (err error) {
11131182
} else {
11141183
o.HttpVersion = all.HttpVersion
11151184
}
1185+
o.IsMessageBase64Encoded = all.IsMessageBase64Encoded
11161186
o.Message = all.Message
11171187
o.Metadata = all.Metadata
11181188
o.Method = all.Method

0 commit comments

Comments
 (0)