1 package org.openecomp.sdc.ci.tests.tosca.model;
3 public class ToscaMetadataFieldsPresentationEnum {
5 public enum ToscaMetadataFieldsEnum {
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),
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),
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),
29 CUSTOMIZATION_UUID ("customizationUUID", ComponentTypeEnum.NODE_TEMPLATE.value),
30 VERSION ("version", ComponentTypeEnum.RESOURCE_GROUP_NODE_TEMPLATE.value),
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),
38 VF_MODULE_MODEL_CUSTOMIZATION_UUID ("vfModuleModelCustomizationUUID", ComponentTypeEnum.SERVICE_GROUP.value)
44 public String componentTypes;
46 private ToscaMetadataFieldsEnum(String value, String componentTypes) {
48 this.componentTypes = componentTypes;
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"),
59 NODE_TEMPLATE("nodeTemplate"),
60 RESOURCE_GROUP_NODE_TEMPLATE("resourceGroup, nodeTemplate"),
61 SERVICE_GROUP("serviceGroup"),
62 RESOURCE_GROUP_SERVICE_GROUP("resourceGroup, serviceGroup"),
68 private ComponentTypeEnum(String value) {