From 5e9da05641f6935589899c47131b4954ac8af279 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 24 Aug 2026 15:27:17 +0000 Subject: [PATCH] Regenerate client from commit 07a3330 of spec repo --- .generator/schemas/v2/openapi.yaml | 15 ++++++++++ ...rkload_security_agent_policy_attributes.rb | 30 ++++++++++++++++++- ...oud_workload_security_agent_rule_action.rb | 12 +++++++- ...workload_security_agent_rule_action_set.rb | 12 +++++++- 4 files changed, 66 insertions(+), 3 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6e7246fb7bbe..85386084e09c 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -19045,6 +19045,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 @@ -19111,6 +19116,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 @@ -19293,6 +19302,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 @@ -19349,6 +19361,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/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb index 76546f2410dd..85df22a8abfd 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb @@ -24,6 +24,9 @@ class CloudWorkloadSecurityAgentPolicyAttributes # The number of rules with the blocking feature in this policy attr_reader :blocking_rules_count + # Whether a content pack update is available for the policy. + attr_accessor :content_pack_update_available + # Whether the policy is managed by Datadog attr_accessor :datadog_managed @@ -63,6 +66,9 @@ class CloudWorkloadSecurityAgentPolicyAttributes # The number of rules in this policy attr_reader :rule_count + # The ID of the Datadog-managed default policy this policy is sourced from. + attr_accessor :source_default_policy_id + # Timestamp in milliseconds when the policy was last updated attr_accessor :update_date @@ -82,6 +88,7 @@ class CloudWorkloadSecurityAgentPolicyAttributes def self.attribute_map { :'blocking_rules_count' => :'blockingRulesCount', + :'content_pack_update_available' => :'contentPackUpdateAvailable', :'datadog_managed' => :'datadogManaged', :'description' => :'description', :'disabled_rules_count' => :'disabledRulesCount', @@ -95,6 +102,7 @@ def self.attribute_map :'policy_version' => :'policyVersion', :'priority' => :'priority', :'rule_count' => :'ruleCount', + :'source_default_policy_id' => :'sourceDefaultPolicyId', :'update_date' => :'updateDate', :'updated_at' => :'updatedAt', :'updater' => :'updater', @@ -107,6 +115,7 @@ def self.attribute_map def self.openapi_types { :'blocking_rules_count' => :'Integer', + :'content_pack_update_available' => :'Boolean', :'datadog_managed' => :'Boolean', :'description' => :'String', :'disabled_rules_count' => :'Integer', @@ -120,6 +129,7 @@ def self.openapi_types :'policy_version' => :'String', :'priority' => :'Integer', :'rule_count' => :'Integer', + :'source_default_policy_id' => :'String', :'update_date' => :'Integer', :'updated_at' => :'Integer', :'updater' => :'CloudWorkloadSecurityAgentPolicyUpdaterAttributes', @@ -127,6 +137,14 @@ def self.openapi_types } end + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + :'content_pack_update_available', + ]) + end + # Initializes the object # @param attributes [Hash] Model attributes in the form of hash # @!visibility private @@ -149,6 +167,10 @@ def initialize(attributes = {}) self.blocking_rules_count = attributes[:'blocking_rules_count'] end + if attributes.key?(:'content_pack_update_available') + self.content_pack_update_available = attributes[:'content_pack_update_available'] + end + if attributes.key?(:'datadog_managed') self.datadog_managed = attributes[:'datadog_managed'] end @@ -205,6 +227,10 @@ def initialize(attributes = {}) self.rule_count = attributes[:'rule_count'] end + if attributes.key?(:'source_default_policy_id') + self.source_default_policy_id = attributes[:'source_default_policy_id'] + end + if attributes.key?(:'update_date') self.update_date = attributes[:'update_date'] end @@ -302,6 +328,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && blocking_rules_count == o.blocking_rules_count && + content_pack_update_available == o.content_pack_update_available && datadog_managed == o.datadog_managed && description == o.description && disabled_rules_count == o.disabled_rules_count && @@ -315,6 +342,7 @@ def ==(o) policy_version == o.policy_version && priority == o.priority && rule_count == o.rule_count && + source_default_policy_id == o.source_default_policy_id && update_date == o.update_date && updated_at == o.updated_at && updater == o.updater && @@ -326,7 +354,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [blocking_rules_count, datadog_managed, description, disabled_rules_count, enabled, host_tags, host_tags_lists, monitoring_rules_count, name, pinned, policy_type, policy_version, priority, rule_count, update_date, updated_at, updater, versions, additional_properties].hash + [blocking_rules_count, content_pack_update_available, datadog_managed, description, disabled_rules_count, enabled, host_tags, host_tags_lists, monitoring_rules_count, name, pinned, policy_type, policy_version, priority, rule_count, source_default_policy_id, update_date, updated_at, updater, versions, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb index 080449e05638..62fcb281294f 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb @@ -21,6 +21,9 @@ module DatadogAPIClient::V2 class CloudWorkloadSecurityAgentRuleAction include BaseGenericModel + # Whether the action is disabled. + attr_accessor :disabled + # SECL expression used to target the container to apply the action on attr_accessor :filter @@ -42,6 +45,7 @@ class CloudWorkloadSecurityAgentRuleAction # @!visibility private def self.attribute_map { + :'disabled' => :'disabled', :'filter' => :'filter', :'_hash' => :'hash', :'kill' => :'kill', @@ -54,6 +58,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'disabled' => :'Boolean', :'filter' => :'String', :'_hash' => :'CloudWorkloadSecurityAgentRuleActionHash', :'kill' => :'CloudWorkloadSecurityAgentRuleKill', @@ -80,6 +85,10 @@ def initialize(attributes = {}) end } + if attributes.key?(:'disabled') + self.disabled = attributes[:'disabled'] + end + if attributes.key?(:'filter') self.filter = attributes[:'filter'] end @@ -127,6 +136,7 @@ def to_hash def ==(o) return true if self.equal?(o) self.class == o.class && + disabled == o.disabled && filter == o.filter && _hash == o._hash && kill == o.kill && @@ -139,7 +149,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [filter, _hash, kill, metadata, set, additional_properties].hash + [disabled, filter, _hash, kill, metadata, set, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb index 6414af8dad8f..f013e8da28ed 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb @@ -42,6 +42,9 @@ class CloudWorkloadSecurityAgentRuleActionSet # The scope of the set action. attr_accessor :scope + # The scope field of the set action. + attr_accessor :scope_field + # The size of the set action. attr_accessor :size @@ -64,6 +67,7 @@ def self.attribute_map :'inherited' => :'inherited', :'name' => :'name', :'scope' => :'scope', + :'scope_field' => :'scope_field', :'size' => :'size', :'ttl' => :'ttl', :'value' => :'value' @@ -81,6 +85,7 @@ def self.openapi_types :'inherited' => :'Boolean', :'name' => :'String', :'scope' => :'String', + :'scope_field' => :'String', :'size' => :'Integer', :'ttl' => :'Integer', :'value' => :'CloudWorkloadSecurityAgentRuleActionSetValue' @@ -133,6 +138,10 @@ def initialize(attributes = {}) self.scope = attributes[:'scope'] end + if attributes.key?(:'scope_field') + self.scope_field = attributes[:'scope_field'] + end + if attributes.key?(:'size') self.size = attributes[:'size'] end @@ -179,6 +188,7 @@ def ==(o) inherited == o.inherited && name == o.name && scope == o.scope && + scope_field == o.scope_field && size == o.size && ttl == o.ttl && value == o.value && @@ -189,7 +199,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [append, default_value, expression, field, inherited, name, scope, size, ttl, value, additional_properties].hash + [append, default_value, expression, field, inherited, name, scope, scope_field, size, ttl, value, additional_properties].hash end end end