Skip to content

Commit 823e521

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 37786faa of spec repo
1 parent 44f3b8e commit 823e521

4 files changed

Lines changed: 25 additions & 6 deletions

File tree

.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.169501",
8-
"spec_repo_commit": "21cf6edb"
7+
"regenerated": "2025-04-09 12:18:32.224198",
8+
"spec_repo_commit": "37786faa"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-08 20:55:42.184778",
13-
"spec_repo_commit": "21cf6edb"
12+
"regenerated": "2025-04-09 12:18:32.238904",
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:

src/datadog_api_client/v2/model/security_monitoring_rule_case_action_options.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,28 @@ class SecurityMonitoringRuleCaseActionOptions(ModelNormal):
2424
def openapi_types(_):
2525
return {
2626
"duration": (int,),
27+
"user_behavior_name": (str,),
2728
}
2829

2930
attribute_map = {
3031
"duration": "duration",
32+
"user_behavior_name": "userBehaviorName",
3133
}
3234

33-
def __init__(self_, duration: Union[int, UnsetType] = unset, **kwargs):
35+
def __init__(
36+
self_, duration: Union[int, UnsetType] = unset, user_behavior_name: Union[str, UnsetType] = unset, **kwargs
37+
):
3438
"""
3539
Options for the rule action
3640
3741
:param duration: Duration of the action in seconds. 0 indicates no expiration.
3842
:type duration: int, optional
43+
44+
:param user_behavior_name: Name of the user behavior.
45+
:type user_behavior_name: str, optional
3946
"""
4047
if duration is not unset:
4148
kwargs["duration"] = duration
49+
if user_behavior_name is not unset:
50+
kwargs["user_behavior_name"] = user_behavior_name
4251
super().__init__(kwargs)

src/datadog_api_client/v2/model/security_monitoring_rule_case_action_type.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ class SecurityMonitoringRuleCaseActionType(ModelSimple):
1616
"""
1717
The action type.
1818
19-
:param value: Must be one of ["block_ip", "block_user"].
19+
:param value: Must be one of ["block_ip", "block_user", "user_behavior"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"block_ip",
2525
"block_user",
26+
"user_behavior",
2627
}
2728
BLOCK_IP: ClassVar["SecurityMonitoringRuleCaseActionType"]
2829
BLOCK_USER: ClassVar["SecurityMonitoringRuleCaseActionType"]
30+
USER_BEHAVIOR: ClassVar["SecurityMonitoringRuleCaseActionType"]
2931

3032
@cached_property
3133
def openapi_types(_):
@@ -36,3 +38,4 @@ def openapi_types(_):
3638

3739
SecurityMonitoringRuleCaseActionType.BLOCK_IP = SecurityMonitoringRuleCaseActionType("block_ip")
3840
SecurityMonitoringRuleCaseActionType.BLOCK_USER = SecurityMonitoringRuleCaseActionType("block_user")
41+
SecurityMonitoringRuleCaseActionType.USER_BEHAVIOR = SecurityMonitoringRuleCaseActionType("user_behavior")

0 commit comments

Comments
 (0)