@openshift-migration-advisor/planner-sdk 0.31.0 → 0.32.0-83e8d01d3484
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 +6 -0
- package/README.md +7 -2
- package/dist/apis/AssessmentApi.d.ts +101 -6
- package/dist/apis/AssessmentApi.js +95 -6
- package/dist/apis/ImageApi.d.ts +14 -0
- package/dist/apis/ImageApi.js +11 -1
- package/dist/esm/apis/AssessmentApi.d.ts +101 -6
- package/dist/esm/apis/AssessmentApi.js +95 -6
- 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/SourceType.d.ts +26 -0
- package/dist/esm/models/SourceType.js +44 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/runtime.js +4 -3
- 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/SourceType.d.ts +26 -0
- package/dist/models/SourceType.js +52 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.js +4 -3
- package/docs/AssessmentApi.md +163 -3
- 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/docs/SourceType.md +32 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +203 -8
- 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/SourceType.ts +54 -0
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +3 -3
|
@@ -297,6 +297,48 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
297
297
|
return yield response.value();
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* Creates request options for deleteVCenter without sending the request
|
|
302
|
+
*/
|
|
303
|
+
deleteVCenterRequestOpts(requestParameters) {
|
|
304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
305
|
+
if (requestParameters['id'] == null) {
|
|
306
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteVCenter().');
|
|
307
|
+
}
|
|
308
|
+
if (requestParameters['vid'] == null) {
|
|
309
|
+
throw new runtime.RequiredError('vid', 'Required parameter "vid" was null or undefined when calling deleteVCenter().');
|
|
310
|
+
}
|
|
311
|
+
const queryParameters = {};
|
|
312
|
+
const headerParameters = {};
|
|
313
|
+
let urlPath = `/api/v2/assessments/{id}/vcenters/{vid}`;
|
|
314
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
315
|
+
urlPath = urlPath.replace('{vid}', encodeURIComponent(String(requestParameters['vid'])));
|
|
316
|
+
return {
|
|
317
|
+
path: urlPath,
|
|
318
|
+
method: 'DELETE',
|
|
319
|
+
headers: headerParameters,
|
|
320
|
+
query: queryParameters,
|
|
321
|
+
};
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Delete the specified vcenter inventory
|
|
326
|
+
*/
|
|
327
|
+
deleteVCenterRaw(requestParameters, initOverrides) {
|
|
328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
+
const requestOptions = yield this.deleteVCenterRequestOpts(requestParameters);
|
|
330
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
331
|
+
return new runtime.VoidApiResponse(response);
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Delete the specified vcenter inventory
|
|
336
|
+
*/
|
|
337
|
+
deleteVCenter(requestParameters, initOverrides) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
+
yield this.deleteVCenterRaw(requestParameters, initOverrides);
|
|
340
|
+
});
|
|
341
|
+
}
|
|
300
342
|
/**
|
|
301
343
|
* Creates request options for getAssessment without sending the request
|
|
302
344
|
*/
|
|
@@ -587,9 +629,12 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
587
629
|
/**
|
|
588
630
|
* Creates request options for listAssessmentsV2 without sending the request
|
|
589
631
|
*/
|
|
590
|
-
listAssessmentsV2RequestOpts() {
|
|
632
|
+
listAssessmentsV2RequestOpts(requestParameters) {
|
|
591
633
|
return __awaiter(this, void 0, void 0, function* () {
|
|
592
634
|
const queryParameters = {};
|
|
635
|
+
if (requestParameters['sourceType'] != null) {
|
|
636
|
+
queryParameters['sourceType'] = requestParameters['sourceType'];
|
|
637
|
+
}
|
|
593
638
|
const headerParameters = {};
|
|
594
639
|
let urlPath = `/api/v2/assessments`;
|
|
595
640
|
return {
|
|
@@ -603,9 +648,9 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
603
648
|
/**
|
|
604
649
|
* List assessments
|
|
605
650
|
*/
|
|
606
|
-
listAssessmentsV2Raw(initOverrides) {
|
|
651
|
+
listAssessmentsV2Raw(requestParameters, initOverrides) {
|
|
607
652
|
return __awaiter(this, void 0, void 0, function* () {
|
|
608
|
-
const requestOptions = yield this.listAssessmentsV2RequestOpts();
|
|
653
|
+
const requestOptions = yield this.listAssessmentsV2RequestOpts(requestParameters);
|
|
609
654
|
const response = yield this.request(requestOptions, initOverrides);
|
|
610
655
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssessmentV2SummaryFromJSON));
|
|
611
656
|
});
|
|
@@ -613,9 +658,9 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
613
658
|
/**
|
|
614
659
|
* List assessments
|
|
615
660
|
*/
|
|
616
|
-
listAssessmentsV2(
|
|
617
|
-
return __awaiter(this,
|
|
618
|
-
const response = yield this.listAssessmentsV2Raw(initOverrides);
|
|
661
|
+
listAssessmentsV2() {
|
|
662
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
663
|
+
const response = yield this.listAssessmentsV2Raw(requestParameters, initOverrides);
|
|
619
664
|
return yield response.value();
|
|
620
665
|
});
|
|
621
666
|
}
|
|
@@ -785,4 +830,48 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
785
830
|
return yield response.value();
|
|
786
831
|
});
|
|
787
832
|
}
|
|
833
|
+
/**
|
|
834
|
+
* Creates request options for updateAssessmentV2 without sending the request
|
|
835
|
+
*/
|
|
836
|
+
updateAssessmentV2RequestOpts(requestParameters) {
|
|
837
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
838
|
+
if (requestParameters['id'] == null) {
|
|
839
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateAssessmentV2().');
|
|
840
|
+
}
|
|
841
|
+
if (requestParameters['assessmentUpdate'] == null) {
|
|
842
|
+
throw new runtime.RequiredError('assessmentUpdate', 'Required parameter "assessmentUpdate" was null or undefined when calling updateAssessmentV2().');
|
|
843
|
+
}
|
|
844
|
+
const queryParameters = {};
|
|
845
|
+
const headerParameters = {};
|
|
846
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
847
|
+
let urlPath = `/api/v2/assessments/{id}`;
|
|
848
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
849
|
+
return {
|
|
850
|
+
path: urlPath,
|
|
851
|
+
method: 'PATCH',
|
|
852
|
+
headers: headerParameters,
|
|
853
|
+
query: queryParameters,
|
|
854
|
+
body: AssessmentUpdateToJSON(requestParameters['assessmentUpdate']),
|
|
855
|
+
};
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
* Update the assessment name
|
|
860
|
+
*/
|
|
861
|
+
updateAssessmentV2Raw(requestParameters, initOverrides) {
|
|
862
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
863
|
+
const requestOptions = yield this.updateAssessmentV2RequestOpts(requestParameters);
|
|
864
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
865
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AssessmentV2FromJSON(jsonValue));
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* Update the assessment name
|
|
870
|
+
*/
|
|
871
|
+
updateAssessmentV2(requestParameters, initOverrides) {
|
|
872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
873
|
+
const response = yield this.updateAssessmentV2Raw(requestParameters, initOverrides);
|
|
874
|
+
return yield response.value();
|
|
875
|
+
});
|
|
876
|
+
}
|
|
788
877
|
}
|
|
@@ -16,6 +16,10 @@ export interface GetSourceDownloadURLRequest {
|
|
|
16
16
|
* Source id
|
|
17
17
|
*/
|
|
18
18
|
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Which image to link; the OVA or the appliance image tar for a disconnected update
|
|
21
|
+
*/
|
|
22
|
+
image?: GetSourceDownloadURLImageEnum;
|
|
19
23
|
}
|
|
20
24
|
export interface HeadImageRequest {
|
|
21
25
|
/**
|
|
@@ -33,6 +37,7 @@ export interface ImageApiInterface {
|
|
|
33
37
|
/**
|
|
34
38
|
* Creates request options for getSourceDownloadURL without sending the request
|
|
35
39
|
* @param {string} id Source id
|
|
40
|
+
* @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
|
|
36
41
|
* @throws {RequiredError}
|
|
37
42
|
* @memberof ImageApiInterface
|
|
38
43
|
*/
|
|
@@ -40,6 +45,7 @@ export interface ImageApiInterface {
|
|
|
40
45
|
/**
|
|
41
46
|
* Get the OVA image via URL
|
|
42
47
|
* @param {string} id Source id
|
|
48
|
+
* @param {'ova' | 'appliance'} [image] Which image to link; the OVA or the appliance image tar for a disconnected update
|
|
43
49
|
* @param {*} [options] Override http request option.
|
|
44
50
|
* @throws {RequiredError}
|
|
45
51
|
* @memberof ImageApiInterface
|
|
@@ -98,3 +104,11 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
|
|
|
98
104
|
*/
|
|
99
105
|
headImage(requestParameters: HeadImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
100
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* @export
|
|
109
|
+
*/
|
|
110
|
+
export declare const GetSourceDownloadURLImageEnum: {
|
|
111
|
+
readonly Ova: "ova";
|
|
112
|
+
readonly Appliance: "appliance";
|
|
113
|
+
};
|
|
114
|
+
export type GetSourceDownloadURLImageEnum = typeof GetSourceDownloadURLImageEnum[keyof typeof GetSourceDownloadURLImageEnum];
|
|
@@ -35,6 +35,9 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
35
35
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getSourceDownloadURL().');
|
|
36
36
|
}
|
|
37
37
|
const queryParameters = {};
|
|
38
|
+
if (requestParameters['image'] != null) {
|
|
39
|
+
queryParameters['image'] = requestParameters['image'];
|
|
40
|
+
}
|
|
38
41
|
const headerParameters = {};
|
|
39
42
|
let urlPath = `/api/v1/sources/{id}/image-url`;
|
|
40
43
|
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
@@ -104,3 +107,10 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
104
107
|
});
|
|
105
108
|
}
|
|
106
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export const GetSourceDownloadURLImageEnum = {
|
|
114
|
+
Ova: 'ova',
|
|
115
|
+
Appliance: 'appliance',
|
|
116
|
+
};
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { HostStorageAdapter } from './HostStorageAdapter.js';
|
|
13
|
+
import type { HostStorageLun } from './HostStorageLun.js';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -27,6 +29,22 @@ export interface Host {
|
|
|
27
29
|
*
|
|
28
30
|
*/
|
|
29
31
|
model: string;
|
|
32
|
+
/**
|
|
33
|
+
* Source datacenter name, when available.
|
|
34
|
+
*/
|
|
35
|
+
datacenter?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Source cluster name; omitted for standalone hosts.
|
|
38
|
+
*/
|
|
39
|
+
cluster?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Source-reported CPU model, when available.
|
|
42
|
+
*/
|
|
43
|
+
cpuModel?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Source-reported host hardware serial or service tag, when available.
|
|
46
|
+
*/
|
|
47
|
+
serialNumber?: string;
|
|
30
48
|
/**
|
|
31
49
|
* Number of CPU cores
|
|
32
50
|
*/
|
|
@@ -47,6 +65,14 @@ export interface Host {
|
|
|
47
65
|
* Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
|
|
48
66
|
*/
|
|
49
67
|
storageVmotionSupported?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Available host storage adapters. Omitted when no records are available; this does not imply a complete empty inventory.
|
|
70
|
+
*/
|
|
71
|
+
storageAdapters?: Array<HostStorageAdapter>;
|
|
72
|
+
/**
|
|
73
|
+
* Available host-visible LUNs and adapter associations, without per-path state or VM disk placement.
|
|
74
|
+
*/
|
|
75
|
+
storageLuns?: Array<HostStorageLun>;
|
|
50
76
|
}
|
|
51
77
|
/**
|
|
52
78
|
* Check if a given object implements the Host interface.
|
package/dist/esm/models/Host.js
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { HostStorageAdapterFromJSON, HostStorageAdapterToJSON, } from './HostStorageAdapter.js';
|
|
15
|
+
import { HostStorageLunFromJSON, HostStorageLunToJSON, } from './HostStorageLun.js';
|
|
14
16
|
/**
|
|
15
17
|
* Check if a given object implements the Host interface.
|
|
16
18
|
*/
|
|
@@ -32,11 +34,17 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
34
|
'id': json['id'] == null ? undefined : json['id'],
|
|
33
35
|
'vendor': json['vendor'],
|
|
34
36
|
'model': json['model'],
|
|
37
|
+
'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
|
|
38
|
+
'cluster': json['cluster'] == null ? undefined : json['cluster'],
|
|
39
|
+
'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
|
|
40
|
+
'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
|
|
35
41
|
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
36
42
|
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
37
43
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
38
44
|
'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
|
|
39
45
|
'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
|
|
46
|
+
'storageAdapters': json['storageAdapters'] == null ? undefined : (json['storageAdapters'].map(HostStorageAdapterFromJSON)),
|
|
47
|
+
'storageLuns': json['storageLuns'] == null ? undefined : (json['storageLuns'].map(HostStorageLunFromJSON)),
|
|
40
48
|
};
|
|
41
49
|
}
|
|
42
50
|
export function HostToJSON(json) {
|
|
@@ -50,10 +58,16 @@ export function HostToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
58
|
'id': value['id'],
|
|
51
59
|
'vendor': value['vendor'],
|
|
52
60
|
'model': value['model'],
|
|
61
|
+
'datacenter': value['datacenter'],
|
|
62
|
+
'cluster': value['cluster'],
|
|
63
|
+
'cpuModel': value['cpuModel'],
|
|
64
|
+
'serialNumber': value['serialNumber'],
|
|
53
65
|
'cpuCores': value['cpuCores'],
|
|
54
66
|
'cpuSockets': value['cpuSockets'],
|
|
55
67
|
'memoryMB': value['memoryMB'],
|
|
56
68
|
'vmotionSupported': value['vmotionSupported'],
|
|
57
69
|
'storageVmotionSupported': value['storageVmotionSupported'],
|
|
70
|
+
'storageAdapters': value['storageAdapters'] == null ? undefined : (value['storageAdapters'].map(HostStorageAdapterToJSON)),
|
|
71
|
+
'storageLuns': value['storageLuns'] == null ? undefined : (value['storageLuns'].map(HostStorageLunToJSON)),
|
|
58
72
|
};
|
|
59
73
|
}
|
|
@@ -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,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the HostStorageAdapter interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHostStorageAdapter(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function HostStorageAdapterFromJSON(json) {
|
|
21
|
+
return HostStorageAdapterFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function HostStorageAdapterFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'device': json['device'] == null ? undefined : json['device'],
|
|
29
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
30
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
31
|
+
'protocol': json['protocol'] == null ? undefined : json['protocol'],
|
|
32
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
33
|
+
'driver': json['driver'] == null ? undefined : json['driver'],
|
|
34
|
+
'nodeWwn': json['nodeWwn'] == null ? undefined : json['nodeWwn'],
|
|
35
|
+
'portWwn': json['portWwn'] == null ? undefined : json['portWwn'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function HostStorageAdapterToJSON(json) {
|
|
39
|
+
return HostStorageAdapterToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function HostStorageAdapterToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'device': value['device'],
|
|
47
|
+
'key': value['key'],
|
|
48
|
+
'type': value['type'],
|
|
49
|
+
'protocol': value['protocol'],
|
|
50
|
+
'model': value['model'],
|
|
51
|
+
'driver': value['driver'],
|
|
52
|
+
'nodeWwn': value['nodeWwn'],
|
|
53
|
+
'portWwn': value['portWwn'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the HostStorageLun interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHostStorageLun(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function HostStorageLunFromJSON(json) {
|
|
21
|
+
return HostStorageLunFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function HostStorageLunFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
29
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
30
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
31
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
32
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
33
|
+
'adapterDevices': json['adapterDevices'] == null ? undefined : json['adapterDevices'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function HostStorageLunToJSON(json) {
|
|
37
|
+
return HostStorageLunToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function HostStorageLunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'canonicalName': value['canonicalName'],
|
|
45
|
+
'key': value['key'],
|
|
46
|
+
'lunUuid': value['lunUuid'],
|
|
47
|
+
'vendor': value['vendor'],
|
|
48
|
+
'model': value['model'],
|
|
49
|
+
'adapterDevices': value['adapterDevices'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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/esm/models/Info.js
CHANGED
|
@@ -33,6 +33,7 @@ export function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
'versionName': json['versionName'],
|
|
34
34
|
'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
|
|
35
35
|
'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
|
|
36
|
+
'minApplianceVersion': json['minApplianceVersion'] === undefined ? undefined : json['minApplianceVersion'] === null ? null : json['minApplianceVersion'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
export function InfoToJSON(json) {
|
|
@@ -47,5 +48,6 @@ export function InfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
48
|
'versionName': value['versionName'],
|
|
48
49
|
'agentGitCommit': value['agentGitCommit'],
|
|
49
50
|
'agentVersionName': value['agentVersionName'],
|
|
51
|
+
'minApplianceVersion': value['minApplianceVersion'],
|
|
50
52
|
};
|
|
51
53
|
}
|
|
@@ -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
|
*/
|
|
@@ -20,6 +20,13 @@ export const OsInfoSupportTierEnum = {
|
|
|
20
20
|
CommunitySupported: 'community_supported',
|
|
21
21
|
SpecialHandling: 'special_handling',
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export const OsInfoMtvStatusEnum = {
|
|
27
|
+
Green: 'green',
|
|
28
|
+
Blue: 'blue',
|
|
29
|
+
};
|
|
23
30
|
/**
|
|
24
31
|
* Check if a given object implements the OsInfo interface.
|
|
25
32
|
*/
|
|
@@ -41,6 +48,7 @@ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
48
|
'count': json['count'],
|
|
42
49
|
'supported': json['supported'],
|
|
43
50
|
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
51
|
+
'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
|
|
44
52
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
45
53
|
};
|
|
46
54
|
}
|
|
@@ -55,6 +63,7 @@ export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
63
|
'count': value['count'],
|
|
56
64
|
'supported': value['supported'],
|
|
57
65
|
'supportTier': value['supportTier'],
|
|
66
|
+
'mtvStatus': value['mtvStatus'],
|
|
58
67
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
59
68
|
};
|
|
60
69
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SourceType: {
|
|
17
|
+
readonly Inventory: "inventory";
|
|
18
|
+
readonly Rvtools: "rvtools";
|
|
19
|
+
readonly Source: "source";
|
|
20
|
+
};
|
|
21
|
+
export type SourceType = typeof SourceType[keyof typeof SourceType];
|
|
22
|
+
export declare function instanceOfSourceType(value: any): boolean;
|
|
23
|
+
export declare function SourceTypeFromJSON(json: any): SourceType;
|
|
24
|
+
export declare function SourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceType;
|
|
25
|
+
export declare function SourceTypeToJSON(value?: SourceType | null): any;
|
|
26
|
+
export declare function SourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceType;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SourceType = {
|
|
19
|
+
Inventory: 'inventory',
|
|
20
|
+
Rvtools: 'rvtools',
|
|
21
|
+
Source: 'source',
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfSourceType(value) {
|
|
24
|
+
for (const key in SourceType) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(SourceType, key)) {
|
|
26
|
+
if (SourceType[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function SourceTypeFromJSON(json) {
|
|
34
|
+
return SourceTypeFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function SourceTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function SourceTypeToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function SourceTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|