Skip to content

Commit 1e1c627

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add custom/rulesets endpoints (#3247)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 6b4f36a commit 1e1c627

41 files changed

Lines changed: 5412 additions & 109 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

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

features/v2/static_analysis.feature

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

features/v2/undo.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4658,6 +4658,68 @@
46584658
"type": "safe"
46594659
}
46604660
},
4661+
"DeleteCustomRuleset": {
4662+
"tag": "Static Analysis",
4663+
"undo": {
4664+
"type": "idempotent"
4665+
}
4666+
},
4667+
"GetCustomRuleset": {
4668+
"tag": "Static Analysis",
4669+
"undo": {
4670+
"type": "safe"
4671+
}
4672+
},
4673+
"UpdateCustomRuleset": {
4674+
"tag": "Static Analysis",
4675+
"undo": {
4676+
"type": "idempotent"
4677+
}
4678+
},
4679+
"CreateCustomRule": {
4680+
"tag": "Static Analysis",
4681+
"undo": {
4682+
"type": "idempotent"
4683+
}
4684+
},
4685+
"DeleteCustomRule": {
4686+
"tag": "Static Analysis",
4687+
"undo": {
4688+
"type": "idempotent"
4689+
}
4690+
},
4691+
"GetCustomRule": {
4692+
"tag": "Static Analysis",
4693+
"undo": {
4694+
"type": "safe"
4695+
}
4696+
},
4697+
"ListCustomRuleRevisions": {
4698+
"tag": "Static Analysis",
4699+
"undo": {
4700+
"type": "safe"
4701+
}
4702+
},
4703+
"CreateCustomRuleRevision": {
4704+
"tag": "Static Analysis",
4705+
"undo": {
4706+
"type": "idempotent"
4707+
}
4708+
},
4709+
"RevertCustomRuleRevision": {
4710+
"tag": "Static Analysis",
4711+
"undo": {
4712+
"operationId": "TODO",
4713+
"parameters": [],
4714+
"type": "unsafe"
4715+
}
4716+
},
4717+
"GetCustomRuleRevision": {
4718+
"tag": "Static Analysis",
4719+
"undo": {
4720+
"type": "safe"
4721+
}
4722+
},
46614723
"ListMultipleRulesets": {
46624724
"tag": "Security Monitoring",
46634725
"undo": {

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9355,6 +9355,128 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
93559355
},
93569356
operationResponseType: "ResolveVulnerableSymbolsResponse",
93579357
},
9358+
"StaticAnalysisApi.V2.GetCustomRuleset": {
9359+
rulesetName: {
9360+
type: "string",
9361+
format: "",
9362+
},
9363+
operationResponseType: "CustomRulesetResponse",
9364+
},
9365+
"StaticAnalysisApi.V2.DeleteCustomRuleset": {
9366+
rulesetName: {
9367+
type: "string",
9368+
format: "",
9369+
},
9370+
operationResponseType: "{}",
9371+
},
9372+
"StaticAnalysisApi.V2.UpdateCustomRuleset": {
9373+
rulesetName: {
9374+
type: "string",
9375+
format: "",
9376+
},
9377+
body: {
9378+
type: "CustomRulesetRequest",
9379+
format: "",
9380+
},
9381+
operationResponseType: "CustomRulesetResponse",
9382+
},
9383+
"StaticAnalysisApi.V2.CreateCustomRule": {
9384+
rulesetName: {
9385+
type: "string",
9386+
format: "",
9387+
},
9388+
body: {
9389+
type: "CustomRuleRequest",
9390+
format: "",
9391+
},
9392+
operationResponseType: "CustomRuleResponse",
9393+
},
9394+
"StaticAnalysisApi.V2.GetCustomRule": {
9395+
rulesetName: {
9396+
type: "string",
9397+
format: "",
9398+
},
9399+
ruleName: {
9400+
type: "string",
9401+
format: "",
9402+
},
9403+
operationResponseType: "CustomRuleResponse",
9404+
},
9405+
"StaticAnalysisApi.V2.DeleteCustomRule": {
9406+
rulesetName: {
9407+
type: "string",
9408+
format: "",
9409+
},
9410+
ruleName: {
9411+
type: "string",
9412+
format: "",
9413+
},
9414+
operationResponseType: "{}",
9415+
},
9416+
"StaticAnalysisApi.V2.ListCustomRuleRevisions": {
9417+
rulesetName: {
9418+
type: "string",
9419+
format: "",
9420+
},
9421+
ruleName: {
9422+
type: "string",
9423+
format: "",
9424+
},
9425+
pageOffset: {
9426+
type: "number",
9427+
format: "",
9428+
},
9429+
pageLimit: {
9430+
type: "number",
9431+
format: "",
9432+
},
9433+
operationResponseType: "CustomRuleRevisionsResponse",
9434+
},
9435+
"StaticAnalysisApi.V2.CreateCustomRuleRevision": {
9436+
rulesetName: {
9437+
type: "string",
9438+
format: "",
9439+
},
9440+
ruleName: {
9441+
type: "string",
9442+
format: "",
9443+
},
9444+
body: {
9445+
type: "CustomRuleRevisionRequest",
9446+
format: "",
9447+
},
9448+
operationResponseType: "{}",
9449+
},
9450+
"StaticAnalysisApi.V2.RevertCustomRuleRevision": {
9451+
rulesetName: {
9452+
type: "string",
9453+
format: "",
9454+
},
9455+
ruleName: {
9456+
type: "string",
9457+
format: "",
9458+
},
9459+
body: {
9460+
type: "RevertCustomRuleRevisionRequest",
9461+
format: "",
9462+
},
9463+
operationResponseType: "{}",
9464+
},
9465+
"StaticAnalysisApi.V2.GetCustomRuleRevision": {
9466+
rulesetName: {
9467+
type: "string",
9468+
format: "",
9469+
},
9470+
ruleName: {
9471+
type: "string",
9472+
format: "",
9473+
},
9474+
id: {
9475+
type: "string",
9476+
format: "",
9477+
},
9478+
operationResponseType: "CustomRuleRevisionResponse",
9479+
},
93589480
"StatusPagesApi.V2.ListStatusPages": {
93599481
pageOffset: {
93609482
type: "number",

0 commit comments

Comments
 (0)