Skip to content

Commit d3155ac

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 07112c0 of spec repo (#785)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 97d78aa commit d3155ac

File tree

5 files changed

+25
-14
lines changed

5 files changed

+25
-14
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.5.1.dev2",
7-
"regenerated": "2022-01-13 17:02:45.409287",
8-
"spec_repo_commit": "74ee362"
7+
"regenerated": "2022-01-14 14:23:29.494022",
8+
"spec_repo_commit": "07112c0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2022-01-13 17:02:45.847691",
13-
"spec_repo_commit": "74ee362"
12+
"regenerated": "2022-01-14 14:23:29.926491",
13+
"spec_repo_commit": "07112c0"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ components:
798798
data:
799799
description: A list of Agent rules objects.
800800
items:
801-
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleAttributes'
801+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleData'
802802
type: array
803803
type: object
804804
ContentEncoding:
@@ -8689,6 +8689,7 @@ paths:
86898689
summary: Get the latest Cloud Workload Security policy
86908690
tags:
86918691
- Cloud Workload Security
8692+
x-menu-order: 1
86928693
x-undo:
86938694
type: safe
86948695
/api/v2/security_monitoring/cloud_workload_security/agent_rules:
@@ -8714,6 +8715,7 @@ paths:
87148715
summary: Get all Cloud Workload Security Agent rules
87158716
tags:
87168717
- Cloud Workload Security
8718+
x-menu-order: 3
87178719
x-undo:
87188720
type: safe
87198721
post:
@@ -8759,6 +8761,7 @@ paths:
87598761
\"My Agent rule\",\n \"expression\": \"exec.file.name == \\\"sh\\\"\",\n
87608762
\ \"enabled\": true\n }\n }\n}"
87618763
step: there is a valid "agent_rule" in the system
8764+
x-menu-order: 4
87628765
x-undo:
87638766
operationId: DeleteCloudWorkloadSecurityAgentRule
87648767
parameters:
@@ -8788,6 +8791,7 @@ paths:
87888791
summary: Delete a Cloud Workload Security Agent rule
87898792
tags:
87908793
- Cloud Workload Security
8794+
x-menu-order: 6
87918795
x-undo:
87928796
type: idempotent
87938797
get:
@@ -8816,6 +8820,7 @@ paths:
88168820
summary: Get a Cloud Workload Security Agent rule
88178821
tags:
88188822
- Cloud Workload Security
8823+
x-menu-order: 2
88198824
x-undo:
88208825
type: safe
88218826
patch:
@@ -8858,6 +8863,7 @@ paths:
88588863
tags:
88598864
- Cloud Workload Security
88608865
x-codegen-request-body-name: body
8866+
x-menu-order: 5
88618867
x-undo:
88628868
type: idempotent
88638869
/api/v2/security_monitoring/configuration/security_filters:

docs/v2/CloudWorkloadSecurityAgentRulesListResponse.md

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v2/model/cloud_workload_security_agent_rules_list_response.py

Lines changed: 4 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/v2/features/cloud_workload_security.feature

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Feature: Cloud Workload Security
2828
And body with value {"data": {"attributes": {"description": "Test Agent rule", "enabled": true, "expression": "exec.file.name == \"sh\"", "name": "{{ unique_lower_alnum }}"}, "type": "agent_rule"}}
2929
When the request is sent
3030
Then the response status is 200 OK
31+
And the response "data.type" is equal to "agent_rule"
32+
And the response "data.attributes.description" is equal to "Test Agent rule"
3133

3234
@team:DataDog/cws-backend @team:DataDog/security-monitoring
3335
Scenario: Delete a Cloud Workload Security Agent rule returns "Not Found" response
@@ -58,13 +60,16 @@ Feature: Cloud Workload Security
5860
And request contains "agent_rule_id" parameter from "agent_rule.data.id"
5961
When the request is sent
6062
Then the response status is 200 OK
63+
And the response "data.type" is equal to "agent_rule"
64+
And the response "data.attributes.description" is equal to "My Agent rule"
6165

6266
@team:DataDog/cws-backend @team:DataDog/security-monitoring
6367
Scenario: Get all Cloud Workload Security Agent rules returns "OK" response
6468
Given there is a valid "agent_rule" in the system
6569
And new "ListCloudWorkloadSecurityAgentRules" request
6670
When the request is sent
6771
Then the response status is 200 OK
72+
And the response "data[0].type" is equal to "agent_rule"
6873

6974
@team:DataDog/cws-backend @team:DataDog/security-monitoring
7075
Scenario: Get the latest Cloud Workload Security policy returns "OK" response
@@ -105,3 +110,5 @@ Feature: Cloud Workload Security
105110
And body with value {"data": {"attributes": {"description": "Test Agent rule", "enabled": true, "expression": "exec.file.name == \"sh\""}, "type": "agent_rule"}}
106111
When the request is sent
107112
Then the response status is 200 OK
113+
And the response "data.type" is equal to "agent_rule"
114+
And the response "data.attributes.description" is equal to "Test Agent rule"

0 commit comments

Comments
 (0)