Skip to content

Commit 64d6a2d

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

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-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

lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
2121
class SecurityMonitoringRuleConvertResponse
2222
include BaseGenericModel
2323

24+
# the ID of the rule.
25+
attr_accessor :rule_id
26+
2427
# Terraform string as a result of converting the rule from JSON.
2528
attr_accessor :terraform_content
2629

@@ -30,6 +33,7 @@ class SecurityMonitoringRuleConvertResponse
3033
# @!visibility private
3134
def self.attribute_map
3235
{
36+
:'rule_id' => :'ruleId',
3337
:'terraform_content' => :'terraformContent'
3438
}
3539
end
@@ -38,6 +42,7 @@ def self.attribute_map
3842
# @!visibility private
3943
def self.openapi_types
4044
{
45+
:'rule_id' => :'String',
4146
:'terraform_content' => :'String'
4247
}
4348
end
@@ -60,6 +65,10 @@ def initialize(attributes = {})
6065
end
6166
}
6267

68+
if attributes.key?(:'rule_id')
69+
self.rule_id = attributes[:'rule_id']
70+
end
71+
6372
if attributes.key?(:'terraform_content')
6473
self.terraform_content = attributes[:'terraform_content']
6574
end
@@ -91,6 +100,7 @@ def to_hash
91100
def ==(o)
92101
return true if self.equal?(o)
93102
self.class == o.class &&
103+
rule_id == o.rule_id &&
94104
terraform_content == o.terraform_content &&
95105
additional_properties == o.additional_properties
96106
end
@@ -99,7 +109,7 @@ def ==(o)
99109
# @return [Integer] Hash code
100110
# @!visibility private
101111
def hash
102-
[terraform_content, additional_properties].hash
112+
[rule_id, terraform_content, additional_properties].hash
103113
end
104114
end
105115
end

0 commit comments

Comments
 (0)