push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / global_types / expectedoutputfiles / CinderVolumeGlobalTypesServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: CinderVolumeGlobalTypes
4   template_version: 1.0.0
5 description: Cinder Volume TOSCA Global Types
6 relationship_types:
7   org.openecomp.relationships.heat.cinder.VolumeAttachesTo:
8     derived_from: tosca.relationships.AttachesTo
9     description: This type represents an attachment relationship for associating volume
10     properties:
11       volume_id:
12         type: string
13         description: The ID of the volume to be attached
14         required: true
15         status: SUPPORTED
16       location:
17         type: string
18         description: The location where the volume is exposed on the instance, mountpoint
19         required: false
20         status: SUPPORTED
21       instance_uuid:
22         type: string
23         description: The ID of the server to which the volume attaches
24         required: true
25         status: SUPPORTED
26     attributes:
27       show:
28         type: string
29         description: Detailed information about resource
30         status: SUPPORTED
31 node_types:
32   org.openecomp.resource.vfc.nodes.heat.cinder.Volume:
33     derived_from: tosca.nodes.BlockStorage
34     properties:
35       availability_zone:
36         type: string
37         description: The availability zone in which the volume will be created
38         required: false
39         status: SUPPORTED
40       image:
41         type: string
42         description: If specified, the name or ID of the image to create the volume from
43         required: false
44         status: SUPPORTED
45       metadata:
46         type: map
47         description: Key/value pairs to associate with the volume
48         required: false
49         status: SUPPORTED
50         entry_schema:
51           type: string
52       volume_type:
53         type: string
54         description: If specified, the type of volume to use, mapping to a specific backend
55         required: false
56         status: SUPPORTED
57       description:
58         type: string
59         description: A description of the volume
60         required: false
61         status: SUPPORTED
62       device_type:
63         type: string
64         description: Device type
65         required: false
66         status: SUPPORTED
67         constraints:
68         - valid_values:
69           - cdrom
70           - disk
71       disk_bus:
72         type: string
73         description: 'Bus of the device: hypervisor driver chooses a suitable default
74           if omitted'
75         required: false
76         status: SUPPORTED
77         constraints:
78         - valid_values:
79           - ide
80           - lame_bus
81           - scsi
82           - usb
83           - virtio
84       backup_id:
85         type: string
86         description: If specified, the backup to create the volume from
87         required: false
88         status: SUPPORTED
89       source_volid:
90         type: string
91         description: If specified, the volume to use as source
92         required: false
93         status: SUPPORTED
94       boot_index:
95         type: integer
96         description: Integer used for ordering the boot disks
97         required: false
98         status: SUPPORTED
99       size:
100         type: scalar-unit.size
101         description: The requested storage size (default unit is MB)
102         required: false
103         status: SUPPORTED
104         constraints:
105         - greater_or_equal: 1 GB
106       read_only:
107         type: boolean
108         description: Enables or disables read-only access mode of volume
109         required: false
110         status: SUPPORTED
111       name:
112         type: string
113         description: A name used to distinguish the volume
114         required: false
115         status: SUPPORTED
116       scheduler_hints:
117         type: map
118         description: Arbitrary key-value pairs specified by the client to help the Cinder scheduler creating a volume
119         required: false
120         status: SUPPORTED
121         entry_schema:
122           type: string
123       swap_size:
124         type: scalar-unit.size
125         description: The size of the swap, in MB
126         required: false
127         status: SUPPORTED
128       delete_on_termination:
129         type: boolean
130         description: Indicate whether the volume should be deleted when the server is terminated
131         required: false
132         status: SUPPORTED
133       multiattach:
134         type: boolean
135         description: Whether allow the volume to be attached more than once
136         required: false
137         status: SUPPORTED
138     attributes:
139       display_description:
140         type: string
141         description: Description of the volume
142         status: SUPPORTED
143       attachments:
144         type: string
145         description: The list of attachments of the volume
146         status: SUPPORTED
147         entry_schema:
148           type: string
149       encrypted:
150         type: boolean
151         description: Boolean indicating if the volume is encrypted or not
152         status: SUPPORTED
153       show:
154         type: string
155         description: Detailed information about resource
156         status: SUPPORTED
157       created_at:
158         type: timestamp
159         description: The timestamp indicating volume creation
160         status: SUPPORTED
161       display_name:
162         type: string
163         description: Name of the volume
164         status: SUPPORTED
165       metadata_values:
166         type: map
167         description: Key/value pairs associated with the volume in raw dict form
168         status: SUPPORTED
169         entry_schema:
170           type: string
171       bootable:
172         type: boolean
173         description: Boolean indicating if the volume can be booted or not
174         status: SUPPORTED
175       status:
176         type: string
177         description: The current status of the volume
178         status: SUPPORTED