@openshift-migration-advisor/planner-sdk 0.8.0 → 0.9.0
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 +2 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +4 -4
- package/dist/apis/AssessmentApi.d.ts +13 -5
- package/dist/apis/AssessmentApi.js +1 -1
- package/dist/esm/apis/AssessmentApi.d.ts +13 -5
- package/dist/esm/apis/AssessmentApi.js +2 -2
- package/dist/esm/models/ClusterRequirementsRequest.d.ts +9 -3
- package/dist/esm/models/ClusterRequirementsRequest.js +2 -0
- package/dist/esm/models/EstimationDetail.d.ts +14 -2
- package/dist/esm/models/EstimationDetail.js +5 -3
- package/dist/esm/models/MigrationEstimationRequest.d.ts +16 -0
- package/dist/esm/models/MigrationEstimationRequest.js +4 -0
- package/dist/esm/models/SchemaEstimationResult.d.ts +47 -0
- package/dist/esm/models/{MigrationEstimationResponse.js → SchemaEstimationResult.js} +15 -11
- package/dist/esm/models/VMs.d.ts +9 -0
- package/dist/esm/models/VMs.js +2 -0
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/ClusterRequirementsRequest.d.ts +9 -3
- package/dist/models/ClusterRequirementsRequest.js +2 -0
- package/dist/models/EstimationDetail.d.ts +14 -2
- package/dist/models/EstimationDetail.js +5 -3
- package/dist/models/MigrationEstimationRequest.d.ts +16 -0
- package/dist/models/MigrationEstimationRequest.js +4 -0
- package/dist/models/SchemaEstimationResult.d.ts +47 -0
- package/dist/models/SchemaEstimationResult.js +60 -0
- package/dist/models/VMs.d.ts +9 -0
- package/dist/models/VMs.js +2 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/dist/runtime.js +1 -1
- package/docs/AssessmentApi.md +3 -3
- package/docs/ClusterRequirementsRequest.md +2 -0
- package/docs/EstimationDetail.md +5 -1
- package/docs/MigrationEstimationRequest.md +4 -0
- package/docs/{MigrationEstimationResponse.md → SchemaEstimationResult.md} +9 -7
- package/docs/VMs.md +2 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +8 -8
- package/src/models/ClusterRequirementsRequest.ts +11 -3
- package/src/models/EstimationDetail.ts +19 -4
- package/src/models/MigrationEstimationRequest.ts +18 -0
- package/src/models/SchemaEstimationResult.ts +92 -0
- package/src/models/VMs.ts +9 -0
- package/src/models/index.ts +1 -1
- package/src/runtime.ts +1 -1
- package/dist/esm/models/MigrationEstimationResponse.d.ts +0 -41
- package/dist/models/MigrationEstimationResponse.d.ts +0 -41
- package/dist/models/MigrationEstimationResponse.js +0 -56
- package/src/models/MigrationEstimationResponse.ts +0 -83
package/src/models/VMs.ts
CHANGED
|
@@ -119,8 +119,15 @@ export interface VMs {
|
|
|
119
119
|
* Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
|
|
120
120
|
* @type {{ [key: string]: number; }}
|
|
121
121
|
* @memberof VMs
|
|
122
|
+
* @deprecated
|
|
122
123
|
*/
|
|
123
124
|
distributionByComplexity?: { [key: string]: number; };
|
|
125
|
+
/**
|
|
126
|
+
* Distribution of VMs by migration complexity level, enriched with total disk size per level. Supersedes distributionByComplexity.
|
|
127
|
+
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
128
|
+
* @memberof VMs
|
|
129
|
+
*/
|
|
130
|
+
complexityDistribution?: { [key: string]: DiskSizeTierSummary; };
|
|
124
131
|
/**
|
|
125
132
|
*
|
|
126
133
|
* @type {VMResourceBreakdown}
|
|
@@ -215,6 +222,7 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
|
|
|
215
222
|
'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
|
|
216
223
|
'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
|
|
217
224
|
'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
|
|
225
|
+
'complexityDistribution': json['complexityDistribution'] == null ? undefined : (mapValues(json['complexityDistribution'], DiskSizeTierSummaryFromJSON)),
|
|
218
226
|
'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
|
|
219
227
|
'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
|
|
220
228
|
'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
|
|
@@ -249,6 +257,7 @@ export function VMsToJSONTyped(value?: VMs | null, ignoreDiscriminator: boolean
|
|
|
249
257
|
'distributionByMemoryTier': value['distributionByMemoryTier'],
|
|
250
258
|
'distributionByNicCount': value['distributionByNicCount'],
|
|
251
259
|
'distributionByComplexity': value['distributionByComplexity'],
|
|
260
|
+
'complexityDistribution': value['complexityDistribution'] == null ? undefined : (mapValues(value['complexityDistribution'], DiskSizeTierSummaryToJSON)),
|
|
252
261
|
'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
|
|
253
262
|
'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
|
|
254
263
|
'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
|
package/src/models/index.ts
CHANGED
|
@@ -29,12 +29,12 @@ export * from './Label.js';
|
|
|
29
29
|
export * from './MigrationComplexityRequest.js';
|
|
30
30
|
export * from './MigrationComplexityResponse.js';
|
|
31
31
|
export * from './MigrationEstimationRequest.js';
|
|
32
|
-
export * from './MigrationEstimationResponse.js';
|
|
33
32
|
export * from './MigrationIssue.js';
|
|
34
33
|
export * from './ModelError.js';
|
|
35
34
|
export * from './Network.js';
|
|
36
35
|
export * from './OsInfo.js';
|
|
37
36
|
export * from './PresignedUrl.js';
|
|
37
|
+
export * from './SchemaEstimationResult.js';
|
|
38
38
|
export * from './SizingOverCommitRatio.js';
|
|
39
39
|
export * from './SizingResourceConsumption.js';
|
|
40
40
|
export * from './SizingResourceLimits.js';
|
package/src/runtime.ts
CHANGED
|
@@ -91,7 +91,7 @@ export const DefaultConfig = new Configuration();
|
|
|
91
91
|
*/
|
|
92
92
|
export class BaseAPI {
|
|
93
93
|
|
|
94
|
-
private static readonly jsonRegex =
|
|
94
|
+
private static readonly jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
95
95
|
private middleware: Middleware[];
|
|
96
96
|
|
|
97
97
|
constructor(protected configuration = DefaultConfig) {
|
|
@@ -1,41 +0,0 @@
|
|
|
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: undefined
|
|
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
|
-
import type { EstimationDetail } from './EstimationDetail.js';
|
|
13
|
-
/**
|
|
14
|
-
* Migration time estimation results
|
|
15
|
-
* @export
|
|
16
|
-
* @interface MigrationEstimationResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface MigrationEstimationResponse {
|
|
19
|
-
/**
|
|
20
|
-
* Total estimated migration duration (formatted as duration string, e.g., "2h30m")
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof MigrationEstimationResponse
|
|
23
|
-
*/
|
|
24
|
-
totalDuration: string;
|
|
25
|
-
/**
|
|
26
|
-
* Breakdown of estimation by calculator
|
|
27
|
-
* @type {{ [key: string]: EstimationDetail; }}
|
|
28
|
-
* @memberof MigrationEstimationResponse
|
|
29
|
-
*/
|
|
30
|
-
breakdown: {
|
|
31
|
-
[key: string]: EstimationDetail;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Check if a given object implements the MigrationEstimationResponse interface.
|
|
36
|
-
*/
|
|
37
|
-
export declare function instanceOfMigrationEstimationResponse(value: object): value is MigrationEstimationResponse;
|
|
38
|
-
export declare function MigrationEstimationResponseFromJSON(json: any): MigrationEstimationResponse;
|
|
39
|
-
export declare function MigrationEstimationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationResponse;
|
|
40
|
-
export declare function MigrationEstimationResponseToJSON(json: any): MigrationEstimationResponse;
|
|
41
|
-
export declare function MigrationEstimationResponseToJSONTyped(value?: MigrationEstimationResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,41 +0,0 @@
|
|
|
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: undefined
|
|
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
|
-
import type { EstimationDetail } from './EstimationDetail.js';
|
|
13
|
-
/**
|
|
14
|
-
* Migration time estimation results
|
|
15
|
-
* @export
|
|
16
|
-
* @interface MigrationEstimationResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface MigrationEstimationResponse {
|
|
19
|
-
/**
|
|
20
|
-
* Total estimated migration duration (formatted as duration string, e.g., "2h30m")
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof MigrationEstimationResponse
|
|
23
|
-
*/
|
|
24
|
-
totalDuration: string;
|
|
25
|
-
/**
|
|
26
|
-
* Breakdown of estimation by calculator
|
|
27
|
-
* @type {{ [key: string]: EstimationDetail; }}
|
|
28
|
-
* @memberof MigrationEstimationResponse
|
|
29
|
-
*/
|
|
30
|
-
breakdown: {
|
|
31
|
-
[key: string]: EstimationDetail;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Check if a given object implements the MigrationEstimationResponse interface.
|
|
36
|
-
*/
|
|
37
|
-
export declare function instanceOfMigrationEstimationResponse(value: object): value is MigrationEstimationResponse;
|
|
38
|
-
export declare function MigrationEstimationResponseFromJSON(json: any): MigrationEstimationResponse;
|
|
39
|
-
export declare function MigrationEstimationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationResponse;
|
|
40
|
-
export declare function MigrationEstimationResponseToJSON(json: any): MigrationEstimationResponse;
|
|
41
|
-
export declare function MigrationEstimationResponseToJSONTyped(value?: MigrationEstimationResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,56 +0,0 @@
|
|
|
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: undefined
|
|
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.instanceOfMigrationEstimationResponse = instanceOfMigrationEstimationResponse;
|
|
17
|
-
exports.MigrationEstimationResponseFromJSON = MigrationEstimationResponseFromJSON;
|
|
18
|
-
exports.MigrationEstimationResponseFromJSONTyped = MigrationEstimationResponseFromJSONTyped;
|
|
19
|
-
exports.MigrationEstimationResponseToJSON = MigrationEstimationResponseToJSON;
|
|
20
|
-
exports.MigrationEstimationResponseToJSONTyped = MigrationEstimationResponseToJSONTyped;
|
|
21
|
-
const runtime_js_1 = require("../runtime.js");
|
|
22
|
-
const EstimationDetail_js_1 = require("./EstimationDetail.js");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the MigrationEstimationResponse interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfMigrationEstimationResponse(value) {
|
|
27
|
-
if (!('totalDuration' in value) || value['totalDuration'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('breakdown' in value) || value['breakdown'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function MigrationEstimationResponseFromJSON(json) {
|
|
34
|
-
return MigrationEstimationResponseFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function MigrationEstimationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'totalDuration': json['totalDuration'],
|
|
42
|
-
'breakdown': ((0, runtime_js_1.mapValues)(json['breakdown'], EstimationDetail_js_1.EstimationDetailFromJSON)),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function MigrationEstimationResponseToJSON(json) {
|
|
46
|
-
return MigrationEstimationResponseToJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
function MigrationEstimationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
-
if (value == null) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'totalDuration': value['totalDuration'],
|
|
54
|
-
'breakdown': ((0, runtime_js_1.mapValues)(value['breakdown'], EstimationDetail_js_1.EstimationDetailToJSON)),
|
|
55
|
-
};
|
|
56
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
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: undefined
|
|
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
|
-
import type { EstimationDetail } from './EstimationDetail.js';
|
|
17
|
-
import {
|
|
18
|
-
EstimationDetailFromJSON,
|
|
19
|
-
EstimationDetailFromJSONTyped,
|
|
20
|
-
EstimationDetailToJSON,
|
|
21
|
-
EstimationDetailToJSONTyped,
|
|
22
|
-
} from './EstimationDetail.js';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Migration time estimation results
|
|
26
|
-
* @export
|
|
27
|
-
* @interface MigrationEstimationResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface MigrationEstimationResponse {
|
|
30
|
-
/**
|
|
31
|
-
* Total estimated migration duration (formatted as duration string, e.g., "2h30m")
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof MigrationEstimationResponse
|
|
34
|
-
*/
|
|
35
|
-
totalDuration: string;
|
|
36
|
-
/**
|
|
37
|
-
* Breakdown of estimation by calculator
|
|
38
|
-
* @type {{ [key: string]: EstimationDetail; }}
|
|
39
|
-
* @memberof MigrationEstimationResponse
|
|
40
|
-
*/
|
|
41
|
-
breakdown: { [key: string]: EstimationDetail; };
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Check if a given object implements the MigrationEstimationResponse interface.
|
|
46
|
-
*/
|
|
47
|
-
export function instanceOfMigrationEstimationResponse(value: object): value is MigrationEstimationResponse {
|
|
48
|
-
if (!('totalDuration' in value) || value['totalDuration'] === undefined) return false;
|
|
49
|
-
if (!('breakdown' in value) || value['breakdown'] === undefined) return false;
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function MigrationEstimationResponseFromJSON(json: any): MigrationEstimationResponse {
|
|
54
|
-
return MigrationEstimationResponseFromJSONTyped(json, false);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function MigrationEstimationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationResponse {
|
|
58
|
-
if (json == null) {
|
|
59
|
-
return json;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'totalDuration': json['totalDuration'],
|
|
64
|
-
'breakdown': (mapValues(json['breakdown'], EstimationDetailFromJSON)),
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function MigrationEstimationResponseToJSON(json: any): MigrationEstimationResponse {
|
|
69
|
-
return MigrationEstimationResponseToJSONTyped(json, false);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function MigrationEstimationResponseToJSONTyped(value?: MigrationEstimationResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'totalDuration': value['totalDuration'],
|
|
80
|
-
'breakdown': (mapValues(value['breakdown'], EstimationDetailToJSON)),
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|