# 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::Web::Mgmt::V2020_09_01
  module Models
    #
    # Rules that can be defined for auto-heal.
    #
    class AutoHealRules

      include MsRestAzure

      # @return [AutoHealTriggers] Conditions that describe when to execute the
      # auto-heal actions.
      attr_accessor :triggers

      # @return [AutoHealActions] Actions to be executed when a rule is
      # triggered.
      attr_accessor :actions


      #
      # Mapper for AutoHealRules class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AutoHealRules',
          type: {
            name: 'Composite',
            class_name: 'AutoHealRules',
            model_properties: {
              triggers: {
                client_side_validation: true,
                required: false,
                serialized_name: 'triggers',
                type: {
                  name: 'Composite',
                  class_name: 'AutoHealTriggers'
                }
              },
              actions: {
                client_side_validation: true,
                required: false,
                serialized_name: 'actions',
                type: {
                  name: 'Composite',
                  class_name: 'AutoHealActions'
                }
              }
            }
          }
        }
      end
    end
  end
end
