@kubevirt-ui-ext/kubevirt-api 1.8.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -21
- package/dist/console/index.cjs +1 -1
- package/dist/console/index.cjs.map +1 -1
- package/dist/console/index.d.cts +4 -11
- package/dist/console/index.d.ts +4 -11
- package/dist/console/index.js +1 -1
- package/dist/console/index.js.map +1 -1
- package/dist/containerized-data-importer/index.cjs +1 -1
- package/dist/containerized-data-importer/index.cjs.map +1 -1
- package/dist/containerized-data-importer/index.d.cts +1277 -3788
- package/dist/containerized-data-importer/index.d.ts +1277 -3788
- package/dist/containerized-data-importer/index.js +1 -1
- package/dist/containerized-data-importer/index.js.map +1 -1
- package/dist/kubernetes/index.cjs.map +1 -1
- package/dist/kubernetes/index.d.cts +9298 -30800
- package/dist/kubernetes/index.d.ts +9298 -30800
- package/dist/kubevirt/index.cjs +1 -1
- package/dist/kubevirt/index.cjs.map +1 -1
- package/dist/kubevirt/index.d.cts +3509 -16106
- package/dist/kubevirt/index.d.ts +3509 -16106
- package/dist/kubevirt/index.js +1 -1
- package/dist/kubevirt/index.js.map +1 -1
- package/dist/nmstate/index.cjs +1 -1
- package/dist/nmstate/index.cjs.map +1 -1
- package/dist/nmstate/index.d.cts +7296 -665
- package/dist/nmstate/index.d.ts +7296 -665
- package/dist/nmstate/index.js +1 -0
- package/dist/nmstate/index.js.map +1 -1
- package/dist/virt-template/index.d.cts +238 -241
- package/dist/virt-template/index.d.ts +238 -241
- package/package.json +11 -15
|
@@ -1,133 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
6
|
-
* Contact Email:
|
|
7
|
-
* License:
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
|
|
10
|
-
* https://github.com/yaacov/crdtoapi/README.crdtotypes
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Condition contains details for one aspect of the current state of this API Resource.
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
*/
|
|
17
|
-
interface V1alpha1VirtualMachineTemplateRequestStatusConditions {
|
|
18
|
-
/** lastTransitionTime
|
|
19
|
-
* lastTransitionTime is the last time the condition transitioned from one status to another.
|
|
20
|
-
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
|
|
21
|
-
*
|
|
22
|
-
* @required {true}
|
|
23
|
-
* @format {date-time}
|
|
24
|
-
*/
|
|
25
|
-
lastTransitionTime: string;
|
|
26
|
-
/** message
|
|
27
|
-
* message is a human readable message indicating details about the transition.
|
|
28
|
-
This may be an empty string.
|
|
29
|
-
*
|
|
30
|
-
* @required {true}
|
|
31
|
-
*/
|
|
32
|
-
message: string;
|
|
33
|
-
/** observedGeneration
|
|
34
|
-
* observedGeneration represents the .metadata.generation that the condition was set based upon.
|
|
35
|
-
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
|
|
36
|
-
with respect to the current state of the instance.
|
|
37
|
-
*
|
|
38
|
-
* @required {false}
|
|
39
|
-
* @format {int64}
|
|
40
|
-
* @originalType {integer}
|
|
41
|
-
*/
|
|
42
|
-
observedGeneration?: number;
|
|
43
|
-
/** reason
|
|
44
|
-
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
|
|
45
|
-
Producers of specific condition types may define expected values and meanings for this field,
|
|
46
|
-
and whether the values are considered a guaranteed API.
|
|
47
|
-
The value should be a CamelCase string.
|
|
48
|
-
This field may not be empty.
|
|
49
|
-
*
|
|
50
|
-
* @required {true}
|
|
51
|
-
* @pattern {^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$}
|
|
52
|
-
*/
|
|
53
|
-
reason: string;
|
|
54
|
-
/** status
|
|
55
|
-
* status of the condition, one of True, False, Unknown.
|
|
56
|
-
*
|
|
57
|
-
* @required {true}
|
|
58
|
-
* @originalType {string}
|
|
59
|
-
*/
|
|
60
|
-
status: 'True' | 'False' | 'Unknown';
|
|
61
|
-
/** type
|
|
62
|
-
* type of condition in CamelCase or in foo.example.com/CamelCase.
|
|
63
|
-
*
|
|
64
|
-
* @required {true}
|
|
65
|
-
*/
|
|
66
|
-
type: string;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* The version of the OpenAPI document:
|
|
74
|
-
* Contact Email:
|
|
75
|
-
* License:
|
|
76
|
-
*
|
|
77
|
-
* NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
|
|
78
|
-
* https://github.com/yaacov/crdtoapi/README.crdtotypes
|
|
79
|
-
*/
|
|
80
|
-
/**
|
|
81
|
-
* TemplateRef is a reference to the created VirtualMachineTemplate.
|
|
82
|
-
*
|
|
83
|
-
* @export
|
|
84
|
-
*/
|
|
85
|
-
interface V1alpha1VirtualMachineTemplateRequestStatusTemplateRef {
|
|
86
|
-
/** name
|
|
87
|
-
* Name of the referent.
|
|
88
|
-
This field is effectively required, but due to backwards compatibility is
|
|
89
|
-
allowed to be empty. Instances of this type with an empty value here are
|
|
90
|
-
almost certainly wrong.
|
|
91
|
-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
|
92
|
-
*
|
|
93
|
-
* @required {false}
|
|
94
|
-
* @required {}
|
|
95
|
-
*/
|
|
96
|
-
name?: string;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
* The version of the OpenAPI document:
|
|
104
|
-
* Contact Email:
|
|
105
|
-
* License:
|
|
106
|
-
*
|
|
107
|
-
* NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
|
|
108
|
-
* https://github.com/yaacov/crdtoapi/README.crdtotypes
|
|
109
|
-
*/
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Status defines the observed state of the template request
|
|
113
|
-
*
|
|
114
|
-
* @export
|
|
115
|
-
*/
|
|
116
|
-
interface V1alpha1VirtualMachineTemplateRequestStatus {
|
|
117
|
-
/** conditions
|
|
118
|
-
* Condition contains details for one aspect of the current state of this API Resource.
|
|
119
|
-
*
|
|
120
|
-
* @required {false}
|
|
121
|
-
*/
|
|
122
|
-
conditions?: V1alpha1VirtualMachineTemplateRequestStatusConditions[];
|
|
123
|
-
/** templateRef
|
|
124
|
-
* TemplateRef is a reference to the created VirtualMachineTemplate.
|
|
125
|
-
*
|
|
126
|
-
* @required {false}
|
|
127
|
-
*/
|
|
128
|
-
templateRef?: V1alpha1VirtualMachineTemplateRequestStatusTemplateRef;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
1
|
/**
|
|
132
2
|
*
|
|
133
3
|
*
|
|
@@ -300,23 +170,70 @@ interface IoK8sApimachineryPkgApisMetaV1ObjectMeta {
|
|
|
300
170
|
* https://github.com/yaacov/crdtoapi/README.crdtotypes
|
|
301
171
|
*/
|
|
302
172
|
/**
|
|
303
|
-
*
|
|
173
|
+
* Parameter defines a name/value combination that is to be substituted during
|
|
174
|
+
processing of the template.
|
|
304
175
|
*
|
|
305
176
|
* @export
|
|
306
177
|
*/
|
|
307
|
-
interface
|
|
178
|
+
interface V1alpha1VirtualMachineTemplateSpecParameters {
|
|
179
|
+
/** description
|
|
180
|
+
* Description is the description of the parameter. Optional.
|
|
181
|
+
*
|
|
182
|
+
* @required {false}
|
|
183
|
+
*/
|
|
184
|
+
description?: string;
|
|
185
|
+
/** displayName
|
|
186
|
+
* DisplayName is an alternative name that can be shown in a UI
|
|
187
|
+
instead of the parameter's name. Optional.
|
|
188
|
+
*
|
|
189
|
+
* @required {false}
|
|
190
|
+
*/
|
|
191
|
+
displayName?: string;
|
|
192
|
+
/** from
|
|
193
|
+
* From is used as input for the generator specified in Generate. Optional.
|
|
194
|
+
*
|
|
195
|
+
* @required {false}
|
|
196
|
+
*/
|
|
197
|
+
from?: string;
|
|
198
|
+
/** generate
|
|
199
|
+
* Generate specifies the generator to be used to generate a Value for this
|
|
200
|
+
parameter. The From field can be used to provide input to this generator
|
|
201
|
+
If empty, no generator is being used, leaving the result Value untouched. Optional.
|
|
202
|
+
|
|
203
|
+
The only supported generator is "expression", which accepts a From
|
|
204
|
+
value with a regex-like syntax, which should follow the form of "[a-zA-Z0-9]{length}".
|
|
205
|
+
The expression defines the range and length of the resulting random characters.
|
|
206
|
+
|
|
207
|
+
The following character classes are supported in the range:
|
|
208
|
+
|
|
209
|
+
range | characters
|
|
210
|
+
*
|
|
211
|
+
* @required {false}
|
|
212
|
+
* @originalType {string}
|
|
213
|
+
*/
|
|
214
|
+
generate?: 'expression';
|
|
308
215
|
/** name
|
|
309
|
-
* Name is the name of the
|
|
216
|
+
* Name is the name of the parameter. It can be referenced in
|
|
217
|
+
the template VirtualMachine using ${PARAMETER_NAME}. Required.
|
|
310
218
|
*
|
|
311
219
|
* @required {true}
|
|
312
220
|
*/
|
|
313
221
|
name: string;
|
|
314
|
-
/**
|
|
315
|
-
*
|
|
222
|
+
/** required
|
|
223
|
+
* Indicates that the parameter must have a Value or valid Generate and From values.
|
|
224
|
+
Defaults to false. Optional.
|
|
316
225
|
*
|
|
317
|
-
* @required {
|
|
226
|
+
* @required {false}
|
|
318
227
|
*/
|
|
319
|
-
|
|
228
|
+
required?: boolean;
|
|
229
|
+
/** value
|
|
230
|
+
* Value holds the value of the Parameter. If specified, a generator will be
|
|
231
|
+
ignored. The value replaces all occurrences of the ${PARAMETER_NAME}
|
|
232
|
+
expression during processing of the template. Optional.
|
|
233
|
+
*
|
|
234
|
+
* @required {false}
|
|
235
|
+
*/
|
|
236
|
+
value?: string;
|
|
320
237
|
}
|
|
321
238
|
|
|
322
239
|
/**
|
|
@@ -332,24 +249,103 @@ interface V1alpha1VirtualMachineTemplateRequestSpecVirtualMachineRef {
|
|
|
332
249
|
*/
|
|
333
250
|
|
|
334
251
|
/**
|
|
335
|
-
* Spec defines the desired state of the template
|
|
252
|
+
* Spec defines the desired state of the template
|
|
336
253
|
*
|
|
337
254
|
* @export
|
|
338
255
|
*/
|
|
339
|
-
interface
|
|
340
|
-
/**
|
|
341
|
-
*
|
|
342
|
-
|
|
256
|
+
interface V1alpha1VirtualMachineTemplateSpec {
|
|
257
|
+
/** message
|
|
258
|
+
* Message is an optional instructional message for this template.
|
|
259
|
+
This field should inform the user how to utilize the newly created VirtualMachine.
|
|
343
260
|
*
|
|
344
261
|
* @required {false}
|
|
345
262
|
*/
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
*
|
|
263
|
+
message?: string;
|
|
264
|
+
/** parameters
|
|
265
|
+
* Parameter defines a name/value combination that is to be substituted during
|
|
266
|
+
processing of the template.
|
|
267
|
+
*
|
|
268
|
+
* @required {false}
|
|
269
|
+
*/
|
|
270
|
+
parameters?: V1alpha1VirtualMachineTemplateSpecParameters[];
|
|
271
|
+
/** virtualMachine
|
|
272
|
+
* VirtualMachine is the template VirtualMachine to include in this template.
|
|
273
|
+
If a namespace value is hardcoded, it will be removed during processing of the
|
|
274
|
+
template. If the namespace value however contains a ${PARAMETER_REFERENCE},
|
|
275
|
+
the resolved value after parameter substitution will be respected and the
|
|
276
|
+
VirtualMachine will be created in that namespace.
|
|
349
277
|
*
|
|
350
278
|
* @required {true}
|
|
279
|
+
* @originalType {not defined}
|
|
351
280
|
*/
|
|
352
|
-
|
|
281
|
+
virtualMachine: unknown | null;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
*
|
|
287
|
+
*
|
|
288
|
+
* The version of the OpenAPI document:
|
|
289
|
+
* Contact Email:
|
|
290
|
+
* License:
|
|
291
|
+
*
|
|
292
|
+
* NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
|
|
293
|
+
* https://github.com/yaacov/crdtoapi/README.crdtotypes
|
|
294
|
+
*/
|
|
295
|
+
/**
|
|
296
|
+
* Condition contains details for one aspect of the current state of this API Resource.
|
|
297
|
+
*
|
|
298
|
+
* @export
|
|
299
|
+
*/
|
|
300
|
+
interface V1alpha1VirtualMachineTemplateStatusConditions {
|
|
301
|
+
/** lastTransitionTime
|
|
302
|
+
* lastTransitionTime is the last time the condition transitioned from one status to another.
|
|
303
|
+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
|
|
304
|
+
*
|
|
305
|
+
* @required {true}
|
|
306
|
+
* @format {date-time}
|
|
307
|
+
*/
|
|
308
|
+
lastTransitionTime: string;
|
|
309
|
+
/** message
|
|
310
|
+
* message is a human readable message indicating details about the transition.
|
|
311
|
+
This may be an empty string.
|
|
312
|
+
*
|
|
313
|
+
* @required {true}
|
|
314
|
+
*/
|
|
315
|
+
message: string;
|
|
316
|
+
/** observedGeneration
|
|
317
|
+
* observedGeneration represents the .metadata.generation that the condition was set based upon.
|
|
318
|
+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
|
|
319
|
+
with respect to the current state of the instance.
|
|
320
|
+
*
|
|
321
|
+
* @required {false}
|
|
322
|
+
* @format {int64}
|
|
323
|
+
* @originalType {integer}
|
|
324
|
+
*/
|
|
325
|
+
observedGeneration?: number;
|
|
326
|
+
/** reason
|
|
327
|
+
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
|
|
328
|
+
Producers of specific condition types may define expected values and meanings for this field,
|
|
329
|
+
and whether the values are considered a guaranteed API.
|
|
330
|
+
The value should be a CamelCase string.
|
|
331
|
+
This field may not be empty.
|
|
332
|
+
*
|
|
333
|
+
* @required {true}
|
|
334
|
+
*/
|
|
335
|
+
reason: string;
|
|
336
|
+
/** status
|
|
337
|
+
* status of the condition, one of True, False, Unknown.
|
|
338
|
+
*
|
|
339
|
+
* @required {true}
|
|
340
|
+
* @originalType {string}
|
|
341
|
+
*/
|
|
342
|
+
status: 'True' | 'False' | 'Unknown';
|
|
343
|
+
/** type
|
|
344
|
+
* type of condition in CamelCase or in foo.example.com/CamelCase.
|
|
345
|
+
*
|
|
346
|
+
* @required {true}
|
|
347
|
+
*/
|
|
348
|
+
type: string;
|
|
353
349
|
}
|
|
354
350
|
|
|
355
351
|
/**
|
|
@@ -365,11 +361,37 @@ interface V1alpha1VirtualMachineTemplateRequestSpec {
|
|
|
365
361
|
*/
|
|
366
362
|
|
|
367
363
|
/**
|
|
368
|
-
*
|
|
364
|
+
* Status defines the observed state of the template
|
|
369
365
|
*
|
|
370
366
|
* @export
|
|
371
367
|
*/
|
|
372
|
-
interface
|
|
368
|
+
interface V1alpha1VirtualMachineTemplateStatus {
|
|
369
|
+
/** conditions
|
|
370
|
+
* Condition contains details for one aspect of the current state of this API Resource.
|
|
371
|
+
*
|
|
372
|
+
* @required {false}
|
|
373
|
+
*/
|
|
374
|
+
conditions?: V1alpha1VirtualMachineTemplateStatusConditions[];
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
*
|
|
379
|
+
*
|
|
380
|
+
*
|
|
381
|
+
* The version of the OpenAPI document:
|
|
382
|
+
* Contact Email:
|
|
383
|
+
* License:
|
|
384
|
+
*
|
|
385
|
+
* NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
|
|
386
|
+
* https://github.com/yaacov/crdtoapi/README.crdtotypes
|
|
387
|
+
*/
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* VirtualMachineTemplate is the Schema for the virtualmachinetemplates API
|
|
391
|
+
*
|
|
392
|
+
* @export
|
|
393
|
+
*/
|
|
394
|
+
interface V1alpha1VirtualMachineTemplate {
|
|
373
395
|
/** apiVersion
|
|
374
396
|
* APIVersion defines the versioned schema of this representation of an object.
|
|
375
397
|
Servers should convert recognized schemas to the latest internal value, and
|
|
@@ -392,21 +414,21 @@ interface V1alpha1VirtualMachineTemplateRequest {
|
|
|
392
414
|
/** metadata
|
|
393
415
|
*
|
|
394
416
|
* @required {false}
|
|
395
|
-
* @originalType {
|
|
417
|
+
* @originalType {V1alpha1VirtualMachineTemplateMetadata}
|
|
396
418
|
*/
|
|
397
419
|
metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta;
|
|
398
420
|
/** spec
|
|
399
|
-
* Spec defines the desired state of the template
|
|
421
|
+
* Spec defines the desired state of the template
|
|
400
422
|
*
|
|
401
423
|
* @required {true}
|
|
402
424
|
*/
|
|
403
|
-
spec:
|
|
425
|
+
spec: V1alpha1VirtualMachineTemplateSpec;
|
|
404
426
|
/** status
|
|
405
|
-
* Status defines the observed state of the template
|
|
427
|
+
* Status defines the observed state of the template
|
|
406
428
|
*
|
|
407
429
|
* @required {false}
|
|
408
430
|
*/
|
|
409
|
-
status?:
|
|
431
|
+
status?: V1alpha1VirtualMachineTemplateStatus;
|
|
410
432
|
}
|
|
411
433
|
|
|
412
434
|
/**
|
|
@@ -421,71 +443,23 @@ interface V1alpha1VirtualMachineTemplateRequest {
|
|
|
421
443
|
* https://github.com/yaacov/crdtoapi/README.crdtotypes
|
|
422
444
|
*/
|
|
423
445
|
/**
|
|
424
|
-
*
|
|
425
|
-
processing of the template.
|
|
446
|
+
* VirtualMachineReference holds a reference to a VirtualMachine.kubevirt.io
|
|
426
447
|
*
|
|
427
448
|
* @export
|
|
428
449
|
*/
|
|
429
|
-
interface
|
|
430
|
-
/** description
|
|
431
|
-
* Description is the description of the parameter. Optional.
|
|
432
|
-
*
|
|
433
|
-
* @required {false}
|
|
434
|
-
*/
|
|
435
|
-
description?: string;
|
|
436
|
-
/** displayName
|
|
437
|
-
* DisplayName is an alternative name that can be shown in a UI
|
|
438
|
-
instead of the parameter's name. Optional.
|
|
439
|
-
*
|
|
440
|
-
* @required {false}
|
|
441
|
-
*/
|
|
442
|
-
displayName?: string;
|
|
443
|
-
/** from
|
|
444
|
-
* From is used as input for the generator specified in Generate. Optional.
|
|
445
|
-
*
|
|
446
|
-
* @required {false}
|
|
447
|
-
* @pattern {\[([a-zA-Z0-9\-\\]+)\](\{(\w+)\})}
|
|
448
|
-
*/
|
|
449
|
-
from?: string;
|
|
450
|
-
/** generate
|
|
451
|
-
* Generate specifies the generator to be used to generate a Value for this
|
|
452
|
-
parameter. The From field can be used to provide input to this generator
|
|
453
|
-
If empty, no generator is being used, leaving the result Value untouched. Optional.
|
|
454
|
-
|
|
455
|
-
The only supported generator is "expression", which accepts a From
|
|
456
|
-
value with a regex-like syntax, which should follow the form of "[a-zA-Z0-9]{length}".
|
|
457
|
-
The expression defines the range and length of the resulting random characters.
|
|
458
|
-
|
|
459
|
-
The following character classes are supported in the range:
|
|
460
|
-
|
|
461
|
-
range | characters
|
|
462
|
-
*
|
|
463
|
-
* @required {false}
|
|
464
|
-
* @originalType {string}
|
|
465
|
-
*/
|
|
466
|
-
generate?: 'expression';
|
|
450
|
+
interface V1alpha1VirtualMachineTemplateRequestSpecVirtualMachineRef {
|
|
467
451
|
/** name
|
|
468
|
-
* Name is the name of the
|
|
469
|
-
the template VirtualMachine using ${PARAMETER_NAME}. Required.
|
|
452
|
+
* Name is the name of the VirtualMachine.
|
|
470
453
|
*
|
|
471
454
|
* @required {true}
|
|
472
455
|
*/
|
|
473
456
|
name: string;
|
|
474
|
-
/**
|
|
475
|
-
*
|
|
476
|
-
Defaults to false. Optional.
|
|
477
|
-
*
|
|
478
|
-
* @required {false}
|
|
479
|
-
*/
|
|
480
|
-
required?: boolean;
|
|
481
|
-
/** value
|
|
482
|
-
* Value holds the value of the Parameter. If specified, a generator will be
|
|
483
|
-
ignored. The value replaces all occurrences of the ${PARAMETER_NAME}
|
|
484
|
-
expression during processing of the template. Optional.
|
|
457
|
+
/** namespace
|
|
458
|
+
* Namespace is the namespace of the VirtualMachine.
|
|
485
459
|
*
|
|
486
|
-
* @required {
|
|
460
|
+
* @required {true}
|
|
487
461
|
*/
|
|
488
|
-
|
|
462
|
+
namespace: string;
|
|
489
463
|
}
|
|
490
464
|
|
|
491
465
|
/**
|
|
@@ -501,36 +475,24 @@ interface V1alpha1VirtualMachineTemplateSpecParameters {
|
|
|
501
475
|
*/
|
|
502
476
|
|
|
503
477
|
/**
|
|
504
|
-
* Spec defines the desired state of the template
|
|
478
|
+
* Spec defines the desired state of the template requests
|
|
505
479
|
*
|
|
506
480
|
* @export
|
|
507
481
|
*/
|
|
508
|
-
interface
|
|
509
|
-
/**
|
|
510
|
-
*
|
|
511
|
-
|
|
512
|
-
*
|
|
513
|
-
* @required {false}
|
|
514
|
-
*/
|
|
515
|
-
message?: string;
|
|
516
|
-
/** parameters
|
|
517
|
-
* Parameter defines a name/value combination that is to be substituted during
|
|
518
|
-
processing of the template.
|
|
482
|
+
interface V1alpha1VirtualMachineTemplateRequestSpec {
|
|
483
|
+
/** templateName
|
|
484
|
+
* TemplateName holds the optional name for the new VirtualMachineTemplate.
|
|
485
|
+
If not specified the template will have the same name as the VirtualMachineTemplateRequest.
|
|
519
486
|
*
|
|
520
487
|
* @required {false}
|
|
521
488
|
*/
|
|
522
|
-
|
|
523
|
-
/**
|
|
524
|
-
*
|
|
525
|
-
If a namespace value is hardcoded, it will be removed during processing of the
|
|
526
|
-
template. If the namespace value however contains a ${PARAMETER_REFERENCE},
|
|
527
|
-
the resolved value after parameter substitution will be respected and the
|
|
528
|
-
VirtualMachine will be created in that namespace.
|
|
489
|
+
templateName?: string;
|
|
490
|
+
/** virtualMachineRef
|
|
491
|
+
* VirtualMachineReference holds a reference to a VirtualMachine.kubevirt.io
|
|
529
492
|
*
|
|
530
493
|
* @required {true}
|
|
531
|
-
* @originalType {not defined}
|
|
532
494
|
*/
|
|
533
|
-
|
|
495
|
+
virtualMachineRef: V1alpha1VirtualMachineTemplateRequestSpecVirtualMachineRef;
|
|
534
496
|
}
|
|
535
497
|
|
|
536
498
|
/**
|
|
@@ -549,7 +511,7 @@ interface V1alpha1VirtualMachineTemplateSpec {
|
|
|
549
511
|
*
|
|
550
512
|
* @export
|
|
551
513
|
*/
|
|
552
|
-
interface
|
|
514
|
+
interface V1alpha1VirtualMachineTemplateRequestStatusConditions {
|
|
553
515
|
/** lastTransitionTime
|
|
554
516
|
* lastTransitionTime is the last time the condition transitioned from one status to another.
|
|
555
517
|
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
|
|
@@ -583,7 +545,6 @@ interface V1alpha1VirtualMachineTemplateStatusConditions {
|
|
|
583
545
|
This field may not be empty.
|
|
584
546
|
*
|
|
585
547
|
* @required {true}
|
|
586
|
-
* @pattern {^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$}
|
|
587
548
|
*/
|
|
588
549
|
reason: string;
|
|
589
550
|
/** status
|
|
@@ -612,19 +573,55 @@ interface V1alpha1VirtualMachineTemplateStatusConditions {
|
|
|
612
573
|
* NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
|
|
613
574
|
* https://github.com/yaacov/crdtoapi/README.crdtotypes
|
|
614
575
|
*/
|
|
576
|
+
/**
|
|
577
|
+
* TemplateRef is a reference to the created VirtualMachineTemplate.
|
|
578
|
+
*
|
|
579
|
+
* @export
|
|
580
|
+
*/
|
|
581
|
+
interface V1alpha1VirtualMachineTemplateRequestStatusTemplateRef {
|
|
582
|
+
/** name
|
|
583
|
+
* Name of the referent.
|
|
584
|
+
This field is effectively required, but due to backwards compatibility is
|
|
585
|
+
allowed to be empty. Instances of this type with an empty value here are
|
|
586
|
+
almost certainly wrong.
|
|
587
|
+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
|
588
|
+
*
|
|
589
|
+
* @required {false}
|
|
590
|
+
* @required {}
|
|
591
|
+
*/
|
|
592
|
+
name?: string;
|
|
593
|
+
}
|
|
615
594
|
|
|
616
595
|
/**
|
|
617
|
-
*
|
|
596
|
+
*
|
|
597
|
+
*
|
|
598
|
+
*
|
|
599
|
+
* The version of the OpenAPI document:
|
|
600
|
+
* Contact Email:
|
|
601
|
+
* License:
|
|
602
|
+
*
|
|
603
|
+
* NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
|
|
604
|
+
* https://github.com/yaacov/crdtoapi/README.crdtotypes
|
|
605
|
+
*/
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Status defines the observed state of the template request
|
|
618
609
|
*
|
|
619
610
|
* @export
|
|
620
611
|
*/
|
|
621
|
-
interface
|
|
612
|
+
interface V1alpha1VirtualMachineTemplateRequestStatus {
|
|
622
613
|
/** conditions
|
|
623
614
|
* Condition contains details for one aspect of the current state of this API Resource.
|
|
624
615
|
*
|
|
625
616
|
* @required {false}
|
|
626
617
|
*/
|
|
627
|
-
conditions?:
|
|
618
|
+
conditions?: V1alpha1VirtualMachineTemplateRequestStatusConditions[];
|
|
619
|
+
/** templateRef
|
|
620
|
+
* TemplateRef is a reference to the created VirtualMachineTemplate.
|
|
621
|
+
*
|
|
622
|
+
* @required {false}
|
|
623
|
+
*/
|
|
624
|
+
templateRef?: V1alpha1VirtualMachineTemplateRequestStatusTemplateRef;
|
|
628
625
|
}
|
|
629
626
|
|
|
630
627
|
/**
|
|
@@ -640,11 +637,11 @@ interface V1alpha1VirtualMachineTemplateStatus {
|
|
|
640
637
|
*/
|
|
641
638
|
|
|
642
639
|
/**
|
|
643
|
-
*
|
|
640
|
+
* VirtualMachineTemplateRequest is the Schema for the virtualmachinetemplaterequests API
|
|
644
641
|
*
|
|
645
642
|
* @export
|
|
646
643
|
*/
|
|
647
|
-
interface
|
|
644
|
+
interface V1alpha1VirtualMachineTemplateRequest {
|
|
648
645
|
/** apiVersion
|
|
649
646
|
* APIVersion defines the versioned schema of this representation of an object.
|
|
650
647
|
Servers should convert recognized schemas to the latest internal value, and
|
|
@@ -667,21 +664,21 @@ interface V1alpha1VirtualMachineTemplate {
|
|
|
667
664
|
/** metadata
|
|
668
665
|
*
|
|
669
666
|
* @required {false}
|
|
670
|
-
* @originalType {
|
|
667
|
+
* @originalType {V1alpha1VirtualMachineTemplateRequestMetadata}
|
|
671
668
|
*/
|
|
672
669
|
metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta;
|
|
673
670
|
/** spec
|
|
674
|
-
* Spec defines the desired state of the template
|
|
671
|
+
* Spec defines the desired state of the template requests
|
|
675
672
|
*
|
|
676
673
|
* @required {true}
|
|
677
674
|
*/
|
|
678
|
-
spec:
|
|
675
|
+
spec: V1alpha1VirtualMachineTemplateRequestSpec;
|
|
679
676
|
/** status
|
|
680
|
-
* Status defines the observed state of the template
|
|
677
|
+
* Status defines the observed state of the template request
|
|
681
678
|
*
|
|
682
679
|
* @required {false}
|
|
683
680
|
*/
|
|
684
|
-
status?:
|
|
681
|
+
status?: V1alpha1VirtualMachineTemplateRequestStatus;
|
|
685
682
|
}
|
|
686
683
|
|
|
687
684
|
export type { IoK8sApimachineryPkgApisMetaV1ObjectMeta, IoK8sApimachineryPkgApisMetaV1OwnerReference, V1alpha1VirtualMachineTemplate, V1alpha1VirtualMachineTemplateRequest, V1alpha1VirtualMachineTemplateRequestSpec, V1alpha1VirtualMachineTemplateRequestSpecVirtualMachineRef, V1alpha1VirtualMachineTemplateRequestStatus, V1alpha1VirtualMachineTemplateRequestStatusConditions, V1alpha1VirtualMachineTemplateRequestStatusTemplateRef, V1alpha1VirtualMachineTemplateSpec, V1alpha1VirtualMachineTemplateSpecParameters, V1alpha1VirtualMachineTemplateStatus, V1alpha1VirtualMachineTemplateStatusConditions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubevirt-ui-ext/kubevirt-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "kubevirt OpenAPI automation for TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -69,12 +69,9 @@
|
|
|
69
69
|
"./dist"
|
|
70
70
|
],
|
|
71
71
|
"scripts": {
|
|
72
|
-
"generate": "bash ./scripts/generate.sh",
|
|
73
|
-
"generate:nmstate": "bash ./scripts/generate-nmstate.sh",
|
|
74
|
-
"generate:virt-template": "bash ./scripts/generate-virt-template.sh",
|
|
72
|
+
"generate": "bash ./scripts/generate-types.sh && yarn lint:fix",
|
|
75
73
|
"generate:docs": "typedoc --out docs/ --gitRevision main --gitRemote upstream --readme none --entryPoints \"kubevirt/models/index.ts\" \"kubernetes/models/index.ts\" \"nmstate/models/index.ts\" \"virt-template/models/index.ts\" \"containerized-data-importer/models/index.ts\" \"console/index.ts\" --plugin typedoc-plugin-reference-excluder --excludedFunctionOrMethod \".*\" ",
|
|
76
|
-
"clean": "rimraf ./kubevirt/
|
|
77
|
-
"clean:all": "rimraf ./docs ./kubevirt ./containerized-data-importer ./console/core/index.ts ./console-core-models.ts ./kubernetes ./nmstate ./virt-template",
|
|
74
|
+
"clean:all": "rimraf ./docs ./kubevirt/models ./kubevirt/index.ts ./kubevirt/runtime.ts ./kubevirt/apis ./containerized-data-importer ./console/core/index.ts ./console-core-models.ts ./kubernetes ./nmstate/models ./nmstate/index.ts ./nmstate/runtime.ts ./nmstate/.crds ./nmstate/.openapi.yaml ./virt-template/models ./virt-template/index.ts ./virt-template/.crds ./virt-template/.openapi.yaml swagger-*.json",
|
|
78
75
|
"lint": "eslint console kubevirt kubernetes containerized-data-importer nmstate virt-template --color --no-inline-config",
|
|
79
76
|
"lint:fix": "yarn lint --fix",
|
|
80
77
|
"build": "yarn test && tsup",
|
|
@@ -86,24 +83,23 @@
|
|
|
86
83
|
},
|
|
87
84
|
"devDependencies": {
|
|
88
85
|
"@openshift-console/dynamic-plugin-sdk": "^0.0.5",
|
|
89
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
90
|
-
"@typescript-eslint/parser": "^
|
|
86
|
+
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
87
|
+
"@typescript-eslint/parser": "^8.60.0",
|
|
91
88
|
"crdtoapi": "^0.0.19",
|
|
92
|
-
"eslint": "^8.
|
|
89
|
+
"eslint": "^8.57.0",
|
|
93
90
|
"eslint-config-prettier": "^8.3.0",
|
|
94
91
|
"eslint-plugin-prettier": "^4.0.0",
|
|
95
92
|
"eslint-plugin-react": "^7.28.0",
|
|
96
93
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
97
94
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
98
|
-
"eslint-plugin-unused-imports": "^
|
|
95
|
+
"eslint-plugin-unused-imports": "^4.0.0",
|
|
99
96
|
"prettier": "^2.5.1",
|
|
100
97
|
"rimraf": "6.1.2",
|
|
101
|
-
"
|
|
102
|
-
"tslint-etc": "^1.13.10",
|
|
98
|
+
"swagger-typescript-api": "^13.2.7",
|
|
103
99
|
"tsup": "^8.5.0",
|
|
104
|
-
"typedoc": "^0.
|
|
105
|
-
"typedoc-plugin-reference-excluder": "^1.
|
|
106
|
-
"typescript": "^
|
|
100
|
+
"typedoc": "^0.28.0",
|
|
101
|
+
"typedoc-plugin-reference-excluder": "^1.1.0",
|
|
102
|
+
"typescript": "^5.0.0"
|
|
107
103
|
},
|
|
108
104
|
"sideEffects": false,
|
|
109
105
|
"engines": {
|