@openshift-migration-advisor/planner-sdk 0.6.0 → 0.7.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 +8 -0
- package/README.md +7 -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/ClusterRequirementsRequest.d.ts +14 -0
- package/dist/esm/models/ClusterRequirementsRequest.js +9 -0
- package/dist/esm/models/ComplexityDiskScoreEntry.d.ts +45 -0
- package/dist/esm/models/ComplexityDiskScoreEntry.js +51 -0
- package/dist/esm/models/ComplexityOSScoreEntry.d.ts +39 -0
- package/dist/esm/models/ComplexityOSScoreEntry.js +47 -0
- package/dist/esm/models/Info.d.ts +12 -0
- package/dist/esm/models/Info.js +4 -0
- package/dist/esm/models/MigrationComplexityRequest.d.ts +32 -0
- package/dist/esm/models/MigrationComplexityRequest.js +43 -0
- package/dist/esm/models/MigrationComplexityResponse.d.ts +60 -0
- package/dist/esm/models/MigrationComplexityResponse.js +57 -0
- package/dist/esm/models/VMs.d.ts +8 -0
- package/dist/esm/models/VMs.js +2 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/ClusterRequirementsRequest.d.ts +14 -0
- package/dist/models/ClusterRequirementsRequest.js +10 -1
- package/dist/models/ComplexityDiskScoreEntry.d.ts +45 -0
- package/dist/models/ComplexityDiskScoreEntry.js +58 -0
- package/dist/models/ComplexityOSScoreEntry.d.ts +39 -0
- package/dist/models/ComplexityOSScoreEntry.js +54 -0
- package/dist/models/Info.d.ts +12 -0
- package/dist/models/Info.js +4 -0
- package/dist/models/MigrationComplexityRequest.d.ts +32 -0
- package/dist/models/MigrationComplexityRequest.js +50 -0
- package/dist/models/MigrationComplexityResponse.d.ts +60 -0
- package/dist/models/MigrationComplexityResponse.js +64 -0
- package/dist/models/VMs.d.ts +8 -0
- package/dist/models/VMs.js +2 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/AssessmentApi.md +76 -0
- package/docs/ClusterRequirementsRequest.md +2 -0
- package/docs/ComplexityDiskScoreEntry.md +39 -0
- package/docs/ComplexityOSScoreEntry.md +37 -0
- package/docs/Info.md +4 -0
- package/docs/MigrationComplexityRequest.md +35 -0
- package/docs/MigrationComplexityResponse.md +41 -0
- package/docs/VMs.md +2 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +90 -0
- package/src/models/ClusterRequirementsRequest.ts +17 -0
- package/src/models/ComplexityDiskScoreEntry.ts +85 -0
- package/src/models/ComplexityOSScoreEntry.ts +76 -0
- package/src/models/Info.ts +16 -0
- package/src/models/MigrationComplexityRequest.ts +66 -0
- package/src/models/MigrationComplexityResponse.ts +112 -0
- package/src/models/VMs.ts +8 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Check if a given object implements the MigrationComplexityRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfMigrationComplexityRequest(value) {
|
|
18
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function MigrationComplexityRequestFromJSON(json) {
|
|
23
|
+
return MigrationComplexityRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function MigrationComplexityRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'clusterId': json['clusterId'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function MigrationComplexityRequestToJSON(json) {
|
|
34
|
+
return MigrationComplexityRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function MigrationComplexityRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'clusterId': value['clusterId'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { ComplexityOSScoreEntry } from './ComplexityOSScoreEntry.js';
|
|
13
|
+
import type { ComplexityDiskScoreEntry } from './ComplexityDiskScoreEntry.js';
|
|
14
|
+
/**
|
|
15
|
+
* Migration complexity estimation results
|
|
16
|
+
* @export
|
|
17
|
+
* @interface MigrationComplexityResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface MigrationComplexityResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Disk-size complexity scores, one entry per score level (1-4). Score 1 is the least complex disk footprint; score 4 is the most complex. Scores correspond to provisioned disk size: 1 (<=10 TB), 2 (<=20 TB), 3 (<=50 TB), 4 (>50 TB). All four score levels are always present.
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<ComplexityDiskScoreEntry>}
|
|
24
|
+
* @memberof MigrationComplexityResponse
|
|
25
|
+
*/
|
|
26
|
+
complexityByDisk: Array<ComplexityDiskScoreEntry>;
|
|
27
|
+
/**
|
|
28
|
+
* OS complexity scores, one entry per score level (0-4). Score 1 indicates the least complex OS to migrate; score 0 indicates an OS that could not be classified. All five score levels are always present.
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<ComplexityOSScoreEntry>}
|
|
31
|
+
* @memberof MigrationComplexityResponse
|
|
32
|
+
*/
|
|
33
|
+
complexityByOS: Array<ComplexityOSScoreEntry>;
|
|
34
|
+
/**
|
|
35
|
+
* Static lookup table mapping each disk-size tier label to its numeric complexity score. The content is identical for every cluster and reflects the DiskSizeScores configuration in the complexity package.
|
|
36
|
+
*
|
|
37
|
+
* @type {{ [key: string]: number; }}
|
|
38
|
+
* @memberof MigrationComplexityResponse
|
|
39
|
+
*/
|
|
40
|
+
diskSizeRatings: {
|
|
41
|
+
[key: string]: number;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Per-OS-name score for every OS found in this cluster's inventory. Keys are the OS name strings exactly as they appear in vms.osInfo; values are the numeric complexity score assigned by ClassifyOS (0 = unclassified, 1-4 = increasing complexity). The map contains one entry per distinct OS name in the cluster, regardless of how many VMs run it.
|
|
45
|
+
*
|
|
46
|
+
* @type {{ [key: string]: number; }}
|
|
47
|
+
* @memberof MigrationComplexityResponse
|
|
48
|
+
*/
|
|
49
|
+
osRatings: {
|
|
50
|
+
[key: string]: number;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the MigrationComplexityResponse interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfMigrationComplexityResponse(value: object): value is MigrationComplexityResponse;
|
|
57
|
+
export declare function MigrationComplexityResponseFromJSON(json: any): MigrationComplexityResponse;
|
|
58
|
+
export declare function MigrationComplexityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationComplexityResponse;
|
|
59
|
+
export declare function MigrationComplexityResponseToJSON(json: any): MigrationComplexityResponse;
|
|
60
|
+
export declare function MigrationComplexityResponseToJSONTyped(value?: MigrationComplexityResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import { ComplexityOSScoreEntryFromJSON, ComplexityOSScoreEntryToJSON, } from './ComplexityOSScoreEntry.js';
|
|
15
|
+
import { ComplexityDiskScoreEntryFromJSON, ComplexityDiskScoreEntryToJSON, } from './ComplexityDiskScoreEntry.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the MigrationComplexityResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfMigrationComplexityResponse(value) {
|
|
20
|
+
if (!('complexityByDisk' in value) || value['complexityByDisk'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('complexityByOS' in value) || value['complexityByOS'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('diskSizeRatings' in value) || value['diskSizeRatings'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('osRatings' in value) || value['osRatings'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function MigrationComplexityResponseFromJSON(json) {
|
|
31
|
+
return MigrationComplexityResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function MigrationComplexityResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'complexityByDisk': (json['complexityByDisk'].map(ComplexityDiskScoreEntryFromJSON)),
|
|
39
|
+
'complexityByOS': (json['complexityByOS'].map(ComplexityOSScoreEntryFromJSON)),
|
|
40
|
+
'diskSizeRatings': json['diskSizeRatings'],
|
|
41
|
+
'osRatings': json['osRatings'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function MigrationComplexityResponseToJSON(json) {
|
|
45
|
+
return MigrationComplexityResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function MigrationComplexityResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'complexityByDisk': (value['complexityByDisk'].map(ComplexityDiskScoreEntryToJSON)),
|
|
53
|
+
'complexityByOS': (value['complexityByOS'].map(ComplexityOSScoreEntryToJSON)),
|
|
54
|
+
'diskSizeRatings': value['diskSizeRatings'],
|
|
55
|
+
'osRatings': value['osRatings'],
|
|
56
|
+
};
|
|
57
|
+
}
|
package/dist/esm/models/VMs.d.ts
CHANGED
|
@@ -90,6 +90,14 @@ export interface VMs {
|
|
|
90
90
|
distributionByNicCount?: {
|
|
91
91
|
[key: string]: number;
|
|
92
92
|
};
|
|
93
|
+
/**
|
|
94
|
+
* Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
|
|
95
|
+
* @type {{ [key: string]: number; }}
|
|
96
|
+
* @memberof VMs
|
|
97
|
+
*/
|
|
98
|
+
distributionByComplexity?: {
|
|
99
|
+
[key: string]: number;
|
|
100
|
+
};
|
|
93
101
|
/**
|
|
94
102
|
*
|
|
95
103
|
* @type {VMResourceBreakdown}
|
package/dist/esm/models/VMs.js
CHANGED
|
@@ -59,6 +59,7 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
59
|
'distributionByCpuTier': json['distributionByCpuTier'] == null ? undefined : json['distributionByCpuTier'],
|
|
60
60
|
'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
|
|
61
61
|
'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
|
|
62
|
+
'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
|
|
62
63
|
'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
|
|
63
64
|
'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
|
|
64
65
|
'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
|
|
@@ -88,6 +89,7 @@ export function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
88
89
|
'distributionByCpuTier': value['distributionByCpuTier'],
|
|
89
90
|
'distributionByMemoryTier': value['distributionByMemoryTier'],
|
|
90
91
|
'distributionByNicCount': value['distributionByNicCount'],
|
|
92
|
+
'distributionByComplexity': value['distributionByComplexity'],
|
|
91
93
|
'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
|
|
92
94
|
'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
|
|
93
95
|
'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
|
|
@@ -6,6 +6,8 @@ export * from './AssessmentUpdate.js';
|
|
|
6
6
|
export * from './ClusterRequirementsRequest.js';
|
|
7
7
|
export * from './ClusterRequirementsResponse.js';
|
|
8
8
|
export * from './ClusterSizing.js';
|
|
9
|
+
export * from './ComplexityDiskScoreEntry.js';
|
|
10
|
+
export * from './ComplexityOSScoreEntry.js';
|
|
9
11
|
export * from './Datastore.js';
|
|
10
12
|
export * from './DiskSizeTierSummary.js';
|
|
11
13
|
export * from './DiskTypeSummary.js';
|
|
@@ -21,6 +23,8 @@ export * from './Ipv4Config.js';
|
|
|
21
23
|
export * from './Job.js';
|
|
22
24
|
export * from './JobStatus.js';
|
|
23
25
|
export * from './Label.js';
|
|
26
|
+
export * from './MigrationComplexityRequest.js';
|
|
27
|
+
export * from './MigrationComplexityResponse.js';
|
|
24
28
|
export * from './MigrationEstimationRequest.js';
|
|
25
29
|
export * from './MigrationEstimationResponse.js';
|
|
26
30
|
export * from './MigrationIssue.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -8,6 +8,8 @@ export * from './AssessmentUpdate.js';
|
|
|
8
8
|
export * from './ClusterRequirementsRequest.js';
|
|
9
9
|
export * from './ClusterRequirementsResponse.js';
|
|
10
10
|
export * from './ClusterSizing.js';
|
|
11
|
+
export * from './ComplexityDiskScoreEntry.js';
|
|
12
|
+
export * from './ComplexityOSScoreEntry.js';
|
|
11
13
|
export * from './Datastore.js';
|
|
12
14
|
export * from './DiskSizeTierSummary.js';
|
|
13
15
|
export * from './DiskTypeSummary.js';
|
|
@@ -23,6 +25,8 @@ export * from './Ipv4Config.js';
|
|
|
23
25
|
export * from './Job.js';
|
|
24
26
|
export * from './JobStatus.js';
|
|
25
27
|
export * from './Label.js';
|
|
28
|
+
export * from './MigrationComplexityRequest.js';
|
|
29
|
+
export * from './MigrationComplexityResponse.js';
|
|
26
30
|
export * from './MigrationEstimationRequest.js';
|
|
27
31
|
export * from './MigrationEstimationResponse.js';
|
|
28
32
|
export * from './MigrationIssue.js';
|
|
@@ -69,6 +69,12 @@ export interface ClusterRequirementsRequest {
|
|
|
69
69
|
* @memberof ClusterRequirementsRequest
|
|
70
70
|
*/
|
|
71
71
|
controlPlaneMemory?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Number of control plane nodes (1 for single node, 3 for HA)
|
|
74
|
+
* @type {ClusterRequirementsRequestControlPlaneNodeCountEnum}
|
|
75
|
+
* @memberof ClusterRequirementsRequest
|
|
76
|
+
*/
|
|
77
|
+
controlPlaneNodeCount?: ClusterRequirementsRequestControlPlaneNodeCountEnum;
|
|
72
78
|
}
|
|
73
79
|
/**
|
|
74
80
|
* @export
|
|
@@ -89,6 +95,14 @@ export declare const ClusterRequirementsRequestMemoryOverCommitRatioEnum: {
|
|
|
89
95
|
readonly MemoryOneToFour: "1:4";
|
|
90
96
|
};
|
|
91
97
|
export type ClusterRequirementsRequestMemoryOverCommitRatioEnum = typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum[keyof typeof ClusterRequirementsRequestMemoryOverCommitRatioEnum];
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const ClusterRequirementsRequestControlPlaneNodeCountEnum: {
|
|
102
|
+
readonly NUMBER_1: 1;
|
|
103
|
+
readonly NUMBER_3: 3;
|
|
104
|
+
};
|
|
105
|
+
export type ClusterRequirementsRequestControlPlaneNodeCountEnum = typeof ClusterRequirementsRequestControlPlaneNodeCountEnum[keyof typeof ClusterRequirementsRequestControlPlaneNodeCountEnum];
|
|
92
106
|
/**
|
|
93
107
|
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
94
108
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ClusterRequirementsRequestMemoryOverCommitRatioEnum = exports.ClusterRequirementsRequestCpuOverCommitRatioEnum = void 0;
|
|
16
|
+
exports.ClusterRequirementsRequestControlPlaneNodeCountEnum = exports.ClusterRequirementsRequestMemoryOverCommitRatioEnum = exports.ClusterRequirementsRequestCpuOverCommitRatioEnum = void 0;
|
|
17
17
|
exports.instanceOfClusterRequirementsRequest = instanceOfClusterRequirementsRequest;
|
|
18
18
|
exports.ClusterRequirementsRequestFromJSON = ClusterRequirementsRequestFromJSON;
|
|
19
19
|
exports.ClusterRequirementsRequestFromJSONTyped = ClusterRequirementsRequestFromJSONTyped;
|
|
@@ -36,6 +36,13 @@ exports.ClusterRequirementsRequestMemoryOverCommitRatioEnum = {
|
|
|
36
36
|
MemoryOneToTwo: '1:2',
|
|
37
37
|
MemoryOneToFour: '1:4'
|
|
38
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
exports.ClusterRequirementsRequestControlPlaneNodeCountEnum = {
|
|
43
|
+
NUMBER_1: 1,
|
|
44
|
+
NUMBER_3: 3
|
|
45
|
+
};
|
|
39
46
|
/**
|
|
40
47
|
* Check if a given object implements the ClusterRequirementsRequest interface.
|
|
41
48
|
*/
|
|
@@ -69,6 +76,7 @@ function ClusterRequirementsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
76
|
'controlPlaneSchedulable': json['controlPlaneSchedulable'] == null ? undefined : json['controlPlaneSchedulable'],
|
|
70
77
|
'controlPlaneCPU': json['controlPlaneCPU'] == null ? undefined : json['controlPlaneCPU'],
|
|
71
78
|
'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
|
|
79
|
+
'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
|
|
72
80
|
};
|
|
73
81
|
}
|
|
74
82
|
function ClusterRequirementsRequestToJSON(json) {
|
|
@@ -88,5 +96,6 @@ function ClusterRequirementsRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
88
96
|
'controlPlaneSchedulable': value['controlPlaneSchedulable'],
|
|
89
97
|
'controlPlaneCPU': value['controlPlaneCPU'],
|
|
90
98
|
'controlPlaneMemory': value['controlPlaneMemory'],
|
|
99
|
+
'controlPlaneNodeCount': value['controlPlaneNodeCount'],
|
|
91
100
|
};
|
|
92
101
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* One entry in the disk complexity breakdown
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ComplexityDiskScoreEntry
|
|
16
|
+
*/
|
|
17
|
+
export interface ComplexityDiskScoreEntry {
|
|
18
|
+
/**
|
|
19
|
+
* Complexity score from 1 to 4, where 1 is the least complex disk footprint and 4 is the most complex. Score 1: <=10 TB provisioned; score 2: <=20 TB; score 3: <=50 TB; score 4: >50 TB.
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ComplexityDiskScoreEntry
|
|
23
|
+
*/
|
|
24
|
+
score: number;
|
|
25
|
+
/**
|
|
26
|
+
* Number of VMs at this complexity score
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ComplexityDiskScoreEntry
|
|
29
|
+
*/
|
|
30
|
+
vmCount: number;
|
|
31
|
+
/**
|
|
32
|
+
* Total provisioned storage in TB for VMs at this score
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ComplexityDiskScoreEntry
|
|
35
|
+
*/
|
|
36
|
+
totalSizeTB: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ComplexityDiskScoreEntry interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfComplexityDiskScoreEntry(value: object): value is ComplexityDiskScoreEntry;
|
|
42
|
+
export declare function ComplexityDiskScoreEntryFromJSON(json: any): ComplexityDiskScoreEntry;
|
|
43
|
+
export declare function ComplexityDiskScoreEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityDiskScoreEntry;
|
|
44
|
+
export declare function ComplexityDiskScoreEntryToJSON(json: any): ComplexityDiskScoreEntry;
|
|
45
|
+
export declare function ComplexityDiskScoreEntryToJSONTyped(value?: ComplexityDiskScoreEntry | 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: 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.instanceOfComplexityDiskScoreEntry = instanceOfComplexityDiskScoreEntry;
|
|
17
|
+
exports.ComplexityDiskScoreEntryFromJSON = ComplexityDiskScoreEntryFromJSON;
|
|
18
|
+
exports.ComplexityDiskScoreEntryFromJSONTyped = ComplexityDiskScoreEntryFromJSONTyped;
|
|
19
|
+
exports.ComplexityDiskScoreEntryToJSON = ComplexityDiskScoreEntryToJSON;
|
|
20
|
+
exports.ComplexityDiskScoreEntryToJSONTyped = ComplexityDiskScoreEntryToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ComplexityDiskScoreEntry interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfComplexityDiskScoreEntry(value) {
|
|
25
|
+
if (!('score' in value) || value['score'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function ComplexityDiskScoreEntryFromJSON(json) {
|
|
34
|
+
return ComplexityDiskScoreEntryFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function ComplexityDiskScoreEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'score': json['score'],
|
|
42
|
+
'vmCount': json['vmCount'],
|
|
43
|
+
'totalSizeTB': json['totalSizeTB'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function ComplexityDiskScoreEntryToJSON(json) {
|
|
47
|
+
return ComplexityDiskScoreEntryToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ComplexityDiskScoreEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'score': value['score'],
|
|
55
|
+
'vmCount': value['vmCount'],
|
|
56
|
+
'totalSizeTB': value['totalSizeTB'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* One entry in the OS complexity breakdown
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ComplexityOSScoreEntry
|
|
16
|
+
*/
|
|
17
|
+
export interface ComplexityOSScoreEntry {
|
|
18
|
+
/**
|
|
19
|
+
* Complexity score from 0 to 4, where 1 indicates the least complex OS to migrate and 0 indicates an OS that could not be classified.
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ComplexityOSScoreEntry
|
|
23
|
+
*/
|
|
24
|
+
score: number;
|
|
25
|
+
/**
|
|
26
|
+
* Number of VMs at this complexity score
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ComplexityOSScoreEntry
|
|
29
|
+
*/
|
|
30
|
+
vmCount: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ComplexityOSScoreEntry interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfComplexityOSScoreEntry(value: object): value is ComplexityOSScoreEntry;
|
|
36
|
+
export declare function ComplexityOSScoreEntryFromJSON(json: any): ComplexityOSScoreEntry;
|
|
37
|
+
export declare function ComplexityOSScoreEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityOSScoreEntry;
|
|
38
|
+
export declare function ComplexityOSScoreEntryToJSON(json: any): ComplexityOSScoreEntry;
|
|
39
|
+
export declare function ComplexityOSScoreEntryToJSONTyped(value?: ComplexityOSScoreEntry | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfComplexityOSScoreEntry = instanceOfComplexityOSScoreEntry;
|
|
17
|
+
exports.ComplexityOSScoreEntryFromJSON = ComplexityOSScoreEntryFromJSON;
|
|
18
|
+
exports.ComplexityOSScoreEntryFromJSONTyped = ComplexityOSScoreEntryFromJSONTyped;
|
|
19
|
+
exports.ComplexityOSScoreEntryToJSON = ComplexityOSScoreEntryToJSON;
|
|
20
|
+
exports.ComplexityOSScoreEntryToJSONTyped = ComplexityOSScoreEntryToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ComplexityOSScoreEntry interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfComplexityOSScoreEntry(value) {
|
|
25
|
+
if (!('score' in value) || value['score'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ComplexityOSScoreEntryFromJSON(json) {
|
|
32
|
+
return ComplexityOSScoreEntryFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ComplexityOSScoreEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'score': json['score'],
|
|
40
|
+
'vmCount': json['vmCount'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ComplexityOSScoreEntryToJSON(json) {
|
|
44
|
+
return ComplexityOSScoreEntryToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ComplexityOSScoreEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'score': value['score'],
|
|
52
|
+
'vmCount': value['vmCount'],
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/Info.d.ts
CHANGED
|
@@ -27,6 +27,18 @@ export interface Info {
|
|
|
27
27
|
* @memberof Info
|
|
28
28
|
*/
|
|
29
29
|
versionName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Agent git commit hash
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Info
|
|
34
|
+
*/
|
|
35
|
+
agentGitCommit?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Agent version name, based on git tag
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Info
|
|
40
|
+
*/
|
|
41
|
+
agentVersionName?: string | null;
|
|
30
42
|
}
|
|
31
43
|
/**
|
|
32
44
|
* Check if a given object implements the Info interface.
|
package/dist/models/Info.js
CHANGED
|
@@ -38,6 +38,8 @@ function InfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
return {
|
|
39
39
|
'gitCommit': json['gitCommit'],
|
|
40
40
|
'versionName': json['versionName'],
|
|
41
|
+
'agentGitCommit': json['agentGitCommit'] == null ? undefined : json['agentGitCommit'],
|
|
42
|
+
'agentVersionName': json['agentVersionName'] == null ? undefined : json['agentVersionName'],
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
function InfoToJSON(json) {
|
|
@@ -50,5 +52,7 @@ function InfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
52
|
return {
|
|
51
53
|
'gitCommit': value['gitCommit'],
|
|
52
54
|
'versionName': value['versionName'],
|
|
55
|
+
'agentGitCommit': value['agentGitCommit'],
|
|
56
|
+
'agentVersionName': value['agentVersionName'],
|
|
53
57
|
};
|
|
54
58
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Request payload for calculating migration complexity estimation
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MigrationComplexityRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface MigrationComplexityRequest {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the cluster to calculate complexity estimation for
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MigrationComplexityRequest
|
|
22
|
+
*/
|
|
23
|
+
clusterId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the MigrationComplexityRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfMigrationComplexityRequest(value: object): value is MigrationComplexityRequest;
|
|
29
|
+
export declare function MigrationComplexityRequestFromJSON(json: any): MigrationComplexityRequest;
|
|
30
|
+
export declare function MigrationComplexityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationComplexityRequest;
|
|
31
|
+
export declare function MigrationComplexityRequestToJSON(json: any): MigrationComplexityRequest;
|
|
32
|
+
export declare function MigrationComplexityRequestToJSONTyped(value?: MigrationComplexityRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfMigrationComplexityRequest = instanceOfMigrationComplexityRequest;
|
|
17
|
+
exports.MigrationComplexityRequestFromJSON = MigrationComplexityRequestFromJSON;
|
|
18
|
+
exports.MigrationComplexityRequestFromJSONTyped = MigrationComplexityRequestFromJSONTyped;
|
|
19
|
+
exports.MigrationComplexityRequestToJSON = MigrationComplexityRequestToJSON;
|
|
20
|
+
exports.MigrationComplexityRequestToJSONTyped = MigrationComplexityRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MigrationComplexityRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMigrationComplexityRequest(value) {
|
|
25
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function MigrationComplexityRequestFromJSON(json) {
|
|
30
|
+
return MigrationComplexityRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function MigrationComplexityRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'clusterId': json['clusterId'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function MigrationComplexityRequestToJSON(json) {
|
|
41
|
+
return MigrationComplexityRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function MigrationComplexityRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'clusterId': value['clusterId'],
|
|
49
|
+
};
|
|
50
|
+
}
|