Skip to content

Commit b975546

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specskarimo
authored
Regenerate client from commit a462e143 of spec repo (#1582)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: skarimo <[email protected]>
1 parent abb041e commit b975546

File tree

7 files changed

+31
-31
lines changed

7 files changed

+31
-31
lines changed

.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": "2024-03-27 22:12:46.457964",
8-
"spec_repo_commit": "85625198"
7+
"regenerated": "2024-03-28 14:36:49.426876",
8+
"spec_repo_commit": "a462e143"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-03-27 22:12:46.486191",
13-
"spec_repo_commit": "85625198"
12+
"regenerated": "2024-03-28 14:36:49.445016",
13+
"spec_repo_commit": "a462e143"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-03-08T14:19:01.846Z"
1+
"2024-03-28T13:57:47.808Z"

cassettes/v2/Cloud-Workload-Security_3725750827/Create-a-CSM-Threats-Agent-rule-returns-Bad-Request-response_639435269/recording.har

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "0a69f86145855ad31f75cec2b61dc38b",
11+
"_id": "5353c812c8167b0341d54f19353e5a07",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 149,
15+
"bodySize": 201,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == sh\",\"name\":\"my_agent_rule\"},\"type\":\"agent_rule\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == sh\",\"name\":\"testcreateacsmthreatsagentrulereturnsbadrequestresponse1711634267\"},\"type\":\"agent_rule\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules"
3939
},
4040
"response": {
41-
"bodySize": 142,
41+
"bodySize": 194,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 142,
45-
"text": "{\"errors\":[\"input_validation_error(Field 'expression' is invalid: rule `my_agent_rule` error: rule compilation error: field `sh` not found)\"]}"
44+
"size": 194,
45+
"text": "{\"errors\":[\"input_validation_error(Field 'expression' is invalid: rule `testcreateacsmthreatsagentrulereturnsbadrequestresponse1711634267` error: rule compilation error: field `sh` not found)\"]}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,8 +57,8 @@
5757
"status": 400,
5858
"statusText": "Bad Request"
5959
},
60-
"startedDateTime": "2024-03-08T14:19:01.854Z",
61-
"time": 480
60+
"startedDateTime": "2024-03-28T13:57:48.012Z",
61+
"time": 149
6262
}
6363
],
6464
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-03-08T14:19:02.357Z"
1+
"2024-03-28T13:57:48.169Z"

cassettes/v2/Cloud-Workload-Security_3725750827/Create-a-CSM-Threats-Agent-rule-returns-OK-response_2579892377/recording.har

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "8da2706dd366748c4c51b12b31462925",
11+
"_id": "8a689959c81f6802a490043fd1e61bbd",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 153,
15+
"bodySize": 197,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -26,23 +26,23 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 598,
29+
"headersSize": 597,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"name\":\"my_agent_rule\"},\"type\":\"agent_rule\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"name\":\"testcreateacsmthreatsagentrulereturnsokresponse1711634268\"},\"type\":\"agent_rule\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules"
3939
},
4040
"response": {
41-
"bodySize": 450,
41+
"bodySize": 512,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 450,
45-
"text": "{\"data\":{\"id\":\"zer-ow9-d4q\",\"type\":\"agent_rule\",\"attributes\":{\"category\":\"Process Activity\",\"creationDate\":1709907542607,\"creator\":{\"name\":\"Malo Le Goff\",\"handle\":\"[email protected]\"},\"defaultRule\":false,\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[\"os == \\\"linux\\\"\"],\"name\":\"my_agent_rule\",\"updateDate\":1709907542607,\"updater\":{\"name\":\"Malo Le Goff\",\"handle\":\"[email protected]\"}}}}"
44+
"size": 512,
45+
"text": "{\"data\":{\"id\":\"kll-o34-int\",\"type\":\"agent_rule\",\"attributes\":{\"category\":\"Process Activity\",\"creationDate\":1711634268228,\"creator\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"defaultRule\":false,\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[\"os == \\\"linux\\\"\"],\"name\":\"testcreateacsmthreatsagentrulereturnsokresponse1711634268\",\"updateDate\":1711634268228,\"updater\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2024-03-08T14:19:02.360Z",
61-
"time": 785
60+
"startedDateTime": "2024-03-28T13:57:48.173Z",
61+
"time": 425
6262
},
6363
{
64-
"_id": "a6a178b7a011ecc98d0df557e83005ea",
64+
"_id": "88734b1580bf566bb6a709c5625181d0",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -74,11 +74,11 @@
7474
"value": "*/*"
7575
}
7676
],
77-
"headersSize": 546,
77+
"headersSize": 545,
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/zer-ow9-d4q"
81+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/kll-o34-int"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -99,8 +99,8 @@
9999
"status": 204,
100100
"statusText": "No Content"
101101
},
102-
"startedDateTime": "2024-03-08T14:19:03.151Z",
103-
"time": 809
102+
"startedDateTime": "2024-03-28T13:57:48.603Z",
103+
"time": 354
104104
}
105105
],
106106
"pages": [],

examples/v2/cloud-workload-security/CreateCSMThreatsAgentRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const params: v2.CloudWorkloadSecurityApiCreateCSMThreatsAgentRuleRequest = {
1414
description: "My Agent rule",
1515
enabled: true,
1616
expression: `exec.file.name == "sh"`,
17-
name: "my_agent_rule",
17+
name: "examplecloudworkloadsecurity",
1818
},
1919
type: "agent_rule",
2020
},

features/v2/cloud_workload_security.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Feature: Cloud Workload Security
1313
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
1414
Scenario: Create a CSM Threats Agent rule returns "Bad Request" response
1515
Given new "CreateCSMThreatsAgentRule" request
16-
And body with value {"data": {"attributes": {"description": "My Agent rule", "enabled": true, "expression": "exec.file.name == sh", "name": "my_agent_rule"}, "type": "agent_rule"}}
16+
And body with value {"data": {"attributes": {"description": "My Agent rule", "enabled": true, "expression": "exec.file.name == sh", "name": "{{ unique_lower_alnum }}"}, "type": "agent_rule"}}
1717
When the request is sent
1818
Then the response status is 400 Bad Request
1919

@@ -27,7 +27,7 @@ Feature: Cloud Workload Security
2727
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
2828
Scenario: Create a CSM Threats Agent rule returns "OK" response
2929
Given new "CreateCSMThreatsAgentRule" request
30-
And body with value {"data": {"attributes": {"description": "My Agent rule", "enabled": true, "expression": "exec.file.name == \"sh\"", "name": "my_agent_rule"}, "type": "agent_rule"}}
30+
And body with value {"data": {"attributes": {"description": "My Agent rule", "enabled": true, "expression": "exec.file.name == \"sh\"", "name": "{{ unique_lower_alnum }}"}, "type": "agent_rule"}}
3131
When the request is sent
3232
Then the response status is 200 OK
3333

0 commit comments

Comments
 (0)