Skip to content

Commit e7344e3

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

5 files changed

Lines changed: 8 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`.

lib/datadog_api_client/v2/models/security_monitoring_critical_asset_attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SecurityMonitoringCriticalAssetAttributes
3939
# 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.
4040
attr_accessor :rule_query
4141

42-
# Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
42+
# 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).
4343
attr_accessor :severity
4444

4545
# List of tags associated with the critical asset.

lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class SecurityMonitoringCriticalAssetCreateAttributes
3030
# 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.
3131
attr_reader :rule_query
3232

33-
# Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
33+
# 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).
3434
attr_reader :severity
3535

3636
# List of tags associated with the critical asset.

lib/datadog_api_client/v2/models/security_monitoring_critical_asset_severity.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
20+
# 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).
2121
class SecurityMonitoringCriticalAssetSeverity
2222
include BaseEnumModel
2323

@@ -28,5 +28,6 @@ class SecurityMonitoringCriticalAssetSeverity
2828
CRITICAL = "critical".freeze
2929
INCREASE = "increase".freeze
3030
DECREASE = "decrease".freeze
31+
NO_OP = "no-op".freeze
3132
end
3233
end

lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class SecurityMonitoringCriticalAssetUpdateAttributes
3030
# 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.
3131
attr_accessor :rule_query
3232

33-
# Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased.
33+
# 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).
3434
attr_accessor :severity
3535

3636
# List of tags associated with the critical asset.

0 commit comments

Comments
 (0)