forked from kubevirt/kubevirt
/
schema_swagger_generated.go
281 lines (244 loc) · 12.9 KB
/
schema_swagger_generated.go
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
// Automatically generated by swagger-doc. DO NOT EDIT!
package v1
func (CloudInitNoCloudSource) SwaggerDoc() map[string]string {
return map[string]string{
"": "Represents a cloud-init nocloud user data source\nMore info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html",
"secretRef": "UserDataSecretRef references a k8s secret that contains NoCloud userdata\n+ optional",
"userDataBase64": "UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string\n+ optional",
"userData": "UserData contains NoCloud inline cloud-init userdata\n+ optional",
}
}
func (DomainSpec) SwaggerDoc() map[string]string {
return map[string]string{
"resources": "Resources describes the Compute Resources required by this vm.",
"cpu": "CPU allow specified the detailed CPU topology inside the vm.\n+optional",
"machine": "Machine type\n+optional",
"firmware": "Firmware\n+optional",
"clock": "Clock sets the clock and timers of the vm.\n+optional",
"features": "Features like acpi, apic, hyperv\n+optional",
"devices": "Devices allows adding disks, network interfaces, ...",
}
}
func (ResourceRequirements) SwaggerDoc() map[string]string {
return map[string]string{
"requests": "Requests is a description of the initial vm resources.\nValid resource keys are \"memory\" and \"cpu\".\n+optional",
"limits": "Limits describes the maximum amount of compute resources allowed.\nValid resource keys are \"memory\" and \"cpu\".\n+optional",
}
}
func (CPU) SwaggerDoc() map[string]string {
return map[string]string{
"": "CPU allow specifying the CPU topology",
"cores": "Cores specifies the number of cores inside the vm.\nMust be a value greater or equal 1.",
}
}
func (Machine) SwaggerDoc() map[string]string {
return map[string]string{
"type": "QEMU machine type is the actual chipset of the VM.",
}
}
func (Firmware) SwaggerDoc() map[string]string {
return map[string]string{
"uuid": "UUID reported by the vm bios\nDefaults to a random generated uid",
}
}
func (Devices) SwaggerDoc() map[string]string {
return map[string]string{
"disks": "Disks describes disks, cdroms, floppy and luns which are connected to the vm",
"watchdog": "Watchdog describes a watchdog device which can be added to the vm",
}
}
func (Disk) SwaggerDoc() map[string]string {
return map[string]string{
"name": "Name is the device name",
"volumeName": "Name of the volume which is referenced\nMust match the Name of a Volume.",
}
}
func (DiskDevice) SwaggerDoc() map[string]string {
return map[string]string{
"": "Represents the target of a volume to mount.\nOnly one of its members may be specified.",
"disk": "Attach a volume as a disk to the vm",
"lun": "Attach a volume as a LUN to the vm",
"floppy": "Attach a volume as a floppy to the vm",
"cdrom": "Attach a volume as a cdrom to the vm",
}
}
func (DiskTarget) SwaggerDoc() map[string]string {
return map[string]string{
"bus": "Bus indicates the type of disk device to emulate.\nsupported values: virtio, sata, scsi, ide",
"readonly": "ReadOnly\nDefaults to false",
}
}
func (LunTarget) SwaggerDoc() map[string]string {
return map[string]string{
"bus": "Bus indicates the type of disk device to emulate.\nsupported values: virtio, sata, scsi, ide",
"readonly": "ReadOnly\nDefaults to false",
}
}
func (FloppyTarget) SwaggerDoc() map[string]string {
return map[string]string{
"readonly": "ReadOnly\nDefaults to false",
"tray": "Tray indicates if the tray of the device is open or closed.\nAllowed values are \"open\" and \"closed\"\nDefaults to closed\n+optional",
}
}
func (CDRomTarget) SwaggerDoc() map[string]string {
return map[string]string{
"bus": "Bus indicates the type of disk device to emulate.\nsupported values: virtio, sata, scsi, ide",
"readonly": "ReadOnly\nDefaults to true",
"tray": "Tray indicates if the tray of the device is open or closed.\nAllowed values are \"open\" and \"closed\"\nDefaults to closed\n+optional",
}
}
func (Volume) SwaggerDoc() map[string]string {
return map[string]string{
"": "Volume represents a named volume in a vm.",
"name": "Volume's name.\nMust be a DNS_LABEL and unique within the vm.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
}
}
func (VolumeSource) SwaggerDoc() map[string]string {
return map[string]string{
"": "Represents the source of a volume to mount.\nOnly one of its members may be specified.",
"persistentVolumeClaim": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace.\nDirectly attached to the vm via qemu.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\n+optional",
"cloudInitNoCloud": "CloudInitNoCloud represents a cloud-init NoCloud user-data source.\nThe NoCloud data will be added as a disk to the vm. A proper cloud-init installation is required inside the guest.\nMore info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html\n+optional",
"registryDisk": "RegistryDisk references a docker image, embedding a qcow or raw disk\nMore info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html\n+optional",
"ephemeral": "Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it.\n+optional",
"emptyDisk": "EmptyDisk represents a temporary disk which shares the vms lifecycle\nMore info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html\n+optional",
}
}
func (EphemeralVolumeSource) SwaggerDoc() map[string]string {
return map[string]string{
"persistentVolumeClaim": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace.\nDirectly attached to the vm via qemu.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\n+optional",
}
}
func (EmptyDiskSource) SwaggerDoc() map[string]string {
return map[string]string{
"": "EmptyDisk represents a temporary disk which shares the vms lifecycle",
"capacity": "Capacity of the sparse disk.",
}
}
func (RegistryDiskSource) SwaggerDoc() map[string]string {
return map[string]string{
"": "Represents a docker image with an embedded disk",
"image": "Image is the name of the image with the embedded disk",
"imagePullSecret": "ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.",
}
}
func (ClockOffset) SwaggerDoc() map[string]string {
return map[string]string{
"": "Exactly one of its members must be set.",
"utc": "UTC sets the guest clock to UTC on each boot. If an offset is specified,\nguest changes to the clock will be kept during reboots and are not reset.",
"timezone": "Timezone sets the guest clock to the specified timezone.\nZone name follows the TZ environment variable format (e.g. 'America/New_York')",
}
}
func (ClockOffsetUTC) SwaggerDoc() map[string]string {
return map[string]string{
"": "UTC sets the guest clock to UTC on each boot.",
"offsetSeconds": "OffsetSeconds specifies an offset in seconds, relative to UTC. If set,\nguest changes to the clock will be kept during reboots and not reset.",
}
}
func (Clock) SwaggerDoc() map[string]string {
return map[string]string{
"": "Represents the clock and timers of a vm",
"timer": "Timer specifies whih timers are attached to the vm",
}
}
func (Timer) SwaggerDoc() map[string]string {
return map[string]string{
"": "Represents all available timers in a vm",
"hpet": "HPET (High Precision Event Timer) - multiple timers with periodic interrupts.",
"kvm": "KVM \t(KVM clock) - lets guests read the host’s wall clock time (paravirtualized). For linux guests.",
"pit": "PIT (Programmable Interval Timer) - a timer with periodic interrupts.",
"rtc": "RTC (Real Time Clock) - a continuously running timer with periodic interrupts.",
"hyperv": "Hyperv (Hypervclock) - lets guests read the host’s wall clock time (paravirtualized). For windows guests.",
}
}
func (RTCTimer) SwaggerDoc() map[string]string {
return map[string]string{
"tickPolicy": "TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest\nOne of \"delay\", \"catchup\"",
"present": "Enabled set to false makes sure that the machine type or a preset can't add the timer.\nDefaults to true\n+optional",
"track": "Track the guest or the wall clock",
}
}
func (HPETTimer) SwaggerDoc() map[string]string {
return map[string]string{
"tickPolicy": "TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest\nOne of \"delay\", \"catchup\", \"merge\", \"discard\"",
"present": "Enabled set to false makes sure that the machine type or a preset can't add the timer.\nDefaults to true\n+optional",
}
}
func (PITTimer) SwaggerDoc() map[string]string {
return map[string]string{
"tickPolicy": "TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest\nOne of \"delay\", \"catchup\", \"discard\"",
"present": "Enabled set to false makes sure that the machine type or a preset can't add the timer.\nDefaults to true\n+optional",
}
}
func (KVMTimer) SwaggerDoc() map[string]string {
return map[string]string{
"present": "Enabled set to false makes sure that the machine type or a preset can't add the timer.\nDefaults to true\n+optional",
}
}
func (HypervTimer) SwaggerDoc() map[string]string {
return map[string]string{
"present": "Enabled set to false makes sure that the machine type or a preset can't add the timer.\nDefaults to true\n+optional",
}
}
func (Features) SwaggerDoc() map[string]string {
return map[string]string{
"acpi": "ACPI enables/disables ACPI insidejsondata guest\nDefaults to enabled\n+optional",
"apic": "Defaults to the machine type setting\n+optional",
"hyperv": "Defaults to the machine type setting\n+optional",
}
}
func (FeatureState) SwaggerDoc() map[string]string {
return map[string]string{
"": "Represents if a feature is enabled or disabled",
"enabled": "Enabled determines if the feature should be enabled or disabled on the guest\nDefaults to true\n+optional",
}
}
func (FeatureAPIC) SwaggerDoc() map[string]string {
return map[string]string{
"enabled": "Enabled determines if the feature should be enabled or disabled on the guest\nDefaults to true\n+optional",
"endOfInterrupt": "EndOfInterrupt enables the end of interrupt notification in the guest\nDefaults to false\n+optional",
}
}
func (FeatureSpinlocks) SwaggerDoc() map[string]string {
return map[string]string{
"enabled": "Enabled determines if the feature should be enabled or disabled on the guest\nDefaults to true\n+optional",
"spinlocks": "Retries indicates the number of retries\nMust be a value greater or equal 4096\nDefaults to 4096\n+optional",
}
}
func (FeatureVendorID) SwaggerDoc() map[string]string {
return map[string]string{
"enabled": "Enabled determines if the feature should be enabled or disabled on the guest\nDefaults to true\n+optional",
"vendorid": "VendorID sets the hypervisor vendor id, visible to the vm\nString up to twelve characters",
}
}
func (FeatureHyperv) SwaggerDoc() map[string]string {
return map[string]string{
"": "Hyperv specific features",
"relaxed": "Relaxed relaxes constraints on timer\nDefaults to the machine type setting\n+optional",
"vapic": "VAPIC indicates whether virtual APIC is enabled\nDefaults to the machine type setting\n+optional",
"spinlocks": "Spinlocks indicates if spinlocks should be made available to the guest\n+optional",
"vpindex": "VPIndex enables the Virtual Processor Index to help windows identifying virtual processors\nDefaults to the machine type setting\n+optional",
"runtime": "Runtime\nDefaults to the machine type setting\n+optional",
"synic": "SyNIC enable Synthetic Interrupt Controller\nDefaults to the machine type setting\n+optional",
"synictimer": "SyNICTimer enable Synthetic Interrupt Controller timer\nDefaults to the machine type setting\n+optional",
"reset": "Reset enables Hyperv reboot/reset for the vm\nDefaults to the machine type setting\n+optional",
"vendorid": "VendorID allows setting the hypervisor vendor id\nDefaults to the machine type setting\n+optional",
}
}
func (Watchdog) SwaggerDoc() map[string]string {
return map[string]string{
"": "Named watchdog device",
"name": "Name of the watchdog",
}
}
func (WatchdogDevice) SwaggerDoc() map[string]string {
return map[string]string{
"": "Hardware watchdog device\nExactly one of its members must be set.",
"i6300esb": "i6300esb watchdog device\n+optional",
}
}
func (I6300ESBWatchdog) SwaggerDoc() map[string]string {
return map[string]string{
"": "i6300esb watchdog device",
"action": "The action to take. Valid values are poweroff, reset, shutdown.\nDefaults to reset",
}
}