From 3b6b3d4e14b61a77234ba2fedc528b5e14b60e7a Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 6 Aug 2025 20:55:31 +0000 Subject: [PATCH] Regenerate client from commit fd3370f of spec repo --- .generated-info | 4 +-- .generator/schemas/v2/openapi.yaml | 6 ---- .../GetAggregatedConnections.java | 1 - .../GetAggregatedConnections_3059356111.java | 1 - .../GetAggregatedDns.java | 1 - .../com/datadog/api/client/ApiClient.java | 2 -- .../v2/api/CloudNetworkMonitoringApi.java | 36 ------------------- .../v2/api/cloud_network_monitoring.feature | 15 +++----- 8 files changed, 7 insertions(+), 59 deletions(-) diff --git a/.generated-info b/.generated-info index cfbdcaf5d37..a563e159e3d 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "befda92", - "generated": "2025-08-06 19:12:57.307" + "spec_repo_commit": "fd3370f", + "generated": "2025-08-06 20:55:31.339" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6c6262eb253..09fcd841c19 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -57013,9 +57013,6 @@ paths: summary: Get all aggregated connections tags: - Cloud Network Monitoring - x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback, - - contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v2/network/dns/aggregate: get: description: Get all aggregated DNS traffic. @@ -57076,9 +57073,6 @@ paths: summary: Get all aggregated DNS traffic tags: - Cloud Network Monitoring - x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback, - - contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v2/on-call/escalation-policies: post: description: Create a new On-Call escalation policy diff --git a/examples/v2/cloud-network-monitoring/GetAggregatedConnections.java b/examples/v2/cloud-network-monitoring/GetAggregatedConnections.java index a0d91ca04cf..c2fda540474 100644 --- a/examples/v2/cloud-network-monitoring/GetAggregatedConnections.java +++ b/examples/v2/cloud-network-monitoring/GetAggregatedConnections.java @@ -8,7 +8,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.getAggregatedConnections", true); CloudNetworkMonitoringApi apiInstance = new CloudNetworkMonitoringApi(defaultClient); try { diff --git a/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.java b/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.java index 91ae6e13dcc..b0946489fca 100644 --- a/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.java +++ b/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.java @@ -8,7 +8,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.getAggregatedConnections", true); CloudNetworkMonitoringApi apiInstance = new CloudNetworkMonitoringApi(defaultClient); try { diff --git a/examples/v2/cloud-network-monitoring/GetAggregatedDns.java b/examples/v2/cloud-network-monitoring/GetAggregatedDns.java index 53dbf38b49b..0fcfc1de725 100644 --- a/examples/v2/cloud-network-monitoring/GetAggregatedDns.java +++ b/examples/v2/cloud-network-monitoring/GetAggregatedDns.java @@ -8,7 +8,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.getAggregatedDns", true); CloudNetworkMonitoringApi apiInstance = new CloudNetworkMonitoringApi(defaultClient); try { diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java index de59f86fe06..b40b538ee20 100644 --- a/src/main/java/com/datadog/api/client/ApiClient.java +++ b/src/main/java/com/datadog/api/client/ApiClient.java @@ -752,8 +752,6 @@ public class ApiClient { put("v2.updateMonitorUserTemplate", false); put("v2.validateExistingMonitorUserTemplate", false); put("v2.validateMonitorUserTemplate", false); - put("v2.getAggregatedConnections", false); - put("v2.getAggregatedDns", false); put("v2.createPipeline", false); put("v2.deletePipeline", false); put("v2.getPipeline", false); diff --git a/src/main/java/com/datadog/api/client/v2/api/CloudNetworkMonitoringApi.java b/src/main/java/com/datadog/api/client/v2/api/CloudNetworkMonitoringApi.java index 117cea6d080..5fdb584753c 100644 --- a/src/main/java/com/datadog/api/client/v2/api/CloudNetworkMonitoringApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/CloudNetworkMonitoringApi.java @@ -195,13 +195,6 @@ public CompletableFuture getAggregatedC */ public ApiResponse getAggregatedConnectionsWithHttpInfo( GetAggregatedConnectionsOptionalParameters parameters) throws ApiException { - // Check if unstable operation is enabled - String operationId = "getAggregatedConnections"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; Long from = parameters.from; Long to = parameters.to; @@ -251,17 +244,6 @@ public ApiResponse getAggregatedConnect public CompletableFuture> getAggregatedConnectionsWithHttpInfoAsync( GetAggregatedConnectionsOptionalParameters parameters) { - // Check if unstable operation is enabled - String operationId = "getAggregatedConnections"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; Long from = parameters.from; Long to = parameters.to; @@ -457,13 +439,6 @@ public CompletableFuture getAggregatedDnsAsync */ public ApiResponse getAggregatedDnsWithHttpInfo( GetAggregatedDnsOptionalParameters parameters) throws ApiException { - // Check if unstable operation is enabled - String operationId = "getAggregatedDns"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; Long from = parameters.from; Long to = parameters.to; @@ -512,17 +487,6 @@ public ApiResponse getAggregatedDnsWithHttpInf */ public CompletableFuture> getAggregatedDnsWithHttpInfoAsync(GetAggregatedDnsOptionalParameters parameters) { - // Check if unstable operation is enabled - String operationId = "getAggregatedDns"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; Long from = parameters.from; Long to = parameters.to; diff --git a/src/test/resources/com/datadog/api/client/v2/api/cloud_network_monitoring.feature b/src/test/resources/com/datadog/api/client/v2/api/cloud_network_monitoring.feature index feabf8845d0..12064508f1e 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/cloud_network_monitoring.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/cloud_network_monitoring.feature @@ -14,37 +14,32 @@ Feature: Cloud Network Monitoring @team:Datadog/networks Scenario: Get aggregated connections returns "OK" response - Given operation "GetAggregatedConnections" enabled - And new "GetAggregatedConnections" request + Given new "GetAggregatedConnections" request When the request is sent Then the response status is 200 OK @team:Datadog/networks Scenario: Get all aggregated DNS traffic returns "Bad Request" response - Given operation "GetAggregatedDns" enabled - And new "GetAggregatedDns" request + Given new "GetAggregatedDns" request And request contains "group_by" parameter with value "server_ungrouped,server_service" When the request is sent Then the response status is 400 Bad Request @team:Datadog/networks Scenario: Get all aggregated DNS traffic returns "OK" response - Given operation "GetAggregatedDns" enabled - And new "GetAggregatedDns" request + Given new "GetAggregatedDns" request When the request is sent Then the response status is 200 OK @skip-python @skip-ruby @team:Datadog/networks Scenario: Get all aggregated connections returns "Bad Request" response - Given operation "GetAggregatedConnections" enabled - And new "GetAggregatedConnections" request + Given new "GetAggregatedConnections" request And request contains "limit" parameter with value 8000 When the request is sent Then the response status is 400 Bad Request @generated @skip @team:Datadog/networks Scenario: Get all aggregated connections returns "OK" response - Given operation "GetAggregatedConnections" enabled - And new "GetAggregatedConnections" request + Given new "GetAggregatedConnections" request When the request is sent Then the response status is 200 OK