diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 54114258533..6cd7c2ab9ef 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -87364,9 +87364,6 @@ paths: operator: OR permissions: - appsec_vm_read - x-unstable: '**Note**: This endpoint is a private preview. - - If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).' /api/v2/security/sboms/{asset_type}: get: description: Get a single SBOM related to an asset by its type and name. @@ -87439,9 +87436,6 @@ paths: operator: OR permissions: - appsec_vm_read - x-unstable: '**Note**: This endpoint is a private preview. - - If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).' /api/v2/security/scanned-assets-metadata: get: description: "Get a list of security scanned assets metadata for an organization.\n\n### diff --git a/examples/v2/security-monitoring/GetSBOM.java b/examples/v2/security-monitoring/GetSBOM.java index c2a9c977211..f5b56af4d96 100644 --- a/examples/v2/security-monitoring/GetSBOM.java +++ b/examples/v2/security-monitoring/GetSBOM.java @@ -9,7 +9,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.getSBOM", true); SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient); try { diff --git a/examples/v2/security-monitoring/ListAssetsSBOMs.java b/examples/v2/security-monitoring/ListAssetsSBOMs.java index 78fa32cd531..1d159e92e97 100644 --- a/examples/v2/security-monitoring/ListAssetsSBOMs.java +++ b/examples/v2/security-monitoring/ListAssetsSBOMs.java @@ -10,7 +10,6 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.listAssetsSBOMs", true); SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(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 5c25d9425fa..79077f61351 100644 --- a/src/main/java/com/datadog/api/client/ApiClient.java +++ b/src/main/java/com/datadog/api/client/ApiClient.java @@ -782,12 +782,10 @@ public class ApiClient { put("v2.deleteThreatHuntingJob", false); put("v2.getFinding", false); put("v2.getRuleVersionHistory", false); - put("v2.getSBOM", false); put("v2.getSecretsRules", false); put("v2.getSecurityMonitoringHistsignal", false); put("v2.getSecurityMonitoringHistsignalsByJobId", false); put("v2.getThreatHuntingJob", false); - put("v2.listAssetsSBOMs", false); put("v2.listFindings", false); put("v2.listMultipleRulesets", false); put("v2.listScannedAssetsMetadata", false); diff --git a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java index 2d301000676..ebc4ccc5132 100644 --- a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java @@ -5327,13 +5327,6 @@ public CompletableFuture getSBOMAsync( public ApiResponse getSBOMWithHttpInfo( AssetType assetType, String filterAssetName, GetSBOMOptionalParameters parameters) throws ApiException { - // Check if unstable operation is enabled - String operationId = "getSBOM"; - 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; // verify the required parameter 'assetType' is set @@ -5395,16 +5388,6 @@ public ApiResponse getSBOMWithHttpInfo( */ public CompletableFuture> getSBOMWithHttpInfoAsync( AssetType assetType, String filterAssetName, GetSBOMOptionalParameters parameters) { - // Check if unstable operation is enabled - String operationId = "getSBOM"; - 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; // verify the required parameter 'assetType' is set @@ -8138,13 +8121,6 @@ public CompletableFuture listAssetsSBOMsAsync( */ public ApiResponse listAssetsSBOMsWithHttpInfo( ListAssetsSBOMsOptionalParameters parameters) throws ApiException { - // Check if unstable operation is enabled - String operationId = "listAssetsSBOMs"; - 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; String pageToken = parameters.pageToken; Long pageNumber = parameters.pageNumber; @@ -8205,16 +8181,6 @@ public ApiResponse listAssetsSBOMsWithHttpInfo( */ public CompletableFuture> listAssetsSBOMsWithHttpInfoAsync( ListAssetsSBOMsOptionalParameters parameters) { - // Check if unstable operation is enabled - String operationId = "listAssetsSBOMs"; - 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; String pageToken = parameters.pageToken; Long pageNumber = parameters.pageNumber; diff --git a/src/test/resources/cassettes/features/v2/Get_SBOM_returns_Not_found_asset_not_found_response.freeze b/src/test/resources/cassettes/features/v2/Get_SBOM_returns_Not_found_asset_not_found_response.freeze index f6aafe6e9e0..1aad7fd1a1c 100644 --- a/src/test/resources/cassettes/features/v2/Get_SBOM_returns_Not_found_asset_not_found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_SBOM_returns_Not_found_asset_not_found_response.freeze @@ -1 +1 @@ -2025-02-10T11:40:12.098Z \ No newline at end of file +2026-01-20T09:40:32.938Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_assets_SBOMs_returns_Not_found_There_is_no_request_associated_with_the_provided_token_response.freeze b/src/test/resources/cassettes/features/v2/List_assets_SBOMs_returns_Not_found_There_is_no_request_associated_with_the_provided_token_response.freeze index 69173438991..8fc8312cb41 100644 --- a/src/test/resources/cassettes/features/v2/List_assets_SBOMs_returns_Not_found_There_is_no_request_associated_with_the_provided_token_response.freeze +++ b/src/test/resources/cassettes/features/v2/List_assets_SBOMs_returns_Not_found_There_is_no_request_associated_with_the_provided_token_response.freeze @@ -1 +1 @@ -2025-07-10T10:13:27.247Z \ No newline at end of file +2026-01-20T08:26:52.182Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/List_assets_SBOMs_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/List_assets_SBOMs_returns_OK_response.freeze index c142d99dc72..a502bb4f89a 100644 --- a/src/test/resources/cassettes/features/v2/List_assets_SBOMs_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/List_assets_SBOMs_returns_OK_response.freeze @@ -1 +1 @@ -2025-07-10T10:11:37.540Z \ No newline at end of file +2026-01-20T08:27:19.760Z \ No newline at end of file diff --git a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature index 32722676fab..1a620afb10f 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature @@ -809,8 +809,7 @@ Feature: Security Monitoring @generated @skip @team:DataDog/k9-cloud-vm Scenario: Get SBOM returns "Bad request: The server cannot process the request due to invalid syntax in the request." response - Given operation "GetSBOM" enabled - And new "GetSBOM" request + Given new "GetSBOM" request And request contains "asset_type" parameter from "REPLACE.ME" And request contains "filter[asset_name]" parameter from "REPLACE.ME" When the request is sent @@ -818,8 +817,7 @@ Feature: Security Monitoring @team:DataDog/k9-cloud-vm Scenario: Get SBOM returns "Not found: asset not found" response - Given operation "GetSBOM" enabled - And new "GetSBOM" request + Given new "GetSBOM" request And request contains "asset_type" parameter with value "Host" And request contains "filter[asset_name]" parameter with value "unknown-host" When the request is sent @@ -827,8 +825,7 @@ Feature: Security Monitoring @skip @team:DataDog/k9-cloud-vm Scenario: Get SBOM returns "OK" response - Given operation "GetSBOM" enabled - And new "GetSBOM" request + Given new "GetSBOM" request And request contains "asset_type" parameter with value "Repository" And request contains "filter[asset_name]" parameter with value "github.com/datadog/datadog-agent" When the request is sent @@ -1297,15 +1294,13 @@ Feature: Security Monitoring @generated @skip @team:DataDog/k9-cloud-vm Scenario: List assets SBOMs returns "Bad request: The server cannot process the request due to invalid syntax in the request." response - Given operation "ListAssetsSBOMs" enabled - And new "ListAssetsSBOMs" request + Given new "ListAssetsSBOMs" request When the request is sent Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request. @team:DataDog/k9-cloud-vm Scenario: List assets SBOMs returns "Not found: There is no request associated with the provided token." response - Given operation "ListAssetsSBOMs" enabled - And new "ListAssetsSBOMs" request + Given new "ListAssetsSBOMs" request And request contains "page[token]" parameter with value "unknown" And request contains "page[number]" parameter with value 1 When the request is sent @@ -1313,15 +1308,13 @@ Feature: Security Monitoring @generated @skip @team:DataDog/k9-cloud-vm Scenario: List assets SBOMs returns "Not found: asset not found" response - Given operation "ListAssetsSBOMs" enabled - And new "ListAssetsSBOMs" request + Given new "ListAssetsSBOMs" request When the request is sent Then the response status is 404 Not found: asset not found @team:DataDog/k9-cloud-vm Scenario: List assets SBOMs returns "OK" response - Given operation "ListAssetsSBOMs" enabled - And new "ListAssetsSBOMs" request + Given new "ListAssetsSBOMs" request And request contains "filter[package_name]" parameter with value "pandas" And request contains "filter[asset_type]" parameter with value "Service" When the request is sent