Skip to content

Commit 60af29a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1a0e3ba of spec repo
1 parent 3635f82 commit 60af29a

File tree

3 files changed

+54
-2
lines changed

3 files changed

+54
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9421,9 +9421,18 @@ components:
94219421
append:
94229422
description: Whether the value should be appended to the field
94239423
type: boolean
9424+
default_value:
9425+
description: The default value of the set action
9426+
type: string
9427+
expression:
9428+
description: The expression of the set action
9429+
type: string
94249430
field:
94259431
description: The field of the set action
94269432
type: string
9433+
inherited:
9434+
description: Whether the value should be inherited
9435+
type: boolean
94279436
name:
94289437
description: The name of the set action
94299438
type: string
@@ -9543,6 +9552,9 @@ components:
95439552
properties:
95449553
actions:
95459554
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
9555+
agent_version:
9556+
description: Constrain the rule to specific versions of the Datadog Agent
9557+
type: string
95469558
blocking:
95479559
description: The blocking policies that the rule belongs to
95489560
items:

lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,18 @@ class CloudWorkloadSecurityAgentRuleActionSet
2424
# Whether the value should be appended to the field
2525
attr_accessor :append
2626

27+
# The default value of the set action
28+
attr_accessor :default_value
29+
30+
# The expression of the set action
31+
attr_accessor :expression
32+
2733
# The field of the set action
2834
attr_accessor :field
2935

36+
# Whether the value should be inherited
37+
attr_accessor :inherited
38+
3039
# The name of the set action
3140
attr_accessor :name
3241

@@ -49,7 +58,10 @@ class CloudWorkloadSecurityAgentRuleActionSet
4958
def self.attribute_map
5059
{
5160
:'append' => :'append',
61+
:'default_value' => :'default_value',
62+
:'expression' => :'expression',
5263
:'field' => :'field',
64+
:'inherited' => :'inherited',
5365
:'name' => :'name',
5466
:'scope' => :'scope',
5567
:'size' => :'size',
@@ -63,7 +75,10 @@ def self.attribute_map
6375
def self.openapi_types
6476
{
6577
:'append' => :'Boolean',
78+
:'default_value' => :'String',
79+
:'expression' => :'String',
6680
:'field' => :'String',
81+
:'inherited' => :'Boolean',
6782
:'name' => :'String',
6883
:'scope' => :'String',
6984
:'size' => :'Integer',
@@ -94,10 +109,22 @@ def initialize(attributes = {})
94109
self.append = attributes[:'append']
95110
end
96111

112+
if attributes.key?(:'default_value')
113+
self.default_value = attributes[:'default_value']
114+
end
115+
116+
if attributes.key?(:'expression')
117+
self.expression = attributes[:'expression']
118+
end
119+
97120
if attributes.key?(:'field')
98121
self.field = attributes[:'field']
99122
end
100123

124+
if attributes.key?(:'inherited')
125+
self.inherited = attributes[:'inherited']
126+
end
127+
101128
if attributes.key?(:'name')
102129
self.name = attributes[:'name']
103130
end
@@ -146,7 +173,10 @@ def ==(o)
146173
return true if self.equal?(o)
147174
self.class == o.class &&
148175
append == o.append &&
176+
default_value == o.default_value &&
177+
expression == o.expression &&
149178
field == o.field &&
179+
inherited == o.inherited &&
150180
name == o.name &&
151181
scope == o.scope &&
152182
size == o.size &&
@@ -159,7 +189,7 @@ def ==(o)
159189
# @return [Integer] Hash code
160190
# @!visibility private
161191
def hash
162-
[append, field, name, scope, size, ttl, value, additional_properties].hash
192+
[append, default_value, expression, field, inherited, name, scope, size, ttl, value, additional_properties].hash
163193
end
164194
end
165195
end

lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class CloudWorkloadSecurityAgentRuleCreateAttributes
2424
# The array of actions the rule can perform if triggered
2525
attr_accessor :actions
2626

27+
# Constrain the rule to specific versions of the Datadog Agent
28+
attr_accessor :agent_version
29+
2730
# The blocking policies that the rule belongs to
2831
attr_accessor :blocking
2932

@@ -61,6 +64,7 @@ class CloudWorkloadSecurityAgentRuleCreateAttributes
6164
def self.attribute_map
6265
{
6366
:'actions' => :'actions',
67+
:'agent_version' => :'agent_version',
6468
:'blocking' => :'blocking',
6569
:'description' => :'description',
6670
:'disabled' => :'disabled',
@@ -79,6 +83,7 @@ def self.attribute_map
7983
def self.openapi_types
8084
{
8185
:'actions' => :'Array<CloudWorkloadSecurityAgentRuleAction>',
86+
:'agent_version' => :'String',
8287
:'blocking' => :'Array<String>',
8388
:'description' => :'String',
8489
:'disabled' => :'Array<String>',
@@ -124,6 +129,10 @@ def initialize(attributes = {})
124129
end
125130
end
126131

132+
if attributes.key?(:'agent_version')
133+
self.agent_version = attributes[:'agent_version']
134+
end
135+
127136
if attributes.key?(:'blocking')
128137
if (value = attributes[:'blocking']).is_a?(Array)
129138
self.blocking = value
@@ -231,6 +240,7 @@ def ==(o)
231240
return true if self.equal?(o)
232241
self.class == o.class &&
233242
actions == o.actions &&
243+
agent_version == o.agent_version &&
234244
blocking == o.blocking &&
235245
description == o.description &&
236246
disabled == o.disabled &&
@@ -248,7 +258,7 @@ def ==(o)
248258
# @return [Integer] Hash code
249259
# @!visibility private
250260
def hash
251-
[actions, blocking, description, disabled, enabled, expression, filters, monitoring, name, policy_id, product_tags, additional_properties].hash
261+
[actions, agent_version, blocking, description, disabled, enabled, expression, filters, monitoring, name, policy_id, product_tags, additional_properties].hash
252262
end
253263
end
254264
end

0 commit comments

Comments
 (0)