diff options
author | serena.spinoso <serena.spinoso@polito.it> | 2018-04-26 14:19:16 +0200 |
---|---|---|
committer | serena.spinoso <serena.spinoso@polito.it> | 2018-04-26 14:39:01 +0200 |
commit | fcda9807cfa6a89d691877126b406c5d3909d9b9 (patch) | |
tree | 46fcec15887a0e0722217c26606e1859c8c10ff6 /verigraph/schema/tosca/yamlToscaDefinitions.yaml | |
parent | 320ca9e335797f2081f253df60a860e72b6cc9fb (diff) |
Support TOSCA in verigraph (gRPC service)
JIRA: PARSER-179
Add TOSCA service description in gRPC server.
Add a TOSCA-based client to use the new functionality.
Add a JUnit class for testing gRPC service with TOSCA descriptor
Change-Id: Id3217a674f076714cd48e3b7e4236e7445d89cd2
Signed-off-by: serena.spinoso <serena.spinoso@polito.it>
Diffstat (limited to 'verigraph/schema/tosca/yamlToscaDefinitions.yaml')
-rw-r--r-- | verigraph/schema/tosca/yamlToscaDefinitions.yaml | 157 |
1 files changed, 157 insertions, 0 deletions
diff --git a/verigraph/schema/tosca/yamlToscaDefinitions.yaml b/verigraph/schema/tosca/yamlToscaDefinitions.yaml new file mode 100644 index 0000000..e72a5da --- /dev/null +++ b/verigraph/schema/tosca/yamlToscaDefinitions.yaml @@ -0,0 +1,157 @@ +############################################################################## +# Copyright (c) 2018 Politecnico di Torino and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +#Tosca definitions for Verigraph extension in Tosca Yaml simple profile + +tosca_definitions_version: http://docs.oasis-open.org/tosca/ns/simple/yaml/1.0 + +description: node type definitions exetending tosca types for support to Verigraph verification system + +node_types: + verigraph.types.Antispam: + derived_from: tosca.nodes.Root + description: verigraph Antispam node + properties: + sources: + type: list + entry_schema: + type: string + + verigraph.types.Cache: + derived_from: tosca.nodes.Root + description: verigraph Cache node + properties: + resources: + type: list + entry_schema: + type: string + + verigraph.types.Dpi: + derived_from: tosca.nodes.Root + description: verigraph Dpi node + properties: + notAllowedList: + type: list + entry_schema: + type: string + + verigraph.types.Endhost: + derived_from: tosca.nodes.Root + description: verigraph endhost node + attributes: + body: + type: string + sequence: + type: integer + protocol: + type: string + constraints: + - valid_values: [ HTTP_REQUEST, HTTP_RESPONSE, POP3_REQUEST, POP3_RESOPONSE ] + email_from: + type: string + url: + type: string + options: + type: string + destination: + type: string + + verigraph.types.Endpoint: + derived_from: tosca.nodes.Root + description: verigraph Endpoint node + properties: + names: + type: list + entry_schema: + type: string + + verigraph.types.FieldModifier: + derived_from: tosca.nodes.Root + description: verigraph Field Modifier node + properties: + names: + type: list + entry_schema: + type: string + + verigraph.types.Firewall: + derived_from: tosca.nodes.Root + description: verigraph Firewall node + properties: + elements: + type: map + entry_schema: + description: "source : destination" firewall mapping + type: string + + verigraph.types.MailClient: + derived_from: tosca.nodes.Root + description: verigraph Mail Client node + attributes: + mailserver: + type: string + + verigraph.types.MailServer: + derived_from: tosca.nodes.Root + descrtiption: verigraph Mail Server node + properties: + names: + type: list + entry_schema: + type: string + + verigraph.types.Nat: + derived_from: tosca.nodes.Root + descrtiption: verigraph Nat node + properties: + sources: + type: list + entry_schema: + type: string + + verigraph.types.VpnAccess: + deriver_from: tosca.nodes.Root + descrtiption: verigraph Vpn Access node + attributes: + vpnexit: + type: string + + verigraph.types.VpnExit: + derived_from: tosca.nodes.Root + descrtiption: verigraph Vpn Exit node + attributes: + vpnaccess: + type: string + + verigraph.types.WebClient: + derived_from: tosca.nodes.Root + descrtiption: verigraph web Client node + attributes: + nameWebServer: + type: string + + verigraph.types.WebServer: + derived_from: tosca.nodes.Root + descrtiption: verigraph web Server node + properties: + names: + type: list + entry_schema: + type: string + +relationship_types: + verigraph.relationshipType.generic: + derived_from: tosca.relationships.Root + properties: + name: + type: string + source_id: + type: string + target_id: + type: string |