Skip to content

Commit 6892f36

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

File tree

74 files changed

+1035
-206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1035
-206
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": "2025-05-14 15:44:18.586011",
8-
"spec_repo_commit": "64f5e7ee"
7+
"regenerated": "2025-05-15 12:25:27.446694",
8+
"spec_repo_commit": "7d24e85a"
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 12:25:27.463131",
13+
"spec_repo_commit": "7d24e85a"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7469,6 +7469,50 @@ components:
74697469
type: string
74707470
kill:
74717471
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleKill'
7472+
metadata:
7473+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionMetadata'
7474+
set:
7475+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionSet'
7476+
type: object
7477+
CloudWorkloadSecurityAgentRuleActionMetadata:
7478+
description: The metadata action applied on the scope matching the rule
7479+
properties:
7480+
image_tag:
7481+
description: The image tag of the metadata action
7482+
type: string
7483+
service:
7484+
description: The service of the metadata action
7485+
type: string
7486+
short_image:
7487+
description: The short image of the metadata action
7488+
type: string
7489+
type: object
7490+
CloudWorkloadSecurityAgentRuleActionSet:
7491+
description: The set action applied on the scope matching the rule
7492+
properties:
7493+
append:
7494+
description: Whether the value should be appended to the field
7495+
type: boolean
7496+
field:
7497+
description: The field of the set action
7498+
type: string
7499+
name:
7500+
description: The name of the set action
7501+
type: string
7502+
scope:
7503+
description: The scope of the set action
7504+
type: string
7505+
size:
7506+
description: The size of the set action
7507+
format: int64
7508+
type: integer
7509+
ttl:
7510+
description: The time to live of the set action
7511+
format: int64
7512+
type: integer
7513+
value:
7514+
description: The value of the set action
7515+
type: string
74727516
type: object
74737517
CloudWorkloadSecurityAgentRuleActions:
74747518
description: The array of actions the rule can perform if triggered
@@ -7484,6 +7528,11 @@ components:
74847528
agentConstraint:
74857529
description: The version of the Agent
74867530
type: string
7531+
blocking:
7532+
description: The blocking policies that the rule belongs to
7533+
items:
7534+
type: string
7535+
type: array
74877536
category:
74887537
description: The category of the Agent rule
74897538
example: Process Activity
@@ -7507,6 +7556,11 @@ components:
75077556
description: The description of the Agent rule
75087557
example: My Agent rule
75097558
type: string
7559+
disabled:
7560+
description: The disabled policies that the rule belongs to
7561+
items:
7562+
type: string
7563+
type: array
75107564
enabled:
75117565
description: Whether the Agent rule is enabled
75127566
example: true
@@ -7520,6 +7574,11 @@ components:
75207574
items:
75217575
type: string
75227576
type: array
7577+
monitoring:
7578+
description: The monitoring policies that the rule belongs to
7579+
items:
7580+
type: string
7581+
type: array
75237582
name:
75247583
description: The name of the Agent rule
75257584
example: my_agent_rule
@@ -7554,10 +7613,20 @@ components:
75547613
CloudWorkloadSecurityAgentRuleCreateAttributes:
75557614
description: Create a new Cloud Workload Security Agent rule.
75567615
properties:
7616+
blocking:
7617+
description: The blocking policies that the rule belongs to
7618+
items:
7619+
type: string
7620+
type: array
75577621
description:
75587622
description: The description of the Agent rule.
75597623
example: My Agent rule
75607624
type: string
7625+
disabled:
7626+
description: The disabled policies that the rule belongs to
7627+
items:
7628+
type: string
7629+
type: array
75617630
enabled:
75627631
description: Whether the Agent rule is enabled
75637632
example: true
@@ -7571,6 +7640,11 @@ components:
75717640
items:
75727641
type: string
75737642
type: array
7643+
monitoring:
7644+
description: The monitoring policies that the rule belongs to
7645+
items:
7646+
type: string
7647+
type: array
75747648
name:
75757649
description: The name of the Agent rule.
75767650
example: my_agent_rule
@@ -7661,10 +7735,20 @@ components:
76617735
CloudWorkloadSecurityAgentRuleUpdateAttributes:
76627736
description: Update an existing Cloud Workload Security Agent rule
76637737
properties:
7738+
blocking:
7739+
description: The blocking policies that the rule belongs to
7740+
items:
7741+
type: string
7742+
type: array
76647743
description:
76657744
description: The description of the Agent rule
76667745
example: My Agent rule
76677746
type: string
7747+
disabled:
7748+
description: The disabled policies that the rule belongs to
7749+
items:
7750+
type: string
7751+
type: array
76687752
enabled:
76697753
description: Whether the Agent rule is enabled
76707754
example: true
@@ -7673,6 +7757,11 @@ components:
76737757
description: The SECL expression of the Agent rule
76747758
example: exec.file.name == "sh"
76757759
type: string
7760+
monitoring:
7761+
description: The monitoring policies that the rule belongs to
7762+
items:
7763+
type: string
7764+
type: array
76767765
policy_id:
76777766
description: The ID of the policy where the Agent rule is saved
76787767
example: a8c8e364-6556-434d-b798-a4c23de29c0b

src/datadogV2/model/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3100,6 +3100,10 @@ pub mod model_cloud_workload_security_agent_rule_action;
31003100
pub use self::model_cloud_workload_security_agent_rule_action::CloudWorkloadSecurityAgentRuleAction;
31013101
pub mod model_cloud_workload_security_agent_rule_kill;
31023102
pub use self::model_cloud_workload_security_agent_rule_kill::CloudWorkloadSecurityAgentRuleKill;
3103+
pub mod model_cloud_workload_security_agent_rule_action_metadata;
3104+
pub use self::model_cloud_workload_security_agent_rule_action_metadata::CloudWorkloadSecurityAgentRuleActionMetadata;
3105+
pub mod model_cloud_workload_security_agent_rule_action_set;
3106+
pub use self::model_cloud_workload_security_agent_rule_action_set::CloudWorkloadSecurityAgentRuleActionSet;
31033107
pub mod model_cloud_workload_security_agent_rule_creator_attributes;
31043108
pub use self::model_cloud_workload_security_agent_rule_creator_attributes::CloudWorkloadSecurityAgentRuleCreatorAttributes;
31053109
pub mod model_cloud_workload_security_agent_rule_updater_attributes;

src/datadogV2/model/model_cloud_workload_security_agent_rule_action.rs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ pub struct CloudWorkloadSecurityAgentRuleAction {
1717
/// Kill system call applied on the container matching the rule
1818
#[serde(rename = "kill")]
1919
pub kill: Option<crate::datadogV2::model::CloudWorkloadSecurityAgentRuleKill>,
20+
/// The metadata action applied on the scope matching the rule
21+
#[serde(rename = "metadata")]
22+
pub metadata: Option<crate::datadogV2::model::CloudWorkloadSecurityAgentRuleActionMetadata>,
23+
/// The set action applied on the scope matching the rule
24+
#[serde(rename = "set")]
25+
pub set: Option<crate::datadogV2::model::CloudWorkloadSecurityAgentRuleActionSet>,
2026
#[serde(flatten)]
2127
pub additional_properties: std::collections::BTreeMap<String, serde_json::Value>,
2228
#[serde(skip)]
@@ -29,6 +35,8 @@ impl CloudWorkloadSecurityAgentRuleAction {
2935
CloudWorkloadSecurityAgentRuleAction {
3036
filter: None,
3137
kill: None,
38+
metadata: None,
39+
set: None,
3240
additional_properties: std::collections::BTreeMap::new(),
3341
_unparsed: false,
3442
}
@@ -47,6 +55,22 @@ impl CloudWorkloadSecurityAgentRuleAction {
4755
self
4856
}
4957

58+
pub fn metadata(
59+
mut self,
60+
value: crate::datadogV2::model::CloudWorkloadSecurityAgentRuleActionMetadata,
61+
) -> Self {
62+
self.metadata = Some(value);
63+
self
64+
}
65+
66+
pub fn set(
67+
mut self,
68+
value: crate::datadogV2::model::CloudWorkloadSecurityAgentRuleActionSet,
69+
) -> Self {
70+
self.set = Some(value);
71+
self
72+
}
73+
5074
pub fn additional_properties(
5175
mut self,
5276
value: std::collections::BTreeMap<String, serde_json::Value>,
@@ -82,6 +106,12 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAction {
82106
let mut filter: Option<String> = None;
83107
let mut kill: Option<crate::datadogV2::model::CloudWorkloadSecurityAgentRuleKill> =
84108
None;
109+
let mut metadata: Option<
110+
crate::datadogV2::model::CloudWorkloadSecurityAgentRuleActionMetadata,
111+
> = None;
112+
let mut set: Option<
113+
crate::datadogV2::model::CloudWorkloadSecurityAgentRuleActionSet,
114+
> = None;
85115
let mut additional_properties: std::collections::BTreeMap<
86116
String,
87117
serde_json::Value,
@@ -102,6 +132,18 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAction {
102132
}
103133
kill = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
104134
}
135+
"metadata" => {
136+
if v.is_null() {
137+
continue;
138+
}
139+
metadata = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
140+
}
141+
"set" => {
142+
if v.is_null() {
143+
continue;
144+
}
145+
set = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
146+
}
105147
&_ => {
106148
if let Ok(value) = serde_json::from_value(v.clone()) {
107149
additional_properties.insert(k, value);
@@ -113,6 +155,8 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAction {
113155
let content = CloudWorkloadSecurityAgentRuleAction {
114156
filter,
115157
kill,
158+
metadata,
159+
set,
116160
additional_properties,
117161
_unparsed,
118162
};

0 commit comments

Comments
 (0)