Skip to content

Commit 5d6fd35

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 478ca84d of spec repo
1 parent ec4000d commit 5d6fd35

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-7
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-04-08 20:55:42.262152",
8-
"spec_repo_commit": "21cf6edb"
7+
"regenerated": "2025-04-09 12:36:12.263821",
8+
"spec_repo_commit": "478ca84d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-08 20:55:42.277778",
13-
"spec_repo_commit": "21cf6edb"
12+
"regenerated": "2025-04-09 12:36:12.279525",
13+
"spec_repo_commit": "478ca84d"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27215,6 +27215,7 @@ components:
2721527215
$ref: '#/components/schemas/SecurityMonitoringRuleCaseActionType'
2721627216
type: object
2721727217
SecurityMonitoringRuleCaseActionOptions:
27218+
additionalProperties: true
2721827219
description: Options for the rule action
2721927220
properties:
2722027221
duration:
@@ -27223,16 +27224,24 @@ components:
2722327224
format: int64
2722427225
minimum: 0
2722527226
type: integer
27227+
userBehaviorName:
27228+
$ref: '#/components/schemas/SecurityMonitoringRuleCaseActionOptionsUserBehaviorName'
2722627229
type: object
27230+
SecurityMonitoringRuleCaseActionOptionsUserBehaviorName:
27231+
description: Used with the case action of type 'user_behavior'. The value specified
27232+
in this field will be applied as a risk tag to all users affected by the rule.
27233+
type: string
2722727234
SecurityMonitoringRuleCaseActionType:
2722827235
description: The action type.
2722927236
enum:
2723027237
- block_ip
2723127238
- block_user
27239+
- user_behavior
2723227240
type: string
2723327241
x-enum-varnames:
2723427242
- BLOCK_IP
2723527243
- BLOCK_USER
27244+
- USER_BEHAVIOR
2723627245
SecurityMonitoringRuleCaseCreate:
2723727246
description: Case when signal is generated.
2723827247
properties:

lib/datadog_api_client/v2/models/security_monitoring_rule_case_action_options.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,26 @@ class SecurityMonitoringRuleCaseActionOptions
2424
# Duration of the action in seconds. 0 indicates no expiration.
2525
attr_reader :duration
2626

27+
# Used with the case action of type 'user_behavior'. The value specified in this field will be applied as a risk tag to all users affected by the rule.
28+
attr_accessor :user_behavior_name
29+
2730
attr_accessor :additional_properties
2831

2932
# Attribute mapping from ruby-style variable name to JSON key.
3033
# @!visibility private
3134
def self.attribute_map
3235
{
33-
:'duration' => :'duration'
36+
:'duration' => :'duration',
37+
:'user_behavior_name' => :'userBehaviorName'
3438
}
3539
end
3640

3741
# Attribute type mapping.
3842
# @!visibility private
3943
def self.openapi_types
4044
{
41-
:'duration' => :'Integer'
45+
:'duration' => :'Integer',
46+
:'user_behavior_name' => :'String'
4247
}
4348
end
4449

@@ -63,6 +68,10 @@ def initialize(attributes = {})
6368
if attributes.key?(:'duration')
6469
self.duration = attributes[:'duration']
6570
end
71+
72+
if attributes.key?(:'user_behavior_name')
73+
self.user_behavior_name = attributes[:'user_behavior_name']
74+
end
6675
end
6776

6877
# Check to see if the all the properties in the model are valid
@@ -110,14 +119,15 @@ def ==(o)
110119
return true if self.equal?(o)
111120
self.class == o.class &&
112121
duration == o.duration &&
122+
user_behavior_name == o.user_behavior_name &&
113123
additional_properties == o.additional_properties
114124
end
115125

116126
# Calculates hash code according to all attributes.
117127
# @return [Integer] Hash code
118128
# @!visibility private
119129
def hash
120-
[duration, additional_properties].hash
130+
[duration, user_behavior_name, additional_properties].hash
121131
end
122132
end
123133
end

lib/datadog_api_client/v2/models/security_monitoring_rule_case_action_type.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ class SecurityMonitoringRuleCaseActionType
2323

2424
BLOCK_IP = "block_ip".freeze
2525
BLOCK_USER = "block_user".freeze
26+
USER_BEHAVIOR = "user_behavior".freeze
2627
end
2728
end

0 commit comments

Comments
 (0)