Skip to content

Commit 30aa92b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 8593b27 of spec repo (#3900)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent a120124 commit 30aa92b

7 files changed

Lines changed: 10 additions & 44 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146803,9 +146803,6 @@ paths:
146803146803
permissions:
146804146804
- security_monitoring_findings_write
146805146805
- appsec_vm_write
146806-
x-unstable: |-
146807-
**Note**: This endpoint is in preview and is subject to change.
146808-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
146809146806
/api/v2/security/findings/search:
146810146807
post:
146811146808
description: |-

examples/v2/security-monitoring/MuteSecurityFindings.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
public class Example {
2020
public static void main(String[] args) {
2121
ApiClient defaultClient = ApiClient.getDefaultApiClient();
22-
defaultClient.setUnstableOperationEnabled("v2.muteSecurityFindings", true);
2322
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);
2423

2524
MuteFindingsRequest body =

examples/v2/security-monitoring/MuteSecurityFindings_298521544.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
public class Example {
2020
public static void main(String[] args) {
2121
ApiClient defaultClient = ApiClient.getDefaultApiClient();
22-
defaultClient.setUnstableOperationEnabled("v2.muteSecurityFindings", true);
2322
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);
2423

2524
MuteFindingsRequest body =

examples/v2/security-monitoring/MuteSecurityFindings_3830190821.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
public class Example {
2020
public static void main(String[] args) {
2121
ApiClient defaultClient = ApiClient.getDefaultApiClient();
22-
defaultClient.setUnstableOperationEnabled("v2.muteSecurityFindings", true);
2322
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);
2423

2524
MuteFindingsRequest body =

src/main/java/com/datadog/api/client/ApiClient.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,6 @@ public class ApiClient {
929929
put("v2.listVulnerabilities", false);
930930
put("v2.listVulnerableAssets", false);
931931
put("v2.muteFindings", false);
932-
put("v2.muteSecurityFindings", false);
933932
put("v2.runHistoricalJob", false);
934933
put("v2.searchSecurityMonitoringHistsignals", false);
935934
put("v2.updateSecurityMonitoringDataset", false);

src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19991,13 +19991,6 @@ public CompletableFuture<MuteFindingsResponse> muteSecurityFindingsAsync(
1999119991
*/
1999219992
public ApiResponse<MuteFindingsResponse> muteSecurityFindingsWithHttpInfo(
1999319993
MuteFindingsRequest body) throws ApiException {
19994-
// Check if unstable operation is enabled
19995-
String operationId = "muteSecurityFindings";
19996-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
19997-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
19998-
} else {
19999-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
20000-
}
2000119994
Object localVarPostBody = body;
2000219995

2000319996
// verify the required parameter 'body' is set
@@ -20040,16 +20033,6 @@ public ApiResponse<MuteFindingsResponse> muteSecurityFindingsWithHttpInfo(
2004020033
*/
2004120034
public CompletableFuture<ApiResponse<MuteFindingsResponse>> muteSecurityFindingsWithHttpInfoAsync(
2004220035
MuteFindingsRequest body) {
20043-
// Check if unstable operation is enabled
20044-
String operationId = "muteSecurityFindings";
20045-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
20046-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
20047-
} else {
20048-
CompletableFuture<ApiResponse<MuteFindingsResponse>> result = new CompletableFuture<>();
20049-
result.completeExceptionally(
20050-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
20051-
return result;
20052-
}
2005320036
Object localVarPostBody = body;
2005420037

2005520038
// verify the required parameter 'body' is set

src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,56 +2300,49 @@ Feature: Security Monitoring
23002300

23012301
@generated @skip @team:DataDog/k9-investigation
23022302
Scenario: Mute or unmute security findings returns "Accepted" response
2303-
Given operation "MuteSecurityFindings" enabled
2304-
And new "MuteSecurityFindings" request
2303+
Given new "MuteSecurityFindings" request
23052304
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
23062305
When the request is sent
23072306
Then the response status is 202 Accepted
23082307

23092308
@generated @skip @team:DataDog/k9-investigation
23102309
Scenario: Mute or unmute security findings returns "Bad Request" response
2311-
Given operation "MuteSecurityFindings" enabled
2312-
And new "MuteSecurityFindings" request
2310+
Given new "MuteSecurityFindings" request
23132311
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
23142312
When the request is sent
23152313
Then the response status is 400 Bad Request
23162314

23172315
@generated @skip @team:DataDog/k9-investigation
23182316
Scenario: Mute or unmute security findings returns "Not Found" response
2319-
Given operation "MuteSecurityFindings" enabled
2320-
And new "MuteSecurityFindings" request
2317+
Given new "MuteSecurityFindings" request
23212318
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
23222319
When the request is sent
23232320
Then the response status is 404 Not Found
23242321

23252322
@generated @skip @team:DataDog/k9-investigation
23262323
Scenario: Mute or unmute security findings returns "Unprocessable Entity" response
2327-
Given operation "MuteSecurityFindings" enabled
2328-
And new "MuteSecurityFindings" request
2324+
Given new "MuteSecurityFindings" request
23292325
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "PENDING_FIX"}}, "id": "00000000-0000-0000-0000-000000000001", "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
23302326
When the request is sent
23312327
Then the response status is 422 Unprocessable Entity
23322328

23332329
@team:DataDog/k9-investigation
23342330
Scenario: Mute security findings returns "Accepted" response
2335-
Given operation "MuteSecurityFindings" enabled
2336-
And new "MuteSecurityFindings" request
2331+
Given new "MuteSecurityFindings" request
23372332
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "RISK_ACCEPTED"}}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwMC0wYmd-MDE4NjcyMDJkMzE4MDE5ODY5MGE4ZmQ2MmFlMjg0Y2M=", "type": "findings"}]}}, "type": "mute"}}
23382333
When the request is sent
23392334
Then the response status is 202 Accepted
23402335

23412336
@team:DataDog/k9-investigation
23422337
Scenario: Mute security findings returns "Not Found" response
2343-
Given operation "MuteSecurityFindings" enabled
2344-
And new "MuteSecurityFindings" request
2338+
Given new "MuteSecurityFindings" request
23452339
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1778721573794, "is_muted": true, "reason": "RISK_ACCEPTED"}}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
23462340
When the request is sent
23472341
Then the response status is 404 Not Found
23482342

23492343
@team:DataDog/k9-investigation
23502344
Scenario: Mute security findings returns "Unprocessable Entity" response
2351-
Given operation "MuteSecurityFindings" enabled
2352-
And new "MuteSecurityFindings" request
2345+
Given new "MuteSecurityFindings" request
23532346
And body with value {"data": {"attributes": {"mute": {"description": "To be resolved later.", "expire_at": 1, "is_muted": true, "reason": "RISK_ACCEPTED"}}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
23542347
When the request is sent
23552348
Then the response status is 422 Unprocessable Entity
@@ -2573,24 +2566,21 @@ Feature: Security Monitoring
25732566

25742567
@team:DataDog/k9-investigation
25752568
Scenario: Unmute security findings returns "Accepted" response
2576-
Given operation "MuteSecurityFindings" enabled
2577-
And new "MuteSecurityFindings" request
2569+
Given new "MuteSecurityFindings" request
25782570
And body with value {"data": {"attributes": {"mute": {"description": "Resolved.", "is_muted": false, "reason": "NO_PENDING_FIX"}}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwMC0wYmd-MDE4NjcyMDJkMzE4MDE5ODY5MGE4ZmQ2MmFlMjg0Y2M=", "type": "findings"}]}}, "type": "mute"}}
25792571
When the request is sent
25802572
Then the response status is 202 Accepted
25812573

25822574
@team:DataDog/k9-investigation
25832575
Scenario: Unmute security findings returns "Not Found" response
2584-
Given operation "MuteSecurityFindings" enabled
2585-
And new "MuteSecurityFindings" request
2576+
Given new "MuteSecurityFindings" request
25862577
And body with value {"data": {"attributes": {"mute": {"description": "Resolved.", "is_muted": false, "reason": "NO_PENDING_FIX"}}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
25872578
When the request is sent
25882579
Then the response status is 404 Not Found
25892580

25902581
@team:DataDog/k9-investigation
25912582
Scenario: Unmute security findings returns "Unprocessable Entity" response
2592-
Given operation "MuteSecurityFindings" enabled
2593-
And new "MuteSecurityFindings" request
2583+
Given new "MuteSecurityFindings" request
25942584
And body with value {"data": {"attributes": {"mute": {"description": "Resolved.", "is_muted": false, "reason": "RISK_ACCEPTED"}}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}}, "type": "mute"}}
25952585
When the request is sent
25962586
Then the response status is 422 Unprocessable Entity

0 commit comments

Comments
 (0)