@@ -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.
294326func (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.
546606func (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.
10411107func (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