UNPKG

azure

Version:
111 lines (105 loc) 2.54 kB
/* * 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'); /** * @class * Initializes a new instance of the Shark class. * @constructor * @member {number} [age] * * @member {date} birthday * */ class Shark extends models['Fish'] { constructor() { super(); } /** * Defines the metadata of Shark * * @returns {object} metadata of Shark * */ mapper() { return { required: false, serializedName: 'shark', type: { name: 'Composite', polymorphicDiscriminator: { serializedName: 'fish.type', clientName: 'fishtype' }, uberParent: 'Fish', className: 'Shark', modelProperties: { species: { required: false, serializedName: 'species', type: { name: 'String' } }, length: { required: true, serializedName: 'length', type: { name: 'Number' } }, siblings: { required: false, serializedName: 'siblings', type: { name: 'Sequence', element: { required: false, serializedName: 'FishElementType', type: { name: 'Composite', polymorphicDiscriminator: { serializedName: 'fish.type', clientName: 'fishtype' }, uberParent: 'Fish', className: 'Fish' } } } }, fishtype: { required: true, serializedName: 'fish\\.type', isPolymorphicDiscriminator: true, type: { name: 'String' } }, age: { required: false, serializedName: 'age', type: { name: 'Number' } }, birthday: { required: true, serializedName: 'birthday', type: { name: 'DateTime' } } } } }; } } module.exports = Shark;