@openshift-migration-advisor/planner-sdk 0.31.0 → 0.32.0-87bd7cc3be65
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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +6 -2
- package/dist/apis/AssessmentApi.d.ts +86 -0
- package/dist/apis/AssessmentApi.js +86 -0
- package/dist/apis/ImageApi.d.ts +14 -0
- package/dist/apis/ImageApi.js +11 -1
- package/dist/esm/apis/AssessmentApi.d.ts +86 -0
- package/dist/esm/apis/AssessmentApi.js +86 -0
- package/dist/esm/apis/ImageApi.d.ts +14 -0
- package/dist/esm/apis/ImageApi.js +10 -0
- package/dist/esm/models/Host.d.ts +26 -0
- package/dist/esm/models/Host.js +14 -0
- package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
- package/dist/esm/models/HostStorageAdapter.js +55 -0
- package/dist/esm/models/HostStorageLun.d.ts +50 -0
- package/dist/esm/models/HostStorageLun.js +51 -0
- package/dist/esm/models/Info.d.ts +4 -0
- package/dist/esm/models/Info.js +2 -0
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/Host.d.ts +26 -0
- package/dist/models/Host.js +14 -0
- package/dist/models/HostStorageAdapter.d.ts +58 -0
- package/dist/models/HostStorageAdapter.js +62 -0
- package/dist/models/HostStorageLun.d.ts +50 -0
- package/dist/models/HostStorageLun.js +58 -0
- package/dist/models/Info.d.ts +4 -0
- package/dist/models/Info.js +2 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/AssessmentApi.md +151 -0
- package/docs/Host.md +12 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/ImageApi.md +5 -2
- package/docs/Info.md +2 -0
- package/docs/OsInfo.md +2 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +177 -0
- package/src/apis/ImageApi.ts +19 -0
- package/src/models/Host.ts +51 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/Info.ts +6 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/index.ts +2 -0
|
@@ -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
|
+
}
|
package/dist/models/Info.d.ts
CHANGED
|
@@ -31,6 +31,10 @@ export interface Info {
|
|
|
31
31
|
* Agent version name, based on git tag
|
|
32
32
|
*/
|
|
33
33
|
agentVersionName?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* The oldest appliance version the served image supports in-place updates from; empty when no minimum is set
|
|
36
|
+
*/
|
|
37
|
+
minApplianceVersion?: string | null;
|
|
34
38
|
}
|
|
35
39
|
/**
|
|
36
40
|
* Check if a given object implements the Info interface.
|
package/dist/models/Info.js
CHANGED
|
@@ -40,6 +40,7 @@ function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'versionName': json['versionName'],
|
|
41
41
|
'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
|
|
42
42
|
'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
|
|
43
|
+
'minApplianceVersion': json['minApplianceVersion'] === undefined ? undefined : json['minApplianceVersion'] === null ? null : json['minApplianceVersion'],
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
function InfoToJSON(json) {
|
|
@@ -54,5 +55,6 @@ function InfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
55
|
'versionName': value['versionName'],
|
|
55
56
|
'agentGitCommit': value['agentGitCommit'],
|
|
56
57
|
'agentVersionName': value['agentVersionName'],
|
|
58
|
+
'minApplianceVersion': value['minApplianceVersion'],
|
|
57
59
|
};
|
|
58
60
|
}
|
package/dist/models/OsInfo.d.ts
CHANGED
|
@@ -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
|
*/
|
package/dist/models/OsInfo.js
CHANGED
|
@@ -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
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -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);
|
package/docs/AssessmentApi.md
CHANGED
|
@@ -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
|
+
|
package/docs/Host.md
CHANGED
|
@@ -9,11 +9,17 @@ Name | Type
|
|
|
9
9
|
`id` | string
|
|
10
10
|
`vendor` | string
|
|
11
11
|
`model` | string
|
|
12
|
+
`datacenter` | string
|
|
13
|
+
`cluster` | string
|
|
14
|
+
`cpuModel` | string
|
|
15
|
+
`serialNumber` | string
|
|
12
16
|
`cpuCores` | number
|
|
13
17
|
`cpuSockets` | number
|
|
14
18
|
`memoryMB` | number
|
|
15
19
|
`vmotionSupported` | boolean
|
|
16
20
|
`storageVmotionSupported` | boolean
|
|
21
|
+
`storageAdapters` | [Array<HostStorageAdapter>](HostStorageAdapter.md)
|
|
22
|
+
`storageLuns` | [Array<HostStorageLun>](HostStorageLun.md)
|
|
17
23
|
|
|
18
24
|
## Example
|
|
19
25
|
|
|
@@ -25,11 +31,17 @@ const example = {
|
|
|
25
31
|
"id": null,
|
|
26
32
|
"vendor": null,
|
|
27
33
|
"model": null,
|
|
34
|
+
"datacenter": null,
|
|
35
|
+
"cluster": null,
|
|
36
|
+
"cpuModel": null,
|
|
37
|
+
"serialNumber": null,
|
|
28
38
|
"cpuCores": null,
|
|
29
39
|
"cpuSockets": null,
|
|
30
40
|
"memoryMB": null,
|
|
31
41
|
"vmotionSupported": null,
|
|
32
42
|
"storageVmotionSupported": null,
|
|
43
|
+
"storageAdapters": null,
|
|
44
|
+
"storageLuns": null,
|
|
33
45
|
} satisfies Host
|
|
34
46
|
|
|
35
47
|
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<string>
|
|
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/ImageApi.md
CHANGED
|
@@ -11,7 +11,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
|
|
|
11
11
|
|
|
12
12
|
## getSourceDownloadURL
|
|
13
13
|
|
|
14
|
-
> PresignedUrl getSourceDownloadURL(id)
|
|
14
|
+
> PresignedUrl getSourceDownloadURL(id, image)
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -33,6 +33,8 @@ async function example() {
|
|
|
33
33
|
const body = {
|
|
34
34
|
// string | Source id
|
|
35
35
|
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
36
|
+
// 'ova' | 'appliance' | Which image to link; the OVA or the appliance image tar for a disconnected update (optional)
|
|
37
|
+
image: image_example,
|
|
36
38
|
} satisfies GetSourceDownloadURLRequest;
|
|
37
39
|
|
|
38
40
|
try {
|
|
@@ -53,6 +55,7 @@ example().catch(console.error);
|
|
|
53
55
|
| Name | Type | Description | Notes |
|
|
54
56
|
|------------- | ------------- | ------------- | -------------|
|
|
55
57
|
| **id** | `string` | Source id | [Defaults to `undefined`] |
|
|
58
|
+
| **image** | `ova`, `appliance` | Which image to link; the OVA or the appliance image tar for a disconnected update | [Optional] [Defaults to `'ova'`] [Enum: ova, appliance] |
|
|
56
59
|
|
|
57
60
|
### Return type
|
|
58
61
|
|
|
@@ -71,7 +74,7 @@ No authorization required
|
|
|
71
74
|
### HTTP response details
|
|
72
75
|
| Status code | Description | Response headers |
|
|
73
76
|
|-------------|-------------|------------------|
|
|
74
|
-
| **200** | URL to download
|
|
77
|
+
| **200** | URL to download the image | - |
|
|
75
78
|
| **400** | Bad Request | - |
|
|
76
79
|
| **401** | Unauthorized | - |
|
|
77
80
|
| **403** | Forbidden | - |
|
package/docs/Info.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`versionName` | string
|
|
12
12
|
`agentGitCommit` | string
|
|
13
13
|
`agentVersionName` | string
|
|
14
|
+
`minApplianceVersion` | string
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -23,6 +24,7 @@ const example = {
|
|
|
23
24
|
"versionName": 0.1.4-40-gc5a1661,
|
|
24
25
|
"agentGitCommit": c5a1661465a25b17ceeeb77d1ec40deb57d8da44,
|
|
25
26
|
"agentVersionName": 0.1.4-40-gc5a1661,
|
|
27
|
+
"minApplianceVersion": null,
|
|
26
28
|
} satisfies Info
|
|
27
29
|
|
|
28
30
|
console.log(example)
|
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