Skip to content

Commit 6fd2879

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c89b78d of spec repo
1 parent 45fb38d commit 6fd2879

68 files changed

Lines changed: 7054 additions & 62 deletions

File tree

Some content is hidden

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

.generator/schemas/v2/openapi.yaml

Lines changed: 1678 additions & 0 deletions
Large diffs are not rendered by default.

features/v2/governance_controls.feature

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,33 @@ Feature: Governance Controls
1111
And a valid "appKeyAuth" key in the system
1212
And an instance of "GovernanceControls" API
1313

14+
@generated @skip @team:DataDog/aaa-governance-console
15+
Scenario: Get a governance control detection returns "Bad Request" response
16+
Given operation "GetGovernanceControlDetection" enabled
17+
And new "GetGovernanceControlDetection" request
18+
And request contains "detection_type" parameter from "REPLACE.ME"
19+
And request contains "detection_id" parameter from "REPLACE.ME"
20+
When the request is sent
21+
Then the response status is 400 Bad Request
22+
23+
@generated @skip @team:DataDog/aaa-governance-console
24+
Scenario: Get a governance control detection returns "Not Found" response
25+
Given operation "GetGovernanceControlDetection" enabled
26+
And new "GetGovernanceControlDetection" request
27+
And request contains "detection_type" parameter from "REPLACE.ME"
28+
And request contains "detection_id" parameter from "REPLACE.ME"
29+
When the request is sent
30+
Then the response status is 404 Not Found
31+
32+
@generated @skip @team:DataDog/aaa-governance-console
33+
Scenario: Get a governance control detection returns "OK" response
34+
Given operation "GetGovernanceControlDetection" enabled
35+
And new "GetGovernanceControlDetection" request
36+
And request contains "detection_type" parameter from "REPLACE.ME"
37+
And request contains "detection_id" parameter from "REPLACE.ME"
38+
When the request is sent
39+
Then the response status is 200 OK
40+
1441
@generated @skip @team:DataDog/aaa-governance-console
1542
Scenario: Get a governance control returns "Bad Request" response
1643
Given operation "GetGovernanceControl" enabled
@@ -35,6 +62,38 @@ Feature: Governance Controls
3562
When the request is sent
3663
Then the response status is 200 OK
3764

65+
@generated @skip @team:DataDog/aaa-governance-console
66+
Scenario: Get governance control notification settings returns "Bad Request" response
67+
Given operation "GetGovernanceControlNotificationSettings" enabled
68+
And new "GetGovernanceControlNotificationSettings" request
69+
And request contains "detection_type" parameter from "REPLACE.ME"
70+
When the request is sent
71+
Then the response status is 400 Bad Request
72+
73+
@generated @skip @team:DataDog/aaa-governance-console
74+
Scenario: Get governance control notification settings returns "OK" response
75+
Given operation "GetGovernanceControlNotificationSettings" enabled
76+
And new "GetGovernanceControlNotificationSettings" request
77+
And request contains "detection_type" parameter from "REPLACE.ME"
78+
When the request is sent
79+
Then the response status is 200 OK
80+
81+
@generated @skip @team:DataDog/aaa-governance-console
82+
Scenario: List governance control detections returns "Bad Request" response
83+
Given operation "ListGovernanceControlDetections" enabled
84+
And new "ListGovernanceControlDetections" request
85+
And request contains "detection_type" parameter from "REPLACE.ME"
86+
When the request is sent
87+
Then the response status is 400 Bad Request
88+
89+
@generated @skip @team:DataDog/aaa-governance-console
90+
Scenario: List governance control detections returns "OK" response
91+
Given operation "ListGovernanceControlDetections" enabled
92+
And new "ListGovernanceControlDetections" request
93+
And request contains "detection_type" parameter from "REPLACE.ME"
94+
When the request is sent
95+
Then the response status is 200 OK
96+
3897
@generated @skip @team:DataDog/aaa-governance-console
3998
Scenario: List governance controls returns "Bad Request" response
4099
Given operation "ListGovernanceControls" enabled
@@ -49,6 +108,52 @@ Feature: Governance Controls
49108
When the request is sent
50109
Then the response status is 200 OK
51110

111+
@generated @skip @team:DataDog/aaa-governance-console
112+
Scenario: Mitigate governance detections returns "Accepted" response
113+
Given operation "CreateGovernanceMitigation" enabled
114+
And new "CreateGovernanceMitigation" request
115+
And body with value {"data": {"attributes": {"detection_ids": ["3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"], "detection_type": "unused_api_keys", "mitigation_type": "revoke_api_key"}, "type": "governance_control_detection"}}
116+
When the request is sent
117+
Then the response status is 202 Accepted
118+
119+
@generated @skip @team:DataDog/aaa-governance-console
120+
Scenario: Mitigate governance detections returns "Bad Request" response
121+
Given operation "CreateGovernanceMitigation" enabled
122+
And new "CreateGovernanceMitigation" request
123+
And body with value {"data": {"attributes": {"detection_ids": ["3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"], "detection_type": "unused_api_keys", "mitigation_type": "revoke_api_key"}, "type": "governance_control_detection"}}
124+
When the request is sent
125+
Then the response status is 400 Bad Request
126+
127+
@generated @skip @team:DataDog/aaa-governance-console
128+
Scenario: Update a governance control detection returns "Bad Request" response
129+
Given operation "UpdateGovernanceControlDetection" enabled
130+
And new "UpdateGovernanceControlDetection" request
131+
And request contains "detection_type" parameter from "REPLACE.ME"
132+
And request contains "detection_id" parameter from "REPLACE.ME"
133+
And body with value {"data": {"attributes": {"assigned_team": "platform-security", "assigned_to": "11111111-2222-3333-4444-555555555555", "mitigate_after": "2024-03-15T00:00:00Z", "state": "exception"}, "type": "governance_control_detection"}}
134+
When the request is sent
135+
Then the response status is 400 Bad Request
136+
137+
@generated @skip @team:DataDog/aaa-governance-console
138+
Scenario: Update a governance control detection returns "Not Found" response
139+
Given operation "UpdateGovernanceControlDetection" enabled
140+
And new "UpdateGovernanceControlDetection" request
141+
And request contains "detection_type" parameter from "REPLACE.ME"
142+
And request contains "detection_id" parameter from "REPLACE.ME"
143+
And body with value {"data": {"attributes": {"assigned_team": "platform-security", "assigned_to": "11111111-2222-3333-4444-555555555555", "mitigate_after": "2024-03-15T00:00:00Z", "state": "exception"}, "type": "governance_control_detection"}}
144+
When the request is sent
145+
Then the response status is 404 Not Found
146+
147+
@generated @skip @team:DataDog/aaa-governance-console
148+
Scenario: Update a governance control detection returns "OK" response
149+
Given operation "UpdateGovernanceControlDetection" enabled
150+
And new "UpdateGovernanceControlDetection" request
151+
And request contains "detection_type" parameter from "REPLACE.ME"
152+
And request contains "detection_id" parameter from "REPLACE.ME"
153+
And body with value {"data": {"attributes": {"assigned_team": "platform-security", "assigned_to": "11111111-2222-3333-4444-555555555555", "mitigate_after": "2024-03-15T00:00:00Z", "state": "exception"}, "type": "governance_control_detection"}}
154+
When the request is sent
155+
Then the response status is 200 OK
156+
52157
@generated @skip @team:DataDog/aaa-governance-console
53158
Scenario: Update a governance control returns "Bad Request" response
54159
Given operation "UpdateGovernanceControl" enabled
@@ -75,3 +180,21 @@ Feature: Governance Controls
75180
And body with value {"data": {"attributes": {"detection_frequency": "daily", "mitigation_type": "revoke_api_key", "name": "Unused API Keys", "notification_frequency": "daily", "notification_type": "slack"}, "id": "0d4e6f8a-1b2c-3d4e-5f6a-7b8c9d0e1f2a", "type": "governance_control"}}
76181
When the request is sent
77182
Then the response status is 200 OK
183+
184+
@generated @skip @team:DataDog/aaa-governance-console
185+
Scenario: Update governance control notification settings returns "Bad Request" response
186+
Given operation "UpdateGovernanceControlNotificationSettings" enabled
187+
And new "UpdateGovernanceControlNotificationSettings" request
188+
And request contains "detection_type" parameter from "REPLACE.ME"
189+
And body with value {"data": {"attributes": {"event_settings": [{"enabled": true, "event_type": "new_detection", "targets": [{"handle": "#governance-alerts", "type": "slack"}]}]}, "type": "control_notification_settings"}}
190+
When the request is sent
191+
Then the response status is 400 Bad Request
192+
193+
@generated @skip @team:DataDog/aaa-governance-console
194+
Scenario: Update governance control notification settings returns "OK" response
195+
Given operation "UpdateGovernanceControlNotificationSettings" enabled
196+
And new "UpdateGovernanceControlNotificationSettings" request
197+
And request contains "detection_type" parameter from "REPLACE.ME"
198+
And body with value {"data": {"attributes": {"event_settings": [{"enabled": true, "event_type": "new_detection", "targets": [{"handle": "#governance-alerts", "type": "slack"}]}]}, "type": "control_notification_settings"}}
199+
When the request is sent
200+
Then the response status is 200 OK
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
@endpoint(governance-settings) @endpoint(governance-settings-v2)
2+
Feature: Governance Settings
3+
Governance Settings cover organization-wide Governance Console
4+
configuration, usage limits and resource limits, and notification
5+
preferences that determine when and how the Console alerts users about
6+
governance activity.
7+
8+
Background:
9+
Given a valid "apiKeyAuth" key in the system
10+
And a valid "appKeyAuth" key in the system
11+
And an instance of "GovernanceSettings" API
12+
13+
@generated @skip @team:DataDog/aaa-governance-console
14+
Scenario: Get governance notification settings returns "Bad Request" response
15+
Given operation "GetGovernanceNotificationSettings" enabled
16+
And new "GetGovernanceNotificationSettings" request
17+
When the request is sent
18+
Then the response status is 400 Bad Request
19+
20+
@generated @skip @team:DataDog/aaa-governance-console
21+
Scenario: Get governance notification settings returns "OK" response
22+
Given operation "GetGovernanceNotificationSettings" enabled
23+
And new "GetGovernanceNotificationSettings" request
24+
When the request is sent
25+
Then the response status is 200 OK
26+
27+
@generated @skip @team:DataDog/aaa-governance-console
28+
Scenario: Get the governance console configuration returns "Bad Request" response
29+
Given operation "GetGovernanceConfig" enabled
30+
And new "GetGovernanceConfig" request
31+
When the request is sent
32+
Then the response status is 400 Bad Request
33+
34+
@generated @skip @team:DataDog/aaa-governance-console
35+
Scenario: Get the governance console configuration returns "OK" response
36+
Given operation "GetGovernanceConfig" enabled
37+
And new "GetGovernanceConfig" request
38+
When the request is sent
39+
Then the response status is 200 OK
40+
41+
@generated @skip @team:DataDog/aaa-governance-console
42+
Scenario: List governance limits returns "Bad Request" response
43+
Given operation "ListGovernanceLimits" enabled
44+
And new "ListGovernanceLimits" request
45+
When the request is sent
46+
Then the response status is 400 Bad Request
47+
48+
@generated @skip @team:DataDog/aaa-governance-console
49+
Scenario: List governance limits returns "OK" response
50+
Given operation "ListGovernanceLimits" enabled
51+
And new "ListGovernanceLimits" request
52+
When the request is sent
53+
Then the response status is 200 OK
54+
55+
@generated @skip @team:DataDog/aaa-governance-console
56+
Scenario: List governance resource limits returns "Bad Request" response
57+
Given operation "ListGovernanceResourceLimits" enabled
58+
And new "ListGovernanceResourceLimits" request
59+
When the request is sent
60+
Then the response status is 400 Bad Request
61+
62+
@generated @skip @team:DataDog/aaa-governance-console
63+
Scenario: List governance resource limits returns "OK" response
64+
Given operation "ListGovernanceResourceLimits" enabled
65+
And new "ListGovernanceResourceLimits" request
66+
When the request is sent
67+
Then the response status is 200 OK
68+
69+
@generated @skip @team:DataDog/aaa-governance-console
70+
Scenario: Update governance notification settings returns "Bad Request" response
71+
Given operation "UpdateGovernanceNotificationSettings" enabled
72+
And new "UpdateGovernanceNotificationSettings" request
73+
And body with value {"data": {"attributes": {"assignment_notifications_enabled": true}, "type": "governance_notification_settings"}}
74+
When the request is sent
75+
Then the response status is 400 Bad Request
76+
77+
@generated @skip @team:DataDog/aaa-governance-console
78+
Scenario: Update governance notification settings returns "OK" response
79+
Given operation "UpdateGovernanceNotificationSettings" enabled
80+
And new "UpdateGovernanceNotificationSettings" request
81+
And body with value {"data": {"attributes": {"assignment_notifications_enabled": true}, "type": "governance_notification_settings"}}
82+
When the request is sent
83+
Then the response status is 200 OK

features/v2/undo.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2792,6 +2792,12 @@
27922792
"type": "safe"
27932793
}
27942794
},
2795+
"GetGovernanceConfig": {
2796+
"tag": "Governance Settings",
2797+
"undo": {
2798+
"type": "safe"
2799+
}
2800+
},
27952801
"ListGovernanceControls": {
27962802
"tag": "Governance Controls",
27972803
"undo": {
@@ -2810,12 +2816,72 @@
28102816
"type": "idempotent"
28112817
}
28122818
},
2819+
"ListGovernanceControlDetections": {
2820+
"tag": "Governance Controls",
2821+
"undo": {
2822+
"type": "safe"
2823+
}
2824+
},
2825+
"GetGovernanceControlDetection": {
2826+
"tag": "Governance Controls",
2827+
"undo": {
2828+
"type": "safe"
2829+
}
2830+
},
2831+
"UpdateGovernanceControlDetection": {
2832+
"tag": "Governance Controls",
2833+
"undo": {
2834+
"type": "idempotent"
2835+
}
2836+
},
2837+
"GetGovernanceControlNotificationSettings": {
2838+
"tag": "Governance Controls",
2839+
"undo": {
2840+
"type": "safe"
2841+
}
2842+
},
2843+
"UpdateGovernanceControlNotificationSettings": {
2844+
"tag": "Governance Controls",
2845+
"undo": {
2846+
"type": "idempotent"
2847+
}
2848+
},
28132849
"ListGovernanceInsights": {
28142850
"tag": "Governance Insights",
28152851
"undo": {
28162852
"type": "safe"
28172853
}
28182854
},
2855+
"ListGovernanceLimits": {
2856+
"tag": "Governance Settings",
2857+
"undo": {
2858+
"type": "safe"
2859+
}
2860+
},
2861+
"CreateGovernanceMitigation": {
2862+
"tag": "Governance Controls",
2863+
"undo": {
2864+
"type": "unsafe"
2865+
}
2866+
},
2867+
"GetGovernanceNotificationSettings": {
2868+
"tag": "Governance Settings",
2869+
"undo": {
2870+
"type": "safe"
2871+
}
2872+
},
2873+
"UpdateGovernanceNotificationSettings": {
2874+
"tag": "Governance Settings",
2875+
"undo": {
2876+
"type": "idempotent"
2877+
}
2878+
},
2879+
"ListGovernanceResourceLimits": {
2880+
"tag": "Governance Settings",
2881+
"undo": {
2882+
"type": "safe"
2883+
}
2884+
},
28192885
"GetHamrOrgConnection": {
28202886
"tag": "High Availability MultiRegion",
28212887
"undo": {

packages/datadog-api-client/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ apiInstance
407407
| Google Chat Integration | @datadog/datadog-api-client-google-chat-integration | [README.md](../../services/google-chat-integration/README.md) |
408408
| Governance Controls | @datadog/datadog-api-client-governance-controls | [README.md](../../services/governance-controls/README.md) |
409409
| Governance Insights | @datadog/datadog-api-client-governance-insights | [README.md](../../services/governance-insights/README.md) |
410+
| Governance Settings | @datadog/datadog-api-client-governance-settings | [README.md](../../services/governance-settings/README.md) |
410411
| High Availability MultiRegion | @datadog/datadog-api-client-high-availability-multi-region | [README.md](../../services/high-availability-multi-region/README.md) |
411412
| Hosts | @datadog/datadog-api-client-hosts | [README.md](../../services/hosts/README.md) |
412413
| Incidents | @datadog/datadog-api-client-incidents | [README.md](../../services/incidents/README.md) |

0 commit comments

Comments
 (0)