aboutsummaryrefslogtreecommitdiffstats
path: root/src/onapsdk/sdc/templates/sdc_resource_category.json.j2
diff options
context:
space:
mode:
Diffstat (limited to 'src/onapsdk/sdc/templates/sdc_resource_category.json.j2')
-rw-r--r--src/onapsdk/sdc/templates/sdc_resource_category.json.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/src/onapsdk/sdc/templates/sdc_resource_category.json.j2 b/src/onapsdk/sdc/templates/sdc_resource_category.json.j2
new file mode 100644
index 0000000..633aacd
--- /dev/null
+++ b/src/onapsdk/sdc/templates/sdc_resource_category.json.j2
@@ -0,0 +1,13 @@
+ "categories": [
+ {
+ "normalizedName": "{{ category.normalized_name }}",
+ "name": "{{ category.name }}",
+ "uniqueId": "{{ category.unique_id }}",
+ "subcategories": {% if category.subcategories %}{{ category.subcategories|tojson }}{% else %}null{% endif %},
+ "version": {% if category.version %}"{{ category.version }}"{% else %}null{% endif %},
+ "ownerId": {% if category.owner_id %}"{{ category.owner_id }}"{% else %}null{% endif %},
+ "empty": {{ category.empty|tojson }},
+ "type": {% if category.type %}"{{ category.type }}"{% else %}null{% endif %},
+ "icons": {% if category.icons %}{{ category.icons|tojson }}{% else %}null{% endif %}
+ }
+ ] \ No newline at end of file