@microsoft.azure/autorest.incubator
Version:
AutoRest incubator project
15 lines • 817 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const interface_property_1 = require("../../../csharp/code-dom/interface-property");
const access_modifier_1 = require("../../../csharp/code-dom/access-modifier");
class ModelInterfaceProperty extends interface_property_1.InterfaceProperty {
constructor(parent, property, state, objectInitializer) {
super(property.details.csharp.name, state.project.modelsNamespace.resolveTypeDeclaration(property.schema, property.details.csharp.required, state.path('schema')));
if (property.schema.readOnly) {
this.setAccess = access_modifier_1.Access.Internal;
}
this.apply(objectInitializer);
}
}
exports.ModelInterfaceProperty = ModelInterfaceProperty;
//# sourceMappingURL=interface-property.js.map