Add missing 'scalar-unit.bitrate' data type
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / test / resources / extractServiceComposition / toscaGlobalServiceTemplates / tosca / data.yml
1 #
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at
5 #
6 #      http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13 #
14
15 tosca_definitions_version: tosca_simple_yaml_1_0
16
17 metadata:
18   filename: tosca/data.yml
19   version: '1.0'
20   
21 imports:
22 - tosca_index:
23     file: _index.yml
24
25 data_types:
26   tosca.datatypes.Root:
27     description: The TOSCA root Data Type all other TOSCA base Data Types derive from
28
29   string:
30     derived_from: tosca.datatypes.Root
31
32   integer:
33     derived_from: tosca.datatypes.Root
34
35   boolean:
36     derived_from: tosca.datatypes.Root
37
38   float:
39     derived_from: tosca.datatypes.Root
40
41   range:
42     derived_from: tosca.datatypes.Root
43
44   list:
45     derived_from: tosca.datatypes.Root
46
47   map:
48     derived_from: tosca.datatypes.Root
49
50   timestamp:
51     derived_from: tosca.datatypes.Root
52
53   version:
54     derived_from: tosca.datatypes.Root
55
56   scalar-unit.size:
57     derived_from: tosca.datatypes.Root
58
59   scalar-unit.frequency:
60     derived_from: tosca.datatypes.Root
61
62   scalar-unit.time:
63     derived_from: tosca.datatypes.Root
64
65   scalar-unit.bitrate:
66     derived_from: tosca.datatypes.Root
67
68   tosca.datatypes.network.NetworkInfo:
69     derived_from: tosca.datatypes.Root
70     description: The Network type is a complex TOSCA data type used to describe logical network information.
71     properties:
72       network_name:
73         description: The name of the logical network. e.g., "public", "private", "admin". etc.
74         type: string
75         required: false
76       network_id:
77         description: The unique ID of for the network generated by the network provider.
78         type: string
79         required: false
80       addresses:
81         description: The list of IP addresses assigned from the underlying network.
82         type: list
83         entry_schema:
84           type: string
85         required: false
86
87   tosca.datatypes.TimeInterval:
88     derived_from: tosca.datatypes.Root
89     properties:
90       start_time:
91         type: timestamp
92         required: true
93       end_time:
94         type: timestamp
95         required: true
96
97   tosca.datatypes.network.PortSpec:
98     derived_from: tosca.datatypes.Root
99     description: The PortSpec type is a complex TOSCA data Type used when describing port specifications for a network connection.
100     properties:
101       protocol:
102         description: The required protocol used on the port.
103         type: string
104         default: tcp
105         constraints:
106         - valid_values:
107           - udp
108           - tcp
109           - igmp
110       source:
111         description: The optional source port.
112         type: tosca.datatypes.network.PortDef
113         required: false
114       source_range:
115         description: The optional range for source port.
116         type: range
117         required: false
118         constraints:
119         - in_range:
120           - 1
121           - 65535
122       target:
123         description: The optional target port.
124         type: tosca.datatypes.network.PortDef
125         required: false
126       target_range:
127         description: The optional range for target port.
128         type: range
129         required: false
130         constraints:
131         - in_range:
132           - 1
133           - 65535
134
135   tosca.datatypes.network.PortDef:
136     derived_from: integer
137     description: The PortDef type is a TOSCA data Type used to define a network port.
138     constraints:
139     - in_range:
140       - 1
141       - 65535
142
143   tosca.datatypes.network.PortInfo:
144     derived_from: tosca.datatypes.Root
145     description: The PortInfo type is a complex TOSCA data type used to describe network port information.
146     properties:
147       port_name:
148         description: The logical network port name.
149         type: string
150         required: false
151       port_id:
152         description: The unique ID for the network port generated by the network provider.
153         type: string
154         required: false
155       network_id:
156         description: The unique ID for the network.
157         type: string
158         required: false
159       mac_address:
160         description: The unique media access control address (MAC address) assigned to the port.
161         type: string
162         required: false
163       addresses:
164         description: The list of IP address(es) assigned to the port.
165         type: list
166         entry_schema:
167           type: string
168         required: false
169
170   tosca.datatypes.Credential:
171     derived_from: tosca.datatypes.Root
172     description: The Credential type is a complex TOSCA data Type used when describing authorization credentials used to access network accessible resources.
173     properties:
174       protocol:
175         description: The optional protocol name.
176         type: string
177         required: false
178       token_type:
179         description: The required token type.
180         type: string
181         default: password
182       token:
183         description: The required token used as a credential for authorization or access to a networked resource.
184         type: string
185       keys:
186         description: The optional list of protocol-specific keys or assertions.
187         type: map
188         entry_schema:
189           type: string
190         required: false
191       user:
192         description: The optional user (name or ID) used for non-token based credentials.
193         type: string
194         required: false