Skip to content

Commit

Permalink
Regenerate client from commit 80f33fd7 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jan 19, 2024
1 parent fa0959d commit 4f37643
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-01-19 16:05:53.952351",
"spec_repo_commit": "20461e26"
"regenerated": "2024-01-19 16:38:23.127617",
"spec_repo_commit": "80f33fd7"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-01-19 16:05:53.980359",
"spec_repo_commit": "20461e26"
"regenerated": "2024-01-19 16:38:23.149129",
"spec_repo_commit": "80f33fd7"
}
}
}
4 changes: 4 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15691,6 +15691,10 @@ components:
description: A protobuf JSON descriptor that needs to be gzipped first then
base64 encoded.
type: string
compressedProtoFile:
description: A protobuf file that needs to be gzipped first then base64
encoded.
type: string
dnsServer:
description: DNS server to use for DNS tests.
type: string
Expand Down
37 changes: 36 additions & 1 deletion api/datadogV1/model_synthetics_test_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ type SyntheticsTestRequest struct {
CertificateDomains []string `json:"certificateDomains,omitempty"`
// A protobuf JSON descriptor that needs to be gzipped first then base64 encoded.
CompressedJsonDescriptor *string `json:"compressedJsonDescriptor,omitempty"`
// A protobuf file that needs to be gzipped first then base64 encoded.
CompressedProtoFile *string `json:"compressedProtoFile,omitempty"`
// DNS server to use for DNS tests.
DnsServer *string `json:"dnsServer,omitempty"`
// DNS server port to use for DNS tests.
Expand Down Expand Up @@ -312,6 +314,34 @@ func (o *SyntheticsTestRequest) SetCompressedJsonDescriptor(v string) {
o.CompressedJsonDescriptor = &v
}

// GetCompressedProtoFile returns the CompressedProtoFile field value if set, zero value otherwise.
func (o *SyntheticsTestRequest) GetCompressedProtoFile() string {
if o == nil || o.CompressedProtoFile == nil {
var ret string
return ret
}
return *o.CompressedProtoFile
}

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

// HasCompressedProtoFile returns a boolean if a field has been set.
func (o *SyntheticsTestRequest) HasCompressedProtoFile() bool {
return o != nil && o.CompressedProtoFile != nil
}

// SetCompressedProtoFile gets a reference to the given string and assigns it to the CompressedProtoFile field.
func (o *SyntheticsTestRequest) SetCompressedProtoFile(v string) {
o.CompressedProtoFile = &v
}

// GetDnsServer returns the DnsServer field value if set, zero value otherwise.
func (o *SyntheticsTestRequest) GetDnsServer() string {
if o == nil || o.DnsServer == nil {
Expand Down Expand Up @@ -874,6 +904,9 @@ func (o SyntheticsTestRequest) MarshalJSON() ([]byte, error) {
if o.CompressedJsonDescriptor != nil {
toSerialize["compressedJsonDescriptor"] = o.CompressedJsonDescriptor
}
if o.CompressedProtoFile != nil {
toSerialize["compressedProtoFile"] = o.CompressedProtoFile
}
if o.DnsServer != nil {
toSerialize["dnsServer"] = o.DnsServer
}
Expand Down Expand Up @@ -949,6 +982,7 @@ func (o *SyntheticsTestRequest) UnmarshalJSON(bytes []byte) (err error) {
Certificate *SyntheticsTestRequestCertificate `json:"certificate,omitempty"`
CertificateDomains []string `json:"certificateDomains,omitempty"`
CompressedJsonDescriptor *string `json:"compressedJsonDescriptor,omitempty"`
CompressedProtoFile *string `json:"compressedProtoFile,omitempty"`
DnsServer *string `json:"dnsServer,omitempty"`
DnsServerPort *int32 `json:"dnsServerPort,omitempty"`
FollowRedirects *bool `json:"follow_redirects,omitempty"`
Expand All @@ -974,7 +1008,7 @@ func (o *SyntheticsTestRequest) UnmarshalJSON(bytes []byte) (err error) {
}
additionalProperties := make(map[string]interface{})
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
datadog.DeleteKeys(additionalProperties, &[]string{"allow_insecure", "basicAuth", "body", "bodyType", "callType", "certificate", "certificateDomains", "compressedJsonDescriptor", "dnsServer", "dnsServerPort", "follow_redirects", "headers", "host", "message", "metadata", "method", "noSavingResponseBody", "numberOfPackets", "persistCookies", "port", "proxy", "query", "servername", "service", "shouldTrackHops", "timeout", "url"})
datadog.DeleteKeys(additionalProperties, &[]string{"allow_insecure", "basicAuth", "body", "bodyType", "callType", "certificate", "certificateDomains", "compressedJsonDescriptor", "compressedProtoFile", "dnsServer", "dnsServerPort", "follow_redirects", "headers", "host", "message", "metadata", "method", "noSavingResponseBody", "numberOfPackets", "persistCookies", "port", "proxy", "query", "servername", "service", "shouldTrackHops", "timeout", "url"})
} else {
return err
}
Expand All @@ -999,6 +1033,7 @@ func (o *SyntheticsTestRequest) UnmarshalJSON(bytes []byte) (err error) {
o.Certificate = all.Certificate
o.CertificateDomains = all.CertificateDomains
o.CompressedJsonDescriptor = all.CompressedJsonDescriptor
o.CompressedProtoFile = all.CompressedProtoFile
o.DnsServer = all.DnsServer
o.DnsServerPort = all.DnsServerPort
o.FollowRedirects = all.FollowRedirects
Expand Down

0 comments on commit 4f37643

Please sign in to comment.