'use strict';
+import {ArtifactModel} from "./artifacts";
+
export class InputOperationParameter {
name: string;
type: string;
}
}
+export class PropertyOperationParameter {
+ name: string;
+ type: string;
+ value?: string;
+ propertyId: string;
+
+ constructor(param?: any) {
+ if (param) {
+ this.name = param.name;
+ this.type = param.type;
+ this.value = param.value;
+ this.propertyId = param.propertyId;
+ }
+ }
+}
+
export interface IOperationParamsList {
listToscaDataDefinition: Array<InputOperationParameter>;
}
description: string;
uniqueId: string;
inputs: IOperationParamsList;
- implementation?: InterfaceOperationImplementation;
+ implementation: ArtifactModel;
constructor(operation?: any) {
if (operation) {
operationType: string;
description: string;
uniqueId: string;
- implementation?: InterfaceOperationImplementation;
inputParams: IOperationParamsList;
+ implementation: ArtifactModel;
constructor(operation?: any) {
super(operation);
this.operationType = operation.operationType;
this.uniqueId = operation.uniqueId;
this.inputParams = operation.inputParams;
+ this.implementation = operation.implementation;
}
}
}
}
-export class InterfaceOperationImplementation {
- artifactName: string;
-}
-
export class ComponentInstanceInterfaceModel {
type: string;
uniqueId: string;