Refactor Onboarding Translator code
[sdc.git] / openecomp-be / lib / openecomp-tosca-lib / src / main / java / org / openecomp / sdc / tosca / services / ToscaConstants.java
1 /*
2  * Copyright © 2016-2018 European Support Limited
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 package org.openecomp.sdc.tosca.services;
18
19
20 public class ToscaConstants {
21
22     //TOSCA Requirement Ids
23     public static final String DEPENDS_ON_REQUIREMENT_ID = "dependency";
24     public static final String BINDING_REQUIREMENT_ID = "binding";
25     public static final String LINK_REQUIREMENT_ID = "link";
26     public static final String LOCAL_STORAGE_REQUIREMENT_ID = "local_storage";
27     public static final String NETWORK_REQUIREMENT_ID = "network";
28     public static final String PORT_REQUIREMENT_ID = "port";
29
30     //TOSCA Capability Ids
31     public static final String PORT_MIRRORING_CAPABILITY_ID = "port_mirroring";
32
33     //TOSCA Annotation Ids
34     public static final String SOURCE_ANNOTATION_ID = "source";
35
36     //General
37     public static final String TOSCA_DEFINITIONS_VERSION = "tosca_simple_yaml_1_0_0";
38     public static final String MODELABLE_ENTITY_NAME_SELF = "SELF";
39     public static final String NODE_TEMPLATE_DIRECTIVE_SUBSTITUTABLE = "substitutable";
40     public static final String UNBOUNDED = "UNBOUNDED";
41     public static final String ST_METADATA_TEMPLATE_NAME = "template_name";
42     //properties
43     public static final String SERVICE_TEMPLATE_FILTER_PROPERTY_NAME = "service_template_filter";
44     public static final String SUBSTITUTE_SERVICE_TEMPLATE_PROPERTY_NAME = "substitute_service_template";
45     public static final String SERVICE_TEMPLATE_FILTER_COUNT = "service_template_filter_count";
46     public static final String COUNT_PROPERTY_NAME = "count";
47     public static final String INDEX_VALUE_PROPERTY_NAME = "index_value";
48     public static final String SCALING_ENABLED_PROPERTY_NAME = "scaling_enabled";
49     public static final String DHCP_ENABLED_PROPERTY_NAME = "dhcp_enabled";
50     public static final String PORT_FIXED_IPS = "fixed_ips";
51     public static final String PORT_ALLOWED_ADDRESS_PAIRS = "allowed_address_pairs";
52     public static final String PORT_NETWORK_ROLE_PROPERTY_NAME = "network_role";
53     public static final String PORT_MIRRORING_CAPABILITY_CP_PROPERTY_NAME = "connection_point";
54     public static final String MAC_ADDRESS = "mac_address";
55     public static final String COMPUTE_IMAGE = "image";
56     public static final String COMPUTE_FLAVOR = "flavor";
57     public static final String SOURCE_TYPE_PROPERTY_NAME = "source_type";
58     public static final String VF_MODULE_LABEL_PROPERTY_NAME = "vf_module_label";
59     public static final String PARAM_NAME_PROPERTY_NAME = "param_name";
60     public static final String INSTANCE_UUID_PROPERTY_NAME = "instance_uuid";
61     public static final String VOL_ID_PROPERTY_NAME = "volume_id";
62     // properties valid values
63     public static final String HEAT_SOURCE_TYPE = "HEAT";
64     public static final String CONTRAIL_SERVICE_INSTANCE_IND = "contrail_service_instance_ind";
65     static final String ST_METADATA_FILE_NAME = "filename";
66     public static final String MANDATORY_PROPERTY_NAME = "mandatory";
67
68     private ToscaConstants() {
69         //Hiding the implicit public constructor
70     }
71
72 }