@migration-planner-ui/api-client 0.0.25 → 0.0.27
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.
|
@@ -51,7 +51,7 @@ export function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'sourceType': json['sourceType'],
|
|
52
52
|
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
53
53
|
'createdAt': (new Date(json['createdAt'])),
|
|
54
|
-
'snapshots': (json['snapshots'].map(SnapshotFromJSON)),
|
|
54
|
+
'snapshots': json['snapshots'] == null ? undefined : (json['snapshots'].map(SnapshotFromJSON)),
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
export function AssessmentToJSON(value) {
|
package/dist/models/Event.js
CHANGED
|
@@ -31,7 +31,7 @@ export function EventFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
33
33
|
'createdAt': (new Date(json['createdAt'])),
|
|
34
|
-
'data': (json['data'].map(EventDataFromJSON)),
|
|
34
|
+
'data': json['data'] == null ? undefined : (json['data'].map(EventDataFromJSON)),
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
export function EventToJSON(value) {
|
package/dist/models/Infra.d.ts
CHANGED
|
@@ -42,6 +42,12 @@ export interface Infra {
|
|
|
42
42
|
* @memberof Infra
|
|
43
43
|
*/
|
|
44
44
|
clustersPerDatacenter?: Array<number>;
|
|
45
|
+
/**
|
|
46
|
+
* CPU Overcommitment Ratio. Calculated as total Allocated vCPUs / Total Physical Cores
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof Infra
|
|
49
|
+
*/
|
|
50
|
+
cpuOverCommitment?: number;
|
|
45
51
|
/**
|
|
46
52
|
*
|
|
47
53
|
* @type {Array<Host>}
|
package/dist/models/Infra.js
CHANGED
|
@@ -44,12 +44,13 @@ export function InfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'totalDatacenters': json['totalDatacenters'] == null ? undefined : json['totalDatacenters'],
|
|
45
45
|
'totalClusters': json['totalClusters'],
|
|
46
46
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
47
|
+
'cpuOverCommitment': json['cpuOverCommitment'] == null ? undefined : json['cpuOverCommitment'],
|
|
47
48
|
'hosts': json['hosts'] == null ? undefined : (json['hosts'].map(HostFromJSON)),
|
|
48
49
|
'hostsPerCluster': json['hostsPerCluster'],
|
|
49
50
|
'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
|
|
50
51
|
'hostPowerStates': json['hostPowerStates'],
|
|
51
|
-
'networks': (json['networks'].map(NetworkFromJSON)),
|
|
52
|
-
'datastores': (json['datastores'].map(DatastoreFromJSON)),
|
|
52
|
+
'networks': json['networks'] == null ? undefined : (json['networks'].map(NetworkFromJSON)),
|
|
53
|
+
'datastores': json['datastores'] == null ? undefined : (json['datastores'].map(DatastoreFromJSON)),
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
56
|
export function InfraToJSON(value) {
|
|
@@ -61,6 +62,7 @@ export function InfraToJSON(value) {
|
|
|
61
62
|
'totalDatacenters': value['totalDatacenters'],
|
|
62
63
|
'totalClusters': value['totalClusters'],
|
|
63
64
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
65
|
+
'cpuOverCommitment': value['cpuOverCommitment'],
|
|
64
66
|
'hosts': value['hosts'] == null ? undefined : (value['hosts'].map(HostToJSON)),
|
|
65
67
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
66
68
|
'vmsPerCluster': value['vmsPerCluster'],
|
package/package.json
CHANGED
package/src/models/Assessment.ts
CHANGED
|
@@ -117,7 +117,7 @@ export function AssessmentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
117
117
|
'sourceType': json['sourceType'],
|
|
118
118
|
'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
|
|
119
119
|
'createdAt': (new Date(json['createdAt'])),
|
|
120
|
-
'snapshots': ((json['snapshots'] as Array<any>).map(SnapshotFromJSON)),
|
|
120
|
+
'snapshots': json['snapshots'] == null ? undefined : ((json['snapshots'] as Array<any>).map(SnapshotFromJSON)),
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
|
package/src/models/Event.ts
CHANGED
|
@@ -60,7 +60,7 @@ export function EventFromJSONTyped(json: any, ignoreDiscriminator: boolean): Eve
|
|
|
60
60
|
return {
|
|
61
61
|
|
|
62
62
|
'createdAt': (new Date(json['createdAt'])),
|
|
63
|
-
'data': ((json['data'] as Array<any>).map(EventDataFromJSON)),
|
|
63
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(EventDataFromJSON)),
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
|
package/src/models/Infra.ts
CHANGED
|
@@ -12,23 +12,19 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
15
|
import type { Datastore } from './Datastore';
|
|
17
16
|
import {
|
|
18
17
|
DatastoreFromJSON,
|
|
19
|
-
DatastoreFromJSONTyped,
|
|
20
18
|
DatastoreToJSON,
|
|
21
19
|
} from './Datastore';
|
|
22
20
|
import type { Network } from './Network';
|
|
23
21
|
import {
|
|
24
22
|
NetworkFromJSON,
|
|
25
|
-
NetworkFromJSONTyped,
|
|
26
23
|
NetworkToJSON,
|
|
27
24
|
} from './Network';
|
|
28
25
|
import type { Host } from './Host';
|
|
29
26
|
import {
|
|
30
27
|
HostFromJSON,
|
|
31
|
-
HostFromJSONTyped,
|
|
32
28
|
HostToJSON,
|
|
33
29
|
} from './Host';
|
|
34
30
|
|
|
@@ -62,6 +58,12 @@ export interface Infra {
|
|
|
62
58
|
* @memberof Infra
|
|
63
59
|
*/
|
|
64
60
|
clustersPerDatacenter?: Array<number>;
|
|
61
|
+
/**
|
|
62
|
+
* CPU Overcommitment Ratio. Calculated as total Allocated vCPUs / Total Physical Cores
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof Infra
|
|
65
|
+
*/
|
|
66
|
+
cpuOverCommitment?: number;
|
|
65
67
|
/**
|
|
66
68
|
*
|
|
67
69
|
* @type {Array<Host>}
|
|
@@ -127,12 +129,13 @@ export function InfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inf
|
|
|
127
129
|
'totalDatacenters': json['totalDatacenters'] == null ? undefined : json['totalDatacenters'],
|
|
128
130
|
'totalClusters': json['totalClusters'],
|
|
129
131
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
132
|
+
'cpuOverCommitment': json['cpuOverCommitment'] == null ? undefined : json['cpuOverCommitment'],
|
|
130
133
|
'hosts': json['hosts'] == null ? undefined : ((json['hosts'] as Array<any>).map(HostFromJSON)),
|
|
131
134
|
'hostsPerCluster': json['hostsPerCluster'],
|
|
132
135
|
'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
|
|
133
136
|
'hostPowerStates': json['hostPowerStates'],
|
|
134
|
-
'networks': ((json['networks'] as Array<any>).map(NetworkFromJSON)),
|
|
135
|
-
'datastores': ((json['datastores'] as Array<any>).map(DatastoreFromJSON)),
|
|
137
|
+
'networks': json['networks'] == null ? undefined : ((json['networks'] as Array<any>).map(NetworkFromJSON)),
|
|
138
|
+
'datastores': json['datastores'] == null ? undefined : ((json['datastores'] as Array<any>).map(DatastoreFromJSON)),
|
|
136
139
|
};
|
|
137
140
|
}
|
|
138
141
|
|
|
@@ -146,6 +149,7 @@ export function InfraToJSON(value?: Infra | null): any {
|
|
|
146
149
|
'totalDatacenters': value['totalDatacenters'],
|
|
147
150
|
'totalClusters': value['totalClusters'],
|
|
148
151
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
152
|
+
'cpuOverCommitment': value['cpuOverCommitment'],
|
|
149
153
|
'hosts': value['hosts'] == null ? undefined : ((value['hosts'] as Array<any>).map(HostToJSON)),
|
|
150
154
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
151
155
|
'vmsPerCluster': value['vmsPerCluster'],
|