@@ -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 > ,
@@ -61,6 +64,7 @@ impl SecurityMonitoringSuppressionAttributes {
61
64
creator : None ,
62
65
data_exclusion_query : None ,
63
66
description : None ,
67
+ editable : None ,
64
68
enabled : None ,
65
69
expiration_date : None ,
66
70
name : None ,
@@ -94,6 +98,11 @@ impl SecurityMonitoringSuppressionAttributes {
94
98
self
95
99
}
96
100
101
+ pub fn editable ( mut self , value : bool ) -> Self {
102
+ self . editable = Some ( value) ;
103
+ self
104
+ }
105
+
97
106
pub fn enabled ( mut self , value : bool ) -> Self {
98
107
self . enabled = Some ( value) ;
99
108
self
@@ -170,6 +179,7 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSuppressionAttributes {
170
179
let mut creator: Option < crate :: datadogV2:: model:: SecurityMonitoringUser > = None ;
171
180
let mut data_exclusion_query: Option < String > = None ;
172
181
let mut description: Option < String > = None ;
182
+ let mut editable: Option < bool > = None ;
173
183
let mut enabled: Option < bool > = None ;
174
184
let mut expiration_date: Option < i64 > = None ;
175
185
let mut name: Option < String > = None ;
@@ -213,6 +223,12 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSuppressionAttributes {
213
223
description =
214
224
Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
215
225
}
226
+ "editable" => {
227
+ if v. is_null ( ) {
228
+ continue ;
229
+ }
230
+ editable = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
231
+ }
216
232
"enabled" => {
217
233
if v. is_null ( ) {
218
234
continue ;
@@ -277,6 +293,7 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSuppressionAttributes {
277
293
creator,
278
294
data_exclusion_query,
279
295
description,
296
+ editable,
280
297
enabled,
281
298
expiration_date,
282
299
name,
0 commit comments