Skip to content

Commit e63bd02

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 61947b2 of spec repo
1 parent 177d72f commit e63bd02

10 files changed

Lines changed: 132 additions & 31 deletions

.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).'

src/datadog_api_client/v2/api/security_monitoring_api.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,11 @@ def __init__(self, api_client=None):
17731773
"attribute": "filter[origin]",
17741774
"location": "query",
17751775
},
1776+
"filter_running_kernel": {
1777+
"openapi_types": (bool,),
1778+
"attribute": "filter[running_kernel]",
1779+
"location": "query",
1780+
},
17761781
"filter_asset_name": {
17771782
"openapi_types": (str,),
17781783
"attribute": "filter[asset.name]",
@@ -3938,6 +3943,7 @@ def list_vulnerabilities(
39383943
filter_fix_available: Union[bool, UnsetType] = unset,
39393944
filter_repo_digests: Union[str, UnsetType] = unset,
39403945
filter_origin: Union[str, UnsetType] = unset,
3946+
filter_running_kernel: Union[bool, UnsetType] = unset,
39413947
filter_asset_name: Union[str, UnsetType] = unset,
39423948
filter_asset_type: Union[AssetType, UnsetType] = unset,
39433949
filter_asset_version_first: Union[str, UnsetType] = unset,
@@ -4100,6 +4106,8 @@ def list_vulnerabilities(
41004106
:type filter_repo_digests: str, optional
41014107
:param filter_origin: Filter by origin.
41024108
:type filter_origin: str, optional
4109+
:param filter_running_kernel: Filter whether the vulnerability affects a running kernel or not (when the vulnerability is related to ``Host`` asset).
4110+
:type filter_running_kernel: bool, optional
41034111
:param filter_asset_name: Filter by asset name. This field supports the usage of wildcards (*).
41044112
:type filter_asset_name: str, optional
41054113
:param filter_asset_type: Filter by asset type.
@@ -4214,6 +4222,9 @@ def list_vulnerabilities(
42144222
if filter_origin is not unset:
42154223
kwargs["filter_origin"] = filter_origin
42164224

4225+
if filter_running_kernel is not unset:
4226+
kwargs["filter_running_kernel"] = filter_running_kernel
4227+
42174228
if filter_asset_name is not unset:
42184229
kwargs["filter_asset_name"] = filter_asset_name
42194230

src/datadog_api_client/v2/model/library.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union
6+
from typing import List, Union
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -17,25 +17,38 @@ class Library(ModelNormal):
1717
@cached_property
1818
def openapi_types(_):
1919
return {
20+
"additional_names": ([str],),
2021
"name": (str,),
2122
"version": (str,),
2223
}
2324

2425
attribute_map = {
26+
"additional_names": "additional_names",
2527
"name": "name",
2628
"version": "version",
2729
}
2830

29-
def __init__(self_, name: str, version: Union[str, UnsetType] = unset, **kwargs):
31+
def __init__(
32+
self_,
33+
name: str,
34+
additional_names: Union[List[str], UnsetType] = unset,
35+
version: Union[str, UnsetType] = unset,
36+
**kwargs,
37+
):
3038
"""
3139
Vulnerability library.
3240
41+
:param additional_names: Related library/package names (children packages, affected binaries path, etc.)
42+
:type additional_names: [str], optional
43+
3344
:param name: Vulnerability library name.
3445
:type name: str
3546
3647
:param version: Vulnerability library version.
3748
:type version: str, optional
3849
"""
50+
if additional_names is not unset:
51+
kwargs["additional_names"] = additional_names
3952
if version is not unset:
4053
kwargs["version"] = version
4154
super().__init__(kwargs)

src/datadog_api_client/v2/model/vulnerability_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def openapi_types(_):
6161
"remediations": ([Remediation],),
6262
"repo_digests": ([str],),
6363
"risks": (VulnerabilityRisks,),
64+
"running_kernel": (bool,),
6465
"status": (VulnerabilityStatus,),
6566
"title": (str,),
6667
"tool": (VulnerabilityTool,),
@@ -86,6 +87,7 @@ def openapi_types(_):
8687
"remediations": "remediations",
8788
"repo_digests": "repo_digests",
8889
"risks": "risks",
90+
"running_kernel": "running_kernel",
8991
"status": "status",
9092
"title": "title",
9193
"tool": "tool",
@@ -116,6 +118,7 @@ def __init__(
116118
ecosystem: Union[VulnerabilityEcosystem, UnsetType] = unset,
117119
library: Union[Library, UnsetType] = unset,
118120
repo_digests: Union[List[str], UnsetType] = unset,
121+
running_kernel: Union[bool, UnsetType] = unset,
119122
**kwargs,
120123
):
121124
"""
@@ -175,6 +178,9 @@ def __init__(
175178
:param risks: Vulnerability risks.
176179
:type risks: VulnerabilityRisks
177180
181+
:param running_kernel: True if the vulnerability affects a package in a host’s running kernel, false if in a non-running kernel, and omit if not kernel-related.
182+
:type running_kernel: bool, optional
183+
178184
:param status: The vulnerability status.
179185
:type status: VulnerabilityStatus
180186
@@ -201,6 +207,8 @@ def __init__(
201207
kwargs["library"] = library
202208
if repo_digests is not unset:
203209
kwargs["repo_digests"] = repo_digests
210+
if running_kernel is not unset:
211+
kwargs["running_kernel"] = running_kernel
204212
super().__init__(kwargs)
205213

206214
self_.cve_list = cve_list

src/datadog_api_client/v2/model/vulnerability_ecosystem.py

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class VulnerabilityEcosystem(ModelSimple):
1616
"""
1717
The related vulnerability asset ecosystem.
1818
19-
:param value: Must be one of ["PyPI", "Maven", "NuGet", "Npm", "RubyGems", "Go", "Packagist", "Ddeb", "Rpm", "Apk", "Windows"].
19+
:param value: Must be one of ["PyPI", "Maven", "NuGet", "Npm", "RubyGems", "Go", "Packagist", "Deb", "Rpm", "Apk", "Windows", "Generic", "MacOs", "Oci", "BottleRocket", "None"].
2020
:type value: str
2121
"""
2222

@@ -28,10 +28,15 @@ class VulnerabilityEcosystem(ModelSimple):
2828
"RubyGems",
2929
"Go",
3030
"Packagist",
31-
"Ddeb",
31+
"Deb",
3232
"Rpm",
3333
"Apk",
3434
"Windows",
35+
"Generic",
36+
"MacOs",
37+
"Oci",
38+
"BottleRocket",
39+
"None",
3540
}
3641
PYPI: ClassVar["VulnerabilityEcosystem"]
3742
MAVEN: ClassVar["VulnerabilityEcosystem"]
@@ -40,10 +45,15 @@ class VulnerabilityEcosystem(ModelSimple):
4045
RUBY_GEMS: ClassVar["VulnerabilityEcosystem"]
4146
GO: ClassVar["VulnerabilityEcosystem"]
4247
PACKAGIST: ClassVar["VulnerabilityEcosystem"]
43-
D_DEB: ClassVar["VulnerabilityEcosystem"]
48+
DEB: ClassVar["VulnerabilityEcosystem"]
4449
RPM: ClassVar["VulnerabilityEcosystem"]
4550
APK: ClassVar["VulnerabilityEcosystem"]
4651
WINDOWS: ClassVar["VulnerabilityEcosystem"]
52+
GENERIC: ClassVar["VulnerabilityEcosystem"]
53+
MAC_OS: ClassVar["VulnerabilityEcosystem"]
54+
OCI: ClassVar["VulnerabilityEcosystem"]
55+
BOTTLE_ROCKET: ClassVar["VulnerabilityEcosystem"]
56+
NONE: ClassVar["VulnerabilityEcosystem"]
4757

4858
@cached_property
4959
def openapi_types(_):
@@ -59,7 +69,12 @@ def openapi_types(_):
5969
VulnerabilityEcosystem.RUBY_GEMS = VulnerabilityEcosystem("RubyGems")
6070
VulnerabilityEcosystem.GO = VulnerabilityEcosystem("Go")
6171
VulnerabilityEcosystem.PACKAGIST = VulnerabilityEcosystem("Packagist")
62-
VulnerabilityEcosystem.D_DEB = VulnerabilityEcosystem("Ddeb")
72+
VulnerabilityEcosystem.DEB = VulnerabilityEcosystem("Deb")
6373
VulnerabilityEcosystem.RPM = VulnerabilityEcosystem("Rpm")
6474
VulnerabilityEcosystem.APK = VulnerabilityEcosystem("Apk")
6575
VulnerabilityEcosystem.WINDOWS = VulnerabilityEcosystem("Windows")
76+
VulnerabilityEcosystem.GENERIC = VulnerabilityEcosystem("Generic")
77+
VulnerabilityEcosystem.MAC_OS = VulnerabilityEcosystem("MacOs")
78+
VulnerabilityEcosystem.OCI = VulnerabilityEcosystem("Oci")
79+
VulnerabilityEcosystem.BOTTLE_ROCKET = VulnerabilityEcosystem("BottleRocket")
80+
VulnerabilityEcosystem.NONE = VulnerabilityEcosystem("None")

src/datadog_api_client/v2/model/vulnerability_tool.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@ class VulnerabilityTool(ModelSimple):
1616
"""
1717
The vulnerability tool.
1818
19-
:param value: Must be one of ["IAST", "SCA", "Infra"].
19+
:param value: Must be one of ["IAST", "SCA", "Infra", "SAST"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"IAST",
2525
"SCA",
2626
"Infra",
27+
"SAST",
2728
}
2829
IAST: ClassVar["VulnerabilityTool"]
2930
SCA: ClassVar["VulnerabilityTool"]
3031
INFRA: ClassVar["VulnerabilityTool"]
32+
SAST: ClassVar["VulnerabilityTool"]
3133

3234
@cached_property
3335
def openapi_types(_):
@@ -39,3 +41,4 @@ def openapi_types(_):
3941
VulnerabilityTool.IAST = VulnerabilityTool("IAST")
4042
VulnerabilityTool.SCA = VulnerabilityTool("SCA")
4143
VulnerabilityTool.INFRA = VulnerabilityTool("Infra")
44+
VulnerabilityTool.SAST = VulnerabilityTool("SAST")
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-31T12:04:28.397Z
1+
2025-12-12T14:36:04.169Z

tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ interactions:
88
uri: https://api.datadoghq.com/api/v2/security/vulnerabilities?page%5Btoken%5D=unknown&page%5Bnumber%5D=1
99
response:
1010
body:
11-
string: '{"errors":[{"title":"Generic Error","detail":"rpc error: code = Internal
12-
desc = no cached result set found for queryID: unknown"}]}'
11+
string: '{"errors":[{"status":"404","title":"Unexpected internal error"}]}'
1312
headers:
1413
content-type:
1514
- application/vnd.api+json
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-31T12:04:39.730Z
1+
2025-12-12T14:36:49.310Z

0 commit comments

Comments
 (0)