From 0fd600655b7dd0079ee247b6fab0b4b678f13c05 Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Fri, 9 Sep 2022 15:25:52 +0100 Subject: Support Tosca Function For Operation Implmentation Properties Issue-ID: SDC-4170 Signed-off-by: JvD_Ericsson Change-Id: Ie90626e11885e522fba91e7604c0ed15cc0c7d3a --- catalog-ui/src/app/models/interfaceOperation.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'catalog-ui/src/app/models') 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 { -- cgit 1.2.3-korg