Skip to content

Commit

Permalink
Regenerate client from commit 99c1318c of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Apr 11, 2022
1 parent e3a27bf commit 163d7e1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 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.2",
"regenerated": "2022-04-07 18:07:20.696062",
"spec_repo_commit": "5ed02dad"
"regenerated": "2022-04-11 19:45:15.984903",
"spec_repo_commit": "99c1318c"
},
"v2": {
"apigentools_version": "1.6.2",
"regenerated": "2022-04-07 18:07:20.710029",
"spec_repo_commit": "5ed02dad"
"regenerated": "2022-04-11 19:45:15.999167",
"spec_repo_commit": "99c1318c"
}
}
}
4 changes: 2 additions & 2 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3954,10 +3954,10 @@ components:
description: Array of tags associated with your log.
example:
- team:A
format: array
items:
description: Tag associated with your log.
format: string
type: string
type: array
timestamp:
description: Timestamp of your log.
example: '2020-05-26T13:36:14Z'
Expand Down
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6288,10 +6288,10 @@ components:
example:
- security:attack
- technique:T1110-brute-force
format: array
items:
description: The tag associated with the security signal.
type: string
type: array
timestamp:
description: The timestamp of the security signal.
example: '2019-01-02T09:42:36.320Z'
Expand Down
20 changes: 10 additions & 10 deletions api/v1/datadog/model_log_content.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type LogContent struct {
// value when you use both products.
Service *string `json:"service,omitempty"`
// Array of tags associated with your log.
Tags []interface{} `json:"tags,omitempty"`
Tags *[]string `json:"tags,omitempty"`
// Timestamp of your log.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
Expand Down Expand Up @@ -180,21 +180,21 @@ func (o *LogContent) SetService(v string) {
}

// GetTags returns the Tags field value if set, zero value otherwise.
func (o *LogContent) GetTags() []interface{} {
func (o *LogContent) GetTags() []string {
if o == nil || o.Tags == nil {
var ret []interface{}
var ret []string
return ret
}
return o.Tags
return *o.Tags
}

// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LogContent) GetTagsOk() (*[]interface{}, bool) {
func (o *LogContent) GetTagsOk() (*[]string, bool) {
if o == nil || o.Tags == nil {
return nil, false
}
return &o.Tags, true
return o.Tags, true
}

// HasTags returns a boolean if a field has been set.
Expand All @@ -206,9 +206,9 @@ func (o *LogContent) HasTags() bool {
return false
}

// SetTags gets a reference to the given []interface{} and assigns it to the Tags field.
func (o *LogContent) SetTags(v []interface{}) {
o.Tags = v
// SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *LogContent) SetTags(v []string) {
o.Tags = &v
}

// GetTimestamp returns the Timestamp field value if set, zero value otherwise.
Expand Down Expand Up @@ -280,7 +280,7 @@ func (o *LogContent) UnmarshalJSON(bytes []byte) (err error) {
Host *string `json:"host,omitempty"`
Message *string `json:"message,omitempty"`
Service *string `json:"service,omitempty"`
Tags []interface{} `json:"tags,omitempty"`
Tags *[]string `json:"tags,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
}{}
err = json.Unmarshal(bytes, &all)
Expand Down
10 changes: 5 additions & 5 deletions api/v2/datadog/model_security_monitoring_signal_attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type SecurityMonitoringSignalAttributes struct {
// The message in the security signal defined by the rule that generated the signal.
Message *string `json:"message,omitempty"`
// An array of tags associated with the security signal.
Tags []string `json:"tags,omitempty"`
Tags *[]string `json:"tags,omitempty"`
// The timestamp of the security signal.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
Expand Down Expand Up @@ -114,7 +114,7 @@ func (o *SecurityMonitoringSignalAttributes) GetTags() []string {
var ret []string
return ret
}
return o.Tags
return *o.Tags
}

// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
Expand All @@ -123,7 +123,7 @@ func (o *SecurityMonitoringSignalAttributes) GetTagsOk() (*[]string, bool) {
if o == nil || o.Tags == nil {
return nil, false
}
return &o.Tags, true
return o.Tags, true
}

// HasTags returns a boolean if a field has been set.
Expand All @@ -137,7 +137,7 @@ func (o *SecurityMonitoringSignalAttributes) HasTags() bool {

// SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SecurityMonitoringSignalAttributes) SetTags(v []string) {
o.Tags = v
o.Tags = &v
}

// GetTimestamp returns the Timestamp field value if set, zero value otherwise.
Expand Down Expand Up @@ -201,7 +201,7 @@ func (o *SecurityMonitoringSignalAttributes) UnmarshalJSON(bytes []byte) (err er
all := struct {
Attributes map[string]interface{} `json:"attributes,omitempty"`
Message *string `json:"message,omitempty"`
Tags []string `json:"tags,omitempty"`
Tags *[]string `json:"tags,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
}{}
err = json.Unmarshal(bytes, &all)
Expand Down

0 comments on commit 163d7e1

Please sign in to comment.