@openshift-migration-advisor/agent-sdk 0.12.0-b2d61b72e086 → 0.12.0-b940fec9f503
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/FILES +22 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +25 -5
- package/dist/apis/DefaultApi.d.ts +369 -41
- package/dist/apis/DefaultApi.js +410 -46
- package/dist/esm/apis/DefaultApi.d.ts +369 -41
- package/dist/esm/apis/DefaultApi.js +410 -46
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -0
- package/dist/esm/models/InspectorStatus.d.ts +0 -17
- package/dist/esm/models/InspectorStatus.js +1 -10
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +14 -0
- package/dist/esm/models/InventoryData.js +6 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
- package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/esm/models/RightsizingCollectRequest.js +12 -12
- package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/esm/models/RightsizingMetricStats.js +3 -3
- package/dist/esm/models/RightsizingReport.d.ts +6 -6
- package/dist/esm/models/RightsizingReport.js +18 -18
- package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/esm/models/RightsizingReportSummary.js +18 -18
- package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +5 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VcenterCredentials.d.ts +12 -0
- package/dist/esm/models/VcenterCredentials.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +30 -6
- package/dist/esm/models/VirtualMachine.js +18 -10
- package/dist/esm/models/VirtualMachineDetail.d.ts +12 -0
- package/dist/esm/models/VirtualMachineDetail.js +4 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/esm/models/VmUtilizationDetails.js +36 -36
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -0
- package/dist/models/InspectorStatus.d.ts +0 -17
- package/dist/models/InspectorStatus.js +1 -10
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +14 -0
- package/dist/models/InventoryData.js +6 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/models/RightsizingClusterListResponse.js +3 -3
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/models/RightsizingClusterUtilization.js +36 -36
- package/dist/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/models/RightsizingCollectRequest.js +12 -12
- package/dist/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/models/RightsizingMetricStats.js +3 -3
- package/dist/models/RightsizingReport.d.ts +6 -6
- package/dist/models/RightsizingReport.js +18 -18
- package/dist/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/models/RightsizingReportSummary.js +18 -18
- package/dist/models/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +5 -0
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/models/VMFilterOptionsResponse.js +66 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VcenterCredentials.d.ts +12 -0
- package/dist/models/VcenterCredentials.js +4 -0
- package/dist/models/VirtualMachine.d.ts +30 -6
- package/dist/models/VirtualMachine.js +18 -10
- package/dist/models/VirtualMachineDetail.d.ts +12 -0
- package/dist/models/VirtualMachineDetail.js +4 -0
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/models/VmUtilizationDetails.js +36 -36
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CollectorStartRequest.md +4 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DefaultApi.md +680 -83
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/InspectorStatus.md +0 -4
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +4 -0
- package/docs/RightsizingClusterListResponse.md +2 -2
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +24 -24
- package/docs/RightsizingCollectRequest.md +12 -12
- package/docs/RightsizingMetricStats.md +2 -2
- package/docs/RightsizingReport.md +12 -12
- package/docs/RightsizingReportSummary.md +12 -12
- package/docs/StartInspectionRequest.md +3 -1
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VcenterCredentials.md +4 -0
- package/docs/VirtualMachine.md +18 -10
- package/docs/VirtualMachineDetail.md +4 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -24
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +806 -118
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +30 -0
- package/src/models/RightsizingClusterListResponse.ts +4 -4
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +48 -48
- package/src/models/RightsizingCollectRequest.ts +18 -18
- package/src/models/RightsizingMetricStats.ts +4 -4
- package/src/models/RightsizingReport.ts +24 -24
- package/src/models/RightsizingReportSummary.ts +24 -24
- package/src/models/StartInspectionRequest.ts +18 -1
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VcenterCredentials.ts +16 -0
- package/src/models/VirtualMachine.ts +48 -16
- package/src/models/VirtualMachineDetail.ts +16 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +48 -48
- package/src/models/index.ts +11 -0
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -23,6 +23,11 @@ import {
|
|
|
23
23
|
AgentStatusFromJSON,
|
|
24
24
|
AgentStatusToJSON,
|
|
25
25
|
} from '../models/AgentStatus.js';
|
|
26
|
+
import {
|
|
27
|
+
type ApplicationListResponse,
|
|
28
|
+
ApplicationListResponseFromJSON,
|
|
29
|
+
ApplicationListResponseToJSON,
|
|
30
|
+
} from '../models/ApplicationListResponse.js';
|
|
26
31
|
import {
|
|
27
32
|
type BenchmarkRun,
|
|
28
33
|
BenchmarkRunFromJSON,
|
|
@@ -48,6 +53,11 @@ import {
|
|
|
48
53
|
DatastoreDetailFromJSON,
|
|
49
54
|
DatastoreDetailToJSON,
|
|
50
55
|
} from '../models/DatastoreDetail.js';
|
|
56
|
+
import {
|
|
57
|
+
type DeleteLabelGloballyResponse,
|
|
58
|
+
DeleteLabelGloballyResponseFromJSON,
|
|
59
|
+
DeleteLabelGloballyResponseToJSON,
|
|
60
|
+
} from '../models/DeleteLabelGloballyResponse.js';
|
|
51
61
|
import {
|
|
52
62
|
type ForecastStats,
|
|
53
63
|
ForecastStatsFromJSON,
|
|
@@ -113,6 +123,11 @@ import {
|
|
|
113
123
|
RightsizingClusterListResponseFromJSON,
|
|
114
124
|
RightsizingClusterListResponseToJSON,
|
|
115
125
|
} from '../models/RightsizingClusterListResponse.js';
|
|
126
|
+
import {
|
|
127
|
+
type RightsizingClusterResponse,
|
|
128
|
+
RightsizingClusterResponseFromJSON,
|
|
129
|
+
RightsizingClusterResponseToJSON,
|
|
130
|
+
} from '../models/RightsizingClusterResponse.js';
|
|
116
131
|
import {
|
|
117
132
|
type RightsizingCollectRequest,
|
|
118
133
|
RightsizingCollectRequestFromJSON,
|
|
@@ -148,6 +163,21 @@ import {
|
|
|
148
163
|
UpdateGroupRequestFromJSON,
|
|
149
164
|
UpdateGroupRequestToJSON,
|
|
150
165
|
} from '../models/UpdateGroupRequest.js';
|
|
166
|
+
import {
|
|
167
|
+
type UpdateLabelVMsRequest,
|
|
168
|
+
UpdateLabelVMsRequestFromJSON,
|
|
169
|
+
UpdateLabelVMsRequestToJSON,
|
|
170
|
+
} from '../models/UpdateLabelVMsRequest.js';
|
|
171
|
+
import {
|
|
172
|
+
type VMFilterOptionsResponse,
|
|
173
|
+
VMFilterOptionsResponseFromJSON,
|
|
174
|
+
VMFilterOptionsResponseToJSON,
|
|
175
|
+
} from '../models/VMFilterOptionsResponse.js';
|
|
176
|
+
import {
|
|
177
|
+
type VMLabelsResponse,
|
|
178
|
+
VMLabelsResponseFromJSON,
|
|
179
|
+
VMLabelsResponseToJSON,
|
|
180
|
+
} from '../models/VMLabelsResponse.js';
|
|
151
181
|
import {
|
|
152
182
|
type VcenterCredentials,
|
|
153
183
|
VcenterCredentialsFromJSON,
|
|
@@ -173,6 +203,11 @@ import {
|
|
|
173
203
|
VirtualMachineListResponseFromJSON,
|
|
174
204
|
VirtualMachineListResponseToJSON,
|
|
175
205
|
} from '../models/VirtualMachineListResponse.js';
|
|
206
|
+
import {
|
|
207
|
+
type VirtualMachineUpdateRequest,
|
|
208
|
+
VirtualMachineUpdateRequestFromJSON,
|
|
209
|
+
VirtualMachineUpdateRequestToJSON,
|
|
210
|
+
} from '../models/VirtualMachineUpdateRequest.js';
|
|
176
211
|
import {
|
|
177
212
|
type VmInspectionStatus,
|
|
178
213
|
VmInspectionStatusFromJSON,
|
|
@@ -196,6 +231,14 @@ export interface DeleteGroupRequest {
|
|
|
196
231
|
id: string;
|
|
197
232
|
}
|
|
198
233
|
|
|
234
|
+
export interface DeleteLabelGloballyRequest {
|
|
235
|
+
label: string;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface GetClusterUtilizationRequest {
|
|
239
|
+
clusterId: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
199
242
|
export interface GetForecasterDatastoresRequest {
|
|
200
243
|
forecasterDatastoresRequest?: ForecasterDatastoresRequest;
|
|
201
244
|
}
|
|
@@ -217,7 +260,6 @@ export interface GetGroupRequest {
|
|
|
217
260
|
|
|
218
261
|
export interface GetInspectorStatusRequest {
|
|
219
262
|
includeVddk?: boolean;
|
|
220
|
-
includeCredentials?: boolean;
|
|
221
263
|
}
|
|
222
264
|
|
|
223
265
|
export interface GetInventoryRequest {
|
|
@@ -230,7 +272,12 @@ export interface GetLatestRightsizingClustersRequest {
|
|
|
230
272
|
}
|
|
231
273
|
|
|
232
274
|
export interface GetRightsizingReportRequest {
|
|
233
|
-
|
|
275
|
+
reportId: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export interface GetRightsizingReportClusterRequest {
|
|
279
|
+
reportId: string;
|
|
280
|
+
clusterId: string;
|
|
234
281
|
}
|
|
235
282
|
|
|
236
283
|
export interface GetRightsizingReportClustersRequest {
|
|
@@ -259,6 +306,11 @@ export interface ListGroupsRequest {
|
|
|
259
306
|
pageSize?: number;
|
|
260
307
|
}
|
|
261
308
|
|
|
309
|
+
export interface ListRightsizingReportClustersRequest {
|
|
310
|
+
reportId: string;
|
|
311
|
+
byExpression?: string;
|
|
312
|
+
}
|
|
313
|
+
|
|
262
314
|
export interface PostForecasterPairCapabilitiesRequest {
|
|
263
315
|
pairCapabilityRequest: PairCapabilityRequest;
|
|
264
316
|
}
|
|
@@ -267,10 +319,6 @@ export interface PutForecasterCredentialsRequest {
|
|
|
267
319
|
vcenterCredentials: VcenterCredentials;
|
|
268
320
|
}
|
|
269
321
|
|
|
270
|
-
export interface PutInspectorCredentialsRequest {
|
|
271
|
-
vcenterCredentials: VcenterCredentials;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
322
|
export interface PutInspectorVddkRequest {
|
|
275
323
|
file: Blob;
|
|
276
324
|
}
|
|
@@ -308,6 +356,20 @@ export interface UpdateGroupOperationRequest {
|
|
|
308
356
|
updateGroupRequest: UpdateGroupRequest;
|
|
309
357
|
}
|
|
310
358
|
|
|
359
|
+
export interface UpdateLabelVMsOperationRequest {
|
|
360
|
+
label: string;
|
|
361
|
+
updateLabelVMsRequest: UpdateLabelVMsRequest;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export interface UpdateVMRequest {
|
|
365
|
+
id: string;
|
|
366
|
+
virtualMachineUpdateRequest: VirtualMachineUpdateRequest;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export interface ValidateInspectorCredentialsRequest {
|
|
370
|
+
vcenterCredentials: VcenterCredentials;
|
|
371
|
+
}
|
|
372
|
+
|
|
311
373
|
/**
|
|
312
374
|
* DefaultApi - interface
|
|
313
375
|
*
|
|
@@ -384,6 +446,29 @@ export interface DefaultApiInterface {
|
|
|
384
446
|
*/
|
|
385
447
|
deleteGroup(requestParameters: DeleteGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
386
448
|
|
|
449
|
+
/**
|
|
450
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
451
|
+
* @param {string} label The label to remove from all VMs
|
|
452
|
+
* @throws {RequiredError}
|
|
453
|
+
* @memberof DefaultApiInterface
|
|
454
|
+
*/
|
|
455
|
+
deleteLabelGloballyRequestOpts(requestParameters: DeleteLabelGloballyRequest): Promise<runtime.RequestOpts>;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
*
|
|
459
|
+
* @summary Delete label from all VMs
|
|
460
|
+
* @param {string} label The label to remove from all VMs
|
|
461
|
+
* @param {*} [options] Override http request option.
|
|
462
|
+
* @throws {RequiredError}
|
|
463
|
+
* @memberof DefaultApiInterface
|
|
464
|
+
*/
|
|
465
|
+
deleteLabelGloballyRaw(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteLabelGloballyResponse>>;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Delete label from all VMs
|
|
469
|
+
*/
|
|
470
|
+
deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
|
|
471
|
+
|
|
387
472
|
/**
|
|
388
473
|
* Creates request options for getAgentStatus without sending the request
|
|
389
474
|
* @throws {RequiredError}
|
|
@@ -405,6 +490,50 @@ export interface DefaultApiInterface {
|
|
|
405
490
|
*/
|
|
406
491
|
getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
|
|
407
492
|
|
|
493
|
+
/**
|
|
494
|
+
* Creates request options for getApplications without sending the request
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
* @memberof DefaultApiInterface
|
|
497
|
+
*/
|
|
498
|
+
getApplicationsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
*
|
|
502
|
+
* @summary List detected applications running on VMs
|
|
503
|
+
* @param {*} [options] Override http request option.
|
|
504
|
+
* @throws {RequiredError}
|
|
505
|
+
* @memberof DefaultApiInterface
|
|
506
|
+
*/
|
|
507
|
+
getApplicationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>>;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* List detected applications running on VMs
|
|
511
|
+
*/
|
|
512
|
+
getApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse>;
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
516
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
517
|
+
* @throws {RequiredError}
|
|
518
|
+
* @memberof DefaultApiInterface
|
|
519
|
+
*/
|
|
520
|
+
getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* @summary Get latest cluster utilization by cluster ID
|
|
525
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
* @memberof DefaultApiInterface
|
|
529
|
+
*/
|
|
530
|
+
getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Get latest cluster utilization by cluster ID
|
|
534
|
+
*/
|
|
535
|
+
getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
536
|
+
|
|
408
537
|
/**
|
|
409
538
|
* Creates request options for getCollectorStatus without sending the request
|
|
410
539
|
* @throws {RequiredError}
|
|
@@ -552,7 +681,6 @@ export interface DefaultApiInterface {
|
|
|
552
681
|
/**
|
|
553
682
|
* Creates request options for getInspectorStatus without sending the request
|
|
554
683
|
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
555
|
-
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
556
684
|
* @throws {RequiredError}
|
|
557
685
|
* @memberof DefaultApiInterface
|
|
558
686
|
*/
|
|
@@ -562,7 +690,6 @@ export interface DefaultApiInterface {
|
|
|
562
690
|
*
|
|
563
691
|
* @summary Get inspector status
|
|
564
692
|
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
565
|
-
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
566
693
|
* @param {*} [options] Override http request option.
|
|
567
694
|
* @throws {RequiredError}
|
|
568
695
|
* @memberof DefaultApiInterface
|
|
@@ -623,6 +750,7 @@ export interface DefaultApiInterface {
|
|
|
623
750
|
/**
|
|
624
751
|
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
625
752
|
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
753
|
+
* @deprecated
|
|
626
754
|
* @throws {RequiredError}
|
|
627
755
|
* @memberof DefaultApiInterface
|
|
628
756
|
*/
|
|
@@ -633,6 +761,7 @@ export interface DefaultApiInterface {
|
|
|
633
761
|
* @summary Get cluster-level utilization aggregates for the latest completed report
|
|
634
762
|
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
635
763
|
* @param {*} [options] Override http request option.
|
|
764
|
+
* @deprecated
|
|
636
765
|
* @throws {RequiredError}
|
|
637
766
|
* @memberof DefaultApiInterface
|
|
638
767
|
*/
|
|
@@ -640,12 +769,13 @@ export interface DefaultApiInterface {
|
|
|
640
769
|
|
|
641
770
|
/**
|
|
642
771
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
772
|
+
* @deprecated
|
|
643
773
|
*/
|
|
644
774
|
getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
645
775
|
|
|
646
776
|
/**
|
|
647
777
|
* Creates request options for getRightsizingReport without sending the request
|
|
648
|
-
* @param {string}
|
|
778
|
+
* @param {string} reportId Report UUID
|
|
649
779
|
* @throws {RequiredError}
|
|
650
780
|
* @memberof DefaultApiInterface
|
|
651
781
|
*/
|
|
@@ -654,7 +784,7 @@ export interface DefaultApiInterface {
|
|
|
654
784
|
/**
|
|
655
785
|
*
|
|
656
786
|
* @summary Get a specific rightsizing report with full VM metrics
|
|
657
|
-
* @param {string}
|
|
787
|
+
* @param {string} reportId Report UUID
|
|
658
788
|
* @param {*} [options] Override http request option.
|
|
659
789
|
* @throws {RequiredError}
|
|
660
790
|
* @memberof DefaultApiInterface
|
|
@@ -666,10 +796,36 @@ export interface DefaultApiInterface {
|
|
|
666
796
|
*/
|
|
667
797
|
getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
|
|
668
798
|
|
|
799
|
+
/**
|
|
800
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
801
|
+
* @param {string} reportId Rightsizing report UUID
|
|
802
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
803
|
+
* @throws {RequiredError}
|
|
804
|
+
* @memberof DefaultApiInterface
|
|
805
|
+
*/
|
|
806
|
+
getRightsizingReportClusterRequestOpts(requestParameters: GetRightsizingReportClusterRequest): Promise<runtime.RequestOpts>;
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
*
|
|
810
|
+
* @summary Get utilization for a specific cluster from a specific report
|
|
811
|
+
* @param {string} reportId Rightsizing report UUID
|
|
812
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
813
|
+
* @param {*} [options] Override http request option.
|
|
814
|
+
* @throws {RequiredError}
|
|
815
|
+
* @memberof DefaultApiInterface
|
|
816
|
+
*/
|
|
817
|
+
getRightsizingReportClusterRaw(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Get utilization for a specific cluster from a specific report
|
|
821
|
+
*/
|
|
822
|
+
getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
823
|
+
|
|
669
824
|
/**
|
|
670
825
|
* Creates request options for getRightsizingReportClusters without sending the request
|
|
671
826
|
* @param {string} reportId Rightsizing report UUID
|
|
672
827
|
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
828
|
+
* @deprecated
|
|
673
829
|
* @throws {RequiredError}
|
|
674
830
|
* @memberof DefaultApiInterface
|
|
675
831
|
*/
|
|
@@ -681,6 +837,7 @@ export interface DefaultApiInterface {
|
|
|
681
837
|
* @param {string} reportId Rightsizing report UUID
|
|
682
838
|
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
683
839
|
* @param {*} [options] Override http request option.
|
|
840
|
+
* @deprecated
|
|
684
841
|
* @throws {RequiredError}
|
|
685
842
|
* @memberof DefaultApiInterface
|
|
686
843
|
*/
|
|
@@ -688,6 +845,7 @@ export interface DefaultApiInterface {
|
|
|
688
845
|
|
|
689
846
|
/**
|
|
690
847
|
* Get cluster-level utilization aggregates for a specific report
|
|
848
|
+
* @deprecated
|
|
691
849
|
*/
|
|
692
850
|
getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
693
851
|
|
|
@@ -714,6 +872,27 @@ export interface DefaultApiInterface {
|
|
|
714
872
|
*/
|
|
715
873
|
getVM(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
|
|
716
874
|
|
|
875
|
+
/**
|
|
876
|
+
* Creates request options for getVMLabels without sending the request
|
|
877
|
+
* @throws {RequiredError}
|
|
878
|
+
* @memberof DefaultApiInterface
|
|
879
|
+
*/
|
|
880
|
+
getVMLabelsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
*
|
|
884
|
+
* @summary Get all distinct labels in use across VMs
|
|
885
|
+
* @param {*} [options] Override http request option.
|
|
886
|
+
* @throws {RequiredError}
|
|
887
|
+
* @memberof DefaultApiInterface
|
|
888
|
+
*/
|
|
889
|
+
getVMLabelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>>;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Get all distinct labels in use across VMs
|
|
893
|
+
*/
|
|
894
|
+
getVMLabels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse>;
|
|
895
|
+
|
|
717
896
|
/**
|
|
718
897
|
* Creates request options for getVMUtilization without sending the request
|
|
719
898
|
* @param {string} id VirtualMachine MoRef ID
|
|
@@ -766,6 +945,27 @@ export interface DefaultApiInterface {
|
|
|
766
945
|
*/
|
|
767
946
|
getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
768
947
|
|
|
948
|
+
/**
|
|
949
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
950
|
+
* @throws {RequiredError}
|
|
951
|
+
* @memberof DefaultApiInterface
|
|
952
|
+
*/
|
|
953
|
+
getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
*
|
|
957
|
+
* @summary Get distinct filter option values for VMs
|
|
958
|
+
* @param {*} [options] Override http request option.
|
|
959
|
+
* @throws {RequiredError}
|
|
960
|
+
* @memberof DefaultApiInterface
|
|
961
|
+
*/
|
|
962
|
+
getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Get distinct filter option values for VMs
|
|
966
|
+
*/
|
|
967
|
+
getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
|
|
968
|
+
|
|
769
969
|
/**
|
|
770
970
|
* Creates request options for getVersion without sending the request
|
|
771
971
|
* @throws {RequiredError}
|
|
@@ -814,6 +1014,31 @@ export interface DefaultApiInterface {
|
|
|
814
1014
|
*/
|
|
815
1015
|
listGroups(requestParameters: ListGroupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupListResponse>;
|
|
816
1016
|
|
|
1017
|
+
/**
|
|
1018
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1019
|
+
* @param {string} reportId Rightsizing report UUID
|
|
1020
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
1021
|
+
* @throws {RequiredError}
|
|
1022
|
+
* @memberof DefaultApiInterface
|
|
1023
|
+
*/
|
|
1024
|
+
listRightsizingReportClustersRequestOpts(requestParameters: ListRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
*
|
|
1028
|
+
* @summary Get cluster-level utilization aggregates for a specific report
|
|
1029
|
+
* @param {string} reportId Rightsizing report UUID
|
|
1030
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
1031
|
+
* @param {*} [options] Override http request option.
|
|
1032
|
+
* @throws {RequiredError}
|
|
1033
|
+
* @memberof DefaultApiInterface
|
|
1034
|
+
*/
|
|
1035
|
+
listRightsizingReportClustersRaw(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1039
|
+
*/
|
|
1040
|
+
listRightsizingReportClusters(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
1041
|
+
|
|
817
1042
|
/**
|
|
818
1043
|
* Creates request options for listRightsizingReports without sending the request
|
|
819
1044
|
* @throws {RequiredError}
|
|
@@ -883,29 +1108,6 @@ export interface DefaultApiInterface {
|
|
|
883
1108
|
*/
|
|
884
1109
|
putForecasterCredentials(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
885
1110
|
|
|
886
|
-
/**
|
|
887
|
-
* Creates request options for putInspectorCredentials without sending the request
|
|
888
|
-
* @param {VcenterCredentials} vcenterCredentials
|
|
889
|
-
* @throws {RequiredError}
|
|
890
|
-
* @memberof DefaultApiInterface
|
|
891
|
-
*/
|
|
892
|
-
putInspectorCredentialsRequestOpts(requestParameters: PutInspectorCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
893
|
-
|
|
894
|
-
/**
|
|
895
|
-
*
|
|
896
|
-
* @summary Set or replace inspector credentials
|
|
897
|
-
* @param {VcenterCredentials} vcenterCredentials
|
|
898
|
-
* @param {*} [options] Override http request option.
|
|
899
|
-
* @throws {RequiredError}
|
|
900
|
-
* @memberof DefaultApiInterface
|
|
901
|
-
*/
|
|
902
|
-
putInspectorCredentialsRaw(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
903
|
-
|
|
904
|
-
/**
|
|
905
|
-
* Set or replace inspector credentials
|
|
906
|
-
*/
|
|
907
|
-
putInspectorCredentials(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
908
|
-
|
|
909
1111
|
/**
|
|
910
1112
|
* Creates request options for putInspectorVddk without sending the request
|
|
911
1113
|
* @param {Blob} file VDDK tarball
|
|
@@ -1181,6 +1383,79 @@ export interface DefaultApiInterface {
|
|
|
1181
1383
|
*/
|
|
1182
1384
|
updateGroup(requestParameters: UpdateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
1183
1385
|
|
|
1386
|
+
/**
|
|
1387
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
1388
|
+
* @param {string} label The label to modify
|
|
1389
|
+
* @param {UpdateLabelVMsRequest} updateLabelVMsRequest
|
|
1390
|
+
* @throws {RequiredError}
|
|
1391
|
+
* @memberof DefaultApiInterface
|
|
1392
|
+
*/
|
|
1393
|
+
updateLabelVMsRequestOpts(requestParameters: UpdateLabelVMsOperationRequest): Promise<runtime.RequestOpts>;
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
*
|
|
1397
|
+
* @summary Modify label VM membership (add/remove label to/from VMs)
|
|
1398
|
+
* @param {string} label The label to modify
|
|
1399
|
+
* @param {UpdateLabelVMsRequest} updateLabelVMsRequest
|
|
1400
|
+
* @param {*} [options] Override http request option.
|
|
1401
|
+
* @throws {RequiredError}
|
|
1402
|
+
* @memberof DefaultApiInterface
|
|
1403
|
+
*/
|
|
1404
|
+
updateLabelVMsRaw(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1408
|
+
*/
|
|
1409
|
+
updateLabelVMs(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* Creates request options for updateVM without sending the request
|
|
1413
|
+
* @param {string} id VirtualMachine id
|
|
1414
|
+
* @param {VirtualMachineUpdateRequest} virtualMachineUpdateRequest
|
|
1415
|
+
* @throws {RequiredError}
|
|
1416
|
+
* @memberof DefaultApiInterface
|
|
1417
|
+
*/
|
|
1418
|
+
updateVMRequestOpts(requestParameters: UpdateVMRequest): Promise<runtime.RequestOpts>;
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
*
|
|
1422
|
+
* @summary Update VM properties
|
|
1423
|
+
* @param {string} id VirtualMachine id
|
|
1424
|
+
* @param {VirtualMachineUpdateRequest} virtualMachineUpdateRequest
|
|
1425
|
+
* @param {*} [options] Override http request option.
|
|
1426
|
+
* @throws {RequiredError}
|
|
1427
|
+
* @memberof DefaultApiInterface
|
|
1428
|
+
*/
|
|
1429
|
+
updateVMRaw(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* Update VM properties
|
|
1433
|
+
*/
|
|
1434
|
+
updateVM(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
1438
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
1439
|
+
* @throws {RequiredError}
|
|
1440
|
+
* @memberof DefaultApiInterface
|
|
1441
|
+
*/
|
|
1442
|
+
validateInspectorCredentialsRequestOpts(requestParameters: ValidateInspectorCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
1443
|
+
|
|
1444
|
+
/**
|
|
1445
|
+
*
|
|
1446
|
+
* @summary Validate vCenter credentials for inspector
|
|
1447
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
1448
|
+
* @param {*} [options] Override http request option.
|
|
1449
|
+
* @throws {RequiredError}
|
|
1450
|
+
* @memberof DefaultApiInterface
|
|
1451
|
+
*/
|
|
1452
|
+
validateInspectorCredentialsRaw(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* Validate vCenter credentials for inspector
|
|
1456
|
+
*/
|
|
1457
|
+
validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1458
|
+
|
|
1184
1459
|
}
|
|
1185
1460
|
|
|
1186
1461
|
/**
|
|
@@ -1324,52 +1599,60 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1324
1599
|
}
|
|
1325
1600
|
|
|
1326
1601
|
/**
|
|
1327
|
-
* Creates request options for
|
|
1602
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
1328
1603
|
*/
|
|
1329
|
-
async
|
|
1604
|
+
async deleteLabelGloballyRequestOpts(requestParameters: DeleteLabelGloballyRequest): Promise<runtime.RequestOpts> {
|
|
1605
|
+
if (requestParameters['label'] == null) {
|
|
1606
|
+
throw new runtime.RequiredError(
|
|
1607
|
+
'label',
|
|
1608
|
+
'Required parameter "label" was null or undefined when calling deleteLabelGlobally().'
|
|
1609
|
+
);
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1330
1612
|
const queryParameters: any = {};
|
|
1331
1613
|
|
|
1332
1614
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1333
1615
|
|
|
1334
1616
|
|
|
1335
|
-
let urlPath = `/
|
|
1617
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1618
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1336
1619
|
|
|
1337
1620
|
return {
|
|
1338
1621
|
path: urlPath,
|
|
1339
|
-
method: '
|
|
1622
|
+
method: 'DELETE',
|
|
1340
1623
|
headers: headerParameters,
|
|
1341
1624
|
query: queryParameters,
|
|
1342
1625
|
};
|
|
1343
1626
|
}
|
|
1344
1627
|
|
|
1345
1628
|
/**
|
|
1346
|
-
*
|
|
1629
|
+
* Delete label from all VMs
|
|
1347
1630
|
*/
|
|
1348
|
-
async
|
|
1349
|
-
const requestOptions = await this.
|
|
1631
|
+
async deleteLabelGloballyRaw(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteLabelGloballyResponse>> {
|
|
1632
|
+
const requestOptions = await this.deleteLabelGloballyRequestOpts(requestParameters);
|
|
1350
1633
|
const response = await this.request(requestOptions, initOverrides);
|
|
1351
1634
|
|
|
1352
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1635
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLabelGloballyResponseFromJSON(jsonValue));
|
|
1353
1636
|
}
|
|
1354
1637
|
|
|
1355
1638
|
/**
|
|
1356
|
-
*
|
|
1639
|
+
* Delete label from all VMs
|
|
1357
1640
|
*/
|
|
1358
|
-
async
|
|
1359
|
-
const response = await this.
|
|
1641
|
+
async deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse> {
|
|
1642
|
+
const response = await this.deleteLabelGloballyRaw(requestParameters, initOverrides);
|
|
1360
1643
|
return await response.value();
|
|
1361
1644
|
}
|
|
1362
1645
|
|
|
1363
1646
|
/**
|
|
1364
|
-
* Creates request options for
|
|
1647
|
+
* Creates request options for getAgentStatus without sending the request
|
|
1365
1648
|
*/
|
|
1366
|
-
async
|
|
1649
|
+
async getAgentStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1367
1650
|
const queryParameters: any = {};
|
|
1368
1651
|
|
|
1369
1652
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1370
1653
|
|
|
1371
1654
|
|
|
1372
|
-
let urlPath = `/
|
|
1655
|
+
let urlPath = `/agent`;
|
|
1373
1656
|
|
|
1374
1657
|
return {
|
|
1375
1658
|
path: urlPath,
|
|
@@ -1380,48 +1663,167 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1380
1663
|
}
|
|
1381
1664
|
|
|
1382
1665
|
/**
|
|
1383
|
-
* Get
|
|
1666
|
+
* Get agent status
|
|
1384
1667
|
*/
|
|
1385
|
-
async
|
|
1386
|
-
const requestOptions = await this.
|
|
1668
|
+
async getAgentStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentStatus>> {
|
|
1669
|
+
const requestOptions = await this.getAgentStatusRequestOpts();
|
|
1387
1670
|
const response = await this.request(requestOptions, initOverrides);
|
|
1388
1671
|
|
|
1389
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1672
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgentStatusFromJSON(jsonValue));
|
|
1390
1673
|
}
|
|
1391
1674
|
|
|
1392
1675
|
/**
|
|
1393
|
-
* Get
|
|
1676
|
+
* Get agent status
|
|
1394
1677
|
*/
|
|
1395
|
-
async
|
|
1396
|
-
const response = await this.
|
|
1678
|
+
async getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus> {
|
|
1679
|
+
const response = await this.getAgentStatusRaw(initOverrides);
|
|
1397
1680
|
return await response.value();
|
|
1398
1681
|
}
|
|
1399
1682
|
|
|
1400
1683
|
/**
|
|
1401
|
-
* Creates request options for
|
|
1684
|
+
* Creates request options for getApplications without sending the request
|
|
1402
1685
|
*/
|
|
1403
|
-
async
|
|
1686
|
+
async getApplicationsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1404
1687
|
const queryParameters: any = {};
|
|
1405
1688
|
|
|
1406
1689
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1407
1690
|
|
|
1408
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1409
|
-
|
|
1410
1691
|
|
|
1411
|
-
let urlPath = `/
|
|
1692
|
+
let urlPath = `/applications`;
|
|
1412
1693
|
|
|
1413
1694
|
return {
|
|
1414
1695
|
path: urlPath,
|
|
1415
|
-
method: '
|
|
1696
|
+
method: 'GET',
|
|
1416
1697
|
headers: headerParameters,
|
|
1417
1698
|
query: queryParameters,
|
|
1418
|
-
body: ForecasterDatastoresRequestToJSON(requestParameters['forecasterDatastoresRequest']),
|
|
1419
1699
|
};
|
|
1420
1700
|
}
|
|
1421
1701
|
|
|
1422
1702
|
/**
|
|
1423
|
-
*
|
|
1424
|
-
|
|
1703
|
+
* List detected applications running on VMs
|
|
1704
|
+
*/
|
|
1705
|
+
async getApplicationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>> {
|
|
1706
|
+
const requestOptions = await this.getApplicationsRequestOpts();
|
|
1707
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1708
|
+
|
|
1709
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationListResponseFromJSON(jsonValue));
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
/**
|
|
1713
|
+
* List detected applications running on VMs
|
|
1714
|
+
*/
|
|
1715
|
+
async getApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse> {
|
|
1716
|
+
const response = await this.getApplicationsRaw(initOverrides);
|
|
1717
|
+
return await response.value();
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
1722
|
+
*/
|
|
1723
|
+
async getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts> {
|
|
1724
|
+
if (requestParameters['clusterId'] == null) {
|
|
1725
|
+
throw new runtime.RequiredError(
|
|
1726
|
+
'clusterId',
|
|
1727
|
+
'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().'
|
|
1728
|
+
);
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
const queryParameters: any = {};
|
|
1732
|
+
|
|
1733
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1734
|
+
|
|
1735
|
+
|
|
1736
|
+
let urlPath = `/clusters/{cluster_id}/utilization`;
|
|
1737
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
1738
|
+
|
|
1739
|
+
return {
|
|
1740
|
+
path: urlPath,
|
|
1741
|
+
method: 'GET',
|
|
1742
|
+
headers: headerParameters,
|
|
1743
|
+
query: queryParameters,
|
|
1744
|
+
};
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* Get latest cluster utilization by cluster ID
|
|
1749
|
+
*/
|
|
1750
|
+
async getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>> {
|
|
1751
|
+
const requestOptions = await this.getClusterUtilizationRequestOpts(requestParameters);
|
|
1752
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1753
|
+
|
|
1754
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* Get latest cluster utilization by cluster ID
|
|
1759
|
+
*/
|
|
1760
|
+
async getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse> {
|
|
1761
|
+
const response = await this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
1762
|
+
return await response.value();
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* Creates request options for getCollectorStatus without sending the request
|
|
1767
|
+
*/
|
|
1768
|
+
async getCollectorStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1769
|
+
const queryParameters: any = {};
|
|
1770
|
+
|
|
1771
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
let urlPath = `/collector`;
|
|
1775
|
+
|
|
1776
|
+
return {
|
|
1777
|
+
path: urlPath,
|
|
1778
|
+
method: 'GET',
|
|
1779
|
+
headers: headerParameters,
|
|
1780
|
+
query: queryParameters,
|
|
1781
|
+
};
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* Get collector status
|
|
1786
|
+
*/
|
|
1787
|
+
async getCollectorStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>> {
|
|
1788
|
+
const requestOptions = await this.getCollectorStatusRequestOpts();
|
|
1789
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1790
|
+
|
|
1791
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CollectorStatusFromJSON(jsonValue));
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* Get collector status
|
|
1796
|
+
*/
|
|
1797
|
+
async getCollectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus> {
|
|
1798
|
+
const response = await this.getCollectorStatusRaw(initOverrides);
|
|
1799
|
+
return await response.value();
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Creates request options for getForecasterDatastores without sending the request
|
|
1804
|
+
*/
|
|
1805
|
+
async getForecasterDatastoresRequestOpts(requestParameters: GetForecasterDatastoresRequest): Promise<runtime.RequestOpts> {
|
|
1806
|
+
const queryParameters: any = {};
|
|
1807
|
+
|
|
1808
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1809
|
+
|
|
1810
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
let urlPath = `/forecaster/datastores`;
|
|
1814
|
+
|
|
1815
|
+
return {
|
|
1816
|
+
path: urlPath,
|
|
1817
|
+
method: 'POST',
|
|
1818
|
+
headers: headerParameters,
|
|
1819
|
+
query: queryParameters,
|
|
1820
|
+
body: ForecasterDatastoresRequestToJSON(requestParameters['forecasterDatastoresRequest']),
|
|
1821
|
+
};
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
1826
|
+
* List available datastores
|
|
1425
1827
|
*/
|
|
1426
1828
|
async getForecasterDatastoresRaw(requestParameters: GetForecasterDatastoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DatastoreDetail>>> {
|
|
1427
1829
|
const requestOptions = await this.getForecasterDatastoresRequestOpts(requestParameters);
|
|
@@ -1638,10 +2040,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1638
2040
|
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
1639
2041
|
}
|
|
1640
2042
|
|
|
1641
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
1642
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
2043
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1646
2044
|
|
|
1647
2045
|
|
|
@@ -1757,6 +2155,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1757
2155
|
|
|
1758
2156
|
/**
|
|
1759
2157
|
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
2158
|
+
* @deprecated
|
|
1760
2159
|
*/
|
|
1761
2160
|
async getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts> {
|
|
1762
2161
|
const queryParameters: any = {};
|
|
@@ -1780,6 +2179,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1780
2179
|
|
|
1781
2180
|
/**
|
|
1782
2181
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
2182
|
+
* @deprecated
|
|
1783
2183
|
*/
|
|
1784
2184
|
async getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
1785
2185
|
const requestOptions = await this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
@@ -1790,6 +2190,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1790
2190
|
|
|
1791
2191
|
/**
|
|
1792
2192
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
2193
|
+
* @deprecated
|
|
1793
2194
|
*/
|
|
1794
2195
|
async getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
1795
2196
|
const response = await this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
@@ -1800,10 +2201,10 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1800
2201
|
* Creates request options for getRightsizingReport without sending the request
|
|
1801
2202
|
*/
|
|
1802
2203
|
async getRightsizingReportRequestOpts(requestParameters: GetRightsizingReportRequest): Promise<runtime.RequestOpts> {
|
|
1803
|
-
if (requestParameters['
|
|
2204
|
+
if (requestParameters['reportId'] == null) {
|
|
1804
2205
|
throw new runtime.RequiredError(
|
|
1805
|
-
'
|
|
1806
|
-
'Required parameter "
|
|
2206
|
+
'reportId',
|
|
2207
|
+
'Required parameter "reportId" was null or undefined when calling getRightsizingReport().'
|
|
1807
2208
|
);
|
|
1808
2209
|
}
|
|
1809
2210
|
|
|
@@ -1812,8 +2213,8 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1812
2213
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1813
2214
|
|
|
1814
2215
|
|
|
1815
|
-
let urlPath = `/rightsizing/{
|
|
1816
|
-
urlPath = urlPath.replace('{
|
|
2216
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
2217
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1817
2218
|
|
|
1818
2219
|
return {
|
|
1819
2220
|
path: urlPath,
|
|
@@ -1841,8 +2242,62 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1841
2242
|
return await response.value();
|
|
1842
2243
|
}
|
|
1843
2244
|
|
|
2245
|
+
/**
|
|
2246
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
2247
|
+
*/
|
|
2248
|
+
async getRightsizingReportClusterRequestOpts(requestParameters: GetRightsizingReportClusterRequest): Promise<runtime.RequestOpts> {
|
|
2249
|
+
if (requestParameters['reportId'] == null) {
|
|
2250
|
+
throw new runtime.RequiredError(
|
|
2251
|
+
'reportId',
|
|
2252
|
+
'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().'
|
|
2253
|
+
);
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
if (requestParameters['clusterId'] == null) {
|
|
2257
|
+
throw new runtime.RequiredError(
|
|
2258
|
+
'clusterId',
|
|
2259
|
+
'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().'
|
|
2260
|
+
);
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
const queryParameters: any = {};
|
|
2264
|
+
|
|
2265
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2266
|
+
|
|
2267
|
+
|
|
2268
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
2269
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
2270
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
2271
|
+
|
|
2272
|
+
return {
|
|
2273
|
+
path: urlPath,
|
|
2274
|
+
method: 'GET',
|
|
2275
|
+
headers: headerParameters,
|
|
2276
|
+
query: queryParameters,
|
|
2277
|
+
};
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
/**
|
|
2281
|
+
* Get utilization for a specific cluster from a specific report
|
|
2282
|
+
*/
|
|
2283
|
+
async getRightsizingReportClusterRaw(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>> {
|
|
2284
|
+
const requestOptions = await this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
2285
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2286
|
+
|
|
2287
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* Get utilization for a specific cluster from a specific report
|
|
2292
|
+
*/
|
|
2293
|
+
async getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse> {
|
|
2294
|
+
const response = await this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
2295
|
+
return await response.value();
|
|
2296
|
+
}
|
|
2297
|
+
|
|
1844
2298
|
/**
|
|
1845
2299
|
* Creates request options for getRightsizingReportClusters without sending the request
|
|
2300
|
+
* @deprecated
|
|
1846
2301
|
*/
|
|
1847
2302
|
async getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
|
|
1848
2303
|
if (requestParameters['reportId'] == null) {
|
|
@@ -1874,6 +2329,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1874
2329
|
|
|
1875
2330
|
/**
|
|
1876
2331
|
* Get cluster-level utilization aggregates for a specific report
|
|
2332
|
+
* @deprecated
|
|
1877
2333
|
*/
|
|
1878
2334
|
async getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
1879
2335
|
const requestOptions = await this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
@@ -1884,6 +2340,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1884
2340
|
|
|
1885
2341
|
/**
|
|
1886
2342
|
* Get cluster-level utilization aggregates for a specific report
|
|
2343
|
+
* @deprecated
|
|
1887
2344
|
*/
|
|
1888
2345
|
async getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
1889
2346
|
const response = await this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
@@ -1935,6 +2392,43 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1935
2392
|
return await response.value();
|
|
1936
2393
|
}
|
|
1937
2394
|
|
|
2395
|
+
/**
|
|
2396
|
+
* Creates request options for getVMLabels without sending the request
|
|
2397
|
+
*/
|
|
2398
|
+
async getVMLabelsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2399
|
+
const queryParameters: any = {};
|
|
2400
|
+
|
|
2401
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2402
|
+
|
|
2403
|
+
|
|
2404
|
+
let urlPath = `/vms/labels`;
|
|
2405
|
+
|
|
2406
|
+
return {
|
|
2407
|
+
path: urlPath,
|
|
2408
|
+
method: 'GET',
|
|
2409
|
+
headers: headerParameters,
|
|
2410
|
+
query: queryParameters,
|
|
2411
|
+
};
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
/**
|
|
2415
|
+
* Get all distinct labels in use across VMs
|
|
2416
|
+
*/
|
|
2417
|
+
async getVMLabelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>> {
|
|
2418
|
+
const requestOptions = await this.getVMLabelsRequestOpts();
|
|
2419
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2420
|
+
|
|
2421
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMLabelsResponseFromJSON(jsonValue));
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
/**
|
|
2425
|
+
* Get all distinct labels in use across VMs
|
|
2426
|
+
*/
|
|
2427
|
+
async getVMLabels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse> {
|
|
2428
|
+
const response = await this.getVMLabelsRaw(initOverrides);
|
|
2429
|
+
return await response.value();
|
|
2430
|
+
}
|
|
2431
|
+
|
|
1938
2432
|
/**
|
|
1939
2433
|
* Creates request options for getVMUtilization without sending the request
|
|
1940
2434
|
*/
|
|
@@ -2033,6 +2527,43 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2033
2527
|
return await response.value();
|
|
2034
2528
|
}
|
|
2035
2529
|
|
|
2530
|
+
/**
|
|
2531
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
2532
|
+
*/
|
|
2533
|
+
async getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2534
|
+
const queryParameters: any = {};
|
|
2535
|
+
|
|
2536
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2537
|
+
|
|
2538
|
+
|
|
2539
|
+
let urlPath = `/vms/filter-options`;
|
|
2540
|
+
|
|
2541
|
+
return {
|
|
2542
|
+
path: urlPath,
|
|
2543
|
+
method: 'GET',
|
|
2544
|
+
headers: headerParameters,
|
|
2545
|
+
query: queryParameters,
|
|
2546
|
+
};
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
/**
|
|
2550
|
+
* Get distinct filter option values for VMs
|
|
2551
|
+
*/
|
|
2552
|
+
async getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>> {
|
|
2553
|
+
const requestOptions = await this.getVMsFilterOptionsRequestOpts();
|
|
2554
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2555
|
+
|
|
2556
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
/**
|
|
2560
|
+
* Get distinct filter option values for VMs
|
|
2561
|
+
*/
|
|
2562
|
+
async getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse> {
|
|
2563
|
+
const response = await this.getVMsFilterOptionsRaw(initOverrides);
|
|
2564
|
+
return await response.value();
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2036
2567
|
/**
|
|
2037
2568
|
* Creates request options for getVersion without sending the request
|
|
2038
2569
|
*/
|
|
@@ -2119,6 +2650,55 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2119
2650
|
return await response.value();
|
|
2120
2651
|
}
|
|
2121
2652
|
|
|
2653
|
+
/**
|
|
2654
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
2655
|
+
*/
|
|
2656
|
+
async listRightsizingReportClustersRequestOpts(requestParameters: ListRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
|
|
2657
|
+
if (requestParameters['reportId'] == null) {
|
|
2658
|
+
throw new runtime.RequiredError(
|
|
2659
|
+
'reportId',
|
|
2660
|
+
'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().'
|
|
2661
|
+
);
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
const queryParameters: any = {};
|
|
2665
|
+
|
|
2666
|
+
if (requestParameters['byExpression'] != null) {
|
|
2667
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2671
|
+
|
|
2672
|
+
|
|
2673
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
2674
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
2675
|
+
|
|
2676
|
+
return {
|
|
2677
|
+
path: urlPath,
|
|
2678
|
+
method: 'GET',
|
|
2679
|
+
headers: headerParameters,
|
|
2680
|
+
query: queryParameters,
|
|
2681
|
+
};
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
/**
|
|
2685
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
2686
|
+
*/
|
|
2687
|
+
async listRightsizingReportClustersRaw(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
2688
|
+
const requestOptions = await this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
2689
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2690
|
+
|
|
2691
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
/**
|
|
2695
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
2696
|
+
*/
|
|
2697
|
+
async listRightsizingReportClusters(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
2698
|
+
const response = await this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
2699
|
+
return await response.value();
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2122
2702
|
/**
|
|
2123
2703
|
* Creates request options for listRightsizingReports without sending the request
|
|
2124
2704
|
*/
|
|
@@ -2253,52 +2833,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2253
2833
|
await this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
2254
2834
|
}
|
|
2255
2835
|
|
|
2256
|
-
/**
|
|
2257
|
-
* Creates request options for putInspectorCredentials without sending the request
|
|
2258
|
-
*/
|
|
2259
|
-
async putInspectorCredentialsRequestOpts(requestParameters: PutInspectorCredentialsRequest): Promise<runtime.RequestOpts> {
|
|
2260
|
-
if (requestParameters['vcenterCredentials'] == null) {
|
|
2261
|
-
throw new runtime.RequiredError(
|
|
2262
|
-
'vcenterCredentials',
|
|
2263
|
-
'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().'
|
|
2264
|
-
);
|
|
2265
|
-
}
|
|
2266
|
-
|
|
2267
|
-
const queryParameters: any = {};
|
|
2268
|
-
|
|
2269
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2270
|
-
|
|
2271
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
let urlPath = `/inspector/credentials`;
|
|
2275
|
-
|
|
2276
|
-
return {
|
|
2277
|
-
path: urlPath,
|
|
2278
|
-
method: 'PUT',
|
|
2279
|
-
headers: headerParameters,
|
|
2280
|
-
query: queryParameters,
|
|
2281
|
-
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
2282
|
-
};
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
|
-
/**
|
|
2286
|
-
* Set or replace inspector credentials
|
|
2287
|
-
*/
|
|
2288
|
-
async putInspectorCredentialsRaw(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
2289
|
-
const requestOptions = await this.putInspectorCredentialsRequestOpts(requestParameters);
|
|
2290
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
2291
|
-
|
|
2292
|
-
return new runtime.VoidApiResponse(response);
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
|
-
/**
|
|
2296
|
-
* Set or replace inspector credentials
|
|
2297
|
-
*/
|
|
2298
|
-
async putInspectorCredentials(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
2299
|
-
await this.putInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
2300
|
-
}
|
|
2301
|
-
|
|
2302
2836
|
/**
|
|
2303
2837
|
* Creates request options for putInspectorVddk without sending the request
|
|
2304
2838
|
*/
|
|
@@ -2860,4 +3394,158 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2860
3394
|
return await response.value();
|
|
2861
3395
|
}
|
|
2862
3396
|
|
|
3397
|
+
/**
|
|
3398
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
3399
|
+
*/
|
|
3400
|
+
async updateLabelVMsRequestOpts(requestParameters: UpdateLabelVMsOperationRequest): Promise<runtime.RequestOpts> {
|
|
3401
|
+
if (requestParameters['label'] == null) {
|
|
3402
|
+
throw new runtime.RequiredError(
|
|
3403
|
+
'label',
|
|
3404
|
+
'Required parameter "label" was null or undefined when calling updateLabelVMs().'
|
|
3405
|
+
);
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
3409
|
+
throw new runtime.RequiredError(
|
|
3410
|
+
'updateLabelVMsRequest',
|
|
3411
|
+
'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().'
|
|
3412
|
+
);
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
const queryParameters: any = {};
|
|
3416
|
+
|
|
3417
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3418
|
+
|
|
3419
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3420
|
+
|
|
3421
|
+
|
|
3422
|
+
let urlPath = `/vms/labels/{label}`;
|
|
3423
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
3424
|
+
|
|
3425
|
+
return {
|
|
3426
|
+
path: urlPath,
|
|
3427
|
+
method: 'PATCH',
|
|
3428
|
+
headers: headerParameters,
|
|
3429
|
+
query: queryParameters,
|
|
3430
|
+
body: UpdateLabelVMsRequestToJSON(requestParameters['updateLabelVMsRequest']),
|
|
3431
|
+
};
|
|
3432
|
+
}
|
|
3433
|
+
|
|
3434
|
+
/**
|
|
3435
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
3436
|
+
*/
|
|
3437
|
+
async updateLabelVMsRaw(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3438
|
+
const requestOptions = await this.updateLabelVMsRequestOpts(requestParameters);
|
|
3439
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3440
|
+
|
|
3441
|
+
return new runtime.VoidApiResponse(response);
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
/**
|
|
3445
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
3446
|
+
*/
|
|
3447
|
+
async updateLabelVMs(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3448
|
+
await this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
/**
|
|
3452
|
+
* Creates request options for updateVM without sending the request
|
|
3453
|
+
*/
|
|
3454
|
+
async updateVMRequestOpts(requestParameters: UpdateVMRequest): Promise<runtime.RequestOpts> {
|
|
3455
|
+
if (requestParameters['id'] == null) {
|
|
3456
|
+
throw new runtime.RequiredError(
|
|
3457
|
+
'id',
|
|
3458
|
+
'Required parameter "id" was null or undefined when calling updateVM().'
|
|
3459
|
+
);
|
|
3460
|
+
}
|
|
3461
|
+
|
|
3462
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
3463
|
+
throw new runtime.RequiredError(
|
|
3464
|
+
'virtualMachineUpdateRequest',
|
|
3465
|
+
'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().'
|
|
3466
|
+
);
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3469
|
+
const queryParameters: any = {};
|
|
3470
|
+
|
|
3471
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3472
|
+
|
|
3473
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3474
|
+
|
|
3475
|
+
|
|
3476
|
+
let urlPath = `/vms/{id}`;
|
|
3477
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
3478
|
+
|
|
3479
|
+
return {
|
|
3480
|
+
path: urlPath,
|
|
3481
|
+
method: 'PATCH',
|
|
3482
|
+
headers: headerParameters,
|
|
3483
|
+
query: queryParameters,
|
|
3484
|
+
body: VirtualMachineUpdateRequestToJSON(requestParameters['virtualMachineUpdateRequest']),
|
|
3485
|
+
};
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3488
|
+
/**
|
|
3489
|
+
* Update VM properties
|
|
3490
|
+
*/
|
|
3491
|
+
async updateVMRaw(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3492
|
+
const requestOptions = await this.updateVMRequestOpts(requestParameters);
|
|
3493
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3494
|
+
|
|
3495
|
+
return new runtime.VoidApiResponse(response);
|
|
3496
|
+
}
|
|
3497
|
+
|
|
3498
|
+
/**
|
|
3499
|
+
* Update VM properties
|
|
3500
|
+
*/
|
|
3501
|
+
async updateVM(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3502
|
+
await this.updateVMRaw(requestParameters, initOverrides);
|
|
3503
|
+
}
|
|
3504
|
+
|
|
3505
|
+
/**
|
|
3506
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
3507
|
+
*/
|
|
3508
|
+
async validateInspectorCredentialsRequestOpts(requestParameters: ValidateInspectorCredentialsRequest): Promise<runtime.RequestOpts> {
|
|
3509
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
3510
|
+
throw new runtime.RequiredError(
|
|
3511
|
+
'vcenterCredentials',
|
|
3512
|
+
'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().'
|
|
3513
|
+
);
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
const queryParameters: any = {};
|
|
3517
|
+
|
|
3518
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3519
|
+
|
|
3520
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3521
|
+
|
|
3522
|
+
|
|
3523
|
+
let urlPath = `/inspector/credentials`;
|
|
3524
|
+
|
|
3525
|
+
return {
|
|
3526
|
+
path: urlPath,
|
|
3527
|
+
method: 'POST',
|
|
3528
|
+
headers: headerParameters,
|
|
3529
|
+
query: queryParameters,
|
|
3530
|
+
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
3531
|
+
};
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
/**
|
|
3535
|
+
* Validate vCenter credentials for inspector
|
|
3536
|
+
*/
|
|
3537
|
+
async validateInspectorCredentialsRaw(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3538
|
+
const requestOptions = await this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
3539
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3540
|
+
|
|
3541
|
+
return new runtime.VoidApiResponse(response);
|
|
3542
|
+
}
|
|
3543
|
+
|
|
3544
|
+
/**
|
|
3545
|
+
* Validate vCenter credentials for inspector
|
|
3546
|
+
*/
|
|
3547
|
+
async validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3548
|
+
await this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
3549
|
+
}
|
|
3550
|
+
|
|
2863
3551
|
}
|