From e8d0a6105c0e6b337b1dc5fdaa13b5ca97187d7a Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 26 Jun 2026 20:19:48 +0000 Subject: [PATCH] Regenerate client from commit a83cafd of spec repo --- .generator/schemas/v2/openapi.yaml | 4 ++++ lib/datadog_api_client/v2/api/compliance_api.rb | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index cee9ad50485e..e329d006c051 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -123847,7 +123847,10 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/compliance_findings/rule_based_view: get: + deprecated: true description: |- + **This endpoint is deprecated.** Use the [Security Monitoring - Search Security Findings](https://docs.datadoghq.com/api/latest/security-monitoring/search-security-findings/) endpoint instead. + Get an aggregated view of compliance rules with their pass, fail, and muted finding counts. Supports filtering by compliance framework, framework version, and additional query filters. operationId: GetRuleBasedView @@ -123925,6 +123928,7 @@ paths: operator: OR permissions: - security_monitoring_findings_read + x-sunset: "2027-06-26" x-unstable: |- **Note**: This endpoint is in Preview and subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). diff --git a/lib/datadog_api_client/v2/api/compliance_api.rb b/lib/datadog_api_client/v2/api/compliance_api.rb index 507dd54e14b9..3296c6401833 100644 --- a/lib/datadog_api_client/v2/api/compliance_api.rb +++ b/lib/datadog_api_client/v2/api/compliance_api.rb @@ -33,9 +33,13 @@ def get_rule_based_view(to, opts = {}) # Get the rule-based view of compliance findings. # + # **This endpoint is deprecated.** Use the [Security Monitoring - Search Security Findings](https://docs.datadoghq.com/api/latest/security-monitoring/search-security-findings/) endpoint instead. + # # Get an aggregated view of compliance rules with their pass, fail, and muted finding counts. # Supports filtering by compliance framework, framework version, and additional query filters. # + # @deprecated This API is deprecated. + # # @param to [Integer] Timestamp of the query end, in milliseconds since the Unix epoch. # @param opts [Hash] the optional parameters # @option opts [String] :framework Compliance framework handle to filter rules and findings by. @@ -46,6 +50,7 @@ def get_rule_based_view(to, opts = {}) # @option opts [String] :query Additional event-platform filters applied to the underlying findings query. For example, `scored:true project_id:datadog-prod-us5`. # @return [Array<(RuleBasedViewResponse, Integer, Hash)>] RuleBasedViewResponse data, response status code and response headers def get_rule_based_view_with_http_info(to, opts = {}) + warn "[DEPRECATION] `GetRuleBasedView` is deprecated." unstable_enabled = @api_client.config.unstable_operations["v2.get_rule_based_view".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_rule_based_view")