Skip to content

Commit a923a1e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a0be1ac of spec repo
1 parent 19a4754 commit a923a1e

6 files changed

Lines changed: 10 additions & 27 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146585,9 +146585,6 @@ paths:
146585146585
permissions:
146586146586
- security_monitoring_findings_write
146587146587
- appsec_vm_write
146588-
x-unstable: |-
146589-
**Note**: This endpoint is in preview and is subject to change.
146590-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
146591146588
/api/v2/security/findings/search:
146592146589
post:
146593146590
description: |-

examples/v2/security-monitoring/MuteSecurityFindings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
)
4242

4343
configuration = Configuration()
44-
configuration.unstable_operations["mute_security_findings"] = True
4544
with ApiClient(configuration) as api_client:
4645
api_instance = SecurityMonitoringApi(api_client)
4746
response = api_instance.mute_security_findings(body=body)

examples/v2/security-monitoring/MuteSecurityFindings_298521544.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
)
4040

4141
configuration = Configuration()
42-
configuration.unstable_operations["mute_security_findings"] = True
4342
with ApiClient(configuration) as api_client:
4443
api_instance = SecurityMonitoringApi(api_client)
4544
response = api_instance.mute_security_findings(body=body)

examples/v2/security-monitoring/MuteSecurityFindings_3830190821.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
)
4141

4242
configuration = Configuration()
43-
configuration.unstable_operations["mute_security_findings"] = True
4443
with ApiClient(configuration) as api_client:
4544
api_instance = SecurityMonitoringApi(api_client)
4645
response = api_instance.mute_security_findings(body=body)

src/datadog_api_client/configuration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ def __init__(
421421
"v2.list_vulnerabilities": False,
422422
"v2.list_vulnerable_assets": False,
423423
"v2.mute_findings": False,
424-
"v2.mute_security_findings": False,
425424
"v2.run_historical_job": False,
426425
"v2.search_security_monitoring_histsignals": False,
427426
"v2.update_security_monitoring_dataset": False,

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