text: /*
   * 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';
  
  /**
   * Settings which will be used by the data disks associated to Compute Nodes in
   * the Pool. When using attached data disks, you need to mount and format the
   * disks from within a VM to use them.
   *
   */
  class DataDisk {
    /**
     * Create a DataDisk.
     * @property {number} lun The logical unit number. The lun is used to
     * uniquely identify each data disk. If attaching multiple disks, each should
     * have a distinct lun.
     * @property {string} [caching] The type of caching to be enabled for the
     * data disks. Values are:
     *
     * none - The caching mode for the disk is not enabled.
     * readOnly - The caching mode for the disk is read only.
     * readWrite - The caching mode for the disk is read and write.
     *
     * The default value for caching is none. For information about the caching
     * options see:
     * https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/.
     * Possible values include: 'None', 'ReadOnly', 'ReadWrite'
     * @property {number} diskSizeGB The initial disk size in GB when creating
     * new data disk.
     * @property {string} [storageAccountType] The storage account type to be
     * used for the data disk. If omitted, the default is "Standard_LRS". Values
     * are:
     *
     * Standard_LRS - The data disk should use standard locally redundant
     * storage.
     * Premium_LRS - The data disk should use premium locally redundant storage.
     * Possible values include: 'Standard_LRS', 'Premium_LRS'
     */
    constructor() {
    }
  
    /**
     * Defines the metadata of DataDisk
     *
     * @returns {object} metadata of DataDisk
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'DataDisk',
        type: {
          name: 'Composite',
          className: 'DataDisk',
          modelProperties: {
            lun: {
              required: true,
              serializedName: 'lun',
              type: {
                name: 'Number'
              }
            },
            caching: {
              required: false,
              serializedName: 'caching',
              type: {
                name: 'Enum',
                allowedValues: [ 'None', 'ReadOnly', 'ReadWrite' ]
              }
            },
            diskSizeGB: {
              required: true,
              serializedName: 'diskSizeGB',
              type: {
                name: 'Number'
              }
            },
            storageAccountType: {
              required: false,
              serializedName: 'storageAccountType',
              type: {
                name: 'Enum',
                allowedValues: [ 'Standard_LRS', 'Premium_LRS' ]
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = DataDisk;
  