azure-arm-insights
Version:
Microsoft Azure Insights Management Client Library for node
102 lines (96 loc) • 2.23 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');
/**
* @class
* Initializes a new instance of the Resource class.
* @constructor
* An azure resource object
*
* @member {string} [id] Azure resource Id
*
* @member {string} [name] Azure resource name
*
* @member {string} [type] Azure resource type
*
* @member {string} location Resource location
*
* @member {object} [tags] Resource tags
*
*/
class Resource extends models['BaseResource'] {
constructor() {
super();
}
/**
* Defines the metadata of Resource
*
* @returns {object} metadata of Resource
*
*/
mapper() {
return {
required: false,
serializedName: 'Resource',
type: {
name: 'Composite',
className: 'Resource',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
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'
}
}
}
}
}
}
};
}
}
module.exports = Resource;