Skip to content

Commit e05bbaf

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

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
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`.

src/datadog_api_client/v2/model/security_monitoring_critical_asset_attributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(
101101
:param rule_query: The rule query of the critical asset, with the same syntax as the search bar for detection rules. This determines which rules this critical asset will apply to.
102102
:type rule_query: str, optional
103103
104-
:param severity: Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
104+
:param severity: 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).
105105
:type severity: SecurityMonitoringCriticalAssetSeverity, optional
106106
107107
:param tags: List of tags associated with the critical asset.

src/datadog_api_client/v2/model/security_monitoring_critical_asset_create_attributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(
6363
:param rule_query: The rule query of the critical asset, with the same syntax as the search bar for detection rules. This determines which rules this critical asset will apply to.
6464
:type rule_query: str
6565
66-
:param severity: Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
66+
:param severity: 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).
6767
:type severity: SecurityMonitoringCriticalAssetSeverity
6868
6969
:param tags: List of tags associated with the critical asset.

src/datadog_api_client/v2/model/security_monitoring_critical_asset_severity.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
class SecurityMonitoringCriticalAssetSeverity(ModelSimple):
1616
"""
17-
Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
17+
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).
1818
19-
:param value: Must be one of ["info", "low", "medium", "high", "critical", "increase", "decrease"].
19+
:param value: Must be one of ["info", "low", "medium", "high", "critical", "increase", "decrease", "no-op"].
2020
:type value: str
2121
"""
2222

@@ -28,6 +28,7 @@ class SecurityMonitoringCriticalAssetSeverity(ModelSimple):
2828
"critical",
2929
"increase",
3030
"decrease",
31+
"no-op",
3132
}
3233
INFO: ClassVar["SecurityMonitoringCriticalAssetSeverity"]
3334
LOW: ClassVar["SecurityMonitoringCriticalAssetSeverity"]
@@ -36,6 +37,7 @@ class SecurityMonitoringCriticalAssetSeverity(ModelSimple):
3637
CRITICAL: ClassVar["SecurityMonitoringCriticalAssetSeverity"]
3738
INCREASE: ClassVar["SecurityMonitoringCriticalAssetSeverity"]
3839
DECREASE: ClassVar["SecurityMonitoringCriticalAssetSeverity"]
40+
NO_OP: ClassVar["SecurityMonitoringCriticalAssetSeverity"]
3941

4042
@cached_property
4143
def openapi_types(_):
@@ -51,3 +53,4 @@ def openapi_types(_):
5153
SecurityMonitoringCriticalAssetSeverity.CRITICAL = SecurityMonitoringCriticalAssetSeverity("critical")
5254
SecurityMonitoringCriticalAssetSeverity.INCREASE = SecurityMonitoringCriticalAssetSeverity("increase")
5355
SecurityMonitoringCriticalAssetSeverity.DECREASE = SecurityMonitoringCriticalAssetSeverity("decrease")
56+
SecurityMonitoringCriticalAssetSeverity.NO_OP = SecurityMonitoringCriticalAssetSeverity("no-op")

src/datadog_api_client/v2/model/security_monitoring_critical_asset_update_attributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __init__(
7272
:param rule_query: The rule query of the critical asset, with the same syntax as the search bar for detection rules. This determines which rules this critical asset will apply to.
7373
:type rule_query: str, optional
7474
75-
:param severity: Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
75+
:param severity: 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).
7676
:type severity: SecurityMonitoringCriticalAssetSeverity, optional
7777
7878
:param tags: List of tags associated with the critical asset.

0 commit comments

Comments
 (0)