Added oparent to sdc main
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / tosca / model / ToscaMetadataFieldsPresentationEnum.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.ci.tests.tosca.model;
22
23 public class ToscaMetadataFieldsPresentationEnum {
24
25         public enum ToscaMetadataFieldsEnum {
26 //              general
27                 INVARIANT_UUID                         ("invariantUUID",                    ComponentTypeEnum.RESOURCE_SERVICE_NODE_TEMPLATE.value), 
28                 UUID                                   ("UUID",                             ComponentTypeEnum.RESOURCE_SERVICE_NODE_TEMPLATE.value), 
29                 NAME                                   ("name",                             ComponentTypeEnum.RESOURCE_SERVICE_NODE_TEMPLATE.value),
30                 DESCRIPTION                            ("description",                      ComponentTypeEnum.RESOURCE_SERVICE_NODE_TEMPLATE.value), 
31                 CATEGORY                               ("category",                         ComponentTypeEnum.RESOURCE_SERVICE_NODE_TEMPLATE.value),
32                 TYPE                                   ("type",                             ComponentTypeEnum.RESOURCE_SERVICE_NODE_TEMPLATE.value),
33         
34 //              resource
35                 SUBCATEGORY                            ("subcategory",                      ComponentTypeEnum.RESOURCE_NODE_TEMPLATE.value), 
36                 RESOURCE_VENDOR_NAME                   ("resourceVendor",                   ComponentTypeEnum.RESOURCE_NODE_TEMPLATE.value), 
37                 RESOURCE_VENDOR_RELEASE                ("resourceVendorRelease",            ComponentTypeEnum.RESOURCE_NODE_TEMPLATE.value),
38                 RESOURCE_VENDOR_MODEL_NUMBER           ("resourceVendorModelNumber",        ComponentTypeEnum.RESOURCE_NODE_TEMPLATE.value),
39                 
40 //              service
41                 SERVICE_TYPE                           ("serviceType",                      ComponentTypeEnum.SERVICE.value), 
42                 SERVICE_ROLE                           ("serviceRole",                      ComponentTypeEnum.SERVICE.value), 
43                 SERVICE_ECOMP_NAMING                   ("serviceEcompNaming",               ComponentTypeEnum.SERVICE.value),
44                 ECOMP_GENERATED_NAMING                 ("ecompGeneratedNaming",             ComponentTypeEnum.SERVICE.value),
45                 NAMING_POLICY                          ("namingPolicy",                     ComponentTypeEnum.SERVICE.value),
46                 INSTANTIATION_TYPE                     ("instantiationType",                ComponentTypeEnum.SERVICE.value),
47                 
48 //              node_template
49                 CUSTOMIZATION_UUID                     ("customizationUUID",                ComponentTypeEnum.NODE_TEMPLATE.value), 
50                 VERSION                                ("version",                          ComponentTypeEnum.RESOURCE_GROUP_NODE_TEMPLATE.value), 
51                 
52 //              service group:
53                 VF_MODULE_MODEL_NAME                   ("vfModuleModelName",                ComponentTypeEnum.RESOURCE_GROUP_SERVICE_GROUP.value), 
54                 VF_MODULE_MODEL_INVARIANT_UUID         ("vfModuleModelInvariantUUID",       ComponentTypeEnum.RESOURCE_GROUP_SERVICE_GROUP.value), 
55                 VF_MODULE_MODEL_UUID                   ("vfModuleModelUUID",                ComponentTypeEnum.RESOURCE_GROUP_SERVICE_GROUP.value),
56                 VF_MODULE_MODEL_VERSION                ("vfModuleModelVersion",             ComponentTypeEnum.RESOURCE_GROUP_SERVICE_GROUP.value),
57                 
58                 VF_MODULE_MODEL_CUSTOMIZATION_UUID     ("vfModuleModelCustomizationUUID",   ComponentTypeEnum.SERVICE_GROUP.value)
59                 ;
60                 
61                 
62                 
63                 public String value;
64                 public String componentTypes;
65         
66                 private ToscaMetadataFieldsEnum(String value, String componentTypes) {
67                         this.value = value;
68                         this.componentTypes = componentTypes;
69                 }
70                 
71         }
72         
73
74         public enum ComponentTypeEnum {
75 //              RESOURCE_SERVICE_NODE_TEMPLATE_RESOURCE_GROUP("resource, service, nodeTemplate, resourceGroup"), 
76                 RESOURCE_SERVICE_NODE_TEMPLATE("resource, service, nodeTemplate"),
77                 RESOURCE_NODE_TEMPLATE("resource, nodeTemplate"),
78                 SERVICE("service"),
79                 NODE_TEMPLATE("nodeTemplate"),
80                 RESOURCE_GROUP_NODE_TEMPLATE("resourceGroup, nodeTemplate"),
81                 SERVICE_GROUP("serviceGroup"),
82                 RESOURCE_GROUP_SERVICE_GROUP("resourceGroup, serviceGroup"),
83                 
84         ;
85         
86                 private String value;
87
88                 private ComponentTypeEnum(String value) {
89                         this.value = value;
90                 }
91                 
92         }
93         
94         
95 }