# 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::CDN::Mgmt::V2020_04_15
  module Models
    #
    # Defines a managed rule group override setting.
    #
    class ManagedRuleOverride

      include MsRestAzure

      # @return [String] Identifier for the managed rule.
      attr_accessor :rule_id

      # @return [ManagedRuleEnabledState] Describes if the managed rule is in
      # enabled or disabled state. Defaults to Disabled if not specified.
      # Possible values include: 'Disabled', 'Enabled'
      attr_accessor :enabled_state

      # @return [ActionType] Describes the override action to be applied when
      # rule matches. Possible values include: 'Allow', 'Block', 'Log',
      # 'Redirect'
      attr_accessor :action


      #
      # Mapper for ManagedRuleOverride class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ManagedRuleOverride',
          type: {
            name: 'Composite',
            class_name: 'ManagedRuleOverride',
            model_properties: {
              rule_id: {
                client_side_validation: true,
                required: true,
                serialized_name: 'ruleId',
                type: {
                  name: 'String'
                }
              },
              enabled_state: {
                client_side_validation: true,
                required: false,
                serialized_name: 'enabledState',
                type: {
                  name: 'String'
                }
              },
              action: {
                client_side_validation: true,
                required: false,
                serialized_name: 'action',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
