appcenter-cli
Version:
Command line tool for Visual Studio App Center
70 lines (65 loc) • 1.56 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.
*/
;
/**
* Class representing a CustomProperty.
*/
class CustomProperty {
/**
* Create a CustomProperty.
* @property {string} name
* @property {string} type Polymorphic Discriminator
*/
constructor() {
}
/**
* Defines the metadata of CustomProperty
*
* @returns {object} metadata of CustomProperty
*
*/
mapper() {
return {
required: false,
serializedName: 'CustomProperty',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'CustomProperty',
className: 'CustomProperty',
modelProperties: {
name: {
required: true,
serializedName: 'name',
constraints: {
MaxLength: 128,
Pattern: /^[a-zA-Z][a-zA-Z0-9\-_]*$/
},
type: {
name: 'String'
}
},
type: {
required: true,
serializedName: 'type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = CustomProperty;