Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A type definition is identified with its name and version. The name and version would be specified in the main YAML file as metadata.

 

Sample meta-data information from a type-definitions file

tosca_definitions_version: tosca_simple_yaml_1_0

 

metadata:

    template_name: test

...

    template_author: evevenu

...

    template_version: "1.0"

 

ARIA provides CLI commands to load, show, list and delete type definitions.

A YAML file with topology template will not be considered as type definition and a validation error will be thrown when we try to load such a type-definition.

...

The type-definition YAML files are stored in the ARIA resource storage under the repository named "type-definitions". The loaded type-definition files are available and can be imported in multiple service templates.

By this TOSCA non-normative types are globally available for service template authors and users don't need to package the non-normative types as part of their CSAR package.

Import a type-definition in the service template

imports:

    - file: <name>_<version>

      repository: type_definitions