Support functions in TOSCA Simple Profile in YAML
[sdc.git] / openecomp-be / lib / openecomp-tosca-lib / src / main / java / org / openecomp / sdc / tosca / datatypes / ToscaFunctions.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.tosca.datatypes;
22
23 import lombok.AllArgsConstructor;
24 import lombok.Getter;
25
26 /**
27  * TOSCA Simple Profile in YAML Version 1.3.
28  * <p>
29  * OASIS Standard (26 February 2020).
30  * <p>
31  * https://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.3/TOSCA-Simple-Profile-YAML-v1.3.html
32  */
33 @Getter
34 @AllArgsConstructor
35 public enum ToscaFunctions {
36
37     // Intrinsic functions, section 4.3 in TOSCA 1.3
38     CONCAT("concat"),
39     JOIN("join"),   //  since 1.2
40     TOKEN("token"),
41
42     // Property functions, section 4.4 in TOSCA 1.3
43     GET_INPUT("get_input"),
44     GET_PROPERTY("get_property"),
45
46     // Attribute functions, section 4.5 in TOSCA 1.3
47     GET_ATTRIBUTE("get_attribute"),
48
49     // Operation functions, section 4.6 in TOSCA 1.3
50     GET_OPERATION_OUTPUT("get_operation_output"),
51
52     // Navigation functions, section 4.7 in TOSCA 1.3
53     GET_NODES_OF_TYPE("get_nodes_of_type"),
54
55     // Artifact functions, section 4.8 in TOSCA 1.3
56     GET_ARTIFACT("get_artifact"),
57
58     // non TOSCA-compliant function
59     GET_POLICY("get_policy");
60
61     private String functionName;
62 }