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

/**
 * Data Lake Store filesystem file status information response.
 *
 */
class FileStatusResult {
  /**
   * Create a FileStatusResult.
   * @property {object} [fileStatus] the file status object associated with the
   * specified path.
   * @property {number} [fileStatus.accessTime] the last access time as ticks
   * since the epoch.
   * @property {number} [fileStatus.blockSize] the block size for the file.
   * @property {number} [fileStatus.expirationTime] Gets the expiration time,
   * if any, as ticks since the epoch. If the value is 0 or DateTime.MaxValue
   * there is no expiration.
   * @property {string} [fileStatus.group] the group owner.
   * @property {number} [fileStatus.length] the number of bytes in a file.
   * @property {number} [fileStatus.modificationTime] the modification time as
   * ticks since the epoch.
   * @property {string} [fileStatus.owner] the user who is the owner.
   * @property {string} [fileStatus.pathSuffix] the path suffix.
   * @property {string} [fileStatus.permission] the permission represented as
   * an string.
   * @property {string} [fileStatus.type] the type of the path object. Possible
   * values include: 'FILE', 'DIRECTORY'
   * @property {boolean} [fileStatus.aclBit] flag to indicate if extended acls
   * are enabled
   */
  constructor() {
  }

  /**
   * Defines the metadata of FileStatusResult
   *
   * @returns {object} metadata of FileStatusResult
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'FileStatusResult',
      type: {
        name: 'Composite',
        className: 'FileStatusResult',
        modelProperties: {
          fileStatus: {
            required: false,
            readOnly: true,
            serializedName: 'fileStatus',
            type: {
              name: 'Composite',
              className: 'FileStatusProperties'
            }
          }
        }
      }
    };
  }
}

module.exports = FileStatusResult;
