azure
Version:
Microsoft Azure Client Library for node
99 lines (93 loc) • 2.26 kB
JavaScript
/*
* 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.
*/
;
var models = require('./index');
/**
* @class
* Initializes a new instance of the Fish class.
* @constructor
* @member {string} [species]
*
* @member {number} length
*
* @member {array} [siblings]
*
* @member {string} fishtype Polymorhpic Discriminator
*
*/
class Fish {
constructor() { }
/**
* Defines the metadata of Fish
*
* @returns {object} metadata of Fish
*
*/
mapper() {
return {
required: false,
serializedName: 'Fish',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'fish.type',
clientName: 'fishtype'
},
uberParent: 'Fish',
className: 'Fish',
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'
}
}
}
}
};
}
}
module.exports = Fish;