3 export class OperationParameter {
9 constructor(param?: OperationParameter) {
11 this.name = param.name;
12 this.type = param.type;
13 this.property = param.property;
14 this.mandatory = param.mandatory;
19 export interface IOperationParamsList {
20 listToscaDataDefinition: Array<OperationParameter>;
23 export class OperationModel {
24 operationType: string;
28 inputParams: IOperationParamsList;
29 outputParams: IOperationParamsList;
32 workflowVersionId: string;
34 protected OperationTypeEnum: Array<String> = [
42 constructor(operation?: any) {
44 this.description = operation.description;
45 this.inputParams = operation.inputParams;
46 this.operationType = operation.operationType;
47 this.outputParams = operation.outputParams;
48 this.uniqueId = operation.uniqueId;
49 this.workflowId = operation.workflowId;
50 this.workflowVersionId = operation.workflowVersionId;
54 public createInputParamsList(inputParams: Array<OperationParameter>): void {
56 listToscaDataDefinition: inputParams
60 public createOutputParamsList(outputParams: Array<OperationParameter>): void {
62 listToscaDataDefinition: outputParams
67 export interface CreateOperationResponse extends OperationModel {