# 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
    #
    # A REST based health check
    #
    class RestHealthCheck

      include MsRestAzure

      # @return [String] A unique name for this check.
      attr_accessor :name

      # @return [RestRequest] The request to the health provider.
      attr_accessor :request

      # @return [RestResponse] The expected response from the health provider.
      # If no expected response is provided, the default is to expect the
      # received response to have an HTTP status code of 200 OK.
      attr_accessor :response


      #
      # Mapper for RestHealthCheck class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RestHealthCheck',
          type: {
            name: 'Composite',
            class_name: 'RestHealthCheck',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              request: {
                client_side_validation: true,
                required: true,
                serialized_name: 'request',
                type: {
                  name: 'Composite',
                  class_name: 'RestRequest'
                }
              },
              response: {
                client_side_validation: true,
                required: false,
                serialized_name: 'response',
                type: {
                  name: 'Composite',
                  class_name: 'RestResponse'
                }
              }
            }
          }
        }
      end
    end
  end
end
