Commit 26b9968d authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Titouan Soulard

slapos_jio_api_style: Remove id option in get Compute Node and Software Installation

parent 5846952c
...@@ -45,40 +45,23 @@ ...@@ -45,40 +45,23 @@
"title": "Get Compute Node",\n "title": "Get Compute Node",\n
"description": "Data necessary to get Compute Node",\n "description": "Data necessary to get Compute Node",\n
"type": "object",\n "type": "object",\n
"oneOf": [\n "properties": {\n
{\n "compute_node_id": {\n
"properties": {\n "title": "Compute Node ID",\n
"compute_node_id": {\n "type": "string",\n
"title": "Compute Node ID",\n "description": "The Id of the compute node, example: COMP-1234"\n
"type": "string",\n
"description": "The Id of the compute node, example: COMP-1234"\n
},\n
"portal_type": {\n
"title": "Portal Type",\n
"const": "Compute Node",\n
"type": "string"\n
}\n
},\n
"required": [\n
"compute_node_id",\n
"portal_type"\n
]\n
},\n },\n
{\n "portal_type": {\n
"properties": {\n "title": "Portal Type",\n
"id": {\n "const": "Compute Node",\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
}\n
},\n
"required": [\n
"id"\n
]\n
}\n }\n
},\n
"required": [\n
"compute_node_id",\n
"portal_type"\n
]\n ]\n
}\n }</string> </value>
</string> </value>
</item> </item>
<item> <item>
<key> <string>version</string> </key> <key> <string>version</string> </key>
......
...@@ -43,43 +43,27 @@ ...@@ -43,43 +43,27 @@
"title": "Software Installation",\n "title": "Software Installation",\n
"description": "Software Installation",\n "description": "Software Installation",\n
"type": "object",\n "type": "object",\n
"oneOf": [\n "properties": {\n
{\n "software_release_uri": {\n
"properties": {\n "title": "Software Release URI",\n
"software_release_uri": {\n "type": "string"\n
"title": "Software Release URI",\n },\n
"type": "string"\n "compute_node_id": {\n
},\n "title": "Compute Node ID",\n
"compute_node_id": {\n "type": "string",\n
"title": "Compute Node ID",\n "description": "The Id of the compute node, example: COMP-1234"\n
"type": "string",\n },\n
"description": "The Id of the compute node, example: COMP-1234"\n "portal_type": {\n
},\n "title": "Portal Type",\n
"portal_type": {\n "const": "Software Installation",\n
"title": "Portal Type",\n "type": "string"\n
"const": "Software Installation",\n }\n
"type": "string"\n },\n
}\n "required": [\n
},\n "software_release_uri",\n
"required": [\n "compute_node_id",\n
"software_release_uri",\n "portal_type"\n
"compute_node_id",\n ]\n
"portal_type"\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
}\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