@openshift-migration-advisor/planner-sdk 0.31.0 → 0.32.0

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 (38) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +5 -2
  3. package/dist/apis/AssessmentApi.d.ts +43 -0
  4. package/dist/apis/AssessmentApi.js +42 -0
  5. package/dist/esm/apis/AssessmentApi.d.ts +43 -0
  6. package/dist/esm/apis/AssessmentApi.js +42 -0
  7. package/dist/esm/models/Host.d.ts +10 -0
  8. package/dist/esm/models/Host.js +6 -0
  9. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  10. package/dist/esm/models/HostStorageAdapter.js +55 -0
  11. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  12. package/dist/esm/models/HostStorageLun.js +51 -0
  13. package/dist/esm/models/OsInfo.d.ts +12 -0
  14. package/dist/esm/models/OsInfo.js +9 -0
  15. package/dist/esm/models/index.d.ts +2 -0
  16. package/dist/esm/models/index.js +2 -0
  17. package/dist/models/Host.d.ts +10 -0
  18. package/dist/models/Host.js +6 -0
  19. package/dist/models/HostStorageAdapter.d.ts +58 -0
  20. package/dist/models/HostStorageAdapter.js +62 -0
  21. package/dist/models/HostStorageLun.d.ts +50 -0
  22. package/dist/models/HostStorageLun.js +58 -0
  23. package/dist/models/OsInfo.d.ts +12 -0
  24. package/dist/models/OsInfo.js +10 -1
  25. package/dist/models/index.d.ts +2 -0
  26. package/dist/models/index.js +2 -0
  27. package/docs/AssessmentApi.md +75 -0
  28. package/docs/Host.md +4 -0
  29. package/docs/HostStorageAdapter.md +49 -0
  30. package/docs/HostStorageLun.md +45 -0
  31. package/docs/OsInfo.md +2 -0
  32. package/package.json +1 -1
  33. package/src/apis/AssessmentApi.ts +87 -0
  34. package/src/models/Host.ts +27 -0
  35. package/src/models/HostStorageAdapter.ts +105 -0
  36. package/src/models/HostStorageLun.ts +93 -0
  37. package/src/models/OsInfo.ts +15 -0
  38. 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
+ }
@@ -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
  }
@@ -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/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
+
package/docs/OsInfo.md CHANGED
@@ -9,6 +9,7 @@ Name | Type
9
9
  `count` | number
10
10
  `supported` | boolean
11
11
  `supportTier` | string
12
+ `mtvStatus` | string
12
13
  `upgradeRecommendation` | string
13
14
 
14
15
  ## Example
@@ -21,6 +22,7 @@ const example = {
21
22
  "count": null,
22
23
  "supported": null,
23
24
  "supportTier": null,
25
+ "mtvStatus": null,
24
26
  "upgradeRecommendation": null,
25
27
  } satisfies OsInfo
26
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -157,6 +157,17 @@ export interface DeleteAssessmentRequest {
157
157
  id: string;
158
158
  }
159
159
 
160
+ export interface DeleteVCenterRequest {
161
+ /**
162
+ * ID of the assessment
163
+ */
164
+ id: string;
165
+ /**
166
+ * ID of the vcenter
167
+ */
168
+ vid: string;
169
+ }
170
+
160
171
  export interface GetAssessmentRequest {
161
172
  /**
162
173
  * ID of the assessment
@@ -398,6 +409,30 @@ export interface AssessmentApiInterface {
398
409
  */
399
410
  deleteAssessment(requestParameters: DeleteAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Assessment>;
400
411
 
412
+ /**
413
+ * Creates request options for deleteVCenter without sending the request
414
+ * @param {string} id ID of the assessment
415
+ * @param {string} vid ID of the vcenter
416
+ * @throws {RequiredError}
417
+ * @memberof AssessmentApiInterface
418
+ */
419
+ deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts>;
420
+
421
+ /**
422
+ * Delete the specified vcenter inventory
423
+ * @param {string} id ID of the assessment
424
+ * @param {string} vid ID of the vcenter
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ * @memberof AssessmentApiInterface
428
+ */
429
+ deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
430
+
431
+ /**
432
+ * Delete the specified vcenter inventory
433
+ */
434
+ deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
435
+
401
436
  /**
402
437
  * Creates request options for getAssessment without sending the request
403
438
  * @param {string} id ID of the assessment
@@ -989,6 +1024,58 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
989
1024
  return await response.value();
990
1025
  }
991
1026
 
1027
+ /**
1028
+ * Creates request options for deleteVCenter without sending the request
1029
+ */
1030
+ async deleteVCenterRequestOpts(requestParameters: DeleteVCenterRequest): Promise<runtime.RequestOpts> {
1031
+ if (requestParameters['id'] == null) {
1032
+ throw new runtime.RequiredError(
1033
+ 'id',
1034
+ 'Required parameter "id" was null or undefined when calling deleteVCenter().'
1035
+ );
1036
+ }
1037
+
1038
+ if (requestParameters['vid'] == null) {
1039
+ throw new runtime.RequiredError(
1040
+ 'vid',
1041
+ 'Required parameter "vid" was null or undefined when calling deleteVCenter().'
1042
+ );
1043
+ }
1044
+
1045
+ const queryParameters: any = {};
1046
+
1047
+ const headerParameters: runtime.HTTPHeaders = {};
1048
+
1049
+
1050
+ let urlPath = `/api/v2/assessments/{id}/vcenters/{vid}`;
1051
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1052
+ urlPath = urlPath.replace('{vid}', encodeURIComponent(String(requestParameters['vid'])));
1053
+
1054
+ return {
1055
+ path: urlPath,
1056
+ method: 'DELETE',
1057
+ headers: headerParameters,
1058
+ query: queryParameters,
1059
+ };
1060
+ }
1061
+
1062
+ /**
1063
+ * Delete the specified vcenter inventory
1064
+ */
1065
+ async deleteVCenterRaw(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1066
+ const requestOptions = await this.deleteVCenterRequestOpts(requestParameters);
1067
+ const response = await this.request(requestOptions, initOverrides);
1068
+
1069
+ return new runtime.VoidApiResponse(response);
1070
+ }
1071
+
1072
+ /**
1073
+ * Delete the specified vcenter inventory
1074
+ */
1075
+ async deleteVCenter(requestParameters: DeleteVCenterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1076
+ await this.deleteVCenterRaw(requestParameters, initOverrides);
1077
+ }
1078
+
992
1079
  /**
993
1080
  * Creates request options for getAssessment without sending the request
994
1081
  */