blob: ded4c2680961b292228fb29ca5cf81976ae8a121 (
plain)
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
#
# Copyright (c) 2017 <AT&T>. All rights reserved.
# ===================================================================
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for
# the specific language governing permissions and limitations under the License.
#
tosca_definitions_version: tosca_simple_yaml_1_1
description: full service template
data_types:
data_type_1:
derived_from: tosca.datatypes.Root
description: test data type 1
version: "1.0"
properties:
data_field_11:
type: string
required: true
description: test data field 11
data_field_12:
type: integer
required: true
description: test data field 12
constraints:
- valid_values: [ 1, 12,24 ]
data_type_2:
derived_from: data_type_1
description: test data type 2
version: "1.0"
properties:
data_field_21:
type: string
required: true
description: test data field 21
constraints:
- max_length: 128
artifact_types:
artifact_type_1:
derived_from: tosca.artifacts.File
description: Some test bytes
mime_type: application/octet-stream
file_ext: [ tst ]
capability_types:
capability_type_1:
derived_from: tosca.capabilities.Root
properties:
capability_type_1_property_1:
type: string
capability_type_2:
derived_from: tosca.capabilities.Root
properties:
capability_type_2_property_1:
type: string
node_types:
node_type_1:
properties:
node_type_1_property_1:
type: data_type_1
capabilities:
node_type_1_capability_1:
type: capability_type_1
requirements:
- node_type_1_requirement_2:
capability: capability_type_2
node: node_type_2
relationship: relationship_type_12
node_type_2:
properties:
node_type_2_property_1:
type: data_type_2
capabilities:
node_type_2_capability_2:
type: capability_type_2
artifacts:
node_type_2_artifact_1:
type: artifact_type_1
interfaces:
node_type_2_interface_1:
type: interface_type_1
interface_types:
interface_type_1:
derived_from: tosca.interfaces.Root
description: test interface type
# inputs:
# interface_type_1_input_1:
# type: string
interface_type_1_op_1:
description: test interface operation
interface_type_2:
derived_from: tosca.interfaces.node.lifecycle.Standard
relationship_types:
relationship_type_12:
derived_from: tosca.relationships.ConnectsTo
description: test relationship type
interfaces:
relationship_type_12_interface_1:
type: interface_type_2
topology_template:
node_templates:
node_1:
type: node_type_1
properties:
node_type_1_property_1: { data_field_11: "11", data_field_12: 12 }
capabilities:
node_type_1_capability_1:
properties:
capability_type_1_property_1: value_1
requirements:
- node_type_1_requirement_2:
node_filter:
capabilities:
- node_type_2_capability_2:
properties:
- capability_type_2_property_1: { equal: "value2" }
node_2:
type: node_type_2
properties:
node_type_2_property_1: { data_field_11: "11", data_field_12: 12, data_field_21: "21" }
capabilities:
node_type_2_capability_2:
properties:
capability_type_2_property_1: value_2
relationship_templates:
relationship_1:
type: relationship_type_12
# interfaces:
# relationship_type_1_interface_1:
|