From 451a3400b76511393c62a444f588a4ed15f4a549 Mon Sep 17 00:00:00 2001 From: Michael Lando Date: Sun, 19 Feb 2017 10:28:42 +0200 Subject: Initial OpenECOMP SDC commit Change-Id: I0924d5a6ae9cdc161ae17c68d3689a30d10f407b Signed-off-by: Michael Lando --- .../import/tosca/normative-types/DBMS/DBMS.json | 20 +++++++++ .../import/tosca/normative-types/DBMS/DBMS.yml | 17 ++++++++ .../import/tosca/normative-types/DBMS/DBMS.zip | Bin 0 -> 382 bytes .../normative-types/blockStorage/blockStorage.json | 20 +++++++++ .../normative-types/blockStorage/blockStorage.yml | 18 +++++++++ .../normative-types/blockStorage/blockStorage.zip | Bin 0 -> 352 bytes .../tosca/normative-types/compute/compute.json | 24 +++++++++++ .../tosca/normative-types/compute/compute.yml | 35 ++++++++++++++++ .../tosca/normative-types/compute/compute.zip | Bin 0 -> 519 bytes .../containerApplication/containerApplication.json | 20 +++++++++ .../containerApplication/containerApplication.yml | 9 +++++ .../containerApplication/containerApplication.zip | Bin 0 -> 318 bytes .../containerRuntime/containerRuntime.json | 20 +++++++++ .../containerRuntime/containerRuntime.yml | 9 +++++ .../containerRuntime/containerRuntime.zip | Bin 0 -> 295 bytes .../tosca/normative-types/database/database.json | 20 +++++++++ .../tosca/normative-types/database/database.yml | 27 +++++++++++++ .../tosca/normative-types/database/database.zip | Bin 0 -> 477 bytes .../normative-types/loadBalancer/loadBalancer.json | 20 +++++++++ .../normative-types/loadBalancer/loadBalancer.yml | 20 +++++++++ .../normative-types/loadBalancer/loadBalancer.zip | Bin 0 -> 428 bytes .../tosca/normative-types/network/network.json | 21 ++++++++++ .../tosca/normative-types/network/network.yml | 45 +++++++++++++++++++++ .../tosca/normative-types/network/network.zip | Bin 0 -> 463 bytes .../objectStorage/objectStorage.json | 20 +++++++++ .../objectStorage/objectStorage.yml | 18 +++++++++ .../objectStorage/objectStorage.zip | Bin 0 -> 346 bytes .../import/tosca/normative-types/port/port.json | 21 ++++++++++ .../import/tosca/normative-types/port/port.yml | 31 ++++++++++++++ .../import/tosca/normative-types/port/port.zip | Bin 0 -> 414 bytes .../import/tosca/normative-types/root/root.json | 20 +++++++++ .../import/tosca/normative-types/root/root.yml | 23 +++++++++++ .../import/tosca/normative-types/root/root.zip | Bin 0 -> 417 bytes .../softwareComponent/softwareComponent.json | 20 +++++++++ .../softwareComponent/softwareComponent.yml | 17 ++++++++ .../softwareComponent/softwareComponent.zip | Bin 0 -> 395 bytes .../webApplication/webApplication.json | 20 +++++++++ .../webApplication/webApplication.yml | 15 +++++++ .../webApplication/webApplication.zip | Bin 0 -> 358 bytes .../tosca/normative-types/webServer/webServer.json | 20 +++++++++ .../tosca/normative-types/webServer/webServer.yml | 11 +++++ .../tosca/normative-types/webServer/webServer.zip | Bin 0 -> 340 bytes 42 files changed, 581 insertions(+) create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/DBMS/DBMS.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/DBMS/DBMS.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/DBMS/DBMS.zip create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/blockStorage/blockStorage.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/blockStorage/blockStorage.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/blockStorage/blockStorage.zip create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/compute/compute.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/compute/compute.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/compute/compute.zip create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/containerApplication/containerApplication.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/containerApplication/containerApplication.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/containerApplication/containerApplication.zip create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/containerRuntime/containerRuntime.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/containerRuntime/containerRuntime.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/containerRuntime/containerRuntime.zip create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/database/database.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/database/database.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/database/database.zip create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.zip create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/network/network.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/network/network.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/network/network.zip create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/objectStorage/objectStorage.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/objectStorage/objectStorage.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/objectStorage/objectStorage.zip create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/port/port.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/port/port.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/port/port.zip create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/root/root.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/root/root.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/root/root.zip create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/softwareComponent/softwareComponent.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/softwareComponent/softwareComponent.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/softwareComponent/softwareComponent.zip create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/webApplication/webApplication.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/webApplication/webApplication.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/webApplication/webApplication.zip create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/webServer/webServer.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/webServer/webServer.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/webServer/webServer.zip (limited to 'catalog-be/src/main/resources/import/tosca/normative-types') diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/DBMS/DBMS.json b/catalog-be/src/main/resources/import/tosca/normative-types/DBMS/DBMS.json new file mode 100644 index 0000000000..addef2ae4b --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/DBMS/DBMS.json @@ -0,0 +1,20 @@ +{ + "payloadName": "DBMS.yml", + "contactId": "jh0003", + "name": "DBMS", + "description": "Represents a typical relational, SQL Database Management System software component or service.", + "resourceIconPath": "defaulticon", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Abstract" + } + ] + } +], + "tags": [ + "DBMS" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/DBMS/DBMS.yml b/catalog-be/src/main/resources/import/tosca/normative-types/DBMS/DBMS.yml new file mode 100644 index 0000000000..28919d38e4 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/DBMS/DBMS.yml @@ -0,0 +1,17 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.DBMS: + derived_from: tosca.nodes.SoftwareComponent + properties: + root_password: + type: string + required: false + description: the optional root password for the DBMS service + port: + type: integer + required: false + description: the port the DBMS service will listen to for data and requests + capabilities: + host: + type: tosca.capabilities.Container + valid_source_types: [ tosca.nodes.Database ] diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/DBMS/DBMS.zip b/catalog-be/src/main/resources/import/tosca/normative-types/DBMS/DBMS.zip new file mode 100644 index 0000000000..7f88b3ba53 Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/DBMS/DBMS.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/blockStorage/blockStorage.json b/catalog-be/src/main/resources/import/tosca/normative-types/blockStorage/blockStorage.json new file mode 100644 index 0000000000..30e3d74bc9 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/blockStorage/blockStorage.json @@ -0,0 +1,20 @@ +{ + "payloadName": "blockStorage.yml", + "contactId": "jh0003", + "name": "BlockStorage", + "description": "Represents a server-local block storage device (i.e., not shared) offering evenly sized blocks of data from which raw storage volumes can be created.", + "resourceIconPath": "objectStorage", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Infrastructure" + } + ] + } +], + "tags": [ + "BlockStorage" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/blockStorage/blockStorage.yml b/catalog-be/src/main/resources/import/tosca/normative-types/blockStorage/blockStorage.yml new file mode 100644 index 0000000000..a82965215f --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/blockStorage/blockStorage.yml @@ -0,0 +1,18 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.BlockStorage: + derived_from: tosca.nodes.Root + properties: + size: + type: scalar-unit.size + constraints: + - greater_or_equal: 1 MB + volume_id: + type: string + required: false + snapshot_id: + type: string + required: false + capabilities: + attachment: + type: tosca.capabilities.Attachment diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/blockStorage/blockStorage.zip b/catalog-be/src/main/resources/import/tosca/normative-types/blockStorage/blockStorage.zip new file mode 100644 index 0000000000..b26f9e2c0e Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/blockStorage/blockStorage.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/compute/compute.json b/catalog-be/src/main/resources/import/tosca/normative-types/compute/compute.json new file mode 100644 index 0000000000..31bb27be16 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/compute/compute.json @@ -0,0 +1,24 @@ +{ + "payloadName": "compute.yml", + "contactId": "jh0003", + "name": "Compute", + "description": "Represents a real or virtual machine or server. Information specified on the Compute + node will be used to find the machine that fits the given requirements in the cloud + available machines. If no sizing information are specified the cloud provider default + machine will be used. It is strongly recommended to specify the required CPUs and memory + at least.", + "resourceIconPath": "compute", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Infrastructure" + } + ] + } +], + "tags": [ + "Compute" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/compute/compute.yml b/catalog-be/src/main/resources/import/tosca/normative-types/compute/compute.yml new file mode 100644 index 0000000000..00b07fb908 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/compute/compute.yml @@ -0,0 +1,35 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.Compute: + derived_from: tosca.nodes.Root + attributes: + private_address: + type: string + public_address: + type: string + networks: + type: map + entry_schema: + type: tosca.datatypes.network.NetworkInfo + ports: + type: map + entry_schema: + type: tosca.datatypes.network.PortInfo + requirements: + - local_storage: + capability: tosca.capabilities.Attachment + node: tosca.nodes.BlockStorage + relationship: tosca.relationships.AttachesTo + occurrences: [0, UNBOUNDED] + capabilities: + host: + type: tosca.capabilities.Container + valid_source_types: [tosca.nodes.SoftwareComponent] + endpoint : + type: tosca.capabilities.Endpoint.Admin + os: + type: tosca.capabilities.OperatingSystem + scalable: + type: tosca.capabilities.Scalable + binding: + type: tosca.capabilities.network.Bindable diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/compute/compute.zip b/catalog-be/src/main/resources/import/tosca/normative-types/compute/compute.zip new file mode 100644 index 0000000000..6c008e866f Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/compute/compute.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/containerApplication/containerApplication.json b/catalog-be/src/main/resources/import/tosca/normative-types/containerApplication/containerApplication.json new file mode 100644 index 0000000000..cd0a1386be --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/containerApplication/containerApplication.json @@ -0,0 +1,20 @@ +{ + "payloadName": "containerApplication.yml", + "contactId": "jh0003", + "name": "Application", + "description": "Represents an application that requires Container-level virtualization technology.", + "resourceIconPath": "defaulticon", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Abstract" + } + ] + } +], + "tags": [ + "Application" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/containerApplication/containerApplication.yml b/catalog-be/src/main/resources/import/tosca/normative-types/containerApplication/containerApplication.yml new file mode 100644 index 0000000000..8813f26e04 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/containerApplication/containerApplication.yml @@ -0,0 +1,9 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.Container.Application: + derived_from: tosca.nodes.Root + requirements: + - host: + capability: tosca.capabilities.Container + node: tosca.nodes.Container + relationship: tosca.relationships.HostedOn diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/containerApplication/containerApplication.zip b/catalog-be/src/main/resources/import/tosca/normative-types/containerApplication/containerApplication.zip new file mode 100644 index 0000000000..cec3e5df6c Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/containerApplication/containerApplication.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/containerRuntime/containerRuntime.json b/catalog-be/src/main/resources/import/tosca/normative-types/containerRuntime/containerRuntime.json new file mode 100644 index 0000000000..85a0c63257 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/containerRuntime/containerRuntime.json @@ -0,0 +1,20 @@ +{ + "payloadName": "containerRuntime.yml", + "contactId": "jh0003", + "name": "Runtime", + "description": "Represents operating system-level virtualization technology used to run multiple application services on a single Compute host.", + "resourceIconPath": "defaulticon", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Abstract" + } + ] + } +], + "tags": [ + "Runtime" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/containerRuntime/containerRuntime.yml b/catalog-be/src/main/resources/import/tosca/normative-types/containerRuntime/containerRuntime.yml new file mode 100644 index 0000000000..86a10a0185 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/containerRuntime/containerRuntime.yml @@ -0,0 +1,9 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.Container.Runtime: + derived_from: tosca.nodes.SoftwareComponent + capabilities: + host: + type: tosca.capabilities.Container + scalable: + type: tosca.capabilities.Scalable diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/containerRuntime/containerRuntime.zip b/catalog-be/src/main/resources/import/tosca/normative-types/containerRuntime/containerRuntime.zip new file mode 100644 index 0000000000..c30aff4098 Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/containerRuntime/containerRuntime.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/database/database.json b/catalog-be/src/main/resources/import/tosca/normative-types/database/database.json new file mode 100644 index 0000000000..f9cf01eb04 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/database/database.json @@ -0,0 +1,20 @@ +{ + "payloadName": "database.yml", + "contactId": "jh0003", + "name": "Database", + "description": "Represents a logical database that can be managed and hosted by a DBMS node.", + "resourceIconPath": "defaulticon", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Database" + } + ] + } +], + "tags": [ + "Database" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/database/database.yml b/catalog-be/src/main/resources/import/tosca/normative-types/database/database.yml new file mode 100644 index 0000000000..5166150c73 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/database/database.yml @@ -0,0 +1,27 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.Database: + derived_from: tosca.nodes.Root + properties: + name: + type: string + description: the logical name of the database + port: + type: integer + description: the port the underlying database service will listen to for data + user: + type: string + description: the optional user account name for DB administration + required: false + password: + type: string + description: the optional password for the DB user account + required: false + requirements: + - host: + capability: tosca.capabilities.Container + node: tosca.nodes.DBMS + relationship: tosca.relationships.HostedOn + capabilities: + database_endpoint: + type: tosca.capabilities.Endpoint.Database diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/database/database.zip b/catalog-be/src/main/resources/import/tosca/normative-types/database/database.zip new file mode 100644 index 0000000000..289e7e5ec1 Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/database/database.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.json b/catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.json new file mode 100644 index 0000000000..d108ee1cbb --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.json @@ -0,0 +1,20 @@ +{ + "payloadName": "loadBalancer.yml", + "contactId": "jh0003", + "name": "LoadBalancer", + "description": "Represents logical function that be used in conjunction with a Floating Address to distribute an application’s traffic (load) across a number of instances of the application (e.g., for a clustered or scaled application).", + "resourceIconPath": "loadBalancer", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Infrastructure" + } + ] + } +], + "tags": [ + "LoadBalancer" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.yml b/catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.yml new file mode 100644 index 0000000000..d577a2aa83 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.yml @@ -0,0 +1,20 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.LoadBalancer: + derived_from: tosca.nodes.Root + properties: + # TBD + algorithm : + type: string + required: false + status: experimental + capabilities : + client: + type: tosca.capabilities.Endpoint.Public + occurrences: [0, UNBOUNDED] + description: the Floating (IP) client’s on the public network can connect to + requirements: + - application: + capability: tosca.capabilities.Endpoint + relationship: tosca.relationships.RoutesTo + occurrences: [0, UNBOUNDED] diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.zip b/catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.zip new file mode 100644 index 0000000000..3a847c6f56 Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/network/network.json b/catalog-be/src/main/resources/import/tosca/normative-types/network/network.json new file mode 100644 index 0000000000..4ba8311ce4 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/network/network.json @@ -0,0 +1,21 @@ +{ + "payloadName": "network.yml", + "contactId": "jh0003", + "name": "Network", + "description": "Represents a simple , logical network service.", + "resourceIconPath": "network", + "resourceType": "VL", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Infrastructure" + } + ] + } +], + "tags": [ + "Network" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/network/network.yml b/catalog-be/src/main/resources/import/tosca/normative-types/network/network.yml new file mode 100644 index 0000000000..9a71e80600 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/network/network.yml @@ -0,0 +1,45 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.network.Network: + derived_from: tosca.nodes.Root + properties: + ip_version: + type: integer + required: false + default: 4 + constraints: + - valid_values: [ 4, 6 ] + cidr: + type: string + required: false + start_ip: + type: string + required: false + end_ip: + type: string + required: false + gateway_ip: + type: string + required: false + network_name: + type: string + required: false + network_id: + type: string + required: false + segmentation_id: + type: string + required: false + network_type: + type: string + required: false + physical_network: + type: string + required: false + dhcp_enabled: + type: boolean + required: false + default: true + capabilities: + link: + type: tosca.capabilities.network.Linkable diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/network/network.zip b/catalog-be/src/main/resources/import/tosca/normative-types/network/network.zip new file mode 100644 index 0000000000..61788a9e39 Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/network/network.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/objectStorage/objectStorage.json b/catalog-be/src/main/resources/import/tosca/normative-types/objectStorage/objectStorage.json new file mode 100644 index 0000000000..dca5a4b89d --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/objectStorage/objectStorage.json @@ -0,0 +1,20 @@ +{ + "payloadName": "objectStorage.yml", + "contactId": "jh0003", + "name": "ObjectStorage", + "description": "Represents storage that provides the ability to store data as objects (or BLOBs of data) without consideration for the underlying filesystem or devices.", + "resourceIconPath": "objectStorage", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Infrastructure" + } + ] + } +], + "tags": [ + "ObjectStorage" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/objectStorage/objectStorage.yml b/catalog-be/src/main/resources/import/tosca/normative-types/objectStorage/objectStorage.yml new file mode 100644 index 0000000000..9c338c3400 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/objectStorage/objectStorage.yml @@ -0,0 +1,18 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.ObjectStorage: + derived_from: tosca.nodes.Root + properties: + name: + type: string + size: + type: scalar-unit.size + constraints: + - greater_or_equal: 0 GB + maxsize: + type: scalar-unit.size + constraints: + - greater_or_equal: 0 GB + capabilities: + storage_endpoint: + type: tosca.capabilities.Endpoint diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/objectStorage/objectStorage.zip b/catalog-be/src/main/resources/import/tosca/normative-types/objectStorage/objectStorage.zip new file mode 100644 index 0000000000..6b15346064 Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/objectStorage/objectStorage.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/port/port.json b/catalog-be/src/main/resources/import/tosca/normative-types/port/port.json new file mode 100644 index 0000000000..2475bef065 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/port/port.json @@ -0,0 +1,21 @@ +{ + "payloadName": "port.yml", + "contactId": "jh0003", + "name": "Port", + "description": "Represents a logical entity that associates between Compute and Network normative types.", + "resourceIconPath": "port", + "resourceType": "CP", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Network Elements" + } + ] + } +], + "tags": [ + "Port" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/port/port.yml b/catalog-be/src/main/resources/import/tosca/normative-types/port/port.yml new file mode 100644 index 0000000000..2d1540b27b --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/port/port.yml @@ -0,0 +1,31 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.network.Port: + derived_from: tosca.nodes.Root + properties: + ip_address: + type: string + required: false + order: + type: integer + required: true + default: 0 + constraints: + - greater_or_equal: 0 + is_default: + type: boolean + required: false + default: false + ip_range_start: + type: string + required: false + ip_range_end: + type: string + required: false + requirements: + - link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - binding: + capability: tosca.capabilities.network.Bindable + relationship: tosca.relationships.network.BindsTo diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/port/port.zip b/catalog-be/src/main/resources/import/tosca/normative-types/port/port.zip new file mode 100644 index 0000000000..0bf97333ce Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/port/port.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/root/root.json b/catalog-be/src/main/resources/import/tosca/normative-types/root/root.json new file mode 100644 index 0000000000..48846bc8be --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/root/root.json @@ -0,0 +1,20 @@ +{ + "payloadName": "root.yml", + "contactId": "jh0003", + "name": "Root", + "description": "Represents a generic software component that can be managed and run by a Compute Node Type.", + "resourceIconPath": "defaulticon", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Abstract" + } + ] + } +], + "tags": [ + "Root" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/root/root.yml b/catalog-be/src/main/resources/import/tosca/normative-types/root/root.yml new file mode 100644 index 0000000000..e9b1de9518 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/root/root.yml @@ -0,0 +1,23 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.Root: + description: The TOSCA Node Type all other TOSCA base Node Types derive from + attributes: + tosca_id: + type: string + tosca_name: + type: string + state: + type: string + capabilities: + feature: + type: tosca.capabilities.Node + requirements: + - dependency : + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + occurrences: [ 0, UNBOUNDED ] + interfaces: + Standard: + type: tosca.interfaces.node.lifecycle.Standard diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/root/root.zip b/catalog-be/src/main/resources/import/tosca/normative-types/root/root.zip new file mode 100644 index 0000000000..b336a9dca3 Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/root/root.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/softwareComponent/softwareComponent.json b/catalog-be/src/main/resources/import/tosca/normative-types/softwareComponent/softwareComponent.json new file mode 100644 index 0000000000..ab8eda95eb --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/softwareComponent/softwareComponent.json @@ -0,0 +1,20 @@ +{ + "payloadName": "softwareComponent.yml", + "contactId": "jh0003", + "name": "SoftwareComponent", + "description": "Represents a generic software component that can be managed and run by a Compute Node Type.", + "resourceIconPath": "defaulticon", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Abstract" + } + ] + } +], + "tags": [ + "SoftwareComponent" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/softwareComponent/softwareComponent.yml b/catalog-be/src/main/resources/import/tosca/normative-types/softwareComponent/softwareComponent.yml new file mode 100644 index 0000000000..a154632c74 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/softwareComponent/softwareComponent.yml @@ -0,0 +1,17 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.SoftwareComponent: + derived_from: tosca.nodes.Root + properties: + # domain-specific software component version + component_version: + type: version + required: false + admin_credential: + type: tosca.datatypes.Credential + required: false + requirements: + - host: + capability: tosca.capabilities.Container + node: tosca.nodes.Compute + relationship: tosca.relationships.HostedOn diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/softwareComponent/softwareComponent.zip b/catalog-be/src/main/resources/import/tosca/normative-types/softwareComponent/softwareComponent.zip new file mode 100644 index 0000000000..f77816b83f Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/softwareComponent/softwareComponent.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/webApplication/webApplication.json b/catalog-be/src/main/resources/import/tosca/normative-types/webApplication/webApplication.json new file mode 100644 index 0000000000..63c2936648 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/webApplication/webApplication.json @@ -0,0 +1,20 @@ +{ + "payloadName": "webApplication.yml", + "contactId": "jh0003", + "name": "WebApplication", + "description": "Represents a software application that can be managed and run by a Web Server node. Specific types of web applications such as Java, etc. could be derived from this type.", + "resourceIconPath": "defaulticon", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Abstract" + } + ] + } +], + "tags": [ + "WebApplication" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/webApplication/webApplication.yml b/catalog-be/src/main/resources/import/tosca/normative-types/webApplication/webApplication.yml new file mode 100644 index 0000000000..5f9a775fe0 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/webApplication/webApplication.yml @@ -0,0 +1,15 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.WebApplication: + derived_from: tosca.nodes.Root + properties: + context_root: + type: string + capabilities: + app_endpoint: + type: tosca.capabilities.Endpoint + requirements: + - host: + capability: tosca.capabilities.Container + node: tosca.nodes.WebServer + relationship: tosca.relationships.HostedOn diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/webApplication/webApplication.zip b/catalog-be/src/main/resources/import/tosca/normative-types/webApplication/webApplication.zip new file mode 100644 index 0000000000..0b1889bd8e Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/webApplication/webApplication.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/webServer/webServer.json b/catalog-be/src/main/resources/import/tosca/normative-types/webServer/webServer.json new file mode 100644 index 0000000000..058af97664 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/webServer/webServer.json @@ -0,0 +1,20 @@ +{ + "payloadName": "webServer.yml", + "contactId": "jh0003", + "name": "WebServer", + "description": "Represents an abstract software component or service that is capable of hosting and providing management operations for one or more Web Application nodes.", + "resourceIconPath": "defaulticon", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Abstract" + } + ] + } +], + "tags": [ + "WebServer" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/webServer/webServer.yml b/catalog-be/src/main/resources/import/tosca/normative-types/webServer/webServer.yml new file mode 100644 index 0000000000..7c957b5247 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/webServer/webServer.yml @@ -0,0 +1,11 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.WebServer: + derived_from: tosca.nodes.SoftwareComponent + capabilities: + # Private, layer 4 endpoints + data_endpoint: tosca.capabilities.Endpoint + admin_endpoint: tosca.capabilities.Endpoint.Admin + host: + type: tosca.capabilities.Container + valid_source_types: [ tosca.nodes.WebApplication ] \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/webServer/webServer.zip b/catalog-be/src/main/resources/import/tosca/normative-types/webServer/webServer.zip new file mode 100644 index 0000000000..45bee47eff Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/webServer/webServer.zip differ -- cgit 1.2.3-korg