@migration-planner-ui/api-client 0.0.26 → 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.
@@ -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>}
@@ -44,6 +44,7 @@ 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'],
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@migration-planner-ui/api-client",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "OpenAPI client for the Migration Planner API",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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,6 +129,7 @@ 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'],
@@ -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'],