schema_version = {"type": "string", "enum": ["1.0"]}
schema_type = {"type": "string"}
+vim_type = {"enum": ["openstack", "openvim", "vmware", "opennebula", "aws", "azure", "fos"]}
+
vim_account_edit_schema = {
"title": "vim_account edit input schema",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"name": name_schema,
"description": description_schema,
- "type": shortname_schema,
"vim": name_schema,
"datacenter": name_schema,
+ "vim_type": vim_type,
"vim_url": description_schema,
- "vim_url_admin": description_schema,
- "vim_tenant": name_schema,
+ # "vim_url_admin": description_schema,
+ # "vim_tenant": name_schema,
"vim_tenant_name": name_schema,
- "vim_username": shortname_schema,
+ "vim_user": shortname_schema,
"vim_password": passwd_schema,
"config": {"type": "object"}
},
"description": description_schema,
"vim": name_schema,
"datacenter": name_schema,
- "vim_type": {"enum": ["openstack", "openvim", "vmware", "opennebula", "aws", "azure", "fos"]},
+ "vim_type": vim_type,
"vim_url": description_schema,
# "vim_url_admin": description_schema,
# "vim_tenant": name_schema,
"additionalProperties": False
}
+wim_type = {"enum": ["tapi", "onos", "odl", "dynpac", "fake"]}
+
wim_account_edit_schema = {
"title": "wim_account edit input schema",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"name": name_schema,
"description": description_schema,
- "type": shortname_schema,
"wim": name_schema,
+ "wim_type": wim_type,
"wim_url": description_schema,
"user": shortname_schema,
"password": passwd_schema,
"name": name_schema,
"description": description_schema,
"wim": name_schema,
- "wim_type": {"enum": ["tapi", "onos", "odl", "dynpac", "fake"]},
+ "wim_type": wim_type,
"wim_url": description_schema,
"user": shortname_schema,
"password": passwd_schema,