Skip to content

Commit 3e57772

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[SIEM] Include ruleId in SecurityMonitoringRuleConvertResponse (#2829)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 9010199 commit 3e57772

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39011,6 +39011,9 @@ components:
3901139011
SecurityMonitoringRuleConvertResponse:
3901239012
description: Result of the convert rule request containing Terraform content.
3901339013
properties:
39014+
ruleId:
39015+
description: the ID of the rule.
39016+
type: string
3901439017
terraformContent:
3901539018
description: Terraform string as a result of converting the rule from JSON.
3901639019
type: string

src/datadog_api_client/v2/model/security_monitoring_rule_convert_response.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,29 @@ class SecurityMonitoringRuleConvertResponse(ModelNormal):
1717
@cached_property
1818
def openapi_types(_):
1919
return {
20+
"rule_id": (str,),
2021
"terraform_content": (str,),
2122
}
2223

2324
attribute_map = {
25+
"rule_id": "ruleId",
2426
"terraform_content": "terraformContent",
2527
}
2628

27-
def __init__(self_, terraform_content: Union[str, UnsetType] = unset, **kwargs):
29+
def __init__(
30+
self_, rule_id: Union[str, UnsetType] = unset, terraform_content: Union[str, UnsetType] = unset, **kwargs
31+
):
2832
"""
2933
Result of the convert rule request containing Terraform content.
3034
35+
:param rule_id: the ID of the rule.
36+
:type rule_id: str, optional
37+
3138
:param terraform_content: Terraform string as a result of converting the rule from JSON.
3239
:type terraform_content: str, optional
3340
"""
41+
if rule_id is not unset:
42+
kwargs["rule_id"] = rule_id
3443
if terraform_content is not unset:
3544
kwargs["terraform_content"] = terraform_content
3645
super().__init__(kwargs)

0 commit comments

Comments
 (0)