Skip to content

Commit 9bf4732

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 8593b27 of spec repo (DataDog#3394)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 5c1a696 commit 9bf4732

7 files changed

Lines changed: 10 additions & 39 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.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Mute or unmute security findings returns "Accepted" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.mute_security_findings".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
85

96
body = DatadogAPIClient::V2::MuteFindingsRequest.new({

examples/v2/security-monitoring/MuteSecurityFindings_298521544.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Unmute security findings returns "Accepted" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.mute_security_findings".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
85

96
body = DatadogAPIClient::V2::MuteFindingsRequest.new({

examples/v2/security-monitoring/MuteSecurityFindings_3830190821.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Mute security findings returns "Accepted" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.mute_security_findings".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
85

96
body = DatadogAPIClient::V2::MuteFindingsRequest.new({

features/v2/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

lib/datadog_api_client/configuration.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ def initialize
363363
"v2.list_vulnerabilities": false,
364364
"v2.list_vulnerable_assets": false,
365365
"v2.mute_findings": false,
366-
"v2.mute_security_findings": false,
367366
"v2.run_historical_job": false,
368367
"v2.search_security_monitoring_histsignals": false,
369368
"v2.update_security_monitoring_dataset": false,

lib/datadog_api_client/v2/api/security_monitoring_api.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8009,12 +8009,6 @@ def mute_security_findings(body, opts = {})
80098009
# @param opts [Hash] the optional parameters
80108010
# @return [Array<(MuteFindingsResponse, Integer, Hash)>] MuteFindingsResponse data, response status code and response headers
80118011
def mute_security_findings_with_http_info(body, opts = {})
8012-
unstable_enabled = @api_client.config.unstable_operations["v2.mute_security_findings".to_sym]
8013-
if unstable_enabled
8014-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.mute_security_findings")
8015-
else
8016-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.mute_security_findings"))
8017-
end
80188012

80198013
if @api_client.config.debugging
80208014
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.mute_security_findings ...'

0 commit comments

Comments
 (0)