From db5a94ee7ce9f758a36d2df6a9616fc95486e42d Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 28 May 2026 13:57:14 +0000 Subject: [PATCH] Regenerate client from commit 8593b27 of spec repo --- .generator/schemas/v2/openapi.yaml | 3 -- .../MuteSecurityFindings.py | 1 - .../MuteSecurityFindings_298521544.py | 1 - .../MuteSecurityFindings_3830190821.py | 1 - src/datadog_api_client/configuration.py | 1 - tests/v2/features/security_monitoring.feature | 30 +++++++------------ 6 files changed, 10 insertions(+), 27 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 00379af6ca..dede702aea 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -146803,9 +146803,6 @@ paths: permissions: - security_monitoring_findings_write - appsec_vm_write - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/search: post: description: |- diff --git a/examples/v2/security-monitoring/MuteSecurityFindings.py b/examples/v2/security-monitoring/MuteSecurityFindings.py index 650245266c..3e0c9f6f97 100644 --- a/examples/v2/security-monitoring/MuteSecurityFindings.py +++ b/examples/v2/security-monitoring/MuteSecurityFindings.py @@ -41,7 +41,6 @@ ) configuration = Configuration() -configuration.unstable_operations["mute_security_findings"] = True with ApiClient(configuration) as api_client: api_instance = SecurityMonitoringApi(api_client) response = api_instance.mute_security_findings(body=body) diff --git a/examples/v2/security-monitoring/MuteSecurityFindings_298521544.py b/examples/v2/security-monitoring/MuteSecurityFindings_298521544.py index 04dcbb195a..ada21d9a4f 100644 --- a/examples/v2/security-monitoring/MuteSecurityFindings_298521544.py +++ b/examples/v2/security-monitoring/MuteSecurityFindings_298521544.py @@ -39,7 +39,6 @@ ) configuration = Configuration() -configuration.unstable_operations["mute_security_findings"] = True with ApiClient(configuration) as api_client: api_instance = SecurityMonitoringApi(api_client) response = api_instance.mute_security_findings(body=body) diff --git a/examples/v2/security-monitoring/MuteSecurityFindings_3830190821.py b/examples/v2/security-monitoring/MuteSecurityFindings_3830190821.py index 0448afc8e0..01d6ff604a 100644 --- a/examples/v2/security-monitoring/MuteSecurityFindings_3830190821.py +++ b/examples/v2/security-monitoring/MuteSecurityFindings_3830190821.py @@ -40,7 +40,6 @@ ) configuration = Configuration() -configuration.unstable_operations["mute_security_findings"] = True with ApiClient(configuration) as api_client: api_instance = SecurityMonitoringApi(api_client) response = api_instance.mute_security_findings(body=body) diff --git a/src/datadog_api_client/configuration.py b/src/datadog_api_client/configuration.py index f58ee9964c..3b007a97f4 100644 --- a/src/datadog_api_client/configuration.py +++ b/src/datadog_api_client/configuration.py @@ -421,7 +421,6 @@ def __init__( "v2.list_vulnerabilities": False, "v2.list_vulnerable_assets": False, "v2.mute_findings": False, - "v2.mute_security_findings": False, "v2.run_historical_job": False, "v2.search_security_monitoring_histsignals": False, "v2.update_security_monitoring_dataset": False, diff --git a/tests/v2/features/security_monitoring.feature b/tests/v2/features/security_monitoring.feature index f982d3c707..4bafaa9beb 100644 --- a/tests/v2/features/security_monitoring.feature +++ b/tests/v2/features/security_monitoring.feature @@ -2300,56 +2300,49 @@ Feature: Security Monitoring @generated @skip @team:DataDog/k9-investigation Scenario: Mute or unmute security findings returns "Accepted" response - Given operation "MuteSecurityFindings" enabled - And new "MuteSecurityFindings" request + Given new "MuteSecurityFindings" request 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"}} When the request is sent Then the response status is 202 Accepted @generated @skip @team:DataDog/k9-investigation Scenario: Mute or unmute security findings returns "Bad Request" response - Given operation "MuteSecurityFindings" enabled - And new "MuteSecurityFindings" request + Given new "MuteSecurityFindings" request 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"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/k9-investigation Scenario: Mute or unmute security findings returns "Not Found" response - Given operation "MuteSecurityFindings" enabled - And new "MuteSecurityFindings" request + Given new "MuteSecurityFindings" request 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"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/k9-investigation Scenario: Mute or unmute security findings returns "Unprocessable Entity" response - Given operation "MuteSecurityFindings" enabled - And new "MuteSecurityFindings" request + Given new "MuteSecurityFindings" request 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"}} When the request is sent Then the response status is 422 Unprocessable Entity @team:DataDog/k9-investigation Scenario: Mute security findings returns "Accepted" response - Given operation "MuteSecurityFindings" enabled - And new "MuteSecurityFindings" request + Given new "MuteSecurityFindings" request 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"}} When the request is sent Then the response status is 202 Accepted @team:DataDog/k9-investigation Scenario: Mute security findings returns "Not Found" response - Given operation "MuteSecurityFindings" enabled - And new "MuteSecurityFindings" request + Given new "MuteSecurityFindings" request 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"}} When the request is sent Then the response status is 404 Not Found @team:DataDog/k9-investigation Scenario: Mute security findings returns "Unprocessable Entity" response - Given operation "MuteSecurityFindings" enabled - And new "MuteSecurityFindings" request + Given new "MuteSecurityFindings" request 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"}} When the request is sent Then the response status is 422 Unprocessable Entity @@ -2573,24 +2566,21 @@ Feature: Security Monitoring @team:DataDog/k9-investigation Scenario: Unmute security findings returns "Accepted" response - Given operation "MuteSecurityFindings" enabled - And new "MuteSecurityFindings" request + Given new "MuteSecurityFindings" request 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"}} When the request is sent Then the response status is 202 Accepted @team:DataDog/k9-investigation Scenario: Unmute security findings returns "Not Found" response - Given operation "MuteSecurityFindings" enabled - And new "MuteSecurityFindings" request + Given new "MuteSecurityFindings" request 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"}} When the request is sent Then the response status is 404 Not Found @team:DataDog/k9-investigation Scenario: Unmute security findings returns "Unprocessable Entity" response - Given operation "MuteSecurityFindings" enabled - And new "MuteSecurityFindings" request + Given new "MuteSecurityFindings" request 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"}} When the request is sent Then the response status is 422 Unprocessable Entity