@openshift-migration-advisor/agent-sdk 0.30.0 → 0.31.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.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -3
  4. package/dist/esm/models/Datastore.d.ts +14 -2
  5. package/dist/esm/models/Datastore.js +6 -0
  6. package/dist/esm/models/Inventory1.d.ts +5 -1
  7. package/dist/esm/models/Inventory1.js +2 -0
  8. package/dist/esm/models/RDMBacking.d.ts +30 -0
  9. package/dist/esm/models/RDMBacking.js +41 -0
  10. package/dist/esm/models/VirtualMachineDatastore.d.ts +66 -0
  11. package/dist/esm/models/VirtualMachineDatastore.js +59 -0
  12. package/dist/esm/models/VirtualMachineDetail.d.ts +4 -0
  13. package/dist/esm/models/VirtualMachineDetail.js +4 -0
  14. package/dist/esm/models/VirtualMachineDisk.d.ts +10 -0
  15. package/dist/esm/models/VirtualMachineDisk.js +6 -0
  16. package/dist/esm/models/VirtualMachineNIC.d.ts +4 -0
  17. package/dist/esm/models/VirtualMachineNIC.js +2 -0
  18. package/dist/esm/models/index.d.ts +2 -0
  19. package/dist/esm/models/index.js +2 -0
  20. package/dist/models/Datastore.d.ts +14 -2
  21. package/dist/models/Datastore.js +6 -0
  22. package/dist/models/Inventory1.d.ts +5 -1
  23. package/dist/models/Inventory1.js +2 -0
  24. package/dist/models/RDMBacking.d.ts +30 -0
  25. package/dist/models/RDMBacking.js +48 -0
  26. package/dist/models/VirtualMachineDatastore.d.ts +66 -0
  27. package/dist/models/VirtualMachineDatastore.js +66 -0
  28. package/dist/models/VirtualMachineDetail.d.ts +4 -0
  29. package/dist/models/VirtualMachineDetail.js +4 -0
  30. package/dist/models/VirtualMachineDisk.d.ts +10 -0
  31. package/dist/models/VirtualMachineDisk.js +6 -0
  32. package/dist/models/VirtualMachineNIC.d.ts +4 -0
  33. package/dist/models/VirtualMachineNIC.js +2 -0
  34. package/dist/models/index.d.ts +2 -0
  35. package/dist/models/index.js +2 -0
  36. package/docs/Datastore.md +6 -0
  37. package/docs/Inventory1.md +2 -0
  38. package/docs/RDMBacking.md +35 -0
  39. package/docs/VirtualMachineDatastore.md +53 -0
  40. package/docs/VirtualMachineDetail.md +2 -0
  41. package/docs/VirtualMachineDisk.md +4 -0
  42. package/docs/VirtualMachineNIC.md +2 -0
  43. package/package.json +1 -1
  44. package/src/models/Datastore.ts +20 -2
  45. package/src/models/Inventory1.ts +7 -1
  46. package/src/models/RDMBacking.ts +63 -0
  47. package/src/models/VirtualMachineDatastore.ts +117 -0
  48. package/src/models/VirtualMachineDetail.ts +7 -0
  49. package/src/models/VirtualMachineDisk.ts +27 -0
  50. package/src/models/VirtualMachineNIC.ts +6 -0
  51. package/src/models/index.ts +2 -0
@@ -0,0 +1,63 @@
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
+ * Source-provided backing identity for an RDM disk; omitted when unavailable
18
+ * @export
19
+ * @interface RDMBacking
20
+ */
21
+ export interface RDMBacking {
22
+ /**
23
+ * LUN UUID reported directly by the RDM disk backing, when available
24
+ */
25
+ lunUuid?: string;
26
+ }
27
+
28
+ /**
29
+ * Check if a given object implements the RDMBacking interface.
30
+ */
31
+ export function instanceOfRDMBacking(value: object): value is RDMBacking {
32
+ return true;
33
+ }
34
+
35
+ export function RDMBackingFromJSON(json: any): RDMBacking {
36
+ return RDMBackingFromJSONTyped(json, false);
37
+ }
38
+
39
+ export function RDMBackingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMBacking {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+
45
+ 'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
46
+ };
47
+ }
48
+
49
+ export function RDMBackingToJSON(json: any): RDMBacking {
50
+ return RDMBackingToJSONTyped(json, false);
51
+ }
52
+
53
+ export function RDMBackingToJSONTyped(value?: RDMBacking | null, ignoreDiscriminator: boolean = false): any {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+
58
+ return {
59
+
60
+ 'lunUuid': value['lunUuid'],
61
+ };
62
+ }
63
+
@@ -0,0 +1,117 @@
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
+ * Datastore backing this virtual disk
18
+ * @export
19
+ * @interface VirtualMachineDatastore
20
+ */
21
+ export interface VirtualMachineDatastore {
22
+ /**
23
+ * Datastore object ID
24
+ */
25
+ id?: string;
26
+ /**
27
+ * Datastore name
28
+ */
29
+ name?: string;
30
+ /**
31
+ * Datastore type (VMFS, NFS, vSAN, vVol)
32
+ */
33
+ type?: string;
34
+ /**
35
+ * Datastore filesystem type
36
+ */
37
+ filesystemType?: string;
38
+ /**
39
+ * Datastore filesystem major version when available
40
+ */
41
+ filesystemMajorVersion?: number;
42
+ /**
43
+ * Backing storage transport protocol when available (for example FC, iSCSI, or NFS)
44
+ */
45
+ protocolType?: string;
46
+ /**
47
+ * Datastore storage access category when available (Block, File, or Object)
48
+ */
49
+ storageProtocol?: string;
50
+ /**
51
+ * Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
52
+ */
53
+ backingDeviceIds?: Array<string>;
54
+ /**
55
+ * Vendor reported by matching backing devices when available
56
+ */
57
+ vendor?: string;
58
+ /**
59
+ * Model reported by matching backing devices when available
60
+ */
61
+ model?: string;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the VirtualMachineDatastore interface.
66
+ */
67
+ export function instanceOfVirtualMachineDatastore(value: object): value is VirtualMachineDatastore {
68
+ return true;
69
+ }
70
+
71
+ export function VirtualMachineDatastoreFromJSON(json: any): VirtualMachineDatastore {
72
+ return VirtualMachineDatastoreFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function VirtualMachineDatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDatastore {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'id': json['id'] == null ? undefined : json['id'],
82
+ 'name': json['name'] == null ? undefined : json['name'],
83
+ 'type': json['type'] == null ? undefined : json['type'],
84
+ 'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
85
+ 'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
86
+ 'protocolType': json['protocolType'] == null ? undefined : json['protocolType'],
87
+ 'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
88
+ 'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
89
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
90
+ 'model': json['model'] == null ? undefined : json['model'],
91
+ };
92
+ }
93
+
94
+ export function VirtualMachineDatastoreToJSON(json: any): VirtualMachineDatastore {
95
+ return VirtualMachineDatastoreToJSONTyped(json, false);
96
+ }
97
+
98
+ export function VirtualMachineDatastoreToJSONTyped(value?: VirtualMachineDatastore | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'id': value['id'],
106
+ 'name': value['name'],
107
+ 'type': value['type'],
108
+ 'filesystemType': value['filesystemType'],
109
+ 'filesystemMajorVersion': value['filesystemMajorVersion'],
110
+ 'protocolType': value['protocolType'],
111
+ 'storageProtocol': value['storageProtocol'],
112
+ 'backingDeviceIds': value['backingDeviceIds'],
113
+ 'vendor': value['vendor'],
114
+ 'model': value['model'],
115
+ };
116
+ }
117
+
@@ -207,6 +207,10 @@ export interface VirtualMachineDetail {
207
207
  *
208
208
  */
209
209
  disks: Array<VirtualMachineDisk>;
210
+ /**
211
+ * Adapter count reported by the source; 0 when unavailable
212
+ */
213
+ nicCount: number;
210
214
  /**
211
215
  *
212
216
  */
@@ -250,6 +254,7 @@ export function instanceOfVirtualMachineDetail(value: object): value is VirtualM
250
254
  if (!('coresPerSocket' in value) || value['coresPerSocket'] === undefined) return false;
251
255
  if (!('memoryMB' in value) || value['memoryMB'] === undefined) return false;
252
256
  if (!('disks' in value) || value['disks'] === undefined) return false;
257
+ if (!('nicCount' in value) || value['nicCount'] === undefined) return false;
253
258
  if (!('nics' in value) || value['nics'] === undefined) return false;
254
259
  return true;
255
260
  }
@@ -295,6 +300,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
295
300
  'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
296
301
  'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
297
302
  'disks': ((json['disks'] as Array<any>).map(VirtualMachineDiskFromJSON)),
303
+ 'nicCount': json['nicCount'],
298
304
  'nics': ((json['nics'] as Array<any>).map(VirtualMachineNICFromJSON)),
299
305
  'devices': json['devices'] == null ? undefined : ((json['devices'] as Array<any>).map(VirtualMachineDeviceFromJSON)),
300
306
  'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
@@ -346,6 +352,7 @@ export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetai
346
352
  'toolsStatus': value['toolsStatus'],
347
353
  'toolsRunningStatus': value['toolsRunningStatus'],
348
354
  'disks': ((value['disks'] as Array<any>).map(VirtualMachineDiskToJSON)),
355
+ 'nicCount': value['nicCount'],
349
356
  'nics': ((value['nics'] as Array<any>).map(VirtualMachineNICToJSON)),
350
357
  'devices': value['devices'] == null ? undefined : ((value['devices'] as Array<any>).map(VirtualMachineDeviceToJSON)),
351
358
  'guestNetworks': value['guestNetworks'] == null ? undefined : ((value['guestNetworks'] as Array<any>).map(GuestNetworkToJSON)),
@@ -13,6 +13,21 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
+ import type { RDMBacking } from './RDMBacking.js';
17
+ import {
18
+ RDMBackingFromJSON,
19
+ RDMBackingFromJSONTyped,
20
+ RDMBackingToJSON,
21
+ RDMBackingToJSONTyped,
22
+ } from './RDMBacking.js';
23
+ import type { VirtualMachineDatastore } from './VirtualMachineDatastore.js';
24
+ import {
25
+ VirtualMachineDatastoreFromJSON,
26
+ VirtualMachineDatastoreFromJSONTyped,
27
+ VirtualMachineDatastoreToJSON,
28
+ VirtualMachineDatastoreToJSONTyped,
29
+ } from './VirtualMachineDatastore.js';
30
+
16
31
  /**
17
32
  *
18
33
  * @export
@@ -39,6 +54,10 @@ export interface VirtualMachineDisk {
39
54
  * Whether this is a Raw Device Mapping
40
55
  */
41
56
  rdm?: boolean;
57
+ /**
58
+ *
59
+ */
60
+ rdmBacking?: RDMBacking;
42
61
  /**
43
62
  * Bus type (scsi, ide, sata, nvme)
44
63
  */
@@ -47,6 +66,10 @@ export interface VirtualMachineDisk {
47
66
  * Disk mode (persistent, independent_persistent, independent_nonpersistent)
48
67
  */
49
68
  mode?: string;
69
+ /**
70
+ *
71
+ */
72
+ datastore?: VirtualMachineDatastore;
50
73
  }
51
74
 
52
75
  /**
@@ -71,8 +94,10 @@ export function VirtualMachineDiskFromJSONTyped(json: any, ignoreDiscriminator:
71
94
  'capacity': json['capacity'] == null ? undefined : json['capacity'],
72
95
  'shared': json['shared'] == null ? undefined : json['shared'],
73
96
  'rdm': json['rdm'] == null ? undefined : json['rdm'],
97
+ 'rdmBacking': json['rdmBacking'] == null ? undefined : RDMBackingFromJSON(json['rdmBacking']),
74
98
  'bus': json['bus'] == null ? undefined : json['bus'],
75
99
  'mode': json['mode'] == null ? undefined : json['mode'],
100
+ 'datastore': json['datastore'] == null ? undefined : VirtualMachineDatastoreFromJSON(json['datastore']),
76
101
  };
77
102
  }
78
103
 
@@ -92,8 +117,10 @@ export function VirtualMachineDiskToJSONTyped(value?: VirtualMachineDisk | null,
92
117
  'capacity': value['capacity'],
93
118
  'shared': value['shared'],
94
119
  'rdm': value['rdm'],
120
+ 'rdmBacking': RDMBackingToJSON(value['rdmBacking']),
95
121
  'bus': value['bus'],
96
122
  'mode': value['mode'],
123
+ 'datastore': VirtualMachineDatastoreToJSON(value['datastore']),
97
124
  };
98
125
  }
99
126
 
@@ -19,6 +19,10 @@ import { mapValues } from '../runtime.js';
19
19
  * @interface VirtualMachineNIC
20
20
  */
21
21
  export interface VirtualMachineNIC {
22
+ /**
23
+ * Virtual adapter model, such as Vmxnet3 or E1000
24
+ */
25
+ adapter?: string;
22
26
  /**
23
27
  * MAC address
24
28
  */
@@ -50,6 +54,7 @@ export function VirtualMachineNICFromJSONTyped(json: any, ignoreDiscriminator: b
50
54
  }
51
55
  return {
52
56
 
57
+ 'adapter': json['adapter'] == null ? undefined : json['adapter'],
53
58
  'mac': json['mac'] == null ? undefined : json['mac'],
54
59
  'network': json['network'] == null ? undefined : json['network'],
55
60
  'index': json['index'] == null ? undefined : json['index'],
@@ -67,6 +72,7 @@ export function VirtualMachineNICToJSONTyped(value?: VirtualMachineNIC | null, i
67
72
 
68
73
  return {
69
74
 
75
+ 'adapter': value['adapter'],
70
76
  'mac': value['mac'],
71
77
  'network': value['network'],
72
78
  'index': value['index'],
@@ -53,6 +53,7 @@ export * from './OsInfo.js';
53
53
  export * from './PairCapability.js';
54
54
  export * from './PairCapabilityRequest.js';
55
55
  export * from './Process.js';
56
+ export * from './RDMBacking.js';
56
57
  export * from './RightsizingClusterResponse.js';
57
58
  export * from './RightsizingClusterUtilization.js';
58
59
  export * from './StartForecasterRequest.js';
@@ -71,6 +72,7 @@ export * from './VcenterCredentials.js';
71
72
  export * from './VddkProperties.js';
72
73
  export * from './VersionInfo.js';
73
74
  export * from './VirtualMachine.js';
75
+ export * from './VirtualMachineDatastore.js';
74
76
  export * from './VirtualMachineDetail.js';
75
77
  export * from './VirtualMachineDevice.js';
76
78
  export * from './VirtualMachineDisk.js';