@openshift-migration-advisor/planner-sdk 0.5.0 → 0.5.1
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 +6 -2
- package/dist/apis/AssessmentApi.d.ts +38 -1
- package/dist/apis/AssessmentApi.js +44 -0
- package/dist/esm/apis/AssessmentApi.d.ts +38 -1
- package/dist/esm/apis/AssessmentApi.js +45 -1
- package/dist/esm/models/EstimationDetail.d.ts +38 -0
- package/dist/esm/models/EstimationDetail.js +47 -0
- package/dist/esm/models/MigrationEstimationRequest.d.ts +32 -0
- package/dist/esm/models/MigrationEstimationRequest.js +43 -0
- package/dist/esm/models/MigrationEstimationResponse.d.ts +41 -0
- package/dist/esm/models/MigrationEstimationResponse.js +49 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/EstimationDetail.d.ts +38 -0
- package/dist/models/EstimationDetail.js +54 -0
- package/dist/models/MigrationEstimationRequest.d.ts +32 -0
- package/dist/models/MigrationEstimationRequest.js +50 -0
- package/dist/models/MigrationEstimationResponse.d.ts +41 -0
- package/dist/models/MigrationEstimationResponse.js +56 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/AssessmentApi.md +76 -0
- package/docs/EstimationDetail.md +37 -0
- package/docs/MigrationEstimationRequest.md +35 -0
- package/docs/MigrationEstimationResponse.md +37 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +90 -0
- package/src/models/EstimationDetail.ts +75 -0
- package/src/models/MigrationEstimationRequest.ts +66 -0
- package/src/models/MigrationEstimationResponse.ts +83 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner 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
|
+
/**
|
|
17
|
+
* Request payload for calculating migration time estimation
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MigrationEstimationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface MigrationEstimationRequest {
|
|
22
|
+
/**
|
|
23
|
+
* ID of the cluster to calculate migration estimation for
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MigrationEstimationRequest
|
|
26
|
+
*/
|
|
27
|
+
clusterId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the MigrationEstimationRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfMigrationEstimationRequest(value: object): value is MigrationEstimationRequest {
|
|
34
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function MigrationEstimationRequestFromJSON(json: any): MigrationEstimationRequest {
|
|
39
|
+
return MigrationEstimationRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function MigrationEstimationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'clusterId': json['clusterId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function MigrationEstimationRequestToJSON(json: any): MigrationEstimationRequest {
|
|
53
|
+
return MigrationEstimationRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function MigrationEstimationRequestToJSONTyped(value?: MigrationEstimationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'clusterId': value['clusterId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner 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
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './ClusterSizing.js';
|
|
|
11
11
|
export * from './Datastore.js';
|
|
12
12
|
export * from './DiskSizeTierSummary.js';
|
|
13
13
|
export * from './DiskTypeSummary.js';
|
|
14
|
+
export * from './EstimationDetail.js';
|
|
14
15
|
export * from './Histogram.js';
|
|
15
16
|
export * from './Host.js';
|
|
16
17
|
export * from './Info.js';
|
|
@@ -22,6 +23,8 @@ export * from './Ipv4Config.js';
|
|
|
22
23
|
export * from './Job.js';
|
|
23
24
|
export * from './JobStatus.js';
|
|
24
25
|
export * from './Label.js';
|
|
26
|
+
export * from './MigrationEstimationRequest.js';
|
|
27
|
+
export * from './MigrationEstimationResponse.js';
|
|
25
28
|
export * from './MigrationIssue.js';
|
|
26
29
|
export * from './ModelError.js';
|
|
27
30
|
export * from './Network.js';
|