azure-arm-datalake-store
Version:
Microsoft Azure Data Lake Store Management Client Library for node
101 lines (95 loc) • 2.33 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');
/**
* The resource model definition.
*
* @extends models['BaseResource']
*/
class Resource extends models['BaseResource'] {
/**
* Create a Resource.
* @property {string} [id] The resource identifier.
* @property {string} [name] The resource name.
* @property {string} [type] The resource type.
* @property {string} [location] The resource location.
* @property {object} [tags] The resource tags.
*/
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,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
location: {
required: false,
readOnly: true,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
readOnly: true,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}
module.exports = Resource;