Skip to content

Commit 18346f5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f28e269 of spec repo
1 parent 73b019c commit 18346f5

File tree

33 files changed

+2925
-188
lines changed

33 files changed

+2925
-188
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 451 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Returns list of Secrets rules returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.getSecretsRules"] = true;
9+
const apiInstance = new v2.SecurityMonitoringApi(configuration);
10+
11+
apiInstance
12+
.getSecretsRules()
13+
.then((data: v2.SecretRuleArray) => {
14+
console.log(
15+
"API called successfully. Returned data: " + JSON.stringify(data)
16+
);
17+
})
18+
.catch((error: any) => console.error(error));
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Ruleset get multiple returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listMultipleRulesets"] = true;
9+
const apiInstance = new v2.SecurityMonitoringApi(configuration);
10+
11+
const params: v2.SecurityMonitoringApiListMultipleRulesetsRequest = {
12+
body: {
13+
data: {
14+
attributes: {
15+
rulesets: [],
16+
},
17+
type: "get_multiple_rulesets_request",
18+
},
19+
},
20+
};
21+
22+
apiInstance
23+
.listMultipleRulesets(params)
24+
.then((data: v2.GetMultipleRulesetsResponse) => {
25+
console.log(
26+
"API called successfully. Returned data: " + JSON.stringify(data)
27+
);
28+
})
29+
.catch((error: any) => console.error(error));

features/support/scenarios_model_mapping.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4358,6 +4358,16 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
43584358
},
43594359
"operationResponseType": "SecurityMonitoringSignalsListResponse",
43604360
},
4361+
"v2.ListMultipleRulesets": {
4362+
"body": {
4363+
"type": "GetMultipleRulesetsRequest",
4364+
"format": "",
4365+
},
4366+
"operationResponseType": "GetMultipleRulesetsResponse",
4367+
},
4368+
"v2.GetSecretsRules": {
4369+
"operationResponseType": "SecretRuleArray",
4370+
},
43614371
"v2.ListContainerImages": {
43624372
"filterTags": {
43634373
"type": "string",

features/v2/security_monitoring.feature

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

features/v2/undo.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3780,6 +3780,20 @@
37803780
"type": "safe"
37813781
}
37823782
},
3783+
"ListMultipleRulesets": {
3784+
"tag": "Security Monitoring",
3785+
"undo": {
3786+
"operationId": "TODO",
3787+
"parameters": [],
3788+
"type": "unsafe"
3789+
}
3790+
},
3791+
"GetSecretsRules": {
3792+
"tag": "Security Monitoring",
3793+
"undo": {
3794+
"type": "safe"
3795+
}
3796+
},
37833797
"GetOnDemandConcurrencyCap": {
37843798
"tag": "Synthetics",
37853799
"undo": {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,13 @@ export function createConfiguration(
234234
"v2.getHistoricalJob": false,
235235
"v2.getRuleVersionHistory": false,
236236
"v2.getSBOM": false,
237+
"v2.getSecretsRules": false,
237238
"v2.getSecurityMonitoringHistsignal": false,
238239
"v2.getSecurityMonitoringHistsignalsByJobId": false,
239240
"v2.listAssetsSBOMs": false,
240241
"v2.listFindings": false,
241242
"v2.listHistoricalJobs": false,
243+
"v2.listMultipleRulesets": false,
242244
"v2.listSecurityMonitoringHistsignals": false,
243245
"v2.listVulnerabilities": false,
244246
"v2.listVulnerableAssets": false,

0 commit comments

Comments
 (0)