Skip to content

Commit b913853

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7ce49a61 of spec repo
1 parent 624a776 commit b913853

5 files changed

+202
-4
lines changed

.apigentools-info

+4-4
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": "2025-05-14 15:44:18.586011",
8-
"spec_repo_commit": "64f5e7ee"
7+
"regenerated": "2025-05-15 13:43:28.676515",
8+
"spec_repo_commit": "7ce49a61"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-14 15:44:18.601730",
13-
"spec_repo_commit": "64f5e7ee"
12+
"regenerated": "2025-05-15 13:43:28.692082",
13+
"spec_repo_commit": "7ce49a61"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+45
Original file line numberDiff line numberDiff line change
@@ -7484,6 +7484,11 @@ components:
74847484
agentConstraint:
74857485
description: The version of the Agent
74867486
type: string
7487+
blocking:
7488+
description: The blocking policies that the rule belongs to
7489+
items:
7490+
type: string
7491+
type: array
74877492
category:
74887493
description: The category of the Agent rule
74897494
example: Process Activity
@@ -7507,6 +7512,11 @@ components:
75077512
description: The description of the Agent rule
75087513
example: My Agent rule
75097514
type: string
7515+
disabled:
7516+
description: The disabled policies that the rule belongs to
7517+
items:
7518+
type: string
7519+
type: array
75107520
enabled:
75117521
description: Whether the Agent rule is enabled
75127522
example: true
@@ -7520,6 +7530,11 @@ components:
75207530
items:
75217531
type: string
75227532
type: array
7533+
monitoring:
7534+
description: The monitoring policies that the rule belongs to
7535+
items:
7536+
type: string
7537+
type: array
75237538
name:
75247539
description: The name of the Agent rule
75257540
example: my_agent_rule
@@ -7554,10 +7569,20 @@ components:
75547569
CloudWorkloadSecurityAgentRuleCreateAttributes:
75557570
description: Create a new Cloud Workload Security Agent rule.
75567571
properties:
7572+
blocking:
7573+
description: The blocking policies that the rule belongs to
7574+
items:
7575+
type: string
7576+
type: array
75577577
description:
75587578
description: The description of the Agent rule.
75597579
example: My Agent rule
75607580
type: string
7581+
disabled:
7582+
description: The disabled policies that the rule belongs to
7583+
items:
7584+
type: string
7585+
type: array
75617586
enabled:
75627587
description: Whether the Agent rule is enabled
75637588
example: true
@@ -7571,6 +7596,11 @@ components:
75717596
items:
75727597
type: string
75737598
type: array
7599+
monitoring:
7600+
description: The monitoring policies that the rule belongs to
7601+
items:
7602+
type: string
7603+
type: array
75747604
name:
75757605
description: The name of the Agent rule.
75767606
example: my_agent_rule
@@ -7661,10 +7691,20 @@ components:
76617691
CloudWorkloadSecurityAgentRuleUpdateAttributes:
76627692
description: Update an existing Cloud Workload Security Agent rule
76637693
properties:
7694+
blocking:
7695+
description: The blocking policies that the rule belongs to
7696+
items:
7697+
type: string
7698+
type: array
76647699
description:
76657700
description: The description of the Agent rule
76667701
example: My Agent rule
76677702
type: string
7703+
disabled:
7704+
description: The disabled policies that the rule belongs to
7705+
items:
7706+
type: string
7707+
type: array
76687708
enabled:
76697709
description: Whether the Agent rule is enabled
76707710
example: true
@@ -7673,6 +7713,11 @@ components:
76737713
description: The SECL expression of the Agent rule
76747714
example: exec.file.name == "sh"
76757715
type: string
7716+
monitoring:
7717+
description: The monitoring policies that the rule belongs to
7718+
items:
7719+
type: string
7720+
type: array
76767721
policy_id:
76777722
description: The ID of the policy where the Agent rule is saved
76787723
example: a8c8e364-6556-434d-b798-a4c23de29c0b

src/datadogV2/model/model_cloud_workload_security_agent_rule_attributes.rs

+51
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ pub struct CloudWorkloadSecurityAgentRuleAttributes {
2121
/// The version of the Agent
2222
#[serde(rename = "agentConstraint")]
2323
pub agent_constraint: Option<String>,
24+
/// The blocking policies that the rule belongs to
25+
#[serde(rename = "blocking")]
26+
pub blocking: Option<Vec<String>>,
2427
/// The category of the Agent rule
2528
#[serde(rename = "category")]
2629
pub category: Option<String>,
@@ -39,6 +42,9 @@ pub struct CloudWorkloadSecurityAgentRuleAttributes {
3942
/// The description of the Agent rule
4043
#[serde(rename = "description")]
4144
pub description: Option<String>,
45+
/// The disabled policies that the rule belongs to
46+
#[serde(rename = "disabled")]
47+
pub disabled: Option<Vec<String>>,
4248
/// Whether the Agent rule is enabled
4349
#[serde(rename = "enabled")]
4450
pub enabled: Option<bool>,
@@ -48,6 +54,9 @@ pub struct CloudWorkloadSecurityAgentRuleAttributes {
4854
/// The platforms the Agent rule is supported on
4955
#[serde(rename = "filters")]
5056
pub filters: Option<Vec<String>>,
57+
/// The monitoring policies that the rule belongs to
58+
#[serde(rename = "monitoring")]
59+
pub monitoring: Option<Vec<String>>,
5160
/// The name of the Agent rule
5261
#[serde(rename = "name")]
5362
pub name: Option<String>,
@@ -81,15 +90,18 @@ impl CloudWorkloadSecurityAgentRuleAttributes {
8190
CloudWorkloadSecurityAgentRuleAttributes {
8291
actions: None,
8392
agent_constraint: None,
93+
blocking: None,
8494
category: None,
8595
creation_author_uu_id: None,
8696
creation_date: None,
8797
creator: None,
8898
default_rule: None,
8999
description: None,
100+
disabled: None,
90101
enabled: None,
91102
expression: None,
92103
filters: None,
104+
monitoring: None,
93105
name: None,
94106
product_tags: None,
95107
update_author_uu_id: None,
@@ -115,6 +127,11 @@ impl CloudWorkloadSecurityAgentRuleAttributes {
115127
self
116128
}
117129

130+
pub fn blocking(mut self, value: Vec<String>) -> Self {
131+
self.blocking = Some(value);
132+
self
133+
}
134+
118135
pub fn category(mut self, value: String) -> Self {
119136
self.category = Some(value);
120137
self
@@ -148,6 +165,11 @@ impl CloudWorkloadSecurityAgentRuleAttributes {
148165
self
149166
}
150167

168+
pub fn disabled(mut self, value: Vec<String>) -> Self {
169+
self.disabled = Some(value);
170+
self
171+
}
172+
151173
pub fn enabled(mut self, value: bool) -> Self {
152174
self.enabled = Some(value);
153175
self
@@ -163,6 +185,11 @@ impl CloudWorkloadSecurityAgentRuleAttributes {
163185
self
164186
}
165187

188+
pub fn monitoring(mut self, value: Vec<String>) -> Self {
189+
self.monitoring = Some(value);
190+
self
191+
}
192+
166193
pub fn name(mut self, value: String) -> Self {
167194
self.name = Some(value);
168195
self
@@ -237,6 +264,7 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAttributes {
237264
Option<Vec<crate::datadogV2::model::CloudWorkloadSecurityAgentRuleAction>>,
238265
> = None;
239266
let mut agent_constraint: Option<String> = None;
267+
let mut blocking: Option<Vec<String>> = None;
240268
let mut category: Option<String> = None;
241269
let mut creation_author_uu_id: Option<String> = None;
242270
let mut creation_date: Option<i64> = None;
@@ -245,9 +273,11 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAttributes {
245273
> = None;
246274
let mut default_rule: Option<bool> = None;
247275
let mut description: Option<String> = None;
276+
let mut disabled: Option<Vec<String>> = None;
248277
let mut enabled: Option<bool> = None;
249278
let mut expression: Option<String> = None;
250279
let mut filters: Option<Vec<String>> = None;
280+
let mut monitoring: Option<Vec<String>> = None;
251281
let mut name: Option<String> = None;
252282
let mut product_tags: Option<Vec<String>> = None;
253283
let mut update_author_uu_id: Option<String> = None;
@@ -275,6 +305,12 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAttributes {
275305
agent_constraint =
276306
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
277307
}
308+
"blocking" => {
309+
if v.is_null() {
310+
continue;
311+
}
312+
blocking = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
313+
}
278314
"category" => {
279315
if v.is_null() {
280316
continue;
@@ -315,6 +351,12 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAttributes {
315351
description =
316352
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
317353
}
354+
"disabled" => {
355+
if v.is_null() {
356+
continue;
357+
}
358+
disabled = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
359+
}
318360
"enabled" => {
319361
if v.is_null() {
320362
continue;
@@ -333,6 +375,12 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAttributes {
333375
}
334376
filters = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
335377
}
378+
"monitoring" => {
379+
if v.is_null() {
380+
continue;
381+
}
382+
monitoring = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
383+
}
336384
"name" => {
337385
if v.is_null() {
338386
continue;
@@ -389,15 +437,18 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAttributes {
389437
let content = CloudWorkloadSecurityAgentRuleAttributes {
390438
actions,
391439
agent_constraint,
440+
blocking,
392441
category,
393442
creation_author_uu_id,
394443
creation_date,
395444
creator,
396445
default_rule,
397446
description,
447+
disabled,
398448
enabled,
399449
expression,
400450
filters,
451+
monitoring,
401452
name,
402453
product_tags,
403454
update_author_uu_id,

0 commit comments

Comments
 (0)