Catalog alignment
[sdc.git] / catalog-be / src / test / resources / yamlValidation / testDir / test.yml
1 tosca.capabilities.Root: 
2   description: The TOSCA root Capability Type all other TOSCA base Capability Types derive from
3 tosca.capabilities.Attachment:
4   derived_from: tosca.capabilities.Root
5 tosca.capabilities.Node:
6   derived_from: tosca.capabilities.Root
7 tosca.capabilities.Container:
8   derived_from: tosca.capabilities.Root
9   properties:
10     num_cpus: 
11       type: integer
12       required: false
13       constraints:
14         - greater_or_equal: 1
15     cpu_frequency:
16       type: scalar-unit.frequency
17       required: false
18       constraints:
19         - greater_or_equal: 0.1 GHz
20     disk_size: 
21       type: scalar-unit.size
22       required: false
23       constraints:
24         - greater_or_equal: 0 MB
25     mem_size: 
26       type: scalar-unit.size
27       required: false
28       constraints:
29         - greater_or_equal: 0 MB
30 tosca.capabilities.Endpoint:
31   derived_from: tosca.capabilities.Root
32   properties:
33     protocol:
34       type: string
35       default: tcp
36     port:
37       type: PortDef
38       required: false
39     secure:
40       type: boolean
41       default: false
42     url_path: 
43       type: string
44       required: false
45     port_name: 
46       type: string
47       required: false
48     network_name:
49       type: string
50       required: false 
51       default: PRIVATE
52     initiator:
53       type: string
54       default: source
55       constraints:
56         - valid_values: [ source, target, peer ]
57     ports:
58       type: map
59       required: false
60       constraints:
61         - min_length: 1
62       entry_schema:
63         type: PortSpec
64   attributes:
65     ip_address:
66       type: string
67 tosca.capabilities.DatabaseEndpoint:
68   derived_from: tosca.capabilities.Endpoint
69 tosca.capabilities.Endpoint.Public:
70   derived_from: tosca.capabilities.Endpoint
71   properties:
72     # Change the default network_name to use the first public network found
73     network_name: PUBLIC
74     floating:
75       description: > 
76         indicates that the public address should be allocated from a pool of floating IPs that are associated with the network.
77       type: boolean
78       default: false
79       status: experimental
80     dns_name:
81       description: The optional name to register with DNS 
82       type: string
83       required: false    
84       status: experimental
85 tosca.capabilities.Endpoint.Admin:
86   derived_from: tosca.capabilities.Endpoint
87   # Change Endpoint secure indicator to true from its default of false
88   properties:
89     secure: true
90 tosca.capabilities.Endpoint.Database:
91   derived_from: tosca.capabilities.Endpoint 
92 tosca.capabilities.OperatingSystem:
93   derived_from: tosca.capabilities.Root
94   properties:
95     architecture:
96       type: string
97       required: false 
98     type:
99       type: string
100       required: false
101     distribution:
102       type: string
103       required: false
104     version:
105       type: version
106       required: false
107 tosca.capabilities.Scalable:
108   derived_from: tosca.capabilities.Root
109   properties:
110     min_instances:
111       type: integer
112       default: 1
113     max_instances:
114       type: integer
115       default: 1
116     default_instances:
117       type: integer
118 tosca.capabilities.network.Bindable:
119   derived_from: tosca.capabilities.Node
120
121
122 tosca.capabilities.Container.Docker:
123   derived_from: tosca.capabilities.Container
124   properties:
125     version:
126       type: list
127       required: false
128       entry_schema: version
129     publish_all:
130       type: boolean
131       default: false
132       required: false
133     publish_ports:
134       type: list
135       entry_schema: PortSpec
136       required: false
137     expose_ports:
138       type: list
139       entry_schema: PortSpec
140       required: false
141     volumes:
142       type: list
143       entry_schema: string
144       required: false
145 tosca.capabilities.network.Linkable:
146   derived_from: tosca.capabilities.Root
147 org.openecomp.capabilities.AllottedResource:
148   derived_from: tosca.capabilities.Root
149 tosca.capabilities.nfv.Metric:
150   derived_from: tosca.capabilities.Endpoint
151 org.openecomp.capabilities.Metric:
152   derived_from: tosca.capabilities.nfv.Metric
153   description: A node type that includes the Metric capability indicates that it can be monitored.
154   properties:
155     unit:
156       type: string
157       description: Unit of the metric value
158       required: true
159       status: SUPPORTED
160     description:
161       type: string
162       description: Description of the metric
163       required: false
164       status: SUPPORTED
165     type:
166       type: string
167       description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
168       required: true
169       status: SUPPORTED
170     category:
171       type: string
172       description: Category of the metric, for an example, compute, disk, network, storage and etc.
173       required: false
174       status: SUPPORTED
175   attributes:
176     value:
177       type: string
178       description: Runtime monitored value
179       status: SUPPORTED
180 org.openecomp.capabilities.metric.Ceilometer:
181   derived_from: org.openecomp.capabilities.Metric
182   description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer.
183   properties:
184     name:
185       type: string
186       description: Ceilometer metric type name to monitor. (The name ceilometer is using)
187       required: true
188       status: SUPPORTED
189 org.openecomp.capabilities.metric.SnmpPolling:
190   derived_from: org.openecomp.capabilities.Metric
191   description: A node type that includes the Metric capability indicates that it can be monitored using snmp polling.
192   properties:
193     oid:
194       type: string
195       description: Object Id of the metric
196       required: true
197       status: SUPPORTED
198 org.openecomp.capabilities.metric.SnmpTrap:
199   derived_from: org.openecomp.capabilities.Metric
200   description: A node type that includes the Metric capability indicates that it can be monitored using snmp trap.
201   properties:
202     oid:
203       type: string
204       description: Object Id of the metric
205       required: true
206       status: SUPPORTED