Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-08-21 16:52:38.047558",
"spec_repo_commit": "ffed3856"
"regenerated": "2024-08-21 17:41:01.461326",
"spec_repo_commit": "e8ef24a7"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-21 16:52:38.072264",
"spec_repo_commit": "ffed3856"
"regenerated": "2024-08-21 17:41:01.488234",
"spec_repo_commit": "e8ef24a7"
}
}
}
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19603,6 +19603,10 @@ components:
description: A description for the suppression rule.
example: This rule suppresses low-severity signals in staging environments.
type: string
editable:
description: Whether the suppression rule is editable.
example: true
type: boolean
enabled:
description: Whether the suppression rule is enabled.
example: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ type SecurityMonitoringSuppressionAttributes struct {
DataExclusionQuery *string `json:"data_exclusion_query,omitempty"`
// A description for the suppression rule.
Description *string `json:"description,omitempty"`
// Whether the suppression rule is editable.
Editable *bool `json:"editable,omitempty"`
// Whether the suppression rule is enabled.
Enabled *bool `json:"enabled,omitempty"`
// A Unix millisecond timestamp giving an expiration date for the suppression rule. After this date, it won't suppress signals anymore.
Expand Down Expand Up @@ -168,6 +170,34 @@ func (o *SecurityMonitoringSuppressionAttributes) SetDescription(v string) {
o.Description = &v
}

// GetEditable returns the Editable field value if set, zero value otherwise.
func (o *SecurityMonitoringSuppressionAttributes) GetEditable() bool {
if o == nil || o.Editable == nil {
var ret bool
return ret
}
return *o.Editable
}

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

// HasEditable returns a boolean if a field has been set.
func (o *SecurityMonitoringSuppressionAttributes) HasEditable() bool {
return o != nil && o.Editable != nil
}

// SetEditable gets a reference to the given bool and assigns it to the Editable field.
func (o *SecurityMonitoringSuppressionAttributes) SetEditable(v bool) {
o.Editable = &v
}

// GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *SecurityMonitoringSuppressionAttributes) GetEnabled() bool {
if o == nil || o.Enabled == nil {
Expand Down Expand Up @@ -410,6 +440,9 @@ func (o SecurityMonitoringSuppressionAttributes) MarshalJSON() ([]byte, error) {
if o.Description != nil {
toSerialize["description"] = o.Description
}
if o.Editable != nil {
toSerialize["editable"] = o.Editable
}
if o.Enabled != nil {
toSerialize["enabled"] = o.Enabled
}
Expand Down Expand Up @@ -448,6 +481,7 @@ func (o *SecurityMonitoringSuppressionAttributes) UnmarshalJSON(bytes []byte) (e
Creator *SecurityMonitoringUser `json:"creator,omitempty"`
DataExclusionQuery *string `json:"data_exclusion_query,omitempty"`
Description *string `json:"description,omitempty"`
Editable *bool `json:"editable,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
ExpirationDate *int64 `json:"expiration_date,omitempty"`
Name *string `json:"name,omitempty"`
Expand All @@ -462,7 +496,7 @@ func (o *SecurityMonitoringSuppressionAttributes) UnmarshalJSON(bytes []byte) (e
}
additionalProperties := make(map[string]interface{})
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
datadog.DeleteKeys(additionalProperties, &[]string{"creation_date", "creator", "data_exclusion_query", "description", "enabled", "expiration_date", "name", "rule_query", "suppression_query", "update_date", "updater", "version"})
datadog.DeleteKeys(additionalProperties, &[]string{"creation_date", "creator", "data_exclusion_query", "description", "editable", "enabled", "expiration_date", "name", "rule_query", "suppression_query", "update_date", "updater", "version"})
} else {
return err
}
Expand All @@ -475,6 +509,7 @@ func (o *SecurityMonitoringSuppressionAttributes) UnmarshalJSON(bytes []byte) (e
o.Creator = all.Creator
o.DataExclusionQuery = all.DataExclusionQuery
o.Description = all.Description
o.Editable = all.Editable
o.Enabled = all.Enabled
o.ExpirationDate = all.ExpirationDate
o.Name = all.Name
Expand Down