# 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::Kusto::Mgmt::V2019_11_09
  module Models
    #
    # Class representing an data connection validation.
    #
    class DataConnectionValidation

      include MsRestAzure

      # @return [String] The name of the data connection.
      attr_accessor :data_connection_name

      # @return [DataConnection] The data connection properties to validate.
      attr_accessor :properties


      #
      # Mapper for DataConnectionValidation class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DataConnectionValidation',
          type: {
            name: 'Composite',
            class_name: 'DataConnectionValidation',
            model_properties: {
              data_connection_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'dataConnectionName',
                type: {
                  name: 'String'
                }
              },
              properties: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties',
                type: {
                  name: 'Composite',
                  polymorphic_discriminator: 'kind',
                  uber_parent: 'Resource',
                  class_name: 'DataConnection'
                }
              }
            }
          }
        }
      end
    end
  end
end
