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

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

var util = require('util');

/**
 * @class
 * Initializes a new instance of the USqlDatabase class.
 * @constructor
 * A Data Lake Analytics catalog U-SQL database item.
 *
 * @member {string} [name] the name of the database.
 * 
 */
function USqlDatabase() {
  USqlDatabase['super_'].call(this);
}

util.inherits(USqlDatabase, models['CatalogItem']);

/**
 * Defines the metadata of USqlDatabase
 *
 * @returns {object} metadata of USqlDatabase
 *
 */
USqlDatabase.prototype.mapper = function () {
  return {
    required: false,
    serializedName: 'USqlDatabase',
    type: {
      name: 'Composite',
      className: 'USqlDatabase',
      modelProperties: {
        computeAccountName: {
          required: false,
          serializedName: 'computeAccountName',
          type: {
            name: 'String'
          }
        },
        version: {
          required: false,
          serializedName: 'version',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          serializedName: 'databaseName',
          type: {
            name: 'String'
          }
        }
      }
    }
  };
};

module.exports = USqlDatabase;
