Skip to content

Commit 0ef799c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8bf021d3 of spec repo
1 parent 136ca50 commit 0ef799c

File tree

9 files changed

+22
-14
lines changed

9 files changed

+22
-14
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-02-07 15:58:43.227363",
8-
"spec_repo_commit": "1ff7c087"
7+
"regenerated": "2025-02-10 11:25:29.076036",
8+
"spec_repo_commit": "8bf021d3"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-07 15:58:43.241835",
13-
"spec_repo_commit": "1ff7c087"
12+
"regenerated": "2025-02-10 11:25:29.090299",
13+
"spec_repo_commit": "8bf021d3"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44069,6 +44069,9 @@ paths:
4406944069
summary: Get SBOM
4407044070
tags:
4407144071
- Security Monitoring
44072+
x-unstable: '**Note**: This endpoint is a private preview.
44073+
44074+
If you are interested in accessing this API, please [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
4407244075
/api/v2/security/signals/notification_rules:
4407344076
get:
4407444077
description: Returns the list of notification rules for security signals.

examples/v2/security-monitoring/GetSBOM.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from datadog_api_client.v2.model.asset_type import AssetType
88

99
configuration = Configuration()
10+
configuration.unstable_operations["get_sbom"] = True
1011
with ApiClient(configuration) as api_client:
1112
api_instance = SecurityMonitoringApi(api_client)
1213
response = api_instance.get_sbom(

src/datadog_api_client/configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ def __init__(
290290
"v2.delete_historical_job": False,
291291
"v2.get_finding": False,
292292
"v2.get_historical_job": False,
293+
"v2.get_sbom": False,
293294
"v2.list_findings": False,
294295
"v2.list_historical_jobs": False,
295296
"v2.mute_findings": False,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-31T12:04:00.490Z
1+
2025-02-10T09:34:13.361Z

tests/v2/cassettes/test_scenarios/test_get_sbom_returns_not_found_asset_not_found_response.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ interactions:
33
body: null
44
headers:
55
accept:
6-
- application/json
6+
- application/json, */*
77
method: GET
88
uri: https://api.datadoghq.com/api/v2/security/sboms/Host?filter%5Basset_name%5D=unknown-host
99
response:
1010
body:
11-
string: '{"errors":[{"title":"Asset not found","detail":"asset_type: ''Host''
12-
with asset_name: ''unknown-host'' not found"}]}'
11+
string: '{"errors":[{"status":"404","title":"Asset not found","detail":"asset_type:
12+
''Host'' with asset_name: ''unknown-host'' not found"}]}'
1313
headers:
1414
content-type:
1515
- 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:14.913Z
1+
2025-02-10T09:34:48.919Z

tests/v2/cassettes/test_scenarios/test_get_sbom_returns_ok_response.yaml

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

tests/v2/features/security_monitoring.feature

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,23 +447,26 @@ Feature: Security Monitoring
447447

448448
@generated @skip @team:DataDog/asm-vm
449449
Scenario: Get SBOM returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
450-
Given new "GetSBOM" request
450+
Given operation "GetSBOM" enabled
451+
And new "GetSBOM" request
451452
And request contains "asset_type" parameter from "REPLACE.ME"
452453
And request contains "filter[asset_name]" parameter from "REPLACE.ME"
453454
When the request is sent
454455
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
455456

456457
@team:DataDog/asm-vm
457458
Scenario: Get SBOM returns "Not found: asset not found" response
458-
Given new "GetSBOM" request
459+
Given operation "GetSBOM" enabled
460+
And new "GetSBOM" request
459461
And request contains "asset_type" parameter with value "Host"
460462
And request contains "filter[asset_name]" parameter with value "unknown-host"
461463
When the request is sent
462464
Then the response status is 404 Not found: asset not found
463465

464466
@team:DataDog/asm-vm
465467
Scenario: Get SBOM returns "OK" response
466-
Given new "GetSBOM" request
468+
Given operation "GetSBOM" enabled
469+
And new "GetSBOM" request
467470
And request contains "asset_type" parameter with value "Repository"
468471
And request contains "filter[asset_name]" parameter with value "github.com/datadog/datadog-agent"
469472
When the request is sent

0 commit comments

Comments
 (0)