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

const models = require('./index');

/**
 * Provides required information, for the service to be able to mount Azure
 * FileShare on the cluster nodes.
 *
 */
class FileServerReference {
  /**
   * Create a FileServerReference.
   * @member {object} fileServer Reference to the file server resource.
   * @member {string} [fileServer.id] The ID of the resource
   * @member {string} [sourceDirectory] Specifies the source directory in File
   * Server that needs to be mounted. If this property is not specified, the
   * entire File Server will be mounted.
   * @member {string} relativeMountPath Specifies the relative path on the
   * compute node where the File Server will be mounted. Note that all file
   * shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location.
   * @member {string} [mountOptions] Specifies the mount options for File
   * Server.
   */
  constructor() {
  }

  /**
   * Defines the metadata of FileServerReference
   *
   * @returns {object} metadata of FileServerReference
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'FileServerReference',
      type: {
        name: 'Composite',
        className: 'FileServerReference',
        modelProperties: {
          fileServer: {
            required: true,
            serializedName: 'fileServer',
            type: {
              name: 'Composite',
              className: 'ResourceId'
            }
          },
          sourceDirectory: {
            required: false,
            serializedName: 'sourceDirectory',
            type: {
              name: 'String'
            }
          },
          relativeMountPath: {
            required: true,
            serializedName: 'relativeMountPath',
            type: {
              name: 'String'
            }
          },
          mountOptions: {
            required: false,
            serializedName: 'mountOptions',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = FileServerReference;
