UNPKG

appcenter-cli

Version:

Command line tool for Visual Studio App Center

97 lines (91 loc) 2.46 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'; const models = require('./index'); /** * Alerting Default Email Settings of the user * * @extends models['AlertOperationResult'] */ class AlertUserEmailSettingsResult extends models['AlertOperationResult'] { /** * Create a AlertUserEmailSettingsResult. * @property {string} [eTag] The ETag of the entity * @property {boolean} enabled Allows to forcefully disable emails on app or * user level * @property {string} [userId] The unique id (UUID) of the user * @property {array} settings The settings the user has for the app */ constructor() { super(); } /** * Defines the metadata of AlertUserEmailSettingsResult * * @returns {object} metadata of AlertUserEmailSettingsResult * */ mapper() { return { required: false, serializedName: 'AlertUserEmailSettingsResult', type: { name: 'Composite', className: 'AlertUserEmailSettingsResult', modelProperties: { requestId: { required: true, serializedName: 'request_id', type: { name: 'String' } }, eTag: { required: false, serializedName: 'eTag', type: { name: 'String' } }, enabled: { required: true, serializedName: 'enabled', type: { name: 'Boolean' } }, userId: { required: false, serializedName: 'userId', type: { name: 'String' } }, settings: { required: true, serializedName: 'settings', type: { name: 'Sequence', element: { required: false, serializedName: 'EventSettingElementType', type: { name: 'Composite', className: 'EventSetting' } } } } } } }; } } module.exports = AlertUserEmailSettingsResult;