Fix for radio buttons
[sdc.git] / asdc-tests / src / test / resources / CI / components / normativeTypes / root / normative-types-root.yml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0_wd03
2
3 template_name: tosca-normative-types-root
4 template_author: TOSCA TC
5 template_version: 1.0.0.wd03-SNAPSHOT
6
7 description: Contains the normative types definition.
8
9 node_types:
10   tosca.nodes.Root:
11     abstract: true
12     description: >
13       This is the default (root) TOSCA Node Type that all other TOSCA nodes should extends.
14       This allows all TOSCA nodes to have a consistent set of features for modeling and management
15       (e.g, consistent definitions for requirements, capabilities, and lifecycle interfaces).
16     tags:
17       icon: /images/root.png
18     attributes:
19       tosca_id:
20         type: string
21       tosca_name:
22         type: string
23     requirements:
24       dependency:
25         type: tosca.capabilities.Root
26         lower_bound: 0
27         upper_bound: unbounded
28     capabilities:
29       root:
30         type: tosca.capabilities.Root
31     interfaces:
32       tosca.interfaces.node.lifecycle.Standard:
33         description: >
34           This lifecycle interface defines the essential, normative operations that TOSCA nodes may support.
35         create:
36           description: Standard lifecycle create operation.
37         configure:
38           description: Standard lifecycle configure operation (pre-start).
39         start:
40           description: Standard lifecycle start operation.
41         post_start:
42           description: Standard lifecycle post-configure operation (post-start)
43         stop:
44           description: Standard lifecycle stop operation.
45         delete:
46           description: Standard lifecycle delete operation.
47
48
49 capability_types:
50   tosca.capabilities.Root:
51     description: This is the default (root) TOSCA Capability Type definition that all other TOSCA Capability Types derive from.
52   tosca.capabilities.Container:
53     derived_from: tosca.capabilities.Root
54     properties:
55       valid_node_types:
56         type: string
57         required: true
58     description: >
59       A list of one or more names of Node Types that are supported as  containees that declare the Container type as a Capability.
60   tosca.capabilities.Endpoint:
61     derived_from: tosca.capabilities.Root
62     properties:
63       protocol:
64         type: string
65         default: tcp
66       port:
67         type: integer
68         required: false
69         constraints:
70          - greater_or_equal: 1
71          - less_or_equal: 65535
72       secure:
73         type: boolean
74         default: false
75       url_path:
76         type: string
77         required: false
78   tosca.capabilities.DatabaseEndpoint:
79     derived_from: tosca.capabilities.Endpoint
80     description: This is the default TOSCA type that should be used or extended to define a specialized database endpoint capability.
81   tosca.capabilities.Attachment:
82     derived_from: tosca.capabilities.Root
83     description: This is the default TOSCA type that should be used or extended to define a network endpoint capability.
84   tosca.capabilities.Scalable:
85     derived_from: tosca.capabilities.Root
86     properties:
87       min_intances:
88         type: integer
89         default: 1
90       max_intances:
91         type: integer
92         default: 1
93       default_instances:
94         type: integer
95         default: 1
96   tosca.capabilities.Connectivity:
97     derived_from: tosca.capabilities.Root
98
99 relationship_types:
100   tosca.relationships.Root:
101     abstract: true
102     description: This is the default (root) TOSCA Relationship Type definition that all other TOSCA Relationship Types derive from.
103     valid_targets: [ tosca.capabilities.Root ]
104     attributes:
105       tosca_id:
106         type: string
107       tosca_name:
108         type: string
109     interfaces:
110       tosca.interfaces.relationship.Configure:
111         description: >
112           The lifecycle interfaces define the essential, normative operations that each TOSCA Relationship Types may support.
113         pre_configure_source:
114           description: Operation to pre-configure the source endpoint.
115         pre_configure_target:
116           description: Operation to pre-configure the target endpoint.
117         post_configure_source:
118           description: Operation to post-configure the source endpoint.
119         post_configure_target:
120           description: Operation to post-configure the target endpoint.
121         add_target:
122           description: Operation to notify the source node of a target node being added via a relationship.
123         add_source:
124           description: Operation to notify the target node of a source node which is now  available via a relationship.
125         remove_target:
126           description: Operation to notify the source node of a target node being removed from a relationship.
127         remove_source:
128           description: Operation to notify the target node of a source node being removed from a relationship.
129         target_changed:
130           description: Operation to notify source some property or attribute of the target.
131         source_changed:
132           description: Operation to notify target some property or attribute of the source.
133   tosca.relationships.DependsOn:
134     derived_from: tosca.relationships.Root
135     description: >
136       A generic depends on relationship.
137   tosca.relationships.HostedOn:
138     derived_from: tosca.relationships.DependsOn
139     description: Relationship to use to describe that the source is hosted (installed/ deployed) on the target node.
140     valid_targets: [ tosca.capabilities.Container ]
141   tosca.relationships.ConnectsTo:
142     derived_from: tosca.relationships.DependsOn
143     valid_targets: [ tosca.capabilities.Endpoint ]
144   tosca.relationships.AttachTo:
145     derived_from: tosca.relationships.Root
146     valid_targets: [ tosca.capabilities.Attachment ]
147     properties:
148       location:
149         type: string
150         constraints:
151           - min_length: 1
152       device:
153         type: string
154         required: false
155   tosca.relationships.Network:
156     derived_from: tosca.relationships.Root
157     valid_sources: [ tosca.capabilities.Connectivity ]
158     valid_targets: [ tosca.capabilities.Connectivity ]
159
160 artifact_types:
161   tosca.artifacts.Root:
162     description: The TOSCA Artifact Type all other TOSCA Artifact Types derive from.
163   tosca.artifacts.File:
164     derived_from: tosca.artifacts.Root
165     description: This artifact type is used when an artifact definition needs to have its associated file simply treated as a file and no special handling/handlers are invoked.
166   tosca.artifacts.ShellScript:
167     description: A shell script (.sh file)
168     file_ext: [ sh ]