blob: fc1256da3d0cf5a79a7ec4394ee91f276a5c4ebe [file] [log] [blame]
Matteo Scandolo9ce18252017-06-22 10:48:25 -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.null, f.options.blank, f.options.default) }}
29 description: {{ f.options.help_text }}
30 {%- endfor %}
31{%- endfor %}