# 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::DeploymentManager::Mgmt::V2019_11_01_preview
  module Models
    #
    # Defines the REST health check step properties.
    #
    class RestHealthCheckStepAttributes < HealthCheckStepAttributes

      include MsRestAzure


      def initialize
        @type = "REST"
      end

      attr_accessor :type

      # @return [Array<RestHealthCheck>] The list of checks that form the
      # health check step.
      attr_accessor :health_checks


      #
      # Mapper for RestHealthCheckStepAttributes class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'REST',
          type: {
            name: 'Composite',
            class_name: 'RestHealthCheckStepAttributes',
            model_properties: {
              wait_duration: {
                client_side_validation: true,
                required: false,
                serialized_name: 'waitDuration',
                type: {
                  name: 'String'
                }
              },
              max_elastic_duration: {
                client_side_validation: true,
                required: false,
                serialized_name: 'maxElasticDuration',
                type: {
                  name: 'String'
                }
              },
              healthy_state_duration: {
                client_side_validation: true,
                required: true,
                serialized_name: 'healthyStateDuration',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              health_checks: {
                client_side_validation: true,
                required: true,
                serialized_name: 'properties.healthChecks',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'RestHealthCheckElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'RestHealthCheck'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
