appcenter-cli
Version:
Command line tool for Visual Studio App Center
70 lines (64 loc) • 1.61 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');
/**
* Google notification configuration.
*
* @extends models['NotificationConfig']
*/
class NotificationConfigGoogle extends models['NotificationConfig'] {
/**
* Create a NotificationConfigGoogle.
* @property {string} googleApiKey GCM API key.
*/
constructor() {
super();
}
/**
* Defines the metadata of NotificationConfigGoogle
*
* @returns {object} metadata of NotificationConfigGoogle
*
*/
mapper() {
return {
required: false,
serializedName: 'gcm_config',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'NotificationConfig',
className: 'NotificationConfigGoogle',
modelProperties: {
type: {
required: true,
serializedName: 'type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
googleApiKey: {
required: true,
serializedName: 'google_api_key',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = NotificationConfigGoogle;