@openshift-migration-advisor/planner-sdk 0.27.0 → 0.28.0-2a5826fe0340

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 (94) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +17 -3
  4. package/dist/apis/AssessmentApi.d.ts +205 -0
  5. package/dist/apis/AssessmentApi.js +210 -0
  6. package/dist/apis/JobApi.d.ts +86 -0
  7. package/dist/apis/JobApi.js +124 -0
  8. package/dist/esm/apis/AssessmentApi.d.ts +205 -0
  9. package/dist/esm/apis/AssessmentApi.js +210 -0
  10. package/dist/esm/apis/JobApi.d.ts +86 -0
  11. package/dist/esm/apis/JobApi.js +124 -0
  12. package/dist/esm/models/AssessmentV2.d.ts +36 -0
  13. package/dist/esm/models/AssessmentV2.js +49 -0
  14. package/dist/esm/models/AssessmentV2Summary.d.ts +97 -0
  15. package/dist/esm/models/AssessmentV2Summary.js +99 -0
  16. package/dist/esm/models/AssessmentVCenterV2.d.ts +36 -0
  17. package/dist/esm/models/AssessmentVCenterV2.js +49 -0
  18. package/dist/esm/models/Datastore.d.ts +18 -2
  19. package/dist/esm/models/Datastore.js +8 -0
  20. package/dist/esm/models/Host.d.ts +10 -0
  21. package/dist/esm/models/Host.js +6 -0
  22. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  23. package/dist/esm/models/HostStorageAdapter.js +55 -0
  24. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  25. package/dist/esm/models/HostStorageLun.js +51 -0
  26. package/dist/esm/models/Inventory.d.ts +5 -1
  27. package/dist/esm/models/Inventory.js +2 -0
  28. package/dist/esm/models/InventoryV2.d.ts +47 -0
  29. package/dist/esm/models/InventoryV2.js +55 -0
  30. package/dist/esm/models/OsInfo.d.ts +12 -0
  31. package/dist/esm/models/OsInfo.js +9 -0
  32. package/dist/esm/models/SubResource.d.ts +30 -0
  33. package/dist/esm/models/SubResource.js +43 -0
  34. package/dist/esm/models/VsphereCoreInput.d.ts +8 -0
  35. package/dist/esm/models/VsphereCoreInput.js +4 -0
  36. package/dist/esm/models/index.d.ts +7 -0
  37. package/dist/esm/models/index.js +7 -0
  38. package/dist/models/AssessmentV2.d.ts +36 -0
  39. package/dist/models/AssessmentV2.js +56 -0
  40. package/dist/models/AssessmentV2Summary.d.ts +97 -0
  41. package/dist/models/AssessmentV2Summary.js +107 -0
  42. package/dist/models/AssessmentVCenterV2.d.ts +36 -0
  43. package/dist/models/AssessmentVCenterV2.js +56 -0
  44. package/dist/models/Datastore.d.ts +18 -2
  45. package/dist/models/Datastore.js +8 -0
  46. package/dist/models/Host.d.ts +10 -0
  47. package/dist/models/Host.js +6 -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 +5 -1
  53. package/dist/models/Inventory.js +2 -0
  54. package/dist/models/InventoryV2.d.ts +47 -0
  55. package/dist/models/InventoryV2.js +62 -0
  56. package/dist/models/OsInfo.d.ts +12 -0
  57. package/dist/models/OsInfo.js +10 -1
  58. package/dist/models/SubResource.d.ts +30 -0
  59. package/dist/models/SubResource.js +50 -0
  60. package/dist/models/VsphereCoreInput.d.ts +8 -0
  61. package/dist/models/VsphereCoreInput.js +4 -0
  62. package/dist/models/index.d.ts +7 -0
  63. package/dist/models/index.js +7 -0
  64. package/docs/AssessmentApi.md +362 -0
  65. package/docs/AssessmentV2.md +36 -0
  66. package/docs/AssessmentV2Summary.md +58 -0
  67. package/docs/AssessmentVCenterV2.md +36 -0
  68. package/docs/Datastore.md +8 -0
  69. package/docs/Host.md +4 -0
  70. package/docs/HostStorageAdapter.md +49 -0
  71. package/docs/HostStorageLun.md +45 -0
  72. package/docs/Inventory.md +2 -0
  73. package/docs/InventoryV2.md +42 -0
  74. package/docs/JobApi.md +152 -0
  75. package/docs/OsInfo.md +2 -0
  76. package/docs/SubResource.md +34 -0
  77. package/docs/VsphereCoreInput.md +4 -0
  78. package/package.json +1 -1
  79. package/src/apis/AssessmentApi.ts +428 -0
  80. package/src/apis/JobApi.ts +219 -0
  81. package/src/models/AssessmentV2.ts +86 -0
  82. package/src/models/AssessmentV2Summary.ts +173 -0
  83. package/src/models/AssessmentVCenterV2.ts +86 -0
  84. package/src/models/Datastore.ts +26 -2
  85. package/src/models/Host.ts +27 -0
  86. package/src/models/HostStorageAdapter.ts +105 -0
  87. package/src/models/HostStorageLun.ts +93 -0
  88. package/src/models/Inventory.ts +7 -1
  89. package/src/models/InventoryV2.ts +97 -0
  90. package/src/models/OsInfo.ts +15 -0
  91. package/src/models/SubResource.ts +64 -0
  92. package/src/models/VsphereCoreInput.ts +12 -0
  93. package/src/models/index.ts +7 -0
  94. package/src/runtime.ts +8 -8
@@ -59,7 +59,11 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
59
59
  }
60
60
  return {
61
61
  'type': json['type'],
62
+ 'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
63
+ 'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
64
+ 'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
62
65
  'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
66
+ 'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
63
67
  'totalCapacityGB': json['totalCapacityGB'],
64
68
  'freeCapacityGB': json['freeCapacityGB'],
65
69
  'vendor': json['vendor'],
@@ -80,7 +84,11 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
80
84
  }
81
85
  return {
82
86
  'type': value['type'],
87
+ 'backingDeviceIds': value['backingDeviceIds'],
88
+ 'filesystemType': value['filesystemType'],
89
+ 'filesystemMajorVersion': value['filesystemMajorVersion'],
83
90
  'storageProtocol': value['storageProtocol'],
91
+ 'vsanSnapshotSupport': value['vsanSnapshotSupport'],
84
92
  'totalCapacityGB': value['totalCapacityGB'],
85
93
  'freeCapacityGB': value['freeCapacityGB'],
86
94
  'vendor': value['vendor'],
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { HostStorageAdapter } from './HostStorageAdapter.js';
13
+ import type { HostStorageLun } from './HostStorageLun.js';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -47,6 +49,14 @@ export interface Host {
47
49
  * Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
48
50
  */
49
51
  storageVmotionSupported?: boolean;
52
+ /**
53
+ * Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
54
+ */
55
+ storageAdapters?: Array<HostStorageAdapter>;
56
+ /**
57
+ * Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
58
+ */
59
+ storageLuns?: Array<HostStorageLun>;
50
60
  }
51
61
  /**
52
62
  * Check if a given object implements the Host interface.
@@ -18,6 +18,8 @@ exports.HostFromJSON = HostFromJSON;
18
18
  exports.HostFromJSONTyped = HostFromJSONTyped;
19
19
  exports.HostToJSON = HostToJSON;
20
20
  exports.HostToJSONTyped = HostToJSONTyped;
21
+ const HostStorageAdapter_js_1 = require("./HostStorageAdapter.js");
22
+ const HostStorageLun_js_1 = require("./HostStorageLun.js");
21
23
  /**
22
24
  * Check if a given object implements the Host interface.
23
25
  */
@@ -44,6 +46,8 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
44
46
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
45
47
  'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
46
48
  'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
49
+ 'storageAdapters': json['storageAdapters'] == null ? undefined : (json['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterFromJSON)),
50
+ 'storageLuns': json['storageLuns'] == null ? undefined : (json['storageLuns'].map(HostStorageLun_js_1.HostStorageLunFromJSON)),
47
51
  };
48
52
  }
49
53
  function HostToJSON(json) {
@@ -62,5 +66,7 @@ function HostToJSONTyped(value, ignoreDiscriminator = false) {
62
66
  'memoryMB': value['memoryMB'],
63
67
  'vmotionSupported': value['vmotionSupported'],
64
68
  'storageVmotionSupported': value['storageVmotionSupported'],
69
+ 'storageAdapters': value['storageAdapters'] == null ? undefined : (value['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterToJSON)),
70
+ 'storageLuns': value['storageLuns'] == null ? undefined : (value['storageLuns'].map(HostStorageLun_js_1.HostStorageLunToJSON)),
65
71
  };
66
72
  }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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
+ }
@@ -35,9 +35,13 @@ export interface Inventory {
35
35
  */
36
36
  vcenter?: InventoryData;
37
37
  /**
38
- * Timestamp when the inventory data was created or collected
38
+ * Timestamp when the inventory document was built
39
39
  */
40
40
  createdAt?: 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
+ collectionTime?: Date | null;
41
45
  }
42
46
  /**
43
47
  * Check if a given object implements the Inventory interface.
@@ -43,6 +43,7 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
44
44
  'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
45
45
  'createdAt': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
46
+ 'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['collection_time'])),
46
47
  };
47
48
  }
48
49
  function InventoryToJSON(json) {
@@ -58,5 +59,6 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
58
59
  'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
59
60
  'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
60
61
  'created_at': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
62
+ 'collection_time': value['collectionTime'] == null ? value['collectionTime'] : (0, runtime_js_1.serializeDateTime)(value['collectionTime']),
61
63
  };
62
64
  }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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
+ import type { InventoryData } from './InventoryData.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface InventoryV2
17
+ */
18
+ export interface InventoryV2 {
19
+ /**
20
+ *
21
+ */
22
+ id: string;
23
+ /**
24
+ *
25
+ */
26
+ data: InventoryData;
27
+ /**
28
+ * Version of the vCenter api. For example "8.0.3.0"
29
+ */
30
+ vcenterVersion?: string;
31
+ /**
32
+ * Timestamp when the inventory data was created or collected
33
+ */
34
+ createdAt?: Date;
35
+ /**
36
+ * Oldest known source collection time. Null when unknown.
37
+ */
38
+ collectionTime?: Date | null;
39
+ }
40
+ /**
41
+ * Check if a given object implements the InventoryV2 interface.
42
+ */
43
+ export declare function instanceOfInventoryV2(value: object): value is InventoryV2;
44
+ export declare function InventoryV2FromJSON(json: any): InventoryV2;
45
+ export declare function InventoryV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): InventoryV2;
46
+ export declare function InventoryV2ToJSON(json: any): InventoryV2;
47
+ export declare function InventoryV2ToJSONTyped(value?: InventoryV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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.instanceOfInventoryV2 = instanceOfInventoryV2;
17
+ exports.InventoryV2FromJSON = InventoryV2FromJSON;
18
+ exports.InventoryV2FromJSONTyped = InventoryV2FromJSONTyped;
19
+ exports.InventoryV2ToJSON = InventoryV2ToJSON;
20
+ exports.InventoryV2ToJSONTyped = InventoryV2ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const InventoryData_js_1 = require("./InventoryData.js");
23
+ /**
24
+ * Check if a given object implements the InventoryV2 interface.
25
+ */
26
+ function instanceOfInventoryV2(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('data' in value) || value['data'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function InventoryV2FromJSON(json) {
34
+ return InventoryV2FromJSONTyped(json, false);
35
+ }
36
+ function InventoryV2FromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'data': (0, InventoryData_js_1.InventoryDataFromJSON)(json['data']),
43
+ 'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
44
+ 'createdAt': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
45
+ 'collectionTime': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['collection_time'])),
46
+ };
47
+ }
48
+ function InventoryV2ToJSON(json) {
49
+ return InventoryV2ToJSONTyped(json, false);
50
+ }
51
+ function InventoryV2ToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'id': value['id'],
57
+ 'data': (0, InventoryData_js_1.InventoryDataToJSON)(value['data']),
58
+ 'vcenter_version': value['vcenterVersion'],
59
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : (0, runtime_js_1.serializeDateTime)(value['createdAt']),
60
+ 'collection_time': value['collectionTime'] == null ? value['collectionTime'] : (0, runtime_js_1.serializeDateTime)(value['collectionTime']),
61
+ };
62
+ }
@@ -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,30 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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 SubResource
16
+ */
17
+ export interface SubResource {
18
+ /**
19
+ *
20
+ */
21
+ id: string;
22
+ }
23
+ /**
24
+ * Check if a given object implements the SubResource interface.
25
+ */
26
+ export declare function instanceOfSubResource(value: object): value is SubResource;
27
+ export declare function SubResourceFromJSON(json: any): SubResource;
28
+ export declare function SubResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubResource;
29
+ export declare function SubResourceToJSON(json: any): SubResource;
30
+ export declare function SubResourceToJSONTyped(value?: SubResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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.instanceOfSubResource = instanceOfSubResource;
17
+ exports.SubResourceFromJSON = SubResourceFromJSON;
18
+ exports.SubResourceFromJSONTyped = SubResourceFromJSONTyped;
19
+ exports.SubResourceToJSON = SubResourceToJSON;
20
+ exports.SubResourceToJSONTyped = SubResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SubResource interface.
23
+ */
24
+ function instanceOfSubResource(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function SubResourceFromJSON(json) {
30
+ return SubResourceFromJSONTyped(json, false);
31
+ }
32
+ function SubResourceFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'id': json['id'],
38
+ };
39
+ }
40
+ function SubResourceToJSON(json) {
41
+ return SubResourceToJSONTyped(json, false);
42
+ }
43
+ function SubResourceToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'id': value['id'],
49
+ };
50
+ }
@@ -27,6 +27,14 @@ export interface VsphereCoreInput {
27
27
  *
28
28
  */
29
29
  srmEnabled?: boolean;
30
+ /**
31
+ * Whether Network I/O Control is enabled
32
+ */
33
+ niocEnabled?: boolean;
34
+ /**
35
+ * How NIOC is configured and which traffic is prioritized
36
+ */
37
+ niocDetails?: string;
30
38
  }
31
39
  /**
32
40
  * Check if a given object implements the VsphereCoreInput interface.
@@ -35,6 +35,8 @@ function VsphereCoreInputFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'vmEncryptionEnabled': json['vmEncryptionEnabled'] == null ? undefined : json['vmEncryptionEnabled'],
36
36
  'vmEncryptionPolicy': json['vmEncryptionPolicy'] == null ? undefined : json['vmEncryptionPolicy'],
37
37
  'srmEnabled': json['srmEnabled'] == null ? undefined : json['srmEnabled'],
38
+ 'niocEnabled': json['niocEnabled'] == null ? undefined : json['niocEnabled'],
39
+ 'niocDetails': json['niocDetails'] == null ? undefined : json['niocDetails'],
38
40
  };
39
41
  }
40
42
  function VsphereCoreInputToJSON(json) {
@@ -48,5 +50,7 @@ function VsphereCoreInputToJSONTyped(value, ignoreDiscriminator = false) {
48
50
  'vmEncryptionEnabled': value['vmEncryptionEnabled'],
49
51
  'vmEncryptionPolicy': value['vmEncryptionPolicy'],
50
52
  'srmEnabled': value['srmEnabled'],
53
+ 'niocEnabled': value['niocEnabled'],
54
+ 'niocDetails': value['niocDetails'],
51
55
  };
52
56
  }
@@ -9,6 +9,9 @@ export * from './AssessmentForm.js';
9
9
  export * from './AssessmentSharing.js';
10
10
  export * from './AssessmentSubsetInventory.js';
11
11
  export * from './AssessmentUpdate.js';
12
+ export * from './AssessmentV2.js';
13
+ export * from './AssessmentV2Summary.js';
14
+ export * from './AssessmentVCenterV2.js';
12
15
  export * from './ClusterFeatures.js';
13
16
  export * from './ClusterRequirementsRequest.js';
14
17
  export * from './ClusterRequirementsResponse.js';
@@ -33,12 +36,15 @@ export * from './GroupCreate.js';
33
36
  export * from './GroupUpdate.js';
34
37
  export * from './Histogram.js';
35
38
  export * from './Host.js';
39
+ export * from './HostStorageAdapter.js';
40
+ export * from './HostStorageLun.js';
36
41
  export * from './Identity.js';
37
42
  export * from './Info.js';
38
43
  export * from './Infra.js';
39
44
  export * from './Inventory.js';
40
45
  export * from './InventoryData.js';
41
46
  export * from './InventoryTotals.js';
47
+ export * from './InventoryV2.js';
42
48
  export * from './Ipv4Config.js';
43
49
  export * from './IssuesBreakdown.js';
44
50
  export * from './Job.js';
@@ -81,6 +87,7 @@ export * from './StandaloneClusterRequirementsRequest.js';
81
87
  export * from './StandaloneClusterRequirementsResponse.js';
82
88
  export * from './Status.js';
83
89
  export * from './StorageIoConfiguration.js';
90
+ export * from './SubResource.js';
84
91
  export * from './UpdateInventory.js';
85
92
  export * from './VCenter.js';
86
93
  export * from './VMResourceBreakdown.js';