Commit c1bc5074 authored by Spiros Koulouzis's avatar Spiros Koulouzis

write cloudstrom schema

parent 05902775
......@@ -228,6 +228,7 @@ class CloudStormService {
private void writeCloudStormInfrasCodeFiles(String infrasCodeTempInputDirPath, List<CloudsStormSubTopology> cloudStormSubtopologies) throws ApiException {
List<NodeTemplateMap> vmTopologiesMaps = helper.getVMTopologyTemplates();
int i = 0;
InfrasCodes ce =new
for (NodeTemplateMap vmTopologyMap : vmTopologiesMaps) {
Map<String, Object> provisionInterface = helper.getProvisionerInterfaceFromVMTopology(vmTopologyMap);
String operation = provisionInterface.keySet().iterator().next();
......
CloudsStormInfrasCode:
type: "object"
properties:
Mode:
type: "string"
InfrasCodes:
type: "array"
items:
$ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudStorm/InfrasCode.yml#/InfrasCode"
CloudsStormInfrasCode:
type: "object"
properties:
Mode:
type: "string"
InfrasCodes:
type: "array"
items:
$ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudStorm/InfrasCode.yml#/InfrasCode"
InfrasCode:
type: "object"
properties:
CodeType:
type: "string"
OpCode:
$ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudStorm/OpCode.yml#/OpCode"
Count:
type: "integer"
OpCodes:
type: "array"
items:
$ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudStorm/OpCode.yml#/OpCode"
InfrasCode:
type: "object"
properties:
CodeType:
type: "string"
OpCode:
$ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudStorm/OpCode.yml#/OpCode"
Count:
type: "integer"
OpCodes:
type: "array"
items:
$ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudStorm/OpCode.yml#/OpCode"
OpCode:
type: "object"
properties:
Operation:
type: "string"
Operation:
type: "string"
Objects:
type: "string"
Command:
type: "string"
Log:
type: "boolean"
Options:
type: $ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudStorm/Options.yml#/Options"
OpCode:
type: "object"
properties:
Operation:
type: "string"
Objects:
type: "string"
Command:
type: "string"
Log:
type: "boolean"
Options:
$ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudStorm/Options.yml#/Options"
Options:
type: "object"
properties:
Src:
type: "string"
Dst:
type: "string"
Options:
type: "object"
properties:
Src:
type: "string"
Dst:
type: "string"
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