Skip to content

Commit 7e4c6ee

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add editable field to suppression rule (#1874)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent b5d80dd commit 7e4c6ee

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-08-21 16:52:37.001384",
8-
"spec_repo_commit": "ffed3856"
7+
"regenerated": "2024-08-21 17:41:01.263937",
8+
"spec_repo_commit": "e8ef24a7"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-21 16:52:37.026367",
13-
"spec_repo_commit": "ffed3856"
12+
"regenerated": "2024-08-21 17:41:01.289192",
13+
"spec_repo_commit": "e8ef24a7"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19603,6 +19603,10 @@ components:
1960319603
description: A description for the suppression rule.
1960419604
example: This rule suppresses low-severity signals in staging environments.
1960519605
type: string
19606+
editable:
19607+
description: Whether the suppression rule is editable.
19608+
example: true
19609+
type: boolean
1960619610
enabled:
1960719611
description: Whether the suppression rule is enabled.
1960819612
example: true

lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ class SecurityMonitoringSuppressionAttributes
3333
# A description for the suppression rule.
3434
attr_accessor :description
3535

36+
# Whether the suppression rule is editable.
37+
attr_accessor :editable
38+
3639
# Whether the suppression rule is enabled.
3740
attr_accessor :enabled
3841

@@ -67,6 +70,7 @@ def self.attribute_map
6770
:'creator' => :'creator',
6871
:'data_exclusion_query' => :'data_exclusion_query',
6972
:'description' => :'description',
73+
:'editable' => :'editable',
7074
:'enabled' => :'enabled',
7175
:'expiration_date' => :'expiration_date',
7276
:'name' => :'name',
@@ -86,6 +90,7 @@ def self.openapi_types
8690
:'creator' => :'SecurityMonitoringUser',
8791
:'data_exclusion_query' => :'String',
8892
:'description' => :'String',
93+
:'editable' => :'Boolean',
8994
:'enabled' => :'Boolean',
9095
:'expiration_date' => :'Integer',
9196
:'name' => :'String',
@@ -131,6 +136,10 @@ def initialize(attributes = {})
131136
self.description = attributes[:'description']
132137
end
133138

139+
if attributes.key?(:'editable')
140+
self.editable = attributes[:'editable']
141+
end
142+
134143
if attributes.key?(:'enabled')
135144
self.enabled = attributes[:'enabled']
136145
end
@@ -212,6 +221,7 @@ def ==(o)
212221
creator == o.creator &&
213222
data_exclusion_query == o.data_exclusion_query &&
214223
description == o.description &&
224+
editable == o.editable &&
215225
enabled == o.enabled &&
216226
expiration_date == o.expiration_date &&
217227
name == o.name &&
@@ -227,7 +237,7 @@ def ==(o)
227237
# @return [Integer] Hash code
228238
# @!visibility private
229239
def hash
230-
[creation_date, creator, data_exclusion_query, description, enabled, expiration_date, name, rule_query, suppression_query, update_date, updater, version].hash
240+
[creation_date, creator, data_exclusion_query, description, editable, enabled, expiration_date, name, rule_query, suppression_query, update_date, updater, version].hash
231241
end
232242
end
233243
end

0 commit comments

Comments
 (0)