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

/**
 * Properties for creating a custom image from a virtual machine.
 *
 */
class CustomImagePropertiesFromVmFragment {
  /**
   * Create a CustomImagePropertiesFromVmFragment.
   * @property {string} [sourceVmId] The source vm identifier.
   * @property {object} [windowsOsInfo] The Windows OS information of the VM.
   * @property {string} [windowsOsInfo.windowsOsState] The state of the Windows
   * OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied). Possible values
   * include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied'
   * @property {object} [linuxOsInfo] The Linux OS information of the VM.
   * @property {string} [linuxOsInfo.linuxOsState] The state of the Linux OS
   * (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).
   * Possible values include: 'NonDeprovisioned', 'DeprovisionRequested',
   * 'DeprovisionApplied'
   */
  constructor() {
  }

  /**
   * Defines the metadata of CustomImagePropertiesFromVmFragment
   *
   * @returns {object} metadata of CustomImagePropertiesFromVmFragment
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'CustomImagePropertiesFromVmFragment',
      type: {
        name: 'Composite',
        className: 'CustomImagePropertiesFromVmFragment',
        modelProperties: {
          sourceVmId: {
            required: false,
            serializedName: 'sourceVmId',
            type: {
              name: 'String'
            }
          },
          windowsOsInfo: {
            required: false,
            serializedName: 'windowsOsInfo',
            type: {
              name: 'Composite',
              className: 'WindowsOsInfoFragment'
            }
          },
          linuxOsInfo: {
            required: false,
            serializedName: 'linuxOsInfo',
            type: {
              name: 'Composite',
              className: 'LinuxOsInfoFragment'
            }
          }
        }
      }
    };
  }
}

module.exports = CustomImagePropertiesFromVmFragment;
