re base code
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / tosca / model / ToscaMetadataFieldsPresentationEnum.java
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                 INSTANTIATION_TYPE                     ("instantiationType",                ComponentTypeEnum.SERVICE.value),
27                 
28 //              node_template
29                 CUSTOMIZATION_UUID                     ("customizationUUID",                ComponentTypeEnum.NODE_TEMPLATE.value), 
30                 VERSION                                ("version",                          ComponentTypeEnum.RESOURCE_GROUP_NODE_TEMPLATE.value), 
31                 
32 //              service group:
33                 VF_MODULE_MODEL_NAME                   ("vfModuleModelName",                ComponentTypeEnum.RESOURCE_GROUP_SERVICE_GROUP.value), 
34                 VF_MODULE_MODEL_INVARIANT_UUID         ("vfModuleModelInvariantUUID",       ComponentTypeEnum.RESOURCE_GROUP_SERVICE_GROUP.value), 
35                 VF_MODULE_MODEL_UUID                   ("vfModuleModelUUID",                ComponentTypeEnum.RESOURCE_GROUP_SERVICE_GROUP.value),
36                 VF_MODULE_MODEL_VERSION                ("vfModuleModelVersion",             ComponentTypeEnum.RESOURCE_GROUP_SERVICE_GROUP.value),
37                 
38                 VF_MODULE_MODEL_CUSTOMIZATION_UUID     ("vfModuleModelCustomizationUUID",   ComponentTypeEnum.SERVICE_GROUP.value)
39                 ;
40                 
41                 
42                 
43                 public String value;
44                 public String componentTypes;
45         
46                 private ToscaMetadataFieldsEnum(String value, String componentTypes) {
47                         this.value = value;
48                         this.componentTypes = componentTypes;
49                 }
50                 
51         }
52         
53
54         public enum ComponentTypeEnum {
55 //              RESOURCE_SERVICE_NODE_TEMPLATE_RESOURCE_GROUP("resource, service, nodeTemplate, resourceGroup"), 
56                 RESOURCE_SERVICE_NODE_TEMPLATE("resource, service, nodeTemplate"),
57                 RESOURCE_NODE_TEMPLATE("resource, nodeTemplate"),
58                 SERVICE("service"),
59                 NODE_TEMPLATE("nodeTemplate"),
60                 RESOURCE_GROUP_NODE_TEMPLATE("resourceGroup, nodeTemplate"),
61                 SERVICE_GROUP("serviceGroup"),
62                 RESOURCE_GROUP_SERVICE_GROUP("resourceGroup, serviceGroup"),
63                 
64         ;
65         
66                 private String value;
67
68                 private ComponentTypeEnum(String value) {
69                         this.value = value;
70                 }
71                 
72         }
73         
74         
75 }