Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -120,13 +129,22 @@ 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',
:'versions' => :'Array<CloudWorkloadSecurityAgentPolicyVersion>'
}
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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 &&
Expand All @@ -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 &&
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -42,6 +45,7 @@ class CloudWorkloadSecurityAgentRuleAction
# @!visibility private
def self.attribute_map
{
:'disabled' => :'disabled',
:'filter' => :'filter',
:'_hash' => :'hash',
:'kill' => :'kill',
Expand All @@ -54,6 +58,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'disabled' => :'Boolean',
:'filter' => :'String',
:'_hash' => :'CloudWorkloadSecurityAgentRuleActionHash',
:'kill' => :'CloudWorkloadSecurityAgentRuleKill',
Expand All @@ -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
Expand Down Expand Up @@ -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 &&
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -64,6 +67,7 @@ def self.attribute_map
:'inherited' => :'inherited',
:'name' => :'name',
:'scope' => :'scope',
:'scope_field' => :'scope_field',
:'size' => :'size',
:'ttl' => :'ttl',
:'value' => :'value'
Expand All @@ -81,6 +85,7 @@ def self.openapi_types
:'inherited' => :'Boolean',
:'name' => :'String',
:'scope' => :'String',
:'scope_field' => :'String',
:'size' => :'Integer',
:'ttl' => :'Integer',
:'value' => :'CloudWorkloadSecurityAgentRuleActionSetValue'
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 &&
Expand All @@ -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
Loading