/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

/**
 * Contains list of QnAs to be updated
 *
 */
class UpdateKbOperationDTO {
  /**
   * Create a UpdateKbOperationDTO.
   * @property {object} [add] An instance of CreateKbInputDTO for add operation
   * @property {object} [deleteProperty] An instance of DeleteKbContentsDTO for
   * delete Operation
   * @property {object} [update] An instance of UpdateKbContentsDTO for Update
   * Operation
   */
  constructor() {
  }

  /**
   * Defines the metadata of UpdateKbOperationDTO
   *
   * @returns {object} metadata of UpdateKbOperationDTO
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'UpdateKbOperationDTO',
      type: {
        name: 'Composite',
        className: 'UpdateKbOperationDTO',
        modelProperties: {
          add: {
            required: false,
            serializedName: 'add',
            type: {
              name: 'Composite',
              className: 'UpdateKbOperationDTOAdd'
            }
          },
          deleteProperty: {
            required: false,
            serializedName: 'delete',
            type: {
              name: 'Composite',
              className: 'UpdateKbOperationDTODelete'
            }
          },
          update: {
            required: false,
            serializedName: 'update',
            type: {
              name: 'Composite',
              className: 'UpdateKbOperationDTOUpdate'
            }
          }
        }
      }
    };
  }
}

module.exports = UpdateKbOperationDTO;
