Commit c1bc5074 authored by Spiros Koulouzis's avatar Spiros Koulouzis

write cloudstrom schema

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