cdea2ff69c123642710a023be916e91aaea87fdf
[sdc.git] /
1 package org.openecomp.sdc.ci.tests.tosca.model;
2
3 public class ToscaMetadataFieldsPresentationEnum {
4
5         public enum ToscaMetadataFieldsEnum {
6 //              general
7                 INVARIANT_UUID                         ("invariantUUID",                    ComponentTypeEnum.RESOURCE_SERVICE_NODE_TEMPLATE.value), 
8                 UUID                                   ("UUID",                             ComponentTypeEnum.RESOURCE_SERVICE_NODE_TEMPLATE.value), 
9                 NAME                                   ("name",                             ComponentTypeEnum.RESOURCE_SERVICE_NODE_TEMPLATE.value),
10                 DESCRIPTION                            ("description",                      ComponentTypeEnum.RESOURCE_SERVICE_NODE_TEMPLATE.value), 
11                 CATEGORY                               ("category",                         ComponentTypeEnum.RESOURCE_SERVICE_NODE_TEMPLATE.value),
12                 TYPE                                   ("type",                             ComponentTypeEnum.RESOURCE_SERVICE_NODE_TEMPLATE.value),
13         
14 //              resource
15                 SUBCATEGORY                            ("subcategory",                      ComponentTypeEnum.RESOURCE_NODE_TEMPLATE.value), 
16                 RESOURCE_VENDOR_NAME                   ("resourceVendor",                   ComponentTypeEnum.RESOURCE_NODE_TEMPLATE.value), 
17                 RESOURCE_VENDOR_RELEASE                ("resourceVendorRelease",            ComponentTypeEnum.RESOURCE_NODE_TEMPLATE.value),
18                 RESOURCE_VENDOR_MODEL_NUMBER           ("resourceVendorModelNumber",        ComponentTypeEnum.RESOURCE_NODE_TEMPLATE.value),
19                 
20 //              service
21                 SERVICE_TYPE                           ("serviceType",                      ComponentTypeEnum.SERVICE.value), 
22                 SERVICE_ROLE                           ("serviceRole",                      ComponentTypeEnum.SERVICE.value), 
23                 SERVICE_ECOMP_NAMING                   ("serviceEcompNaming",               ComponentTypeEnum.SERVICE.value),
24                 ECOMP_GENERATED_NAMING                 ("ecompGeneratedNaming",             ComponentTypeEnum.SERVICE.value),
25                 NAMING_POLICY                          ("namingPolicy",                     ComponentTypeEnum.SERVICE.value),
26                 
27 //              node_template
28                 CUSTOMIZATION_UUID                     ("customizationUUID",                ComponentTypeEnum.NODE_TEMPLATE.value), 
29                 VERSION                                ("version",                          ComponentTypeEnum.RESOURCE_GROUP_NODE_TEMPLATE.value), 
30                 
31 //              service group:
32                 VF_MODULE_MODEL_NAME                   ("vfModuleModelName",                ComponentTypeEnum.RESOURCE_GROUP_SERVICE_GROUP.value), 
33                 VF_MODULE_MODEL_INVARIANT_UUID         ("vfModuleModelInvariantUUID",       ComponentTypeEnum.RESOURCE_GROUP_SERVICE_GROUP.value), 
34                 VF_MODULE_MODEL_UUID                   ("vfModuleModelUUID",                ComponentTypeEnum.RESOURCE_GROUP_SERVICE_GROUP.value),
35                 VF_MODULE_MODEL_VERSION                ("vfModuleModelVersion",             ComponentTypeEnum.RESOURCE_GROUP_SERVICE_GROUP.value),
36                 
37                 VF_MODULE_MODEL_CUSTOMIZATION_UUID     ("vfModuleModelCustomizationUUID",   ComponentTypeEnum.SERVICE_GROUP.value)
38                 ;
39                 
40                 
41                 
42                 public String value;
43                 public String componentTypes;
44         
45                 private ToscaMetadataFieldsEnum(String value, String componentTypes) {
46                         this.value = value;
47                         this.componentTypes = componentTypes;
48                 }
49                 
50         }
51         
52
53         public enum ComponentTypeEnum {
54 //              RESOURCE_SERVICE_NODE_TEMPLATE_RESOURCE_GROUP("resource, service, nodeTemplate, resourceGroup"), 
55                 RESOURCE_SERVICE_NODE_TEMPLATE("resource, service, nodeTemplate"),
56                 RESOURCE_NODE_TEMPLATE("resource, nodeTemplate"),
57                 SERVICE("service"),
58                 NODE_TEMPLATE("nodeTemplate"),
59                 RESOURCE_GROUP_NODE_TEMPLATE("resourceGroup, nodeTemplate"),
60                 SERVICE_GROUP("serviceGroup"),
61                 RESOURCE_GROUP_SERVICE_GROUP("resourceGroup, serviceGroup"),
62                 
63         ;
64         
65                 private String value;
66
67                 private ComponentTypeEnum(String value) {
68                         this.value = value;
69                 }
70                 
71         }
72         
73         
74 }