Skip to content

Commit f40f023

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 37786faa of spec repo
1 parent ec4000d commit f40f023

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-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:18:29.972307",
8+
"spec_repo_commit": "37786faa"
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:18:29.989721",
13+
"spec_repo_commit": "37786faa"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27223,16 +27223,23 @@ components:
2722327223
format: int64
2722427224
minimum: 0
2722527225
type: integer
27226+
userBehaviorName:
27227+
$ref: '#/components/schemas/SecurityMonitoringRuleCaseActionOptionsUserBehaviorName'
2722627228
type: object
27229+
SecurityMonitoringRuleCaseActionOptionsUserBehaviorName:
27230+
description: Name of the user behavior.
27231+
type: string
2722727232
SecurityMonitoringRuleCaseActionType:
2722827233
description: The action type.
2722927234
enum:
2723027235
- block_ip
2723127236
- block_user
27237+
- user_behavior
2723227238
type: string
2723327239
x-enum-varnames:
2723427240
- BLOCK_IP
2723527241
- BLOCK_USER
27242+
- USER_BEHAVIOR
2723627243
SecurityMonitoringRuleCaseCreate:
2723727244
description: Case when signal is generated.
2723827245
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+
# Name of the user behavior.
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)