Skip to content

Commit 0718a57

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 37cc6f3 of spec repo
1 parent 07c5c19 commit 0718a57

21 files changed

+1514
-23
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 322 additions & 12 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-10-14T13:09:10.481Z

cassettes/features/v2/security_monitoring/List-Scanned-Assets-Metadata-returns-Not-found-asset-not-found-response.yml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-10-14T13:14:21.010Z

cassettes/features/v2/security_monitoring/List-Scanned-Assets-Metadata-returns-OK-response.yml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List Scanned Assets Metadata returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_scanned_assets_metadata".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
8+
p api_instance.list_scanned_assets_metadata()

features/scenarios_model_mapping.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,15 @@
13131313
"asset_type" => "AssetType",
13141314
"filter_asset_name" => "String",
13151315
"filter_repo_digest" => "String",
1316+
"ext_format" => "SBOMFormat",
1317+
},
1318+
"v2.ListScannedAssetsMetadata" => {
1319+
"page_token" => "String",
1320+
"page_number" => "Integer",
1321+
"filter_asset_type" => "CloudAssetType",
1322+
"filter_asset_name" => "String",
1323+
"filter_last_success_origin" => "String",
1324+
"filter_last_success_env" => "String",
13161325
},
13171326
"v2.CreateSignalNotificationRule" => {
13181327
"body" => "CreateNotificationRuleParameters",

features/v2/security_monitoring.feature

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,29 @@ Feature: Security Monitoring
923923
When the request is sent
924924
Then the response status is 200 The list of notification rules.
925925

926+
@skip @team:DataDog/asm-vm
927+
Scenario: List Scanned Assets Metadata returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
928+
Given operation "ListScannedAssetsMetadata" enabled
929+
And new "ListScannedAssetsMetadata" request
930+
When the request is sent
931+
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
932+
933+
@team:DataDog/asm-vm
934+
Scenario: List Scanned Assets Metadata returns "Not found: asset not found" response
935+
Given operation "ListScannedAssetsMetadata" enabled
936+
And new "ListScannedAssetsMetadata" request
937+
And request contains "page[token]" parameter with value "unknown"
938+
And request contains "page[number]" parameter with value 1
939+
When the request is sent
940+
Then the response status is 404 Not found: asset not found
941+
942+
@team:DataDog/asm-vm
943+
Scenario: List Scanned Assets Metadata returns "OK" response
944+
Given operation "ListScannedAssetsMetadata" enabled
945+
And new "ListScannedAssetsMetadata" request
946+
When the request is sent
947+
Then the response status is 200 OK
948+
926949
@generated @skip @team:DataDog/asm-vm
927950
Scenario: List assets SBOMs returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
928951
Given operation "ListAssetsSBOMs" enabled

features/v2/undo.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3204,6 +3204,12 @@
32043204
"type": "safe"
32053205
}
32063206
},
3207+
"ListScannedAssetsMetadata": {
3208+
"tag": "Security Monitoring",
3209+
"undo": {
3210+
"type": "safe"
3211+
}
3212+
},
32073213
"GetSignalNotificationRules": {
32083214
"tag": "Security Monitoring",
32093215
"undo": {

lib/datadog_api_client/configuration.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def initialize
206206
"v2.list_assets_sbo_ms": false,
207207
"v2.list_findings": false,
208208
"v2.list_historical_jobs": false,
209+
"v2.list_scanned_assets_metadata": false,
209210
"v2.list_security_monitoring_histsignals": false,
210211
"v2.list_vulnerabilities": false,
211212
"v2.list_vulnerable_assets": false,

0 commit comments

Comments
 (0)