/*
 * 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';

/**
 * Task properties of the software update configuration.
 *
 */
class TaskProperties {
  /**
   * Create a TaskProperties.
   * @member {object} [parameters] Gets or sets the parameters of the task.
   * @member {string} [source] Gets or sets the name of the runbook.
   */
  constructor() {
  }

  /**
   * Defines the metadata of TaskProperties
   *
   * @returns {object} metadata of TaskProperties
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'taskProperties',
      type: {
        name: 'Composite',
        className: 'TaskProperties',
        modelProperties: {
          parameters: {
            required: false,
            serializedName: 'parameters',
            type: {
              name: 'Dictionary',
              value: {
                  required: false,
                  serializedName: 'StringElementType',
                  type: {
                    name: 'String'
                  }
              }
            }
          },
          source: {
            required: false,
            serializedName: 'source',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = TaskProperties;
