azure-arm-timeseriesinsights
Version:
TimeSeriesInsightsClient Library with typescript type definitions for node
110 lines (104 loc) • 2.69 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');
/**
* An environment receives data from one or more event sources. Each event
* source has associated connection info that allows the Time Series Insights
* ingress pipeline to connect to and pull data from the event source
*
* @extends models['TrackedResource']
*/
class EventSourceResource extends models['TrackedResource'] {
/**
* Create a EventSourceResource.
* @member {string} kind Polymorphic Discriminator
*/
constructor() {
super();
}
/**
* Defines the metadata of EventSourceResource
*
* @returns {object} metadata of EventSourceResource
*
*/
mapper() {
return {
required: false,
serializedName: 'EventSourceResource',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'kind',
clientName: 'kind'
},
uberParent: 'BaseResource',
className: 'EventSourceResource',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
location: {
required: true,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
kind: {
required: true,
serializedName: 'kind',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = EventSourceResource;