Sha256: d0073dcc008b8af0c7616ed67391db16ac9cde3ab8d99639b1195df20c0be02c

Contents?: true

Size: 1.89 KB

Versions: 1

Compression:

Stored size: 1.89 KB

Contents

# 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::ARM::Web
  module Models
    #
    # Actions which to take by the auto-heal module when a rule is triggered.
    #
    class AutoHealActions

      include MsRestAzure

      # @return [AutoHealActionType] Predefined action to be taken. Possible
      # values include: 'Recycle', 'LogEvent', 'CustomAction'
      attr_accessor :action_type

      # @return [AutoHealCustomAction] Custom action to be taken.
      attr_accessor :custom_action

      # @return [String] Minimum time the process must execute
      # before taking the action
      attr_accessor :min_process_execution_time


      #
      # Mapper for AutoHealActions class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'AutoHealActions',
          type: {
            name: 'Composite',
            class_name: 'AutoHealActions',
            model_properties: {
              action_type: {
                required: false,
                serialized_name: 'actionType',
                type: {
                  name: 'Enum',
                  module: 'AutoHealActionType'
                }
              },
              custom_action: {
                required: false,
                serialized_name: 'customAction',
                type: {
                  name: 'Composite',
                  class_name: 'AutoHealCustomAction'
                }
              },
              min_process_execution_time: {
                required: false,
                serialized_name: 'minProcessExecutionTime',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
azure_mgmt_web-0.14.0 lib/generated/azure_mgmt_web/models/auto_heal_actions.rb