Skip to content

Commit 9ad09ed

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

5 files changed

Lines changed: 9 additions & 5 deletions

.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`.

api/datadogV2/model_security_monitoring_critical_asset_attributes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type SecurityMonitoringCriticalAssetAttributes struct {
2222
Query *string `json:"query,omitempty"`
2323
// 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.
2424
RuleQuery *string `json:"rule_query,omitempty"`
25-
// Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
25+
// 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).
2626
Severity *SecurityMonitoringCriticalAssetSeverity `json:"severity,omitempty"`
2727
// List of tags associated with the critical asset.
2828
Tags []string `json:"tags,omitempty"`

api/datadogV2/model_security_monitoring_critical_asset_create_attributes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type SecurityMonitoringCriticalAssetCreateAttributes struct {
1818
Query string `json:"query"`
1919
// 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.
2020
RuleQuery string `json:"rule_query"`
21-
// Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
21+
// 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).
2222
Severity SecurityMonitoringCriticalAssetSeverity `json:"severity"`
2323
// List of tags associated with the critical asset.
2424
Tags []string `json:"tags,omitempty"`

api/datadogV2/model_security_monitoring_critical_asset_severity.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// SecurityMonitoringCriticalAssetSeverity Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
13+
// SecurityMonitoringCriticalAssetSeverity 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).
1414
type SecurityMonitoringCriticalAssetSeverity string
1515

1616
// List of SecurityMonitoringCriticalAssetSeverity.
@@ -22,6 +22,7 @@ const (
2222
SECURITYMONITORINGCRITICALASSETSEVERITY_CRITICAL SecurityMonitoringCriticalAssetSeverity = "critical"
2323
SECURITYMONITORINGCRITICALASSETSEVERITY_INCREASE SecurityMonitoringCriticalAssetSeverity = "increase"
2424
SECURITYMONITORINGCRITICALASSETSEVERITY_DECREASE SecurityMonitoringCriticalAssetSeverity = "decrease"
25+
SECURITYMONITORINGCRITICALASSETSEVERITY_NO_OP SecurityMonitoringCriticalAssetSeverity = "no-op"
2526
)
2627

2728
var allowedSecurityMonitoringCriticalAssetSeverityEnumValues = []SecurityMonitoringCriticalAssetSeverity{
@@ -32,6 +33,7 @@ var allowedSecurityMonitoringCriticalAssetSeverityEnumValues = []SecurityMonitor
3233
SECURITYMONITORINGCRITICALASSETSEVERITY_CRITICAL,
3334
SECURITYMONITORINGCRITICALASSETSEVERITY_INCREASE,
3435
SECURITYMONITORINGCRITICALASSETSEVERITY_DECREASE,
36+
SECURITYMONITORINGCRITICALASSETSEVERITY_NO_OP,
3537
}
3638

3739
// GetAllowedValues reeturns the list of possible values.

api/datadogV2/model_security_monitoring_critical_asset_update_attributes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type SecurityMonitoringCriticalAssetUpdateAttributes struct {
1616
Query *string `json:"query,omitempty"`
1717
// 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.
1818
RuleQuery *string `json:"rule_query,omitempty"`
19-
// Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
19+
// 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).
2020
Severity *SecurityMonitoringCriticalAssetSeverity `json:"severity,omitempty"`
2121
// List of tags associated with the critical asset.
2222
Tags []string `json:"tags,omitempty"`

0 commit comments

Comments
 (0)