@openshift-migration-advisor/planner-sdk 0.30.0 → 0.31.0-3530a4e580e1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +6 -3
  4. package/dist/apis/AssessmentApi.d.ts +43 -0
  5. package/dist/apis/AssessmentApi.js +42 -0
  6. package/dist/esm/apis/AssessmentApi.d.ts +43 -0
  7. package/dist/esm/apis/AssessmentApi.js +42 -0
  8. package/dist/esm/models/Datastore.d.ts +14 -2
  9. package/dist/esm/models/Datastore.js +6 -0
  10. package/dist/esm/models/Host.d.ts +10 -0
  11. package/dist/esm/models/Host.js +6 -0
  12. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  13. package/dist/esm/models/HostStorageAdapter.js +55 -0
  14. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  15. package/dist/esm/models/HostStorageLun.js +51 -0
  16. package/dist/esm/models/Inventory.d.ts +5 -1
  17. package/dist/esm/models/Inventory.js +2 -0
  18. package/dist/esm/models/InventoryV2.d.ts +4 -0
  19. package/dist/esm/models/InventoryV2.js +2 -0
  20. package/dist/esm/models/index.d.ts +2 -0
  21. package/dist/esm/models/index.js +2 -0
  22. package/dist/models/Datastore.d.ts +14 -2
  23. package/dist/models/Datastore.js +6 -0
  24. package/dist/models/Host.d.ts +10 -0
  25. package/dist/models/Host.js +6 -0
  26. package/dist/models/HostStorageAdapter.d.ts +58 -0
  27. package/dist/models/HostStorageAdapter.js +62 -0
  28. package/dist/models/HostStorageLun.d.ts +50 -0
  29. package/dist/models/HostStorageLun.js +58 -0
  30. package/dist/models/Inventory.d.ts +5 -1
  31. package/dist/models/Inventory.js +2 -0
  32. package/dist/models/InventoryV2.d.ts +4 -0
  33. package/dist/models/InventoryV2.js +2 -0
  34. package/dist/models/index.d.ts +2 -0
  35. package/dist/models/index.js +2 -0
  36. package/docs/AssessmentApi.md +75 -0
  37. package/docs/Datastore.md +6 -0
  38. package/docs/Host.md +4 -0
  39. package/docs/HostStorageAdapter.md +49 -0
  40. package/docs/HostStorageLun.md +45 -0
  41. package/docs/Inventory.md +2 -0
  42. package/docs/InventoryV2.md +2 -0
  43. package/package.json +1 -1
  44. package/src/apis/AssessmentApi.ts +87 -0
  45. package/src/models/Datastore.ts +20 -2
  46. package/src/models/Host.ts +27 -0
  47. package/src/models/HostStorageAdapter.ts +105 -0
  48. package/src/models/HostStorageLun.ts +93 -0
  49. package/src/models/Inventory.ts +7 -1
  50. package/src/models/InventoryV2.ts +6 -0
  51. package/src/models/index.ts +2 -0
@@ -36,6 +36,8 @@ export * from './GroupCreate.js';
36
36
  export * from './GroupUpdate.js';
37
37
  export * from './Histogram.js';
38
38
  export * from './Host.js';
39
+ export * from './HostStorageAdapter.js';
40
+ export * from './HostStorageLun.js';
39
41
  export * from './Identity.js';
40
42
  export * from './Info.js';
41
43
  export * from './Infra.js';
@@ -38,6 +38,8 @@ export * from './GroupCreate.js';
38
38
  export * from './GroupUpdate.js';
39
39
  export * from './Histogram.js';
40
40
  export * from './Host.js';
41
+ export * from './HostStorageAdapter.js';
42
+ export * from './HostStorageLun.js';
41
43
  export * from './Identity.js';
42
44
  export * from './Info.js';
43
45
  export * from './Infra.js';
@@ -20,6 +20,18 @@ export interface Datastore {
20
20
  *
21
21
  */
22
22
  type: string;
23
+ /**
24
+ * Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
25
+ */
26
+ backingDeviceIds?: Array<string>;
27
+ /**
28
+ * Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
29
+ */
30
+ filesystemType?: string;
31
+ /**
32
+ * VMFS major version when reported; omitted when unknown or not applicable
33
+ */
34
+ filesystemMajorVersion?: number;
23
35
  /**
24
36
  * Storage access category derived from Datastore.Type
25
37
  */
@@ -37,7 +49,7 @@ export interface Datastore {
37
49
  */
38
50
  freeCapacityGB: number;
39
51
  /**
40
- *
52
+ * Vendor reported by matching backing devices when available
41
53
  */
42
54
  vendor: string;
43
55
  /**
@@ -53,7 +65,7 @@ export interface Datastore {
53
65
  */
54
66
  protocolType: string;
55
67
  /**
56
- *
68
+ * Model reported by matching backing devices when available
57
69
  */
58
70
  model: string;
59
71
  /**
@@ -59,6 +59,9 @@ 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'],
63
66
  'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
64
67
  'totalCapacityGB': json['totalCapacityGB'],
@@ -81,6 +84,9 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
81
84
  }
82
85
  return {
83
86
  'type': value['type'],
87
+ 'backingDeviceIds': value['backingDeviceIds'],
88
+ 'filesystemType': value['filesystemType'],
89
+ 'filesystemMajorVersion': value['filesystemMajorVersion'],
84
90
  'storageProtocol': value['storageProtocol'],
85
91
  'vsanSnapshotSupport': value['vsanSnapshotSupport'],
86
92
  'totalCapacityGB': value['totalCapacityGB'],
@@ -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
  }
@@ -32,6 +32,10 @@ export interface InventoryV2 {
32
32
  * Timestamp when the inventory data was created or collected
33
33
  */
34
34
  createdAt?: Date;
35
+ /**
36
+ * Oldest known source collection time. Null when unknown.
37
+ */
38
+ collectionTime?: Date | null;
35
39
  }
36
40
  /**
37
41
  * Check if a given object implements the InventoryV2 interface.
@@ -42,6 +42,7 @@ function InventoryV2FromJSONTyped(json, ignoreDiscriminator) {
42
42
  'data': (0, InventoryData_js_1.InventoryDataFromJSON)(json['data']),
43
43
  'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
44
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'])),
45
46
  };
46
47
  }
47
48
  function InventoryV2ToJSON(json) {
@@ -56,5 +57,6 @@ function InventoryV2ToJSONTyped(value, ignoreDiscriminator = false) {
56
57
  'data': (0, InventoryData_js_1.InventoryDataToJSON)(value['data']),
57
58
  'vcenter_version': value['vcenterVersion'],
58
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']),
59
61
  };
60
62
  }
@@ -36,6 +36,8 @@ export * from './GroupCreate.js';
36
36
  export * from './GroupUpdate.js';
37
37
  export * from './Histogram.js';
38
38
  export * from './Host.js';
39
+ export * from './HostStorageAdapter.js';
40
+ export * from './HostStorageLun.js';
39
41
  export * from './Identity.js';
40
42
  export * from './Info.js';
41
43
  export * from './Infra.js';
@@ -54,6 +54,8 @@ __exportStar(require("./GroupCreate.js"), exports);
54
54
  __exportStar(require("./GroupUpdate.js"), exports);
55
55
  __exportStar(require("./Histogram.js"), exports);
56
56
  __exportStar(require("./Host.js"), exports);
57
+ __exportStar(require("./HostStorageAdapter.js"), exports);
58
+ __exportStar(require("./HostStorageLun.js"), exports);
57
59
  __exportStar(require("./Identity.js"), exports);
58
60
  __exportStar(require("./Info.js"), exports);
59
61
  __exportStar(require("./Infra.js"), exports);
@@ -10,6 +10,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
10
10
  | [**calculateMigrationEstimationByComplexity**](AssessmentApi.md#calculatemigrationestimationbycomplexity) | **POST** /api/v1/assessments/{id}/migration-estimation/by-complexity | |
11
11
  | [**createAssessment**](AssessmentApi.md#createassessment) | **POST** /api/v1/assessments | |
12
12
  | [**deleteAssessment**](AssessmentApi.md#deleteassessment) | **DELETE** /api/v1/assessments/{id} | |
13
+ | [**deleteVCenter**](AssessmentApi.md#deletevcenter) | **DELETE** /api/v2/assessments/{id}/vcenters/{vid} | |
13
14
  | [**getAssessment**](AssessmentApi.md#getassessment) | **GET** /api/v1/assessments/{id} | |
14
15
  | [**getAssessmentClusterRequirementsStoredInput**](AssessmentApi.md#getassessmentclusterrequirementsstoredinput) | **GET** /api/v1/assessments/{id}/cluster-requirements/stored-input | |
15
16
  | [**getAssessmentEnhancementData**](AssessmentApi.md#getassessmentenhancementdata) | **GET** /api/v1/assessments/{id}/enhancement-data | |
@@ -468,6 +469,80 @@ No authorization required
468
469
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
469
470
 
470
471
 
472
+ ## deleteVCenter
473
+
474
+ > deleteVCenter(id, vid)
475
+
476
+
477
+
478
+ Delete the specified vcenter inventory
479
+
480
+ ### Example
481
+
482
+ ```ts
483
+ import {
484
+ Configuration,
485
+ AssessmentApi,
486
+ } from '@openshift-migration-advisor/planner-sdk';
487
+ import type { DeleteVCenterRequest } from '@openshift-migration-advisor/planner-sdk';
488
+
489
+ async function example() {
490
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
491
+ const api = new AssessmentApi();
492
+
493
+ const body = {
494
+ // string | ID of the assessment
495
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
496
+ // string | ID of the vcenter
497
+ vid: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
498
+ } satisfies DeleteVCenterRequest;
499
+
500
+ try {
501
+ const data = await api.deleteVCenter(body);
502
+ console.log(data);
503
+ } catch (error) {
504
+ console.error(error);
505
+ }
506
+ }
507
+
508
+ // Run the test
509
+ example().catch(console.error);
510
+ ```
511
+
512
+ ### Parameters
513
+
514
+
515
+ | Name | Type | Description | Notes |
516
+ |------------- | ------------- | ------------- | -------------|
517
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
518
+ | **vid** | `string` | ID of the vcenter | [Defaults to `undefined`] |
519
+
520
+ ### Return type
521
+
522
+ `void` (Empty response body)
523
+
524
+ ### Authorization
525
+
526
+ No authorization required
527
+
528
+ ### HTTP request headers
529
+
530
+ - **Content-Type**: Not defined
531
+ - **Accept**: `application/json`
532
+
533
+
534
+ ### HTTP response details
535
+ | Status code | Description | Response headers |
536
+ |-------------|-------------|------------------|
537
+ | **204** | OK | - |
538
+ | **401** | Unauthorized | - |
539
+ | **403** | Forbidden | - |
540
+ | **404** | NotFound | - |
541
+ | **500** | Internal error | - |
542
+
543
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
544
+
545
+
471
546
  ## getAssessment
472
547
 
473
548
  > Assessment getAssessment(id)
package/docs/Datastore.md CHANGED
@@ -7,6 +7,9 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `type` | string
10
+ `backingDeviceIds` | Array&lt;string&gt;
11
+ `filesystemType` | string
12
+ `filesystemMajorVersion` | number
10
13
  `storageProtocol` | string
11
14
  `vsanSnapshotSupport` | boolean
12
15
  `totalCapacityGB` | number
@@ -27,6 +30,9 @@ import type { Datastore } from '@openshift-migration-advisor/planner-sdk'
27
30
  // TODO: Update the object below with actual values
28
31
  const example = {
29
32
  "type": null,
33
+ "backingDeviceIds": null,
34
+ "filesystemType": null,
35
+ "filesystemMajorVersion": null,
30
36
  "storageProtocol": null,
31
37
  "vsanSnapshotSupport": null,
32
38
  "totalCapacityGB": null,
package/docs/Host.md CHANGED
@@ -14,6 +14,8 @@ Name | Type
14
14
  `memoryMB` | number
15
15
  `vmotionSupported` | boolean
16
16
  `storageVmotionSupported` | boolean
17
+ `storageAdapters` | [Array&lt;HostStorageAdapter&gt;](HostStorageAdapter.md)
18
+ `storageLuns` | [Array&lt;HostStorageLun&gt;](HostStorageLun.md)
17
19
 
18
20
  ## Example
19
21
 
@@ -30,6 +32,8 @@ const example = {
30
32
  "memoryMB": null,
31
33
  "vmotionSupported": null,
32
34
  "storageVmotionSupported": null,
35
+ "storageAdapters": null,
36
+ "storageLuns": null,
33
37
  } satisfies Host
34
38
 
35
39
  console.log(example)
@@ -0,0 +1,49 @@
1
+
2
+ # HostStorageAdapter
3
+
4
+ Source-provided adapter facts. Missing or conflicting values are omitted.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `device` | string
11
+ `key` | string
12
+ `type` | string
13
+ `protocol` | string
14
+ `model` | string
15
+ `driver` | string
16
+ `nodeWwn` | string
17
+ `portWwn` | string
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { HostStorageAdapter } from '@openshift-migration-advisor/planner-sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "device": null,
27
+ "key": null,
28
+ "type": null,
29
+ "protocol": null,
30
+ "model": null,
31
+ "driver": null,
32
+ "nodeWwn": null,
33
+ "portWwn": null,
34
+ } satisfies HostStorageAdapter
35
+
36
+ console.log(example)
37
+
38
+ // Convert the instance to a JSON string
39
+ const exampleJSON: string = JSON.stringify(example)
40
+ console.log(exampleJSON)
41
+
42
+ // Parse the JSON string back to an object
43
+ const exampleParsed = JSON.parse(exampleJSON) as HostStorageAdapter
44
+ console.log(exampleParsed)
45
+ ```
46
+
47
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
48
+
49
+
@@ -0,0 +1,45 @@
1
+
2
+ # HostStorageLun
3
+
4
+ A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `canonicalName` | string
11
+ `key` | string
12
+ `lunUuid` | string
13
+ `vendor` | string
14
+ `model` | string
15
+ `adapterDevices` | Array&lt;string&gt;
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { HostStorageLun } from '@openshift-migration-advisor/planner-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "canonicalName": null,
25
+ "key": null,
26
+ "lunUuid": null,
27
+ "vendor": null,
28
+ "model": null,
29
+ "adapterDevices": null,
30
+ } satisfies HostStorageLun
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as HostStorageLun
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
44
+
45
+