summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/interfaceOperation.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/models/interfaceOperation.ts')
-rw-r--r--catalog-ui/src/app/models/interfaceOperation.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/catalog-ui/src/app/models/interfaceOperation.ts b/catalog-ui/src/app/models/interfaceOperation.ts
index 98a60405c2..14715b77a7 100644
--- a/catalog-ui/src/app/models/interfaceOperation.ts
+++ b/catalog-ui/src/app/models/interfaceOperation.ts
@@ -22,6 +22,7 @@
import {ArtifactModel} from "./artifacts";
import {SchemaPropertyGroupModel} from "./schema-property";
import {PROPERTY_DATA, PROPERTY_TYPES} from "../utils/constants";
+import {ToscaFunction} from "./tosca-function";
export class InputOperationParameter {
name: string;
@@ -30,6 +31,8 @@ export class InputOperationParameter {
inputId: string;
toscaDefaultValue?: string;
value?: any;
+ toscaFunction?: ToscaFunction;
+ valid:boolean= true;
constructor(param?: any) {
if (param) {
@@ -39,6 +42,8 @@ export class InputOperationParameter {
this.inputId = param.inputId;
this.toscaDefaultValue = param.toscaDefaultValue;
this.value = param.value;
+ this.toscaFunction = param.toscaFunction;
+ this.valid = param.valid;
}
}
@@ -62,6 +67,10 @@ export class InputOperationParameter {
private isTypeNotSimple() {
return PROPERTY_DATA.SIMPLE_TYPES.indexOf(this.type) == -1;
}
+
+ public isToscaFunction(): boolean {
+ return this.toscaFunction != null;
+ }
}
export class PropertyOperationParameter {