UNPKG

appcenter-cli

Version:

Command line tool for Visual Studio App Center

101 lines (95 loc) 2.72 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'); /** * Configuration for export to Application Insights resource with customer * linked subscription. * * @extends models['ExportConfiguration'] */ class ExportConfigurationAppInsightsLinkedSubscription extends models['ExportConfiguration'] { /** * Create a ExportConfigurationAppInsightsLinkedSubscription. * @property {string} subscriptionId Id of customer subscription linked in * App Center */ constructor() { super(); } /** * Defines the metadata of ExportConfigurationAppInsightsLinkedSubscription * * @returns {object} metadata of ExportConfigurationAppInsightsLinkedSubscription * */ mapper() { return { required: false, serializedName: 'application_insights_linked_subscription', type: { name: 'Composite', polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' }, uberParent: 'ExportConfiguration', className: 'ExportConfigurationAppInsightsLinkedSubscription', modelProperties: { exportEntities: { required: false, serializedName: 'export_entities', type: { name: 'Sequence', element: { required: false, serializedName: 'ExportEntityElementType', type: { name: 'Enum', allowedValues: [ 'crashes', 'errors', 'attachments' ] } } } }, resourceName: { required: false, serializedName: 'resource_name', type: { name: 'String' } }, resourceGroup: { required: false, serializedName: 'resource_group', type: { name: 'String' } }, type: { required: true, serializedName: 'type', isPolymorphicDiscriminator: true, type: { name: 'String' } }, subscriptionId: { required: true, serializedName: 'subscription_id', type: { name: 'String' } } } } }; } } module.exports = ExportConfigurationAppInsightsLinkedSubscription;