rApp - Hello World SME Invoker
[nonrtric/plt/rappmanager.git] / sample-rapp-generator / rapp-hello-world-sme-invoker / Definitions / asd_types.yaml
1 #  ============LICENSE_START=======================================================\r
2 #  Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.\r
3 #  ================================================================================\r
4 #  Licensed under the Apache License, Version 2.0 (the "License");\r
5 #  you may not use this file except in compliance with the License.\r
6 #  You may obtain a copy of the License at\r
7 #\r
8 #        http://www.apache.org/licenses/LICENSE-2.0\r
9 #\r
10 #  Unless required by applicable law or agreed to in writing, software\r
11 #  distributed under the License is distributed on an "AS IS" BASIS,\r
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13 #  See the License for the specific language governing permissions and\r
14 #  limitations under the License.\r
15 #\r
16 #  SPDX-License-Identifier: Apache-2.0\r
17 #  ============LICENSE_END=========================================================\r
18 \r
19 tosca_definitions_version: tosca_simple_yaml_1_2\r
20 description: ASD types definitions version 0.1\r
21 node_types:\r
22   tosca.nodes.asd:\r
23     derived_from: tosca.nodes.Root\r
24     description: "The ASD node type"\r
25     version: 0.1\r
26     properties:\r
27       descriptor_id:\r
28         type: string # UUID\r
29         required: true\r
30         description: Identifier of this ASD. It is in UUID format as specified in RFC 4122\r
31       descriptor_invariant_id:\r
32         type: string # UUID\r
33         required: true\r
34         description: >\r
35           Identifier of this descriptor in a version independent manner. This attribute\r
36           is invariant across versions of ASD. It is in UUID format as specified in RFC 4122\r
37       descriptor_version:\r
38         type: string\r
39         required: true\r
40         description: Identifies the version of the ASD.\r
41       schema_version:\r
42         type: string\r
43         required: true\r
44         description: Identifies the Identifies the version of this ASD’s schema.\r
45       function_description:\r
46         type: string\r
47         required: false\r
48         description: Description of the application service described by this ASD.\r
49       provider:\r
50         type: string\r
51         required: true\r
52         description: Identifies the provider of the ASD.\r
53       application_name:\r
54         type: string\r
55         required: true\r
56         description: Name to identify the application service described by this ASD\r
57       application_version:\r
58         type: string\r
59         required: true\r
60         description: Identifies the version of the application service described by this ASD.\r
61 \r
62 artifact_types:\r
63 tosca.artifacts.asd.deploymentItem:\r
64   version: 0.1\r
65   derived_from: tosca.artifacts.Root\r
66   description: "Describes the artifact type of asd deployment item"\r
67   file: "Relative path of the artifact in the package"\r
68   properties:\r
69     item_id:\r
70       description: "The identifier of this asd deployment item"\r
71       required: true\r
72       type: string\r
73     artifact_type:\r
74       description: >\r
75         Specify artifact type.\r
76       required: true\r
77       type: string\r
78       constraints:\r
79         - valid_values: ["helm_chart"]\r
80     target_server:\r
81       description: >\r
82         Specify target server for artifact.\r
83       required: true\r
84       type: string\r
85       constraints:\r
86         - valid_values: [ "chartmuseum" ]\r
87     target_server_uri:\r
88       description: "URI of the target server"\r
89       required: true\r
90       type: string