@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
|
@@ -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';
|
|
@@ -80,6 +82,7 @@ export * from './Snapshot.js';
|
|
|
80
82
|
export * from './Source.js';
|
|
81
83
|
export * from './SourceCreate.js';
|
|
82
84
|
export * from './SourceInfra.js';
|
|
85
|
+
export * from './SourceType.js';
|
|
83
86
|
export * from './SourceUpdate.js';
|
|
84
87
|
export * from './StandaloneClusterRequirementsRequest.js';
|
|
85
88
|
export * from './StandaloneClusterRequirementsResponse.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -38,6 +38,8 @@ export * from './GroupCreate.js';
|
|
|
38
38
|
export * from './GroupUpdate.js';
|
|
39
39
|
export * from './Histogram.js';
|
|
40
40
|
export * from './Host.js';
|
|
41
|
+
export * from './HostStorageAdapter.js';
|
|
42
|
+
export * from './HostStorageLun.js';
|
|
41
43
|
export * from './Identity.js';
|
|
42
44
|
export * from './Info.js';
|
|
43
45
|
export * from './Infra.js';
|
|
@@ -82,6 +84,7 @@ export * from './Snapshot.js';
|
|
|
82
84
|
export * from './Source.js';
|
|
83
85
|
export * from './SourceCreate.js';
|
|
84
86
|
export * from './SourceInfra.js';
|
|
87
|
+
export * from './SourceType.js';
|
|
85
88
|
export * from './SourceUpdate.js';
|
|
86
89
|
export * from './StandaloneClusterRequirementsRequest.js';
|
|
87
90
|
export * from './StandaloneClusterRequirementsResponse.js';
|
package/dist/esm/runtime.js
CHANGED
|
@@ -419,7 +419,7 @@ export function parseContentDispositionFilename(headers) {
|
|
|
419
419
|
function decodeExtValue(value) {
|
|
420
420
|
const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
|
|
421
421
|
try {
|
|
422
|
-
return match ? decodeURIComponent(match[1]) : undefined;
|
|
422
|
+
return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
|
|
423
423
|
}
|
|
424
424
|
catch (_a) {
|
|
425
425
|
return undefined;
|
|
@@ -431,13 +431,14 @@ function decodeExtValue(value) {
|
|
|
431
431
|
* backslash escapes resolved, and the first occurrence of a name wins.
|
|
432
432
|
*/
|
|
433
433
|
function parseHeaderParameters(value) {
|
|
434
|
+
var _a, _b;
|
|
434
435
|
const params = new Map();
|
|
435
436
|
const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
|
|
436
437
|
let match;
|
|
437
438
|
while ((match = parameter.exec(value)) !== null) {
|
|
438
|
-
const name = match[1].toLowerCase();
|
|
439
|
+
const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
|
|
439
440
|
if (!params.has(name)) {
|
|
440
|
-
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
|
|
441
|
+
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
|
|
441
442
|
}
|
|
442
443
|
}
|
|
443
444
|
return params;
|
package/dist/models/Host.d.ts
CHANGED
|
@@ -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/models/Host.js
CHANGED
|
@@ -18,6 +18,8 @@ exports.HostFromJSON = HostFromJSON;
|
|
|
18
18
|
exports.HostFromJSONTyped = HostFromJSONTyped;
|
|
19
19
|
exports.HostToJSON = HostToJSON;
|
|
20
20
|
exports.HostToJSONTyped = HostToJSONTyped;
|
|
21
|
+
const HostStorageAdapter_js_1 = require("./HostStorageAdapter.js");
|
|
22
|
+
const HostStorageLun_js_1 = require("./HostStorageLun.js");
|
|
21
23
|
/**
|
|
22
24
|
* Check if a given object implements the Host interface.
|
|
23
25
|
*/
|
|
@@ -39,11 +41,17 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
41
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
42
|
'vendor': json['vendor'],
|
|
41
43
|
'model': json['model'],
|
|
44
|
+
'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
|
|
45
|
+
'cluster': json['cluster'] == null ? undefined : json['cluster'],
|
|
46
|
+
'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
|
|
47
|
+
'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
|
|
42
48
|
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
43
49
|
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
44
50
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
45
51
|
'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
|
|
46
52
|
'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
|
|
53
|
+
'storageAdapters': json['storageAdapters'] == null ? undefined : (json['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterFromJSON)),
|
|
54
|
+
'storageLuns': json['storageLuns'] == null ? undefined : (json['storageLuns'].map(HostStorageLun_js_1.HostStorageLunFromJSON)),
|
|
47
55
|
};
|
|
48
56
|
}
|
|
49
57
|
function HostToJSON(json) {
|
|
@@ -57,10 +65,16 @@ function HostToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
65
|
'id': value['id'],
|
|
58
66
|
'vendor': value['vendor'],
|
|
59
67
|
'model': value['model'],
|
|
68
|
+
'datacenter': value['datacenter'],
|
|
69
|
+
'cluster': value['cluster'],
|
|
70
|
+
'cpuModel': value['cpuModel'],
|
|
71
|
+
'serialNumber': value['serialNumber'],
|
|
60
72
|
'cpuCores': value['cpuCores'],
|
|
61
73
|
'cpuSockets': value['cpuSockets'],
|
|
62
74
|
'memoryMB': value['memoryMB'],
|
|
63
75
|
'vmotionSupported': value['vmotionSupported'],
|
|
64
76
|
'storageVmotionSupported': value['storageVmotionSupported'],
|
|
77
|
+
'storageAdapters': value['storageAdapters'] == null ? undefined : (value['storageAdapters'].map(HostStorageAdapter_js_1.HostStorageAdapterToJSON)),
|
|
78
|
+
'storageLuns': value['storageLuns'] == null ? undefined : (value['storageLuns'].map(HostStorageLun_js_1.HostStorageLunToJSON)),
|
|
65
79
|
};
|
|
66
80
|
}
|
|
@@ -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
|
+
}
|
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
|
}
|
|
@@ -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,52 @@
|
|
|
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.SourceType = void 0;
|
|
17
|
+
exports.instanceOfSourceType = instanceOfSourceType;
|
|
18
|
+
exports.SourceTypeFromJSON = SourceTypeFromJSON;
|
|
19
|
+
exports.SourceTypeFromJSONTyped = SourceTypeFromJSONTyped;
|
|
20
|
+
exports.SourceTypeToJSON = SourceTypeToJSON;
|
|
21
|
+
exports.SourceTypeToJSONTyped = SourceTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.SourceType = {
|
|
27
|
+
Inventory: 'inventory',
|
|
28
|
+
Rvtools: 'rvtools',
|
|
29
|
+
Source: 'source',
|
|
30
|
+
};
|
|
31
|
+
function instanceOfSourceType(value) {
|
|
32
|
+
for (const key in exports.SourceType) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.SourceType, key)) {
|
|
34
|
+
if (exports.SourceType[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function SourceTypeFromJSON(json) {
|
|
42
|
+
return SourceTypeFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SourceTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function SourceTypeToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function SourceTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
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';
|
|
@@ -80,6 +82,7 @@ export * from './Snapshot.js';
|
|
|
80
82
|
export * from './Source.js';
|
|
81
83
|
export * from './SourceCreate.js';
|
|
82
84
|
export * from './SourceInfra.js';
|
|
85
|
+
export * from './SourceType.js';
|
|
83
86
|
export * from './SourceUpdate.js';
|
|
84
87
|
export * from './StandaloneClusterRequirementsRequest.js';
|
|
85
88
|
export * from './StandaloneClusterRequirementsResponse.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);
|
|
@@ -98,6 +100,7 @@ __exportStar(require("./Snapshot.js"), exports);
|
|
|
98
100
|
__exportStar(require("./Source.js"), exports);
|
|
99
101
|
__exportStar(require("./SourceCreate.js"), exports);
|
|
100
102
|
__exportStar(require("./SourceInfra.js"), exports);
|
|
103
|
+
__exportStar(require("./SourceType.js"), exports);
|
|
101
104
|
__exportStar(require("./SourceUpdate.js"), exports);
|
|
102
105
|
__exportStar(require("./StandaloneClusterRequirementsRequest.js"), exports);
|
|
103
106
|
__exportStar(require("./StandaloneClusterRequirementsResponse.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;
|