Backend support for custom functions
[sdc.git] / common-be / src / test / resources / toscaFunctionJsonDeserializer / customFunction.json
1 {
2   "type": "CUSTOM",
3   "name": "first_custom_function_name",
4   "parameters": [
5     {
6       "type": "STRING",
7       "value": "string1"
8     },
9     {
10       "type": "GET_ATTRIBUTE",
11       "propertyUniqueId": "36897651-f5e5-4603-8064-b60c771a3c37.descriptor_id",
12       "propertyName": "descriptor_id",
13       "propertySource": "SELF",
14       "sourceUniqueId": "36897651-f5e5-4603-8064-b60c771a3c37",
15       "sourceName": "testService",
16       "functionType": "GET_ATTRIBUTE",
17       "propertyPathFromSource": [
18         "descriptor_id"
19       ]
20     },
21     {
22       "type": "CUSTOM",
23       "name": "second_custom_function_name",
24       "parameters": [
25         {
26           "type": "CONCAT",
27           "parameters": [
28             {
29               "type": "STRING",
30               "value": "string2"
31             },
32             {
33               "type": "YAML",
34               "value": "myList: [1, two, three three]\nget_something: [SELF, something]\nstring: this is my string\n"
35             }
36           ]
37         },
38         {
39           "type": "STRING",
40           "value": "string3"
41         }
42       ]
43     }
44   ]
45 }