@@ -21,6 +21,9 @@ pub struct CloudWorkloadSecurityAgentRuleAttributes {
21
21
/// The version of the Agent
22
22
#[ serde( rename = "agentConstraint" ) ]
23
23
pub agent_constraint : Option < String > ,
24
+ /// The blocking policies that the rule belongs to
25
+ #[ serde( rename = "blocking" ) ]
26
+ pub blocking : Option < Vec < String > > ,
24
27
/// The category of the Agent rule
25
28
#[ serde( rename = "category" ) ]
26
29
pub category : Option < String > ,
@@ -39,6 +42,9 @@ pub struct CloudWorkloadSecurityAgentRuleAttributes {
39
42
/// The description of the Agent rule
40
43
#[ serde( rename = "description" ) ]
41
44
pub description : Option < String > ,
45
+ /// The disabled policies that the rule belongs to
46
+ #[ serde( rename = "disabled" ) ]
47
+ pub disabled : Option < Vec < String > > ,
42
48
/// Whether the Agent rule is enabled
43
49
#[ serde( rename = "enabled" ) ]
44
50
pub enabled : Option < bool > ,
@@ -48,6 +54,9 @@ pub struct CloudWorkloadSecurityAgentRuleAttributes {
48
54
/// The platforms the Agent rule is supported on
49
55
#[ serde( rename = "filters" ) ]
50
56
pub filters : Option < Vec < String > > ,
57
+ /// The monitoring policies that the rule belongs to
58
+ #[ serde( rename = "monitoring" ) ]
59
+ pub monitoring : Option < Vec < String > > ,
51
60
/// The name of the Agent rule
52
61
#[ serde( rename = "name" ) ]
53
62
pub name : Option < String > ,
@@ -81,15 +90,18 @@ impl CloudWorkloadSecurityAgentRuleAttributes {
81
90
CloudWorkloadSecurityAgentRuleAttributes {
82
91
actions : None ,
83
92
agent_constraint : None ,
93
+ blocking : None ,
84
94
category : None ,
85
95
creation_author_uu_id : None ,
86
96
creation_date : None ,
87
97
creator : None ,
88
98
default_rule : None ,
89
99
description : None ,
100
+ disabled : None ,
90
101
enabled : None ,
91
102
expression : None ,
92
103
filters : None ,
104
+ monitoring : None ,
93
105
name : None ,
94
106
product_tags : None ,
95
107
update_author_uu_id : None ,
@@ -115,6 +127,11 @@ impl CloudWorkloadSecurityAgentRuleAttributes {
115
127
self
116
128
}
117
129
130
+ pub fn blocking ( mut self , value : Vec < String > ) -> Self {
131
+ self . blocking = Some ( value) ;
132
+ self
133
+ }
134
+
118
135
pub fn category ( mut self , value : String ) -> Self {
119
136
self . category = Some ( value) ;
120
137
self
@@ -148,6 +165,11 @@ impl CloudWorkloadSecurityAgentRuleAttributes {
148
165
self
149
166
}
150
167
168
+ pub fn disabled ( mut self , value : Vec < String > ) -> Self {
169
+ self . disabled = Some ( value) ;
170
+ self
171
+ }
172
+
151
173
pub fn enabled ( mut self , value : bool ) -> Self {
152
174
self . enabled = Some ( value) ;
153
175
self
@@ -163,6 +185,11 @@ impl CloudWorkloadSecurityAgentRuleAttributes {
163
185
self
164
186
}
165
187
188
+ pub fn monitoring ( mut self , value : Vec < String > ) -> Self {
189
+ self . monitoring = Some ( value) ;
190
+ self
191
+ }
192
+
166
193
pub fn name ( mut self , value : String ) -> Self {
167
194
self . name = Some ( value) ;
168
195
self
@@ -237,6 +264,7 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAttributes {
237
264
Option < Vec < crate :: datadogV2:: model:: CloudWorkloadSecurityAgentRuleAction > > ,
238
265
> = None ;
239
266
let mut agent_constraint: Option < String > = None ;
267
+ let mut blocking: Option < Vec < String > > = None ;
240
268
let mut category: Option < String > = None ;
241
269
let mut creation_author_uu_id: Option < String > = None ;
242
270
let mut creation_date: Option < i64 > = None ;
@@ -245,9 +273,11 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAttributes {
245
273
> = None ;
246
274
let mut default_rule: Option < bool > = None ;
247
275
let mut description: Option < String > = None ;
276
+ let mut disabled: Option < Vec < String > > = None ;
248
277
let mut enabled: Option < bool > = None ;
249
278
let mut expression: Option < String > = None ;
250
279
let mut filters: Option < Vec < String > > = None ;
280
+ let mut monitoring: Option < Vec < String > > = None ;
251
281
let mut name: Option < String > = None ;
252
282
let mut product_tags: Option < Vec < String > > = None ;
253
283
let mut update_author_uu_id: Option < String > = None ;
@@ -275,6 +305,12 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAttributes {
275
305
agent_constraint =
276
306
Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
277
307
}
308
+ "blocking" => {
309
+ if v. is_null ( ) {
310
+ continue ;
311
+ }
312
+ blocking = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
313
+ }
278
314
"category" => {
279
315
if v. is_null ( ) {
280
316
continue ;
@@ -315,6 +351,12 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAttributes {
315
351
description =
316
352
Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
317
353
}
354
+ "disabled" => {
355
+ if v. is_null ( ) {
356
+ continue ;
357
+ }
358
+ disabled = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
359
+ }
318
360
"enabled" => {
319
361
if v. is_null ( ) {
320
362
continue ;
@@ -333,6 +375,12 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAttributes {
333
375
}
334
376
filters = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
335
377
}
378
+ "monitoring" => {
379
+ if v. is_null ( ) {
380
+ continue ;
381
+ }
382
+ monitoring = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
383
+ }
336
384
"name" => {
337
385
if v. is_null ( ) {
338
386
continue ;
@@ -389,15 +437,18 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAttributes {
389
437
let content = CloudWorkloadSecurityAgentRuleAttributes {
390
438
actions,
391
439
agent_constraint,
440
+ blocking,
392
441
category,
393
442
creation_author_uu_id,
394
443
creation_date,
395
444
creator,
396
445
default_rule,
397
446
description,
447
+ disabled,
398
448
enabled,
399
449
expression,
400
450
filters,
451
+ monitoring,
401
452
name,
402
453
product_tags,
403
454
update_author_uu_id,
0 commit comments