summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser/toscaparser/tests/data/custom_types/custom_cap.yaml
blob: 018bcf6a6b336ac16df8fd97fe11718e047768e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
tosca_definitions_version: tosca_simple_yaml_1_0

capability_types:

  tosca.capabilities.SomeCap:
    derived_from: tosca.capabilities.Container

node_types:

  tosca.nodes.NodeWithReq:
    derived_from: tosca.nodes.SoftwareComponent
    requirements:
      - host:
          capability: tosca.capabilities.SomeCap
          relationship: tosca.relationships.HostedOn
          occurrences: [1, 1]

  tosca.nodes.NodeWithCap:
    derived_from: tosca.nodes.SoftwareComponent
    capabilities:
      host:
        type: tosca.capabilities.SomeCap