@migration-planner-ui/api-client 0.0.30 → 0.0.31
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/dist/models/Infra.d.ts +6 -0
- package/dist/models/Infra.js +2 -0
- package/dist/models/VMResourceBreakdown.d.ts +2 -1
- package/dist/models/VMResourceBreakdown.js +1 -3
- package/dist/models/VMs.d.ts +16 -0
- package/dist/models/VMs.js +4 -0
- package/package.json +1 -1
- package/src/models/Infra.ts +8 -0
- package/src/models/VMResourceBreakdown.ts +3 -3
- package/src/models/VMs.ts +16 -0
package/dist/models/Infra.d.ts
CHANGED
|
@@ -49,6 +49,12 @@ export interface Infra {
|
|
|
49
49
|
* @memberof Infra
|
|
50
50
|
*/
|
|
51
51
|
cpuOverCommitment?: number;
|
|
52
|
+
/**
|
|
53
|
+
* RAM memory Overcommitment Ratio. Calculated as total Allocated memory / Total memory available
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof Infra
|
|
56
|
+
*/
|
|
57
|
+
memoryOverCommitment?: number;
|
|
52
58
|
/**
|
|
53
59
|
*
|
|
54
60
|
* @type {Array<Host>}
|
package/dist/models/Infra.js
CHANGED
|
@@ -41,6 +41,7 @@ export function InfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'totalClusters': json['totalClusters'] == null ? undefined : json['totalClusters'],
|
|
42
42
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
43
43
|
'cpuOverCommitment': json['cpuOverCommitment'] == null ? undefined : json['cpuOverCommitment'],
|
|
44
|
+
'memoryOverCommitment': json['memoryOverCommitment'] == null ? undefined : json['memoryOverCommitment'],
|
|
44
45
|
'hosts': json['hosts'] == null ? undefined : (json['hosts'].map(HostFromJSON)),
|
|
45
46
|
'hostsPerCluster': json['hostsPerCluster'] == null ? undefined : json['hostsPerCluster'],
|
|
46
47
|
'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
|
|
@@ -59,6 +60,7 @@ export function InfraToJSON(value) {
|
|
|
59
60
|
'totalClusters': value['totalClusters'],
|
|
60
61
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
61
62
|
'cpuOverCommitment': value['cpuOverCommitment'],
|
|
63
|
+
'memoryOverCommitment': value['memoryOverCommitment'],
|
|
62
64
|
'hosts': value['hosts'] == null ? undefined : (value['hosts'].map(HostToJSON)),
|
|
63
65
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
64
66
|
'vmsPerCluster': value['vmsPerCluster'],
|
|
@@ -44,8 +44,9 @@ export interface VMResourceBreakdown {
|
|
|
44
44
|
*
|
|
45
45
|
* @type {Histogram}
|
|
46
46
|
* @memberof VMResourceBreakdown
|
|
47
|
+
* @deprecated
|
|
47
48
|
*/
|
|
48
|
-
histogram
|
|
49
|
+
histogram?: Histogram;
|
|
49
50
|
}
|
|
50
51
|
/**
|
|
51
52
|
* Check if a given object implements the VMResourceBreakdown interface.
|
|
@@ -24,8 +24,6 @@ export function instanceOfVMResourceBreakdown(value) {
|
|
|
24
24
|
return false;
|
|
25
25
|
if (!('totalForNotMigratable' in value) || value['totalForNotMigratable'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('histogram' in value) || value['histogram'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
return true;
|
|
30
28
|
}
|
|
31
29
|
export function VMResourceBreakdownFromJSON(json) {
|
|
@@ -40,7 +38,7 @@ export function VMResourceBreakdownFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
38
|
'totalForMigratable': json['totalForMigratable'],
|
|
41
39
|
'totalForMigratableWithWarnings': json['totalForMigratableWithWarnings'],
|
|
42
40
|
'totalForNotMigratable': json['totalForNotMigratable'],
|
|
43
|
-
'histogram': HistogramFromJSON(json['histogram']),
|
|
41
|
+
'histogram': json['histogram'] == null ? undefined : HistogramFromJSON(json['histogram']),
|
|
44
42
|
};
|
|
45
43
|
}
|
|
46
44
|
export function VMResourceBreakdownToJSON(value) {
|
package/dist/models/VMs.d.ts
CHANGED
|
@@ -60,6 +60,22 @@ export interface VMs {
|
|
|
60
60
|
diskTypes?: {
|
|
61
61
|
[key: string]: DiskTypeSummary;
|
|
62
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* Distribution of VMs across CPU tier buckets (e.g., "0-4", "5-8", "9-16", "17-32", "32+")
|
|
65
|
+
* @type {{ [key: string]: number; }}
|
|
66
|
+
* @memberof VMs
|
|
67
|
+
*/
|
|
68
|
+
distributionByCpuTier?: {
|
|
69
|
+
[key: string]: number;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Distribution of VMs across Memory tier buckets (e.g., "0-4", "5-16", "17-32", "33-64", "65-128", "129-256", "256+")
|
|
73
|
+
* @type {{ [key: string]: number; }}
|
|
74
|
+
* @memberof VMs
|
|
75
|
+
*/
|
|
76
|
+
distributionByMemoryTier?: {
|
|
77
|
+
[key: string]: number;
|
|
78
|
+
};
|
|
63
79
|
/**
|
|
64
80
|
*
|
|
65
81
|
* @type {VMResourceBreakdown}
|
package/dist/models/VMs.js
CHANGED
|
@@ -55,6 +55,8 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
|
|
56
56
|
'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
|
|
57
57
|
'diskTypes': json['diskTypes'] == null ? undefined : (mapValues(json['diskTypes'], DiskTypeSummaryFromJSON)),
|
|
58
|
+
'distributionByCpuTier': json['distributionByCpuTier'] == null ? undefined : json['distributionByCpuTier'],
|
|
59
|
+
'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
|
|
58
60
|
'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
|
|
59
61
|
'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
|
|
60
62
|
'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
|
|
@@ -77,6 +79,8 @@ export function VMsToJSON(value) {
|
|
|
77
79
|
'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
|
|
78
80
|
'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
|
|
79
81
|
'diskTypes': value['diskTypes'] == null ? undefined : (mapValues(value['diskTypes'], DiskTypeSummaryToJSON)),
|
|
82
|
+
'distributionByCpuTier': value['distributionByCpuTier'],
|
|
83
|
+
'distributionByMemoryTier': value['distributionByMemoryTier'],
|
|
80
84
|
'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
|
|
81
85
|
'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
|
|
82
86
|
'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
|
package/package.json
CHANGED
package/src/models/Infra.ts
CHANGED
|
@@ -69,6 +69,12 @@ export interface Infra {
|
|
|
69
69
|
* @memberof Infra
|
|
70
70
|
*/
|
|
71
71
|
cpuOverCommitment?: number;
|
|
72
|
+
/**
|
|
73
|
+
* RAM memory Overcommitment Ratio. Calculated as total Allocated memory / Total memory available
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof Infra
|
|
76
|
+
*/
|
|
77
|
+
memoryOverCommitment?: number;
|
|
72
78
|
/**
|
|
73
79
|
*
|
|
74
80
|
* @type {Array<Host>}
|
|
@@ -135,6 +141,7 @@ export function InfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inf
|
|
|
135
141
|
'totalClusters': json['totalClusters'] == null ? undefined : json['totalClusters'],
|
|
136
142
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
137
143
|
'cpuOverCommitment': json['cpuOverCommitment'] == null ? undefined : json['cpuOverCommitment'],
|
|
144
|
+
'memoryOverCommitment': json['memoryOverCommitment'] == null ? undefined : json['memoryOverCommitment'],
|
|
138
145
|
'hosts': json['hosts'] == null ? undefined : ((json['hosts'] as Array<any>).map(HostFromJSON)),
|
|
139
146
|
'hostsPerCluster': json['hostsPerCluster'] == null ? undefined : json['hostsPerCluster'],
|
|
140
147
|
'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
|
|
@@ -155,6 +162,7 @@ export function InfraToJSON(value?: Infra | null): any {
|
|
|
155
162
|
'totalClusters': value['totalClusters'],
|
|
156
163
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
157
164
|
'cpuOverCommitment': value['cpuOverCommitment'],
|
|
165
|
+
'memoryOverCommitment': value['memoryOverCommitment'],
|
|
158
166
|
'hosts': value['hosts'] == null ? undefined : ((value['hosts'] as Array<any>).map(HostToJSON)),
|
|
159
167
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
160
168
|
'vmsPerCluster': value['vmsPerCluster'],
|
|
@@ -54,8 +54,9 @@ export interface VMResourceBreakdown {
|
|
|
54
54
|
*
|
|
55
55
|
* @type {Histogram}
|
|
56
56
|
* @memberof VMResourceBreakdown
|
|
57
|
+
* @deprecated
|
|
57
58
|
*/
|
|
58
|
-
histogram
|
|
59
|
+
histogram?: Histogram;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
/**
|
|
@@ -66,7 +67,6 @@ export function instanceOfVMResourceBreakdown(value: object): value is VMResourc
|
|
|
66
67
|
if (!('totalForMigratable' in value) || value['totalForMigratable'] === undefined) return false;
|
|
67
68
|
if (!('totalForMigratableWithWarnings' in value) || value['totalForMigratableWithWarnings'] === undefined) return false;
|
|
68
69
|
if (!('totalForNotMigratable' in value) || value['totalForNotMigratable'] === undefined) return false;
|
|
69
|
-
if (!('histogram' in value) || value['histogram'] === undefined) return false;
|
|
70
70
|
return true;
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -84,7 +84,7 @@ export function VMResourceBreakdownFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
84
84
|
'totalForMigratable': json['totalForMigratable'],
|
|
85
85
|
'totalForMigratableWithWarnings': json['totalForMigratableWithWarnings'],
|
|
86
86
|
'totalForNotMigratable': json['totalForNotMigratable'],
|
|
87
|
-
'histogram': HistogramFromJSON(json['histogram']),
|
|
87
|
+
'histogram': json['histogram'] == null ? undefined : HistogramFromJSON(json['histogram']),
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
|
package/src/models/VMs.ts
CHANGED
|
@@ -86,6 +86,18 @@ export interface VMs {
|
|
|
86
86
|
* @memberof VMs
|
|
87
87
|
*/
|
|
88
88
|
diskTypes?: { [key: string]: DiskTypeSummary; };
|
|
89
|
+
/**
|
|
90
|
+
* Distribution of VMs across CPU tier buckets (e.g., "0-4", "5-8", "9-16", "17-32", "32+")
|
|
91
|
+
* @type {{ [key: string]: number; }}
|
|
92
|
+
* @memberof VMs
|
|
93
|
+
*/
|
|
94
|
+
distributionByCpuTier?: { [key: string]: number; };
|
|
95
|
+
/**
|
|
96
|
+
* Distribution of VMs across Memory tier buckets (e.g., "0-4", "5-16", "17-32", "33-64", "65-128", "129-256", "256+")
|
|
97
|
+
* @type {{ [key: string]: number; }}
|
|
98
|
+
* @memberof VMs
|
|
99
|
+
*/
|
|
100
|
+
distributionByMemoryTier?: { [key: string]: number; };
|
|
89
101
|
/**
|
|
90
102
|
*
|
|
91
103
|
* @type {VMResourceBreakdown}
|
|
@@ -175,6 +187,8 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
|
|
|
175
187
|
'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
|
|
176
188
|
'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
|
|
177
189
|
'diskTypes': json['diskTypes'] == null ? undefined : (mapValues(json['diskTypes'], DiskTypeSummaryFromJSON)),
|
|
190
|
+
'distributionByCpuTier': json['distributionByCpuTier'] == null ? undefined : json['distributionByCpuTier'],
|
|
191
|
+
'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
|
|
178
192
|
'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
|
|
179
193
|
'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
|
|
180
194
|
'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
|
|
@@ -199,6 +213,8 @@ export function VMsToJSON(value?: VMs | null): any {
|
|
|
199
213
|
'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
|
|
200
214
|
'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
|
|
201
215
|
'diskTypes': value['diskTypes'] == null ? undefined : (mapValues(value['diskTypes'], DiskTypeSummaryToJSON)),
|
|
216
|
+
'distributionByCpuTier': value['distributionByCpuTier'],
|
|
217
|
+
'distributionByMemoryTier': value['distributionByMemoryTier'],
|
|
202
218
|
'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
|
|
203
219
|
'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
|
|
204
220
|
'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
|