Skip to content

Commit 2582c46

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e5094d5 of spec repo
1 parent 196c793 commit 2582c46

File tree

62 files changed

+483
-395
lines changed

Some content is hidden

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

62 files changed

+483
-395
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10243,6 +10243,10 @@ components:
1024310243
description: Whether the policy is pinned
1024410244
example: false
1024510245
type: boolean
10246+
policyType:
10247+
description: The type of the policy
10248+
example: policy
10249+
type: string
1024610250
policyVersion:
1024710251
description: The version of the policy
1024810252
example: '1'
@@ -10421,11 +10425,11 @@ components:
1042110425
CloudWorkloadSecurityAgentPolicyVersion:
1042210426
description: The versions of the policy
1042310427
properties:
10424-
Date:
10428+
date:
1042510429
description: The date and time the version was created
1042610430
nullable: true
1042710431
type: string
10428-
Name:
10432+
name:
1042910433
description: The version of the policy
1043010434
example: 1.47.0-rc2
1043110435
type: string
@@ -10452,8 +10456,11 @@ components:
1045210456
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionSet'
1045310457
type: object
1045410458
CloudWorkloadSecurityAgentRuleActionHash:
10455-
additionalProperties: {}
10456-
description: An empty object indicating the hash action
10459+
description: Hash file specified by the field attribute
10460+
properties:
10461+
field:
10462+
description: The field of the hash action
10463+
type: string
1045710464
type: object
1045810465
CloudWorkloadSecurityAgentRuleActionMetadata:
1045910466
description: The metadata action applied on the scope matching the rule
@@ -10501,9 +10508,14 @@ components:
1050110508
format: int64
1050210509
type: integer
1050310510
value:
10504-
description: The value of the set action
10505-
type: string
10511+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionSetValue'
1050610512
type: object
10513+
CloudWorkloadSecurityAgentRuleActionSetValue:
10514+
description: The value of the set action
10515+
oneOf:
10516+
- type: string
10517+
- type: integer
10518+
- type: boolean
1050710519
CloudWorkloadSecurityAgentRuleActions:
1050810520
description: The array of actions the rule can perform if triggered
1050910521
items:
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-10-10T15:20:39.566Z"
1+
"2025-12-11T16:09:12.949Z"

cassettes/v2/CSM-Threats_3156990395/Create-a-Workload-Protection-agent-rule-returns-Bad-Request-response_1067572025/recording.har

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "396b2fca731ed8ac116876592ae9c6ea",
11+
"_id": "1316ef84358b65da0ce800854fe6e7c8",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -26,13 +26,13 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 593,
29+
"headersSize": 595,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1760109639\"},\"type\":\"policy\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1765469352\"},\"type\":\"policy\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy"
@@ -42,7 +42,7 @@
4242
"content": {
4343
"mimeType": "application/json",
4444
"size": 450,
45-
"text": "{\"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\":\"[email protected]\"}}}}"
45+
"text": "{\"data\":{\"id\":\"0w7-waz-oev\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:staging\"]],\"monitoringRulesCount\":7,\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1765469352\",\"pinned\":false,\"policyVersion\":\"1\",\"ruleCount\":8,\"updateDate\":1765469353329,\"updater\":{\"name\":\"frog\",\"handle\":\"[email protected]\"}}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2025-10-10T15:20:39.571Z",
61-
"time": 859
60+
"startedDateTime": "2025-12-11T16:09:12.955Z",
61+
"time": 1006
6262
},
6363
{
64-
"_id": "c96671f68a37c051f820b4c05a204de7",
64+
"_id": "015174726197e85b25da919f258e2f92",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -79,23 +79,23 @@
7979
"value": "application/json"
8080
}
8181
],
82-
"headersSize": 596,
82+
"headersSize": 598,
8383
"httpVersion": "HTTP/1.1",
8484
"method": "POST",
8585
"postData": {
8686
"mimeType": "application/json",
8787
"params": [],
88-
"text": "{\"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\"}}"
88+
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name\",\"filters\":[],\"name\":\"my_agent_rule\",\"policy_id\":\"0w7-waz-oev\",\"product_tags\":[]},\"type\":\"agent_rule\"}}"
8989
},
9090
"queryString": [],
9191
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules"
9292
},
9393
"response": {
94-
"bodySize": 121,
94+
"bodySize": 154,
9595
"content": {
9696
"mimeType": "application/json",
97-
"size": 121,
98-
"text": "{\"errors\":[\"input_validation_error(Field 'name' is invalid: the name 'my_agent_rule' is already used by a custom rule)\"]}"
97+
"size": 154,
98+
"text": "{\"errors\":[\"input_validation_error(Field 'expression' is invalid: rule `my_agent_rule` error: rule syntax error: bool expected: 1:1: exec.file.name\\n^)\"]}"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -110,11 +110,11 @@
110110
"status": 400,
111111
"statusText": "Bad Request"
112112
},
113-
"startedDateTime": "2025-10-10T15:20:40.436Z",
114-
"time": 393
113+
"startedDateTime": "2025-12-11T16:09:13.969Z",
114+
"time": 462
115115
},
116116
{
117-
"_id": "033f489d6cfaff7becf8fafbf0d27dcc",
117+
"_id": "4deb4644dfe2ca736d8c937260f05625",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -127,11 +127,11 @@
127127
"value": "*/*"
128128
}
129129
],
130-
"headersSize": 541,
130+
"headersSize": 543,
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/sr5-i0h-lty"
134+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/0w7-waz-oev"
135135
},
136136
"response": {
137137
"bodySize": 0,
@@ -152,8 +152,8 @@
152152
"status": 204,
153153
"statusText": "No Content"
154154
},
155-
"startedDateTime": "2025-10-10T15:20:40.833Z",
156-
"time": 919
155+
"startedDateTime": "2025-12-11T16:09:14.438Z",
156+
"time": 932
157157
}
158158
],
159159
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-10-10T15:20:41.757Z"
1+
"2025-12-11T16:09:15.376Z"

cassettes/v2/CSM-Threats_3156990395/Create-a-Workload-Protection-agent-rule-returns-OK-response_2698696373/recording.har

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "603ef16c2dcad915a44a8a6dde147f65",
11+
"_id": "7044bee3800dce2a1d20bb930618e4d4",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -26,13 +26,13 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 593,
29+
"headersSize": 595,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1760109641\"},\"type\":\"policy\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1765469355\"},\"type\":\"policy\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy"
@@ -42,7 +42,7 @@
4242
"content": {
4343
"mimeType": "application/json",
4444
"size": 442,
45-
"text": "{\"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\":\"[email protected]\"}}}}"
45+
"text": "{\"data\":{\"id\":\"gar-bus-heu\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:staging\"]],\"monitoringRulesCount\":7,\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1765469355\",\"pinned\":false,\"policyVersion\":\"1\",\"ruleCount\":8,\"updateDate\":1765469355739,\"updater\":{\"name\":\"frog\",\"handle\":\"[email protected]\"}}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2025-10-10T15:20:41.759Z",
61-
"time": 1077
60+
"startedDateTime": "2025-12-11T16:09:15.378Z",
61+
"time": 805
6262
},
6363
{
64-
"_id": "22c237a1151205b5ba1b14fd5787676a",
64+
"_id": "c37c8afb4208d692c2092a947a314f1b",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -79,13 +79,13 @@
7979
"value": "application/json"
8080
}
8181
],
82-
"headersSize": 596,
82+
"headersSize": 598,
8383
"httpVersion": "HTTP/1.1",
8484
"method": "POST",
8585
"postData": {
8686
"mimeType": "application/json",
8787
"params": [],
88-
"text": "{\"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\"}}"
88+
"text": "{\"data\":{\"attributes\":{\"agent_version\":\"> 7.60\",\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1765469355\",\"policy_id\":\"gar-bus-heu\",\"product_tags\":[]},\"type\":\"agent_rule\"}}"
8989
},
9090
"queryString": [],
9191
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules"
@@ -95,7 +95,7 @@
9595
"content": {
9696
"mimeType": "application/json",
9797
"size": 519,
98-
"text": "{\"data\":{\"id\":\"iua-dxr-uvh\",\"type\":\"agent_rule\",\"attributes\":{\"category\":\"Process Activity\",\"creationDate\":1760109643225,\"creator\":{\"name\":\"frog\",\"handle\":\"[email protected]\"},\"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\":\"[email protected]\"}}}}"
98+
"text": "{\"data\":{\"id\":\"chr-zcp-dek\",\"type\":\"agent_rule\",\"attributes\":{\"category\":\"Process Activity\",\"creationDate\":1765469356535,\"creator\":{\"name\":\"frog\",\"handle\":\"[email protected]\"},\"defaultRule\":false,\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[\"os == \\\"linux\\\"\"],\"monitoring\":[\"gar-bus-heu\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1765469355\",\"product_tags\":[],\"updateDate\":1765469356535,\"updater\":{\"name\":\"frog\",\"handle\":\"[email protected]\"}}}}"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -110,11 +110,11 @@
110110
"status": 200,
111111
"statusText": "OK"
112112
},
113-
"startedDateTime": "2025-10-10T15:20:42.840Z",
114-
"time": 1256
113+
"startedDateTime": "2025-12-11T16:09:16.188Z",
114+
"time": 836
115115
},
116116
{
117-
"_id": "567fe2bd32e6f22a072992a322614bae",
117+
"_id": "389d4d2a0c8a49bd4a98890548145bca",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -127,11 +127,11 @@
127127
"value": "*/*"
128128
}
129129
],
130-
"headersSize": 544,
130+
"headersSize": 546,
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/iua-dxr-uvh"
134+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/chr-zcp-dek"
135135
},
136136
"response": {
137137
"bodySize": 0,
@@ -152,11 +152,11 @@
152152
"status": 204,
153153
"statusText": "No Content"
154154
},
155-
"startedDateTime": "2025-10-10T15:20:44.099Z",
156-
"time": 964
155+
"startedDateTime": "2025-12-11T16:09:17.030Z",
156+
"time": 853
157157
},
158158
{
159-
"_id": "1c557a34376835b7435cae98d49e1f96",
159+
"_id": "478cb3f3186ea7e73029eb2becaf306f",
160160
"_order": 0,
161161
"cache": {},
162162
"request": {
@@ -169,11 +169,11 @@
169169
"value": "*/*"
170170
}
171171
],
172-
"headersSize": 541,
172+
"headersSize": 543,
173173
"httpVersion": "HTTP/1.1",
174174
"method": "DELETE",
175175
"queryString": [],
176-
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/cwy-qfn-4k8"
176+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/gar-bus-heu"
177177
},
178178
"response": {
179179
"bodySize": 0,
@@ -194,8 +194,8 @@
194194
"status": 204,
195195
"statusText": "No Content"
196196
},
197-
"startedDateTime": "2025-10-10T15:20:45.068Z",
198-
"time": 933
197+
"startedDateTime": "2025-12-11T16:09:17.886Z",
198+
"time": 699
199199
}
200200
],
201201
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-10-10T15:20:46.004Z"
1+
"2025-12-11T16:09:18.588Z"

0 commit comments

Comments
 (0)