forked from oasis-open/tosca-community-contributions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
relationship.yaml
109 lines (96 loc) · 3.52 KB
/
relationship.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
tosca_definitions_version: tosca_simple_yaml_1_0
namespace: http://docs.oasis-open.org/tosca/ns/simple/yaml/1.0
metadata:
template_name: tosca-normative-relationship-types
template_author: TOSCA TC
template_version: 1.0.0
description: >-
This TOSCA definitions document contains the TOSCA Simple Profile
relationship types as defined in the TOSCA Simple Profile for YAML
v1.0 specification.
imports:
- data.yaml
- capability.yaml
- interface.yaml
relationship_types:
tosca.relationships.Root:
description: >-
The TOSCA root Relationship Type all other TOSCA base
Relationship Types derive from
attributes:
tosca_id:
type: string
description: >-
A unique identifier of the realized instance of a
Relationship Template that derives from any TOSCA normative
type.
tosca_name:
type: string
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.
state:
type: string
description: The state of the relationship instance.
default: initial
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
tosca.relationships.DependsOn:
derived_from: tosca.relationships.Root
description: >-
This type represents a general dependency relationship between
two nodes.
valid_target_types: [ tosca.capabilities.Node ]
tosca.relationships.HostedOn:
derived_from: tosca.relationships.Root
description: >-
This type represents a hosting relationship between two nodes.
valid_target_types: [ tosca.capabilities.Container ]
tosca.relationships.ConnectsTo:
derived_from: tosca.relationships.Root
description: >-
This type represents a network connection relationship between
two nodes.
valid_target_types: [ tosca.capabilities.Endpoint ]
properties:
credential:
type: tosca.datatypes.Credential
description: >-
The security credential to use to present to the target
endpoint to for either authentication or authorization
purposes.
required: false
tosca.relationships.AttachesTo:
derived_from: tosca.relationships.Root
valid_target_types: [ tosca.capabilities.Attachment ]
properties:
location:
type: string
constraints:
- min_length: 1
device:
type: string
required: false
tosca.relationships.RoutesTo:
derived_from: tosca.relationships.ConnectsTo
description: >-
This type represents an intentional network routing between two
Endpoints in different networks.
valid_target_types: [ tosca.capabilities.Endpoint ]
tosca.relationships.network.LinksTo:
derived_from: tosca.relationships.DependsOn
description: >
This relationship type represents an association relationship between
Port and Network node types.
valid_target_types: [ tosca.capabilities.network.Linkable ]
tosca.relationships.network.BindsTo:
derived_from: tosca.relationships.DependsOn
description: >
This type represents a network association relationship between Port
and Compute node types.
valid_target_types: [ tosca.capabilities.network.Bindable ]