@openshift-migration-advisor/planner-sdk 0.29.0 → 0.31.0-2e9f5adcc019

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 (76) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +7 -3
  4. package/dist/apis/AssessmentApi.d.ts +86 -0
  5. package/dist/apis/AssessmentApi.js +86 -0
  6. package/dist/apis/ImageApi.d.ts +14 -0
  7. package/dist/apis/ImageApi.js +11 -1
  8. package/dist/esm/apis/AssessmentApi.d.ts +86 -0
  9. package/dist/esm/apis/AssessmentApi.js +86 -0
  10. package/dist/esm/apis/ImageApi.d.ts +14 -0
  11. package/dist/esm/apis/ImageApi.js +10 -0
  12. package/dist/esm/models/AssessmentV2.d.ts +1 -1
  13. package/dist/esm/models/AssessmentV2.js +3 -3
  14. package/dist/esm/models/Datastore.d.ts +14 -2
  15. package/dist/esm/models/Datastore.js +6 -0
  16. package/dist/esm/models/Host.d.ts +10 -0
  17. package/dist/esm/models/Host.js +6 -0
  18. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  19. package/dist/esm/models/HostStorageAdapter.js +55 -0
  20. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  21. package/dist/esm/models/HostStorageLun.js +51 -0
  22. package/dist/esm/models/Inventory.d.ts +5 -1
  23. package/dist/esm/models/Inventory.js +2 -0
  24. package/dist/esm/models/InventoryV2.d.ts +4 -0
  25. package/dist/esm/models/InventoryV2.js +2 -0
  26. package/dist/esm/models/OsInfo.d.ts +12 -0
  27. package/dist/esm/models/OsInfo.js +9 -0
  28. package/dist/esm/models/VsphereCoreInput.d.ts +8 -0
  29. package/dist/esm/models/VsphereCoreInput.js +4 -0
  30. package/dist/esm/models/index.d.ts +2 -0
  31. package/dist/esm/models/index.js +2 -0
  32. package/dist/models/AssessmentV2.d.ts +1 -1
  33. package/dist/models/AssessmentV2.js +3 -3
  34. package/dist/models/Datastore.d.ts +14 -2
  35. package/dist/models/Datastore.js +6 -0
  36. package/dist/models/Host.d.ts +10 -0
  37. package/dist/models/Host.js +6 -0
  38. package/dist/models/HostStorageAdapter.d.ts +58 -0
  39. package/dist/models/HostStorageAdapter.js +62 -0
  40. package/dist/models/HostStorageLun.d.ts +50 -0
  41. package/dist/models/HostStorageLun.js +58 -0
  42. package/dist/models/Inventory.d.ts +5 -1
  43. package/dist/models/Inventory.js +2 -0
  44. package/dist/models/InventoryV2.d.ts +4 -0
  45. package/dist/models/InventoryV2.js +2 -0
  46. package/dist/models/OsInfo.d.ts +12 -0
  47. package/dist/models/OsInfo.js +10 -1
  48. package/dist/models/VsphereCoreInput.d.ts +8 -0
  49. package/dist/models/VsphereCoreInput.js +4 -0
  50. package/dist/models/index.d.ts +2 -0
  51. package/dist/models/index.js +2 -0
  52. package/docs/AssessmentApi.md +151 -0
  53. package/docs/AssessmentV2.md +2 -2
  54. package/docs/Datastore.md +6 -0
  55. package/docs/Host.md +4 -0
  56. package/docs/HostStorageAdapter.md +49 -0
  57. package/docs/HostStorageLun.md +45 -0
  58. package/docs/ImageApi.md +5 -2
  59. package/docs/Inventory.md +2 -0
  60. package/docs/InventoryV2.md +2 -0
  61. package/docs/JobApi.md +2 -0
  62. package/docs/OsInfo.md +2 -0
  63. package/docs/VsphereCoreInput.md +4 -0
  64. package/package.json +1 -1
  65. package/src/apis/AssessmentApi.ts +177 -0
  66. package/src/apis/ImageApi.ts +19 -0
  67. package/src/models/AssessmentV2.ts +4 -4
  68. package/src/models/Datastore.ts +20 -2
  69. package/src/models/Host.ts +27 -0
  70. package/src/models/HostStorageAdapter.ts +105 -0
  71. package/src/models/HostStorageLun.ts +93 -0
  72. package/src/models/Inventory.ts +7 -1
  73. package/src/models/InventoryV2.ts +6 -0
  74. package/src/models/OsInfo.ts +15 -0
  75. package/src/models/VsphereCoreInput.ts +12 -0
  76. package/src/models/index.ts +2 -0
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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 | |
@@ -22,6 +23,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
22
23
  | [**shareAssessment**](AssessmentApi.md#shareassessment) | **POST** /api/v1/assessments/{id}/share | |
23
24
  | [**unshareAssessment**](AssessmentApi.md#unshareassessment) | **DELETE** /api/v1/assessments/{id}/share | |
24
25
  | [**updateAssessment**](AssessmentApi.md#updateassessment) | **PUT** /api/v1/assessments/{id} | |
26
+ | [**updateAssessmentV2**](AssessmentApi.md#updateassessmentv2) | **PATCH** /api/v2/assessments/{id} | |
25
27
 
26
28
 
27
29
 
@@ -468,6 +470,80 @@ No authorization required
468
470
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
469
471
 
470
472
 
473
+ ## deleteVCenter
474
+
475
+ > deleteVCenter(id, vid)
476
+
477
+
478
+
479
+ Delete the specified vcenter inventory
480
+
481
+ ### Example
482
+
483
+ ```ts
484
+ import {
485
+ Configuration,
486
+ AssessmentApi,
487
+ } from '@openshift-migration-advisor/planner-sdk';
488
+ import type { DeleteVCenterRequest } from '@openshift-migration-advisor/planner-sdk';
489
+
490
+ async function example() {
491
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
492
+ const api = new AssessmentApi();
493
+
494
+ const body = {
495
+ // string | ID of the assessment
496
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
497
+ // string | ID of the vcenter
498
+ vid: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
499
+ } satisfies DeleteVCenterRequest;
500
+
501
+ try {
502
+ const data = await api.deleteVCenter(body);
503
+ console.log(data);
504
+ } catch (error) {
505
+ console.error(error);
506
+ }
507
+ }
508
+
509
+ // Run the test
510
+ example().catch(console.error);
511
+ ```
512
+
513
+ ### Parameters
514
+
515
+
516
+ | Name | Type | Description | Notes |
517
+ |------------- | ------------- | ------------- | -------------|
518
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
519
+ | **vid** | `string` | ID of the vcenter | [Defaults to `undefined`] |
520
+
521
+ ### Return type
522
+
523
+ `void` (Empty response body)
524
+
525
+ ### Authorization
526
+
527
+ No authorization required
528
+
529
+ ### HTTP request headers
530
+
531
+ - **Content-Type**: Not defined
532
+ - **Accept**: `application/json`
533
+
534
+
535
+ ### HTTP response details
536
+ | Status code | Description | Response headers |
537
+ |-------------|-------------|------------------|
538
+ | **204** | OK | - |
539
+ | **401** | Unauthorized | - |
540
+ | **403** | Forbidden | - |
541
+ | **404** | NotFound | - |
542
+ | **500** | Internal error | - |
543
+
544
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
545
+
546
+
471
547
  ## getAssessment
472
548
 
473
549
  > Assessment getAssessment(id)
@@ -1323,3 +1399,78 @@ No authorization required
1323
1399
 
1324
1400
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1325
1401
 
1402
+
1403
+ ## updateAssessmentV2
1404
+
1405
+ > AssessmentV2 updateAssessmentV2(id, assessmentUpdate)
1406
+
1407
+
1408
+
1409
+ Update the assessment name
1410
+
1411
+ ### Example
1412
+
1413
+ ```ts
1414
+ import {
1415
+ Configuration,
1416
+ AssessmentApi,
1417
+ } from '@openshift-migration-advisor/planner-sdk';
1418
+ import type { UpdateAssessmentV2Request } from '@openshift-migration-advisor/planner-sdk';
1419
+
1420
+ async function example() {
1421
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
1422
+ const api = new AssessmentApi();
1423
+
1424
+ const body = {
1425
+ // string | ID of the assessment
1426
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1427
+ // AssessmentUpdate
1428
+ assessmentUpdate: ...,
1429
+ } satisfies UpdateAssessmentV2Request;
1430
+
1431
+ try {
1432
+ const data = await api.updateAssessmentV2(body);
1433
+ console.log(data);
1434
+ } catch (error) {
1435
+ console.error(error);
1436
+ }
1437
+ }
1438
+
1439
+ // Run the test
1440
+ example().catch(console.error);
1441
+ ```
1442
+
1443
+ ### Parameters
1444
+
1445
+
1446
+ | Name | Type | Description | Notes |
1447
+ |------------- | ------------- | ------------- | -------------|
1448
+ | **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
1449
+ | **assessmentUpdate** | [AssessmentUpdate](AssessmentUpdate.md) | | |
1450
+
1451
+ ### Return type
1452
+
1453
+ [**AssessmentV2**](AssessmentV2.md)
1454
+
1455
+ ### Authorization
1456
+
1457
+ No authorization required
1458
+
1459
+ ### HTTP request headers
1460
+
1461
+ - **Content-Type**: `application/json`
1462
+ - **Accept**: `application/json`
1463
+
1464
+
1465
+ ### HTTP response details
1466
+ | Status code | Description | Response headers |
1467
+ |-------------|-------------|------------------|
1468
+ | **200** | OK | - |
1469
+ | **400** | Bad Request | - |
1470
+ | **401** | Unauthorized | - |
1471
+ | **403** | Forbidden | - |
1472
+ | **404** | NotFound | - |
1473
+ | **500** | Internal Server Error | - |
1474
+
1475
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1476
+
@@ -7,7 +7,7 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `data` | [InventoryV2](InventoryV2.md)
10
- `vcetners` | [Array&lt;SubResource&gt;](SubResource.md)
10
+ `vcenters` | [Array&lt;SubResource&gt;](SubResource.md)
11
11
 
12
12
  ## Example
13
13
 
@@ -17,7 +17,7 @@ import type { AssessmentV2 } from '@openshift-migration-advisor/planner-sdk'
17
17
  // TODO: Update the object below with actual values
18
18
  const example = {
19
19
  "data": null,
20
- "vcetners": null,
20
+ "vcenters": null,
21
21
  } satisfies AssessmentV2
22
22
 
23
23
  console.log(example)
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)