Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39011,6 +39011,9 @@ components:
SecurityMonitoringRuleConvertResponse:
description: Result of the convert rule request containing Terraform content.
properties:
ruleId:
description: the ID of the rule.
type: string
terraformContent:
description: Terraform string as a result of converting the rule from JSON.
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module DatadogAPIClient::V2
class SecurityMonitoringRuleConvertResponse
include BaseGenericModel

# the ID of the rule.
attr_accessor :rule_id

# Terraform string as a result of converting the rule from JSON.
attr_accessor :terraform_content

Expand All @@ -30,6 +33,7 @@ class SecurityMonitoringRuleConvertResponse
# @!visibility private
def self.attribute_map
{
:'rule_id' => :'ruleId',
:'terraform_content' => :'terraformContent'
}
end
Expand All @@ -38,6 +42,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'rule_id' => :'String',
:'terraform_content' => :'String'
}
end
Expand All @@ -60,6 +65,10 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'rule_id')
self.rule_id = attributes[:'rule_id']
end

if attributes.key?(:'terraform_content')
self.terraform_content = attributes[:'terraform_content']
end
Expand Down Expand Up @@ -91,6 +100,7 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
rule_id == o.rule_id &&
terraform_content == o.terraform_content &&
additional_properties == o.additional_properties
end
Expand All @@ -99,7 +109,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[terraform_content, additional_properties].hash
[rule_id, terraform_content, additional_properties].hash
end
end
end
Loading