# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Security::Mgmt::V2020_07_01_preview module Models # # vulnerability assessment rule metadata details. # class VaRule include MsRestAzure # @return [String] The rule Id. attr_accessor :rule_id # @return [RuleSeverity] Possible values include: 'High', 'Medium', # 'Low', 'Informational', 'Obsolete' attr_accessor :severity # @return [String] The rule category. attr_accessor :category # @return [RuleType] Possible values include: 'Binary', # 'BaselineExpected', 'PositiveList', 'NegativeList' attr_accessor :rule_type # @return [String] The rule title. attr_accessor :title # @return [String] The rule description. attr_accessor :description # @return [String] The rule rationale. attr_accessor :rationale # @return [QueryCheck] attr_accessor :query_check # @return [Array] The benchmark references. attr_accessor :benchmark_references # # Mapper for VaRule class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'VaRule', type: { name: 'Composite', class_name: 'VaRule', model_properties: { rule_id: { client_side_validation: true, required: false, serialized_name: 'ruleId', type: { name: 'String' } }, severity: { client_side_validation: true, required: false, serialized_name: 'severity', type: { name: 'String' } }, category: { client_side_validation: true, required: false, serialized_name: 'category', type: { name: 'String' } }, rule_type: { client_side_validation: true, required: false, serialized_name: 'ruleType', type: { name: 'String' } }, title: { client_side_validation: true, required: false, serialized_name: 'title', type: { name: 'String' } }, description: { client_side_validation: true, required: false, serialized_name: 'description', type: { name: 'String' } }, rationale: { client_side_validation: true, required: false, serialized_name: 'rationale', type: { name: 'String' } }, query_check: { client_side_validation: true, required: false, serialized_name: 'queryCheck', type: { name: 'Composite', class_name: 'QueryCheck' } }, benchmark_references: { client_side_validation: true, required: false, serialized_name: 'benchmarkReferences', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'BenchmarkReferenceElementType', type: { name: 'Composite', class_name: 'BenchmarkReference' } } } } } } } end end end end