X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=vid-app-common%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fvid%2Fmodel%2FVidNotions.kt;h=c6de51c1a668f5ca689fe524b92fed32feea5bc0;hb=299190fbe78defb71a717e446c0f394ea7404dfe;hp=b49af085d1d33b6500a9f6f5ab52f39f210cd3f5;hpb=2a7168b9bd968191413140e8c2afd72d6f47a26b;p=vid.git diff --git a/vid-app-common/src/main/java/org/onap/vid/model/VidNotions.kt b/vid-app-common/src/main/java/org/onap/vid/model/VidNotions.kt index b49af085d..c6de51c1a 100644 --- a/vid-app-common/src/main/java/org/onap/vid/model/VidNotions.kt +++ b/vid-app-common/src/main/java/org/onap/vid/model/VidNotions.kt @@ -1,3 +1,23 @@ +/*- + * ============LICENSE_START======================================================= + * VID + * ================================================================================ + * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * 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. + * ============LICENSE_END========================================================= + */ + package org.onap.vid.model import com.fasterxml.jackson.annotation.JsonInclude @@ -5,8 +25,11 @@ import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.annotation.JsonValue import com.google.common.base.CaseFormat -class VidNotions(@get:JsonInclude(JsonInclude.Include.NON_NULL) - val instantiationUI: InstantiationUI, val modelCategory: ModelCategory, val viewEditUI: InstantiationUI) { +data class VidNotions(@get:JsonInclude(JsonInclude.Include.NON_NULL) + val instantiationUI: InstantiationUI, + val modelCategory: ModelCategory, + val viewEditUI: InstantiationUI, + val instantiationType: InstantiationType) { enum class InstantiationUI { NETWORK_WITH_PROPERTY_NETWORK_TECHNOLOGY_EQUALS_STANDARD_SRIOV_OR_OVS, SERVICE_WITH_FABRIC_CONFIGURATION, @@ -14,7 +37,13 @@ class VidNotions(@get:JsonInclude(JsonInclude.Include.NON_NULL) SERVICE_UUID_IS_1ffce89f_ef3f_4cbb_8b37_82134590c5de, ANY_ALACARTE_NEW_UI, MACRO_SERVICE, - SERVICE_WITH_VNF_GROUPING; + SERVICE_WITH_VNF_GROUPING, + TRANSPORT_SERVICE, + SERVICE_WITH_COLLECTION_RESOURCE, + A_LA_CARTE_VNF_SERVICE_ROLE, + INFRASTRUCTURE_VPN, + ANY_ALACARTE_WHICH_NOT_EXCLUDED, + ; @JsonValue fun toLowerCamel(): String { @@ -28,7 +57,18 @@ class VidNotions(@get:JsonInclude(JsonInclude.Include.NON_NULL) IS_5G_PROVIDER_NETWORK_MODEL, @JsonProperty("5G Fabric Configuration") IS_5G_FABRIC_CONFIGURATION_MODEL, + Transport, + SERVICE_WITH_COLLECTION_RESOURCE, + INFRASTRUCTURE_VPN, + PORT_MIRRORING, + VLAN_TAGGING, @JsonProperty("other") OTHER } + + enum class InstantiationType { + Macro, + ALaCarte, + ClientConfig + } }