Skip to content

Commit bfb5ff5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 4738de3 of spec repo
1 parent 29a9e58 commit bfb5ff5

File tree

47 files changed

+173
-312
lines changed

Some content is hidden

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

47 files changed

+173
-312
lines changed

examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static void main(String[] args) {
2525
.enabled(true)
2626
.hostTagsLists(
2727
Collections.singletonList(Collections.singletonList("env:test")))
28-
.name("my_agent_policy_2"))
28+
.name("examplecsmthreat"))
2929
.type(CloudWorkloadSecurityAgentPolicyType.POLICY));
3030

3131
try {
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-10-16T16:02:45.546Z

src/test/resources/cassettes/features/v2/Create_a_Workload_Protection_agent_rule_returns_Bad_Request_response.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1760109639\"},\"type\":\"policy\"}}"
6+
"json": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1760630565\"},\"type\":\"policy\"}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"data\":{\"id\":\"sr5-i0h-lty\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My 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\":\"frog@datadoghq.com\"}}}}",
15+
"body": "{\"data\":{\"id\":\"qte-y0f-deh\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:staging\"]],\"monitoringRulesCount\":7,\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1760630565\",\"pinned\":false,\"policyVersion\":\"1\",\"ruleCount\":8,\"updateDate\":1760630565905,\"updater\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\"}}}}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/json"
@@ -27,13 +27,13 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "396b2fca-731e-d8ac-1168-76592ae9c6ea"
30+
"id": "0f416096-0152-df7d-9408-f7ead46e2f0d"
3131
},
3232
{
3333
"httpRequest": {
3434
"body": {
3535
"type": "JSON",
36-
"json": "{\"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\"}}"
36+
"json": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name\",\"filters\":[],\"name\":\"my_agent_rule\",\"policy_id\":\"qte-y0f-deh\",\"product_tags\":[]},\"type\":\"agent_rule\"}}"
3737
},
3838
"headers": {},
3939
"method": "POST",
@@ -42,7 +42,7 @@
4242
"secure": true
4343
},
4444
"httpResponse": {
45-
"body": "{\"errors\":[\"input_validation_error(Field 'name' is invalid: the name 'my_agent_rule' is already used by a custom rule)\"]}",
45+
"body": "{\"errors\":[\"input_validation_error(Field 'expression' is invalid: rule `my_agent_rule` error: rule syntax error: bool expected: 1:1: exec.file.name\\n^)\"]}",
4646
"headers": {
4747
"Content-Type": [
4848
"application/json"
@@ -57,13 +57,13 @@
5757
"timeToLive": {
5858
"unlimited": true
5959
},
60-
"id": "c96671f6-8a37-c051-f820-b4c05a204de7"
60+
"id": "57147dc8-1fcb-7df7-d059-743877d413b6"
6161
},
6262
{
6363
"httpRequest": {
6464
"headers": {},
6565
"method": "DELETE",
66-
"path": "/api/v2/remote_config/products/cws/policy/sr5-i0h-lty",
66+
"path": "/api/v2/remote_config/products/cws/policy/qte-y0f-deh",
6767
"keepAlive": false,
6868
"secure": true
6969
},
@@ -82,6 +82,6 @@
8282
"timeToLive": {
8383
"unlimited": true
8484
},
85-
"id": "033f489d-6cfa-ff7b-ecf8-fafbf0d27dcc"
85+
"id": "1287c73d-0287-e530-74bd-a76659855cad"
8686
}
8787
]
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-10-16T16:02:47.386Z

src/test/resources/cassettes/features/v2/Create_a_Workload_Protection_agent_rule_returns_OK_response.json

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1760109641\"},\"type\":\"policy\"}}"
6+
"json": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1760630567\"},\"type\":\"policy\"}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"data\":{\"id\":\"cwy-qfn-4k8\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My 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\":\"frog@datadoghq.com\"}}}}",
15+
"body": "{\"data\":{\"id\":\"fip-pkb-s5r\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:staging\"]],\"monitoringRulesCount\":7,\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1760630567\",\"pinned\":false,\"policyVersion\":\"1\",\"ruleCount\":8,\"updateDate\":1760630567772,\"updater\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\"}}}}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/json"
@@ -27,13 +27,13 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "603ef16c-2dca-d915-a44a-8a6dde147f65"
30+
"id": "270e3d11-1605-5fb5-e8fc-78c7ad1179c3"
3131
},
3232
{
3333
"httpRequest": {
3434
"body": {
3535
"type": "JSON",
36-
"json": "{\"data\":{\"attributes\":{\"agent_version\":\"> 7.60\",\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1760109641\",\"policy_id\":\"cwy-qfn-4k8\",\"product_tags\":[]},\"type\":\"agent_rule\"}}"
36+
"json": "{\"data\":{\"attributes\":{\"agent_version\":\"> 7.60\",\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1760630567\",\"policy_id\":\"fip-pkb-s5r\",\"product_tags\":[]},\"type\":\"agent_rule\"}}"
3737
},
3838
"headers": {},
3939
"method": "POST",
@@ -42,7 +42,7 @@
4242
"secure": true
4343
},
4444
"httpResponse": {
45-
"body": "{\"data\":{\"id\":\"iua-dxr-uvh\",\"type\":\"agent_rule\",\"attributes\":{\"category\":\"Process Activity\",\"creationDate\":1760109643225,\"creator\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\"},\"defaultRule\":false,\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[\"os == \\\"linux\\\"\"],\"monitoring\":[\"cwy-qfn-4k8\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1760109641\",\"product_tags\":[],\"updateDate\":1760109643225,\"updater\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\"}}}}",
45+
"body": "{\"data\":{\"id\":\"x6z-2vq-clf\",\"type\":\"agent_rule\",\"attributes\":{\"category\":\"Process Activity\",\"creationDate\":1760630568642,\"creator\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\"},\"defaultRule\":false,\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[\"os == \\\"linux\\\"\"],\"monitoring\":[\"fip-pkb-s5r\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1760630567\",\"product_tags\":[],\"updateDate\":1760630568642,\"updater\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\"}}}}",
4646
"headers": {
4747
"Content-Type": [
4848
"application/json"
@@ -57,13 +57,13 @@
5757
"timeToLive": {
5858
"unlimited": true
5959
},
60-
"id": "22c237a1-1512-05b5-ba1b-14fd5787676a"
60+
"id": "e750defa-c2cd-2055-4760-327c67a420f6"
6161
},
6262
{
6363
"httpRequest": {
6464
"headers": {},
6565
"method": "DELETE",
66-
"path": "/api/v2/remote_config/products/cws/agent_rules/iua-dxr-uvh",
66+
"path": "/api/v2/remote_config/products/cws/policy/fip-pkb-s5r",
6767
"keepAlive": false,
6868
"secure": true
6969
},
@@ -82,31 +82,6 @@
8282
"timeToLive": {
8383
"unlimited": true
8484
},
85-
"id": "567fe2bd-32e6-f22a-0729-92a322614bae"
86-
},
87-
{
88-
"httpRequest": {
89-
"headers": {},
90-
"method": "DELETE",
91-
"path": "/api/v2/remote_config/products/cws/policy/cwy-qfn-4k8",
92-
"keepAlive": false,
93-
"secure": true
94-
},
95-
"httpResponse": {
96-
"headers": {
97-
"Content-Type": [
98-
"application/json"
99-
]
100-
},
101-
"statusCode": 204,
102-
"reasonPhrase": "No Content"
103-
},
104-
"times": {
105-
"remainingTimes": 1
106-
},
107-
"timeToLive": {
108-
"unlimited": true
109-
},
110-
"id": "1c557a34-3768-35b7-435c-ae98d49e1f96"
85+
"id": "419fa9f0-e37f-d312-0cb6-a3daad85e04b"
11186
}
11287
]
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-10T15:20:46.004Z
1+
2025-10-16T16:02:49.756Z

src/test/resources/cassettes/features/v2/Create_a_Workload_Protection_agent_rule_with_set_action_returns_OK_response.json

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760109646\"},\"type\":\"policy\"}}"
6+
"json": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760630569\"},\"type\":\"policy\"}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"data\":{\"id\":\"c85-dqa-6no\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:staging\"]],\"monitoringRulesCount\":7,\"name\":\"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760109646\",\"pinned\":false,\"policyVersion\":\"1\",\"ruleCount\":8,\"updateDate\":1760109646385,\"updater\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\"}}}}",
15+
"body": "{\"data\":{\"id\":\"32y-irg-daq\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:staging\"]],\"monitoringRulesCount\":7,\"name\":\"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760630569\",\"pinned\":false,\"policyVersion\":\"1\",\"ruleCount\":8,\"updateDate\":1760630570147,\"updater\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\"}}}}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/json"
@@ -27,13 +27,13 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "6e9f87ed-e74d-d527-6cd3-023ce1c976ca"
30+
"id": "318efa1e-c73d-a7ef-d801-16fcab9f7d82"
3131
},
3232
{
3333
"httpRequest": {
3434
"body": {
3535
"type": "JSON",
36-
"json": "{\"data\":{\"attributes\":{\"actions\":[{\"set\":{\"inherited\":true,\"name\":\"test_set\",\"scope\":\"process\",\"value\":\"test_value\"}},{\"hash\":{}}],\"description\":\"My Agent rule with set action\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[],\"name\":\"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760109646\",\"policy_id\":\"c85-dqa-6no\",\"product_tags\":[]},\"type\":\"agent_rule\"}}"
36+
"json": "{\"data\":{\"attributes\":{\"actions\":[{\"set\":{\"inherited\":true,\"name\":\"test_set\",\"scope\":\"process\",\"value\":\"test_value\"}},{\"hash\":{}}],\"description\":\"My Agent rule with set action\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[],\"name\":\"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760630569\",\"policy_id\":\"32y-irg-daq\",\"product_tags\":[]},\"type\":\"agent_rule\"}}"
3737
},
3838
"headers": {},
3939
"method": "POST",
@@ -42,7 +42,7 @@
4242
"secure": true
4343
},
4444
"httpResponse": {
45-
"body": "{\"data\":{\"id\":\"ak5-bk0-dxq\",\"type\":\"agent_rule\",\"attributes\":{\"actions\":[{\"set\":{\"name\":\"test_set\",\"value\":\"test_value\",\"scope\":\"process\",\"inherited\":true},\"disabled\":false},{\"hash\":{},\"disabled\":false}],\"category\":\"Process Activity\",\"creationDate\":1760109647450,\"creator\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\"},\"defaultRule\":false,\"description\":\"My Agent rule with set action\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[\"os == \\\"linux\\\"\"],\"monitoring\":[\"c85-dqa-6no\"],\"name\":\"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760109646\",\"product_tags\":[],\"updateDate\":1760109647450,\"updater\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\"}}}}",
45+
"body": "{\"data\":{\"id\":\"vpy-mmr-mqt\",\"type\":\"agent_rule\",\"attributes\":{\"actions\":[{\"set\":{\"name\":\"test_set\",\"value\":\"test_value\",\"scope\":\"process\",\"inherited\":true},\"disabled\":false},{\"hash\":{},\"disabled\":false}],\"category\":\"Process Activity\",\"creationDate\":1760630570914,\"creator\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\"},\"defaultRule\":false,\"description\":\"My Agent rule with set action\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[\"os == \\\"linux\\\"\"],\"monitoring\":[\"32y-irg-daq\"],\"name\":\"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760630569\",\"product_tags\":[],\"updateDate\":1760630570914,\"updater\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\"}}}}",
4646
"headers": {
4747
"Content-Type": [
4848
"application/json"
@@ -57,13 +57,13 @@
5757
"timeToLive": {
5858
"unlimited": true
5959
},
60-
"id": "a8cc8839-a78f-2504-3e92-4a21771a23b9"
60+
"id": "dfad7fff-86af-cb9d-318a-ecea19ece852"
6161
},
6262
{
6363
"httpRequest": {
6464
"headers": {},
6565
"method": "DELETE",
66-
"path": "/api/v2/remote_config/products/cws/agent_rules/ak5-bk0-dxq",
66+
"path": "/api/v2/remote_config/products/cws/policy/32y-irg-daq",
6767
"keepAlive": false,
6868
"secure": true
6969
},
@@ -82,31 +82,6 @@
8282
"timeToLive": {
8383
"unlimited": true
8484
},
85-
"id": "3bd6341a-006f-a9dc-621f-b233e8d7089b"
86-
},
87-
{
88-
"httpRequest": {
89-
"headers": {},
90-
"method": "DELETE",
91-
"path": "/api/v2/remote_config/products/cws/policy/c85-dqa-6no",
92-
"keepAlive": false,
93-
"secure": true
94-
},
95-
"httpResponse": {
96-
"headers": {
97-
"Content-Type": [
98-
"application/json"
99-
]
100-
},
101-
"statusCode": 204,
102-
"reasonPhrase": "No Content"
103-
},
104-
"times": {
105-
"remainingTimes": 1
106-
},
107-
"timeToLive": {
108-
"unlimited": true
109-
},
110-
"id": "38330c52-3cba-d8d7-6f4c-8620d18e1cb5"
85+
"id": "3dd2f830-3f3c-8ee5-b147-fd186e81f552"
11186
}
11287
]
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-10T15:20:50.578Z
1+
2025-10-16T16:02:52.432Z

0 commit comments

Comments
 (0)