2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.tosca.datatypes;
23 import lombok.AllArgsConstructor;
27 * TOSCA Simple Profile in YAML Version 1.3.
29 * OASIS Standard (26 February 2020).
31 * https://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.3/TOSCA-Simple-Profile-YAML-v1.3.html
35 public enum ToscaFunctions {
37 // Intrinsic functions, section 4.3 in TOSCA 1.3
39 JOIN("join"), // since 1.2
42 // Property functions, section 4.4 in TOSCA 1.3
43 GET_INPUT("get_input"),
44 GET_PROPERTY("get_property"),
46 // Attribute functions, section 4.5 in TOSCA 1.3
47 GET_ATTRIBUTE("get_attribute"),
49 // Operation functions, section 4.6 in TOSCA 1.3
50 GET_OPERATION_OUTPUT("get_operation_output"),
52 // Navigation functions, section 4.7 in TOSCA 1.3
53 GET_NODES_OF_TYPE("get_nodes_of_type"),
55 // Artifact functions, section 4.8 in TOSCA 1.3
56 GET_ARTIFACT("get_artifact"),
58 // non TOSCA-compliant function
59 GET_POLICY("get_policy");
61 private String functionName;