Commit a5d5e52c authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

slapos_jio_api_style: update offers various options to find the software installation

parent c656fe38
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
"title": "Software Installation",\n "title": "Software Installation",\n
"description": "Software Installation",\n "description": "Software Installation",\n
"type": "object",\n "type": "object",\n
"oneOf": [\n
{\n
"properties": {\n "properties": {\n
"software_release_uri": {\n "software_release_uri": {\n
"title": "Software Release URI",\n "title": "Software Release URI",\n
...@@ -56,11 +58,32 @@ ...@@ -56,11 +58,32 @@
"type": "string",\n "type": "string",\n
"description": "The Id of the compute node, example: COMP-1234"\n "description": "The Id of the compute node, example: COMP-1234"\n
},\n },\n
"portal_type": {\n
"title": "Portal Type",\n
"default": "Software Installation",\n
"type": "string"\n
}\n
},\n
"required": [\n
"software_release_uri",\n
"compute_node_id",\n
"portal_type"\n
]\n
},\n
{\n
"properties": {\n
"id": {\n "id": {\n
"title": "ID",\n "title": "ID",\n
"type": "string",\n "type": "string",\n
"description": "Unique Id of the object. This ID is defined by KD Portal. It is not editable."\n "description": "Unique Id of the object. This ID is defined by KD Portal. It is not editable."\n
}\n
},\n },\n
"required": [\n
"id"\n
]\n
}\n
],\n
"properties": {\n
"state": {\n "state": {\n
"title": "Requested State",\n "title": "Requested State",\n
"type": "string",\n "type": "string",\n
...@@ -78,14 +101,8 @@ ...@@ -78,14 +101,8 @@
"title": "Error Status",\n "title": "Error Status",\n
"description": "Used to inform master of an Error in the local processing of the Software Installation",\n "description": "Used to inform master of an Error in the local processing of the Software Installation",\n
"type": "string"\n "type": "string"\n
},\n
"portal_type": {\n
"title": "Portal Type",\n
"const": "Software Installation",\n
"type": "string"\n
}\n }\n
},\n }\n
"required": ["portal_type", "software_release_uri", "compute_node_id"]\n
}\n }\n
</string> </value> </string> </value>
</item> </item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment