appcenter-cli
Version:
Command line tool for Visual Studio App Center
77 lines (71 loc) • 1.85 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.
*/
;
const models = require('./index');
/**
* Notification target audiences.
*
* @extends models['NotificationTarget']
*/
class NotificationTargetAudiences extends models['NotificationTarget'] {
/**
* Create a NotificationTargetAudiences.
* @property {array} audiences List of target audiences.
*/
constructor() {
super();
}
/**
* Defines the metadata of NotificationTargetAudiences
*
* @returns {object} metadata of NotificationTargetAudiences
*
*/
mapper() {
return {
required: false,
serializedName: 'audiences_target',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'NotificationTarget',
className: 'NotificationTargetAudiences',
modelProperties: {
type: {
required: true,
serializedName: 'type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
audiences: {
required: true,
serializedName: 'audiences',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}
module.exports = NotificationTargetAudiences;