Skip to content

Commit f8b3ff6

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[SEC-29485] Add noop severity to critical assets api specs (#3765)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent cb7a28a commit f8b3ff6

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56896,7 +56896,7 @@ components:
5689656896
$ref: "#/components/schemas/SecurityMonitoringCriticalAsset"
5689756897
type: object
5689856898
SecurityMonitoringCriticalAssetSeverity:
56899-
description: Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
56899+
description: Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
5690056900
enum:
5690156901
- info
5690256902
- low
@@ -56905,6 +56905,7 @@ components:
5690556905
- critical
5690656906
- increase
5690756907
- decrease
56908+
- no-op
5690856909
example: increase
5690956910
type: string
5691056911
x-enum-varnames:
@@ -56915,6 +56916,7 @@ components:
5691556916
- CRITICAL
5691656917
- INCREASE
5691756918
- DECREASE
56919+
- NO_OP
5691856920
SecurityMonitoringCriticalAssetType:
5691956921
default: critical_assets
5692056922
description: The type of the resource. The value should always be `critical_assets`.

services/security_monitoring/src/v2/models/SecurityMonitoringCriticalAssetAttributes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class SecurityMonitoringCriticalAssetAttributes {
3232
*/
3333
"ruleQuery"?: string;
3434
/**
35-
* Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
35+
* Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
3636
*/
3737
"severity"?: SecurityMonitoringCriticalAssetSeverity;
3838
/**

services/security_monitoring/src/v2/models/SecurityMonitoringCriticalAssetCreateAttributes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class SecurityMonitoringCriticalAssetCreateAttributes {
1919
*/
2020
"ruleQuery": string;
2121
/**
22-
* Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
22+
* Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
2323
*/
2424
"severity": SecurityMonitoringCriticalAssetSeverity;
2525
/**

services/security_monitoring/src/v2/models/SecurityMonitoringCriticalAssetSeverity.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { UnparsedObject } from "@datadog/datadog-api-client";
22

33
/**
4-
* Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
4+
* Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
55
*/
66
export type SecurityMonitoringCriticalAssetSeverity =
77
| typeof INFO
@@ -11,6 +11,7 @@ export type SecurityMonitoringCriticalAssetSeverity =
1111
| typeof CRITICAL
1212
| typeof INCREASE
1313
| typeof DECREASE
14+
| typeof NO_OP
1415
| UnparsedObject;
1516
export const INFO = "info";
1617
export const LOW = "low";
@@ -19,3 +20,4 @@ export const HIGH = "high";
1920
export const CRITICAL = "critical";
2021
export const INCREASE = "increase";
2122
export const DECREASE = "decrease";
23+
export const NO_OP = "no-op";

services/security_monitoring/src/v2/models/SecurityMonitoringCriticalAssetUpdateAttributes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class SecurityMonitoringCriticalAssetUpdateAttributes {
1919
*/
2020
"ruleQuery"?: string;
2121
/**
22-
* Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
22+
* Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
2323
*/
2424
"severity"?: SecurityMonitoringCriticalAssetSeverity;
2525
/**

services/security_monitoring/src/v2/models/TypingInfo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ export const TypingInfo: ModelTypingInfo = {
432432
"critical",
433433
"increase",
434434
"decrease",
435+
"no-op",
435436
],
436437
SecurityMonitoringCriticalAssetType: ["critical_assets"],
437438
SecurityMonitoringFilterAction: ["require", "suppress"],

0 commit comments

Comments
 (0)