blob: b5e51ae4dd703e94a8054c703b60ef06b24236b9 [file] [log] [blame]
Matteo Scandolo67654fa2017-06-09 09:33:17 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3node_types:
4{% for m in proto.messages %}
5 tosca.nodes.{{ m.name }}:
6 derived_from: tosca.nodes.Root
7 description: {{ m.name }}
8 properties:
9 no-delete:
10 type: boolean
11 default: false
12 description: Do not allow Tosca to delete this object
13 no-create:
14 type: boolean
15 default: false
16 description: Do not allow Tosca to create this object
17 no-update:
18 type: boolean
19 default: false
20 description: Do not allow Tosca to update this object
21 replaces:
22 type: string
23 required: false
24 descrption: Replaces/renames this object
25 {%- for f in m.fields %}
26 {{ f.name }}:
27 type: {{ f.type }}
28 required: {{ xproto_tosca_required(f.options.blank) }}
29 description: {{ f.options.help_text }}
30 {%- endfor %}
31{%- endfor %}