docs: fix issues
[parser.git] / tosca2heat / tosca-parser-0.3.0 / toscaparser / tests / data / topology_template / definitions.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 node_types:
4   example.TransactionSubsystem:
5     properties:
6       mq_server_ip:
7         type: string
8       receiver_port:
9         type: integer
10     attributes:
11       receiver_ip:
12         type: string
13       receiver_port:
14         type: integer
15     capabilities:
16       message_receiver:
17         type: example.capabilities.Receiver
18     requirements:
19       - database_endpoint:
20           capability: tosca.capabilities.Endpoint.Database
21           node: tosca.nodes.Database
22           relationship: tosca.relationships.ConnectsTo
23
24   example.QueuingSubsystem:
25     derived_from: tosca.nodes.SoftwareComponent
26     requirements:
27       - receiver1:
28           node: example.TransactionSubsystem
29           relationship: tosca.relationships.ConnectsTo
30       - receiver2:
31           node: example.TransactionSubsystem
32           relationship: tosca.relationships.ConnectsTo
33
34   example.DatabaseSubsystem:
35     derived_from: tosca.nodes.Database
36
37   example.SomeApp:
38     derived_from: tosca.nodes.SoftwareComponent
39     properties:
40       admin_user:
41         type: string
42       pool_size:
43         type: integer
44     capabilities:
45       message_receiver:
46         type: example.capabilities.Receiver
47
48 capability_types:
49    example.capabilities.Receiver:
50      derived_from: tosca.capabilities.Endpoint
51      properties:
52        server_ip:
53          type: string
54