Skip to content

Commit 4c807b9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 934db3c of spec repo
1 parent 07c5c19 commit 4c807b9

File tree

14 files changed

+620
-379
lines changed

14 files changed

+620
-379
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 254 additions & 214 deletions
Large diffs are not rendered by default.

cassettes/features/v2/security_monitoring/List-vulnerable-assets-returns-Not-found-There-is-no-request-associated-with-the-provided-token-response.yml

Lines changed: 1 addition & 1 deletion
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 SBOMs returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.list_sbo_ms".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
8+
p api_instance.list_sbo_ms()

examples/v2/security-monitoring/ListAssetsSBOMs.rb renamed to examples/v2/security-monitoring/ListSBOMs_339414484.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
require "datadog_api_client"
44
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.list_assets_sbo_ms".to_sym] = true
5+
config.unstable_operations["v2.list_sbo_ms".to_sym] = true
66
end
77
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
88
opts = {
99
filter_package_name: "pandas",
1010
filter_asset_type: AssetType::SERVICE,
1111
}
12-
p api_instance.list_assets_sbo_ms(opts)
12+
p api_instance.list_sbo_ms(opts)

features/scenarios_model_mapping.rb

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,26 +1280,7 @@
12801280
"finding_id" => "String",
12811281
"snapshot_timestamp" => "Integer",
12821282
},
1283-
"v2.ListVulnerableAssets" => {
1284-
"page_token" => "String",
1285-
"page_number" => "Integer",
1286-
"filter_name" => "String",
1287-
"filter_type" => "AssetType",
1288-
"filter_version_first" => "String",
1289-
"filter_version_last" => "String",
1290-
"filter_repository_url" => "String",
1291-
"filter_risks_in_production" => "Boolean",
1292-
"filter_risks_under_attack" => "Boolean",
1293-
"filter_risks_is_publicly_accessible" => "Boolean",
1294-
"filter_risks_has_privileged_access" => "Boolean",
1295-
"filter_risks_has_access_to_sensitive_data" => "Boolean",
1296-
"filter_environments" => "String",
1297-
"filter_teams" => "String",
1298-
"filter_arch" => "String",
1299-
"filter_operating_system_name" => "String",
1300-
"filter_operating_system_version" => "String",
1301-
},
1302-
"v2.ListAssetsSBOMs" => {
1283+
"v2.ListSBOMs" => {
13031284
"page_token" => "String",
13041285
"page_number" => "Integer",
13051286
"filter_asset_type" => "AssetType",
@@ -1313,6 +1294,7 @@
13131294
"asset_type" => "AssetType",
13141295
"filter_asset_name" => "String",
13151296
"filter_repo_digest" => "String",
1297+
"ext_format" => "SBOMFormat",
13161298
},
13171299
"v2.CreateSignalNotificationRule" => {
13181300
"body" => "CreateNotificationRuleParameters",
@@ -1384,6 +1366,25 @@
13841366
"id" => "String",
13851367
"body" => "PatchNotificationRuleParameters",
13861368
},
1369+
"v2.ListVulnerableAssets" => {
1370+
"page_token" => "String",
1371+
"page_number" => "Integer",
1372+
"filter_name" => "String",
1373+
"filter_type" => "AssetType",
1374+
"filter_version_first" => "String",
1375+
"filter_version_last" => "String",
1376+
"filter_repository_url" => "String",
1377+
"filter_risks_in_production" => "Boolean",
1378+
"filter_risks_under_attack" => "Boolean",
1379+
"filter_risks_is_publicly_accessible" => "Boolean",
1380+
"filter_risks_has_privileged_access" => "Boolean",
1381+
"filter_risks_has_access_to_sensitive_data" => "Boolean",
1382+
"filter_environments" => "String",
1383+
"filter_teams" => "String",
1384+
"filter_arch" => "String",
1385+
"filter_operating_system_name" => "String",
1386+
"filter_operating_system_version" => "String",
1387+
},
13871388
"v2.CreateSecurityFilter" => {
13881389
"body" => "SecurityFilterCreateRequest",
13891390
},

features/v2/security_monitoring.feature

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -924,32 +924,39 @@ 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
928-
Given operation "ListAssetsSBOMs" enabled
929-
And new "ListAssetsSBOMs" request
927+
Scenario: List SBOMs returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
928+
Given operation "ListSBOMs" enabled
929+
And new "ListSBOMs" 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+
@generated @skip @team:DataDog/asm-vm
934+
Scenario: List SBOMs returns "Not found: asset not found" response
935+
Given operation "ListSBOMs" enabled
936+
And new "ListSBOMs" request
937+
When the request is sent
938+
Then the response status is 404 Not found: asset not found
939+
940+
@generated @skip @team:DataDog/asm-vm
941+
Scenario: List SBOMs returns "OK" response
942+
Given operation "ListSBOMs" enabled
943+
And new "ListSBOMs" request
944+
When the request is sent
945+
Then the response status is 200 OK
946+
933947
@team:DataDog/asm-vm
934948
Scenario: List assets SBOMs returns "Not found: There is no request associated with the provided token." response
935-
Given operation "ListAssetsSBOMs" enabled
936-
And new "ListAssetsSBOMs" request
949+
Given operation "ListSBOMs" enabled
950+
And new "ListSBOMs" request
937951
And request contains "page[token]" parameter with value "unknown"
938952
And request contains "page[number]" parameter with value 1
939953
When the request is sent
940954
Then the response status is 404 Not found: There is no request associated with the provided token.
941955

942-
@generated @skip @team:DataDog/asm-vm
943-
Scenario: List assets SBOMs returns "Not found: asset not found" response
944-
Given operation "ListAssetsSBOMs" enabled
945-
And new "ListAssetsSBOMs" request
946-
When the request is sent
947-
Then the response status is 404 Not found: asset not found
948-
949956
@team:DataDog/asm-vm
950957
Scenario: List assets SBOMs returns "OK" response
951-
Given operation "ListAssetsSBOMs" enabled
952-
And new "ListAssetsSBOMs" request
958+
Given operation "ListSBOMs" enabled
959+
And new "ListSBOMs" request
953960
And request contains "filter[package_name]" parameter with value "pandas"
954961
And request contains "filter[asset_type]" parameter with value "Service"
955962
When the request is sent

features/v2/undo.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3180,19 +3180,13 @@
31803180
"type": "idempotent"
31813181
}
31823182
},
3183-
"ListVulnerableAssets": {
3184-
"tag": "Security Monitoring",
3185-
"undo": {
3186-
"type": "safe"
3187-
}
3188-
},
31893183
"DownloadCloudWorkloadPolicyFile": {
31903184
"tag": "CSM Threats",
31913185
"undo": {
31923186
"type": "safe"
31933187
}
31943188
},
3195-
"ListAssetsSBOMs": {
3189+
"ListSBOMs": {
31963190
"tag": "Security Monitoring",
31973191
"undo": {
31983192
"type": "safe"
@@ -3284,6 +3278,12 @@
32843278
"type": "idempotent"
32853279
}
32863280
},
3281+
"ListVulnerableAssets": {
3282+
"tag": "Security Monitoring",
3283+
"undo": {
3284+
"type": "safe"
3285+
}
3286+
},
32873287
"ListCloudWorkloadSecurityAgentRules": {
32883288
"tag": "CSM Threats",
32893289
"undo": {

lib/datadog_api_client/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ def initialize
203203
"v2.get_sbom": false,
204204
"v2.get_security_monitoring_histsignal": false,
205205
"v2.get_security_monitoring_histsignals_by_job_id": false,
206-
"v2.list_assets_sbo_ms": false,
207206
"v2.list_findings": false,
208207
"v2.list_historical_jobs": false,
208+
"v2.list_sbo_ms": false,
209209
"v2.list_security_monitoring_histsignals": false,
210210
"v2.list_vulnerabilities": false,
211211
"v2.list_vulnerable_assets": false,

lib/datadog_api_client/inflector.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2528,7 +2528,6 @@ def overrides
25282528
"v2.list_apps_response_data_items_relationships" => "ListAppsResponseDataItemsRelationships",
25292529
"v2.list_apps_response_meta" => "ListAppsResponseMeta",
25302530
"v2.list_apps_response_meta_page" => "ListAppsResponseMetaPage",
2531-
"v2.list_assets_sbo_ms_response" => "ListAssetsSBOMsResponse",
25322531
"v2.list_devices_response" => "ListDevicesResponse",
25332532
"v2.list_devices_response_metadata" => "ListDevicesResponseMetadata",
25342533
"v2.list_devices_response_metadata_page" => "ListDevicesResponseMetadataPage",
@@ -2549,6 +2548,7 @@ def overrides
25492548
"v2.list_rules_response" => "ListRulesResponse",
25502549
"v2.list_rules_response_data_item" => "ListRulesResponseDataItem",
25512550
"v2.list_rules_response_links" => "ListRulesResponseLinks",
2551+
"v2.list_sbo_ms_response" => "ListSBOMsResponse",
25522552
"v2.list_tags_response" => "ListTagsResponse",
25532553
"v2.list_tags_response_data" => "ListTagsResponseData",
25542554
"v2.list_tags_response_data_attributes" => "ListTagsResponseDataAttributes",
@@ -3502,6 +3502,7 @@ def overrides
35023502
"v2.sbom_component_property" => "SBOMComponentProperty",
35033503
"v2.sbom_component_supplier" => "SBOMComponentSupplier",
35043504
"v2.sbom_component_type" => "SBOMComponentType",
3505+
"v2.sbom_format" => "SBOMFormat",
35053506
"v2.sbom_metadata" => "SBOMMetadata",
35063507
"v2.sbom_metadata_author" => "SBOMMetadataAuthor",
35073508
"v2.sbom_metadata_component" => "SBOMMetadataComponent",
@@ -4162,6 +4163,7 @@ def overrides
41624163
"v2.virus_total_integration_update" => "VirusTotalIntegrationUpdate",
41634164
"v2.vulnerabilities_type" => "VulnerabilitiesType",
41644165
"v2.vulnerability" => "Vulnerability",
4166+
"v2.vulnerability_advisory" => "VulnerabilityAdvisory",
41654167
"v2.vulnerability_attributes" => "VulnerabilityAttributes",
41664168
"v2.vulnerability_cvss" => "VulnerabilityCvss",
41674169
"v2.vulnerability_dependency_locations" => "VulnerabilityDependencyLocations",

0 commit comments

Comments
 (0)