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

/**
 * Details of a Reference Vm
 *
 */
class ReferenceVmFragment {
  /**
   * Create a ReferenceVmFragment.
   * @property {string} [userName] The username of the virtual machine
   * @property {string} [password] The password of the virtual machine. This
   * will be set to null in GET resource API
   */
  constructor() {
  }

  /**
   * Defines the metadata of ReferenceVmFragment
   *
   * @returns {object} metadata of ReferenceVmFragment
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'ReferenceVmFragment',
      type: {
        name: 'Composite',
        className: 'ReferenceVmFragment',
        modelProperties: {
          userName: {
            required: false,
            serializedName: 'userName',
            type: {
              name: 'String'
            }
          },
          password: {
            required: false,
            serializedName: 'password',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = ReferenceVmFragment;
