# 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::CognitiveServices::Qnamaker::V4_0
  module Models
    #
    # PATCH Body schema for Update Kb which contains list of questions to be
    # added and deleted
    #
    class UpdateQuestionsDTO

      include MsRestAzure

      # @return [Array<String>] List of questions to be added
      attr_accessor :add

      # @return [Array<String>] List of questions to be deleted.
      attr_accessor :delete


      #
      # Mapper for UpdateQuestionsDTO class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'UpdateQuestionsDTO',
          type: {
            name: 'Composite',
            class_name: 'UpdateQuestionsDTO',
            model_properties: {
              add: {
                client_side_validation: true,
                required: false,
                serialized_name: 'add',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              delete: {
                client_side_validation: true,
                required: false,
                serialized_name: 'delete',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
