2 * Copyright © 2016-2018 European Support Limited
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.openecomp.sdc.translator.services.heattotosca;
19 public class Constants {
21 //Service Template - Template Names
22 public static final String GLOBAL_SUBSTITUTION_TYPES_TEMPLATE_NAME = "GlobalSubstitutionTypes";
23 public static final String MAIN_TEMPLATE_NAME = "Main";
25 public static final String MAX_INSTANCES_PROPERTY_NAME = "max_instances";
26 public static final String DESCRIPTION_PROPERTY_NAME = "description";
27 public static final String NAME_PROPERTY_NAME = "name";
28 public static final String SECURITY_GROUPS_PROPERTY_NAME = "security_groups";
29 public static final String PORT_PROPERTY_NAME = "port";
30 static final String VFC_PARENT_PORT_ROLE = "vfc_parent_port_role";
31 static final String SUB_INTERFACE_ROLE = "subinterface_role";
33 public static final String PROP = "properties";
34 public static final String ATTR = "attributes";
35 public static final String SERVICE_INSTANCE_PORT_PREFIX = "port_";
36 public static final String SERVICE_INSTANCE_LINK_PREFIX = "link_";
37 static final String GROUP = "group";
39 static final String COMPUTE_IDENTICAL_VALUE_PROPERTY_PREFIX = "vm_";
40 static final String COMPUTE_IDENTICAL_VALUE_PROPERTY_SUFFIX = "_name";
41 static final String PORT_IDENTICAL_VALUE_PROPERTY_PREFIX = "port_";
42 static final String SUB_INTERFACE_PROPERTY_VALUE_PREFIX = "subinterface_";
43 public static final String ABSTRACT_NODE_TEMPLATE_ID_PREFIX = "abstract_";
44 //GlobalTypesServiceTemplates
45 public static final String INVALID_ONBOARDING_TYPE = "Invalid Onboarding Type";
46 public static final String GLOBAL_TYPES_READ_ERROR = "GlobalTypes Read Error";
47 public static final String FAILED_TO_GENERATE_GLOBAL_TYPES = "Failed to generate globalTypes";
48 public static final String OPENECOMP_INVENTORY = "openecomp-inventory";
49 public static final String GLOBAL_TYPES = "globalTypes";