@openshift-migration-advisor/planner-sdk 0.31.0 → 0.32.0-647363bdd997
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 +8 -0
- package/README.md +8 -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/Datastore.d.ts +9 -0
- package/dist/esm/models/Datastore.js +5 -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/StorageArray.d.ts +42 -0
- package/dist/esm/models/StorageArray.js +47 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/runtime.js +4 -3
- package/dist/models/Datastore.d.ts +9 -0
- package/dist/models/Datastore.js +5 -0
- package/dist/models/Host.d.ts +26 -0
- package/dist/models/Host.js +14 -0
- package/dist/models/HostStorageAdapter.d.ts +58 -0
- package/dist/models/HostStorageAdapter.js +62 -0
- package/dist/models/HostStorageLun.d.ts +50 -0
- package/dist/models/HostStorageLun.js +58 -0
- package/dist/models/Info.d.ts +4 -0
- package/dist/models/Info.js +2 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/SourceType.d.ts +26 -0
- package/dist/models/SourceType.js +52 -0
- package/dist/models/StorageArray.d.ts +42 -0
- package/dist/models/StorageArray.js +54 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/runtime.js +4 -3
- package/docs/AssessmentApi.md +163 -3
- package/docs/Datastore.md +4 -0
- package/docs/Host.md +12 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/ImageApi.md +5 -2
- package/docs/Info.md +2 -0
- package/docs/OsInfo.md +2 -0
- package/docs/SourceType.md +32 -0
- package/docs/StorageArray.md +41 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +203 -8
- package/src/apis/ImageApi.ts +19 -0
- package/src/models/Datastore.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/StorageArray.ts +81 -0
- package/src/models/index.ts +4 -0
- package/src/runtime.ts +3 -3
package/src/models/Info.ts
CHANGED
|
@@ -35,6 +35,10 @@ export interface Info {
|
|
|
35
35
|
* Agent version name, based on git tag
|
|
36
36
|
*/
|
|
37
37
|
agentVersionName?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* The oldest appliance version the served image supports in-place updates from; empty when no minimum is set
|
|
40
|
+
*/
|
|
41
|
+
minApplianceVersion?: string | null;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
/**
|
|
@@ -60,6 +64,7 @@ export function InfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Info
|
|
|
60
64
|
'versionName': json['versionName'],
|
|
61
65
|
'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
|
|
62
66
|
'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
|
|
67
|
+
'minApplianceVersion': json['minApplianceVersion'] === undefined ? undefined : json['minApplianceVersion'] === null ? null : json['minApplianceVersion'],
|
|
63
68
|
};
|
|
64
69
|
}
|
|
65
70
|
|
|
@@ -78,6 +83,7 @@ export function InfoToJSONTyped(value?: Info | null, ignoreDiscriminator: boolea
|
|
|
78
83
|
'versionName': value['versionName'],
|
|
79
84
|
'agentGitCommit': value['agentGitCommit'],
|
|
80
85
|
'agentVersionName': value['agentVersionName'],
|
|
86
|
+
'minApplianceVersion': value['minApplianceVersion'],
|
|
81
87
|
};
|
|
82
88
|
}
|
|
83
89
|
|
package/src/models/OsInfo.ts
CHANGED
|
@@ -31,6 +31,10 @@ export interface OsInfo {
|
|
|
31
31
|
* OS support tier per Red Hat KCS article 4234591
|
|
32
32
|
*/
|
|
33
33
|
supportTier?: OsInfoSupportTierEnum;
|
|
34
|
+
/**
|
|
35
|
+
* 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.
|
|
36
|
+
*/
|
|
37
|
+
mtvStatus?: OsInfoMtvStatusEnum;
|
|
34
38
|
/**
|
|
35
39
|
* Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
|
|
36
40
|
*/
|
|
@@ -49,6 +53,15 @@ export const OsInfoSupportTierEnum = {
|
|
|
49
53
|
} as const;
|
|
50
54
|
export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
|
|
51
55
|
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export const OsInfoMtvStatusEnum = {
|
|
60
|
+
Green: 'green',
|
|
61
|
+
Blue: 'blue',
|
|
62
|
+
} as const;
|
|
63
|
+
export type OsInfoMtvStatusEnum = typeof OsInfoMtvStatusEnum[keyof typeof OsInfoMtvStatusEnum];
|
|
64
|
+
|
|
52
65
|
|
|
53
66
|
/**
|
|
54
67
|
* Check if a given object implements the OsInfo interface.
|
|
@@ -72,6 +85,7 @@ export function OsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Os
|
|
|
72
85
|
'count': json['count'],
|
|
73
86
|
'supported': json['supported'],
|
|
74
87
|
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
88
|
+
'mtvStatus': json['mtvStatus'] == null ? undefined : json['mtvStatus'],
|
|
75
89
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
76
90
|
};
|
|
77
91
|
}
|
|
@@ -90,6 +104,7 @@ export function OsInfoToJSONTyped(value?: OsInfo | null, ignoreDiscriminator: bo
|
|
|
90
104
|
'count': value['count'],
|
|
91
105
|
'supported': value['supported'],
|
|
92
106
|
'supportTier': value['supportTier'],
|
|
107
|
+
'mtvStatus': value['mtvStatus'],
|
|
93
108
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
94
109
|
};
|
|
95
110
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const SourceType = {
|
|
21
|
+
Inventory: 'inventory',
|
|
22
|
+
Rvtools: 'rvtools',
|
|
23
|
+
Source: 'source',
|
|
24
|
+
} as const;
|
|
25
|
+
export type SourceType = typeof SourceType[keyof typeof SourceType];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfSourceType(value: any): boolean {
|
|
29
|
+
for (const key in SourceType) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(SourceType, key)) {
|
|
31
|
+
if (SourceType[key as keyof typeof SourceType] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function SourceTypeFromJSON(json: any): SourceType {
|
|
40
|
+
return SourceTypeFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function SourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceType {
|
|
44
|
+
return json as SourceType;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function SourceTypeToJSON(value?: SourceType | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceType {
|
|
52
|
+
return value as SourceType;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
|
|
18
|
+
* @export
|
|
19
|
+
* @interface StorageArray
|
|
20
|
+
*/
|
|
21
|
+
export interface StorageArray {
|
|
22
|
+
/**
|
|
23
|
+
* Array UUID reported by the source, when available
|
|
24
|
+
*/
|
|
25
|
+
uuid?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* VASA vendor ID, not a SCSI inquiry vendor
|
|
32
|
+
*/
|
|
33
|
+
vendorId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* VASA model ID, not a SCSI inquiry model
|
|
36
|
+
*/
|
|
37
|
+
modelId?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the StorageArray interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfStorageArray(value: object): value is StorageArray {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function StorageArrayFromJSON(json: any): StorageArray {
|
|
48
|
+
return StorageArrayFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function StorageArrayFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageArray {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
|
58
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
59
|
+
'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
|
|
60
|
+
'modelId': json['modelId'] == null ? undefined : json['modelId'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function StorageArrayToJSON(json: any): StorageArray {
|
|
65
|
+
return StorageArrayToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function StorageArrayToJSONTyped(value?: StorageArray | null, ignoreDiscriminator: boolean = false): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'uuid': value['uuid'],
|
|
76
|
+
'name': value['name'],
|
|
77
|
+
'vendorId': value['vendorId'],
|
|
78
|
+
'modelId': value['modelId'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
package/src/models/index.ts
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,10 +84,12 @@ 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';
|
|
88
91
|
export * from './Status.js';
|
|
92
|
+
export * from './StorageArray.js';
|
|
89
93
|
export * from './StorageIoConfiguration.js';
|
|
90
94
|
export * from './SubResource.js';
|
|
91
95
|
export * from './UpdateInventory.js';
|
package/src/runtime.ts
CHANGED
|
@@ -533,7 +533,7 @@ export function parseContentDispositionFilename(headers: Headers): string | unde
|
|
|
533
533
|
function decodeExtValue(value: string | undefined): string | undefined {
|
|
534
534
|
const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
|
|
535
535
|
try {
|
|
536
|
-
return match ? decodeURIComponent(match[1]) : undefined;
|
|
536
|
+
return match?.[1] !== undefined ? decodeURIComponent(match[1]) : undefined;
|
|
537
537
|
} catch {
|
|
538
538
|
return undefined;
|
|
539
539
|
}
|
|
@@ -549,9 +549,9 @@ function parseHeaderParameters(value: string): Map<string, string> {
|
|
|
549
549
|
const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
|
|
550
550
|
let match: RegExpExecArray | null;
|
|
551
551
|
while ((match = parameter.exec(value)) !== null) {
|
|
552
|
-
const name = match[1].toLowerCase();
|
|
552
|
+
const name = (match[1] ?? '').toLowerCase();
|
|
553
553
|
if (!params.has(name)) {
|
|
554
|
-
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
|
|
554
|
+
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : (match[3] ?? '').trim());
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
return params;
|