summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/models')
-rw-r--r--catalog-ui/src/app/models/properties-inputs/property-be-model.ts3
-rw-r--r--catalog-ui/src/app/models/sub-property-tosca-function.ts28
2 files changed, 31 insertions, 0 deletions
diff --git a/catalog-ui/src/app/models/properties-inputs/property-be-model.ts b/catalog-ui/src/app/models/properties-inputs/property-be-model.ts
index 9429036f6e..097bbb2c54 100644
--- a/catalog-ui/src/app/models/properties-inputs/property-be-model.ts
+++ b/catalog-ui/src/app/models/properties-inputs/property-be-model.ts
@@ -23,6 +23,7 @@ import {SchemaProperty, SchemaPropertyGroupModel} from '../schema-property';
import {ToscaPresentationData} from '../tosca-presentation';
import {PropertyInputDetail} from './property-input-detail';
import {Metadata} from '../metadata';
+import {SubPropertyToscaFunction} from "../sub-property-tosca-function";
import {ToscaFunction} from "../tosca-function";
import {ToscaGetFunction} from "../tosca-get-function";
import {ToscaGetFunctionTypeConverter} from "../tosca-get-function-type-converter";
@@ -74,6 +75,7 @@ export class PropertyBEModel {
*/
toscaGetFunction: ToscaGetFunctionDto;
toscaFunction: ToscaFunction;
+ subPropertyToscaFunctions: SubPropertyToscaFunction[];
constructor(property?: PropertyBEModel) {
if (property) {
@@ -114,6 +116,7 @@ export class PropertyBEModel {
toscaGetFunction1.propertyPathFromSource = property.toscaGetFunction.propertyPathFromSource;
this.toscaFunction = toscaGetFunction1;
}
+ this.subPropertyToscaFunctions = property.subPropertyToscaFunctions;
}
if (!this.schema || !this.schema.property) {
diff --git a/catalog-ui/src/app/models/sub-property-tosca-function.ts b/catalog-ui/src/app/models/sub-property-tosca-function.ts
new file mode 100644
index 0000000000..4c43a8780f
--- /dev/null
+++ b/catalog-ui/src/app/models/sub-property-tosca-function.ts
@@ -0,0 +1,28 @@
+/*
+ * -
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2022 Nordix Foundation.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+
+import {ToscaFunction} from "./tosca-function";
+
+export class SubPropertyToscaFunction {
+ toscaFunction: ToscaFunction;
+ subPropertyPath: string[];
+
+} \ No newline at end of file