# 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::DataFactory::Mgmt::V2018_06_01
  module Models
    #
    # PolyBase settings.
    #
    class PolybaseSettings

      include MsRestAzure

      # @return Unmatched properties from the message are deserialized this
      # collection
      attr_accessor :additional_properties

      # @return [PolybaseSettingsRejectType] Reject type. Possible values
      # include: 'value', 'percentage'
      attr_accessor :reject_type

      # @return Specifies the value or the percentage of rows that can be
      # rejected before the query fails. Type: number (or Expression with
      # resultType number), minimum: 0.
      attr_accessor :reject_value

      # @return Determines the number of rows to attempt to retrieve before the
      # PolyBase recalculates the percentage of rejected rows. Type: integer
      # (or Expression with resultType integer), minimum: 0.
      attr_accessor :reject_sample_value

      # @return Specifies how to handle missing values in delimited text files
      # when PolyBase retrieves data from the text file. Type: boolean (or
      # Expression with resultType boolean).
      attr_accessor :use_type_default


      #
      # Mapper for PolybaseSettings class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'PolybaseSettings',
          type: {
            name: 'Composite',
            class_name: 'PolybaseSettings',
            model_properties: {
              additional_properties: {
                client_side_validation: true,
                required: false,
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ObjectElementType',
                      type: {
                        name: 'Object'
                      }
                  }
                }
              },
              reject_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'rejectType',
                type: {
                  name: 'String'
                }
              },
              reject_value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'rejectValue',
                type: {
                  name: 'Object'
                }
              },
              reject_sample_value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'rejectSampleValue',
                type: {
                  name: 'Object'
                }
              },
              use_type_default: {
                client_side_validation: true,
                required: false,
                serialized_name: 'useTypeDefault',
                type: {
                  name: 'Object'
                }
              }
            }
          }
        }
      end
    end
  end
end
