Skip to content

Commit b550dcb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d1762c9 of spec repo
1 parent 07c5c19 commit b550dcb

19 files changed

+1505
-39
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 324 additions & 13 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
# List assets SBOMs returns "OK" response
1+
# List SBOMs returns "OK" response
22

33
require "datadog_api_client"
44
DatadogAPIClient.configure do |config|
55
config.unstable_operations["v2.list_assets_sbo_ms".to_sym] = true
66
end
77
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
8-
opts = {
9-
filter_package_name: "pandas",
10-
filter_asset_type: AssetType::SERVICE,
11-
}
12-
p api_instance.list_assets_sbo_ms(opts)
8+
p api_instance.list_assets_sbo_ms()
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# List assets SBOMs returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_assets_sbo_ms".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
8+
opts = {
9+
filter_package_name: "pandas",
10+
filter_asset_type: AssetType::SERVICE,
11+
}
12+
p api_instance.list_assets_sbo_ms(opts)
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: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -924,28 +924,56 @@ Feature: Security Monitoring
924924
Then the response status is 200 The list of notification rules.
925925

926926
@generated @skip @team:DataDog/asm-vm
927-
Scenario: List assets SBOMs returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
927+
Scenario: List SBOMs returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
928928
Given operation "ListAssetsSBOMs" enabled
929929
And new "ListAssetsSBOMs" request
930930
When the request is sent
931931
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
932932

933-
@team:DataDog/asm-vm
934-
Scenario: List assets SBOMs returns "Not found: There is no request associated with the provided token." response
933+
@generated @skip @team:DataDog/asm-vm
934+
Scenario: List SBOMs returns "Not found: asset not found" response
935935
Given operation "ListAssetsSBOMs" enabled
936936
And new "ListAssetsSBOMs" request
937-
And request contains "page[token]" parameter with value "unknown"
938-
And request contains "page[number]" parameter with value 1
939937
When the request is sent
940-
Then the response status is 404 Not found: There is no request associated with the provided token.
938+
Then the response status is 404 Not found: asset not found
941939

942940
@generated @skip @team:DataDog/asm-vm
943-
Scenario: List assets SBOMs returns "Not found: asset not found" response
941+
Scenario: List SBOMs returns "OK" response
944942
Given operation "ListAssetsSBOMs" enabled
945943
And new "ListAssetsSBOMs" request
946944
When the request is sent
945+
Then the response status is 200 OK
946+
947+
@generated @skip @team:DataDog/asm-vm
948+
Scenario: List Scanned Assets Metadata returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
949+
Given operation "ListScannedAssetsMetadata" enabled
950+
And new "ListScannedAssetsMetadata" request
951+
When the request is sent
952+
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
953+
954+
@generated @skip @team:DataDog/asm-vm
955+
Scenario: List Scanned Assets Metadata returns "Not found: asset not found" response
956+
Given operation "ListScannedAssetsMetadata" enabled
957+
And new "ListScannedAssetsMetadata" request
958+
When the request is sent
947959
Then the response status is 404 Not found: asset not found
948960

961+
@generated @skip @team:DataDog/asm-vm
962+
Scenario: List Scanned Assets Metadata returns "OK" response
963+
Given operation "ListScannedAssetsMetadata" enabled
964+
And new "ListScannedAssetsMetadata" request
965+
When the request is sent
966+
Then the response status is 200 OK
967+
968+
@team:DataDog/asm-vm
969+
Scenario: List assets SBOMs returns "Not found: There is no request associated with the provided token." response
970+
Given operation "ListAssetsSBOMs" enabled
971+
And new "ListAssetsSBOMs" request
972+
And request contains "page[token]" parameter with value "unknown"
973+
And request contains "page[number]" parameter with value 1
974+
When the request is sent
975+
Then the response status is 404 Not found: There is no request associated with the provided token.
976+
949977
@team:DataDog/asm-vm
950978
Scenario: List assets SBOMs returns "OK" response
951979
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,

lib/datadog_api_client/inflector.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,7 @@ def overrides
14391439
"v2.clickup_integration" => "ClickupIntegration",
14401440
"v2.clickup_integration_type" => "ClickupIntegrationType",
14411441
"v2.clickup_integration_update" => "ClickupIntegrationUpdate",
1442+
"v2.cloud_asset_type" => "CloudAssetType",
14421443
"v2.cloud_configuration_compliance_rule_options" => "CloudConfigurationComplianceRuleOptions",
14431444
"v2.cloud_configuration_rego_rule" => "CloudConfigurationRegoRule",
14441445
"v2.cloud_configuration_rule_case_create" => "CloudConfigurationRuleCaseCreate",
@@ -3502,6 +3503,7 @@ def overrides
35023503
"v2.sbom_component_property" => "SBOMComponentProperty",
35033504
"v2.sbom_component_supplier" => "SBOMComponentSupplier",
35043505
"v2.sbom_component_type" => "SBOMComponentType",
3506+
"v2.sbom_format" => "SBOMFormat",
35053507
"v2.sbom_metadata" => "SBOMMetadata",
35063508
"v2.sbom_metadata_author" => "SBOMMetadataAuthor",
35073509
"v2.sbom_metadata_component" => "SBOMMetadataComponent",
@@ -3519,6 +3521,11 @@ def overrides
35193521
"v2.scalar_meta" => "ScalarMeta",
35203522
"v2.scalar_query" => "ScalarQuery",
35213523
"v2.scalar_response" => "ScalarResponse",
3524+
"v2.scanned_asset_metadata" => "ScannedAssetMetadata",
3525+
"v2.scanned_asset_metadata_asset" => "ScannedAssetMetadataAsset",
3526+
"v2.scanned_asset_metadata_attributes" => "ScannedAssetMetadataAttributes",
3527+
"v2.scanned_asset_metadata_last_success" => "ScannedAssetMetadataLastSuccess",
3528+
"v2.scanned_assets_metadata" => "ScannedAssetsMetadata",
35223529
"v2.schedule" => "Schedule",
35233530
"v2.schedule_create_request" => "ScheduleCreateRequest",
35243531
"v2.schedule_create_request_data" => "ScheduleCreateRequestData",
@@ -4162,6 +4169,7 @@ def overrides
41624169
"v2.virus_total_integration_update" => "VirusTotalIntegrationUpdate",
41634170
"v2.vulnerabilities_type" => "VulnerabilitiesType",
41644171
"v2.vulnerability" => "Vulnerability",
4172+
"v2.vulnerability_advisory" => "VulnerabilityAdvisory",
41654173
"v2.vulnerability_attributes" => "VulnerabilityAttributes",
41664174
"v2.vulnerability_cvss" => "VulnerabilityCvss",
41674175
"v2.vulnerability_dependency_locations" => "VulnerabilityDependencyLocations",

0 commit comments

Comments
 (0)