Skip to content

Commit 822bc50

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 218bad19 of spec repo
1 parent 03b7a28 commit 822bc50

16 files changed

+1020
-11
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-07-09 16:47:17.991240",
8-
"spec_repo_commit": "d0906173"
7+
"regenerated": "2025-07-10 06:39:56.010136",
8+
"spec_repo_commit": "218bad19"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-07-09 16:47:18.007275",
13-
"spec_repo_commit": "d0906173"
12+
"regenerated": "2025-07-10 06:39:56.027459",
13+
"spec_repo_commit": "218bad19"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3575,6 +3575,14 @@ components:
35753575
$ref: '#/components/schemas/AssetOperatingSystem'
35763576
risks:
35773577
$ref: '#/components/schemas/AssetRisks'
3578+
teams:
3579+
description: List of teams that own the asset.
3580+
example:
3581+
- compute
3582+
items:
3583+
example: compute
3584+
type: string
3585+
type: array
35783586
type:
35793587
$ref: '#/components/schemas/AssetType'
35803588
version:
@@ -32395,6 +32403,11 @@ components:
3239532403
items:
3239632404
$ref: '#/components/schemas/SBOMComponent'
3239732405
type: array
32406+
dependencies:
32407+
description: List of dependencies between components of the SBOM.
32408+
items:
32409+
$ref: '#/components/schemas/SBOMComponentDependency'
32410+
type: array
3239832411
metadata:
3239932412
$ref: '#/components/schemas/SBOMMetadata'
3240032413
serialNumber:
@@ -32418,6 +32431,7 @@ components:
3241832431
- metadata
3241932432
- serialNumber
3242032433
- version
32434+
- dependencies
3242132435
type: object
3242232436
SBOMComponent:
3242332437
description: Software or hardware component.
@@ -32427,16 +32441,28 @@ components:
3242732441
elsewhere in the BOM.
3242832442
example: pkg:golang/google.golang.org/[email protected]
3242932443
type: string
32444+
licenses:
32445+
description: The software licenses of the SBOM component.
32446+
items:
32447+
$ref: '#/components/schemas/SBOMComponentLicense'
32448+
type: array
3243032449
name:
3243132450
description: The name of the component. This will often be a shortened,
3243232451
single name of the component.
3243332452
example: google.golang.org/grpc
3243432453
type: string
32454+
properties:
32455+
description: The custom properties of the component of the SBOM.
32456+
items:
32457+
$ref: '#/components/schemas/SBOMComponentProperty'
32458+
type: array
3243532459
purl:
3243632460
description: Specifies the package-url (purl). The purl, if specified, MUST
3243732461
be valid and conform to the [specification](https://github.com/package-url/purl-spec).
3243832462
example: pkg:golang/google.golang.org/[email protected]
3243932463
type: string
32464+
supplier:
32465+
$ref: '#/components/schemas/SBOMComponentSupplier'
3244032466
type:
3244132467
$ref: '#/components/schemas/SBOMComponentType'
3244232468
version:
@@ -32447,6 +32473,67 @@ components:
3244732473
- type
3244832474
- name
3244932475
- version
32476+
- supplier
32477+
type: object
32478+
SBOMComponentDependency:
32479+
description: The dependencies of a component of the SBOM.
32480+
properties:
32481+
dependsOn:
32482+
description: The components that are dependencies of the ref component.
32483+
items:
32484+
example: pkg:golang/google.golang.org/[email protected]
32485+
type: string
32486+
required:
32487+
- ref
32488+
- dependsOn
32489+
type: array
32490+
ref:
32491+
description: The identifier for the related component.
32492+
example: Repository|github.com/datadog/datadog-agent
32493+
type: string
32494+
type: object
32495+
SBOMComponentLicense:
32496+
description: The software license of the component of the SBOM.
32497+
properties:
32498+
license:
32499+
$ref: '#/components/schemas/SBOMComponentLicenseLicense'
32500+
required:
32501+
- license
32502+
type: object
32503+
SBOMComponentLicenseLicense:
32504+
description: The software license of the component of the SBOM.
32505+
properties:
32506+
name:
32507+
description: The name of the software license of the component of the SBOM.
32508+
example: MIT
32509+
type: string
32510+
required:
32511+
- name
32512+
type: object
32513+
SBOMComponentProperty:
32514+
description: The custom property of the component of the SBOM.
32515+
properties:
32516+
name:
32517+
description: The name of the custom property of the component of the SBOM..
32518+
example: license_type
32519+
type: string
32520+
value:
32521+
description: The value of the custom property of the component of the SBOM..
32522+
example: permissive
32523+
type: string
32524+
required:
32525+
- name
32526+
- value
32527+
type: object
32528+
SBOMComponentSupplier:
32529+
description: The supplier of the component.
32530+
properties:
32531+
name:
32532+
description: Identifier of the supplier of the component.
32533+
example: https://go.dev
32534+
type: string
32535+
required:
32536+
- name
3245032537
type: object
3245132538
SBOMComponentType:
3245232539
description: The SBOM component type
@@ -32481,8 +32568,25 @@ components:
3248132568
SBOMMetadata:
3248232569
description: Provides additional information about a BOM.
3248332570
properties:
32571+
authors:
32572+
description: List of authors of the SBOM.
32573+
items:
32574+
$ref: '#/components/schemas/SBOMMetadataAuthor'
32575+
type: array
3248432576
component:
3248532577
$ref: '#/components/schemas/SBOMMetadataComponent'
32578+
timestamp:
32579+
description: The timestamp of the SBOM creation.
32580+
example: '2025-07-08T07:24:53Z'
32581+
type: string
32582+
type: object
32583+
SBOMMetadataAuthor:
32584+
description: Author of the SBOM.
32585+
properties:
32586+
name:
32587+
description: The identifier of the Author of the SBOM.
32588+
example: Datadog, Inc.
32589+
type: string
3248632590
type: object
3248732591
SBOMMetadataComponent:
3248832592
description: The component that the BOM describes.
@@ -41438,6 +41542,14 @@ components:
4143841542
type: string
4143941543
library:
4144041544
$ref: '#/components/schemas/Library'
41545+
origin:
41546+
description: Vulnerability origin.
41547+
example:
41548+
- agentless-scanner
41549+
items:
41550+
example: agentless-scanner
41551+
type: string
41552+
type: array
4144141553
remediations:
4144241554
description: List of remediations.
4144341555
items:
@@ -41477,6 +41589,7 @@ components:
4147741589
- exposure_time
4147841590
- remediations
4147941591
- fix_available
41592+
- origin
4148041593
type: object
4148141594
VulnerabilityCvss:
4148241595
description: Vulnerability severities.
@@ -58257,6 +58370,13 @@ paths:
5825758370
required: false
5825858371
schema:
5825958372
type: string
58373+
- description: Filter by teams.
58374+
example: compute
58375+
in: query
58376+
name: filter[teams]
58377+
required: false
58378+
schema:
58379+
type: string
5826058380
- description: Filter by architecture.
5826158381
example: arm64
5826258382
in: query
@@ -58841,6 +58961,13 @@ paths:
5884158961
required: false
5884258962
schema:
5884358963
type: string
58964+
- description: Filter by origin.
58965+
example: agentless-scanner
58966+
in: query
58967+
name: filter[origin]
58968+
required: false
58969+
schema:
58970+
type: string
5884458971
- description: Filter by asset name.
5884558972
example: datadog-agent
5884658973
in: query
@@ -58920,6 +59047,13 @@ paths:
5892059047
required: false
5892159048
schema:
5892259049
type: string
59050+
- description: Filter by asset teams.
59051+
example: compute
59052+
in: query
59053+
name: filter[asset.teams]
59054+
required: false
59055+
schema:
59056+
type: string
5892359057
- description: Filter by asset architecture.
5892459058
example: arm64
5892559059
in: query

features/scenarios_model_mapping.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,7 @@
12391239
"filter_risks_has_privileged_access" => "Boolean",
12401240
"filter_risks_has_access_to_sensitive_data" => "Boolean",
12411241
"filter_environments" => "String",
1242+
"filter_teams" => "String",
12421243
"filter_arch" => "String",
12431244
"filter_operating_system_name" => "String",
12441245
"filter_operating_system_version" => "String",
@@ -1288,6 +1289,7 @@
12881289
"filter_code_location_method" => "String",
12891290
"filter_fix_available" => "Boolean",
12901291
"filter_repo_digests" => "String",
1292+
"filter_origin" => "String",
12911293
"filter_asset_name" => "String",
12921294
"filter_asset_type" => "AssetType",
12931295
"filter_asset_version_first" => "String",
@@ -1299,6 +1301,7 @@
12991301
"filter_asset_risks_has_privileged_access" => "Boolean",
13001302
"filter_asset_risks_has_access_to_sensitive_data" => "Boolean",
13011303
"filter_asset_environments" => "String",
1304+
"filter_asset_teams" => "String",
13021305
"filter_asset_arch" => "String",
13031306
"filter_asset_operating_system_name" => "String",
13041307
"filter_asset_operating_system_version" => "String",

lib/datadog_api_client/inflector.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2941,8 +2941,14 @@ def overrides
29412941
"v2.sbom" => "SBOM",
29422942
"v2.sbom_attributes" => "SBOMAttributes",
29432943
"v2.sbom_component" => "SBOMComponent",
2944+
"v2.sbom_component_dependency" => "SBOMComponentDependency",
2945+
"v2.sbom_component_license" => "SBOMComponentLicense",
2946+
"v2.sbom_component_license_license" => "SBOMComponentLicenseLicense",
2947+
"v2.sbom_component_property" => "SBOMComponentProperty",
2948+
"v2.sbom_component_supplier" => "SBOMComponentSupplier",
29442949
"v2.sbom_component_type" => "SBOMComponentType",
29452950
"v2.sbom_metadata" => "SBOMMetadata",
2951+
"v2.sbom_metadata_author" => "SBOMMetadataAuthor",
29462952
"v2.sbom_metadata_component" => "SBOMMetadataComponent",
29472953
"v2.sbom_type" => "SBOMType",
29482954
"v2.scalar_column" => "ScalarColumn",

lib/datadog_api_client/v2/api/security_monitoring_api.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2999,6 +2999,7 @@ def list_vulnerabilities(opts = {})
29992999
# @option opts [String] :filter_code_location_method Filter by method.
30003000
# @option opts [Boolean] :filter_fix_available Filter by fix availability.
30013001
# @option opts [String] :filter_repo_digests Filter by vulnerability `repo_digest` (when the vulnerability is related to `Image` asset).
3002+
# @option opts [String] :filter_origin Filter by origin.
30023003
# @option opts [String] :filter_asset_name Filter by asset name.
30033004
# @option opts [AssetType] :filter_asset_type Filter by asset type.
30043005
# @option opts [String] :filter_asset_version_first Filter by the first version of the asset this vulnerability has been detected on.
@@ -3010,6 +3011,7 @@ def list_vulnerabilities(opts = {})
30103011
# @option opts [Boolean] :filter_asset_risks_has_privileged_access Filter whether the asset is publicly accessible or not.
30113012
# @option opts [Boolean] :filter_asset_risks_has_access_to_sensitive_data Filter whether the asset has access to sensitive data or not.
30123013
# @option opts [String] :filter_asset_environments Filter by asset environments.
3014+
# @option opts [String] :filter_asset_teams Filter by asset teams.
30133015
# @option opts [String] :filter_asset_arch Filter by asset architecture.
30143016
# @option opts [String] :filter_asset_operating_system_name Filter by asset operating system name.
30153017
# @option opts [String] :filter_asset_operating_system_version Filter by asset operating system version.
@@ -3109,6 +3111,7 @@ def list_vulnerabilities_with_http_info(opts = {})
31093111
query_params[:'filter[code_location.method]'] = opts[:'filter_code_location_method'] if !opts[:'filter_code_location_method'].nil?
31103112
query_params[:'filter[fix_available]'] = opts[:'filter_fix_available'] if !opts[:'filter_fix_available'].nil?
31113113
query_params[:'filter[repo_digests]'] = opts[:'filter_repo_digests'] if !opts[:'filter_repo_digests'].nil?
3114+
query_params[:'filter[origin]'] = opts[:'filter_origin'] if !opts[:'filter_origin'].nil?
31123115
query_params[:'filter[asset.name]'] = opts[:'filter_asset_name'] if !opts[:'filter_asset_name'].nil?
31133116
query_params[:'filter[asset.type]'] = opts[:'filter_asset_type'] if !opts[:'filter_asset_type'].nil?
31143117
query_params[:'filter[asset.version.first]'] = opts[:'filter_asset_version_first'] if !opts[:'filter_asset_version_first'].nil?
@@ -3120,6 +3123,7 @@ def list_vulnerabilities_with_http_info(opts = {})
31203123
query_params[:'filter[asset.risks.has_privileged_access]'] = opts[:'filter_asset_risks_has_privileged_access'] if !opts[:'filter_asset_risks_has_privileged_access'].nil?
31213124
query_params[:'filter[asset.risks.has_access_to_sensitive_data]'] = opts[:'filter_asset_risks_has_access_to_sensitive_data'] if !opts[:'filter_asset_risks_has_access_to_sensitive_data'].nil?
31223125
query_params[:'filter[asset.environments]'] = opts[:'filter_asset_environments'] if !opts[:'filter_asset_environments'].nil?
3126+
query_params[:'filter[asset.teams]'] = opts[:'filter_asset_teams'] if !opts[:'filter_asset_teams'].nil?
31233127
query_params[:'filter[asset.arch]'] = opts[:'filter_asset_arch'] if !opts[:'filter_asset_arch'].nil?
31243128
query_params[:'filter[asset.operating_system.name]'] = opts[:'filter_asset_operating_system_name'] if !opts[:'filter_asset_operating_system_name'].nil?
31253129
query_params[:'filter[asset.operating_system.version]'] = opts[:'filter_asset_operating_system_version'] if !opts[:'filter_asset_operating_system_version'].nil?
@@ -3198,6 +3202,7 @@ def list_vulnerable_assets(opts = {})
31983202
# @option opts [Boolean] :filter_risks_has_privileged_access Filter whether the asset (Host) has privileged access or not.
31993203
# @option opts [Boolean] :filter_risks_has_access_to_sensitive_data Filter whether the asset (Host) has access to sensitive data or not.
32003204
# @option opts [String] :filter_environments Filter by environment.
3205+
# @option opts [String] :filter_teams Filter by teams.
32013206
# @option opts [String] :filter_arch Filter by architecture.
32023207
# @option opts [String] :filter_operating_system_name Filter by operating system name.
32033208
# @option opts [String] :filter_operating_system_version Filter by operating system version.
@@ -3238,6 +3243,7 @@ def list_vulnerable_assets_with_http_info(opts = {})
32383243
query_params[:'filter[risks.has_privileged_access]'] = opts[:'filter_risks_has_privileged_access'] if !opts[:'filter_risks_has_privileged_access'].nil?
32393244
query_params[:'filter[risks.has_access_to_sensitive_data]'] = opts[:'filter_risks_has_access_to_sensitive_data'] if !opts[:'filter_risks_has_access_to_sensitive_data'].nil?
32403245
query_params[:'filter[environments]'] = opts[:'filter_environments'] if !opts[:'filter_environments'].nil?
3246+
query_params[:'filter[teams]'] = opts[:'filter_teams'] if !opts[:'filter_teams'].nil?
32413247
query_params[:'filter[arch]'] = opts[:'filter_arch'] if !opts[:'filter_arch'].nil?
32423248
query_params[:'filter[operating_system.name]'] = opts[:'filter_operating_system_name'] if !opts[:'filter_operating_system_name'].nil?
32433249
query_params[:'filter[operating_system.version]'] = opts[:'filter_operating_system_version'] if !opts[:'filter_operating_system_version'].nil?

lib/datadog_api_client/v2/models/asset_attributes.rb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ class AssetAttributes
3636
# Asset risks.
3737
attr_reader :risks
3838

39+
# List of teams that own the asset.
40+
attr_accessor :teams
41+
3942
# The asset type
4043
attr_reader :type
4144

@@ -53,6 +56,7 @@ def self.attribute_map
5356
:'name' => :'name',
5457
:'operating_system' => :'operating_system',
5558
:'risks' => :'risks',
59+
:'teams' => :'teams',
5660
:'type' => :'type',
5761
:'version' => :'version'
5862
}
@@ -67,6 +71,7 @@ def self.openapi_types
6771
:'name' => :'String',
6872
:'operating_system' => :'AssetOperatingSystem',
6973
:'risks' => :'AssetRisks',
74+
:'teams' => :'Array<String>',
7075
:'type' => :'AssetType',
7176
:'version' => :'AssetVersion'
7277
}
@@ -112,6 +117,12 @@ def initialize(attributes = {})
112117
self.risks = attributes[:'risks']
113118
end
114119

120+
if attributes.key?(:'teams')
121+
if (value = attributes[:'teams']).is_a?(Array)
122+
self.teams = value
123+
end
124+
end
125+
115126
if attributes.key?(:'type')
116127
self.type = attributes[:'type']
117128
end
@@ -203,6 +214,7 @@ def ==(o)
203214
name == o.name &&
204215
operating_system == o.operating_system &&
205216
risks == o.risks &&
217+
teams == o.teams &&
206218
type == o.type &&
207219
version == o.version &&
208220
additional_properties == o.additional_properties
@@ -212,7 +224,7 @@ def ==(o)
212224
# @return [Integer] Hash code
213225
# @!visibility private
214226
def hash
215-
[arch, environments, name, operating_system, risks, type, version, additional_properties].hash
227+
[arch, environments, name, operating_system, risks, teams, type, version, additional_properties].hash
216228
end
217229
end
218230
end

0 commit comments

Comments
 (0)