Skip to content

Commit 715cc59

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 319e516 of spec repo (#3402)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 8c17dc1 commit 715cc59

File tree

9 files changed

+10
-61
lines changed

9 files changed

+10
-61
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87364,9 +87364,6 @@ paths:
8736487364
operator: OR
8736587365
permissions:
8736687366
- appsec_vm_read
87367-
x-unstable: '**Note**: This endpoint is a private preview.
87368-
87369-
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
8737087367
/api/v2/security/sboms/{asset_type}:
8737187368
get:
8737287369
description: Get a single SBOM related to an asset by its type and name.
@@ -87439,9 +87436,6 @@ paths:
8743987436
operator: OR
8744087437
permissions:
8744187438
- appsec_vm_read
87442-
x-unstable: '**Note**: This endpoint is a private preview.
87443-
87444-
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
8744587439
/api/v2/security/scanned-assets-metadata:
8744687440
get:
8744787441
description: "Get a list of security scanned assets metadata for an organization.\n\n###

examples/v2/security-monitoring/GetSBOM.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
public class Example {
1010
public static void main(String[] args) {
1111
ApiClient defaultClient = ApiClient.getDefaultApiClient();
12-
defaultClient.setUnstableOperationEnabled("v2.getSBOM", true);
1312
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);
1413

1514
try {

examples/v2/security-monitoring/ListAssetsSBOMs.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
public class Example {
1111
public static void main(String[] args) {
1212
ApiClient defaultClient = ApiClient.getDefaultApiClient();
13-
defaultClient.setUnstableOperationEnabled("v2.listAssetsSBOMs", true);
1413
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);
1514

1615
try {

src/main/java/com/datadog/api/client/ApiClient.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,12 +782,10 @@ public class ApiClient {
782782
put("v2.deleteThreatHuntingJob", false);
783783
put("v2.getFinding", false);
784784
put("v2.getRuleVersionHistory", false);
785-
put("v2.getSBOM", false);
786785
put("v2.getSecretsRules", false);
787786
put("v2.getSecurityMonitoringHistsignal", false);
788787
put("v2.getSecurityMonitoringHistsignalsByJobId", false);
789788
put("v2.getThreatHuntingJob", false);
790-
put("v2.listAssetsSBOMs", false);
791789
put("v2.listFindings", false);
792790
put("v2.listMultipleRulesets", false);
793791
put("v2.listScannedAssetsMetadata", false);

src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5327,13 +5327,6 @@ public CompletableFuture<GetSBOMResponse> getSBOMAsync(
53275327
public ApiResponse<GetSBOMResponse> getSBOMWithHttpInfo(
53285328
AssetType assetType, String filterAssetName, GetSBOMOptionalParameters parameters)
53295329
throws ApiException {
5330-
// Check if unstable operation is enabled
5331-
String operationId = "getSBOM";
5332-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
5333-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
5334-
} else {
5335-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
5336-
}
53375330
Object localVarPostBody = null;
53385331

53395332
// verify the required parameter 'assetType' is set
@@ -5395,16 +5388,6 @@ public ApiResponse<GetSBOMResponse> getSBOMWithHttpInfo(
53955388
*/
53965389
public CompletableFuture<ApiResponse<GetSBOMResponse>> getSBOMWithHttpInfoAsync(
53975390
AssetType assetType, String filterAssetName, GetSBOMOptionalParameters parameters) {
5398-
// Check if unstable operation is enabled
5399-
String operationId = "getSBOM";
5400-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
5401-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
5402-
} else {
5403-
CompletableFuture<ApiResponse<GetSBOMResponse>> result = new CompletableFuture<>();
5404-
result.completeExceptionally(
5405-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
5406-
return result;
5407-
}
54085391
Object localVarPostBody = null;
54095392

54105393
// verify the required parameter 'assetType' is set
@@ -8138,13 +8121,6 @@ public CompletableFuture<ListAssetsSBOMsResponse> listAssetsSBOMsAsync(
81388121
*/
81398122
public ApiResponse<ListAssetsSBOMsResponse> listAssetsSBOMsWithHttpInfo(
81408123
ListAssetsSBOMsOptionalParameters parameters) throws ApiException {
8141-
// Check if unstable operation is enabled
8142-
String operationId = "listAssetsSBOMs";
8143-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
8144-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
8145-
} else {
8146-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
8147-
}
81488124
Object localVarPostBody = null;
81498125
String pageToken = parameters.pageToken;
81508126
Long pageNumber = parameters.pageNumber;
@@ -8205,16 +8181,6 @@ public ApiResponse<ListAssetsSBOMsResponse> listAssetsSBOMsWithHttpInfo(
82058181
*/
82068182
public CompletableFuture<ApiResponse<ListAssetsSBOMsResponse>> listAssetsSBOMsWithHttpInfoAsync(
82078183
ListAssetsSBOMsOptionalParameters parameters) {
8208-
// Check if unstable operation is enabled
8209-
String operationId = "listAssetsSBOMs";
8210-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
8211-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
8212-
} else {
8213-
CompletableFuture<ApiResponse<ListAssetsSBOMsResponse>> result = new CompletableFuture<>();
8214-
result.completeExceptionally(
8215-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
8216-
return result;
8217-
}
82188184
Object localVarPostBody = null;
82198185
String pageToken = parameters.pageToken;
82208186
Long pageNumber = parameters.pageNumber;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-10T11:40:12.098Z
1+
2026-01-20T09:40:32.938Z
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-07-10T10:13:27.247Z
1+
2026-01-20T08:26:52.182Z
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-07-10T10:11:37.540Z
1+
2026-01-20T08:27:19.760Z

src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -809,26 +809,23 @@ Feature: Security Monitoring
809809

810810
@generated @skip @team:DataDog/k9-cloud-vm
811811
Scenario: Get SBOM returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
812-
Given operation "GetSBOM" enabled
813-
And new "GetSBOM" request
812+
Given new "GetSBOM" request
814813
And request contains "asset_type" parameter from "REPLACE.ME"
815814
And request contains "filter[asset_name]" parameter from "REPLACE.ME"
816815
When the request is sent
817816
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
818817

819818
@team:DataDog/k9-cloud-vm
820819
Scenario: Get SBOM returns "Not found: asset not found" response
821-
Given operation "GetSBOM" enabled
822-
And new "GetSBOM" request
820+
Given new "GetSBOM" request
823821
And request contains "asset_type" parameter with value "Host"
824822
And request contains "filter[asset_name]" parameter with value "unknown-host"
825823
When the request is sent
826824
Then the response status is 404 Not found: asset not found
827825

828826
@skip @team:DataDog/k9-cloud-vm
829827
Scenario: Get SBOM returns "OK" response
830-
Given operation "GetSBOM" enabled
831-
And new "GetSBOM" request
828+
Given new "GetSBOM" request
832829
And request contains "asset_type" parameter with value "Repository"
833830
And request contains "filter[asset_name]" parameter with value "github.com/datadog/datadog-agent"
834831
When the request is sent
@@ -1297,31 +1294,27 @@ Feature: Security Monitoring
12971294

12981295
@generated @skip @team:DataDog/k9-cloud-vm
12991296
Scenario: List assets SBOMs returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
1300-
Given operation "ListAssetsSBOMs" enabled
1301-
And new "ListAssetsSBOMs" request
1297+
Given new "ListAssetsSBOMs" request
13021298
When the request is sent
13031299
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
13041300

13051301
@team:DataDog/k9-cloud-vm
13061302
Scenario: List assets SBOMs returns "Not found: There is no request associated with the provided token." response
1307-
Given operation "ListAssetsSBOMs" enabled
1308-
And new "ListAssetsSBOMs" request
1303+
Given new "ListAssetsSBOMs" request
13091304
And request contains "page[token]" parameter with value "unknown"
13101305
And request contains "page[number]" parameter with value 1
13111306
When the request is sent
13121307
Then the response status is 404 Not found: There is no request associated with the provided token.
13131308

13141309
@generated @skip @team:DataDog/k9-cloud-vm
13151310
Scenario: List assets SBOMs returns "Not found: asset not found" response
1316-
Given operation "ListAssetsSBOMs" enabled
1317-
And new "ListAssetsSBOMs" request
1311+
Given new "ListAssetsSBOMs" request
13181312
When the request is sent
13191313
Then the response status is 404 Not found: asset not found
13201314

13211315
@team:DataDog/k9-cloud-vm
13221316
Scenario: List assets SBOMs returns "OK" response
1323-
Given operation "ListAssetsSBOMs" enabled
1324-
And new "ListAssetsSBOMs" request
1317+
Given new "ListAssetsSBOMs" request
13251318
And request contains "filter[package_name]" parameter with value "pandas"
13261319
And request contains "filter[asset_type]" parameter with value "Service"
13271320
When the request is sent

0 commit comments

Comments
 (0)