1 package org.onap.vid.model.aaiTree
3 open class InstanceGroup(aaiNode: AAITreeNode) : Node(aaiNode) {
4 var instanceGroupRole: String? = null
5 var instanceGroupFunction: String? = null
8 val INSTANCE_GROUP_TYPE = "instance-group-type"
9 val INSTANCE_GROUP_ROLE = "instance-group-role"
10 val INSTANCE_GROUP_FUNCTION = "instance-group-function"
12 if (aaiNode.additionalProperties[INSTANCE_GROUP_TYPE] != null) {
13 instanceType = aaiNode.additionalProperties[INSTANCE_GROUP_TYPE].toString()
15 if (aaiNode.additionalProperties[INSTANCE_GROUP_FUNCTION] != null) {
16 instanceGroupFunction = aaiNode.additionalProperties[INSTANCE_GROUP_FUNCTION].toString()
18 if (aaiNode.additionalProperties[INSTANCE_GROUP_ROLE] != null) {
19 instanceGroupRole = aaiNode.additionalProperties[INSTANCE_GROUP_ROLE].toString()