Commit 4f91ee99 authored by Spiros Koulouzis's avatar Spiros Koulouzis

fixed wrong data types.

implemented 3 methods
parent f7b8348a
connexion == 2.4.0
python-dateutil == 2.8.0
typing == 3.7.4.1
swagger-ui-bundle == 0.0.5
\ No newline at end of file
swagger-ui-bundle == 0.0.5
tinydb == 3.15.1
tosca-parser == 1.6.1
import os
import uuid
import connexion
import six
import yaml
from sure_tosca.models.node_template import NodeTemplate # noqa: E501
from sure_tosca.models.topology_template import TopologyTemplate # noqa: E501
from sure_tosca.models.tosca_template import ToscaTemplate # noqa: E501
from sure_tosca.models.node_template import NodeTemplate as NodeTemplateModel
from sure_tosca.models.topology_template import TopologyTemplate as TopologyTemplateModel
from sure_tosca.models.tosca_template import ToscaTemplate as ToscaTemplateModel
from sure_tosca import util
from tinydb import TinyDB, Query
import tempfile
from toscaparser.nodetemplate import NodeTemplate
from toscaparser.tosca_template import ToscaTemplate
from toscaparser.topology_template import TopologyTemplate
db_dir_path = tempfile.gettempdir()
db_file_path = os.path.join(db_dir_path, "db.json")
db = TinyDB(db_file_path)
# db.insert({'type': 'EFY', 'count': 800})
def get_all_ancestor_properties(id, body=None, node_name=None): # noqa: E501
......@@ -14,7 +30,7 @@ def get_all_ancestor_properties(id, body=None, node_name=None): # noqa: E501
:param id: ID of topolog template uplodaed
:type id: str
:param body:
:param body:
:type body: dict | bytes
:param node_name: The node name
:type node_name: str
......@@ -33,7 +49,7 @@ def get_all_ancestor_types(id, body=None, node_name=None): # noqa: E501
:param id: ID of topolog template uplodaed
:type id: str
:param body:
:param body:
:type body: dict | bytes
:param node_name: The node name
:type node_name: str
......@@ -41,7 +57,7 @@ def get_all_ancestor_types(id, body=None, node_name=None): # noqa: E501
:rtype: List[str]
"""
if connexion.request.is_json:
body = NodeTemplate.from_dict(connexion.request.get_json()) # noqa: E501
body = NodeTemplateModel.from_dict(connexion.request.get_json()) # noqa: E501
return 'do some magic!'
......@@ -52,7 +68,7 @@ def get_ancestors_requirements(id, body=None, node_name=None): # noqa: E501
:param id: ID of topolog template uplodaed
:type id: str
:param body:
:param body:
:type body: dict | bytes
:param node_name: The node name
:type node_name: str
......@@ -60,7 +76,7 @@ def get_ancestors_requirements(id, body=None, node_name=None): # noqa: E501
:rtype: Dict[str, object]
"""
if connexion.request.is_json:
body = NodeTemplate.from_dict(connexion.request.get_json()) # noqa: E501
body = NodeTemplateModel.from_dict(connexion.request.get_json()) # noqa: E501
return 'do some magic!'
......@@ -71,7 +87,7 @@ def get_interface_types(id, body=None, interface_type=None): # noqa: E501
:param id: ID of topolog template uplodaed
:type id: str
:param body:
:param body:
:type body: dict | bytes
:param interface_type: The interface type
:type interface_type: str
......@@ -79,7 +95,7 @@ def get_interface_types(id, body=None, interface_type=None): # noqa: E501
:rtype: List[Dict[str, object]]
"""
if connexion.request.is_json:
body = NodeTemplate.from_dict(connexion.request.get_json()) # noqa: E501
body = NodeTemplateModel.from_dict(connexion.request.get_json()) # noqa: E501
return 'do some magic!'
......@@ -90,7 +106,7 @@ def get_node_outputs(id, body=None, node_name=None): # noqa: E501
:param id: ID of topolog template uplodaed
:type id: str
:param body:
:param body:
:type body: dict | bytes
:param node_name: The node name
:type node_name: str
......@@ -98,7 +114,7 @@ def get_node_outputs(id, body=None, node_name=None): # noqa: E501
:rtype: Dict[str, object]
"""
if connexion.request.is_json:
body = NodeTemplate.from_dict(connexion.request.get_json()) # noqa: E501
body = NodeTemplateModel.from_dict(connexion.request.get_json()) # noqa: E501
return 'do some magic!'
......@@ -109,7 +125,7 @@ def get_node_properties(id, body=None, node_name=None): # noqa: E501
:param id: ID of topolog template uplodaed
:type id: str
:param body:
:param body:
:type body: dict | bytes
:param node_name: The node name
:type node_name: str
......@@ -117,7 +133,7 @@ def get_node_properties(id, body=None, node_name=None): # noqa: E501
:rtype: Dict[str, object]
"""
if connexion.request.is_json:
body = NodeTemplate.from_dict(connexion.request.get_json()) # noqa: E501
body = NodeTemplateModel.from_dict(connexion.request.get_json()) # noqa: E501
return 'do some magic!'
......@@ -128,7 +144,7 @@ def get_node_requirements(id, body=None, node_name=None): # noqa: E501
:param id: ID of topolog template uplodaed
:type id: str
:param body:
:param body:
:type body: dict | bytes
:param node_name: The node name
:type node_name: str
......@@ -136,7 +152,7 @@ def get_node_requirements(id, body=None, node_name=None): # noqa: E501
:rtype: Dict[str, object]
"""
if connexion.request.is_json:
body = NodeTemplate.from_dict(connexion.request.get_json()) # noqa: E501
body = NodeTemplateModel.from_dict(connexion.request.get_json()) # noqa: E501
return 'do some magic!'
......@@ -166,7 +182,7 @@ def get_node_type_name(id, body=None, node_name=None): # noqa: E501
:param id: ID of topolog template uplodaed
:type id: str
:param body:
:param body:
:type body: dict | bytes
:param node_name: The node name
:type node_name: str
......@@ -174,7 +190,7 @@ def get_node_type_name(id, body=None, node_name=None): # noqa: E501
:rtype: str
"""
if connexion.request.is_json:
body = NodeTemplate.from_dict(connexion.request.get_json()) # noqa: E501
body = NodeTemplateModel.from_dict(connexion.request.get_json()) # noqa: E501
return 'do some magic!'
......@@ -185,7 +201,7 @@ def get_parent_type_name(id, body=None, node_name=None): # noqa: E501
:param id: ID of topolog template uplodaed
:type id: str
:param body:
:param body:
:type body: dict | bytes
:param node_name: The node name
:type node_name: str
......@@ -193,7 +209,7 @@ def get_parent_type_name(id, body=None, node_name=None): # noqa: E501
:rtype: str
"""
if connexion.request.is_json:
body = NodeTemplate.from_dict(connexion.request.get_json()) # noqa: E501
body = NodeTemplateModel.from_dict(connexion.request.get_json()) # noqa: E501
return 'do some magic!'
......@@ -204,31 +220,58 @@ def get_related_node(id, body=None, node_name=None): # noqa: E501
:param id: ID of topolog template uplodaed
:type id: str
:param body:
:param body:
:type body: dict | bytes
:param node_name: The node name
:type node_name: str
:rtype: List[NodeTemplate]
:rtype: List[NodeTemplateModel]
"""
if connexion.request.is_json:
body = NodeTemplate.from_dict(connexion.request.get_json()) # noqa: E501
body = NodeTemplateModel.from_dict(connexion.request.get_json()) # noqa: E501
return 'do some magic!'
def get_topology_template(id): # noqa: E501
"""get_topology_template
def set_node_properties(id, properties, node_name): # noqa: E501
"""
r # noqa: E501
s # noqa: E501
:param id: ID of topolog template uplodaed
:type id: str
:param properties:
:type properties:
:param node_name: The node name
:type node_name: str
:rtype: TopologyTemplate
:rtype: Dict[str, object]
"""
return 'do some magic!'
def upload_tosca_template(file): # noqa: E501
"""upload a tosca template description file
upload and validate a tosca template description file # noqa: E501
:param file: tosca Template description
:type file: werkzeug.datastructures.FileStorage
:rtype: str
"""
tosca_template_file_path = os.path.join(db_dir_path, file.filename)
tosca_template_dict = yaml.safe_load(file.stream)
tosca_template_model = ToscaTemplateModel.from_dict(tosca_template_dict)
tosca_template = ToscaTemplate(yaml_dict_tpl=tosca_template_dict)
doc_id = str(uuid.uuid4())
tosca_template_dict_with_id = {"id": doc_id}
tosca_template_dict_with_id.update(tosca_template_model.to_dict())
db.insert(tosca_template_dict_with_id)
return doc_id
def get_tosca_template(id): # noqa: E501
"""get_tosca_template
......@@ -239,34 +282,26 @@ def get_tosca_template(id): # noqa: E501
:rtype: ToscaTemplate
"""
return 'do some magic!'
return get_ToscaTemplateModel_by_id(id)
def set_node_properties(id, properties, node_name): # noqa: E501
"""
def get_topology_template(id): # noqa: E501
"""get_topology_template
s # noqa: E501
r # noqa: E501
:param id: ID of topolog template uplodaed
:type id: str
:param properties:
:type properties:
:param node_name: The node name
:type node_name: str
:rtype: Dict[str, object]
:rtype: TopologyTemplate
"""
return 'do some magic!'
def upload_tosca_template(file): # noqa: E501
"""upload a tosca template description file
upload and validate a tosca template description file # noqa: E501
return get_ToscaTemplateModel_by_id(id).topology_template
:param file: tosca Template description
:type file: werkzeug.datastructures.FileStorage
:rtype: str
"""
return 'do some magic!'
def get_ToscaTemplateModel_by_id(id):
query = Query()
tosca_template_list_dict = db.search(query.id == id)
tosca_template_dict = tosca_template_list_dict[0]
tosca_template_dict.pop("id")
tosca_template = ToscaTemplate(yaml_dict_tpl=tosca_template_dict)
return ToscaTemplateModel.from_dict(tosca_template_dict)
......@@ -15,26 +15,66 @@ class NodeTemplate(Model):
Do not edit the class manually.
"""
def __init__(self, items=None, additional_properties=None): # noqa: E501
def __init__(self, derived_from=None, properties=None, requirements=None, interfaces=None, capabilities=None, type=None, description=None, directives=None, attributes=None, artifacts=None): # noqa: E501
"""NodeTemplate - a model defined in Swagger
:param items: The items of this NodeTemplate. # noqa: E501
:type items: object
:param additional_properties: The additional_properties of this NodeTemplate. # noqa: E501
:type additional_properties: object
:param derived_from: The derived_from of this NodeTemplate. # noqa: E501
:type derived_from: str
:param properties: The properties of this NodeTemplate. # noqa: E501
:type properties: Dict[str, object]
:param requirements: The requirements of this NodeTemplate. # noqa: E501
:type requirements: List[Dict[str, object]]
:param interfaces: The interfaces of this NodeTemplate. # noqa: E501
:type interfaces: Dict[str, object]
:param capabilities: The capabilities of this NodeTemplate. # noqa: E501
:type capabilities: Dict[str, object]
:param type: The type of this NodeTemplate. # noqa: E501
:type type: str
:param description: The description of this NodeTemplate. # noqa: E501
:type description: str
:param directives: The directives of this NodeTemplate. # noqa: E501
:type directives: List[str]
:param attributes: The attributes of this NodeTemplate. # noqa: E501
:type attributes: Dict[str, object]
:param artifacts: The artifacts of this NodeTemplate. # noqa: E501
:type artifacts: Dict[str, object]
"""
self.swagger_types = {
'items': object,
'additional_properties': object
'derived_from': str,
'properties': Dict[str, object],
'requirements': List[Dict[str, object]],
'interfaces': Dict[str, object],
'capabilities': Dict[str, object],
'type': str,
'description': str,
'directives': List[str],
'attributes': Dict[str, object],
'artifacts': Dict[str, object]
}
self.attribute_map = {
'items': 'items',
'additional_properties': 'additionalProperties'
'derived_from': 'derived_from',
'properties': 'properties',
'requirements': 'requirements',
'interfaces': 'interfaces',
'capabilities': 'capabilities',
'type': 'type',
'description': 'description',
'directives': 'directives',
'attributes': 'attributes',
'artifacts': 'artifacts'
}
self._items = items
self._additional_properties = additional_properties
self._derived_from = derived_from
self._properties = properties
self._requirements = requirements
self._interfaces = interfaces
self._capabilities = capabilities
self._type = type
self._description = description
self._directives = directives
self._attributes = attributes
self._artifacts = artifacts
@classmethod
def from_dict(cls, dikt):
......@@ -48,43 +88,211 @@ class NodeTemplate(Model):
return util.deserialize_model(dikt, cls)
@property
def items(self):
"""Gets the items of this NodeTemplate.
def derived_from(self):
"""Gets the derived_from of this NodeTemplate.
:return: The items of this NodeTemplate.
:rtype: object
:return: The derived_from of this NodeTemplate.
:rtype: str
"""
return self._items
return self._derived_from
@items.setter
def items(self, items):
"""Sets the items of this NodeTemplate.
@derived_from.setter
def derived_from(self, derived_from):
"""Sets the derived_from of this NodeTemplate.
:param items: The items of this NodeTemplate.
:type items: object
:param derived_from: The derived_from of this NodeTemplate.
:type derived_from: str
"""
self._items = items
self._derived_from = derived_from
@property
def additional_properties(self):
"""Gets the additional_properties of this NodeTemplate.
def properties(self):
"""Gets the properties of this NodeTemplate.
:return: The additional_properties of this NodeTemplate.
:rtype: object
:return: The properties of this NodeTemplate.
:rtype: Dict[str, object]
"""
return self._additional_properties
return self._properties
@additional_properties.setter
def additional_properties(self, additional_properties):
"""Sets the additional_properties of this NodeTemplate.
@properties.setter
def properties(self, properties):
"""Sets the properties of this NodeTemplate.
:param additional_properties: The additional_properties of this NodeTemplate.
:type additional_properties: object
:param properties: The properties of this NodeTemplate.
:type properties: Dict[str, object]
"""
self._additional_properties = additional_properties
self._properties = properties
@property
def requirements(self):
"""Gets the requirements of this NodeTemplate.
:return: The requirements of this NodeTemplate.
:rtype: List[Dict[str, object]]
"""
return self._requirements
@requirements.setter
def requirements(self, requirements):
"""Sets the requirements of this NodeTemplate.
:param requirements: The requirements of this NodeTemplate.
:type requirements: List[Dict[str, object]]
"""
self._requirements = requirements
@property
def interfaces(self):
"""Gets the interfaces of this NodeTemplate.
:return: The interfaces of this NodeTemplate.
:rtype: Dict[str, object]
"""
return self._interfaces
@interfaces.setter
def interfaces(self, interfaces):
"""Sets the interfaces of this NodeTemplate.
:param interfaces: The interfaces of this NodeTemplate.
:type interfaces: Dict[str, object]
"""
self._interfaces = interfaces
@property
def capabilities(self):
"""Gets the capabilities of this NodeTemplate.
:return: The capabilities of this NodeTemplate.
:rtype: Dict[str, object]
"""
return self._capabilities
@capabilities.setter
def capabilities(self, capabilities):
"""Sets the capabilities of this NodeTemplate.
:param capabilities: The capabilities of this NodeTemplate.
:type capabilities: Dict[str, object]
"""
self._capabilities = capabilities
@property
def type(self):
"""Gets the type of this NodeTemplate.
:return: The type of this NodeTemplate.
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
"""Sets the type of this NodeTemplate.
:param type: The type of this NodeTemplate.
:type type: str
"""
self._type = type
@property
def description(self):
"""Gets the description of this NodeTemplate.
:return: The description of this NodeTemplate.
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this NodeTemplate.
:param description: The description of this NodeTemplate.
:type description: str
"""
self._description = description
@property
def directives(self):
"""Gets the directives of this NodeTemplate.
:return: The directives of this NodeTemplate.
:rtype: List[str]
"""
return self._directives
@directives.setter
def directives(self, directives):
"""Sets the directives of this NodeTemplate.
:param directives: The directives of this NodeTemplate.
:type directives: List[str]
"""
self._directives = directives
@property
def attributes(self):
"""Gets the attributes of this NodeTemplate.
:return: The attributes of this NodeTemplate.
:rtype: Dict[str, object]
"""
return self._attributes
@attributes.setter
def attributes(self, attributes):
"""Sets the attributes of this NodeTemplate.
:param attributes: The attributes of this NodeTemplate.
:type attributes: Dict[str, object]
"""
self._attributes = attributes
@property
def artifacts(self):
"""Gets the artifacts of this NodeTemplate.
:return: The artifacts of this NodeTemplate.
:rtype: Dict[str, object]
"""
return self._artifacts
@artifacts.setter
def artifacts(self, artifacts):
"""Sets the artifacts of this NodeTemplate.
:param artifacts: The artifacts of this NodeTemplate.
:type artifacts: Dict[str, object]
"""
self._artifacts = artifacts
......@@ -6,6 +6,7 @@ from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from sure_tosca.models.base_model_ import Model
from sure_tosca.models.node_template import NodeTemplate # noqa: F401,E501
from sure_tosca import util
......@@ -15,26 +16,56 @@ class TopologyTemplate(Model):
Do not edit the class manually.
"""
def __init__(self, items=None, additional_properties=None): # noqa: E501
def __init__(self, description=None, inputs=None, node_templates=None, relationship_templates=None, outputs=None, groups=None, substitution_mappings=None, policies=None): # noqa: E501
"""TopologyTemplate - a model defined in Swagger
:param items: The items of this TopologyTemplate. # noqa: E501
:type items: object
:param additional_properties: The additional_properties of this TopologyTemplate. # noqa: E501
:type additional_properties: object
:param description: The description of this TopologyTemplate. # noqa: E501
:type description: str
:param inputs: The inputs of this TopologyTemplate. # noqa: E501
:type inputs: List[Dict[str, object]]
:param node_templates: The node_templates of this TopologyTemplate. # noqa: E501
:type node_templates: Dict[str, NodeTemplate]
:param relationship_templates: The relationship_templates of this TopologyTemplate. # noqa: E501
:type relationship_templates: Dict[str, object]
:param outputs: The outputs of this TopologyTemplate. # noqa: E501
:type outputs: List[Dict[str, object]]
:param groups: The groups of this TopologyTemplate. # noqa: E501
:type groups: Dict[str, object]
:param substitution_mappings: The substitution_mappings of this TopologyTemplate. # noqa: E501
:type substitution_mappings: Dict[str, object]
:param policies: The policies of this TopologyTemplate. # noqa: E501
:type policies: List[Dict[str, object]]
"""
self.swagger_types = {
'items': object,
'additional_properties': object
'description': str,
'inputs': List[Dict[str, object]],
'node_templates': Dict[str, NodeTemplate],
'relationship_templates': Dict[str, object],
'outputs': List[Dict[str, object]],
'groups': Dict[str, object],
'substitution_mappings': Dict[str, object],
'policies': List[Dict[str, object]]
}
self.attribute_map = {
'items': 'items',
'additional_properties': 'additionalProperties'
'description': 'description',
'inputs': 'inputs',
'node_templates': 'node_templates',
'relationship_templates': 'relationship_templates',
'outputs': 'outputs',
'groups': 'groups',
'substitution_mappings': 'substitution_mappings',
'policies': 'policies'
}
self._items = items
self._additional_properties = additional_properties
self._description = description
self._inputs = inputs
self._node_templates = node_templates
self._relationship_templates = relationship_templates
self._outputs = outputs
self._groups = groups
self._substitution_mappings = substitution_mappings
self._policies = policies
@classmethod
def from_dict(cls, dikt):
......@@ -48,43 +79,169 @@ class TopologyTemplate(Model):
return util.deserialize_model(dikt, cls)
@property
def items(self):
"""Gets the items of this TopologyTemplate.
def description(self):
"""Gets the description of this TopologyTemplate.
:return: The items of this TopologyTemplate.
:rtype: object
:return: The description of this TopologyTemplate.
:rtype: str
"""
return self._items
return self._description
@items.setter
def items(self, items):
"""Sets the items of this TopologyTemplate.
@description.setter
def description(self, description):
"""Sets the description of this TopologyTemplate.
:param items: The items of this TopologyTemplate.
:type items: object
:param description: The description of this TopologyTemplate.
:type description: str
"""
self._items = items
self._description = description
@property
def additional_properties(self):
"""Gets the additional_properties of this TopologyTemplate.
def inputs(self):
"""Gets the inputs of this TopologyTemplate.
:return: The additional_properties of this TopologyTemplate.
:rtype: object
:return: The inputs of this TopologyTemplate.
:rtype: List[Dict[str, object]]
"""
return self._additional_properties
return self._inputs
@additional_properties.setter
def additional_properties(self, additional_properties):
"""Sets the additional_properties of this TopologyTemplate.
@inputs.setter
def inputs(self, inputs):
"""Sets the inputs of this TopologyTemplate.
:param additional_properties: The additional_properties of this TopologyTemplate.
:type additional_properties: object
:param inputs: The inputs of this TopologyTemplate.
:type inputs: List[Dict[str, object]]
"""
self._additional_properties = additional_properties
self._inputs = inputs
@property
def node_templates(self):
"""Gets the node_templates of this TopologyTemplate.
:return: The node_templates of this TopologyTemplate.
:rtype: Dict[str, NodeTemplate]
"""
return self._node_templates
@node_templates.setter
def node_templates(self, node_templates):
"""Sets the node_templates of this TopologyTemplate.
:param node_templates: The node_templates of this TopologyTemplate.
:type node_templates: Dict[str, NodeTemplate]
"""
self._node_templates = node_templates
@property
def relationship_templates(self):
"""Gets the relationship_templates of this TopologyTemplate.
:return: The relationship_templates of this TopologyTemplate.
:rtype: Dict[str, object]
"""
return self._relationship_templates
@relationship_templates.setter
def relationship_templates(self, relationship_templates):
"""Sets the relationship_templates of this TopologyTemplate.
:param relationship_templates: The relationship_templates of this TopologyTemplate.
:type relationship_templates: Dict[str, object]
"""
self._relationship_templates = relationship_templates
@property
def outputs(self):
"""Gets the outputs of this TopologyTemplate.
:return: The outputs of this TopologyTemplate.
:rtype: List[Dict[str, object]]
"""
return self._outputs
@outputs.setter
def outputs(self, outputs):
"""Sets the outputs of this TopologyTemplate.
:param outputs: The outputs of this TopologyTemplate.
:type outputs: List[Dict[str, object]]
"""
self._outputs = outputs
@property
def groups(self):
"""Gets the groups of this TopologyTemplate.
:return: The groups of this TopologyTemplate.
:rtype: Dict[str, object]
"""
return self._groups
@groups.setter
def groups(self, groups):
"""Sets the groups of this TopologyTemplate.
:param groups: The groups of this TopologyTemplate.
:type groups: Dict[str, object]
"""
self._groups = groups
@property
def substitution_mappings(self):
"""Gets the substitution_mappings of this TopologyTemplate.
:return: The substitution_mappings of this TopologyTemplate.
:rtype: Dict[str, object]
"""
return self._substitution_mappings
@substitution_mappings.setter
def substitution_mappings(self, substitution_mappings):
"""Sets the substitution_mappings of this TopologyTemplate.
:param substitution_mappings: The substitution_mappings of this TopologyTemplate.
:type substitution_mappings: Dict[str, object]
"""
self._substitution_mappings = substitution_mappings
@property
def policies(self):
"""Gets the policies of this TopologyTemplate.
:return: The policies of this TopologyTemplate.
:rtype: List[Dict[str, object]]
"""
return self._policies
@policies.setter
def policies(self, policies):
"""Sets the policies of this TopologyTemplate.
:param policies: The policies of this TopologyTemplate.
:type policies: List[Dict[str, object]]
"""
self._policies = policies
......@@ -493,35 +493,296 @@ definitions:
ToscaTemplate:
type: "object"
properties:
items:
tosca_definitions_version:
type: "string"
additionalProperties:
tosca_default_namespace:
type: "string"
template_name:
type: "string"
topology_template:
$ref: "#/definitions/TopologyTemplate"
template_author:
type: "string"
template_version:
type: "string"
description:
type: "string"
imports:
type: "array"
items:
type: "object"
additionalProperties:
type: "object"
properties: {}
dsl_definitions:
type: "object"
properties: {}
additionalProperties:
type: "object"
properties: {}
node_types:
type: "object"
additionalProperties:
type: "object"
properties: {}
relationship_types:
type: "object"
additionalProperties:
type: "object"
properties: {}
relationship_templates:
type: "object"
additionalProperties:
type: "object"
properties: {}
capability_types:
type: "object"
additionalProperties:
type: "object"
properties: {}
artifact_types:
type: "object"
additionalProperties:
type: "object"
properties: {}
data_types:
type: "object"
additionalProperties:
type: "object"
properties: {}
interface_types:
type: "object"
additionalProperties:
type: "object"
properties: {}
policy_types:
type: "object"
additionalProperties:
type: "string"
group_types:
type: "object"
additionalProperties:
type: "object"
properties: {}
repositories:
type: "object"
additionalProperties:
type: "object"
properties: {}
example:
additionalProperties: "{}"
items: "items"
node_types:
key: "{}"
policy_types:
key: "policy_types"
topology_template:
outputs:
- key: "{}"
- key: "{}"
substitution_mappings:
key: "{}"
inputs:
- key: "{}"
- key: "{}"
node_templates:
key:
requirements:
- key: "{}"
- key: "{}"
interfaces:
key: "{}"
capabilities:
key: "{}"
directives:
- "directives"
- "directives"
derived_from: "derived_from"
description: "description"
attributes:
key: "{}"
type: "type"
properties:
key: "{}"
artifacts:
key: "{}"
policies:
- key: "{}"
- key: "{}"
description: "description"
groups:
key: "{}"
relationship_templates:
key: "{}"
template_version: "template_version"
imports:
- key: "{}"
- key: "{}"
template_author: "template_author"
group_types:
key: "{}"
description: "description"
template_name: "template_name"
artifact_types:
key: "{}"
capability_types:
key: "{}"
repositories:
key: "{}"
tosca_definitions_version: "tosca_definitions_version"
dsl_definitions:
key: "{}"
interface_types:
key: "{}"
relationship_types:
key: "{}"
tosca_default_namespace: "tosca_default_namespace"
relationship_templates:
key: "{}"
data_types:
key: "{}"
TopologyTemplate:
type: "object"
properties:
items:
description:
type: "string"
inputs:
type: "array"
items:
type: "object"
additionalProperties:
type: "object"
properties: {}
node_templates:
type: "object"
properties: {}
additionalProperties:
additionalProperties:
$ref: "#/definitions/NodeTemplate"
relationship_templates:
type: "object"
properties: {}
additionalProperties:
type: "object"
properties: {}
outputs:
type: "array"
items:
type: "object"
additionalProperties:
type: "object"
properties: {}
groups:
type: "object"
additionalProperties:
type: "object"
properties: {}
substitution_mappings:
type: "object"
additionalProperties:
type: "object"
properties: {}
policies:
type: "array"
items:
type: "object"
additionalProperties:
type: "object"
properties: {}
example:
additionalProperties: "{}"
items: "{}"
outputs:
- key: "{}"
- key: "{}"
substitution_mappings:
key: "{}"
inputs:
- key: "{}"
- key: "{}"
node_templates:
key:
requirements:
- key: "{}"
- key: "{}"
interfaces:
key: "{}"
capabilities:
key: "{}"
directives:
- "directives"
- "directives"
derived_from: "derived_from"
description: "description"
attributes:
key: "{}"
type: "type"
properties:
key: "{}"
artifacts:
key: "{}"
policies:
- key: "{}"
- key: "{}"
description: "description"
groups:
key: "{}"
relationship_templates:
key: "{}"
NodeTemplate:
type: "object"
properties:
items:
derived_from:
type: "string"
properties:
type: "object"
additionalProperties:
type: "object"
properties: {}
requirements:
type: "array"
items:
type: "object"
additionalProperties:
type: "object"
properties: {}
interfaces:
type: "object"
additionalProperties:
type: "object"
properties: {}
capabilities:
type: "object"
properties: {}
additionalProperties:
additionalProperties:
type: "object"
properties: {}
type:
type: "string"
description:
type: "string"
directives:
type: "array"
items:
type: "string"
attributes:
type: "object"
properties: {}
additionalProperties:
type: "object"
properties: {}
artifacts:
type: "object"
additionalProperties:
type: "object"
properties: {}
example:
additionalProperties: "{}"
items: "{}"
requirements:
- key: "{}"
- key: "{}"
interfaces:
key: "{}"
capabilities:
key: "{}"
directives:
- "directives"
- "directives"
derived_from: "derived_from"
description: "description"
attributes:
key: "{}"
type: "type"
properties:
key: "{}"
artifacts:
key: "{}"
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