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/cassettes/features/v2/security_monitoring/Get-SBOM-returns-Not-found-asset-not-found-response.frozen b/cassettes/features/v2/security_monitoring/Get-SBOM-returns-Not-found-asset-not-found-response.frozen index f6aafe6e9e0..1aad7fd1a1c 100644 --- a/cassettes/features/v2/security_monitoring/Get-SBOM-returns-Not-found-asset-not-found-response.frozen +++ b/cassettes/features/v2/security_monitoring/Get-SBOM-returns-Not-found-asset-not-found-response.frozen @@ -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/cassettes/features/v2/security_monitoring/Get-SBOM-returns-Not-found-asset-not-found-response.yml b/cassettes/features/v2/security_monitoring/Get-SBOM-returns-Not-found-asset-not-found-response.yml index 4b5a5a42e74..64dc5899b05 100644 --- a/cassettes/features/v2/security_monitoring/Get-SBOM-returns-Not-found-asset-not-found-response.yml +++ b/cassettes/features/v2/security_monitoring/Get-SBOM-returns-Not-found-asset-not-found-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Mon, 10 Feb 2025 11:40:12 GMT +- recorded_at: Tue, 20 Jan 2026 09:40:32 GMT request: body: null headers: diff --git a/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-Not-found-There-is-no-request-associated-with-the-provided-token-response.frozen b/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-Not-found-There-is-no-request-associated-with-the-provided-token-response.frozen index 69173438991..8fc8312cb41 100644 --- a/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-Not-found-There-is-no-request-associated-with-the-provided-token-response.frozen +++ b/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-Not-found-There-is-no-request-associated-with-the-provided-token-response.frozen @@ -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/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-Not-found-There-is-no-request-associated-with-the-provided-token-response.yml b/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-Not-found-There-is-no-request-associated-with-the-provided-token-response.yml index 115f88725c8..7ee5916f24d 100644 --- a/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-Not-found-There-is-no-request-associated-with-the-provided-token-response.yml +++ b/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-Not-found-There-is-no-request-associated-with-the-provided-token-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Thu, 10 Jul 2025 10:13:27 GMT +- recorded_at: Tue, 20 Jan 2026 08:26:52 GMT request: body: null headers: diff --git a/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-OK-response.frozen b/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-OK-response.frozen index c142d99dc72..a502bb4f89a 100644 --- a/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-OK-response.frozen +++ b/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-OK-response.frozen @@ -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/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-OK-response.yml b/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-OK-response.yml index 172f856bd4b..d026cfef8cc 100644 --- a/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-OK-response.yml +++ b/cassettes/features/v2/security_monitoring/List-assets-SBOMs-returns-OK-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Thu, 10 Jul 2025 10:11:37 GMT +- recorded_at: Tue, 20 Jan 2026 08:27:19 GMT request: body: null headers: diff --git a/examples/v2/security-monitoring/GetSBOM.rb b/examples/v2/security-monitoring/GetSBOM.rb index 71e66e40102..482d25f7da7 100644 --- a/examples/v2/security-monitoring/GetSBOM.rb +++ b/examples/v2/security-monitoring/GetSBOM.rb @@ -1,8 +1,5 @@ # Get SBOM returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.get_sbom".to_sym] = true -end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.get_sbom(AssetType::REPOSITORY, "github.com/datadog/datadog-agent") diff --git a/examples/v2/security-monitoring/ListAssetsSBOMs.rb b/examples/v2/security-monitoring/ListAssetsSBOMs.rb index 42b96395ff8..d80cb4f294e 100644 --- a/examples/v2/security-monitoring/ListAssetsSBOMs.rb +++ b/examples/v2/security-monitoring/ListAssetsSBOMs.rb @@ -1,9 +1,6 @@ # List assets SBOMs returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.list_assets_sbo_ms".to_sym] = true -end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new opts = { filter_package_name: "pandas", diff --git a/features/v2/security_monitoring.feature b/features/v2/security_monitoring.feature index 32722676fab..1a620afb10f 100644 --- a/features/v2/security_monitoring.feature +++ b/features/v2/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 diff --git a/lib/datadog_api_client/configuration.rb b/lib/datadog_api_client/configuration.rb index d94287927f3..ea83fc8d734 100644 --- a/lib/datadog_api_client/configuration.rb +++ b/lib/datadog_api_client/configuration.rb @@ -215,12 +215,10 @@ def initialize "v2.delete_threat_hunting_job": false, "v2.get_finding": false, "v2.get_rule_version_history": false, - "v2.get_sbom": false, "v2.get_secrets_rules": false, "v2.get_security_monitoring_histsignal": false, "v2.get_security_monitoring_histsignals_by_job_id": false, "v2.get_threat_hunting_job": false, - "v2.list_assets_sbo_ms": false, "v2.list_findings": false, "v2.list_multiple_rulesets": false, "v2.list_scanned_assets_metadata": false, diff --git a/lib/datadog_api_client/v2/api/security_monitoring_api.rb b/lib/datadog_api_client/v2/api/security_monitoring_api.rb index 356fba37328..69ad106e641 100644 --- a/lib/datadog_api_client/v2/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/security_monitoring_api.rb @@ -2327,12 +2327,6 @@ def get_sbom(asset_type, filter_asset_name, opts = {}) # @option opts [SBOMFormat] :ext_format The standard of the SBOM. # @return [Array<(GetSBOMResponse, Integer, Hash)>] GetSBOMResponse data, response status code and response headers def get_sbom_with_http_info(asset_type, filter_asset_name, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.get_sbom".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_sbom") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_sbom")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_sbom ...' @@ -3510,12 +3504,6 @@ def list_assets_sbo_ms(opts = {}) # @option opts [SBOMComponentLicenseType] :filter_license_type The software license type of the component that is a dependency of an asset. # @return [Array<(ListAssetsSBOMsResponse, Integer, Hash)>] ListAssetsSBOMsResponse data, response status code and response headers def list_assets_sbo_ms_with_http_info(opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.list_assets_sbo_ms".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_assets_sbo_ms") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_assets_sbo_ms")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_assets_sbo_ms ...'