[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-enrichment-lib / openecomp-sdc-enrichment-impl / src / test / resources / mock / toscaGlobalServiceTemplates / tosca / relationships.yml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2 metadata:
3   filename: tosca/relationships.yml
4   version: '1.0'
5 imports:
6 - tosca_index:
7     file: _index.yml
8 relationship_types:
9   tosca.relationships.Root:
10     description: This is the default (root) TOSCA Relationship Type definition that all other TOSCA Relationship Types derive from.
11     attributes:
12       tosca_id:
13         type: string
14         description: A unique identifier of the realized instance of a Relationship Template that derives from any TOSCA normative type.
15         status: SUPPORTED
16       tosca_name:
17         type: string
18         description: This attribute reflects the name of the Relationship Template as defined in the TOSCA service template. This name is not unique to the realized instance model of corresponding deployed application as each template in the model can result in one or more instances (e.g., scaled) when orchestrated to a provider environment.
19         status: SUPPORTED
20       state:
21         type: string
22         description: The state of the relationship instance.
23         default: initial
24         status: SUPPORTED
25     interfaces:
26       Configure:
27         type: tosca.interfaces.relationship.Configure
28   tosca.relationships.RoutesTo:
29     derived_from: tosca.relationships.ConnectsTo
30     description: This type represents an intentional network routing between two Endpoints in different networks.
31     valid_target_types:
32     - tosca.capabilities.Endpoint
33   tosca.relationships.network.LinksTo:
34     derived_from: tosca.relationships.DependsOn
35     description: This relationship type represents an association relationship between Port and Network node types.
36     valid_target_types:
37     - tosca.capabilities.network.Linkable
38   tosca.relationships.AttachesTo:
39     derived_from: tosca.relationships.Root
40     description: This type represents an attachment relationship between two nodes. For example, an AttachesTo relationship type would be used for attaching a storage node to a Compute node.
41     properties:
42       location:
43         type: string
44         description: 'The relative location (e.g., path on the file system), which
45           provides the root location to address an attached node. e.g., a mount point
46           / path such as ''/usr/data''. Note: The user must provide it and it cannot
47           be "root".'
48         required: true
49         status: SUPPORTED
50         constraints:
51         - min_length: 1
52       device:
53         type: string
54         description: The logical device name which for the attached device (which is represented by the target node in the model). e.g., '/dev/hda1'.
55         required: false
56         status: SUPPORTED
57     attributes:
58       device:
59         type: string
60         description: 'The logical name of the device as exposed to the instance. Note:
61           A runtime property that gets set when the model gets instantiated by the
62           orchestrator.'
63         status: SUPPORTED
64     valid_target_types:
65     - tosca.capabilities.Attachment
66   tosca.relationships.network.BindsTo:
67     derived_from: tosca.relationships.DependsOn
68     description: This type represents a network association relationship between Port and Compute node types.
69     valid_target_types:
70     - tosca.capabilities.network.Bindable
71   tosca.relationships.HostedOn:
72     derived_from: tosca.relationships.Root
73     description: This type represents a hosting relationship between two nodes.
74     valid_target_types:
75     - tosca.capabilities.Container
76   tosca.relationships.DependsOn:
77     derived_from: tosca.relationships.Root
78     description: This type represents a general dependency relationship between two nodes.
79     valid_target_types:
80     - tosca.capabilities.Node
81   tosca.relationships.ConnectsTo:
82     derived_from: tosca.relationships.Root
83     description: This type represents a network connection relationship between two nodes.
84     properties:
85       credential:
86         type: tosca.datatypes.Credential
87         required: false
88         status: SUPPORTED
89     valid_target_types:
90     - tosca.capabilities.Endpoint