Skip to content

Commit 2f49f4c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 3d24743f of spec repo
1 parent a7b898c commit 2f49f4c

File tree

20 files changed

+42
-81
lines changed

20 files changed

+42
-81
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-03 17:18:17.745201",
8-
"spec_repo_commit": "b584742c"
7+
"regenerated": "2025-02-03 18:06:18.045211",
8+
"spec_repo_commit": "3d24743f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-03 17:18:17.761761",
13-
"spec_repo_commit": "b584742c"
12+
"regenerated": "2025-02-03 18:06:18.061287",
13+
"spec_repo_commit": "3d24743f"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43976,9 +43976,6 @@ paths:
4397643976
summary: List vulnerable assets
4397743977
tags:
4397843978
- Security Monitoring
43979-
x-unstable: '**Note**: This endpoint is a private preview.
43980-
43981-
If you are interested in accessing this API, please [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
4398243979
/api/v2/security/cloud_workload/policy/download:
4398343980
get:
4398443981
description: 'The download endpoint generates a Cloud Workload Security policy
@@ -44071,9 +44068,6 @@ paths:
4407144068
summary: Get SBOM
4407244069
tags:
4407344070
- Security Monitoring
44074-
x-unstable: '**Note**: This endpoint is a private preview.
44075-
44076-
If you are interested in accessing this API, please [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
4407744071
/api/v2/security/signals/notification_rules:
4407844072
get:
4407944073
description: Returns the list of notification rules for security signals.
@@ -44632,9 +44626,6 @@ paths:
4463244626
summary: List vulnerabilities
4463344627
tags:
4463444628
- Security Monitoring
44635-
x-unstable: '**Note**: This endpoint is a private preview.
44636-
44637-
If you are interested in accessing this API, please [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
4463844629
/api/v2/security/vulnerabilities/notification_rules:
4463944630
get:
4464044631
description: Returns the list of notification rules for security vulnerabilities.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-01-15T14:19:46.527Z"
1+
"2025-01-31T12:04:00.490Z"

cassettes/v2/Security-Monitoring_1187227211/Get-SBOM-returns-Not-found-asset-not-found-response_1830059764/recording.har

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"status": 404,
5555
"statusText": "Not Found"
5656
},
57-
"startedDateTime": "2025-01-15T14:19:46.537Z",
58-
"time": 1088
57+
"startedDateTime": "2025-01-31T12:04:00.501Z",
58+
"time": 1317
5959
}
6060
],
6161
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-01-17T13:12:50.575Z"
1+
"2025-01-31T12:04:14.913Z"

cassettes/v2/Security-Monitoring_1187227211/Get-SBOM-returns-OK-response_169029814/recording.har

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-12-19T16:15:23.508Z"
1+
"2025-01-31T12:04:28.397Z"

cassettes/v2/Security-Monitoring_1187227211/List-vulnerabilities-returns-Not-found-There-is-no-request-associated-with-the-provided-t_4208064063/recording.har

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
"url": "https://api.datadoghq.com/api/v2/security/vulnerabilities?page%5Btoken%5D=unknown&page%5Bnumber%5D=1"
3737
},
3838
"response": {
39-
"bodySize": 49,
39+
"bodySize": 131,
4040
"content": {
4141
"mimeType": "application/vnd.api+json",
42-
"size": 49,
43-
"text": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\"}]}"
42+
"size": 131,
43+
"text": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"rpc error: code = Internal desc = no cached result set found for queryID: unknown\"}]}"
4444
},
4545
"cookies": [],
4646
"headers": [
@@ -49,14 +49,14 @@
4949
"value": "application/vnd.api+json"
5050
}
5151
],
52-
"headersSize": 660,
52+
"headersSize": 661,
5353
"httpVersion": "HTTP/1.1",
5454
"redirectURL": "",
5555
"status": 404,
5656
"statusText": "Not Found"
5757
},
58-
"startedDateTime": "2024-12-19T16:15:23.893Z",
59-
"time": 188
58+
"startedDateTime": "2025-01-31T12:04:28.406Z",
59+
"time": 489
6060
}
6161
],
6262
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-12-19T16:15:24.088Z"
1+
"2025-01-31T12:04:39.730Z"

cassettes/v2/Security-Monitoring_1187227211/List-vulnerabilities-returns-OK-response_2451060917/recording.har

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"value": "application/json"
2222
}
2323
],
24-
"headersSize": 613,
24+
"headersSize": 612,
2525
"httpVersion": "HTTP/1.1",
2626
"method": "GET",
2727
"queryString": [
@@ -56,8 +56,8 @@
5656
"status": 200,
5757
"statusText": "OK"
5858
},
59-
"startedDateTime": "2024-12-19T16:15:24.092Z",
60-
"time": 433
59+
"startedDateTime": "2025-01-31T12:04:39.739Z",
60+
"time": 1094
6161
}
6262
],
6363
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-12-19T16:15:24.530Z"
1+
"2025-01-31T12:04:52.159Z"

cassettes/v2/Security-Monitoring_1187227211/List-vulnerable-assets-returns-Not-found-There-is-no-request-associated-with-the-provided_3107541696/recording.har

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
"url": "https://api.datadoghq.com/api/v2/security/assets?page%5Btoken%5D=unknown&page%5Bnumber%5D=1"
3737
},
3838
"response": {
39-
"bodySize": 49,
39+
"bodySize": 131,
4040
"content": {
4141
"mimeType": "application/vnd.api+json",
42-
"size": 49,
43-
"text": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\"}]}"
42+
"size": 131,
43+
"text": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"rpc error: code = Internal desc = no cached result set found for queryID: unknown\"}]}"
4444
},
4545
"cookies": [],
4646
"headers": [
@@ -55,8 +55,8 @@
5555
"status": 404,
5656
"statusText": "Not Found"
5757
},
58-
"startedDateTime": "2024-12-19T16:15:24.533Z",
59-
"time": 161
58+
"startedDateTime": "2025-01-31T12:04:52.166Z",
59+
"time": 470
6060
}
6161
],
6262
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-12-19T16:15:24.699Z"
1+
"2025-01-31T12:05:04.773Z"

cassettes/v2/Security-Monitoring_1187227211/List-vulnerable-assets-returns-OK-response_1088765122/recording.har

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
"status": 200,
5757
"statusText": "OK"
5858
},
59-
"startedDateTime": "2024-12-19T16:15:24.702Z",
60-
"time": 253
59+
"startedDateTime": "2025-01-31T12:05:04.782Z",
60+
"time": 613
6161
}
6262
],
6363
"pages": [],

examples/v2/security-monitoring/GetSBOM.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.getSBOM"] = true;
98
const apiInstance = new v2.SecurityMonitoringApi(configuration);
109

1110
const params: v2.SecurityMonitoringApiGetSBOMRequest = {

examples/v2/security-monitoring/ListVulnerabilities.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.listVulnerabilities"] = true;
98
const apiInstance = new v2.SecurityMonitoringApi(configuration);
109

1110
const params: v2.SecurityMonitoringApiListVulnerabilitiesRequest = {

examples/v2/security-monitoring/ListVulnerableAssets.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.listVulnerableAssets"] = true;
98
const apiInstance = new v2.SecurityMonitoringApi(configuration);
109

1110
const params: v2.SecurityMonitoringApiListVulnerableAssetsRequest = {

features/v2/security_monitoring.feature

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -447,26 +447,23 @@ 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 operation "GetSBOM" enabled
451-
And new "GetSBOM" request
450+
Given new "GetSBOM" request
452451
And request contains "asset_type" parameter from "REPLACE.ME"
453452
And request contains "filter[asset_name]" parameter from "REPLACE.ME"
454453
When the request is sent
455454
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
456455

457456
@team:DataDog/asm-vm
458457
Scenario: Get SBOM returns "Not found: asset not found" response
459-
Given operation "GetSBOM" enabled
460-
And new "GetSBOM" request
458+
Given new "GetSBOM" request
461459
And request contains "asset_type" parameter with value "Host"
462460
And request contains "filter[asset_name]" parameter with value "unknown-host"
463461
When the request is sent
464462
Then the response status is 404 Not found: asset not found
465463

466464
@team:DataDog/asm-vm
467465
Scenario: Get SBOM returns "OK" response
468-
Given operation "GetSBOM" enabled
469-
And new "GetSBOM" request
466+
Given new "GetSBOM" request
470467
And request contains "asset_type" parameter with value "Repository"
471468
And request contains "filter[asset_name]" parameter with value "github.com/datadog/datadog-agent"
472469
When the request is sent
@@ -783,24 +780,21 @@ Feature: Security Monitoring
783780

784781
@generated @skip @team:DataDog/asm-vm
785782
Scenario: List vulnerabilities returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
786-
Given operation "ListVulnerabilities" enabled
787-
And new "ListVulnerabilities" request
783+
Given new "ListVulnerabilities" request
788784
When the request is sent
789785
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
790786

791787
@team:DataDog/asm-vm
792788
Scenario: List vulnerabilities returns "Not found: There is no request associated with the provided token." response
793-
Given operation "ListVulnerabilities" enabled
794-
And new "ListVulnerabilities" request
789+
Given new "ListVulnerabilities" request
795790
And request contains "page[token]" parameter with value "unknown"
796791
And request contains "page[number]" parameter with value 1
797792
When the request is sent
798793
Then the response status is 404 Not found: There is no request associated with the provided token.
799794

800795
@team:DataDog/asm-vm
801796
Scenario: List vulnerabilities returns "OK" response
802-
Given operation "ListVulnerabilities" enabled
803-
And new "ListVulnerabilities" request
797+
Given new "ListVulnerabilities" request
804798
And request contains "filter[cvss.base.severity]" parameter with value "High"
805799
And request contains "filter[asset.type]" parameter with value "Service"
806800
And request contains "filter[tool]" parameter with value "Infra"
@@ -809,24 +803,21 @@ Feature: Security Monitoring
809803

810804
@generated @skip @team:DataDog/asm-vm
811805
Scenario: List vulnerable assets returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
812-
Given operation "ListVulnerableAssets" enabled
813-
And new "ListVulnerableAssets" request
806+
Given new "ListVulnerableAssets" request
814807
When the request is sent
815808
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
816809

817810
@team:DataDog/asm-vm
818811
Scenario: List vulnerable assets returns "Not found: There is no request associated with the provided token." response
819-
Given operation "ListVulnerableAssets" enabled
820-
And new "ListVulnerableAssets" request
812+
Given new "ListVulnerableAssets" request
821813
And request contains "page[token]" parameter with value "unknown"
822814
And request contains "page[number]" parameter with value 1
823815
When the request is sent
824816
Then the response status is 404 Not found: There is no request associated with the provided token.
825817

826818
@team:DataDog/asm-vm
827819
Scenario: List vulnerable assets returns "OK" response
828-
Given operation "ListVulnerableAssets" enabled
829-
And new "ListVulnerableAssets" request
820+
Given new "ListVulnerableAssets" request
830821
And request contains "filter[type]" parameter with value "Host"
831822
And request contains "filter[repository_url]" parameter with value "github.com/datadog/dd-go"
832823
And request contains "filter[risks.in_production]" parameter with value true

packages/datadog-api-client-common/configuration.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,8 @@ export function createConfiguration(
276276
"v2.deleteHistoricalJob": false,
277277
"v2.getFinding": false,
278278
"v2.getHistoricalJob": false,
279-
"v2.getSBOM": false,
280279
"v2.listFindings": false,
281280
"v2.listHistoricalJobs": false,
282-
"v2.listVulnerabilities": false,
283-
"v2.listVulnerableAssets": false,
284281
"v2.muteFindings": false,
285282
"v2.runHistoricalJob": false,
286283
"v2.createScorecardOutcomesBatch": false,

packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -962,11 +962,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
962962
): Promise<RequestContext> {
963963
const _config = _options || this.configuration;
964964

965-
logger.warn("Using unstable operation 'getSBOM'");
966-
if (!_config.unstableOperations["v2.getSBOM"]) {
967-
throw new Error("Unstable operation 'getSBOM' is disabled");
968-
}
969-
970965
// verify required parameter 'assetType' is not null or undefined
971966
if (assetType === null || assetType === undefined) {
972967
throw new RequiredError("assetType", "getSBOM");
@@ -1696,11 +1691,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
16961691
): Promise<RequestContext> {
16971692
const _config = _options || this.configuration;
16981693

1699-
logger.warn("Using unstable operation 'listVulnerabilities'");
1700-
if (!_config.unstableOperations["v2.listVulnerabilities"]) {
1701-
throw new Error("Unstable operation 'listVulnerabilities' is disabled");
1702-
}
1703-
17041694
// Path Params
17051695
const localVarPath = "/api/v2/security/vulnerabilities";
17061696

@@ -2071,11 +2061,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
20712061
): Promise<RequestContext> {
20722062
const _config = _options || this.configuration;
20732063

2074-
logger.warn("Using unstable operation 'listVulnerableAssets'");
2075-
if (!_config.unstableOperations["v2.listVulnerableAssets"]) {
2076-
throw new Error("Unstable operation 'listVulnerableAssets' is disabled");
2077-
}
2078-
20792064
// Path Params
20802065
const localVarPath = "/api/v2/security/assets";
20812066

0 commit comments

Comments
 (0)