Skip to content

Commit 71c500f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2a9c644 of spec repo
1 parent 27f9b78 commit 71c500f

File tree

52 files changed

+2184
-2981
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2184
-2981
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10236,8 +10236,11 @@ components:
1023610236
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionSet'
1023710237
type: object
1023810238
CloudWorkloadSecurityAgentRuleActionHash:
10239-
additionalProperties: {}
10240-
description: An empty object indicating the hash action
10239+
description: Hash file specified by the field attribute
10240+
properties:
10241+
field:
10242+
description: The field of the hash action
10243+
type: string
1024110244
type: object
1024210245
CloudWorkloadSecurityAgentRuleActionMetadata:
1024310246
description: The metadata action applied on the scope matching the rule

examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
),
4747
),
4848
CloudWorkloadSecurityAgentRuleAction(
49-
hash=CloudWorkloadSecurityAgentRuleActionHash(),
49+
hash=CloudWorkloadSecurityAgentRuleActionHash(
50+
field="exec.file",
51+
),
5052
),
5153
],
5254
),

examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
CloudWorkloadSecurityAgentRuleAction(
3838
set=CloudWorkloadSecurityAgentRuleActionSet(
3939
name="test_set",
40-
expression="open.file.path",
40+
expression="exec.file.path",
4141
default_value="/dev/null",
4242
scope="process",
4343
),

src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(
7373
:param filter: SECL expression used to target the container to apply the action on
7474
:type filter: str, optional
7575
76-
:param hash: An empty object indicating the hash action
76+
:param hash: Hash file specified by the field attribute
7777
:type hash: CloudWorkloadSecurityAgentRuleActionHash, optional
7878
7979
:param kill: Kill system call applied on the container matching the rule

src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_action_hash.py

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,34 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6+
from typing import Union
67

78
from datadog_api_client.model_utils import (
89
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
913
)
1014

1115

1216
class CloudWorkloadSecurityAgentRuleActionHash(ModelNormal):
13-
def __init__(self_, **kwargs):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"field": (str,),
21+
}
22+
23+
attribute_map = {
24+
"field": "field",
25+
}
26+
27+
def __init__(self_, field: Union[str, UnsetType] = unset, **kwargs):
1428
"""
15-
An empty object indicating the hash action
29+
Hash file specified by the field attribute
30+
31+
:param field: The field of the hash action
32+
:type field: str, optional
1633
"""
34+
if field is not unset:
35+
kwargs["field"] = field
1736
super().__init__(kwargs)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-10T15:20:39.566Z
1+
2025-11-24T13:58:56.166Z

tests/v2/cassettes/test_scenarios/test_create_a_workload_protection_agent_rule_returns_bad_request_response.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"description":"My agent policy","enabled":true,"hostTags":["env:staging"],"name":"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1760109639"},"type":"policy"}}'
3+
body: '{"data":{"attributes":{"description":"My agent policy","enabled":true,"hostTags":["env:staging"],"name":"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1763992736"},"type":"policy"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,16 +10,16 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy
1111
response:
1212
body:
13-
string: '{"data":{"id":"sr5-i0h-lty","type":"policy","attributes":{"blockingRulesCount":0,"datadogManaged":false,"description":"My
14-
agent policy","disabledRulesCount":1,"enabled":true,"hostTagsLists":[["env:staging"]],"monitoringRulesCount":7,"name":"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1760109639","pinned":false,"policyVersion":"1","ruleCount":8,"updateDate":1760109639958,"updater":{"name":"frog","handle":"[email protected]"}}}}'
13+
string: '{"data":{"id":"w9c-4xq-y9a","type":"policy","attributes":{"blockingRulesCount":0,"datadogManaged":false,"description":"My
14+
agent policy","disabledRulesCount":1,"enabled":true,"hostTagsLists":[["env:staging"]],"monitoringRulesCount":7,"name":"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1763992736","pinned":false,"policyVersion":"1","ruleCount":8,"updateDate":1763992736520,"updater":{"name":"frog","handle":"[email protected]"}}}}'
1515
headers:
1616
content-type:
1717
- application/json
1818
status:
1919
code: 200
2020
message: OK
2121
- request:
22-
body: '{"data":{"attributes":{"description":"My Agent rule","enabled":true,"expression":"exec.file.name","filters":[],"name":"my_agent_rule","policy_id":"sr5-i0h-lty","product_tags":[]},"type":"agent_rule"}}'
22+
body: '{"data":{"attributes":{"description":"My Agent rule","enabled":true,"expression":"exec.file.name","filters":[],"name":"my_agent_rule","policy_id":"w9c-4xq-y9a","product_tags":[]},"type":"agent_rule"}}'
2323
headers:
2424
accept:
2525
- application/json
@@ -29,8 +29,8 @@ interactions:
2929
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules
3030
response:
3131
body:
32-
string: '{"errors":["input_validation_error(Field ''name'' is invalid: the name
33-
''my_agent_rule'' is already used by a custom rule)"]}'
32+
string: '{"errors":["input_validation_error(Field ''expression'' is invalid:
33+
rule `my_agent_rule` error: rule syntax error: bool expected: 1:1: exec.file.name\n^)"]}'
3434
headers:
3535
content-type:
3636
- application/json
@@ -43,7 +43,7 @@ interactions:
4343
accept:
4444
- '*/*'
4545
method: DELETE
46-
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/sr5-i0h-lty
46+
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/w9c-4xq-y9a
4747
response:
4848
body:
4949
string: ''
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-10T15:20:41.757Z
1+
2025-11-24T13:58:58.874Z

tests/v2/cassettes/test_scenarios/test_create_a_workload_protection_agent_rule_returns_ok_response.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"description":"My agent policy","enabled":true,"hostTags":["env:staging"],"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1760109641"},"type":"policy"}}'
3+
body: '{"data":{"attributes":{"description":"My agent policy","enabled":true,"hostTags":["env:staging"],"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1763992738"},"type":"policy"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,8 +10,8 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy
1111
response:
1212
body:
13-
string: '{"data":{"id":"cwy-qfn-4k8","type":"policy","attributes":{"blockingRulesCount":0,"datadogManaged":false,"description":"My
14-
agent policy","disabledRulesCount":1,"enabled":true,"hostTagsLists":[["env:staging"]],"monitoringRulesCount":7,"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1760109641","pinned":false,"policyVersion":"1","ruleCount":8,"updateDate":1760109642133,"updater":{"name":"frog","handle":"[email protected]"}}}}'
13+
string: '{"data":{"id":"tlt-msl-sfd","type":"policy","attributes":{"blockingRulesCount":0,"datadogManaged":false,"description":"My
14+
agent policy","disabledRulesCount":1,"enabled":true,"hostTagsLists":[["env:staging"]],"monitoringRulesCount":7,"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1763992738","pinned":false,"policyVersion":"1","ruleCount":8,"updateDate":1763992739217,"updater":{"name":"frog","handle":"[email protected]"}}}}'
1515
headers:
1616
content-type:
1717
- application/json
@@ -20,7 +20,7 @@ interactions:
2020
message: OK
2121
- request:
2222
body: '{"data":{"attributes":{"agent_version":"> 7.60","description":"My Agent
23-
rule","enabled":true,"expression":"exec.file.name == \"sh\"","filters":[],"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1760109641","policy_id":"cwy-qfn-4k8","product_tags":[]},"type":"agent_rule"}}'
23+
rule","enabled":true,"expression":"exec.file.name == \"sh\"","filters":[],"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1763992738","policy_id":"tlt-msl-sfd","product_tags":[]},"type":"agent_rule"}}'
2424
headers:
2525
accept:
2626
- application/json
@@ -30,10 +30,10 @@ interactions:
3030
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules
3131
response:
3232
body:
33-
string: '{"data":{"id":"iua-dxr-uvh","type":"agent_rule","attributes":{"category":"Process
34-
Activity","creationDate":1760109643225,"creator":{"name":"frog","handle":"[email protected]"},"defaultRule":false,"description":"My
33+
string: '{"data":{"id":"ps2-esj-nuh","type":"agent_rule","attributes":{"category":"Process
34+
Activity","creationDate":1763992740362,"creator":{"name":"frog","handle":"[email protected]"},"defaultRule":false,"description":"My
3535
Agent rule","enabled":true,"expression":"exec.file.name == \"sh\"","filters":["os
36-
== \"linux\""],"monitoring":["cwy-qfn-4k8"],"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1760109641","product_tags":[],"updateDate":1760109643225,"updater":{"name":"frog","handle":"[email protected]"}}}}'
36+
== \"linux\""],"monitoring":["tlt-msl-sfd"],"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1763992738","product_tags":[],"updateDate":1763992740362,"updater":{"name":"frog","handle":"[email protected]"}}}}'
3737
headers:
3838
content-type:
3939
- application/json
@@ -46,7 +46,7 @@ interactions:
4646
accept:
4747
- '*/*'
4848
method: DELETE
49-
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/iua-dxr-uvh
49+
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/ps2-esj-nuh
5050
response:
5151
body:
5252
string: ''
@@ -62,7 +62,7 @@ interactions:
6262
accept:
6363
- '*/*'
6464
method: DELETE
65-
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/cwy-qfn-4k8
65+
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/tlt-msl-sfd
6666
response:
6767
body:
6868
string: ''
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-10T15:20:46.004Z
1+
2025-11-24T13:59:02.396Z

0 commit comments

Comments
 (0)