From df2373cb92607b2ad9c790e99dffbf5bd7de1a24 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 28 Aug 2026 11:06:50 +0000 Subject: [PATCH] Regenerate client from commit 1f11370 of spec repo --- .generator/schemas/v2/openapi.yaml | 15 ++++++++ ...rkload_security_agent_policy_attributes.rs | 37 +++++++++++++++++++ ...oud_workload_security_agent_rule_action.rs | 17 +++++++++ ...workload_security_agent_rule_action_set.rs | 18 +++++++++ 4 files changed, 87 insertions(+) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 217723d72a..f87aa28ffe 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -19082,6 +19082,11 @@ components: format: int32 maximum: 2147483647 type: integer + contentPackUpdateAvailable: + description: "Whether a content pack update is available for the policy." + example: false + nullable: true + type: boolean datadogManaged: description: "Whether the policy is managed by Datadog" example: false @@ -19148,6 +19153,10 @@ components: format: int32 maximum: 2147483647 type: integer + sourceDefaultPolicyId: + description: "The ID of the Datadog-managed default policy this policy is sourced from." + example: "threat-detection.policy" + type: string updateDate: description: "Timestamp in milliseconds when the policy was last updated" example: 1624366480320 @@ -19330,6 +19339,9 @@ components: CloudWorkloadSecurityAgentRuleAction: description: "The action the rule can perform if triggered" properties: + disabled: + description: "Whether the action is disabled." + type: boolean filter: description: "SECL expression used to target the container to apply the action on" type: string @@ -19386,6 +19398,9 @@ components: scope: description: "The scope of the set action." type: string + scope_field: + description: "The scope field of the set action." + type: string size: description: "The size of the set action." format: int64 diff --git a/src/datadogV2/model/model_cloud_workload_security_agent_policy_attributes.rs b/src/datadogV2/model/model_cloud_workload_security_agent_policy_attributes.rs index 30dd3ed45b..86dc11fb12 100644 --- a/src/datadogV2/model/model_cloud_workload_security_agent_policy_attributes.rs +++ b/src/datadogV2/model/model_cloud_workload_security_agent_policy_attributes.rs @@ -14,6 +14,13 @@ pub struct CloudWorkloadSecurityAgentPolicyAttributes { /// The number of rules with the blocking feature in this policy #[serde(rename = "blockingRulesCount")] pub blocking_rules_count: Option, + /// Whether a content pack update is available for the policy. + #[serde( + rename = "contentPackUpdateAvailable", + default, + with = "::serde_with::rust::double_option" + )] + pub content_pack_update_available: Option>, /// Whether the policy is managed by Datadog #[serde(rename = "datadogManaged")] pub datadog_managed: Option, @@ -53,6 +60,9 @@ pub struct CloudWorkloadSecurityAgentPolicyAttributes { /// The number of rules in this policy #[serde(rename = "ruleCount")] pub rule_count: Option, + /// The ID of the Datadog-managed default policy this policy is sourced from. + #[serde(rename = "sourceDefaultPolicyId")] + pub source_default_policy_id: Option, /// Timestamp in milliseconds when the policy was last updated #[serde(rename = "updateDate")] pub update_date: Option, @@ -76,6 +86,7 @@ impl CloudWorkloadSecurityAgentPolicyAttributes { pub fn new() -> CloudWorkloadSecurityAgentPolicyAttributes { CloudWorkloadSecurityAgentPolicyAttributes { blocking_rules_count: None, + content_pack_update_available: None, datadog_managed: None, description: None, disabled_rules_count: None, @@ -89,6 +100,7 @@ impl CloudWorkloadSecurityAgentPolicyAttributes { policy_version: None, priority: None, rule_count: None, + source_default_policy_id: None, update_date: None, updated_at: None, updater: None, @@ -103,6 +115,11 @@ impl CloudWorkloadSecurityAgentPolicyAttributes { self } + pub fn content_pack_update_available(mut self, value: Option) -> Self { + self.content_pack_update_available = Some(value); + self + } + pub fn datadog_managed(mut self, value: bool) -> Self { self.datadog_managed = Some(value); self @@ -168,6 +185,11 @@ impl CloudWorkloadSecurityAgentPolicyAttributes { self } + pub fn source_default_policy_id(mut self, value: String) -> Self { + self.source_default_policy_id = Some(value); + self + } + pub fn update_date(mut self, value: i64) -> Self { self.update_date = Some(value); self @@ -227,6 +249,7 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentPolicyAttributes { M: MapAccess<'a>, { let mut blocking_rules_count: Option = None; + let mut content_pack_update_available: Option> = None; let mut datadog_managed: Option = None; let mut description: Option = None; let mut disabled_rules_count: Option = None; @@ -240,6 +263,7 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentPolicyAttributes { let mut policy_version: Option = None; let mut priority: Option = None; let mut rule_count: Option = None; + let mut source_default_policy_id: Option = None; let mut update_date: Option = None; let mut updated_at: Option = None; let mut updater: Option< @@ -263,6 +287,10 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentPolicyAttributes { blocking_rules_count = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "contentPackUpdateAvailable" => { + content_pack_update_available = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "datadogManaged" => { if v.is_null() { continue; @@ -348,6 +376,13 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentPolicyAttributes { } rule_count = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "sourceDefaultPolicyId" => { + if v.is_null() { + continue; + } + source_default_policy_id = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "updateDate" => { if v.is_null() { continue; @@ -383,6 +418,7 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentPolicyAttributes { let content = CloudWorkloadSecurityAgentPolicyAttributes { blocking_rules_count, + content_pack_update_available, datadog_managed, description, disabled_rules_count, @@ -396,6 +432,7 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentPolicyAttributes { policy_version, priority, rule_count, + source_default_policy_id, update_date, updated_at, updater, diff --git a/src/datadogV2/model/model_cloud_workload_security_agent_rule_action.rs b/src/datadogV2/model/model_cloud_workload_security_agent_rule_action.rs index 87c4ba4bac..a7cd84955d 100644 --- a/src/datadogV2/model/model_cloud_workload_security_agent_rule_action.rs +++ b/src/datadogV2/model/model_cloud_workload_security_agent_rule_action.rs @@ -11,6 +11,9 @@ use std::fmt::{self, Formatter}; #[skip_serializing_none] #[derive(Clone, Debug, PartialEq, Serialize)] pub struct CloudWorkloadSecurityAgentRuleAction { + /// Whether the action is disabled. + #[serde(rename = "disabled")] + pub disabled: Option, /// SECL expression used to target the container to apply the action on #[serde(rename = "filter")] pub filter: Option, @@ -36,6 +39,7 @@ pub struct CloudWorkloadSecurityAgentRuleAction { impl CloudWorkloadSecurityAgentRuleAction { pub fn new() -> CloudWorkloadSecurityAgentRuleAction { CloudWorkloadSecurityAgentRuleAction { + disabled: None, filter: None, hash: None, kill: None, @@ -46,6 +50,11 @@ impl CloudWorkloadSecurityAgentRuleAction { } } + pub fn disabled(mut self, value: bool) -> Self { + self.disabled = Some(value); + self + } + pub fn filter(mut self, value: String) -> Self { self.filter = Some(value); self @@ -115,6 +124,7 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAction { where M: MapAccess<'a>, { + let mut disabled: Option = None; let mut filter: Option = None; let mut hash: Option< crate::datadogV2::model::CloudWorkloadSecurityAgentRuleActionHash, @@ -135,6 +145,12 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAction { while let Some((k, v)) = map.next_entry::()? { match k.as_str() { + "disabled" => { + if v.is_null() { + continue; + } + disabled = Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "filter" => { if v.is_null() { continue; @@ -174,6 +190,7 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleAction { } let content = CloudWorkloadSecurityAgentRuleAction { + disabled, filter, hash, kill, diff --git a/src/datadogV2/model/model_cloud_workload_security_agent_rule_action_set.rs b/src/datadogV2/model/model_cloud_workload_security_agent_rule_action_set.rs index 0fc3b02ffa..76ec3e7314 100644 --- a/src/datadogV2/model/model_cloud_workload_security_agent_rule_action_set.rs +++ b/src/datadogV2/model/model_cloud_workload_security_agent_rule_action_set.rs @@ -32,6 +32,9 @@ pub struct CloudWorkloadSecurityAgentRuleActionSet { /// The scope of the set action. #[serde(rename = "scope")] pub scope: Option, + /// The scope field of the set action. + #[serde(rename = "scope_field")] + pub scope_field: Option, /// The size of the set action. #[serde(rename = "size")] pub size: Option, @@ -58,6 +61,7 @@ impl CloudWorkloadSecurityAgentRuleActionSet { inherited: None, name: None, scope: None, + scope_field: None, size: None, ttl: None, value: None, @@ -101,6 +105,11 @@ impl CloudWorkloadSecurityAgentRuleActionSet { self } + pub fn scope_field(mut self, value: String) -> Self { + self.scope_field = Some(value); + self + } + pub fn size(mut self, value: i64) -> Self { self.size = Some(value); self @@ -158,6 +167,7 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleActionSet { let mut inherited: Option = None; let mut name: Option = None; let mut scope: Option = None; + let mut scope_field: Option = None; let mut size: Option = None; let mut ttl: Option = None; let mut value: Option< @@ -214,6 +224,13 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleActionSet { } scope = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "scope_field" => { + if v.is_null() { + continue; + } + scope_field = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "size" => { if v.is_null() { continue; @@ -256,6 +273,7 @@ impl<'de> Deserialize<'de> for CloudWorkloadSecurityAgentRuleActionSet { inherited, name, scope, + scope_field, size, ttl, value,