Skip to content

Commit 6b5e5f9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f8db1e11 of spec repo
1 parent 44f3b8e commit 6b5e5f9

4 files changed

Lines changed: 27 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:41:16.446548",
8+
"spec_repo_commit": "f8db1e11"
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:41:16.463550",
13+
"spec_repo_commit": "f8db1e11"
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: {}
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:

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: 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.
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)