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';
  
  const models = require('./index');
  
  /**
   * An on-premises file system dataset.
   *
   * @extends models['Dataset']
   */
  class FileShareDataset extends models['Dataset'] {
    /**
     * Create a FileShareDataset.
     * @member {object} [folderPath] The path of the on-premises file system.
     * Type: string (or Expression with resultType string).
     * @member {object} [fileName] The name of the on-premises file system. Type:
     * string (or Expression with resultType string).
     * @member {object} [format] The format of the files.
     * @member {object} [format.serializer] Serializer. Type: string (or
     * Expression with resultType string).
     * @member {object} [format.deserializer] Deserializer. Type: string (or
     * Expression with resultType string).
     * @member {string} [format.type] Polymorphic Discriminator
     * @member {object} [fileFilter] Specify a filter to be used to select a
     * subset of files in the folderPath rather than all files. Type: string (or
     * Expression with resultType string).
     * @member {object} [compression] The data compression method used for the
     * file system.
     * @member {string} [compression.type] Polymorphic Discriminator
     */
    constructor() {
      super();
    }
  
    /**
     * Defines the metadata of FileShareDataset
     *
     * @returns {object} metadata of FileShareDataset
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'FileShare',
        type: {
          name: 'Composite',
          polymorphicDiscriminator: {
            serializedName: 'type',
            clientName: 'type'
          },
          uberParent: 'Dataset',
          className: 'FileShareDataset',
          modelProperties: {
            description: {
              required: false,
              serializedName: 'description',
              type: {
                name: 'String'
              }
            },
            structure: {
              required: false,
              serializedName: 'structure',
              type: {
                name: 'Object'
              }
            },
            linkedServiceName: {
              required: true,
              serializedName: 'linkedServiceName',
              defaultValue: {},
              type: {
                name: 'Composite',
                className: 'LinkedServiceReference'
              }
            },
            parameters: {
              required: false,
              serializedName: 'parameters',
              type: {
                name: 'Dictionary',
                value: {
                    required: false,
                    serializedName: 'ParameterSpecificationElementType',
                    type: {
                      name: 'Composite',
                      className: 'ParameterSpecification'
                    }
                }
              }
            },
            annotations: {
              required: false,
              serializedName: 'annotations',
              type: {
                name: 'Sequence',
                element: {
                    required: false,
                    serializedName: 'ObjectElementType',
                    type: {
                      name: 'Object'
                    }
                }
              }
            },
            folder: {
              required: false,
              serializedName: 'folder',
              type: {
                name: 'Composite',
                className: 'DatasetFolder'
              }
            },
            type: {
              required: true,
              serializedName: 'type',
              isPolymorphicDiscriminator: true,
              type: {
                name: 'String'
              }
            },
            folderPath: {
              required: false,
              serializedName: 'typeProperties.folderPath',
              type: {
                name: 'Object'
              }
            },
            fileName: {
              required: false,
              serializedName: 'typeProperties.fileName',
              type: {
                name: 'Object'
              }
            },
            format: {
              required: false,
              serializedName: 'typeProperties.format',
              type: {
                name: 'Composite',
                additionalProperties: {
                  type: {
                    name: 'Dictionary',
                    value: {
                        required: false,
                        serializedName: 'ObjectElementType',
                        type: {
                          name: 'Object'
                        }
                    }
                  }
                },
                polymorphicDiscriminator: {
                  serializedName: 'type',
                  clientName: 'type'
                },
                uberParent: 'DatasetStorageFormat',
                className: 'DatasetStorageFormat'
              }
            },
            fileFilter: {
              required: false,
              serializedName: 'typeProperties.fileFilter',
              type: {
                name: 'Object'
              }
            },
            compression: {
              required: false,
              serializedName: 'typeProperties.compression',
              type: {
                name: 'Composite',
                additionalProperties: {
                  type: {
                    name: 'Dictionary',
                    value: {
                        required: false,
                        serializedName: 'ObjectElementType',
                        type: {
                          name: 'Object'
                        }
                    }
                  }
                },
                polymorphicDiscriminator: {
                  serializedName: 'type',
                  clientName: 'type'
                },
                uberParent: 'DatasetCompression',
                className: 'DatasetCompression'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = FileShareDataset;
  