@openshift-migration-advisor/planner-sdk 0.27.0 → 0.28.0-187c2d948808
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 +16 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +19 -3
- package/dist/apis/AssessmentApi.d.ts +257 -0
- package/dist/apis/AssessmentApi.js +257 -0
- package/dist/apis/ImageApi.d.ts +14 -0
- package/dist/apis/ImageApi.js +11 -1
- package/dist/apis/JobApi.d.ts +86 -0
- package/dist/apis/JobApi.js +124 -0
- package/dist/esm/apis/AssessmentApi.d.ts +257 -0
- package/dist/esm/apis/AssessmentApi.js +257 -0
- package/dist/esm/apis/ImageApi.d.ts +14 -0
- package/dist/esm/apis/ImageApi.js +10 -0
- package/dist/esm/apis/JobApi.d.ts +86 -0
- package/dist/esm/apis/JobApi.js +124 -0
- package/dist/esm/models/AssessmentV2.d.ts +36 -0
- package/dist/esm/models/AssessmentV2.js +49 -0
- package/dist/esm/models/AssessmentV2Summary.d.ts +97 -0
- package/dist/esm/models/AssessmentV2Summary.js +99 -0
- package/dist/esm/models/AssessmentVCenterV2.d.ts +36 -0
- package/dist/esm/models/AssessmentVCenterV2.js +49 -0
- package/dist/esm/models/Datastore.d.ts +18 -2
- package/dist/esm/models/Datastore.js +8 -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/Inventory.d.ts +5 -1
- package/dist/esm/models/Inventory.js +2 -0
- package/dist/esm/models/InventoryV2.d.ts +47 -0
- package/dist/esm/models/InventoryV2.js +55 -0
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/SourceType.d.ts +26 -0
- package/dist/esm/models/SourceType.js +44 -0
- package/dist/esm/models/SubResource.d.ts +30 -0
- package/dist/esm/models/SubResource.js +43 -0
- package/dist/esm/models/VsphereCoreInput.d.ts +8 -0
- package/dist/esm/models/VsphereCoreInput.js +4 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/esm/runtime.js +4 -3
- package/dist/models/AssessmentV2.d.ts +36 -0
- package/dist/models/AssessmentV2.js +56 -0
- package/dist/models/AssessmentV2Summary.d.ts +97 -0
- package/dist/models/AssessmentV2Summary.js +107 -0
- package/dist/models/AssessmentVCenterV2.d.ts +36 -0
- package/dist/models/AssessmentVCenterV2.js +56 -0
- package/dist/models/Datastore.d.ts +18 -2
- package/dist/models/Datastore.js +8 -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/Inventory.d.ts +5 -1
- package/dist/models/Inventory.js +2 -0
- package/dist/models/InventoryV2.d.ts +47 -0
- package/dist/models/InventoryV2.js +62 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/SourceType.d.ts +26 -0
- package/dist/models/SourceType.js +52 -0
- package/dist/models/SubResource.d.ts +30 -0
- package/dist/models/SubResource.js +50 -0
- package/dist/models/VsphereCoreInput.d.ts +8 -0
- package/dist/models/VsphereCoreInput.js +4 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/runtime.js +4 -3
- package/docs/AssessmentApi.md +447 -0
- package/docs/AssessmentV2.md +36 -0
- package/docs/AssessmentV2Summary.md +58 -0
- package/docs/AssessmentVCenterV2.md +36 -0
- package/docs/Datastore.md +8 -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/Inventory.md +2 -0
- package/docs/InventoryV2.md +42 -0
- package/docs/JobApi.md +152 -0
- package/docs/OsInfo.md +2 -0
- package/docs/SourceType.md +32 -0
- package/docs/SubResource.md +34 -0
- package/docs/VsphereCoreInput.md +4 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +536 -0
- package/src/apis/ImageApi.ts +19 -0
- package/src/apis/JobApi.ts +219 -0
- package/src/models/AssessmentV2.ts +86 -0
- package/src/models/AssessmentV2Summary.ts +173 -0
- package/src/models/AssessmentVCenterV2.ts +86 -0
- package/src/models/Datastore.ts +26 -2
- 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/Inventory.ts +7 -1
- package/src/models/InventoryV2.ts +97 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/SourceType.ts +54 -0
- package/src/models/SubResource.ts +64 -0
- package/src/models/VsphereCoreInput.ts +12 -0
- package/src/models/index.ts +8 -0
- package/src/runtime.ts +11 -11
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenShift Migration Advisor API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1alpha1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSubResource = instanceOfSubResource;
|
|
17
|
+
exports.SubResourceFromJSON = SubResourceFromJSON;
|
|
18
|
+
exports.SubResourceFromJSONTyped = SubResourceFromJSONTyped;
|
|
19
|
+
exports.SubResourceToJSON = SubResourceToJSON;
|
|
20
|
+
exports.SubResourceToJSONTyped = SubResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SubResourceFromJSON(json) {
|
|
30
|
+
return SubResourceFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SubResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': json['id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SubResourceToJSON(json) {
|
|
41
|
+
return SubResourceToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SubResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -27,6 +27,14 @@ export interface VsphereCoreInput {
|
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
srmEnabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether Network I/O Control is enabled
|
|
32
|
+
*/
|
|
33
|
+
niocEnabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* How NIOC is configured and which traffic is prioritized
|
|
36
|
+
*/
|
|
37
|
+
niocDetails?: string;
|
|
30
38
|
}
|
|
31
39
|
/**
|
|
32
40
|
* Check if a given object implements the VsphereCoreInput interface.
|
|
@@ -35,6 +35,8 @@ function VsphereCoreInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'vmEncryptionEnabled': json['vmEncryptionEnabled'] == null ? undefined : json['vmEncryptionEnabled'],
|
|
36
36
|
'vmEncryptionPolicy': json['vmEncryptionPolicy'] == null ? undefined : json['vmEncryptionPolicy'],
|
|
37
37
|
'srmEnabled': json['srmEnabled'] == null ? undefined : json['srmEnabled'],
|
|
38
|
+
'niocEnabled': json['niocEnabled'] == null ? undefined : json['niocEnabled'],
|
|
39
|
+
'niocDetails': json['niocDetails'] == null ? undefined : json['niocDetails'],
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
function VsphereCoreInputToJSON(json) {
|
|
@@ -48,5 +50,7 @@ function VsphereCoreInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
50
|
'vmEncryptionEnabled': value['vmEncryptionEnabled'],
|
|
49
51
|
'vmEncryptionPolicy': value['vmEncryptionPolicy'],
|
|
50
52
|
'srmEnabled': value['srmEnabled'],
|
|
53
|
+
'niocEnabled': value['niocEnabled'],
|
|
54
|
+
'niocDetails': value['niocDetails'],
|
|
51
55
|
};
|
|
52
56
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ export * from './AssessmentForm.js';
|
|
|
9
9
|
export * from './AssessmentSharing.js';
|
|
10
10
|
export * from './AssessmentSubsetInventory.js';
|
|
11
11
|
export * from './AssessmentUpdate.js';
|
|
12
|
+
export * from './AssessmentV2.js';
|
|
13
|
+
export * from './AssessmentV2Summary.js';
|
|
14
|
+
export * from './AssessmentVCenterV2.js';
|
|
12
15
|
export * from './ClusterFeatures.js';
|
|
13
16
|
export * from './ClusterRequirementsRequest.js';
|
|
14
17
|
export * from './ClusterRequirementsResponse.js';
|
|
@@ -33,12 +36,15 @@ export * from './GroupCreate.js';
|
|
|
33
36
|
export * from './GroupUpdate.js';
|
|
34
37
|
export * from './Histogram.js';
|
|
35
38
|
export * from './Host.js';
|
|
39
|
+
export * from './HostStorageAdapter.js';
|
|
40
|
+
export * from './HostStorageLun.js';
|
|
36
41
|
export * from './Identity.js';
|
|
37
42
|
export * from './Info.js';
|
|
38
43
|
export * from './Infra.js';
|
|
39
44
|
export * from './Inventory.js';
|
|
40
45
|
export * from './InventoryData.js';
|
|
41
46
|
export * from './InventoryTotals.js';
|
|
47
|
+
export * from './InventoryV2.js';
|
|
42
48
|
export * from './Ipv4Config.js';
|
|
43
49
|
export * from './IssuesBreakdown.js';
|
|
44
50
|
export * from './Job.js';
|
|
@@ -76,11 +82,13 @@ export * from './Snapshot.js';
|
|
|
76
82
|
export * from './Source.js';
|
|
77
83
|
export * from './SourceCreate.js';
|
|
78
84
|
export * from './SourceInfra.js';
|
|
85
|
+
export * from './SourceType.js';
|
|
79
86
|
export * from './SourceUpdate.js';
|
|
80
87
|
export * from './StandaloneClusterRequirementsRequest.js';
|
|
81
88
|
export * from './StandaloneClusterRequirementsResponse.js';
|
|
82
89
|
export * from './Status.js';
|
|
83
90
|
export * from './StorageIoConfiguration.js';
|
|
91
|
+
export * from './SubResource.js';
|
|
84
92
|
export * from './UpdateInventory.js';
|
|
85
93
|
export * from './VCenter.js';
|
|
86
94
|
export * from './VMResourceBreakdown.js';
|
package/dist/models/index.js
CHANGED
|
@@ -27,6 +27,9 @@ __exportStar(require("./AssessmentForm.js"), exports);
|
|
|
27
27
|
__exportStar(require("./AssessmentSharing.js"), exports);
|
|
28
28
|
__exportStar(require("./AssessmentSubsetInventory.js"), exports);
|
|
29
29
|
__exportStar(require("./AssessmentUpdate.js"), exports);
|
|
30
|
+
__exportStar(require("./AssessmentV2.js"), exports);
|
|
31
|
+
__exportStar(require("./AssessmentV2Summary.js"), exports);
|
|
32
|
+
__exportStar(require("./AssessmentVCenterV2.js"), exports);
|
|
30
33
|
__exportStar(require("./ClusterFeatures.js"), exports);
|
|
31
34
|
__exportStar(require("./ClusterRequirementsRequest.js"), exports);
|
|
32
35
|
__exportStar(require("./ClusterRequirementsResponse.js"), exports);
|
|
@@ -51,12 +54,15 @@ __exportStar(require("./GroupCreate.js"), exports);
|
|
|
51
54
|
__exportStar(require("./GroupUpdate.js"), exports);
|
|
52
55
|
__exportStar(require("./Histogram.js"), exports);
|
|
53
56
|
__exportStar(require("./Host.js"), exports);
|
|
57
|
+
__exportStar(require("./HostStorageAdapter.js"), exports);
|
|
58
|
+
__exportStar(require("./HostStorageLun.js"), exports);
|
|
54
59
|
__exportStar(require("./Identity.js"), exports);
|
|
55
60
|
__exportStar(require("./Info.js"), exports);
|
|
56
61
|
__exportStar(require("./Infra.js"), exports);
|
|
57
62
|
__exportStar(require("./Inventory.js"), exports);
|
|
58
63
|
__exportStar(require("./InventoryData.js"), exports);
|
|
59
64
|
__exportStar(require("./InventoryTotals.js"), exports);
|
|
65
|
+
__exportStar(require("./InventoryV2.js"), exports);
|
|
60
66
|
__exportStar(require("./Ipv4Config.js"), exports);
|
|
61
67
|
__exportStar(require("./IssuesBreakdown.js"), exports);
|
|
62
68
|
__exportStar(require("./Job.js"), exports);
|
|
@@ -94,11 +100,13 @@ __exportStar(require("./Snapshot.js"), exports);
|
|
|
94
100
|
__exportStar(require("./Source.js"), exports);
|
|
95
101
|
__exportStar(require("./SourceCreate.js"), exports);
|
|
96
102
|
__exportStar(require("./SourceInfra.js"), exports);
|
|
103
|
+
__exportStar(require("./SourceType.js"), exports);
|
|
97
104
|
__exportStar(require("./SourceUpdate.js"), exports);
|
|
98
105
|
__exportStar(require("./StandaloneClusterRequirementsRequest.js"), exports);
|
|
99
106
|
__exportStar(require("./StandaloneClusterRequirementsResponse.js"), exports);
|
|
100
107
|
__exportStar(require("./Status.js"), exports);
|
|
101
108
|
__exportStar(require("./StorageIoConfiguration.js"), exports);
|
|
109
|
+
__exportStar(require("./SubResource.js"), exports);
|
|
102
110
|
__exportStar(require("./UpdateInventory.js"), exports);
|
|
103
111
|
__exportStar(require("./VCenter.js"), exports);
|
|
104
112
|
__exportStar(require("./VMResourceBreakdown.js"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -440,7 +440,7 @@ function parseContentDispositionFilename(headers) {
|
|
|
440
440
|
function decodeExtValue(value) {
|
|
441
441
|
const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
|
|
442
442
|
try {
|
|
443
|
-
return match ? decodeURIComponent(match[1]) : undefined;
|
|
443
|
+
return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
|
|
444
444
|
}
|
|
445
445
|
catch (_a) {
|
|
446
446
|
return undefined;
|
|
@@ -452,13 +452,14 @@ function decodeExtValue(value) {
|
|
|
452
452
|
* backslash escapes resolved, and the first occurrence of a name wins.
|
|
453
453
|
*/
|
|
454
454
|
function parseHeaderParameters(value) {
|
|
455
|
+
var _a, _b;
|
|
455
456
|
const params = new Map();
|
|
456
457
|
const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
|
|
457
458
|
let match;
|
|
458
459
|
while ((match = parameter.exec(value)) !== null) {
|
|
459
|
-
const name = match[1].toLowerCase();
|
|
460
|
+
const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
|
|
460
461
|
if (!params.has(name)) {
|
|
461
|
-
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
|
|
462
|
+
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
|
|
462
463
|
}
|
|
463
464
|
}
|
|
464
465
|
return params;
|
package/docs/AssessmentApi.md
CHANGED
|
@@ -10,14 +10,20 @@ 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 | |
|
|
17
|
+
| [**getAssessmentV2**](AssessmentApi.md#getassessmentv2) | **GET** /api/v2/assessments/{id} | |
|
|
18
|
+
| [**getVcenter**](AssessmentApi.md#getvcenter) | **GET** /api/v2/assessments/{id}/vcenters/{vid} | |
|
|
19
|
+
| [**getVcenterCluster**](AssessmentApi.md#getvcentercluster) | **GET** /api/v2/assessments/{id}/vcenters/{vid}/clusters/{cid} | |
|
|
16
20
|
| [**listAssessments**](AssessmentApi.md#listassessments) | **GET** /api/v1/assessments | |
|
|
21
|
+
| [**listAssessmentsV2**](AssessmentApi.md#listassessmentsv2) | **GET** /api/v2/assessments | |
|
|
17
22
|
| [**saveAssessmentEnhancementData**](AssessmentApi.md#saveassessmentenhancementdata) | **POST** /api/v1/assessments/{id}/enhancement-data | |
|
|
18
23
|
| [**shareAssessment**](AssessmentApi.md#shareassessment) | **POST** /api/v1/assessments/{id}/share | |
|
|
19
24
|
| [**unshareAssessment**](AssessmentApi.md#unshareassessment) | **DELETE** /api/v1/assessments/{id}/share | |
|
|
20
25
|
| [**updateAssessment**](AssessmentApi.md#updateassessment) | **PUT** /api/v1/assessments/{id} | |
|
|
26
|
+
| [**updateAssessmentV2**](AssessmentApi.md#updateassessmentv2) | **PATCH** /api/v2/assessments/{id} | |
|
|
21
27
|
|
|
22
28
|
|
|
23
29
|
|
|
@@ -464,6 +470,80 @@ No authorization required
|
|
|
464
470
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
465
471
|
|
|
466
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
|
+
|
|
467
547
|
## getAssessment
|
|
468
548
|
|
|
469
549
|
> Assessment getAssessment(id)
|
|
@@ -682,6 +762,228 @@ No authorization required
|
|
|
682
762
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
683
763
|
|
|
684
764
|
|
|
765
|
+
## getAssessmentV2
|
|
766
|
+
|
|
767
|
+
> AssessmentV2 getAssessmentV2(id)
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
Get the specified assessment inventory
|
|
772
|
+
|
|
773
|
+
### Example
|
|
774
|
+
|
|
775
|
+
```ts
|
|
776
|
+
import {
|
|
777
|
+
Configuration,
|
|
778
|
+
AssessmentApi,
|
|
779
|
+
} from '@openshift-migration-advisor/planner-sdk';
|
|
780
|
+
import type { GetAssessmentV2Request } from '@openshift-migration-advisor/planner-sdk';
|
|
781
|
+
|
|
782
|
+
async function example() {
|
|
783
|
+
console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
|
|
784
|
+
const api = new AssessmentApi();
|
|
785
|
+
|
|
786
|
+
const body = {
|
|
787
|
+
// string | ID of the assessment
|
|
788
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
789
|
+
} satisfies GetAssessmentV2Request;
|
|
790
|
+
|
|
791
|
+
try {
|
|
792
|
+
const data = await api.getAssessmentV2(body);
|
|
793
|
+
console.log(data);
|
|
794
|
+
} catch (error) {
|
|
795
|
+
console.error(error);
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
// Run the test
|
|
800
|
+
example().catch(console.error);
|
|
801
|
+
```
|
|
802
|
+
|
|
803
|
+
### Parameters
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
| Name | Type | Description | Notes |
|
|
807
|
+
|------------- | ------------- | ------------- | -------------|
|
|
808
|
+
| **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
|
|
809
|
+
|
|
810
|
+
### Return type
|
|
811
|
+
|
|
812
|
+
[**AssessmentV2**](AssessmentV2.md)
|
|
813
|
+
|
|
814
|
+
### Authorization
|
|
815
|
+
|
|
816
|
+
No authorization required
|
|
817
|
+
|
|
818
|
+
### HTTP request headers
|
|
819
|
+
|
|
820
|
+
- **Content-Type**: Not defined
|
|
821
|
+
- **Accept**: `application/json`
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
### HTTP response details
|
|
825
|
+
| Status code | Description | Response headers |
|
|
826
|
+
|-------------|-------------|------------------|
|
|
827
|
+
| **200** | OK | - |
|
|
828
|
+
| **401** | Unauthorized | - |
|
|
829
|
+
| **403** | Forbidden | - |
|
|
830
|
+
| **404** | NotFound | - |
|
|
831
|
+
| **500** | Internal error | - |
|
|
832
|
+
|
|
833
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
## getVcenter
|
|
837
|
+
|
|
838
|
+
> AssessmentVCenterV2 getVcenter(id, vid)
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
Get the specified vcenter assessment inventory
|
|
843
|
+
|
|
844
|
+
### Example
|
|
845
|
+
|
|
846
|
+
```ts
|
|
847
|
+
import {
|
|
848
|
+
Configuration,
|
|
849
|
+
AssessmentApi,
|
|
850
|
+
} from '@openshift-migration-advisor/planner-sdk';
|
|
851
|
+
import type { GetVcenterRequest } from '@openshift-migration-advisor/planner-sdk';
|
|
852
|
+
|
|
853
|
+
async function example() {
|
|
854
|
+
console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
|
|
855
|
+
const api = new AssessmentApi();
|
|
856
|
+
|
|
857
|
+
const body = {
|
|
858
|
+
// string | ID of the assessment
|
|
859
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
860
|
+
// string | ID of the vcenter
|
|
861
|
+
vid: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
862
|
+
} satisfies GetVcenterRequest;
|
|
863
|
+
|
|
864
|
+
try {
|
|
865
|
+
const data = await api.getVcenter(body);
|
|
866
|
+
console.log(data);
|
|
867
|
+
} catch (error) {
|
|
868
|
+
console.error(error);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
// Run the test
|
|
873
|
+
example().catch(console.error);
|
|
874
|
+
```
|
|
875
|
+
|
|
876
|
+
### Parameters
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
| Name | Type | Description | Notes |
|
|
880
|
+
|------------- | ------------- | ------------- | -------------|
|
|
881
|
+
| **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
|
|
882
|
+
| **vid** | `string` | ID of the vcenter | [Defaults to `undefined`] |
|
|
883
|
+
|
|
884
|
+
### Return type
|
|
885
|
+
|
|
886
|
+
[**AssessmentVCenterV2**](AssessmentVCenterV2.md)
|
|
887
|
+
|
|
888
|
+
### Authorization
|
|
889
|
+
|
|
890
|
+
No authorization required
|
|
891
|
+
|
|
892
|
+
### HTTP request headers
|
|
893
|
+
|
|
894
|
+
- **Content-Type**: Not defined
|
|
895
|
+
- **Accept**: `application/json`
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
### HTTP response details
|
|
899
|
+
| Status code | Description | Response headers |
|
|
900
|
+
|-------------|-------------|------------------|
|
|
901
|
+
| **200** | OK | - |
|
|
902
|
+
| **401** | Unauthorized | - |
|
|
903
|
+
| **403** | Forbidden | - |
|
|
904
|
+
| **404** | NotFound | - |
|
|
905
|
+
| **500** | Internal error | - |
|
|
906
|
+
|
|
907
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
## getVcenterCluster
|
|
911
|
+
|
|
912
|
+
> InventoryData getVcenterCluster(id, vid, cid)
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
Get the specified cluster assessment inventory
|
|
917
|
+
|
|
918
|
+
### Example
|
|
919
|
+
|
|
920
|
+
```ts
|
|
921
|
+
import {
|
|
922
|
+
Configuration,
|
|
923
|
+
AssessmentApi,
|
|
924
|
+
} from '@openshift-migration-advisor/planner-sdk';
|
|
925
|
+
import type { GetVcenterClusterRequest } from '@openshift-migration-advisor/planner-sdk';
|
|
926
|
+
|
|
927
|
+
async function example() {
|
|
928
|
+
console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
|
|
929
|
+
const api = new AssessmentApi();
|
|
930
|
+
|
|
931
|
+
const body = {
|
|
932
|
+
// string | ID of the assessment
|
|
933
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
934
|
+
// string | ID of the vcenter
|
|
935
|
+
vid: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
936
|
+
// string | ID of the cluster
|
|
937
|
+
cid: cid_example,
|
|
938
|
+
} satisfies GetVcenterClusterRequest;
|
|
939
|
+
|
|
940
|
+
try {
|
|
941
|
+
const data = await api.getVcenterCluster(body);
|
|
942
|
+
console.log(data);
|
|
943
|
+
} catch (error) {
|
|
944
|
+
console.error(error);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
// Run the test
|
|
949
|
+
example().catch(console.error);
|
|
950
|
+
```
|
|
951
|
+
|
|
952
|
+
### Parameters
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
| Name | Type | Description | Notes |
|
|
956
|
+
|------------- | ------------- | ------------- | -------------|
|
|
957
|
+
| **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
|
|
958
|
+
| **vid** | `string` | ID of the vcenter | [Defaults to `undefined`] |
|
|
959
|
+
| **cid** | `string` | ID of the cluster | [Defaults to `undefined`] |
|
|
960
|
+
|
|
961
|
+
### Return type
|
|
962
|
+
|
|
963
|
+
[**InventoryData**](InventoryData.md)
|
|
964
|
+
|
|
965
|
+
### Authorization
|
|
966
|
+
|
|
967
|
+
No authorization required
|
|
968
|
+
|
|
969
|
+
### HTTP request headers
|
|
970
|
+
|
|
971
|
+
- **Content-Type**: Not defined
|
|
972
|
+
- **Accept**: `application/json`
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
### HTTP response details
|
|
976
|
+
| Status code | Description | Response headers |
|
|
977
|
+
|-------------|-------------|------------------|
|
|
978
|
+
| **200** | OK | - |
|
|
979
|
+
| **401** | Unauthorized | - |
|
|
980
|
+
| **403** | Forbidden | - |
|
|
981
|
+
| **404** | NotFound | - |
|
|
982
|
+
| **500** | Internal error | - |
|
|
983
|
+
|
|
984
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
985
|
+
|
|
986
|
+
|
|
685
987
|
## listAssessments
|
|
686
988
|
|
|
687
989
|
> Array<Assessment> listAssessments()
|
|
@@ -743,6 +1045,76 @@ No authorization required
|
|
|
743
1045
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
744
1046
|
|
|
745
1047
|
|
|
1048
|
+
## listAssessmentsV2
|
|
1049
|
+
|
|
1050
|
+
> Array<AssessmentV2Summary> listAssessmentsV2(sourceType)
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
List assessments
|
|
1055
|
+
|
|
1056
|
+
### Example
|
|
1057
|
+
|
|
1058
|
+
```ts
|
|
1059
|
+
import {
|
|
1060
|
+
Configuration,
|
|
1061
|
+
AssessmentApi,
|
|
1062
|
+
} from '@openshift-migration-advisor/planner-sdk';
|
|
1063
|
+
import type { ListAssessmentsV2Request } from '@openshift-migration-advisor/planner-sdk';
|
|
1064
|
+
|
|
1065
|
+
async function example() {
|
|
1066
|
+
console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
|
|
1067
|
+
const api = new AssessmentApi();
|
|
1068
|
+
|
|
1069
|
+
const body = {
|
|
1070
|
+
// SourceType | Filter assessments by their source type (optional)
|
|
1071
|
+
sourceType: ...,
|
|
1072
|
+
} satisfies ListAssessmentsV2Request;
|
|
1073
|
+
|
|
1074
|
+
try {
|
|
1075
|
+
const data = await api.listAssessmentsV2(body);
|
|
1076
|
+
console.log(data);
|
|
1077
|
+
} catch (error) {
|
|
1078
|
+
console.error(error);
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
// Run the test
|
|
1083
|
+
example().catch(console.error);
|
|
1084
|
+
```
|
|
1085
|
+
|
|
1086
|
+
### Parameters
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
| Name | Type | Description | Notes |
|
|
1090
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1091
|
+
| **sourceType** | `SourceType` | Filter assessments by their source type | [Optional] [Defaults to `undefined`] [Enum: inventory, rvtools, source] |
|
|
1092
|
+
|
|
1093
|
+
### Return type
|
|
1094
|
+
|
|
1095
|
+
[**Array<AssessmentV2Summary>**](AssessmentV2Summary.md)
|
|
1096
|
+
|
|
1097
|
+
### Authorization
|
|
1098
|
+
|
|
1099
|
+
No authorization required
|
|
1100
|
+
|
|
1101
|
+
### HTTP request headers
|
|
1102
|
+
|
|
1103
|
+
- **Content-Type**: Not defined
|
|
1104
|
+
- **Accept**: `application/json`
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
### HTTP response details
|
|
1108
|
+
| Status code | Description | Response headers |
|
|
1109
|
+
|-------------|-------------|------------------|
|
|
1110
|
+
| **200** | OK | - |
|
|
1111
|
+
| **400** | Bad Request | - |
|
|
1112
|
+
| **401** | Unauthorized | - |
|
|
1113
|
+
| **500** | Internal error | - |
|
|
1114
|
+
|
|
1115
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1116
|
+
|
|
1117
|
+
|
|
746
1118
|
## saveAssessmentEnhancementData
|
|
747
1119
|
|
|
748
1120
|
> EnhancementData saveAssessmentEnhancementData(id, enhancementData)
|
|
@@ -1036,3 +1408,78 @@ No authorization required
|
|
|
1036
1408
|
|
|
1037
1409
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1038
1410
|
|
|
1411
|
+
|
|
1412
|
+
## updateAssessmentV2
|
|
1413
|
+
|
|
1414
|
+
> AssessmentV2 updateAssessmentV2(id, assessmentUpdate)
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
Update the assessment name
|
|
1419
|
+
|
|
1420
|
+
### Example
|
|
1421
|
+
|
|
1422
|
+
```ts
|
|
1423
|
+
import {
|
|
1424
|
+
Configuration,
|
|
1425
|
+
AssessmentApi,
|
|
1426
|
+
} from '@openshift-migration-advisor/planner-sdk';
|
|
1427
|
+
import type { UpdateAssessmentV2Request } from '@openshift-migration-advisor/planner-sdk';
|
|
1428
|
+
|
|
1429
|
+
async function example() {
|
|
1430
|
+
console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
|
|
1431
|
+
const api = new AssessmentApi();
|
|
1432
|
+
|
|
1433
|
+
const body = {
|
|
1434
|
+
// string | ID of the assessment
|
|
1435
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
1436
|
+
// AssessmentUpdate
|
|
1437
|
+
assessmentUpdate: ...,
|
|
1438
|
+
} satisfies UpdateAssessmentV2Request;
|
|
1439
|
+
|
|
1440
|
+
try {
|
|
1441
|
+
const data = await api.updateAssessmentV2(body);
|
|
1442
|
+
console.log(data);
|
|
1443
|
+
} catch (error) {
|
|
1444
|
+
console.error(error);
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
// Run the test
|
|
1449
|
+
example().catch(console.error);
|
|
1450
|
+
```
|
|
1451
|
+
|
|
1452
|
+
### Parameters
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
| Name | Type | Description | Notes |
|
|
1456
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1457
|
+
| **id** | `string` | ID of the assessment | [Defaults to `undefined`] |
|
|
1458
|
+
| **assessmentUpdate** | [AssessmentUpdate](AssessmentUpdate.md) | | |
|
|
1459
|
+
|
|
1460
|
+
### Return type
|
|
1461
|
+
|
|
1462
|
+
[**AssessmentV2**](AssessmentV2.md)
|
|
1463
|
+
|
|
1464
|
+
### Authorization
|
|
1465
|
+
|
|
1466
|
+
No authorization required
|
|
1467
|
+
|
|
1468
|
+
### HTTP request headers
|
|
1469
|
+
|
|
1470
|
+
- **Content-Type**: `application/json`
|
|
1471
|
+
- **Accept**: `application/json`
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
### HTTP response details
|
|
1475
|
+
| Status code | Description | Response headers |
|
|
1476
|
+
|-------------|-------------|------------------|
|
|
1477
|
+
| **200** | OK | - |
|
|
1478
|
+
| **400** | Bad Request | - |
|
|
1479
|
+
| **401** | Unauthorized | - |
|
|
1480
|
+
| **403** | Forbidden | - |
|
|
1481
|
+
| **404** | NotFound | - |
|
|
1482
|
+
| **500** | Internal Server Error | - |
|
|
1483
|
+
|
|
1484
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1485
|
+
|