Skip to content

Commit f7f3d44

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9c4cb15 of spec repo
1 parent 196c793 commit f7f3d44

File tree

9 files changed

+127
-24
lines changed

9 files changed

+127
-24
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29957,6 +29957,13 @@ components:
2995729957
Library:
2995829958
description: Vulnerability library.
2995929959
properties:
29960+
additional_names:
29961+
description: Related library/package names (children packages, affected
29962+
binaries path, etc.)
29963+
items:
29964+
example: linux-tools-common
29965+
type: string
29966+
type: array
2996029967
name:
2996129968
description: Vulnerability library name.
2996229969
example: linux-aws-5.15
@@ -57332,6 +57339,11 @@ components:
5733257339
type: array
5733357340
risks:
5733457341
$ref: '#/components/schemas/VulnerabilityRisks'
57342+
running_kernel:
57343+
description: "True if the vulnerability affects a package in a host\u2019s
57344+
running kernel, false if in a non-running kernel, and omit if not kernel-related."
57345+
example: true
57346+
type: boolean
5733557347
status:
5733657348
$ref: '#/components/schemas/VulnerabilityStatus'
5733757349
title:
@@ -57392,10 +57404,15 @@ components:
5739257404
- RubyGems
5739357405
- Go
5739457406
- Packagist
57395-
- Ddeb
57407+
- Deb
5739657408
- Rpm
5739757409
- Apk
5739857410
- Windows
57411+
- Generic
57412+
- MacOs
57413+
- Oci
57414+
- BottleRocket
57415+
- None
5739957416
type: string
5740057417
x-enum-varnames:
5740157418
- PYPI
@@ -57405,10 +57422,15 @@ components:
5740557422
- RUBY_GEMS
5740657423
- GO
5740757424
- PACKAGIST
57408-
- D_DEB
57425+
- DEB
5740957426
- RPM
5741057427
- APK
5741157428
- WINDOWS
57429+
- GENERIC
57430+
- MAC_OS
57431+
- OCI
57432+
- BOTTLE_ROCKET
57433+
- NONE
5741257434
VulnerabilityRelationships:
5741357435
description: Related entities object.
5741457436
properties:
@@ -57509,12 +57531,14 @@ components:
5750957531
- IAST
5751057532
- SCA
5751157533
- Infra
57534+
- SAST
5751257535
example: SCA
5751357536
type: string
5751457537
x-enum-varnames:
5751557538
- IAST
5751657539
- SCA
5751757540
- INFRA
57541+
- SAST
5751857542
VulnerabilityType:
5751957543
description: The vulnerability type.
5752057544
enum:
@@ -80272,6 +80296,10 @@ paths:
8027280296
summary: List assets SBOMs
8027380297
tags:
8027480298
- Security Monitoring
80299+
x-permission:
80300+
operator: OR
80301+
permissions:
80302+
- appsec_vm_read
8027580303
x-unstable: '**Note**: This endpoint is a private preview.
8027680304

8027780305
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -80343,6 +80371,10 @@ paths:
8034380371
summary: Get SBOM
8034480372
tags:
8034580373
- Security Monitoring
80374+
x-permission:
80375+
operator: OR
80376+
permissions:
80377+
- appsec_vm_read
8034680378
x-unstable: '**Note**: This endpoint is a private preview.
8034780379

8034880380
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -80457,6 +80489,10 @@ paths:
8045780489
summary: List scanned assets metadata
8045880490
tags:
8045980491
- Security Monitoring
80492+
x-permission:
80493+
operator: OR
80494+
permissions:
80495+
- appsec_vm_read
8046080496
x-unstable: '**Note**: This endpoint is a private preview.
8046180497

8046280498
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -80885,6 +80921,14 @@ paths:
8088580921
required: false
8088680922
schema:
8088780923
type: string
80924+
- description: Filter whether the vulnerability affects a running kernel or
80925+
not (when the vulnerability is related to `Host` asset).
80926+
example: true
80927+
in: query
80928+
name: filter[running_kernel]
80929+
required: false
80930+
schema:
80931+
type: boolean
8088880932
- description: Filter by asset name. This field supports the usage of wildcards
8088980933
(*).
8089080934
example: datadog-agent
@@ -81028,6 +81072,10 @@ paths:
8102881072
summary: List vulnerabilities
8102981073
tags:
8103081074
- Security Monitoring
81075+
x-permission:
81076+
operator: OR
81077+
permissions:
81078+
- appsec_vm_read
8103181079
x-unstable: '**Note**: This endpoint is a private preview.
8103281080

8103381081
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -81386,6 +81434,10 @@ paths:
8138681434
summary: List vulnerable assets
8138781435
tags:
8138881436
- Security Monitoring
81437+
x-permission:
81438+
operator: OR
81439+
permissions:
81440+
- appsec_vm_read
8138981441
x-unstable: '**Note**: This endpoint is a private preview.
8139081442

8139181443
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'

features/v2/security_monitoring.feature

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ Feature: Security Monitoring
781781
When the request is sent
782782
Then the response status is 404 Not Found
783783

784-
@generated @skip @team:DataDog/asm-vm
784+
@generated @skip @team:DataDog/k9-cloud-vm
785785
Scenario: Get SBOM returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
786786
Given operation "GetSBOM" enabled
787787
And new "GetSBOM" request
@@ -790,7 +790,7 @@ Feature: Security Monitoring
790790
When the request is sent
791791
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
792792

793-
@team:DataDog/asm-vm
793+
@team:DataDog/k9-cloud-vm
794794
Scenario: Get SBOM returns "Not found: asset not found" response
795795
Given operation "GetSBOM" enabled
796796
And new "GetSBOM" request
@@ -799,7 +799,7 @@ Feature: Security Monitoring
799799
When the request is sent
800800
Then the response status is 404 Not found: asset not found
801801

802-
@skip @team:DataDog/asm-vm
802+
@skip @team:DataDog/k9-cloud-vm
803803
Scenario: Get SBOM returns "OK" response
804804
Given operation "GetSBOM" enabled
805805
And new "GetSBOM" request
@@ -1182,14 +1182,14 @@ Feature: Security Monitoring
11821182
When the request is sent
11831183
Then the response status is 200 The list of notification rules.
11841184

1185-
@generated @skip @team:DataDog/asm-vm
1185+
@generated @skip @team:DataDog/k9-cloud-vm
11861186
Scenario: List assets SBOMs returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
11871187
Given operation "ListAssetsSBOMs" enabled
11881188
And new "ListAssetsSBOMs" request
11891189
When the request is sent
11901190
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
11911191

1192-
@team:DataDog/asm-vm
1192+
@team:DataDog/k9-cloud-vm
11931193
Scenario: List assets SBOMs returns "Not found: There is no request associated with the provided token." response
11941194
Given operation "ListAssetsSBOMs" enabled
11951195
And new "ListAssetsSBOMs" request
@@ -1198,14 +1198,14 @@ Feature: Security Monitoring
11981198
When the request is sent
11991199
Then the response status is 404 Not found: There is no request associated with the provided token.
12001200

1201-
@generated @skip @team:DataDog/asm-vm
1201+
@generated @skip @team:DataDog/k9-cloud-vm
12021202
Scenario: List assets SBOMs returns "Not found: asset not found" response
12031203
Given operation "ListAssetsSBOMs" enabled
12041204
And new "ListAssetsSBOMs" request
12051205
When the request is sent
12061206
Then the response status is 404 Not found: asset not found
12071207

1208-
@team:DataDog/asm-vm
1208+
@team:DataDog/k9-cloud-vm
12091209
Scenario: List assets SBOMs returns "OK" response
12101210
Given operation "ListAssetsSBOMs" enabled
12111211
And new "ListAssetsSBOMs" request
@@ -1317,14 +1317,14 @@ Feature: Security Monitoring
13171317
When the request is sent
13181318
Then the response status is 200 OK
13191319

1320-
@skip @team:DataDog/asm-vm
1320+
@skip @team:DataDog/k9-cloud-vm
13211321
Scenario: List scanned assets metadata returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
13221322
Given operation "ListScannedAssetsMetadata" enabled
13231323
And new "ListScannedAssetsMetadata" request
13241324
When the request is sent
13251325
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
13261326

1327-
@team:DataDog/asm-vm
1327+
@team:DataDog/k9-cloud-vm
13281328
Scenario: List scanned assets metadata returns "Not found: asset not found" response
13291329
Given operation "ListScannedAssetsMetadata" enabled
13301330
And new "ListScannedAssetsMetadata" request
@@ -1333,7 +1333,7 @@ Feature: Security Monitoring
13331333
When the request is sent
13341334
Then the response status is 404 Not found: asset not found
13351335

1336-
@team:DataDog/asm-vm
1336+
@team:DataDog/k9-cloud-vm
13371337
Scenario: List scanned assets metadata returns "OK" response
13381338
Given operation "ListScannedAssetsMetadata" enabled
13391339
And new "ListScannedAssetsMetadata" request
@@ -1354,14 +1354,14 @@ Feature: Security Monitoring
13541354
When the request is sent
13551355
Then the response status is 200 OK
13561356

1357-
@generated @skip @team:DataDog/asm-vm
1357+
@generated @skip @team:DataDog/k9-cloud-vm
13581358
Scenario: List vulnerabilities returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
13591359
Given operation "ListVulnerabilities" enabled
13601360
And new "ListVulnerabilities" request
13611361
When the request is sent
13621362
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
13631363

1364-
@team:DataDog/asm-vm
1364+
@team:DataDog/k9-cloud-vm
13651365
Scenario: List vulnerabilities returns "Not found: There is no request associated with the provided token." response
13661366
Given operation "ListVulnerabilities" enabled
13671367
And new "ListVulnerabilities" request
@@ -1370,7 +1370,7 @@ Feature: Security Monitoring
13701370
When the request is sent
13711371
Then the response status is 404 Not found: There is no request associated with the provided token.
13721372

1373-
@team:DataDog/asm-vm
1373+
@team:DataDog/k9-cloud-vm
13741374
Scenario: List vulnerabilities returns "OK" response
13751375
Given operation "ListVulnerabilities" enabled
13761376
And new "ListVulnerabilities" request
@@ -1380,14 +1380,14 @@ Feature: Security Monitoring
13801380
When the request is sent
13811381
Then the response status is 200 OK
13821382

1383-
@generated @skip @team:DataDog/asm-vm
1383+
@generated @skip @team:DataDog/k9-cloud-vm
13841384
Scenario: List vulnerable assets returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
13851385
Given operation "ListVulnerableAssets" enabled
13861386
And new "ListVulnerableAssets" request
13871387
When the request is sent
13881388
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
13891389

1390-
@team:DataDog/asm-vm
1390+
@team:DataDog/k9-cloud-vm
13911391
Scenario: List vulnerable assets returns "Not found: There is no request associated with the provided token." response
13921392
Given operation "ListVulnerableAssets" enabled
13931393
And new "ListVulnerableAssets" request
@@ -1396,7 +1396,7 @@ Feature: Security Monitoring
13961396
When the request is sent
13971397
Then the response status is 404 Not found: There is no request associated with the provided token.
13981398

1399-
@team:DataDog/asm-vm
1399+
@team:DataDog/k9-cloud-vm
14001400
Scenario: List vulnerable assets returns "OK" response
14011401
Given operation "ListVulnerableAssets" enabled
14021402
And new "ListVulnerableAssets" request
@@ -1530,14 +1530,14 @@ Feature: Security Monitoring
15301530
When the request is sent
15311531
Then the response status is 422 The server cannot process the request because it contains invalid data.
15321532

1533-
@generated @skip @team:DataDog/asm-vm
1533+
@generated @skip @team:DataDog/k9-vm-ast
15341534
Scenario: Returns list of Secrets rules returns "OK" response
15351535
Given operation "GetSecretsRules" enabled
15361536
And new "GetSecretsRules" request
15371537
When the request is sent
15381538
Then the response status is 200 OK
15391539

1540-
@generated @skip @team:DataDog/asm-vm
1540+
@generated @skip @team:DataDog/k9-vm-ast
15411541
Scenario: Ruleset get multiple returns "OK" response
15421542
Given operation "ListMultipleRulesets" enabled
15431543
And new "ListMultipleRulesets" request

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4172,6 +4172,10 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
41724172
type: "string",
41734173
format: "",
41744174
},
4175+
filterRunningKernel: {
4176+
type: "boolean",
4177+
format: "",
4178+
},
41754179
filterAssetName: {
41764180
type: "string",
41774181
format: "",

services/security_monitoring/src/v2/SecurityMonitoringApi.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3367,6 +3367,7 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
33673367
filterFixAvailable?: boolean,
33683368
filterRepoDigests?: string,
33693369
filterOrigin?: string,
3370+
filterRunningKernel?: boolean,
33703371
filterAssetName?: string,
33713372
filterAssetType?: AssetType,
33723373
filterAssetVersionFirst?: string,
@@ -3627,6 +3628,13 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
36273628
"",
36283629
);
36293630
}
3631+
if (filterRunningKernel !== undefined) {
3632+
requestContext.setQueryParam(
3633+
"filter[running_kernel]",
3634+
serialize(filterRunningKernel, TypingInfo, "boolean", ""),
3635+
"",
3636+
);
3637+
}
36303638
if (filterAssetName !== undefined) {
36313639
requestContext.setQueryParam(
36323640
"filter[asset.name]",
@@ -9938,6 +9946,11 @@ export interface SecurityMonitoringApiListVulnerabilitiesRequest {
99389946
* @type string
99399947
*/
99409948
filterOrigin?: string;
9949+
/**
9950+
* Filter whether the vulnerability affects a running kernel or not (when the vulnerability is related to `Host` asset).
9951+
* @type boolean
9952+
*/
9953+
filterRunningKernel?: boolean;
99419954
/**
99429955
* Filter by asset name. This field supports the usage of wildcards (*).
99439956
* @type string
@@ -11889,6 +11902,7 @@ export class SecurityMonitoringApi {
1188911902
param.filterFixAvailable,
1189011903
param.filterRepoDigests,
1189111904
param.filterOrigin,
11905+
param.filterRunningKernel,
1189211906
param.filterAssetName,
1189311907
param.filterAssetType,
1189411908
param.filterAssetVersionFirst,

services/security_monitoring/src/v2/models/Library.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client";
44
* Vulnerability library.
55
*/
66
export class Library {
7+
/**
8+
* Related library/package names (children packages, affected binaries path, etc.)
9+
*/
10+
"additionalNames"?: Array<string>;
711
/**
812
* Vulnerability library name.
913
*/
@@ -27,6 +31,10 @@ export class Library {
2731
* @ignore
2832
*/
2933
static readonly attributeTypeMap: AttributeTypeMap = {
34+
additionalNames: {
35+
baseName: "additional_names",
36+
type: "Array<string>",
37+
},
3038
name: {
3139
baseName: "name",
3240
type: "string",

0 commit comments

Comments
 (0)