@openshift-migration-advisor/agent-sdk 0.31.0 → 0.32.0-41b526ed8c91

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 (103) hide show
  1. package/.openapi-generator/FILES +10 -2
  2. package/README.md +7 -4
  3. package/dist/apis/CollectorApi.d.ts +0 -38
  4. package/dist/apis/CollectorApi.js +0 -59
  5. package/dist/apis/InventoriesApi.d.ts +9 -9
  6. package/dist/apis/InventoriesApi.js +3 -3
  7. package/dist/esm/apis/CollectorApi.d.ts +0 -38
  8. package/dist/esm/apis/CollectorApi.js +0 -59
  9. package/dist/esm/apis/InventoriesApi.d.ts +9 -9
  10. package/dist/esm/apis/InventoriesApi.js +3 -3
  11. package/dist/esm/models/ApplicationOverview.d.ts +16 -0
  12. package/dist/esm/models/ApplicationOverview.js +12 -0
  13. package/dist/esm/models/CollectedInventory.d.ts +31 -0
  14. package/dist/esm/models/CollectedInventory.js +44 -0
  15. package/dist/esm/models/GroupResponse.d.ts +2 -2
  16. package/dist/esm/models/GroupResponse.js +3 -3
  17. package/dist/esm/models/Host.d.ts +10 -0
  18. package/dist/esm/models/Host.js +6 -0
  19. package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
  20. package/dist/esm/models/HostPhysicalNIC.js +45 -0
  21. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  22. package/dist/esm/models/HostStorageAdapter.js +55 -0
  23. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  24. package/dist/esm/models/HostStorageLun.js +51 -0
  25. package/dist/esm/models/Inventory.d.ts +24 -2
  26. package/dist/esm/models/Inventory.js +17 -4
  27. package/dist/esm/models/OsInfo.d.ts +12 -0
  28. package/dist/esm/models/OsInfo.js +9 -0
  29. package/dist/esm/models/Product.d.ts +66 -0
  30. package/dist/esm/models/Product.js +61 -0
  31. package/dist/esm/models/UpdateInventory.d.ts +2 -2
  32. package/dist/esm/models/UpdateInventory.js +3 -3
  33. package/dist/esm/models/VirtualMachineDetail.d.ts +14 -0
  34. package/dist/esm/models/VirtualMachineDetail.js +8 -0
  35. package/dist/esm/models/VirtualMachineNIC.d.ts +12 -0
  36. package/dist/esm/models/VirtualMachineNIC.js +6 -0
  37. package/dist/esm/models/index.d.ts +5 -1
  38. package/dist/esm/models/index.js +5 -1
  39. package/dist/models/ApplicationOverview.d.ts +16 -0
  40. package/dist/models/ApplicationOverview.js +12 -0
  41. package/dist/models/CollectedInventory.d.ts +31 -0
  42. package/dist/models/CollectedInventory.js +51 -0
  43. package/dist/models/GroupResponse.d.ts +2 -2
  44. package/dist/models/GroupResponse.js +3 -3
  45. package/dist/models/Host.d.ts +10 -0
  46. package/dist/models/Host.js +6 -0
  47. package/dist/models/HostPhysicalNIC.d.ts +34 -0
  48. package/dist/models/HostPhysicalNIC.js +52 -0
  49. package/dist/models/HostStorageAdapter.d.ts +58 -0
  50. package/dist/models/HostStorageAdapter.js +62 -0
  51. package/dist/models/HostStorageLun.d.ts +50 -0
  52. package/dist/models/HostStorageLun.js +58 -0
  53. package/dist/models/Inventory.d.ts +24 -2
  54. package/dist/models/Inventory.js +17 -4
  55. package/dist/models/OsInfo.d.ts +12 -0
  56. package/dist/models/OsInfo.js +10 -1
  57. package/dist/models/Product.d.ts +66 -0
  58. package/dist/models/Product.js +68 -0
  59. package/dist/models/UpdateInventory.d.ts +2 -2
  60. package/dist/models/UpdateInventory.js +3 -3
  61. package/dist/models/VirtualMachineDetail.d.ts +14 -0
  62. package/dist/models/VirtualMachineDetail.js +8 -0
  63. package/dist/models/VirtualMachineNIC.d.ts +12 -0
  64. package/dist/models/VirtualMachineNIC.js +6 -0
  65. package/dist/models/index.d.ts +5 -1
  66. package/dist/models/index.js +5 -1
  67. package/docs/ApplicationOverview.md +8 -0
  68. package/docs/{Inventory1.md → CollectedInventory.md} +6 -16
  69. package/docs/CollectorApi.md +0 -70
  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/OsInfo.md +2 -0
  78. package/docs/Product.md +52 -0
  79. package/docs/UpdateInventory.md +1 -1
  80. package/docs/VirtualMachineDetail.md +6 -0
  81. package/docs/VirtualMachineNIC.md +6 -0
  82. package/package.json +1 -1
  83. package/src/apis/CollectorApi.ts +0 -97
  84. package/src/apis/InventoriesApi.ts +14 -14
  85. package/src/models/ApplicationOverview.ts +26 -0
  86. package/src/models/CollectedInventory.ts +72 -0
  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/OsInfo.ts +15 -0
  94. package/src/models/Product.ts +118 -0
  95. package/src/models/UpdateInventory.ts +9 -9
  96. package/src/models/VirtualMachineDetail.ts +32 -0
  97. package/src/models/VirtualMachineNIC.ts +18 -0
  98. package/src/models/index.ts +5 -1
  99. package/dist/esm/models/Inventory1.d.ts +0 -53
  100. package/dist/esm/models/Inventory1.js +0 -57
  101. package/dist/models/Inventory1.d.ts +0 -53
  102. package/dist/models/Inventory1.js +0 -64
  103. package/src/models/Inventory1.ts +0 -103
@@ -0,0 +1,58 @@
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 adapter facts. Missing or conflicting values are omitted.
14
+ * @export
15
+ * @interface HostStorageAdapter
16
+ */
17
+ export interface HostStorageAdapter {
18
+ /**
19
+ * Host-local adapter device name.
20
+ */
21
+ device?: string;
22
+ /**
23
+ * Source adapter key; distinct from device name.
24
+ */
25
+ key?: string;
26
+ /**
27
+ * Adapter type as supplied by the source.
28
+ */
29
+ type?: string;
30
+ /**
31
+ * Adapter protocol as supplied by the source.
32
+ */
33
+ protocol?: string;
34
+ /**
35
+ * Adapter model.
36
+ */
37
+ model?: string;
38
+ /**
39
+ * Adapter driver.
40
+ */
41
+ driver?: string;
42
+ /**
43
+ * Node WWN as identifier text, preserving leading zeros.
44
+ */
45
+ nodeWwn?: string;
46
+ /**
47
+ * Port WWN as identifier text, preserving leading zeros.
48
+ */
49
+ portWwn?: string;
50
+ }
51
+ /**
52
+ * Check if a given object implements the HostStorageAdapter interface.
53
+ */
54
+ export declare function instanceOfHostStorageAdapter(value: object): value is HostStorageAdapter;
55
+ export declare function HostStorageAdapterFromJSON(json: any): HostStorageAdapter;
56
+ export declare function HostStorageAdapterFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageAdapter;
57
+ export declare function HostStorageAdapterToJSON(json: any): HostStorageAdapter;
58
+ export declare function HostStorageAdapterToJSONTyped(value?: HostStorageAdapter | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfHostStorageAdapter = instanceOfHostStorageAdapter;
17
+ exports.HostStorageAdapterFromJSON = HostStorageAdapterFromJSON;
18
+ exports.HostStorageAdapterFromJSONTyped = HostStorageAdapterFromJSONTyped;
19
+ exports.HostStorageAdapterToJSON = HostStorageAdapterToJSON;
20
+ exports.HostStorageAdapterToJSONTyped = HostStorageAdapterToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the HostStorageAdapter interface.
23
+ */
24
+ function instanceOfHostStorageAdapter(value) {
25
+ return true;
26
+ }
27
+ function HostStorageAdapterFromJSON(json) {
28
+ return HostStorageAdapterFromJSONTyped(json, false);
29
+ }
30
+ function HostStorageAdapterFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'device': json['device'] == null ? undefined : json['device'],
36
+ 'key': json['key'] == null ? undefined : json['key'],
37
+ 'type': json['type'] == null ? undefined : json['type'],
38
+ 'protocol': json['protocol'] == null ? undefined : json['protocol'],
39
+ 'model': json['model'] == null ? undefined : json['model'],
40
+ 'driver': json['driver'] == null ? undefined : json['driver'],
41
+ 'nodeWwn': json['nodeWwn'] == null ? undefined : json['nodeWwn'],
42
+ 'portWwn': json['portWwn'] == null ? undefined : json['portWwn'],
43
+ };
44
+ }
45
+ function HostStorageAdapterToJSON(json) {
46
+ return HostStorageAdapterToJSONTyped(json, false);
47
+ }
48
+ function HostStorageAdapterToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'device': value['device'],
54
+ 'key': value['key'],
55
+ 'type': value['type'],
56
+ 'protocol': value['protocol'],
57
+ 'model': value['model'],
58
+ 'driver': value['driver'],
59
+ 'nodeWwn': value['nodeWwn'],
60
+ 'portWwn': value['portWwn'],
61
+ };
62
+ }
@@ -0,0 +1,50 @@
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
+ * A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
14
+ * @export
15
+ * @interface HostStorageLun
16
+ */
17
+ export interface HostStorageLun {
18
+ /**
19
+ * Canonical device name, distinct from the LUN UUID.
20
+ */
21
+ canonicalName?: string;
22
+ /**
23
+ * Source SCSI disk key.
24
+ */
25
+ key?: string;
26
+ /**
27
+ * Source-provided LUN UUID; never inferred from the device name or key.
28
+ */
29
+ lunUuid?: string;
30
+ /**
31
+ * LUN vendor.
32
+ */
33
+ vendor?: string;
34
+ /**
35
+ * LUN model.
36
+ */
37
+ model?: string;
38
+ /**
39
+ * Distinct sorted adapter device names associated with this LUN, including names whose adapter metadata is unavailable.
40
+ */
41
+ adapterDevices?: Array<string>;
42
+ }
43
+ /**
44
+ * Check if a given object implements the HostStorageLun interface.
45
+ */
46
+ export declare function instanceOfHostStorageLun(value: object): value is HostStorageLun;
47
+ export declare function HostStorageLunFromJSON(json: any): HostStorageLun;
48
+ export declare function HostStorageLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostStorageLun;
49
+ export declare function HostStorageLunToJSON(json: any): HostStorageLun;
50
+ export declare function HostStorageLunToJSONTyped(value?: HostStorageLun | null, ignoreDiscriminator?: boolean): any;
@@ -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
  }
@@ -27,6 +27,10 @@ export interface OsInfo {
27
27
  * OS support tier per Red Hat KCS article 4234591
28
28
  */
29
29
  supportTier?: OsInfoSupportTierEnum;
30
+ /**
31
+ * MTV verification per Red Hat KCS article 4234591. Green means tested and verified; blue means successfully running on the target cluster. Omitted when the OS/architecture has no listed status.
32
+ */
33
+ mtvStatus?: OsInfoMtvStatusEnum;
30
34
  /**
31
35
  * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
32
36
  */
@@ -42,6 +46,14 @@ export declare const OsInfoSupportTierEnum: {
42
46
  readonly SpecialHandling: "special_handling";
43
47
  };
44
48
  export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const OsInfoMtvStatusEnum: {
53
+ readonly Green: "green";
54
+ readonly Blue: "blue";
55
+ };
56
+ export type OsInfoMtvStatusEnum = typeof OsInfoMtvStatusEnum[keyof typeof OsInfoMtvStatusEnum];
45
57
  /**
46
58
  * Check if a given object implements the OsInfo interface.
47
59
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.OsInfoSupportTierEnum = void 0;
16
+ exports.OsInfoMtvStatusEnum = exports.OsInfoSupportTierEnum = void 0;
17
17
  exports.instanceOfOsInfo = instanceOfOsInfo;
18
18
  exports.OsInfoFromJSON = OsInfoFromJSON;
19
19
  exports.OsInfoFromJSONTyped = OsInfoFromJSONTyped;
@@ -28,6 +28,13 @@ exports.OsInfoSupportTierEnum = {
28
28
  CommunitySupported: 'community_supported',
29
29
  SpecialHandling: 'special_handling',
30
30
  };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.OsInfoMtvStatusEnum = {
35
+ Green: 'green',
36
+ Blue: 'blue',
37
+ };
31
38
  /**
32
39
  * Check if a given object implements the OsInfo interface.
33
40
  */
@@ -49,6 +56,7 @@ function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
49
56
  'count': json['count'],
50
57
  'supported': json['supported'],
51
58
  'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
59
+ 'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
52
60
  'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
53
61
  };
54
62
  }
@@ -63,6 +71,7 @@ function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
63
71
  'count': value['count'],
64
72
  'supported': value['supported'],
65
73
  'supportTier': value['supportTier'],
74
+ 'mtvStatus': value['mtvStatus'],
66
75
  'upgradeRecommendation': value['upgradeRecommendation'],
67
76
  };
68
77
  }
@@ -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
+ *
14
+ * @export
15
+ * @interface Product
16
+ */
17
+ export interface Product {
18
+ /**
19
+ * Product key
20
+ */
21
+ key: number;
22
+ /**
23
+ * Product class identifier
24
+ */
25
+ classId?: string;
26
+ /**
27
+ * Product instance identifier
28
+ */
29
+ instanceId?: string;
30
+ /**
31
+ * Product name
32
+ */
33
+ name?: string;
34
+ /**
35
+ * Product vendor
36
+ */
37
+ vendor?: string;
38
+ /**
39
+ * Product version
40
+ */
41
+ version?: string;
42
+ /**
43
+ * Full product version
44
+ */
45
+ fullVersion?: string;
46
+ /**
47
+ * Product vendor URL
48
+ */
49
+ vendorUrl?: string;
50
+ /**
51
+ * Product URL
52
+ */
53
+ productUrl?: string;
54
+ /**
55
+ * Application URL
56
+ */
57
+ appUrl?: string;
58
+ }
59
+ /**
60
+ * Check if a given object implements the Product interface.
61
+ */
62
+ export declare function instanceOfProduct(value: object): value is Product;
63
+ export declare function ProductFromJSON(json: any): Product;
64
+ export declare function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product;
65
+ export declare function ProductToJSON(json: any): Product;
66
+ export declare function ProductToJSONTyped(value?: Product | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
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.instanceOfProduct = instanceOfProduct;
17
+ exports.ProductFromJSON = ProductFromJSON;
18
+ exports.ProductFromJSONTyped = ProductFromJSONTyped;
19
+ exports.ProductToJSON = ProductToJSON;
20
+ exports.ProductToJSONTyped = ProductToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the Product interface.
23
+ */
24
+ function instanceOfProduct(value) {
25
+ if (!('key' in value) || value['key'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ProductFromJSON(json) {
30
+ return ProductFromJSONTyped(json, false);
31
+ }
32
+ function ProductFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'key': json['key'],
38
+ 'classId': json['classId'] == null ? undefined : json['classId'],
39
+ 'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
40
+ 'name': json['name'] == null ? undefined : json['name'],
41
+ 'vendor': json['vendor'] == null ? undefined : json['vendor'],
42
+ 'version': json['version'] == null ? undefined : json['version'],
43
+ 'fullVersion': json['fullVersion'] == null ? undefined : json['fullVersion'],
44
+ 'vendorUrl': json['vendorUrl'] == null ? undefined : json['vendorUrl'],
45
+ 'productUrl': json['productUrl'] == null ? undefined : json['productUrl'],
46
+ 'appUrl': json['appUrl'] == null ? undefined : json['appUrl'],
47
+ };
48
+ }
49
+ function ProductToJSON(json) {
50
+ return ProductToJSONTyped(json, false);
51
+ }
52
+ function ProductToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'key': value['key'],
58
+ 'classId': value['classId'],
59
+ 'instanceId': value['instanceId'],
60
+ 'name': value['name'],
61
+ 'vendor': value['vendor'],
62
+ 'version': value['version'],
63
+ 'fullVersion': value['fullVersion'],
64
+ 'vendorUrl': value['vendorUrl'],
65
+ 'productUrl': value['productUrl'],
66
+ 'appUrl': value['appUrl'],
67
+ };
68
+ }
@@ -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
  }
@@ -14,6 +14,8 @@ 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';
18
+ import type { Product } from './Product.js';
17
19
  import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
18
20
  import type { Process } from './Process.js';
19
21
  import type { VirtualMachineDisk } from './VirtualMachineDisk.js';
@@ -32,6 +34,10 @@ export interface VirtualMachineDetail {
32
34
  * Display name of the VirtualMachine
33
35
  */
34
36
  name: string;
37
+ /**
38
+ * Free-text notes/description for the VirtualMachine in vSphere
39
+ */
40
+ annotation?: string;
35
41
  /**
36
42
  * Identifier of the vCenter this VirtualMachine belongs to
37
43
  */
@@ -150,6 +156,10 @@ export interface VirtualMachineDetail {
150
156
  *
151
157
  */
152
158
  disks: Array<VirtualMachineDisk>;
159
+ /**
160
+ * Physical NICs reported on the VM's host. An empty array means no records were retained.
161
+ */
162
+ hostPhysicalNics?: Array<HostPhysicalNIC>;
153
163
  /**
154
164
  * Adapter count reported by the source; 0 when unavailable
155
165
  */
@@ -182,6 +192,10 @@ export interface VirtualMachineDetail {
182
192
  * List of processes detected on this VM
183
193
  */
184
194
  processes?: Array<Process>;
195
+ /**
196
+ * Products configured in the VM's vApp settings
197
+ */
198
+ products?: Array<Product>;
185
199
  }
186
200
  /**
187
201
  * Check if a given object implements the VirtualMachineDetail interface.
@@ -23,6 +23,8 @@ 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");
27
+ const Product_js_1 = require("./Product.js");
26
28
  const VmUtilizationDetails_js_1 = require("./VmUtilizationDetails.js");
27
29
  const Process_js_1 = require("./Process.js");
28
30
  const VirtualMachineDisk_js_1 = require("./VirtualMachineDisk.js");
@@ -65,6 +67,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
65
67
  return {
66
68
  'id': json['id'],
67
69
  'name': json['name'],
70
+ 'annotation': json['annotation'] == null ? undefined : json['annotation'],
68
71
  'vCenterID': json['vCenterID'],
69
72
  'uuid': json['uuid'] == null ? undefined : json['uuid'],
70
73
  'firmware': json['firmware'] == null ? undefined : json['firmware'],
@@ -94,6 +97,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
94
97
  'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
95
98
  'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
96
99
  'disks': (json['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskFromJSON)),
100
+ 'hostPhysicalNics': json['hostPhysicalNics'] == null ? undefined : (json['hostPhysicalNics'].map(HostPhysicalNIC_js_1.HostPhysicalNICFromJSON)),
97
101
  'nicCount': json['nicCount'],
98
102
  'nics': (json['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICFromJSON)),
99
103
  'devices': json['devices'] == null ? undefined : (json['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceFromJSON)),
@@ -102,6 +106,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
102
106
  'inspection': json['inspection'] == null ? undefined : (0, VirtualMachineInspectionResults_js_1.VirtualMachineInspectionResultsFromJSON)(json['inspection']),
103
107
  'utilization': json['utilization'] == null ? undefined : (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(json['utilization']),
104
108
  'processes': json['processes'] == null ? undefined : (json['processes'].map(Process_js_1.ProcessFromJSON)),
109
+ 'products': json['products'] == null ? undefined : (json['products'].map(Product_js_1.ProductFromJSON)),
105
110
  };
106
111
  }
107
112
  function VirtualMachineDetailToJSON(json) {
@@ -114,6 +119,7 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
114
119
  return {
115
120
  'id': value['id'],
116
121
  'name': value['name'],
122
+ 'annotation': value['annotation'],
117
123
  'vCenterID': value['vCenterID'],
118
124
  'uuid': value['uuid'],
119
125
  'firmware': value['firmware'],
@@ -142,6 +148,7 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
142
148
  'toolsStatus': value['toolsStatus'],
143
149
  'toolsRunningStatus': value['toolsRunningStatus'],
144
150
  'disks': (value['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskToJSON)),
151
+ 'hostPhysicalNics': value['hostPhysicalNics'] == null ? undefined : (value['hostPhysicalNics'].map(HostPhysicalNIC_js_1.HostPhysicalNICToJSON)),
145
152
  'nicCount': value['nicCount'],
146
153
  'nics': (value['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICToJSON)),
147
154
  'devices': value['devices'] == null ? undefined : (value['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceToJSON)),
@@ -150,5 +157,6 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
150
157
  'inspection': (0, VirtualMachineInspectionResults_js_1.VirtualMachineInspectionResultsToJSON)(value['inspection']),
151
158
  'utilization': (0, VmUtilizationDetails_js_1.VmUtilizationDetailsToJSON)(value['utilization']),
152
159
  'processes': value['processes'] == null ? undefined : (value['processes'].map(Process_js_1.ProcessToJSON)),
160
+ 'products': value['products'] == null ? undefined : (value['products'].map(Product_js_1.ProductToJSON)),
153
161
  };
154
162
  }