@openshift-migration-advisor/agent-sdk 0.21.0 → 0.22.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/VERSION +1 -1
- package/README.md +4 -3
- package/dist/apis/VirtualMachinesApi.d.ts +38 -0
- package/dist/apis/VirtualMachinesApi.js +38 -0
- package/dist/esm/apis/VirtualMachinesApi.d.ts +38 -0
- package/dist/esm/apis/VirtualMachinesApi.js +38 -0
- 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/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/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/docs/VirtualMachinesApi.md +70 -0
- package/package.json +1 -1
- package/src/apis/VirtualMachinesApi.ts +74 -0
- package/src/models/ClusterFeatures.ts +0 -6
- package/src/models/Infra.ts +6 -0
- 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/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.22.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -87,6 +87,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
87
87
|
*RightsizingApi* | [**getLatestVMUtilization**](docs/RightsizingApi.md#getlatestvmutilization) | **GET** /virtualmachines/{vmId}/utilization | Get utilization breakdown for a specific VM from the latest collection
|
|
88
88
|
*VersionApi* | [**getVersion**](docs/VersionApi.md#getversion) | **GET** /version | Get agent version information
|
|
89
89
|
*VirtualMachinesApi* | [**batchUpdateLatestVMExclusion**](docs/VirtualMachinesApi.md#batchupdatelatestvmexclusion) | **POST** /virtualmachines/batch-update-exclusion | Batch update migration exclusion for multiple VMs in the latest collection
|
|
90
|
+
*VirtualMachinesApi* | [**cancelVirtualMachineInspection**](docs/VirtualMachinesApi.md#cancelvirtualmachineinspection) | **DELETE** /virtualmachines/{vmId}/inspection | Cancel deep inspection for a specific VirtualMachine
|
|
90
91
|
*VirtualMachinesApi* | [**deleteLatestLabelGlobally**](docs/VirtualMachinesApi.md#deletelatestlabelglobally) | **DELETE** /virtualmachines/labels/{label} | Remove a label from all VMs in the latest collection
|
|
91
92
|
*VirtualMachinesApi* | [**getLatestVMFilterOptions**](docs/VirtualMachinesApi.md#getlatestvmfilteroptions) | **GET** /virtualmachines/filter-options | Get available filter option values from the latest collection
|
|
92
93
|
*VirtualMachinesApi* | [**getLatestVMLabels**](docs/VirtualMachinesApi.md#getlatestvmlabels) | **GET** /virtualmachines/labels | Get all distinct labels with counts from the latest collection
|
|
@@ -197,8 +198,8 @@ and is automatically generated by the
|
|
|
197
198
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
198
199
|
|
|
199
200
|
- API version: `v2`
|
|
200
|
-
- Package version: `0.
|
|
201
|
-
- Generator version: `7.
|
|
201
|
+
- Package version: `0.22.0`
|
|
202
|
+
- Generator version: `7.26.0-SNAPSHOT`
|
|
202
203
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
203
204
|
|
|
204
205
|
The generated npm module supports the following:
|
|
@@ -25,6 +25,12 @@ export interface BatchUpdateLatestVMExclusionRequest {
|
|
|
25
25
|
*/
|
|
26
26
|
batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
|
|
27
27
|
}
|
|
28
|
+
export interface CancelVirtualMachineInspectionRequest {
|
|
29
|
+
/**
|
|
30
|
+
* VirtualMachine ID
|
|
31
|
+
*/
|
|
32
|
+
vmId: string;
|
|
33
|
+
}
|
|
28
34
|
export interface DeleteLatestLabelGloballyRequest {
|
|
29
35
|
/**
|
|
30
36
|
* Label name
|
|
@@ -156,6 +162,26 @@ export interface VirtualMachinesApiInterface {
|
|
|
156
162
|
* Batch update migration exclusion for multiple VMs in the latest collection
|
|
157
163
|
*/
|
|
158
164
|
batchUpdateLatestVMExclusion(requestParameters: BatchUpdateLatestVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
165
|
+
/**
|
|
166
|
+
* Creates request options for cancelVirtualMachineInspection without sending the request
|
|
167
|
+
* @param {string} vmId VirtualMachine ID
|
|
168
|
+
* @throws {RequiredError}
|
|
169
|
+
* @memberof VirtualMachinesApiInterface
|
|
170
|
+
*/
|
|
171
|
+
cancelVirtualMachineInspectionRequestOpts(requestParameters: CancelVirtualMachineInspectionRequest): Promise<runtime.RequestOpts>;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @summary Cancel deep inspection for a specific VirtualMachine
|
|
175
|
+
* @param {string} vmId VirtualMachine ID
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
* @memberof VirtualMachinesApiInterface
|
|
179
|
+
*/
|
|
180
|
+
cancelVirtualMachineInspectionRaw(requestParameters: CancelVirtualMachineInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
181
|
+
/**
|
|
182
|
+
* Cancel deep inspection for a specific VirtualMachine
|
|
183
|
+
*/
|
|
184
|
+
cancelVirtualMachineInspection(requestParameters: CancelVirtualMachineInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
159
185
|
/**
|
|
160
186
|
* Creates request options for deleteLatestLabelGlobally without sending the request
|
|
161
187
|
* @param {string} label Label name
|
|
@@ -431,6 +457,18 @@ export declare class VirtualMachinesApi extends runtime.BaseAPI implements Virtu
|
|
|
431
457
|
* Batch update migration exclusion for multiple VMs in the latest collection
|
|
432
458
|
*/
|
|
433
459
|
batchUpdateLatestVMExclusion(requestParameters: BatchUpdateLatestVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
460
|
+
/**
|
|
461
|
+
* Creates request options for cancelVirtualMachineInspection without sending the request
|
|
462
|
+
*/
|
|
463
|
+
cancelVirtualMachineInspectionRequestOpts(requestParameters: CancelVirtualMachineInspectionRequest): Promise<runtime.RequestOpts>;
|
|
464
|
+
/**
|
|
465
|
+
* Cancel deep inspection for a specific VirtualMachine
|
|
466
|
+
*/
|
|
467
|
+
cancelVirtualMachineInspectionRaw(requestParameters: CancelVirtualMachineInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
468
|
+
/**
|
|
469
|
+
* Cancel deep inspection for a specific VirtualMachine
|
|
470
|
+
*/
|
|
471
|
+
cancelVirtualMachineInspection(requestParameters: CancelVirtualMachineInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
434
472
|
/**
|
|
435
473
|
* Creates request options for deleteLatestLabelGlobally without sending the request
|
|
436
474
|
*/
|
|
@@ -76,6 +76,44 @@ class VirtualMachinesApi extends runtime.BaseAPI {
|
|
|
76
76
|
yield this.batchUpdateLatestVMExclusionRaw(requestParameters, initOverrides);
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Creates request options for cancelVirtualMachineInspection without sending the request
|
|
81
|
+
*/
|
|
82
|
+
cancelVirtualMachineInspectionRequestOpts(requestParameters) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
if (requestParameters['vmId'] == null) {
|
|
85
|
+
throw new runtime.RequiredError('vmId', 'Required parameter "vmId" was null or undefined when calling cancelVirtualMachineInspection().');
|
|
86
|
+
}
|
|
87
|
+
const queryParameters = {};
|
|
88
|
+
const headerParameters = {};
|
|
89
|
+
let urlPath = `/virtualmachines/{vmId}/inspection`;
|
|
90
|
+
urlPath = urlPath.replace('{vmId}', encodeURIComponent(String(requestParameters['vmId'])));
|
|
91
|
+
return {
|
|
92
|
+
path: urlPath,
|
|
93
|
+
method: 'DELETE',
|
|
94
|
+
headers: headerParameters,
|
|
95
|
+
query: queryParameters,
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Cancel deep inspection for a specific VirtualMachine
|
|
101
|
+
*/
|
|
102
|
+
cancelVirtualMachineInspectionRaw(requestParameters, initOverrides) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
const requestOptions = yield this.cancelVirtualMachineInspectionRequestOpts(requestParameters);
|
|
105
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
106
|
+
return new runtime.VoidApiResponse(response);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Cancel deep inspection for a specific VirtualMachine
|
|
111
|
+
*/
|
|
112
|
+
cancelVirtualMachineInspection(requestParameters, initOverrides) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
yield this.cancelVirtualMachineInspectionRaw(requestParameters, initOverrides);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
79
117
|
/**
|
|
80
118
|
* Creates request options for deleteLatestLabelGlobally without sending the request
|
|
81
119
|
*/
|
|
@@ -25,6 +25,12 @@ export interface BatchUpdateLatestVMExclusionRequest {
|
|
|
25
25
|
*/
|
|
26
26
|
batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
|
|
27
27
|
}
|
|
28
|
+
export interface CancelVirtualMachineInspectionRequest {
|
|
29
|
+
/**
|
|
30
|
+
* VirtualMachine ID
|
|
31
|
+
*/
|
|
32
|
+
vmId: string;
|
|
33
|
+
}
|
|
28
34
|
export interface DeleteLatestLabelGloballyRequest {
|
|
29
35
|
/**
|
|
30
36
|
* Label name
|
|
@@ -156,6 +162,26 @@ export interface VirtualMachinesApiInterface {
|
|
|
156
162
|
* Batch update migration exclusion for multiple VMs in the latest collection
|
|
157
163
|
*/
|
|
158
164
|
batchUpdateLatestVMExclusion(requestParameters: BatchUpdateLatestVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
165
|
+
/**
|
|
166
|
+
* Creates request options for cancelVirtualMachineInspection without sending the request
|
|
167
|
+
* @param {string} vmId VirtualMachine ID
|
|
168
|
+
* @throws {RequiredError}
|
|
169
|
+
* @memberof VirtualMachinesApiInterface
|
|
170
|
+
*/
|
|
171
|
+
cancelVirtualMachineInspectionRequestOpts(requestParameters: CancelVirtualMachineInspectionRequest): Promise<runtime.RequestOpts>;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @summary Cancel deep inspection for a specific VirtualMachine
|
|
175
|
+
* @param {string} vmId VirtualMachine ID
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
* @memberof VirtualMachinesApiInterface
|
|
179
|
+
*/
|
|
180
|
+
cancelVirtualMachineInspectionRaw(requestParameters: CancelVirtualMachineInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
181
|
+
/**
|
|
182
|
+
* Cancel deep inspection for a specific VirtualMachine
|
|
183
|
+
*/
|
|
184
|
+
cancelVirtualMachineInspection(requestParameters: CancelVirtualMachineInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
159
185
|
/**
|
|
160
186
|
* Creates request options for deleteLatestLabelGlobally without sending the request
|
|
161
187
|
* @param {string} label Label name
|
|
@@ -431,6 +457,18 @@ export declare class VirtualMachinesApi extends runtime.BaseAPI implements Virtu
|
|
|
431
457
|
* Batch update migration exclusion for multiple VMs in the latest collection
|
|
432
458
|
*/
|
|
433
459
|
batchUpdateLatestVMExclusion(requestParameters: BatchUpdateLatestVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
460
|
+
/**
|
|
461
|
+
* Creates request options for cancelVirtualMachineInspection without sending the request
|
|
462
|
+
*/
|
|
463
|
+
cancelVirtualMachineInspectionRequestOpts(requestParameters: CancelVirtualMachineInspectionRequest): Promise<runtime.RequestOpts>;
|
|
464
|
+
/**
|
|
465
|
+
* Cancel deep inspection for a specific VirtualMachine
|
|
466
|
+
*/
|
|
467
|
+
cancelVirtualMachineInspectionRaw(requestParameters: CancelVirtualMachineInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
468
|
+
/**
|
|
469
|
+
* Cancel deep inspection for a specific VirtualMachine
|
|
470
|
+
*/
|
|
471
|
+
cancelVirtualMachineInspection(requestParameters: CancelVirtualMachineInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
434
472
|
/**
|
|
435
473
|
* Creates request options for deleteLatestLabelGlobally without sending the request
|
|
436
474
|
*/
|
|
@@ -73,6 +73,44 @@ export class VirtualMachinesApi extends runtime.BaseAPI {
|
|
|
73
73
|
yield this.batchUpdateLatestVMExclusionRaw(requestParameters, initOverrides);
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Creates request options for cancelVirtualMachineInspection without sending the request
|
|
78
|
+
*/
|
|
79
|
+
cancelVirtualMachineInspectionRequestOpts(requestParameters) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
if (requestParameters['vmId'] == null) {
|
|
82
|
+
throw new runtime.RequiredError('vmId', 'Required parameter "vmId" was null or undefined when calling cancelVirtualMachineInspection().');
|
|
83
|
+
}
|
|
84
|
+
const queryParameters = {};
|
|
85
|
+
const headerParameters = {};
|
|
86
|
+
let urlPath = `/virtualmachines/{vmId}/inspection`;
|
|
87
|
+
urlPath = urlPath.replace('{vmId}', encodeURIComponent(String(requestParameters['vmId'])));
|
|
88
|
+
return {
|
|
89
|
+
path: urlPath,
|
|
90
|
+
method: 'DELETE',
|
|
91
|
+
headers: headerParameters,
|
|
92
|
+
query: queryParameters,
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Cancel deep inspection for a specific VirtualMachine
|
|
98
|
+
*/
|
|
99
|
+
cancelVirtualMachineInspectionRaw(requestParameters, initOverrides) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
const requestOptions = yield this.cancelVirtualMachineInspectionRequestOpts(requestParameters);
|
|
102
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
103
|
+
return new runtime.VoidApiResponse(response);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Cancel deep inspection for a specific VirtualMachine
|
|
108
|
+
*/
|
|
109
|
+
cancelVirtualMachineInspection(requestParameters, initOverrides) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
yield this.cancelVirtualMachineInspectionRaw(requestParameters, initOverrides);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
76
114
|
/**
|
|
77
115
|
* Creates request options for deleteLatestLabelGlobally without sending the request
|
|
78
116
|
*/
|
|
@@ -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'],
|
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'],
|
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/agent-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,
|
|
@@ -5,6 +5,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
| [**batchUpdateLatestVMExclusion**](VirtualMachinesApi.md#batchupdatelatestvmexclusion) | **POST** /virtualmachines/batch-update-exclusion | Batch update migration exclusion for multiple VMs in the latest collection |
|
|
8
|
+
| [**cancelVirtualMachineInspection**](VirtualMachinesApi.md#cancelvirtualmachineinspection) | **DELETE** /virtualmachines/{vmId}/inspection | Cancel deep inspection for a specific VirtualMachine |
|
|
8
9
|
| [**deleteLatestLabelGlobally**](VirtualMachinesApi.md#deletelatestlabelglobally) | **DELETE** /virtualmachines/labels/{label} | Remove a label from all VMs in the latest collection |
|
|
9
10
|
| [**getLatestVMFilterOptions**](VirtualMachinesApi.md#getlatestvmfilteroptions) | **GET** /virtualmachines/filter-options | Get available filter option values from the latest collection |
|
|
10
11
|
| [**getLatestVMLabels**](VirtualMachinesApi.md#getlatestvmlabels) | **GET** /virtualmachines/labels | Get all distinct labels with counts from the latest collection |
|
|
@@ -88,6 +89,75 @@ No authorization required
|
|
|
88
89
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
89
90
|
|
|
90
91
|
|
|
92
|
+
## cancelVirtualMachineInspection
|
|
93
|
+
|
|
94
|
+
> cancelVirtualMachineInspection(vmId)
|
|
95
|
+
|
|
96
|
+
Cancel deep inspection for a specific VirtualMachine
|
|
97
|
+
|
|
98
|
+
### Example
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
import {
|
|
102
|
+
Configuration,
|
|
103
|
+
VirtualMachinesApi,
|
|
104
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
105
|
+
import type { CancelVirtualMachineInspectionRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
106
|
+
|
|
107
|
+
async function example() {
|
|
108
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
109
|
+
const api = new VirtualMachinesApi();
|
|
110
|
+
|
|
111
|
+
const body = {
|
|
112
|
+
// string | VirtualMachine ID
|
|
113
|
+
vmId: vmId_example,
|
|
114
|
+
} satisfies CancelVirtualMachineInspectionRequest;
|
|
115
|
+
|
|
116
|
+
try {
|
|
117
|
+
const data = await api.cancelVirtualMachineInspection(body);
|
|
118
|
+
console.log(data);
|
|
119
|
+
} catch (error) {
|
|
120
|
+
console.error(error);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Run the test
|
|
125
|
+
example().catch(console.error);
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Parameters
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
| Name | Type | Description | Notes |
|
|
132
|
+
|------------- | ------------- | ------------- | -------------|
|
|
133
|
+
| **vmId** | `string` | VirtualMachine ID | [Defaults to `undefined`] |
|
|
134
|
+
|
|
135
|
+
### Return type
|
|
136
|
+
|
|
137
|
+
`void` (Empty response body)
|
|
138
|
+
|
|
139
|
+
### Authorization
|
|
140
|
+
|
|
141
|
+
No authorization required
|
|
142
|
+
|
|
143
|
+
### HTTP request headers
|
|
144
|
+
|
|
145
|
+
- **Content-Type**: Not defined
|
|
146
|
+
- **Accept**: Not defined
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### HTTP response details
|
|
150
|
+
| Status code | Description | Response headers |
|
|
151
|
+
|-------------|-------------|------------------|
|
|
152
|
+
| **204** | Inspection canceled for the VirtualMachine | - |
|
|
153
|
+
| **400** | Inspector not running | - |
|
|
154
|
+
| **404** | VirtualMachine not found in inspection queue | - |
|
|
155
|
+
| **409** | A collection or report is in progress | - |
|
|
156
|
+
| **500** | Internal server error | - |
|
|
157
|
+
|
|
158
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
159
|
+
|
|
160
|
+
|
|
91
161
|
## deleteLatestLabelGlobally
|
|
92
162
|
|
|
93
163
|
> DeleteLabelGloballyResponse deleteLatestLabelGlobally(label)
|
package/package.json
CHANGED
|
@@ -66,6 +66,13 @@ export interface BatchUpdateLatestVMExclusionRequest {
|
|
|
66
66
|
batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
export interface CancelVirtualMachineInspectionRequest {
|
|
70
|
+
/**
|
|
71
|
+
* VirtualMachine ID
|
|
72
|
+
*/
|
|
73
|
+
vmId: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
69
76
|
export interface DeleteLatestLabelGloballyRequest {
|
|
70
77
|
/**
|
|
71
78
|
* Label name
|
|
@@ -210,6 +217,29 @@ export interface VirtualMachinesApiInterface {
|
|
|
210
217
|
*/
|
|
211
218
|
batchUpdateLatestVMExclusion(requestParameters: BatchUpdateLatestVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
212
219
|
|
|
220
|
+
/**
|
|
221
|
+
* Creates request options for cancelVirtualMachineInspection without sending the request
|
|
222
|
+
* @param {string} vmId VirtualMachine ID
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
* @memberof VirtualMachinesApiInterface
|
|
225
|
+
*/
|
|
226
|
+
cancelVirtualMachineInspectionRequestOpts(requestParameters: CancelVirtualMachineInspectionRequest): Promise<runtime.RequestOpts>;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @summary Cancel deep inspection for a specific VirtualMachine
|
|
231
|
+
* @param {string} vmId VirtualMachine ID
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
* @memberof VirtualMachinesApiInterface
|
|
235
|
+
*/
|
|
236
|
+
cancelVirtualMachineInspectionRaw(requestParameters: CancelVirtualMachineInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Cancel deep inspection for a specific VirtualMachine
|
|
240
|
+
*/
|
|
241
|
+
cancelVirtualMachineInspection(requestParameters: CancelVirtualMachineInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
242
|
+
|
|
213
243
|
/**
|
|
214
244
|
* Creates request options for deleteLatestLabelGlobally without sending the request
|
|
215
245
|
* @param {string} label Label name
|
|
@@ -557,6 +587,50 @@ export class VirtualMachinesApi extends runtime.BaseAPI implements VirtualMachin
|
|
|
557
587
|
await this.batchUpdateLatestVMExclusionRaw(requestParameters, initOverrides);
|
|
558
588
|
}
|
|
559
589
|
|
|
590
|
+
/**
|
|
591
|
+
* Creates request options for cancelVirtualMachineInspection without sending the request
|
|
592
|
+
*/
|
|
593
|
+
async cancelVirtualMachineInspectionRequestOpts(requestParameters: CancelVirtualMachineInspectionRequest): Promise<runtime.RequestOpts> {
|
|
594
|
+
if (requestParameters['vmId'] == null) {
|
|
595
|
+
throw new runtime.RequiredError(
|
|
596
|
+
'vmId',
|
|
597
|
+
'Required parameter "vmId" was null or undefined when calling cancelVirtualMachineInspection().'
|
|
598
|
+
);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
const queryParameters: any = {};
|
|
602
|
+
|
|
603
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
let urlPath = `/virtualmachines/{vmId}/inspection`;
|
|
607
|
+
urlPath = urlPath.replace('{vmId}', encodeURIComponent(String(requestParameters['vmId'])));
|
|
608
|
+
|
|
609
|
+
return {
|
|
610
|
+
path: urlPath,
|
|
611
|
+
method: 'DELETE',
|
|
612
|
+
headers: headerParameters,
|
|
613
|
+
query: queryParameters,
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Cancel deep inspection for a specific VirtualMachine
|
|
619
|
+
*/
|
|
620
|
+
async cancelVirtualMachineInspectionRaw(requestParameters: CancelVirtualMachineInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
621
|
+
const requestOptions = await this.cancelVirtualMachineInspectionRequestOpts(requestParameters);
|
|
622
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
623
|
+
|
|
624
|
+
return new runtime.VoidApiResponse(response);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Cancel deep inspection for a specific VirtualMachine
|
|
629
|
+
*/
|
|
630
|
+
async cancelVirtualMachineInspection(requestParameters: CancelVirtualMachineInspectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
631
|
+
await this.cancelVirtualMachineInspectionRaw(requestParameters, initOverrides);
|
|
632
|
+
}
|
|
633
|
+
|
|
560
634
|
/**
|
|
561
635
|
* Creates request options for deleteLatestLabelGlobally without sending the request
|
|
562
636
|
*/
|
|
@@ -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'],
|
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)),
|