Skip to content

Commit 399005e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit ef327a7 of spec repo (#4589)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 43c53d4 commit 399005e

9 files changed

Lines changed: 40 additions & 18 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10502,6 +10502,7 @@ components:
1050210502
- Host
1050310503
- HostImage
1050410504
- Image
10505+
- ServerlessFunction
1050510506
example: Repository
1050610507
type: string
1050710508
x-enum-varnames:
@@ -10510,6 +10511,7 @@ components:
1051010511
- HOST
1051110512
- HOSTIMAGE
1051210513
- IMAGE
10514+
- SERVERLESSFUNCTION
1051310515
AssetVersion:
1051410516
description: Asset version.
1051510517
properties:
@@ -175616,6 +175618,11 @@ paths:
175616175618
description: |-
175617175619
Get a list of assets SBOMs for an organization.
175618175620

175621+
The `filter[asset_type]` parameter is required for initial requests (when no `page[token]` is provided).
175622+
Subsequent pages encode the asset type in the pagination token, so `filter[asset_type]` is not required
175623+
for paginated requests. Mixing infrastructure asset types (`Host`, `HostImage`, `Image`, `ServerlessFunction`)
175624+
with code asset types (`Repository`, `Service`) in the same request is not supported and returns a 400 error.
175625+
175619175626
### Pagination
175620175627

175621175628
Please review the [Pagination section](#pagination) for the "List Vulnerabilities" endpoint.
@@ -175645,7 +175652,8 @@ paths:
175645175652
format: int64
175646175653
minimum: 1
175647175654
type: integer
175648-
- description: The type of the assets for the SBOM request.
175655+
- description: >-
175656+
The type of the assets for the SBOM request. Required for initial requests (when no `page[token]` is provided). Infrastructure types (`Host`, `HostImage`, `Image`, `ServerlessFunction`) and code types (`Repository`, `Service`) cannot be mixed in the same request.
175649175657
example: Repository
175650175658
in: query
175651175659
name: filter[asset_type]
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2026-07-06T19:25:16.964Z"
1+
"2026-07-07T14:35:06.517Z"

cassettes/v2/Security-Monitoring_1187227211/List-assets-SBOMs-returns-Bad-request-Invalid-pagination-token-response_3105078366/recording.har

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "5eb3b8f53dd3195ce37e46f12fa2d7a1",
11+
"_id": "ba0ed496453ce8e10a2316ea3ab92b2f",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -21,26 +21,26 @@
2121
"value": "application/json"
2222
}
2323
],
24-
"headersSize": 553,
24+
"headersSize": 563,
2525
"httpVersion": "HTTP/1.1",
2626
"method": "GET",
2727
"queryString": [
2828
{
2929
"name": "page",
3030
"value": {
3131
"number": "1",
32-
"token": "unknown"
32+
"token": "SERVICE:unknown"
3333
}
3434
}
3535
],
36-
"url": "https://api.datadoghq.com/api/v2/security/sboms?page%5Btoken%5D=unknown&page%5Bnumber%5D=1"
36+
"url": "https://api.datadoghq.com/api/v2/security/sboms?page%5Btoken%5D=SERVICE%3Aunknown&page%5Bnumber%5D=1"
3737
},
3838
"response": {
39-
"bodySize": 104,
39+
"bodySize": 65,
4040
"content": {
4141
"mimeType": "application/vnd.api+json",
42-
"size": 104,
43-
"text": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad request: asset_type\",\"detail\":\"asset_type filter is required\"}]}"
42+
"size": 65,
43+
"text": "{\"errors\":[{\"status\":\"400\",\"title\":\"Unexpected internal error\"}]}"
4444
},
4545
"cookies": [],
4646
"headers": [
@@ -49,14 +49,14 @@
4949
"value": "application/vnd.api+json"
5050
}
5151
],
52-
"headersSize": 661,
52+
"headersSize": 660,
5353
"httpVersion": "HTTP/1.1",
5454
"redirectURL": "",
5555
"status": 400,
5656
"statusText": "Bad Request"
5757
},
58-
"startedDateTime": "2026-07-06T19:25:16.970Z",
59-
"time": 89
58+
"startedDateTime": "2026-07-07T14:35:06.521Z",
59+
"time": 4108
6060
}
6161
],
6262
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2026-01-20T08:27:19.760Z"
1+
"2026-07-07T14:35:10.638Z"

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": "2026-01-20T08:27:19.766Z",
59-
"time": 573
58+
"startedDateTime": "2026-07-07T14:35:10.641Z",
59+
"time": 125
6060
}
6161
],
6262
"pages": [],

features/v2/security_monitoring.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2369,7 +2369,7 @@ Feature: Security Monitoring
23692369
@team:DataDog/k9-cloud-vm
23702370
Scenario: List assets SBOMs returns "Bad request: Invalid pagination token." response
23712371
Given new "ListAssetsSBOMs" request
2372-
And request contains "page[token]" parameter with value "unknown"
2372+
And request contains "page[token]" parameter with value "SERVICE:unknown"
23732373
And request contains "page[number]" parameter with value 1
23742374
When the request is sent
23752375
Then the response status is 400 Bad request: Invalid pagination token.

packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19911,7 +19911,7 @@ export interface SecurityMonitoringApiListAssetsSBOMsRequest {
1991119911
*/
1991219912
pageNumber?: number;
1991319913
/**
19914-
* The type of the assets for the SBOM request.
19914+
* The type of the assets for the SBOM request. Required for initial requests (when no `page[token]` is provided). Infrastructure types (`Host`, `HostImage`, `Image`, `ServerlessFunction`) and code types (`Repository`, `Service`) cannot be mixed in the same request.
1991519915
* @type AssetType
1991619916
*/
1991719917
filterAssetType?: AssetType;
@@ -23391,6 +23391,11 @@ export class SecurityMonitoringApi {
2339123391
/**
2339223392
* Get a list of assets SBOMs for an organization.
2339323393
*
23394+
* The `filter[asset_type]` parameter is required for initial requests (when no `page[token]` is provided).
23395+
* Subsequent pages encode the asset type in the pagination token, so `filter[asset_type]` is not required
23396+
* for paginated requests. Mixing infrastructure asset types (`Host`, `HostImage`, `Image`, `ServerlessFunction`)
23397+
* with code asset types (`Repository`, `Service`) in the same request is not supported and returns a 400 error.
23398+
*
2339423399
* ### Pagination
2339523400
*
2339623401
* Please review the [Pagination section](#pagination) for the "List Vulnerabilities" endpoint.

packages/datadog-api-client-v2/models/AssetType.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ export type AssetType =
1616
| typeof HOST
1717
| typeof HOSTIMAGE
1818
| typeof IMAGE
19+
| typeof SERVERLESSFUNCTION
1920
| UnparsedObject;
2021
export const REPOSITORY = "Repository";
2122
export const SERVICE = "Service";
2223
export const HOST = "Host";
2324
export const HOSTIMAGE = "HostImage";
2425
export const IMAGE = "Image";
26+
export const SERVERLESSFUNCTION = "ServerlessFunction";

packages/datadog-api-client-v2/models/ObjectSerializer.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5541,7 +5541,14 @@ const enumsMap: { [key: string]: any[] } = {
55415541
AsanaAccessTokenType: ["AsanaAccessToken"],
55425542
AsanaIntegrationType: ["Asana"],
55435543
AssetEntityType: ["assets"],
5544-
AssetType: ["Repository", "Service", "Host", "HostImage", "Image"],
5544+
AssetType: [
5545+
"Repository",
5546+
"Service",
5547+
"Host",
5548+
"HostImage",
5549+
"Image",
5550+
"ServerlessFunction",
5551+
],
55455552
AssigneeDataType: ["assignee"],
55465553
AttachmentDataAttributesAttachmentType: ["postmortem", "link"],
55475554
AuditLogsEventType: ["audit"],

0 commit comments

Comments
 (0)