@openshift-migration-advisor/agent-sdk 0.31.0-8fbde84d9594 → 0.31.0-91c2f03b4968
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/.openapi-generator/FILES +4 -0
- package/README.md +4 -2
- package/dist/esm/models/ApplicationOverview.d.ts +16 -0
- package/dist/esm/models/ApplicationOverview.js +12 -0
- package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
- package/dist/esm/models/HostPhysicalNIC.js +45 -0
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/Product.d.ts +66 -0
- package/dist/esm/models/Product.js +61 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +10 -0
- package/dist/esm/models/VirtualMachineDetail.js +6 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/ApplicationOverview.d.ts +16 -0
- package/dist/models/ApplicationOverview.js +12 -0
- package/dist/models/HostPhysicalNIC.d.ts +34 -0
- package/dist/models/HostPhysicalNIC.js +52 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/Product.d.ts +66 -0
- package/dist/models/Product.js +68 -0
- package/dist/models/VirtualMachineDetail.d.ts +10 -0
- package/dist/models/VirtualMachineDetail.js +6 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/HostPhysicalNIC.md +36 -0
- package/docs/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/VirtualMachineDetail.md +4 -0
- package/package.json +1 -1
- package/src/models/ApplicationOverview.ts +26 -0
- package/src/models/HostPhysicalNIC.ts +70 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/Product.ts +118 -0
- package/src/models/VirtualMachineDetail.ts +26 -0
- package/src/models/index.ts +2 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Product
|
|
20
|
+
*/
|
|
21
|
+
export interface Product {
|
|
22
|
+
/**
|
|
23
|
+
* Product key
|
|
24
|
+
*/
|
|
25
|
+
key: number;
|
|
26
|
+
/**
|
|
27
|
+
* Product class identifier
|
|
28
|
+
*/
|
|
29
|
+
classId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Product instance identifier
|
|
32
|
+
*/
|
|
33
|
+
instanceId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Product name
|
|
36
|
+
*/
|
|
37
|
+
name?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Product vendor
|
|
40
|
+
*/
|
|
41
|
+
vendor?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Product version
|
|
44
|
+
*/
|
|
45
|
+
version?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Full product version
|
|
48
|
+
*/
|
|
49
|
+
fullVersion?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Product vendor URL
|
|
52
|
+
*/
|
|
53
|
+
vendorUrl?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Product URL
|
|
56
|
+
*/
|
|
57
|
+
productUrl?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Application URL
|
|
60
|
+
*/
|
|
61
|
+
appUrl?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the Product interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfProduct(value: object): value is Product {
|
|
68
|
+
if (!('key' in value) || value['key'] === undefined) return false;
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ProductFromJSON(json: any): Product {
|
|
73
|
+
return ProductFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'key': json['key'],
|
|
83
|
+
'classId': json['classId'] == null ? undefined : json['classId'],
|
|
84
|
+
'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
|
|
85
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
86
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
87
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
88
|
+
'fullVersion': json['fullVersion'] == null ? undefined : json['fullVersion'],
|
|
89
|
+
'vendorUrl': json['vendorUrl'] == null ? undefined : json['vendorUrl'],
|
|
90
|
+
'productUrl': json['productUrl'] == null ? undefined : json['productUrl'],
|
|
91
|
+
'appUrl': json['appUrl'] == null ? undefined : json['appUrl'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function ProductToJSON(json: any): Product {
|
|
96
|
+
return ProductToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ProductToJSONTyped(value?: Product | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'key': value['key'],
|
|
107
|
+
'classId': value['classId'],
|
|
108
|
+
'instanceId': value['instanceId'],
|
|
109
|
+
'name': value['name'],
|
|
110
|
+
'vendor': value['vendor'],
|
|
111
|
+
'version': value['version'],
|
|
112
|
+
'fullVersion': value['fullVersion'],
|
|
113
|
+
'vendorUrl': value['vendorUrl'],
|
|
114
|
+
'productUrl': value['productUrl'],
|
|
115
|
+
'appUrl': value['appUrl'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -48,6 +48,20 @@ import {
|
|
|
48
48
|
VirtualMachineDeviceToJSON,
|
|
49
49
|
VirtualMachineDeviceToJSONTyped,
|
|
50
50
|
} from './VirtualMachineDevice.js';
|
|
51
|
+
import type { HostPhysicalNIC } from './HostPhysicalNIC.js';
|
|
52
|
+
import {
|
|
53
|
+
HostPhysicalNICFromJSON,
|
|
54
|
+
HostPhysicalNICFromJSONTyped,
|
|
55
|
+
HostPhysicalNICToJSON,
|
|
56
|
+
HostPhysicalNICToJSONTyped,
|
|
57
|
+
} from './HostPhysicalNIC.js';
|
|
58
|
+
import type { Product } from './Product.js';
|
|
59
|
+
import {
|
|
60
|
+
ProductFromJSON,
|
|
61
|
+
ProductFromJSONTyped,
|
|
62
|
+
ProductToJSON,
|
|
63
|
+
ProductToJSONTyped,
|
|
64
|
+
} from './Product.js';
|
|
51
65
|
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
52
66
|
import {
|
|
53
67
|
VmUtilizationDetailsFromJSON,
|
|
@@ -211,6 +225,10 @@ export interface VirtualMachineDetail {
|
|
|
211
225
|
*
|
|
212
226
|
*/
|
|
213
227
|
disks: Array<VirtualMachineDisk>;
|
|
228
|
+
/**
|
|
229
|
+
* Physical NICs reported on the VM's host. An empty array means no records were retained.
|
|
230
|
+
*/
|
|
231
|
+
hostPhysicalNics?: Array<HostPhysicalNIC>;
|
|
214
232
|
/**
|
|
215
233
|
* Adapter count reported by the source; 0 when unavailable
|
|
216
234
|
*/
|
|
@@ -243,6 +261,10 @@ export interface VirtualMachineDetail {
|
|
|
243
261
|
* List of processes detected on this VM
|
|
244
262
|
*/
|
|
245
263
|
processes?: Array<Process>;
|
|
264
|
+
/**
|
|
265
|
+
* Products configured in the VM's vApp settings
|
|
266
|
+
*/
|
|
267
|
+
products?: Array<Product>;
|
|
246
268
|
}
|
|
247
269
|
|
|
248
270
|
/**
|
|
@@ -305,6 +327,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
305
327
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
306
328
|
'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
|
|
307
329
|
'disks': ((json['disks'] as Array<any>).map(VirtualMachineDiskFromJSON)),
|
|
330
|
+
'hostPhysicalNics': json['hostPhysicalNics'] == null ? undefined : ((json['hostPhysicalNics'] as Array<any>).map(HostPhysicalNICFromJSON)),
|
|
308
331
|
'nicCount': json['nicCount'],
|
|
309
332
|
'nics': ((json['nics'] as Array<any>).map(VirtualMachineNICFromJSON)),
|
|
310
333
|
'devices': json['devices'] == null ? undefined : ((json['devices'] as Array<any>).map(VirtualMachineDeviceFromJSON)),
|
|
@@ -313,6 +336,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
313
336
|
'inspection': json['inspection'] == null ? undefined : VirtualMachineInspectionResultsFromJSON(json['inspection']),
|
|
314
337
|
'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
|
|
315
338
|
'processes': json['processes'] == null ? undefined : ((json['processes'] as Array<any>).map(ProcessFromJSON)),
|
|
339
|
+
'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(ProductFromJSON)),
|
|
316
340
|
};
|
|
317
341
|
}
|
|
318
342
|
|
|
@@ -358,6 +382,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
|
|
|
358
382
|
'toolsStatus': value['toolsStatus'],
|
|
359
383
|
'toolsRunningStatus': value['toolsRunningStatus'],
|
|
360
384
|
'disks': ((value['disks'] as Array<any>).map(VirtualMachineDiskToJSON)),
|
|
385
|
+
'hostPhysicalNics': value['hostPhysicalNics'] == null ? undefined : ((value['hostPhysicalNics'] as Array<any>).map(HostPhysicalNICToJSON)),
|
|
361
386
|
'nicCount': value['nicCount'],
|
|
362
387
|
'nics': ((value['nics'] as Array<any>).map(VirtualMachineNICToJSON)),
|
|
363
388
|
'devices': value['devices'] == null ? undefined : ((value['devices'] as Array<any>).map(VirtualMachineDeviceToJSON)),
|
|
@@ -366,6 +391,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
|
|
|
366
391
|
'inspection': VirtualMachineInspectionResultsToJSON(value['inspection']),
|
|
367
392
|
'utilization': VmUtilizationDetailsToJSON(value['utilization']),
|
|
368
393
|
'processes': value['processes'] == null ? undefined : ((value['processes'] as Array<any>).map(ProcessToJSON)),
|
|
394
|
+
'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(ProductToJSON)),
|
|
369
395
|
};
|
|
370
396
|
}
|
|
371
397
|
|
package/src/models/index.ts
CHANGED
|
@@ -40,6 +40,7 @@ export * from './GroupResponse.js';
|
|
|
40
40
|
export * from './GuestNetwork.js';
|
|
41
41
|
export * from './Histogram.js';
|
|
42
42
|
export * from './Host.js';
|
|
43
|
+
export * from './HostPhysicalNIC.js';
|
|
43
44
|
export * from './HostStorageAdapter.js';
|
|
44
45
|
export * from './HostStorageLun.js';
|
|
45
46
|
export * from './Infra.js';
|
|
@@ -55,6 +56,7 @@ export * from './OsInfo.js';
|
|
|
55
56
|
export * from './PairCapability.js';
|
|
56
57
|
export * from './PairCapabilityRequest.js';
|
|
57
58
|
export * from './Process.js';
|
|
59
|
+
export * from './Product.js';
|
|
58
60
|
export * from './RDMBacking.js';
|
|
59
61
|
export * from './RightsizingClusterResponse.js';
|
|
60
62
|
export * from './RightsizingClusterUtilization.js';
|