@openshift-migration-advisor/agent-sdk 0.30.0 → 0.31.0-df1e6c5c13c2

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 (104) hide show
  1. package/.openapi-generator/FILES +12 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +9 -4
  4. package/dist/apis/InventoriesApi.d.ts +9 -9
  5. package/dist/apis/InventoriesApi.js +3 -3
  6. package/dist/esm/apis/InventoriesApi.d.ts +9 -9
  7. package/dist/esm/apis/InventoriesApi.js +3 -3
  8. package/dist/esm/models/CollectedInventory.d.ts +31 -0
  9. package/dist/esm/models/CollectedInventory.js +44 -0
  10. package/dist/esm/models/Datastore.d.ts +14 -2
  11. package/dist/esm/models/Datastore.js +6 -0
  12. package/dist/esm/models/GroupResponse.d.ts +2 -2
  13. package/dist/esm/models/GroupResponse.js +3 -3
  14. package/dist/esm/models/Host.d.ts +10 -0
  15. package/dist/esm/models/Host.js +6 -0
  16. package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
  17. package/dist/esm/models/HostPhysicalNIC.js +45 -0
  18. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  19. package/dist/esm/models/HostStorageAdapter.js +55 -0
  20. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  21. package/dist/esm/models/HostStorageLun.js +51 -0
  22. package/dist/esm/models/Inventory.d.ts +24 -2
  23. package/dist/esm/models/Inventory.js +17 -4
  24. package/dist/esm/models/RDMBacking.d.ts +30 -0
  25. package/dist/esm/models/RDMBacking.js +41 -0
  26. package/dist/esm/models/UpdateInventory.d.ts +2 -2
  27. package/dist/esm/models/UpdateInventory.js +3 -3
  28. package/dist/esm/models/VirtualMachineDatastore.d.ts +66 -0
  29. package/dist/esm/models/VirtualMachineDatastore.js +59 -0
  30. package/dist/esm/models/VirtualMachineDetail.d.ts +13 -0
  31. package/dist/esm/models/VirtualMachineDetail.js +9 -0
  32. package/dist/esm/models/VirtualMachineDisk.d.ts +10 -0
  33. package/dist/esm/models/VirtualMachineDisk.js +6 -0
  34. package/dist/esm/models/VirtualMachineNIC.d.ts +16 -0
  35. package/dist/esm/models/VirtualMachineNIC.js +8 -0
  36. package/dist/esm/models/index.d.ts +6 -1
  37. package/dist/esm/models/index.js +6 -1
  38. package/dist/models/CollectedInventory.d.ts +31 -0
  39. package/dist/models/CollectedInventory.js +51 -0
  40. package/dist/models/Datastore.d.ts +14 -2
  41. package/dist/models/Datastore.js +6 -0
  42. package/dist/models/GroupResponse.d.ts +2 -2
  43. package/dist/models/GroupResponse.js +3 -3
  44. package/dist/models/Host.d.ts +10 -0
  45. package/dist/models/Host.js +6 -0
  46. package/dist/models/HostPhysicalNIC.d.ts +34 -0
  47. package/dist/models/HostPhysicalNIC.js +52 -0
  48. package/dist/models/HostStorageAdapter.d.ts +58 -0
  49. package/dist/models/HostStorageAdapter.js +62 -0
  50. package/dist/models/HostStorageLun.d.ts +50 -0
  51. package/dist/models/HostStorageLun.js +58 -0
  52. package/dist/models/Inventory.d.ts +24 -2
  53. package/dist/models/Inventory.js +17 -4
  54. package/dist/models/RDMBacking.d.ts +30 -0
  55. package/dist/models/RDMBacking.js +48 -0
  56. package/dist/models/UpdateInventory.d.ts +2 -2
  57. package/dist/models/UpdateInventory.js +3 -3
  58. package/dist/models/VirtualMachineDatastore.d.ts +66 -0
  59. package/dist/models/VirtualMachineDatastore.js +66 -0
  60. package/dist/models/VirtualMachineDetail.d.ts +13 -0
  61. package/dist/models/VirtualMachineDetail.js +9 -0
  62. package/dist/models/VirtualMachineDisk.d.ts +10 -0
  63. package/dist/models/VirtualMachineDisk.js +6 -0
  64. package/dist/models/VirtualMachineNIC.d.ts +16 -0
  65. package/dist/models/VirtualMachineNIC.js +8 -0
  66. package/dist/models/index.d.ts +6 -1
  67. package/dist/models/index.js +6 -1
  68. package/docs/CollectedInventory.md +34 -0
  69. package/docs/Datastore.md +6 -0
  70. package/docs/GroupResponse.md +1 -1
  71. package/docs/Host.md +4 -0
  72. package/docs/HostPhysicalNIC.md +36 -0
  73. package/docs/HostStorageAdapter.md +49 -0
  74. package/docs/HostStorageLun.md +45 -0
  75. package/docs/InventoriesApi.md +4 -4
  76. package/docs/Inventory.md +12 -2
  77. package/docs/{Inventory1.md → RDMBacking.md} +7 -14
  78. package/docs/UpdateInventory.md +1 -1
  79. package/docs/VirtualMachineDatastore.md +53 -0
  80. package/docs/VirtualMachineDetail.md +6 -0
  81. package/docs/VirtualMachineDisk.md +4 -0
  82. package/docs/VirtualMachineNIC.md +8 -0
  83. package/package.json +1 -1
  84. package/src/apis/InventoriesApi.ts +14 -14
  85. package/src/models/CollectedInventory.ts +72 -0
  86. package/src/models/Datastore.ts +20 -2
  87. package/src/models/GroupResponse.ts +9 -9
  88. package/src/models/Host.ts +27 -0
  89. package/src/models/HostPhysicalNIC.ts +70 -0
  90. package/src/models/HostStorageAdapter.ts +105 -0
  91. package/src/models/HostStorageLun.ts +93 -0
  92. package/src/models/Inventory.ts +42 -11
  93. package/src/models/RDMBacking.ts +63 -0
  94. package/src/models/UpdateInventory.ts +9 -9
  95. package/src/models/VirtualMachineDatastore.ts +117 -0
  96. package/src/models/VirtualMachineDetail.ts +26 -0
  97. package/src/models/VirtualMachineDisk.ts +27 -0
  98. package/src/models/VirtualMachineNIC.ts +24 -0
  99. package/src/models/index.ts +6 -1
  100. package/dist/esm/models/Inventory1.d.ts +0 -49
  101. package/dist/esm/models/Inventory1.js +0 -55
  102. package/dist/models/Inventory1.d.ts +0 -49
  103. package/dist/models/Inventory1.js +0 -62
  104. package/src/models/Inventory1.ts +0 -97
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfHostStorageLun = instanceOfHostStorageLun;
17
+ exports.HostStorageLunFromJSON = HostStorageLunFromJSON;
18
+ exports.HostStorageLunFromJSONTyped = HostStorageLunFromJSONTyped;
19
+ exports.HostStorageLunToJSON = HostStorageLunToJSON;
20
+ exports.HostStorageLunToJSONTyped = HostStorageLunToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the HostStorageLun interface.
23
+ */
24
+ function instanceOfHostStorageLun(value) {
25
+ return true;
26
+ }
27
+ function HostStorageLunFromJSON(json) {
28
+ return HostStorageLunFromJSONTyped(json, false);
29
+ }
30
+ function HostStorageLunFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
36
+ 'key': json['key'] == null ? undefined : json['key'],
37
+ 'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
38
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
39
+ 'model': json['model'] == null ? undefined : json['model'],
40
+ 'adapterDevices': json['adapterDevices'] == null ? undefined : json['adapterDevices'],
41
+ };
42
+ }
43
+ function HostStorageLunToJSON(json) {
44
+ return HostStorageLunToJSONTyped(json, false);
45
+ }
46
+ function HostStorageLunToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'canonicalName': value['canonicalName'],
52
+ 'key': value['key'],
53
+ 'lunUuid': value['lunUuid'],
54
+ 'vendor': value['vendor'],
55
+ 'model': value['model'],
56
+ 'adapterDevices': value['adapterDevices'],
57
+ };
58
+ }
@@ -9,17 +9,39 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { UpdateInventory } from './UpdateInventory.js';
12
+ import type { InventoryData } from './InventoryData.js';
13
13
  /**
14
14
  *
15
15
  * @export
16
16
  * @interface Inventory
17
17
  */
18
18
  export interface Inventory {
19
+ /**
20
+ * ID of the vCenter
21
+ */
22
+ vcenter_id: string;
23
+ /**
24
+ * Version of the vCenter api. For example "8.0.3.0"
25
+ */
26
+ vcenter_version?: string;
27
+ /**
28
+ * Map of cluster names to their inventory data
29
+ */
30
+ clusters: {
31
+ [key: string]: InventoryData;
32
+ };
19
33
  /**
20
34
  *
21
35
  */
22
- inventory: UpdateInventory;
36
+ vcenter?: InventoryData;
37
+ /**
38
+ * Timestamp when the inventory document was built
39
+ */
40
+ created_at?: Date;
41
+ /**
42
+ * Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
43
+ */
44
+ collection_time?: Date | null;
23
45
  }
24
46
  /**
25
47
  * Check if a given object implements the Inventory interface.
@@ -18,12 +18,15 @@ exports.InventoryFromJSON = InventoryFromJSON;
18
18
  exports.InventoryFromJSONTyped = InventoryFromJSONTyped;
19
19
  exports.InventoryToJSON = InventoryToJSON;
20
20
  exports.InventoryToJSONTyped = InventoryToJSONTyped;
21
- const UpdateInventory_js_1 = require("./UpdateInventory.js");
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const InventoryData_js_1 = require("./InventoryData.js");
22
23
  /**
23
24
  * Check if a given object implements the Inventory interface.
24
25
  */
25
26
  function instanceOfInventory(value) {
26
- if (!('inventory' in value) || value['inventory'] === undefined)
27
+ if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
28
+ return false;
29
+ if (!('clusters' in value) || value['clusters'] === undefined)
27
30
  return false;
28
31
  return true;
29
32
  }
@@ -35,7 +38,12 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
35
38
  return json;
36
39
  }
37
40
  return {
38
- 'inventory': (0, UpdateInventory_js_1.UpdateInventoryFromJSON)(json['inventory']),
41
+ 'vcenter_id': json['vcenter_id'],
42
+ 'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
43
+ 'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
44
+ 'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
45
+ 'created_at': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
46
+ 'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['collection_time'])),
39
47
  };
40
48
  }
41
49
  function InventoryToJSON(json) {
@@ -46,6 +54,11 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
46
54
  return value;
47
55
  }
48
56
  return {
49
- 'inventory': (0, UpdateInventory_js_1.UpdateInventoryToJSON)(value['inventory']),
57
+ 'vcenter_id': value['vcenter_id'],
58
+ 'vcenter_version': value['vcenter_version'],
59
+ 'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
60
+ 'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
61
+ 'created_at': value['created_at'] == null ? value['created_at'] : (0, runtime_js_1.serializeDateTime)(value['created_at']),
62
+ 'collection_time': value['collection_time'] == null ? value['collection_time'] : (0, runtime_js_1.serializeDateTime)(value['collection_time']),
50
63
  };
51
64
  }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Source-provided backing identity for an RDM disk; omitted when unavailable
14
+ * @export
15
+ * @interface RDMBacking
16
+ */
17
+ export interface RDMBacking {
18
+ /**
19
+ * LUN UUID reported directly by the RDM disk backing, when available
20
+ */
21
+ lunUuid?: string;
22
+ }
23
+ /**
24
+ * Check if a given object implements the RDMBacking interface.
25
+ */
26
+ export declare function instanceOfRDMBacking(value: object): value is RDMBacking;
27
+ export declare function RDMBackingFromJSON(json: any): RDMBacking;
28
+ export declare function RDMBackingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMBacking;
29
+ export declare function RDMBackingToJSON(json: any): RDMBacking;
30
+ export declare function RDMBackingToJSONTyped(value?: RDMBacking | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfRDMBacking = instanceOfRDMBacking;
17
+ exports.RDMBackingFromJSON = RDMBackingFromJSON;
18
+ exports.RDMBackingFromJSONTyped = RDMBackingFromJSONTyped;
19
+ exports.RDMBackingToJSON = RDMBackingToJSON;
20
+ exports.RDMBackingToJSONTyped = RDMBackingToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the RDMBacking interface.
23
+ */
24
+ function instanceOfRDMBacking(value) {
25
+ return true;
26
+ }
27
+ function RDMBackingFromJSON(json) {
28
+ return RDMBackingFromJSONTyped(json, false);
29
+ }
30
+ function RDMBackingFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
36
+ };
37
+ }
38
+ function RDMBackingToJSON(json) {
39
+ return RDMBackingToJSONTyped(json, false);
40
+ }
41
+ function RDMBackingToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'lunUuid': value['lunUuid'],
47
+ };
48
+ }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Inventory1 } from './Inventory1.js';
12
+ import type { Inventory } from './Inventory.js';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -23,7 +23,7 @@ export interface UpdateInventory {
23
23
  /**
24
24
  *
25
25
  */
26
- inventory: Inventory1;
26
+ inventory: Inventory;
27
27
  }
28
28
  /**
29
29
  * Check if a given object implements the UpdateInventory interface.
@@ -18,7 +18,7 @@ exports.UpdateInventoryFromJSON = UpdateInventoryFromJSON;
18
18
  exports.UpdateInventoryFromJSONTyped = UpdateInventoryFromJSONTyped;
19
19
  exports.UpdateInventoryToJSON = UpdateInventoryToJSON;
20
20
  exports.UpdateInventoryToJSONTyped = UpdateInventoryToJSONTyped;
21
- const Inventory1_js_1 = require("./Inventory1.js");
21
+ const Inventory_js_1 = require("./Inventory.js");
22
22
  /**
23
23
  * Check if a given object implements the UpdateInventory interface.
24
24
  */
@@ -38,7 +38,7 @@ function UpdateInventoryFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  return {
40
40
  'agentId': json['agentId'],
41
- 'inventory': (0, Inventory1_js_1.Inventory1FromJSON)(json['inventory']),
41
+ 'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
42
42
  };
43
43
  }
44
44
  function UpdateInventoryToJSON(json) {
@@ -50,6 +50,6 @@ function UpdateInventoryToJSONTyped(value, ignoreDiscriminator = false) {
50
50
  }
51
51
  return {
52
52
  'agentId': value['agentId'],
53
- 'inventory': (0, Inventory1_js_1.Inventory1ToJSON)(value['inventory']),
53
+ 'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
54
54
  };
55
55
  }
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Datastore backing this virtual disk
14
+ * @export
15
+ * @interface VirtualMachineDatastore
16
+ */
17
+ export interface VirtualMachineDatastore {
18
+ /**
19
+ * Datastore object ID
20
+ */
21
+ id?: string;
22
+ /**
23
+ * Datastore name
24
+ */
25
+ name?: string;
26
+ /**
27
+ * Datastore type (VMFS, NFS, vSAN, vVol)
28
+ */
29
+ type?: string;
30
+ /**
31
+ * Datastore filesystem type
32
+ */
33
+ filesystemType?: string;
34
+ /**
35
+ * Datastore filesystem major version when available
36
+ */
37
+ filesystemMajorVersion?: number;
38
+ /**
39
+ * Backing storage transport protocol when available (for example FC, iSCSI, or NFS)
40
+ */
41
+ protocolType?: string;
42
+ /**
43
+ * Datastore storage access category when available (Block, File, or Object)
44
+ */
45
+ storageProtocol?: string;
46
+ /**
47
+ * Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
48
+ */
49
+ backingDeviceIds?: Array<string>;
50
+ /**
51
+ * Vendor reported by matching backing devices when available
52
+ */
53
+ vendor?: string;
54
+ /**
55
+ * Model reported by matching backing devices when available
56
+ */
57
+ model?: string;
58
+ }
59
+ /**
60
+ * Check if a given object implements the VirtualMachineDatastore interface.
61
+ */
62
+ export declare function instanceOfVirtualMachineDatastore(value: object): value is VirtualMachineDatastore;
63
+ export declare function VirtualMachineDatastoreFromJSON(json: any): VirtualMachineDatastore;
64
+ export declare function VirtualMachineDatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDatastore;
65
+ export declare function VirtualMachineDatastoreToJSON(json: any): VirtualMachineDatastore;
66
+ export declare function VirtualMachineDatastoreToJSONTyped(value?: VirtualMachineDatastore | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfVirtualMachineDatastore = instanceOfVirtualMachineDatastore;
17
+ exports.VirtualMachineDatastoreFromJSON = VirtualMachineDatastoreFromJSON;
18
+ exports.VirtualMachineDatastoreFromJSONTyped = VirtualMachineDatastoreFromJSONTyped;
19
+ exports.VirtualMachineDatastoreToJSON = VirtualMachineDatastoreToJSON;
20
+ exports.VirtualMachineDatastoreToJSONTyped = VirtualMachineDatastoreToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VirtualMachineDatastore interface.
23
+ */
24
+ function instanceOfVirtualMachineDatastore(value) {
25
+ return true;
26
+ }
27
+ function VirtualMachineDatastoreFromJSON(json) {
28
+ return VirtualMachineDatastoreFromJSONTyped(json, false);
29
+ }
30
+ function VirtualMachineDatastoreFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
36
+ 'name': json['name'] == null ? undefined : json['name'],
37
+ 'type': json['type'] == null ? undefined : json['type'],
38
+ 'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
39
+ 'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
40
+ 'protocolType': json['protocolType'] == null ? undefined : json['protocolType'],
41
+ 'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
42
+ 'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
43
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
44
+ 'model': json['model'] == null ? undefined : json['model'],
45
+ };
46
+ }
47
+ function VirtualMachineDatastoreToJSON(json) {
48
+ return VirtualMachineDatastoreToJSONTyped(json, false);
49
+ }
50
+ function VirtualMachineDatastoreToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'id': value['id'],
56
+ 'name': value['name'],
57
+ 'type': value['type'],
58
+ 'filesystemType': value['filesystemType'],
59
+ 'filesystemMajorVersion': value['filesystemMajorVersion'],
60
+ 'protocolType': value['protocolType'],
61
+ 'storageProtocol': value['storageProtocol'],
62
+ 'backingDeviceIds': value['backingDeviceIds'],
63
+ 'vendor': value['vendor'],
64
+ 'model': value['model'],
65
+ };
66
+ }
@@ -14,6 +14,7 @@ import type { InspectionStatus } from './InspectionStatus.js';
14
14
  import type { GuestNetwork } from './GuestNetwork.js';
15
15
  import type { VirtualMachineIssue } from './VirtualMachineIssue.js';
16
16
  import type { VirtualMachineDevice } from './VirtualMachineDevice.js';
17
+ import type { HostPhysicalNIC } from './HostPhysicalNIC.js';
17
18
  import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
18
19
  import type { Process } from './Process.js';
19
20
  import type { VirtualMachineDisk } from './VirtualMachineDisk.js';
@@ -32,6 +33,10 @@ export interface VirtualMachineDetail {
32
33
  * Display name of the VirtualMachine
33
34
  */
34
35
  name: string;
36
+ /**
37
+ * Free-text notes/description for the VirtualMachine in vSphere
38
+ */
39
+ annotation?: string;
35
40
  /**
36
41
  * Identifier of the vCenter this VirtualMachine belongs to
37
42
  */
@@ -150,6 +155,14 @@ export interface VirtualMachineDetail {
150
155
  *
151
156
  */
152
157
  disks: Array<VirtualMachineDisk>;
158
+ /**
159
+ * Physical NICs reported on the VM's host. An empty array means no records were retained.
160
+ */
161
+ hostPhysicalNics?: Array<HostPhysicalNIC>;
162
+ /**
163
+ * Adapter count reported by the source; 0 when unavailable
164
+ */
165
+ nicCount: number;
153
166
  /**
154
167
  *
155
168
  */
@@ -23,6 +23,7 @@ const InspectionStatus_js_1 = require("./InspectionStatus.js");
23
23
  const GuestNetwork_js_1 = require("./GuestNetwork.js");
24
24
  const VirtualMachineIssue_js_1 = require("./VirtualMachineIssue.js");
25
25
  const VirtualMachineDevice_js_1 = require("./VirtualMachineDevice.js");
26
+ const HostPhysicalNIC_js_1 = require("./HostPhysicalNIC.js");
26
27
  const VmUtilizationDetails_js_1 = require("./VmUtilizationDetails.js");
27
28
  const Process_js_1 = require("./Process.js");
28
29
  const VirtualMachineDisk_js_1 = require("./VirtualMachineDisk.js");
@@ -49,6 +50,8 @@ function instanceOfVirtualMachineDetail(value) {
49
50
  return false;
50
51
  if (!('disks' in value) || value['disks'] === undefined)
51
52
  return false;
53
+ if (!('nicCount' in value) || value['nicCount'] === undefined)
54
+ return false;
52
55
  if (!('nics' in value) || value['nics'] === undefined)
53
56
  return false;
54
57
  return true;
@@ -63,6 +66,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
63
66
  return {
64
67
  'id': json['id'],
65
68
  'name': json['name'],
69
+ 'annotation': json['annotation'] == null ? undefined : json['annotation'],
66
70
  'vCenterID': json['vCenterID'],
67
71
  'uuid': json['uuid'] == null ? undefined : json['uuid'],
68
72
  'firmware': json['firmware'] == null ? undefined : json['firmware'],
@@ -92,6 +96,8 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
92
96
  'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
93
97
  'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
94
98
  'disks': (json['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskFromJSON)),
99
+ 'hostPhysicalNics': json['hostPhysicalNics'] == null ? undefined : (json['hostPhysicalNics'].map(HostPhysicalNIC_js_1.HostPhysicalNICFromJSON)),
100
+ 'nicCount': json['nicCount'],
95
101
  'nics': (json['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICFromJSON)),
96
102
  'devices': json['devices'] == null ? undefined : (json['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceFromJSON)),
97
103
  'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkFromJSON)),
@@ -111,6 +117,7 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
111
117
  return {
112
118
  'id': value['id'],
113
119
  'name': value['name'],
120
+ 'annotation': value['annotation'],
114
121
  'vCenterID': value['vCenterID'],
115
122
  'uuid': value['uuid'],
116
123
  'firmware': value['firmware'],
@@ -139,6 +146,8 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
139
146
  'toolsStatus': value['toolsStatus'],
140
147
  'toolsRunningStatus': value['toolsRunningStatus'],
141
148
  'disks': (value['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskToJSON)),
149
+ 'hostPhysicalNics': value['hostPhysicalNics'] == null ? undefined : (value['hostPhysicalNics'].map(HostPhysicalNIC_js_1.HostPhysicalNICToJSON)),
150
+ 'nicCount': value['nicCount'],
142
151
  'nics': (value['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICToJSON)),
143
152
  'devices': value['devices'] == null ? undefined : (value['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceToJSON)),
144
153
  'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkToJSON)),
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { RDMBacking } from './RDMBacking.js';
13
+ import type { VirtualMachineDatastore } from './VirtualMachineDatastore.js';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -35,6 +37,10 @@ export interface VirtualMachineDisk {
35
37
  * Whether this is a Raw Device Mapping
36
38
  */
37
39
  rdm?: boolean;
40
+ /**
41
+ *
42
+ */
43
+ rdmBacking?: RDMBacking;
38
44
  /**
39
45
  * Bus type (scsi, ide, sata, nvme)
40
46
  */
@@ -43,6 +49,10 @@ export interface VirtualMachineDisk {
43
49
  * Disk mode (persistent, independent_persistent, independent_nonpersistent)
44
50
  */
45
51
  mode?: string;
52
+ /**
53
+ *
54
+ */
55
+ datastore?: VirtualMachineDatastore;
46
56
  }
47
57
  /**
48
58
  * Check if a given object implements the VirtualMachineDisk interface.
@@ -18,6 +18,8 @@ exports.VirtualMachineDiskFromJSON = VirtualMachineDiskFromJSON;
18
18
  exports.VirtualMachineDiskFromJSONTyped = VirtualMachineDiskFromJSONTyped;
19
19
  exports.VirtualMachineDiskToJSON = VirtualMachineDiskToJSON;
20
20
  exports.VirtualMachineDiskToJSONTyped = VirtualMachineDiskToJSONTyped;
21
+ const RDMBacking_js_1 = require("./RDMBacking.js");
22
+ const VirtualMachineDatastore_js_1 = require("./VirtualMachineDatastore.js");
21
23
  /**
22
24
  * Check if a given object implements the VirtualMachineDisk interface.
23
25
  */
@@ -37,8 +39,10 @@ function VirtualMachineDiskFromJSONTyped(json, ignoreDiscriminator) {
37
39
  'capacity': json['capacity'] == null ? undefined : json['capacity'],
38
40
  'shared': json['shared'] == null ? undefined : json['shared'],
39
41
  'rdm': json['rdm'] == null ? undefined : json['rdm'],
42
+ 'rdmBacking': json['rdmBacking'] == null ? undefined : (0, RDMBacking_js_1.RDMBackingFromJSON)(json['rdmBacking']),
40
43
  'bus': json['bus'] == null ? undefined : json['bus'],
41
44
  'mode': json['mode'] == null ? undefined : json['mode'],
45
+ 'datastore': json['datastore'] == null ? undefined : (0, VirtualMachineDatastore_js_1.VirtualMachineDatastoreFromJSON)(json['datastore']),
42
46
  };
43
47
  }
44
48
  function VirtualMachineDiskToJSON(json) {
@@ -54,7 +58,9 @@ function VirtualMachineDiskToJSONTyped(value, ignoreDiscriminator = false) {
54
58
  'capacity': value['capacity'],
55
59
  'shared': value['shared'],
56
60
  'rdm': value['rdm'],
61
+ 'rdmBacking': (0, RDMBacking_js_1.RDMBackingToJSON)(value['rdmBacking']),
57
62
  'bus': value['bus'],
58
63
  'mode': value['mode'],
64
+ 'datastore': (0, VirtualMachineDatastore_js_1.VirtualMachineDatastoreToJSON)(value['datastore']),
59
65
  };
60
66
  }
@@ -15,6 +15,22 @@
15
15
  * @interface VirtualMachineNIC
16
16
  */
17
17
  export interface VirtualMachineNIC {
18
+ /**
19
+ * Virtual adapter model, such as Vmxnet3 or E1000
20
+ */
21
+ adapter?: string;
22
+ /**
23
+ * Port-group VLAN configuration when supplied; empty when unknown.
24
+ */
25
+ vlanId?: string;
26
+ /**
27
+ * IPv4 addresses reported for this adapter. An IP address may also contain a CIDR suffix. Empty array when unknown.
28
+ */
29
+ ipv4Addresses?: Array<string>;
30
+ /**
31
+ * IPv6 addresses reported for this adapter. An IP address may also contain a CIDR suffix. Empty array when unknown.
32
+ */
33
+ ipv6Addresses?: Array<string>;
18
34
  /**
19
35
  * MAC address
20
36
  */
@@ -32,6 +32,10 @@ function VirtualMachineNICFromJSONTyped(json, ignoreDiscriminator) {
32
32
  return json;
33
33
  }
34
34
  return {
35
+ 'adapter': json['adapter'] == null ? undefined : json['adapter'],
36
+ 'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
37
+ 'ipv4Addresses': json['ipv4Addresses'] == null ? undefined : json['ipv4Addresses'],
38
+ 'ipv6Addresses': json['ipv6Addresses'] == null ? undefined : json['ipv6Addresses'],
35
39
  'mac': json['mac'] == null ? undefined : json['mac'],
36
40
  'network': json['network'] == null ? undefined : json['network'],
37
41
  'index': json['index'] == null ? undefined : json['index'],
@@ -45,6 +49,10 @@ function VirtualMachineNICToJSONTyped(value, ignoreDiscriminator = false) {
45
49
  return value;
46
50
  }
47
51
  return {
52
+ 'adapter': value['adapter'],
53
+ 'vlanId': value['vlanId'],
54
+ 'ipv4Addresses': value['ipv4Addresses'],
55
+ 'ipv6Addresses': value['ipv6Addresses'],
48
56
  'mac': value['mac'],
49
57
  'network': value['network'],
50
58
  'index': value['index'],
@@ -10,6 +10,7 @@ export * from './CapabilityStatus.js';
10
10
  export * from './CapabilityStatusCapabilities.js';
11
11
  export * from './ClusterFeatures.js';
12
12
  export * from './ClusterUtilization.js';
13
+ export * from './CollectedInventory.js';
13
14
  export * from './Collection.js';
14
15
  export * from './CollectionAggregate.js';
15
16
  export * from './CollectionComparisonDiff.js';
@@ -37,11 +38,13 @@ export * from './GroupResponse.js';
37
38
  export * from './GuestNetwork.js';
38
39
  export * from './Histogram.js';
39
40
  export * from './Host.js';
41
+ export * from './HostPhysicalNIC.js';
42
+ export * from './HostStorageAdapter.js';
43
+ export * from './HostStorageLun.js';
40
44
  export * from './Infra.js';
41
45
  export * from './InspectionStatus.js';
42
46
  export * from './InspectorStatus.js';
43
47
  export * from './Inventory.js';
44
- export * from './Inventory1.js';
45
48
  export * from './InventoryData.js';
46
49
  export * from './IssuesBreakdown.js';
47
50
  export * from './MigrationIssue.js';
@@ -51,6 +54,7 @@ export * from './OsInfo.js';
51
54
  export * from './PairCapability.js';
52
55
  export * from './PairCapabilityRequest.js';
53
56
  export * from './Process.js';
57
+ export * from './RDMBacking.js';
54
58
  export * from './RightsizingClusterResponse.js';
55
59
  export * from './RightsizingClusterUtilization.js';
56
60
  export * from './StartForecasterRequest.js';
@@ -69,6 +73,7 @@ export * from './VcenterCredentials.js';
69
73
  export * from './VddkProperties.js';
70
74
  export * from './VersionInfo.js';
71
75
  export * from './VirtualMachine.js';
76
+ export * from './VirtualMachineDatastore.js';
72
77
  export * from './VirtualMachineDetail.js';
73
78
  export * from './VirtualMachineDevice.js';
74
79
  export * from './VirtualMachineDisk.js';