Skip to content

Commit ba1900b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Allow creation of Application Security detection rules from the v2 API (#1784)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ede190a commit ba1900b

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2023-12-04 18:32:11.743247",
8-
"spec_repo_commit": "07df9ec5"
7+
"regenerated": "2023-12-05 09:51:16.969824",
8+
"spec_repo_commit": "60646909"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-12-04 18:32:11.850605",
13-
"spec_repo_commit": "07df9ec5"
12+
"regenerated": "2023-12-05 09:51:16.984197",
13+
"spec_repo_commit": "60646909"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14961,10 +14961,12 @@ components:
1496114961
SecurityMonitoringRuleTypeCreate:
1496214962
description: The rule type.
1496314963
enum:
14964+
- application_security
1496414965
- log_detection
1496514966
- workload_security
1496614967
type: string
1496714968
x-enum-varnames:
14969+
- APPLICATION_SECURITY
1496814970
- LOG_DETECTION
1496914971
- WORKLOAD_SECURITY
1497014972
SecurityMonitoringRuleTypeRead:

src/datadog_api_client/v2/model/security_monitoring_rule_type_create.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ class SecurityMonitoringRuleTypeCreate(ModelSimple):
1616
"""
1717
The rule type.
1818
19-
:param value: Must be one of ["log_detection", "workload_security"].
19+
:param value: Must be one of ["application_security", "log_detection", "workload_security"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
24+
"application_security",
2425
"log_detection",
2526
"workload_security",
2627
}
28+
APPLICATION_SECURITY: ClassVar["SecurityMonitoringRuleTypeCreate"]
2729
LOG_DETECTION: ClassVar["SecurityMonitoringRuleTypeCreate"]
2830
WORKLOAD_SECURITY: ClassVar["SecurityMonitoringRuleTypeCreate"]
2931

@@ -34,5 +36,6 @@ def openapi_types(_):
3436
}
3537

3638

39+
SecurityMonitoringRuleTypeCreate.APPLICATION_SECURITY = SecurityMonitoringRuleTypeCreate("application_security")
3740
SecurityMonitoringRuleTypeCreate.LOG_DETECTION = SecurityMonitoringRuleTypeCreate("log_detection")
3841
SecurityMonitoringRuleTypeCreate.WORKLOAD_SECURITY = SecurityMonitoringRuleTypeCreate("workload_security")

0 commit comments

Comments
 (0)