@azure-tools/codemodel-v3
Version:
AutoRest code model library
29 lines • 1.41 kB
JavaScript
;
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Model = void 0;
const command_operation_1 = require("./command-operation");
const extensions_1 = require("./extensions");
const http_operation_1 = require("./http-operation");
const info_1 = require("./info");
const linq_1 = require("@azure-tools/linq");
const uid_1 = require("./uid");
class Model extends extensions_1.Extensions {
constructor(title, version, initializer) {
super();
this.schemas = new linq_1.Dictionary();
this.servers = new Array();
this.security = new Array();
this.tags = new Array();
this.http = new http_operation_1.HttpComponents();
this.commands = new command_operation_1.CommandComponents();
this.details = { default: { uid: `model:${uid_1.uid()}`, name: title, description: '' } };
this.info = new info_1.Info(title, version, initializer ? initializer.info : {});
this.apply(initializer);
}
}
exports.Model = Model;
//# sourceMappingURL=code-model.js.map