Matteo Scandolo | 67654fa | 2017-06-09 09:33:17 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | node_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 %} |