Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
671 changes: 461 additions & 210 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2025-10-15T08:41:14.545Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2025-10-15T08:42:14.735Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-01-31T12:04:52.159Z
2025-10-14T13:43:32.350Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-01-31T12:05:04.773Z
2025-10-14T13:43:52.800Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List scanned assets metadata returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_scanned_assets_metadata".to_sym] = true
end
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
p api_instance.list_scanned_assets_metadata()
47 changes: 28 additions & 19 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1296,25 +1296,6 @@
"finding_id" => "String",
"snapshot_timestamp" => "Integer",
},
"v2.ListVulnerableAssets" => {
"page_token" => "String",
"page_number" => "Integer",
"filter_name" => "String",
"filter_type" => "AssetType",
"filter_version_first" => "String",
"filter_version_last" => "String",
"filter_repository_url" => "String",
"filter_risks_in_production" => "Boolean",
"filter_risks_under_attack" => "Boolean",
"filter_risks_is_publicly_accessible" => "Boolean",
"filter_risks_has_privileged_access" => "Boolean",
"filter_risks_has_access_to_sensitive_data" => "Boolean",
"filter_environments" => "String",
"filter_teams" => "String",
"filter_arch" => "String",
"filter_operating_system_name" => "String",
"filter_operating_system_version" => "String",
},
"v2.ListAssetsSBOMs" => {
"page_token" => "String",
"page_number" => "Integer",
Expand All @@ -1329,6 +1310,15 @@
"asset_type" => "AssetType",
"filter_asset_name" => "String",
"filter_repo_digest" => "String",
"ext_format" => "SBOMFormat",
},
"v2.ListScannedAssetsMetadata" => {
"page_token" => "String",
"page_number" => "Integer",
"filter_asset_type" => "CloudAssetType",
"filter_asset_name" => "String",
"filter_last_success_origin" => "String",
"filter_last_success_env" => "String",
},
"v2.CreateSignalNotificationRule" => {
"body" => "CreateNotificationRuleParameters",
Expand Down Expand Up @@ -1400,6 +1390,25 @@
"id" => "String",
"body" => "PatchNotificationRuleParameters",
},
"v2.ListVulnerableAssets" => {
"page_token" => "String",
"page_number" => "Integer",
"filter_name" => "String",
"filter_type" => "AssetType",
"filter_version_first" => "String",
"filter_version_last" => "String",
"filter_repository_url" => "String",
"filter_risks_in_production" => "Boolean",
"filter_risks_under_attack" => "Boolean",
"filter_risks_is_publicly_accessible" => "Boolean",
"filter_risks_has_privileged_access" => "Boolean",
"filter_risks_has_access_to_sensitive_data" => "Boolean",
"filter_environments" => "String",
"filter_teams" => "String",
"filter_arch" => "String",
"filter_operating_system_name" => "String",
"filter_operating_system_version" => "String",
},
"v2.CreateSecurityFilter" => {
"body" => "SecurityFilterCreateRequest",
},
Expand Down
23 changes: 23 additions & 0 deletions features/v2/security_monitoring.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,29 @@ Feature: Security Monitoring
When the request is sent
Then the response status is 200 OK

@skip @team:DataDog/asm-vm
Scenario: List scanned assets metadata returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
Given operation "ListScannedAssetsMetadata" enabled
And new "ListScannedAssetsMetadata" 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/asm-vm
Scenario: List scanned assets metadata returns "Not found: asset not found" response
Given operation "ListScannedAssetsMetadata" enabled
And new "ListScannedAssetsMetadata" request
And request contains "page[token]" parameter with value "unknown"
And request contains "page[number]" parameter with value 1
When the request is sent
Then the response status is 404 Not found: asset not found

@team:DataDog/asm-vm
Scenario: List scanned assets metadata returns "OK" response
Given operation "ListScannedAssetsMetadata" enabled
And new "ListScannedAssetsMetadata" request
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/asm-vm
Scenario: List vulnerabilities returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
Given operation "ListVulnerabilities" enabled
Expand Down
18 changes: 12 additions & 6 deletions features/v2/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3223,12 +3223,6 @@
"type": "idempotent"
}
},
"ListVulnerableAssets": {
"tag": "Security Monitoring",
"undo": {
"type": "safe"
}
},
"DownloadCloudWorkloadPolicyFile": {
"tag": "CSM Threats",
"undo": {
Expand All @@ -3247,6 +3241,12 @@
"type": "safe"
}
},
"ListScannedAssetsMetadata": {
"tag": "Security Monitoring",
"undo": {
"type": "safe"
}
},
"GetSignalNotificationRules": {
"tag": "Security Monitoring",
"undo": {
Expand Down Expand Up @@ -3327,6 +3327,12 @@
"type": "idempotent"
}
},
"ListVulnerableAssets": {
"tag": "Security Monitoring",
"undo": {
"type": "safe"
}
},
"ListCloudWorkloadSecurityAgentRules": {
"tag": "CSM Threats",
"undo": {
Expand Down
1 change: 1 addition & 0 deletions lib/datadog_api_client/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def initialize
"v2.list_assets_sbo_ms": false,
"v2.list_findings": false,
"v2.list_historical_jobs": false,
"v2.list_scanned_assets_metadata": false,
"v2.list_security_monitoring_histsignals": false,
"v2.list_vulnerabilities": false,
"v2.list_vulnerable_assets": false,
Expand Down
8 changes: 8 additions & 0 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1439,6 +1439,7 @@ def overrides
"v2.clickup_integration" => "ClickupIntegration",
"v2.clickup_integration_type" => "ClickupIntegrationType",
"v2.clickup_integration_update" => "ClickupIntegrationUpdate",
"v2.cloud_asset_type" => "CloudAssetType",
"v2.cloud_configuration_compliance_rule_options" => "CloudConfigurationComplianceRuleOptions",
"v2.cloud_configuration_rego_rule" => "CloudConfigurationRegoRule",
"v2.cloud_configuration_rule_case_create" => "CloudConfigurationRuleCaseCreate",
Expand Down Expand Up @@ -3512,6 +3513,7 @@ def overrides
"v2.sbom_component_property" => "SBOMComponentProperty",
"v2.sbom_component_supplier" => "SBOMComponentSupplier",
"v2.sbom_component_type" => "SBOMComponentType",
"v2.sbom_format" => "SBOMFormat",
"v2.sbom_metadata" => "SBOMMetadata",
"v2.sbom_metadata_author" => "SBOMMetadataAuthor",
"v2.sbom_metadata_component" => "SBOMMetadataComponent",
Expand All @@ -3529,6 +3531,11 @@ def overrides
"v2.scalar_meta" => "ScalarMeta",
"v2.scalar_query" => "ScalarQuery",
"v2.scalar_response" => "ScalarResponse",
"v2.scanned_asset_metadata" => "ScannedAssetMetadata",
"v2.scanned_asset_metadata_asset" => "ScannedAssetMetadataAsset",
"v2.scanned_asset_metadata_attributes" => "ScannedAssetMetadataAttributes",
"v2.scanned_asset_metadata_last_success" => "ScannedAssetMetadataLastSuccess",
"v2.scanned_assets_metadata" => "ScannedAssetsMetadata",
"v2.schedule" => "Schedule",
"v2.schedule_create_request" => "ScheduleCreateRequest",
"v2.schedule_create_request_data" => "ScheduleCreateRequestData",
Expand Down Expand Up @@ -4172,6 +4179,7 @@ def overrides
"v2.virus_total_integration_update" => "VirusTotalIntegrationUpdate",
"v2.vulnerabilities_type" => "VulnerabilitiesType",
"v2.vulnerability" => "Vulnerability",
"v2.vulnerability_advisory" => "VulnerabilityAdvisory",
"v2.vulnerability_attributes" => "VulnerabilityAttributes",
"v2.vulnerability_cvss" => "VulnerabilityCvss",
"v2.vulnerability_dependency_locations" => "VulnerabilityDependencyLocations",
Expand Down
Loading
Loading