@@ -23,6 +23,9 @@ pub struct SecurityMonitoringSuppressionAttributes {
23
23
/// A description for the suppression rule.
24
24
#[ serde( rename = "description" ) ]
25
25
pub description : Option < String > ,
26
+ /// Whether the suppression rule is editable.
27
+ #[ serde( rename = "editable" ) ]
28
+ pub editable : Option < bool > ,
26
29
/// Whether the suppression rule is enabled.
27
30
#[ serde( rename = "enabled" ) ]
28
31
pub enabled : Option < bool > ,
@@ -59,6 +62,7 @@ impl SecurityMonitoringSuppressionAttributes {
59
62
creator : None ,
60
63
data_exclusion_query : None ,
61
64
description : None ,
65
+ editable : None ,
62
66
enabled : None ,
63
67
expiration_date : None ,
64
68
name : None ,
@@ -91,6 +95,11 @@ impl SecurityMonitoringSuppressionAttributes {
91
95
self
92
96
}
93
97
98
+ pub fn editable ( mut self , value : bool ) -> Self {
99
+ self . editable = Some ( value) ;
100
+ self
101
+ }
102
+
94
103
pub fn enabled ( mut self , value : bool ) -> Self {
95
104
self . enabled = Some ( value) ;
96
105
self
@@ -159,6 +168,7 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSuppressionAttributes {
159
168
let mut creator: Option < crate :: datadogV2:: model:: SecurityMonitoringUser > = None ;
160
169
let mut data_exclusion_query: Option < String > = None ;
161
170
let mut description: Option < String > = None ;
171
+ let mut editable: Option < bool > = None ;
162
172
let mut enabled: Option < bool > = None ;
163
173
let mut expiration_date: Option < i64 > = None ;
164
174
let mut name: Option < String > = None ;
@@ -198,6 +208,12 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSuppressionAttributes {
198
208
description =
199
209
Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
200
210
}
211
+ "editable" => {
212
+ if v. is_null ( ) {
213
+ continue ;
214
+ }
215
+ editable = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
216
+ }
201
217
"enabled" => {
202
218
if v. is_null ( ) {
203
219
continue ;
@@ -258,6 +274,7 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSuppressionAttributes {
258
274
creator,
259
275
data_exclusion_query,
260
276
description,
277
+ editable,
261
278
enabled,
262
279
expiration_date,
263
280
name,
0 commit comments