Skip to content

Commit 6a368a5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 319e516 of spec repo (#3308)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 488cbaa commit 6a368a5

9 files changed

Lines changed: 17 additions & 44 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87364,9 +87364,6 @@ paths:
8736487364
operator: OR
8736587365
permissions:
8736687366
- appsec_vm_read
87367-
x-unstable: '**Note**: This endpoint is a private preview.
87368-
87369-
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
8737087367
/api/v2/security/sboms/{asset_type}:
8737187368
get:
8737287369
description: Get a single SBOM related to an asset by its type and name.
@@ -87439,9 +87436,6 @@ paths:
8743987436
operator: OR
8744087437
permissions:
8744187438
- appsec_vm_read
87442-
x-unstable: '**Note**: This endpoint is a private preview.
87443-
87444-
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
8744587439
/api/v2/security/scanned-assets-metadata:
8744687440
get:
8744787441
description: "Get a list of security scanned assets metadata for an organization.\n\n###
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-02-10T11:40:12.098Z"
1+
"2026-01-20T09:40:32.938Z"

cassettes/v2/Security-Monitoring_1187227211/Get-SBOM-returns-Not-found-asset-not-found-response_1830059764/recording.har

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"status": 404,
5555
"statusText": "Not Found"
5656
},
57-
"startedDateTime": "2025-02-10T11:40:12.494Z",
58-
"time": 314
57+
"startedDateTime": "2026-01-20T09:40:32.943Z",
58+
"time": 680
5959
}
6060
],
6161
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-07-10T10:13:27.247Z"
1+
"2026-01-20T08:26:52.182Z"

cassettes/v2/Security-Monitoring_1187227211/List-assets-SBOMs-returns-Not-found-There-is-no-request-associated-with-the-provided-token_223796624/recording.har

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@
4949
"value": "application/vnd.api+json"
5050
}
5151
],
52-
"headersSize": 660,
52+
"headersSize": 659,
5353
"httpVersion": "HTTP/1.1",
5454
"redirectURL": "",
5555
"status": 404,
5656
"statusText": "Not Found"
5757
},
58-
"startedDateTime": "2025-07-10T10:13:27.251Z",
59-
"time": 519
58+
"startedDateTime": "2026-01-20T08:26:52.188Z",
59+
"time": 480
6060
}
6161
],
6262
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-07-10T10:11:37.540Z"
1+
"2026-01-20T08:27:19.760Z"

cassettes/v2/Security-Monitoring_1187227211/List-assets-SBOMs-returns-OK-response_441887090/recording.har

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
"status": 200,
5656
"statusText": "OK"
5757
},
58-
"startedDateTime": "2025-07-10T10:11:37.544Z",
59-
"time": 630
58+
"startedDateTime": "2026-01-20T08:27:19.766Z",
59+
"time": 573
6060
}
6161
],
6262
"pages": [],

features/v2/security_monitoring.feature

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -809,26 +809,23 @@ Feature: Security Monitoring
809809

810810
@generated @skip @team:DataDog/k9-cloud-vm
811811
Scenario: Get SBOM returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
812-
Given operation "GetSBOM" enabled
813-
And new "GetSBOM" request
812+
Given new "GetSBOM" request
814813
And request contains "asset_type" parameter from "REPLACE.ME"
815814
And request contains "filter[asset_name]" parameter from "REPLACE.ME"
816815
When the request is sent
817816
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
818817

819818
@team:DataDog/k9-cloud-vm
820819
Scenario: Get SBOM returns "Not found: asset not found" response
821-
Given operation "GetSBOM" enabled
822-
And new "GetSBOM" request
820+
Given new "GetSBOM" request
823821
And request contains "asset_type" parameter with value "Host"
824822
And request contains "filter[asset_name]" parameter with value "unknown-host"
825823
When the request is sent
826824
Then the response status is 404 Not found: asset not found
827825

828826
@skip @team:DataDog/k9-cloud-vm
829827
Scenario: Get SBOM returns "OK" response
830-
Given operation "GetSBOM" enabled
831-
And new "GetSBOM" request
828+
Given new "GetSBOM" request
832829
And request contains "asset_type" parameter with value "Repository"
833830
And request contains "filter[asset_name]" parameter with value "github.com/datadog/datadog-agent"
834831
When the request is sent
@@ -1297,31 +1294,27 @@ Feature: Security Monitoring
12971294

12981295
@generated @skip @team:DataDog/k9-cloud-vm
12991296
Scenario: List assets SBOMs returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
1300-
Given operation "ListAssetsSBOMs" enabled
1301-
And new "ListAssetsSBOMs" request
1297+
Given new "ListAssetsSBOMs" request
13021298
When the request is sent
13031299
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
13041300

13051301
@team:DataDog/k9-cloud-vm
13061302
Scenario: List assets SBOMs returns "Not found: There is no request associated with the provided token." response
1307-
Given operation "ListAssetsSBOMs" enabled
1308-
And new "ListAssetsSBOMs" request
1303+
Given new "ListAssetsSBOMs" request
13091304
And request contains "page[token]" parameter with value "unknown"
13101305
And request contains "page[number]" parameter with value 1
13111306
When the request is sent
13121307
Then the response status is 404 Not found: There is no request associated with the provided token.
13131308

13141309
@generated @skip @team:DataDog/k9-cloud-vm
13151310
Scenario: List assets SBOMs returns "Not found: asset not found" response
1316-
Given operation "ListAssetsSBOMs" enabled
1317-
And new "ListAssetsSBOMs" request
1311+
Given new "ListAssetsSBOMs" request
13181312
When the request is sent
13191313
Then the response status is 404 Not found: asset not found
13201314

13211315
@team:DataDog/k9-cloud-vm
13221316
Scenario: List assets SBOMs returns "OK" response
1323-
Given operation "ListAssetsSBOMs" enabled
1324-
And new "ListAssetsSBOMs" request
1317+
Given new "ListAssetsSBOMs" request
13251318
And request contains "filter[package_name]" parameter with value "pandas"
13261319
And request contains "filter[asset_type]" parameter with value "Service"
13271320
When the request is sent

services/security_monitoring/src/v2/SecurityMonitoringApi.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,12 +1944,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
19441944
): Promise<RequestContext> {
19451945
const _config = _options || this.configuration;
19461946

1947-
if (!_config.unstableOperations["SecurityMonitoringApi.v2.getSBOM"]) {
1948-
throw new Error(
1949-
"Unstable operation 'getSBOM' is disabled. Enable it by setting `configuration.unstableOperations['SecurityMonitoringApi.v2.getSBOM'] = true`",
1950-
);
1951-
}
1952-
19531947
// verify required parameter 'assetType' is not null or undefined
19541948
if (assetType === null || assetType === undefined) {
19551949
throw new RequiredError("assetType", "getSBOM");
@@ -2853,14 +2847,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
28532847
): Promise<RequestContext> {
28542848
const _config = _options || this.configuration;
28552849

2856-
if (
2857-
!_config.unstableOperations["SecurityMonitoringApi.v2.listAssetsSBOMs"]
2858-
) {
2859-
throw new Error(
2860-
"Unstable operation 'listAssetsSBOMs' is disabled. Enable it by setting `configuration.unstableOperations['SecurityMonitoringApi.v2.listAssetsSBOMs'] = true`",
2861-
);
2862-
}
2863-
28642850
// Path Params
28652851
const localVarPath = "/api/v2/security/sboms";
28662852

0 commit comments

Comments
 (0)