@openshift-migration-advisor/planner-sdk 0.21.0 → 0.22.0-4195353295c1
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/VERSION +1 -1
- package/README.md +3 -3
- package/dist/esm/models/ClusterFeatures.d.ts +0 -4
- package/dist/esm/models/ClusterFeatures.js +0 -2
- package/dist/esm/models/Infra.d.ts +4 -0
- package/dist/esm/models/Infra.js +2 -0
- package/dist/esm/models/MigrationComplexityRequest.d.ts +3 -2
- package/dist/esm/models/MigrationComplexityRequest.js +1 -3
- package/dist/esm/models/MigrationEstimationRequest.d.ts +3 -2
- package/dist/esm/models/MigrationEstimationRequest.js +1 -3
- package/dist/esm/models/VMs.d.ts +4 -0
- package/dist/esm/models/VMs.js +2 -0
- package/dist/models/ClusterFeatures.d.ts +0 -4
- package/dist/models/ClusterFeatures.js +0 -2
- package/dist/models/Infra.d.ts +4 -0
- package/dist/models/Infra.js +2 -0
- package/dist/models/MigrationComplexityRequest.d.ts +3 -2
- package/dist/models/MigrationComplexityRequest.js +1 -3
- package/dist/models/MigrationEstimationRequest.d.ts +3 -2
- package/dist/models/MigrationEstimationRequest.js +1 -3
- package/dist/models/VMs.d.ts +4 -0
- package/dist/models/VMs.js +2 -0
- package/docs/ClusterFeatures.md +0 -2
- package/docs/Infra.md +2 -0
- package/docs/VMs.md +2 -0
- package/package.json +1 -1
- package/src/models/ClusterFeatures.ts +0 -6
- package/src/models/Infra.ts +6 -0
- package/src/models/MigrationComplexityRequest.ts +4 -4
- package/src/models/MigrationEstimationRequest.ts +4 -4
- package/src/models/VMs.ts +6 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.26.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.22.0-4195353295c1
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -205,8 +205,8 @@ and is automatically generated by the
|
|
|
205
205
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
206
206
|
|
|
207
207
|
- API version: `v1alpha1`
|
|
208
|
-
- Package version: `0.
|
|
209
|
-
- Generator version: `7.
|
|
208
|
+
- Package version: `0.22.0-4195353295c1`
|
|
209
|
+
- Generator version: `7.26.0-SNAPSHOT`
|
|
210
210
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
211
211
|
|
|
212
212
|
The generated npm module supports the following:
|
|
@@ -23,10 +23,6 @@ export interface ClusterFeatures {
|
|
|
23
23
|
* DRS automation mode for the cluster
|
|
24
24
|
*/
|
|
25
25
|
drsMode?: ClusterFeaturesDrsModeEnum;
|
|
26
|
-
/**
|
|
27
|
-
* Whether Storage DRS is enabled for this cluster
|
|
28
|
-
*/
|
|
29
|
-
storageDrsEnabled?: boolean;
|
|
30
26
|
/**
|
|
31
27
|
* Whether vSphere HA (High Availability) is enabled for this cluster - automatically restarts VMs on surviving hosts after a host failure
|
|
32
28
|
*/
|
|
@@ -36,7 +36,6 @@ export function ClusterFeaturesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return {
|
|
37
37
|
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
38
38
|
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
39
|
-
'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
|
|
40
39
|
'haEnabled': json['haEnabled'] == null ? undefined : json['haEnabled'],
|
|
41
40
|
};
|
|
42
41
|
}
|
|
@@ -50,7 +49,6 @@ export function ClusterFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
49
|
return {
|
|
51
50
|
'drsEnabled': value['drsEnabled'],
|
|
52
51
|
'drsMode': value['drsMode'],
|
|
53
|
-
'storageDrsEnabled': value['storageDrsEnabled'],
|
|
54
52
|
'haEnabled': value['haEnabled'],
|
|
55
53
|
};
|
|
56
54
|
}
|
|
@@ -43,6 +43,10 @@ export interface Infra {
|
|
|
43
43
|
* RAM memory Overcommitment Ratio. Calculated as total Allocated memory / Total memory available
|
|
44
44
|
*/
|
|
45
45
|
memoryOverCommitment?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Average VM density per ESXi host. Calculated as total VMs / totalHosts
|
|
48
|
+
*/
|
|
49
|
+
vmsPerHostAverage?: number;
|
|
46
50
|
/**
|
|
47
51
|
*
|
|
48
52
|
*/
|
package/dist/esm/models/Infra.js
CHANGED
|
@@ -42,6 +42,7 @@ export function InfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
43
43
|
'cpuOverCommitment': json['cpuOverCommitment'] == null ? undefined : json['cpuOverCommitment'],
|
|
44
44
|
'memoryOverCommitment': json['memoryOverCommitment'] == null ? undefined : json['memoryOverCommitment'],
|
|
45
|
+
'vmsPerHostAverage': json['vmsPerHostAverage'] == null ? undefined : json['vmsPerHostAverage'],
|
|
45
46
|
'hosts': json['hosts'] == null ? undefined : (json['hosts'].map(HostFromJSON)),
|
|
46
47
|
'hostsPerCluster': json['hostsPerCluster'] == null ? undefined : json['hostsPerCluster'],
|
|
47
48
|
'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
|
|
@@ -64,6 +65,7 @@ export function InfraToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
65
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
65
66
|
'cpuOverCommitment': value['cpuOverCommitment'],
|
|
66
67
|
'memoryOverCommitment': value['memoryOverCommitment'],
|
|
68
|
+
'vmsPerHostAverage': value['vmsPerHostAverage'],
|
|
67
69
|
'hosts': value['hosts'] == null ? undefined : (value['hosts'].map(HostToJSON)),
|
|
68
70
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
69
71
|
'vmsPerCluster': value['vmsPerCluster'],
|
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface MigrationComplexityRequest {
|
|
18
18
|
/**
|
|
19
|
-
* ID of the cluster to calculate complexity estimation for
|
|
19
|
+
* ID of the cluster to calculate complexity estimation for. When omitted or empty, the vCenter-level aggregate is used.
|
|
20
|
+
*
|
|
20
21
|
*/
|
|
21
|
-
clusterId
|
|
22
|
+
clusterId?: string;
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the MigrationComplexityRequest interface.
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
* Check if a given object implements the MigrationComplexityRequest interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfMigrationComplexityRequest(value) {
|
|
18
|
-
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
19
|
-
return false;
|
|
20
18
|
return true;
|
|
21
19
|
}
|
|
22
20
|
export function MigrationComplexityRequestFromJSON(json) {
|
|
@@ -27,7 +25,7 @@ export function MigrationComplexityRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
27
25
|
return json;
|
|
28
26
|
}
|
|
29
27
|
return {
|
|
30
|
-
'clusterId': json['clusterId'],
|
|
28
|
+
'clusterId': json['clusterId'] == null ? undefined : json['clusterId'],
|
|
31
29
|
};
|
|
32
30
|
}
|
|
33
31
|
export function MigrationComplexityRequestToJSON(json) {
|
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface MigrationEstimationRequest {
|
|
18
18
|
/**
|
|
19
|
-
* ID of the cluster to calculate migration estimation for
|
|
19
|
+
* ID of the cluster to calculate migration estimation for. When omitted or empty, the vCenter-level aggregate is used.
|
|
20
|
+
*
|
|
20
21
|
*/
|
|
21
|
-
clusterId
|
|
22
|
+
clusterId?: string;
|
|
22
23
|
/**
|
|
23
24
|
* Schemas to run. Valid values: "network-based", "storage-offload". If omitted, all schemas are run.
|
|
24
25
|
*
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
* Check if a given object implements the MigrationEstimationRequest interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfMigrationEstimationRequest(value) {
|
|
18
|
-
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
19
|
-
return false;
|
|
20
18
|
return true;
|
|
21
19
|
}
|
|
22
20
|
export function MigrationEstimationRequestFromJSON(json) {
|
|
@@ -27,7 +25,7 @@ export function MigrationEstimationRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
27
25
|
return json;
|
|
28
26
|
}
|
|
29
27
|
return {
|
|
30
|
-
'clusterId': json['clusterId'],
|
|
28
|
+
'clusterId': json['clusterId'] == null ? undefined : json['clusterId'],
|
|
31
29
|
'estimationSchema': json['estimationSchema'] == null ? undefined : json['estimationSchema'],
|
|
32
30
|
'params': json['params'] == null ? undefined : json['params'],
|
|
33
31
|
};
|
package/dist/esm/models/VMs.d.ts
CHANGED
package/dist/esm/models/VMs.js
CHANGED
|
@@ -54,6 +54,7 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'totalMigratable': json['totalMigratable'],
|
|
55
55
|
'totalMigratableWithWarnings': json['totalMigratableWithWarnings'] == null ? undefined : json['totalMigratableWithWarnings'],
|
|
56
56
|
'totalWithSharedDisks': json['totalWithSharedDisks'] == null ? undefined : json['totalWithSharedDisks'],
|
|
57
|
+
'totalWithRDM': json['totalWithRDM'] == null ? undefined : json['totalWithRDM'],
|
|
57
58
|
'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
|
|
58
59
|
'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
|
|
59
60
|
'diskComplexityTier': json['diskComplexityTier'] == null ? undefined : (mapValues(json['diskComplexityTier'], DiskSizeTierSummaryFromJSON)),
|
|
@@ -87,6 +88,7 @@ export function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
87
88
|
'totalMigratable': value['totalMigratable'],
|
|
88
89
|
'totalMigratableWithWarnings': value['totalMigratableWithWarnings'],
|
|
89
90
|
'totalWithSharedDisks': value['totalWithSharedDisks'],
|
|
91
|
+
'totalWithRDM': value['totalWithRDM'],
|
|
90
92
|
'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
|
|
91
93
|
'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
|
|
92
94
|
'diskComplexityTier': value['diskComplexityTier'] == null ? undefined : (mapValues(value['diskComplexityTier'], DiskSizeTierSummaryToJSON)),
|
|
@@ -23,10 +23,6 @@ export interface ClusterFeatures {
|
|
|
23
23
|
* DRS automation mode for the cluster
|
|
24
24
|
*/
|
|
25
25
|
drsMode?: ClusterFeaturesDrsModeEnum;
|
|
26
|
-
/**
|
|
27
|
-
* Whether Storage DRS is enabled for this cluster
|
|
28
|
-
*/
|
|
29
|
-
storageDrsEnabled?: boolean;
|
|
30
26
|
/**
|
|
31
27
|
* Whether vSphere HA (High Availability) is enabled for this cluster - automatically restarts VMs on surviving hosts after a host failure
|
|
32
28
|
*/
|
|
@@ -44,7 +44,6 @@ function ClusterFeaturesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return {
|
|
45
45
|
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
46
46
|
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
47
|
-
'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
|
|
48
47
|
'haEnabled': json['haEnabled'] == null ? undefined : json['haEnabled'],
|
|
49
48
|
};
|
|
50
49
|
}
|
|
@@ -58,7 +57,6 @@ function ClusterFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
57
|
return {
|
|
59
58
|
'drsEnabled': value['drsEnabled'],
|
|
60
59
|
'drsMode': value['drsMode'],
|
|
61
|
-
'storageDrsEnabled': value['storageDrsEnabled'],
|
|
62
60
|
'haEnabled': value['haEnabled'],
|
|
63
61
|
};
|
|
64
62
|
}
|
package/dist/models/Infra.d.ts
CHANGED
|
@@ -43,6 +43,10 @@ export interface Infra {
|
|
|
43
43
|
* RAM memory Overcommitment Ratio. Calculated as total Allocated memory / Total memory available
|
|
44
44
|
*/
|
|
45
45
|
memoryOverCommitment?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Average VM density per ESXi host. Calculated as total VMs / totalHosts
|
|
48
|
+
*/
|
|
49
|
+
vmsPerHostAverage?: number;
|
|
46
50
|
/**
|
|
47
51
|
*
|
|
48
52
|
*/
|
package/dist/models/Infra.js
CHANGED
|
@@ -49,6 +49,7 @@ function InfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
50
50
|
'cpuOverCommitment': json['cpuOverCommitment'] == null ? undefined : json['cpuOverCommitment'],
|
|
51
51
|
'memoryOverCommitment': json['memoryOverCommitment'] == null ? undefined : json['memoryOverCommitment'],
|
|
52
|
+
'vmsPerHostAverage': json['vmsPerHostAverage'] == null ? undefined : json['vmsPerHostAverage'],
|
|
52
53
|
'hosts': json['hosts'] == null ? undefined : (json['hosts'].map(Host_js_1.HostFromJSON)),
|
|
53
54
|
'hostsPerCluster': json['hostsPerCluster'] == null ? undefined : json['hostsPerCluster'],
|
|
54
55
|
'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
|
|
@@ -71,6 +72,7 @@ function InfraToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
72
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
72
73
|
'cpuOverCommitment': value['cpuOverCommitment'],
|
|
73
74
|
'memoryOverCommitment': value['memoryOverCommitment'],
|
|
75
|
+
'vmsPerHostAverage': value['vmsPerHostAverage'],
|
|
74
76
|
'hosts': value['hosts'] == null ? undefined : (value['hosts'].map(Host_js_1.HostToJSON)),
|
|
75
77
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
76
78
|
'vmsPerCluster': value['vmsPerCluster'],
|
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface MigrationComplexityRequest {
|
|
18
18
|
/**
|
|
19
|
-
* ID of the cluster to calculate complexity estimation for
|
|
19
|
+
* ID of the cluster to calculate complexity estimation for. When omitted or empty, the vCenter-level aggregate is used.
|
|
20
|
+
*
|
|
20
21
|
*/
|
|
21
|
-
clusterId
|
|
22
|
+
clusterId?: string;
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the MigrationComplexityRequest interface.
|
|
@@ -22,8 +22,6 @@ exports.MigrationComplexityRequestToJSONTyped = MigrationComplexityRequestToJSON
|
|
|
22
22
|
* Check if a given object implements the MigrationComplexityRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfMigrationComplexityRequest(value) {
|
|
25
|
-
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
return true;
|
|
28
26
|
}
|
|
29
27
|
function MigrationComplexityRequestFromJSON(json) {
|
|
@@ -34,7 +32,7 @@ function MigrationComplexityRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
32
|
return json;
|
|
35
33
|
}
|
|
36
34
|
return {
|
|
37
|
-
'clusterId': json['clusterId'],
|
|
35
|
+
'clusterId': json['clusterId'] == null ? undefined : json['clusterId'],
|
|
38
36
|
};
|
|
39
37
|
}
|
|
40
38
|
function MigrationComplexityRequestToJSON(json) {
|
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface MigrationEstimationRequest {
|
|
18
18
|
/**
|
|
19
|
-
* ID of the cluster to calculate migration estimation for
|
|
19
|
+
* ID of the cluster to calculate migration estimation for. When omitted or empty, the vCenter-level aggregate is used.
|
|
20
|
+
*
|
|
20
21
|
*/
|
|
21
|
-
clusterId
|
|
22
|
+
clusterId?: string;
|
|
22
23
|
/**
|
|
23
24
|
* Schemas to run. Valid values: "network-based", "storage-offload". If omitted, all schemas are run.
|
|
24
25
|
*
|
|
@@ -22,8 +22,6 @@ exports.MigrationEstimationRequestToJSONTyped = MigrationEstimationRequestToJSON
|
|
|
22
22
|
* Check if a given object implements the MigrationEstimationRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfMigrationEstimationRequest(value) {
|
|
25
|
-
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
return true;
|
|
28
26
|
}
|
|
29
27
|
function MigrationEstimationRequestFromJSON(json) {
|
|
@@ -34,7 +32,7 @@ function MigrationEstimationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
32
|
return json;
|
|
35
33
|
}
|
|
36
34
|
return {
|
|
37
|
-
'clusterId': json['clusterId'],
|
|
35
|
+
'clusterId': json['clusterId'] == null ? undefined : json['clusterId'],
|
|
38
36
|
'estimationSchema': json['estimationSchema'] == null ? undefined : json['estimationSchema'],
|
|
39
37
|
'params': json['params'] == null ? undefined : json['params'],
|
|
40
38
|
};
|
package/dist/models/VMs.d.ts
CHANGED
package/dist/models/VMs.js
CHANGED
|
@@ -61,6 +61,7 @@ function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
61
|
'totalMigratable': json['totalMigratable'],
|
|
62
62
|
'totalMigratableWithWarnings': json['totalMigratableWithWarnings'] == null ? undefined : json['totalMigratableWithWarnings'],
|
|
63
63
|
'totalWithSharedDisks': json['totalWithSharedDisks'] == null ? undefined : json['totalWithSharedDisks'],
|
|
64
|
+
'totalWithRDM': json['totalWithRDM'] == null ? undefined : json['totalWithRDM'],
|
|
64
65
|
'cpuCores': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['cpuCores']),
|
|
65
66
|
'diskSizeTier': json['diskSizeTier'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['diskSizeTier'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryFromJSON)),
|
|
66
67
|
'diskComplexityTier': json['diskComplexityTier'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['diskComplexityTier'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryFromJSON)),
|
|
@@ -94,6 +95,7 @@ function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
94
95
|
'totalMigratable': value['totalMigratable'],
|
|
95
96
|
'totalMigratableWithWarnings': value['totalMigratableWithWarnings'],
|
|
96
97
|
'totalWithSharedDisks': value['totalWithSharedDisks'],
|
|
98
|
+
'totalWithRDM': value['totalWithRDM'],
|
|
97
99
|
'cpuCores': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['cpuCores']),
|
|
98
100
|
'diskSizeTier': value['diskSizeTier'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['diskSizeTier'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryToJSON)),
|
|
99
101
|
'diskComplexityTier': value['diskComplexityTier'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['diskComplexityTier'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryToJSON)),
|
package/docs/ClusterFeatures.md
CHANGED
|
@@ -8,7 +8,6 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`drsEnabled` | boolean
|
|
10
10
|
`drsMode` | string
|
|
11
|
-
`storageDrsEnabled` | boolean
|
|
12
11
|
`haEnabled` | boolean
|
|
13
12
|
|
|
14
13
|
## Example
|
|
@@ -20,7 +19,6 @@ import type { ClusterFeatures } from '@openshift-migration-advisor/planner-sdk'
|
|
|
20
19
|
const example = {
|
|
21
20
|
"drsEnabled": null,
|
|
22
21
|
"drsMode": null,
|
|
23
|
-
"storageDrsEnabled": null,
|
|
24
22
|
"haEnabled": null,
|
|
25
23
|
} satisfies ClusterFeatures
|
|
26
24
|
|
package/docs/Infra.md
CHANGED
|
@@ -12,6 +12,7 @@ Name | Type
|
|
|
12
12
|
`clustersPerDatacenter` | Array<number>
|
|
13
13
|
`cpuOverCommitment` | number
|
|
14
14
|
`memoryOverCommitment` | number
|
|
15
|
+
`vmsPerHostAverage` | number
|
|
15
16
|
`hosts` | [Array<Host>](Host.md)
|
|
16
17
|
`hostsPerCluster` | Array<number>
|
|
17
18
|
`vmsPerCluster` | Array<number>
|
|
@@ -32,6 +33,7 @@ const example = {
|
|
|
32
33
|
"clustersPerDatacenter": null,
|
|
33
34
|
"cpuOverCommitment": null,
|
|
34
35
|
"memoryOverCommitment": null,
|
|
36
|
+
"vmsPerHostAverage": null,
|
|
35
37
|
"hosts": null,
|
|
36
38
|
"hostsPerCluster": null,
|
|
37
39
|
"vmsPerCluster": null,
|
package/docs/VMs.md
CHANGED
|
@@ -10,6 +10,7 @@ Name | Type
|
|
|
10
10
|
`totalMigratable` | number
|
|
11
11
|
`totalMigratableWithWarnings` | number
|
|
12
12
|
`totalWithSharedDisks` | number
|
|
13
|
+
`totalWithRDM` | number
|
|
13
14
|
`cpuCores` | [VMResourceBreakdown](VMResourceBreakdown.md)
|
|
14
15
|
`diskSizeTier` | [{ [key: string]: DiskSizeTierSummary; }](DiskSizeTierSummary.md)
|
|
15
16
|
`diskComplexityTier` | [{ [key: string]: DiskSizeTierSummary; }](DiskSizeTierSummary.md)
|
|
@@ -41,6 +42,7 @@ const example = {
|
|
|
41
42
|
"totalMigratable": null,
|
|
42
43
|
"totalMigratableWithWarnings": null,
|
|
43
44
|
"totalWithSharedDisks": null,
|
|
45
|
+
"totalWithRDM": null,
|
|
44
46
|
"cpuCores": null,
|
|
45
47
|
"diskSizeTier": null,
|
|
46
48
|
"diskComplexityTier": null,
|
package/package.json
CHANGED
|
@@ -27,10 +27,6 @@ export interface ClusterFeatures {
|
|
|
27
27
|
* DRS automation mode for the cluster
|
|
28
28
|
*/
|
|
29
29
|
drsMode?: ClusterFeaturesDrsModeEnum;
|
|
30
|
-
/**
|
|
31
|
-
* Whether Storage DRS is enabled for this cluster
|
|
32
|
-
*/
|
|
33
|
-
storageDrsEnabled?: boolean;
|
|
34
30
|
/**
|
|
35
31
|
* Whether vSphere HA (High Availability) is enabled for this cluster - automatically restarts VMs on surviving hosts after a host failure
|
|
36
32
|
*/
|
|
@@ -69,7 +65,6 @@ export function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
69
65
|
|
|
70
66
|
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
71
67
|
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
72
|
-
'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
|
|
73
68
|
'haEnabled': json['haEnabled'] == null ? undefined : json['haEnabled'],
|
|
74
69
|
};
|
|
75
70
|
}
|
|
@@ -87,7 +82,6 @@ export function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | null, ignor
|
|
|
87
82
|
|
|
88
83
|
'drsEnabled': value['drsEnabled'],
|
|
89
84
|
'drsMode': value['drsMode'],
|
|
90
|
-
'storageDrsEnabled': value['storageDrsEnabled'],
|
|
91
85
|
'haEnabled': value['haEnabled'],
|
|
92
86
|
};
|
|
93
87
|
}
|
package/src/models/Infra.ts
CHANGED
|
@@ -66,6 +66,10 @@ export interface Infra {
|
|
|
66
66
|
* RAM memory Overcommitment Ratio. Calculated as total Allocated memory / Total memory available
|
|
67
67
|
*/
|
|
68
68
|
memoryOverCommitment?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Average VM density per ESXi host. Calculated as total VMs / totalHosts
|
|
71
|
+
*/
|
|
72
|
+
vmsPerHostAverage?: number;
|
|
69
73
|
/**
|
|
70
74
|
*
|
|
71
75
|
*/
|
|
@@ -121,6 +125,7 @@ export function InfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inf
|
|
|
121
125
|
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
122
126
|
'cpuOverCommitment': json['cpuOverCommitment'] == null ? undefined : json['cpuOverCommitment'],
|
|
123
127
|
'memoryOverCommitment': json['memoryOverCommitment'] == null ? undefined : json['memoryOverCommitment'],
|
|
128
|
+
'vmsPerHostAverage': json['vmsPerHostAverage'] == null ? undefined : json['vmsPerHostAverage'],
|
|
124
129
|
'hosts': json['hosts'] == null ? undefined : ((json['hosts'] as Array<any>).map(HostFromJSON)),
|
|
125
130
|
'hostsPerCluster': json['hostsPerCluster'] == null ? undefined : json['hostsPerCluster'],
|
|
126
131
|
'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
|
|
@@ -147,6 +152,7 @@ export function InfraToJSONTyped(value?: Infra | null, ignoreDiscriminator: bool
|
|
|
147
152
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
148
153
|
'cpuOverCommitment': value['cpuOverCommitment'],
|
|
149
154
|
'memoryOverCommitment': value['memoryOverCommitment'],
|
|
155
|
+
'vmsPerHostAverage': value['vmsPerHostAverage'],
|
|
150
156
|
'hosts': value['hosts'] == null ? undefined : ((value['hosts'] as Array<any>).map(HostToJSON)),
|
|
151
157
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
152
158
|
'vmsPerCluster': value['vmsPerCluster'],
|
|
@@ -20,16 +20,16 @@ import { mapValues } from '../runtime.js';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface MigrationComplexityRequest {
|
|
22
22
|
/**
|
|
23
|
-
* ID of the cluster to calculate complexity estimation for
|
|
23
|
+
* ID of the cluster to calculate complexity estimation for. When omitted or empty, the vCenter-level aggregate is used.
|
|
24
|
+
*
|
|
24
25
|
*/
|
|
25
|
-
clusterId
|
|
26
|
+
clusterId?: string;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
30
|
* Check if a given object implements the MigrationComplexityRequest interface.
|
|
30
31
|
*/
|
|
31
32
|
export function instanceOfMigrationComplexityRequest(value: object): value is MigrationComplexityRequest {
|
|
32
|
-
if (!('clusterId' in value) || value['clusterId'] === undefined) return false;
|
|
33
33
|
return true;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -43,7 +43,7 @@ export function MigrationComplexityRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
|
|
46
|
-
'clusterId': json['clusterId'],
|
|
46
|
+
'clusterId': json['clusterId'] == null ? undefined : json['clusterId'],
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -20,9 +20,10 @@ import { mapValues } from '../runtime.js';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface MigrationEstimationRequest {
|
|
22
22
|
/**
|
|
23
|
-
* ID of the cluster to calculate migration estimation for
|
|
23
|
+
* ID of the cluster to calculate migration estimation for. When omitted or empty, the vCenter-level aggregate is used.
|
|
24
|
+
*
|
|
24
25
|
*/
|
|
25
|
-
clusterId
|
|
26
|
+
clusterId?: string;
|
|
26
27
|
/**
|
|
27
28
|
* Schemas to run. Valid values: "network-based", "storage-offload". If omitted, all schemas are run.
|
|
28
29
|
*
|
|
@@ -39,7 +40,6 @@ export interface MigrationEstimationRequest {
|
|
|
39
40
|
* Check if a given object implements the MigrationEstimationRequest interface.
|
|
40
41
|
*/
|
|
41
42
|
export function instanceOfMigrationEstimationRequest(value: object): value is MigrationEstimationRequest {
|
|
42
|
-
if (!('clusterId' in value) || value['clusterId'] === undefined) return false;
|
|
43
43
|
return true;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -53,7 +53,7 @@ export function MigrationEstimationRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
55
|
|
|
56
|
-
'clusterId': json['clusterId'],
|
|
56
|
+
'clusterId': json['clusterId'] == null ? undefined : json['clusterId'],
|
|
57
57
|
'estimationSchema': json['estimationSchema'] == null ? undefined : json['estimationSchema'],
|
|
58
58
|
'params': json['params'] == null ? undefined : json['params'],
|
|
59
59
|
};
|
package/src/models/VMs.ts
CHANGED
|
@@ -78,6 +78,10 @@ export interface VMs {
|
|
|
78
78
|
* Number of VMs that have at least one shared disk
|
|
79
79
|
*/
|
|
80
80
|
totalWithSharedDisks?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Number of VMs that have at least one raw device mapping (RDM) disk
|
|
83
|
+
*/
|
|
84
|
+
totalWithRDM?: number;
|
|
81
85
|
/**
|
|
82
86
|
*
|
|
83
87
|
*/
|
|
@@ -189,6 +193,7 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
|
|
|
189
193
|
'totalMigratable': json['totalMigratable'],
|
|
190
194
|
'totalMigratableWithWarnings': json['totalMigratableWithWarnings'] == null ? undefined : json['totalMigratableWithWarnings'],
|
|
191
195
|
'totalWithSharedDisks': json['totalWithSharedDisks'] == null ? undefined : json['totalWithSharedDisks'],
|
|
196
|
+
'totalWithRDM': json['totalWithRDM'] == null ? undefined : json['totalWithRDM'],
|
|
192
197
|
'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
|
|
193
198
|
'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
|
|
194
199
|
'diskComplexityTier': json['diskComplexityTier'] == null ? undefined : (mapValues(json['diskComplexityTier'], DiskSizeTierSummaryFromJSON)),
|
|
@@ -226,6 +231,7 @@ export function VMsToJSONTyped(value?: VMs | null, ignoreDiscriminator: boolean
|
|
|
226
231
|
'totalMigratable': value['totalMigratable'],
|
|
227
232
|
'totalMigratableWithWarnings': value['totalMigratableWithWarnings'],
|
|
228
233
|
'totalWithSharedDisks': value['totalWithSharedDisks'],
|
|
234
|
+
'totalWithRDM': value['totalWithRDM'],
|
|
229
235
|
'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
|
|
230
236
|
'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
|
|
231
237
|
'diskComplexityTier': value['diskComplexityTier'] == null ? undefined : (mapValues(value['diskComplexityTier'], DiskSizeTierSummaryToJSON)),
|