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,22 +45,45 @@ ...@@ -45,22 +45,45 @@
"title": "Software Installation",\n "title": "Software Installation",\n
"description": "Software Installation",\n "description": "Software Installation",\n
"type": "object",\n "type": "object",\n
"properties": {\n "oneOf": [\n
"software_release_uri": {\n {\n
"title": "Software Release URI",\n "properties": {\n
"type": "string",\n "software_release_uri": {\n
"format": "uri-reference"\n "title": "Software Release URI",\n
},\n "type": "string",\n
"compute_node_id": {\n "format": "uri-reference"\n
"title": "Compute Node ID",\n },\n
"type": "string",\n "compute_node_id": {\n
"description": "The Id of the compute node, example: COMP-1234"\n "title": "Compute Node ID",\n
},\n "type": "string",\n
"id": {\n "description": "The Id of the compute node, example: COMP-1234"\n
"title": "ID",\n },\n
"type": "string",\n "portal_type": {\n
"description": "Unique Id of the object. This ID is defined by KD Portal. It is not editable."\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
{\n
"properties": {\n
"id": {\n
"title": "ID",\n
"type": "string",\n
"description": "Unique Id of the object. This ID is defined by KD Portal. It is not editable."\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