diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index cee9ad50485..e329d006c05 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/src/main/java/com/datadog/api/client/v2/api/ComplianceApi.java b/src/main/java/com/datadog/api/client/v2/api/ComplianceApi.java index 0356193666c..4ea5a1ce9a8 100644 --- a/src/main/java/com/datadog/api/client/v2/api/ComplianceApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/ComplianceApi.java @@ -137,7 +137,9 @@ public GetRuleBasedViewOptionalParameters query(String query) { * @param to Timestamp of the query end, in milliseconds since the Unix epoch. (required) * @return RuleBasedViewResponse * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public RuleBasedViewResponse getRuleBasedView(Long to) throws ApiException { return getRuleBasedViewWithHttpInfo(to, new GetRuleBasedViewOptionalParameters()).getData(); } @@ -149,7 +151,9 @@ public RuleBasedViewResponse getRuleBasedView(Long to) throws ApiException { * * @param to Timestamp of the query end, in milliseconds since the Unix epoch. (required) * @return CompletableFuture<RuleBasedViewResponse> + * @deprecated */ + @Deprecated public CompletableFuture getRuleBasedViewAsync(Long to) { return getRuleBasedViewWithHttpInfoAsync(to, new GetRuleBasedViewOptionalParameters()) .thenApply( @@ -167,7 +171,9 @@ public CompletableFuture getRuleBasedViewAsync(Long to) { * @param parameters Optional parameters for the request. * @return RuleBasedViewResponse * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public RuleBasedViewResponse getRuleBasedView( Long to, GetRuleBasedViewOptionalParameters parameters) throws ApiException { return getRuleBasedViewWithHttpInfo(to, parameters).getData(); @@ -181,7 +187,9 @@ public RuleBasedViewResponse getRuleBasedView( * @param to Timestamp of the query end, in milliseconds since the Unix epoch. (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<RuleBasedViewResponse> + * @deprecated */ + @Deprecated public CompletableFuture getRuleBasedViewAsync( Long to, GetRuleBasedViewOptionalParameters parameters) { return getRuleBasedViewWithHttpInfoAsync(to, parameters) @@ -192,7 +200,11 @@ public CompletableFuture getRuleBasedViewAsync( } /** - * Get an aggregated view of compliance rules with their pass, fail, and muted finding counts. + * This endpoint is deprecated. Use the 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. * * @param to Timestamp of the query end, in milliseconds since the Unix epoch. (required) @@ -209,7 +221,10 @@ public CompletableFuture getRuleBasedViewAsync( * 429 Too many requests - * 503 Service Unavailable - * + * + * @deprecated */ + @Deprecated public ApiResponse getRuleBasedViewWithHttpInfo( Long to, GetRuleBasedViewOptionalParameters parameters) throws ApiException { // Check if unstable operation is enabled @@ -278,7 +293,9 @@ public ApiResponse getRuleBasedViewWithHttpInfo( * @param to Timestamp of the query end, in milliseconds since the Unix epoch. (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<ApiResponse<RuleBasedViewResponse>> + * @deprecated */ + @Deprecated public CompletableFuture> getRuleBasedViewWithHttpInfoAsync( Long to, GetRuleBasedViewOptionalParameters parameters) { // Check if unstable operation is enabled