Skip to content

Commit 8d48bf1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit a83cafd of spec repo (#3725)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 4610862 commit 8d48bf1

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123939,7 +123939,10 @@ paths:
123939123939
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
123940123940
/api/v2/compliance_findings/rule_based_view:
123941123941
get:
123942+
deprecated: true
123942123943
description: |-
123944+
**This endpoint is deprecated.** Use the [Security Monitoring - Search Security Findings](https://docs.datadoghq.com/api/latest/security-monitoring/search-security-findings/) endpoint instead.
123945+
123943123946
Get an aggregated view of compliance rules with their pass, fail, and muted finding counts.
123944123947
Supports filtering by compliance framework, framework version, and additional query filters.
123945123948
operationId: GetRuleBasedView
@@ -124017,6 +124020,7 @@ paths:
124017124020
operator: OR
124018124021
permissions:
124019124022
- security_monitoring_findings_read
124023+
x-sunset: "2027-06-26"
124020124024
x-unstable: |-
124021124025
**Note**: This endpoint is in Preview and subject to change.
124022124026
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).

src/datadog_api_client/v2/api/compliance_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from __future__ import annotations
55

66
from typing import Any, Dict, Union
7+
import warnings
78

89
from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
910
from datadog_api_client.configuration import Configuration
@@ -91,7 +92,9 @@ def get_rule_based_view(
9192
is_custom: Union[bool, UnsetType] = unset,
9293
query: Union[str, UnsetType] = unset,
9394
) -> RuleBasedViewResponse:
94-
"""Get the rule-based view of compliance findings.
95+
"""Get the rule-based view of compliance findings. **Deprecated**.
96+
97+
**This endpoint is deprecated.** Use the `Security Monitoring - Search Security Findings <https://docs.datadoghq.com/api/latest/security-monitoring/search-security-findings/>`_ endpoint instead.
9598
9699
Get an aggregated view of compliance rules with their pass, fail, and muted finding counts.
97100
Supports filtering by compliance framework, framework version, and additional query filters.
@@ -133,4 +136,5 @@ def get_rule_based_view(
133136
if query is not unset:
134137
kwargs["query"] = query
135138

139+
warnings.warn("get_rule_based_view is deprecated", DeprecationWarning, stacklevel=2)
136140
return self._get_rule_based_view_endpoint.call_with_http_info(**kwargs)

0 commit comments

Comments
 (0)