@openshift-migration-advisor/planner-sdk 0.8.0 → 0.9.0-a26ff9932eeb
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 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +8 -4
- package/dist/apis/AssessmentApi.d.ts +50 -5
- package/dist/apis/AssessmentApi.js +45 -1
- package/dist/esm/apis/AssessmentApi.d.ts +50 -5
- package/dist/esm/apis/AssessmentApi.js +46 -2
- package/dist/esm/models/ClusterRequirementsRequest.d.ts +9 -3
- package/dist/esm/models/ClusterRequirementsRequest.js +2 -0
- package/dist/esm/models/ComplexityOSNameEntry.d.ts +1 -1
- package/dist/esm/models/ComplexityOSScoreEntry.d.ts +1 -1
- package/dist/esm/models/EstimationContext.d.ts +40 -0
- package/dist/esm/models/EstimationContext.js +43 -0
- package/dist/esm/models/EstimationDetail.d.ts +14 -2
- package/dist/esm/models/EstimationDetail.js +5 -3
- package/dist/esm/models/MigrationComplexityResponse.d.ts +2 -2
- package/dist/esm/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
- package/dist/esm/models/MigrationEstimationByComplexityResponse.js +51 -0
- package/dist/esm/models/MigrationEstimationRequest.d.ts +16 -0
- package/dist/esm/models/MigrationEstimationRequest.js +4 -0
- package/dist/esm/models/OsDiskEstimationEntry.d.ts +53 -0
- package/dist/esm/models/OsDiskEstimationEntry.js +55 -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 +4 -1
- package/dist/esm/models/index.js +4 -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/ComplexityOSNameEntry.d.ts +1 -1
- package/dist/models/ComplexityOSScoreEntry.d.ts +1 -1
- package/dist/models/EstimationContext.d.ts +40 -0
- package/dist/models/EstimationContext.js +50 -0
- package/dist/models/EstimationDetail.d.ts +14 -2
- package/dist/models/EstimationDetail.js +5 -3
- package/dist/models/MigrationComplexityResponse.d.ts +2 -2
- package/dist/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
- package/dist/models/MigrationEstimationByComplexityResponse.js +58 -0
- package/dist/models/MigrationEstimationRequest.d.ts +16 -0
- package/dist/models/MigrationEstimationRequest.js +4 -0
- package/dist/models/OsDiskEstimationEntry.d.ts +53 -0
- package/dist/models/OsDiskEstimationEntry.js +62 -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 +4 -1
- package/dist/models/index.js +4 -1
- package/dist/runtime.js +1 -1
- package/docs/AssessmentApi.md +79 -3
- package/docs/ClusterRequirementsRequest.md +2 -0
- package/docs/EstimationContext.md +36 -0
- package/docs/EstimationDetail.md +5 -1
- package/docs/MigrationEstimationByComplexityResponse.md +38 -0
- package/docs/MigrationEstimationRequest.md +4 -0
- package/docs/OsDiskEstimationEntry.md +40 -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 +95 -8
- package/src/models/ClusterRequirementsRequest.ts +11 -3
- package/src/models/ComplexityOSNameEntry.ts +1 -1
- package/src/models/ComplexityOSScoreEntry.ts +1 -1
- package/src/models/EstimationContext.ts +73 -0
- package/src/models/EstimationDetail.ts +19 -4
- package/src/models/MigrationComplexityResponse.ts +2 -2
- package/src/models/MigrationEstimationByComplexityResponse.ts +98 -0
- package/src/models/MigrationEstimationRequest.ts +18 -0
- package/src/models/OsDiskEstimationEntry.ts +100 -0
- package/src/models/SchemaEstimationResult.ts +92 -0
- package/src/models/VMs.ts +9 -0
- package/src/models/index.ts +4 -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
|
@@ -0,0 +1,98 @@
|
|
|
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 { OsDiskEstimationEntry } from './OsDiskEstimationEntry.js';
|
|
17
|
+
import {
|
|
18
|
+
OsDiskEstimationEntryFromJSON,
|
|
19
|
+
OsDiskEstimationEntryFromJSONTyped,
|
|
20
|
+
OsDiskEstimationEntryToJSON,
|
|
21
|
+
OsDiskEstimationEntryToJSONTyped,
|
|
22
|
+
} from './OsDiskEstimationEntry.js';
|
|
23
|
+
import type { EstimationContext } from './EstimationContext.js';
|
|
24
|
+
import {
|
|
25
|
+
EstimationContextFromJSON,
|
|
26
|
+
EstimationContextFromJSONTyped,
|
|
27
|
+
EstimationContextToJSON,
|
|
28
|
+
EstimationContextToJSONTyped,
|
|
29
|
+
} from './EstimationContext.js';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface MigrationEstimationByComplexityResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface MigrationEstimationByComplexityResponse {
|
|
37
|
+
/**
|
|
38
|
+
* Combined OS+Disk complexity distribution with per-bucket estimation. All 5 score levels (0-4) always present.
|
|
39
|
+
* @type {Array<OsDiskEstimationEntry>}
|
|
40
|
+
* @memberof MigrationEstimationByComplexityResponse
|
|
41
|
+
*/
|
|
42
|
+
complexityByOsDisk: Array<OsDiskEstimationEntry>;
|
|
43
|
+
/**
|
|
44
|
+
* Decision matrix: outer keys are OS scores (0-4), inner keys are disk scores (1-4), values are combined scores.
|
|
45
|
+
* @type {{ [key: string]: { [key: string]: number; }; }}
|
|
46
|
+
* @memberof MigrationEstimationByComplexityResponse
|
|
47
|
+
*/
|
|
48
|
+
complexityMatrix: { [key: string]: { [key: string]: number; }; };
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {EstimationContext}
|
|
52
|
+
* @memberof MigrationEstimationByComplexityResponse
|
|
53
|
+
*/
|
|
54
|
+
estimationContext?: EstimationContext;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the MigrationEstimationByComplexityResponse interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfMigrationEstimationByComplexityResponse(value: object): value is MigrationEstimationByComplexityResponse {
|
|
61
|
+
if (!('complexityByOsDisk' in value) || value['complexityByOsDisk'] === undefined) return false;
|
|
62
|
+
if (!('complexityMatrix' in value) || value['complexityMatrix'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function MigrationEstimationByComplexityResponseFromJSON(json: any): MigrationEstimationByComplexityResponse {
|
|
67
|
+
return MigrationEstimationByComplexityResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function MigrationEstimationByComplexityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationByComplexityResponse {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'complexityByOsDisk': ((json['complexityByOsDisk'] as Array<any>).map(OsDiskEstimationEntryFromJSON)),
|
|
77
|
+
'complexityMatrix': json['complexityMatrix'],
|
|
78
|
+
'estimationContext': json['estimationContext'] == null ? undefined : EstimationContextFromJSON(json['estimationContext']),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function MigrationEstimationByComplexityResponseToJSON(json: any): MigrationEstimationByComplexityResponse {
|
|
83
|
+
return MigrationEstimationByComplexityResponseToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function MigrationEstimationByComplexityResponseToJSONTyped(value?: MigrationEstimationByComplexityResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'complexityByOsDisk': ((value['complexityByOsDisk'] as Array<any>).map(OsDiskEstimationEntryToJSON)),
|
|
94
|
+
'complexityMatrix': value['complexityMatrix'],
|
|
95
|
+
'estimationContext': EstimationContextToJSON(value['estimationContext']),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -25,6 +25,20 @@ export interface MigrationEstimationRequest {
|
|
|
25
25
|
* @memberof MigrationEstimationRequest
|
|
26
26
|
*/
|
|
27
27
|
clusterId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Schemas to run. Valid values: "network-based", "storage-offload". If omitted, all schemas are run.
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<string>}
|
|
32
|
+
* @memberof MigrationEstimationRequest
|
|
33
|
+
*/
|
|
34
|
+
estimationSchema?: Array<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Optional calculator parameter overrides. Keys must match known calculator param names (e.g. "transfer_rate_mbps", "work_hours_per_day", "troubleshoot_mins_per_vm", "post_migration_engineers"). User-supplied values take precedence over both defaults and inventory-derived values. Unknown keys are silently ignored.
|
|
37
|
+
*
|
|
38
|
+
* @type {{ [key: string]: any; }}
|
|
39
|
+
* @memberof MigrationEstimationRequest
|
|
40
|
+
*/
|
|
41
|
+
params?: { [key: string]: any; };
|
|
28
42
|
}
|
|
29
43
|
|
|
30
44
|
/**
|
|
@@ -46,6 +60,8 @@ export function MigrationEstimationRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
46
60
|
return {
|
|
47
61
|
|
|
48
62
|
'clusterId': json['clusterId'],
|
|
63
|
+
'estimationSchema': json['estimationSchema'] == null ? undefined : json['estimationSchema'],
|
|
64
|
+
'params': json['params'] == null ? undefined : json['params'],
|
|
49
65
|
};
|
|
50
66
|
}
|
|
51
67
|
|
|
@@ -61,6 +77,8 @@ export function MigrationEstimationRequestToJSONTyped(value?: MigrationEstimatio
|
|
|
61
77
|
return {
|
|
62
78
|
|
|
63
79
|
'clusterId': value['clusterId'],
|
|
80
|
+
'estimationSchema': value['estimationSchema'],
|
|
81
|
+
'params': value['params'],
|
|
64
82
|
};
|
|
65
83
|
}
|
|
66
84
|
|
|
@@ -0,0 +1,100 @@
|
|
|
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 { SchemaEstimationResult } from './SchemaEstimationResult.js';
|
|
17
|
+
import {
|
|
18
|
+
SchemaEstimationResultFromJSON,
|
|
19
|
+
SchemaEstimationResultFromJSONTyped,
|
|
20
|
+
SchemaEstimationResultToJSON,
|
|
21
|
+
SchemaEstimationResultToJSONTyped,
|
|
22
|
+
} from './SchemaEstimationResult.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface OsDiskEstimationEntry
|
|
28
|
+
*/
|
|
29
|
+
export interface OsDiskEstimationEntry {
|
|
30
|
+
/**
|
|
31
|
+
* Combined OS+Disk complexity score (0-4).
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof OsDiskEstimationEntry
|
|
34
|
+
*/
|
|
35
|
+
score: number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of VMs at this complexity level.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof OsDiskEstimationEntry
|
|
40
|
+
*/
|
|
41
|
+
vmCount: number;
|
|
42
|
+
/**
|
|
43
|
+
* Total provisioned disk across VMs in this bucket (decimal TB). 0.0 when ComplexityDistribution is absent from the inventory.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof OsDiskEstimationEntry
|
|
46
|
+
*/
|
|
47
|
+
totalDiskSizeTB: number;
|
|
48
|
+
/**
|
|
49
|
+
* Full estimation breakdown keyed by schema name. Absent for empty buckets (vmCount == 0).
|
|
50
|
+
* @type {{ [key: string]: SchemaEstimationResult; }}
|
|
51
|
+
* @memberof OsDiskEstimationEntry
|
|
52
|
+
*/
|
|
53
|
+
estimation?: { [key: string]: SchemaEstimationResult; };
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the OsDiskEstimationEntry interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfOsDiskEstimationEntry(value: object): value is OsDiskEstimationEntry {
|
|
60
|
+
if (!('score' in value) || value['score'] === undefined) return false;
|
|
61
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
|
|
62
|
+
if (!('totalDiskSizeTB' in value) || value['totalDiskSizeTB'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function OsDiskEstimationEntryFromJSON(json: any): OsDiskEstimationEntry {
|
|
67
|
+
return OsDiskEstimationEntryFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function OsDiskEstimationEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsDiskEstimationEntry {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'score': json['score'],
|
|
77
|
+
'vmCount': json['vmCount'],
|
|
78
|
+
'totalDiskSizeTB': json['totalDiskSizeTB'],
|
|
79
|
+
'estimation': json['estimation'] == null ? undefined : (mapValues(json['estimation'], SchemaEstimationResultFromJSON)),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function OsDiskEstimationEntryToJSON(json: any): OsDiskEstimationEntry {
|
|
84
|
+
return OsDiskEstimationEntryToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function OsDiskEstimationEntryToJSONTyped(value?: OsDiskEstimationEntry | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'score': value['score'],
|
|
95
|
+
'vmCount': value['vmCount'],
|
|
96
|
+
'totalDiskSizeTB': value['totalDiskSizeTB'],
|
|
97
|
+
'estimation': value['estimation'] == null ? undefined : (mapValues(value['estimation'], SchemaEstimationResultToJSON)),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
* Estimation results for a single schema
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SchemaEstimationResult
|
|
28
|
+
*/
|
|
29
|
+
export interface SchemaEstimationResult {
|
|
30
|
+
/**
|
|
31
|
+
* Minimum total estimated duration across all calculators
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SchemaEstimationResult
|
|
34
|
+
*/
|
|
35
|
+
minTotalDuration: string;
|
|
36
|
+
/**
|
|
37
|
+
* Maximum total estimated duration across all calculators
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SchemaEstimationResult
|
|
40
|
+
*/
|
|
41
|
+
maxTotalDuration: string;
|
|
42
|
+
/**
|
|
43
|
+
* Per-calculator results
|
|
44
|
+
* @type {{ [key: string]: EstimationDetail; }}
|
|
45
|
+
* @memberof SchemaEstimationResult
|
|
46
|
+
*/
|
|
47
|
+
breakdown: { [key: string]: EstimationDetail; };
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the SchemaEstimationResult interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfSchemaEstimationResult(value: object): value is SchemaEstimationResult {
|
|
54
|
+
if (!('minTotalDuration' in value) || value['minTotalDuration'] === undefined) return false;
|
|
55
|
+
if (!('maxTotalDuration' in value) || value['maxTotalDuration'] === undefined) return false;
|
|
56
|
+
if (!('breakdown' in value) || value['breakdown'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SchemaEstimationResultFromJSON(json: any): SchemaEstimationResult {
|
|
61
|
+
return SchemaEstimationResultFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SchemaEstimationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaEstimationResult {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'minTotalDuration': json['minTotalDuration'],
|
|
71
|
+
'maxTotalDuration': json['maxTotalDuration'],
|
|
72
|
+
'breakdown': (mapValues(json['breakdown'], EstimationDetailFromJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function SchemaEstimationResultToJSON(json: any): SchemaEstimationResult {
|
|
77
|
+
return SchemaEstimationResultToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function SchemaEstimationResultToJSONTyped(value?: SchemaEstimationResult | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'minTotalDuration': value['minTotalDuration'],
|
|
88
|
+
'maxTotalDuration': value['maxTotalDuration'],
|
|
89
|
+
'breakdown': (mapValues(value['breakdown'], EstimationDetailToJSON)),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
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
|
@@ -14,6 +14,7 @@ export * from './ComplexityOSScoreEntry.js';
|
|
|
14
14
|
export * from './Datastore.js';
|
|
15
15
|
export * from './DiskSizeTierSummary.js';
|
|
16
16
|
export * from './DiskTypeSummary.js';
|
|
17
|
+
export * from './EstimationContext.js';
|
|
17
18
|
export * from './EstimationDetail.js';
|
|
18
19
|
export * from './Histogram.js';
|
|
19
20
|
export * from './Host.js';
|
|
@@ -28,13 +29,15 @@ export * from './JobStatus.js';
|
|
|
28
29
|
export * from './Label.js';
|
|
29
30
|
export * from './MigrationComplexityRequest.js';
|
|
30
31
|
export * from './MigrationComplexityResponse.js';
|
|
32
|
+
export * from './MigrationEstimationByComplexityResponse.js';
|
|
31
33
|
export * from './MigrationEstimationRequest.js';
|
|
32
|
-
export * from './MigrationEstimationResponse.js';
|
|
33
34
|
export * from './MigrationIssue.js';
|
|
34
35
|
export * from './ModelError.js';
|
|
35
36
|
export * from './Network.js';
|
|
37
|
+
export * from './OsDiskEstimationEntry.js';
|
|
36
38
|
export * from './OsInfo.js';
|
|
37
39
|
export * from './PresignedUrl.js';
|
|
40
|
+
export * from './SchemaEstimationResult.js';
|
|
38
41
|
export * from './SizingOverCommitRatio.js';
|
|
39
42
|
export * from './SizingResourceConsumption.js';
|
|
40
43
|
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
|
-
|