summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2022-09-09 15:25:52 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2022-11-04 14:20:07 +0000
commit0fd600655b7dd0079ee247b6fab0b4b678f13c05 (patch)
tree94dfbb6cd8ba696a37f5199ed1eedb6a449c2305 /catalog-ui/src/app/models
parent5b132d205f1a87889b6e52140e45e8afba1d5692 (diff)
Support Tosca Function For Operation Implmentation Properties
Issue-ID: SDC-4170 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: Ie90626e11885e522fba91e7604c0ed15cc0c7d3a
Diffstat (limited to 'catalog-ui/src/app/models')
-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 {