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

/**
 * @summary Specifies how tasks should be distributed across compute nodes.
  *
 */
class TaskSchedulingPolicy {
  /**
   * Create a TaskSchedulingPolicy.
   * @property {string} nodeFillType How tasks should be distributed across
   * compute nodes. Possible values include: 'Spread', 'Pack'
   */
  constructor() {
  }

  /**
   * Defines the metadata of TaskSchedulingPolicy
   *
   * @returns {object} metadata of TaskSchedulingPolicy
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'TaskSchedulingPolicy',
      type: {
        name: 'Composite',
        className: 'TaskSchedulingPolicy',
        modelProperties: {
          nodeFillType: {
            required: true,
            serializedName: 'nodeFillType',
            type: {
              name: 'Enum',
              allowedValues: [ 'Spread', 'Pack' ]
            }
          }
        }
      }
    };
  }
}

module.exports = TaskSchedulingPolicy;
