@@ -33,7 +33,7 @@ type SyntheticsTestRequest struct {
3333 // DNS server to use for DNS tests.
3434 DnsServer * string `json:"dnsServer,omitempty"`
3535 // DNS server port to use for DNS tests.
36- DnsServerPort * string `json:"dnsServerPort,omitempty"`
36+ DnsServerPort * SyntheticsTestRequestDNSServerPort `json:"dnsServerPort,omitempty"`
3737 // Files to be used as part of the request in the test. Only valid if `bodyType` is `multipart/form-data`.
3838 Files []SyntheticsTestRequestBodyFile `json:"files,omitempty"`
3939 // Specifies whether or not the request follows redirects.
@@ -409,17 +409,17 @@ func (o *SyntheticsTestRequest) SetDnsServer(v string) {
409409}
410410
411411// GetDnsServerPort returns the DnsServerPort field value if set, zero value otherwise.
412- func (o * SyntheticsTestRequest ) GetDnsServerPort () string {
412+ func (o * SyntheticsTestRequest ) GetDnsServerPort () SyntheticsTestRequestDNSServerPort {
413413 if o == nil || o .DnsServerPort == nil {
414- var ret string
414+ var ret SyntheticsTestRequestDNSServerPort
415415 return ret
416416 }
417417 return * o .DnsServerPort
418418}
419419
420420// GetDnsServerPortOk returns a tuple with the DnsServerPort field value if set, nil otherwise
421421// and a boolean to check if the value has been set.
422- func (o * SyntheticsTestRequest ) GetDnsServerPortOk () (* string , bool ) {
422+ func (o * SyntheticsTestRequest ) GetDnsServerPortOk () (* SyntheticsTestRequestDNSServerPort , bool ) {
423423 if o == nil || o .DnsServerPort == nil {
424424 return nil , false
425425 }
@@ -431,8 +431,8 @@ func (o *SyntheticsTestRequest) HasDnsServerPort() bool {
431431 return o != nil && o .DnsServerPort != nil
432432}
433433
434- // SetDnsServerPort gets a reference to the given string and assigns it to the DnsServerPort field.
435- func (o * SyntheticsTestRequest ) SetDnsServerPort (v string ) {
434+ // SetDnsServerPort gets a reference to the given SyntheticsTestRequestDNSServerPort and assigns it to the DnsServerPort field.
435+ func (o * SyntheticsTestRequest ) SetDnsServerPort (v SyntheticsTestRequestDNSServerPort ) {
436436 o .DnsServerPort = & v
437437}
438438
@@ -1139,39 +1139,39 @@ func (o SyntheticsTestRequest) MarshalJSON() ([]byte, error) {
11391139// UnmarshalJSON deserializes the given payload.
11401140func (o * SyntheticsTestRequest ) UnmarshalJSON (bytes []byte ) (err error ) {
11411141 all := struct {
1142- AllowInsecure * bool `json:"allow_insecure,omitempty"`
1143- BasicAuth * SyntheticsBasicAuth `json:"basicAuth,omitempty"`
1144- Body * string `json:"body,omitempty"`
1145- BodyType * SyntheticsTestRequestBodyType `json:"bodyType,omitempty"`
1146- CallType * SyntheticsTestCallType `json:"callType,omitempty"`
1147- Certificate * SyntheticsTestRequestCertificate `json:"certificate,omitempty"`
1148- CertificateDomains []string `json:"certificateDomains,omitempty"`
1149- CheckCertificateRevocation * bool `json:"checkCertificateRevocation,omitempty"`
1150- CompressedJsonDescriptor * string `json:"compressedJsonDescriptor,omitempty"`
1151- CompressedProtoFile * string `json:"compressedProtoFile,omitempty"`
1152- DnsServer * string `json:"dnsServer,omitempty"`
1153- DnsServerPort * string `json:"dnsServerPort,omitempty"`
1154- Files []SyntheticsTestRequestBodyFile `json:"files,omitempty"`
1155- FollowRedirects * bool `json:"follow_redirects,omitempty"`
1156- Form map [string ]string `json:"form,omitempty"`
1157- Headers map [string ]string `json:"headers,omitempty"`
1158- Host * string `json:"host,omitempty"`
1159- HttpVersion * SyntheticsTestOptionsHTTPVersion `json:"httpVersion,omitempty"`
1160- IsMessageBase64Encoded * bool `json:"isMessageBase64Encoded,omitempty"`
1161- Message * string `json:"message,omitempty"`
1162- Metadata map [string ]string `json:"metadata,omitempty"`
1163- Method * string `json:"method,omitempty"`
1164- NoSavingResponseBody * bool `json:"noSavingResponseBody,omitempty"`
1165- NumberOfPackets * int32 `json:"numberOfPackets,omitempty"`
1166- PersistCookies * bool `json:"persistCookies,omitempty"`
1167- Port * SyntheticsTestRequestPort `json:"port,omitempty"`
1168- Proxy * SyntheticsTestRequestProxy `json:"proxy,omitempty"`
1169- Query interface {} `json:"query,omitempty"`
1170- Servername * string `json:"servername,omitempty"`
1171- Service * string `json:"service,omitempty"`
1172- ShouldTrackHops * bool `json:"shouldTrackHops,omitempty"`
1173- Timeout * float64 `json:"timeout,omitempty"`
1174- Url * string `json:"url,omitempty"`
1142+ AllowInsecure * bool `json:"allow_insecure,omitempty"`
1143+ BasicAuth * SyntheticsBasicAuth `json:"basicAuth,omitempty"`
1144+ Body * string `json:"body,omitempty"`
1145+ BodyType * SyntheticsTestRequestBodyType `json:"bodyType,omitempty"`
1146+ CallType * SyntheticsTestCallType `json:"callType,omitempty"`
1147+ Certificate * SyntheticsTestRequestCertificate `json:"certificate,omitempty"`
1148+ CertificateDomains []string `json:"certificateDomains,omitempty"`
1149+ CheckCertificateRevocation * bool `json:"checkCertificateRevocation,omitempty"`
1150+ CompressedJsonDescriptor * string `json:"compressedJsonDescriptor,omitempty"`
1151+ CompressedProtoFile * string `json:"compressedProtoFile,omitempty"`
1152+ DnsServer * string `json:"dnsServer,omitempty"`
1153+ DnsServerPort * SyntheticsTestRequestDNSServerPort `json:"dnsServerPort,omitempty"`
1154+ Files []SyntheticsTestRequestBodyFile `json:"files,omitempty"`
1155+ FollowRedirects * bool `json:"follow_redirects,omitempty"`
1156+ Form map [string ]string `json:"form,omitempty"`
1157+ Headers map [string ]string `json:"headers,omitempty"`
1158+ Host * string `json:"host,omitempty"`
1159+ HttpVersion * SyntheticsTestOptionsHTTPVersion `json:"httpVersion,omitempty"`
1160+ IsMessageBase64Encoded * bool `json:"isMessageBase64Encoded,omitempty"`
1161+ Message * string `json:"message,omitempty"`
1162+ Metadata map [string ]string `json:"metadata,omitempty"`
1163+ Method * string `json:"method,omitempty"`
1164+ NoSavingResponseBody * bool `json:"noSavingResponseBody,omitempty"`
1165+ NumberOfPackets * int32 `json:"numberOfPackets,omitempty"`
1166+ PersistCookies * bool `json:"persistCookies,omitempty"`
1167+ Port * SyntheticsTestRequestPort `json:"port,omitempty"`
1168+ Proxy * SyntheticsTestRequestProxy `json:"proxy,omitempty"`
1169+ Query interface {} `json:"query,omitempty"`
1170+ Servername * string `json:"servername,omitempty"`
1171+ Service * string `json:"service,omitempty"`
1172+ ShouldTrackHops * bool `json:"shouldTrackHops,omitempty"`
1173+ Timeout * float64 `json:"timeout,omitempty"`
1174+ Url * string `json:"url,omitempty"`
11751175 }{}
11761176 if err = datadog .Unmarshal (bytes , & all ); err != nil {
11771177 return datadog .Unmarshal (bytes , & o .UnparsedObject )
0 commit comments