@openshift-migration-advisor/agent-sdk 0.12.0-b2d61b72e086 → 0.12.0-b4cc95d9b3d0
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 +16 -0
- package/README.md +20 -4
- package/dist/apis/DefaultApi.d.ts +338 -41
- package/dist/apis/DefaultApi.js +374 -46
- package/dist/esm/apis/DefaultApi.d.ts +338 -41
- package/dist/esm/apis/DefaultApi.js +374 -46
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- 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/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 +50 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +55 -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/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 +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- 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/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 +50 -0
- package/dist/models/VMFilterOptionsResponse.js +62 -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/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 +8 -0
- package/dist/models/index.js +8 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DefaultApi.md +624 -86
- 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 +40 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.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 +713 -88
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -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 +93 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.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 +8 -0
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -48,6 +48,11 @@ import {
|
|
|
48
48
|
DatastoreDetailFromJSON,
|
|
49
49
|
DatastoreDetailToJSON,
|
|
50
50
|
} from '../models/DatastoreDetail.js';
|
|
51
|
+
import {
|
|
52
|
+
type DeleteLabelGloballyResponse,
|
|
53
|
+
DeleteLabelGloballyResponseFromJSON,
|
|
54
|
+
DeleteLabelGloballyResponseToJSON,
|
|
55
|
+
} from '../models/DeleteLabelGloballyResponse.js';
|
|
51
56
|
import {
|
|
52
57
|
type ForecastStats,
|
|
53
58
|
ForecastStatsFromJSON,
|
|
@@ -113,6 +118,11 @@ import {
|
|
|
113
118
|
RightsizingClusterListResponseFromJSON,
|
|
114
119
|
RightsizingClusterListResponseToJSON,
|
|
115
120
|
} from '../models/RightsizingClusterListResponse.js';
|
|
121
|
+
import {
|
|
122
|
+
type RightsizingClusterResponse,
|
|
123
|
+
RightsizingClusterResponseFromJSON,
|
|
124
|
+
RightsizingClusterResponseToJSON,
|
|
125
|
+
} from '../models/RightsizingClusterResponse.js';
|
|
116
126
|
import {
|
|
117
127
|
type RightsizingCollectRequest,
|
|
118
128
|
RightsizingCollectRequestFromJSON,
|
|
@@ -148,6 +158,21 @@ import {
|
|
|
148
158
|
UpdateGroupRequestFromJSON,
|
|
149
159
|
UpdateGroupRequestToJSON,
|
|
150
160
|
} from '../models/UpdateGroupRequest.js';
|
|
161
|
+
import {
|
|
162
|
+
type UpdateLabelVMsRequest,
|
|
163
|
+
UpdateLabelVMsRequestFromJSON,
|
|
164
|
+
UpdateLabelVMsRequestToJSON,
|
|
165
|
+
} from '../models/UpdateLabelVMsRequest.js';
|
|
166
|
+
import {
|
|
167
|
+
type VMFilterOptionsResponse,
|
|
168
|
+
VMFilterOptionsResponseFromJSON,
|
|
169
|
+
VMFilterOptionsResponseToJSON,
|
|
170
|
+
} from '../models/VMFilterOptionsResponse.js';
|
|
171
|
+
import {
|
|
172
|
+
type VMLabelsResponse,
|
|
173
|
+
VMLabelsResponseFromJSON,
|
|
174
|
+
VMLabelsResponseToJSON,
|
|
175
|
+
} from '../models/VMLabelsResponse.js';
|
|
151
176
|
import {
|
|
152
177
|
type VcenterCredentials,
|
|
153
178
|
VcenterCredentialsFromJSON,
|
|
@@ -173,6 +198,11 @@ import {
|
|
|
173
198
|
VirtualMachineListResponseFromJSON,
|
|
174
199
|
VirtualMachineListResponseToJSON,
|
|
175
200
|
} from '../models/VirtualMachineListResponse.js';
|
|
201
|
+
import {
|
|
202
|
+
type VirtualMachineUpdateRequest,
|
|
203
|
+
VirtualMachineUpdateRequestFromJSON,
|
|
204
|
+
VirtualMachineUpdateRequestToJSON,
|
|
205
|
+
} from '../models/VirtualMachineUpdateRequest.js';
|
|
176
206
|
import {
|
|
177
207
|
type VmInspectionStatus,
|
|
178
208
|
VmInspectionStatusFromJSON,
|
|
@@ -196,6 +226,14 @@ export interface DeleteGroupRequest {
|
|
|
196
226
|
id: string;
|
|
197
227
|
}
|
|
198
228
|
|
|
229
|
+
export interface DeleteLabelGloballyRequest {
|
|
230
|
+
label: string;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface GetClusterUtilizationRequest {
|
|
234
|
+
clusterId: string;
|
|
235
|
+
}
|
|
236
|
+
|
|
199
237
|
export interface GetForecasterDatastoresRequest {
|
|
200
238
|
forecasterDatastoresRequest?: ForecasterDatastoresRequest;
|
|
201
239
|
}
|
|
@@ -217,7 +255,6 @@ export interface GetGroupRequest {
|
|
|
217
255
|
|
|
218
256
|
export interface GetInspectorStatusRequest {
|
|
219
257
|
includeVddk?: boolean;
|
|
220
|
-
includeCredentials?: boolean;
|
|
221
258
|
}
|
|
222
259
|
|
|
223
260
|
export interface GetInventoryRequest {
|
|
@@ -230,7 +267,12 @@ export interface GetLatestRightsizingClustersRequest {
|
|
|
230
267
|
}
|
|
231
268
|
|
|
232
269
|
export interface GetRightsizingReportRequest {
|
|
233
|
-
|
|
270
|
+
reportId: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export interface GetRightsizingReportClusterRequest {
|
|
274
|
+
reportId: string;
|
|
275
|
+
clusterId: string;
|
|
234
276
|
}
|
|
235
277
|
|
|
236
278
|
export interface GetRightsizingReportClustersRequest {
|
|
@@ -259,6 +301,11 @@ export interface ListGroupsRequest {
|
|
|
259
301
|
pageSize?: number;
|
|
260
302
|
}
|
|
261
303
|
|
|
304
|
+
export interface ListRightsizingReportClustersRequest {
|
|
305
|
+
reportId: string;
|
|
306
|
+
byExpression?: string;
|
|
307
|
+
}
|
|
308
|
+
|
|
262
309
|
export interface PostForecasterPairCapabilitiesRequest {
|
|
263
310
|
pairCapabilityRequest: PairCapabilityRequest;
|
|
264
311
|
}
|
|
@@ -267,10 +314,6 @@ export interface PutForecasterCredentialsRequest {
|
|
|
267
314
|
vcenterCredentials: VcenterCredentials;
|
|
268
315
|
}
|
|
269
316
|
|
|
270
|
-
export interface PutInspectorCredentialsRequest {
|
|
271
|
-
vcenterCredentials: VcenterCredentials;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
317
|
export interface PutInspectorVddkRequest {
|
|
275
318
|
file: Blob;
|
|
276
319
|
}
|
|
@@ -308,6 +351,20 @@ export interface UpdateGroupOperationRequest {
|
|
|
308
351
|
updateGroupRequest: UpdateGroupRequest;
|
|
309
352
|
}
|
|
310
353
|
|
|
354
|
+
export interface UpdateLabelVMsOperationRequest {
|
|
355
|
+
label: string;
|
|
356
|
+
updateLabelVMsRequest: UpdateLabelVMsRequest;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export interface UpdateVMRequest {
|
|
360
|
+
id: string;
|
|
361
|
+
virtualMachineUpdateRequest: VirtualMachineUpdateRequest;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export interface ValidateInspectorCredentialsRequest {
|
|
365
|
+
vcenterCredentials: VcenterCredentials;
|
|
366
|
+
}
|
|
367
|
+
|
|
311
368
|
/**
|
|
312
369
|
* DefaultApi - interface
|
|
313
370
|
*
|
|
@@ -384,6 +441,29 @@ export interface DefaultApiInterface {
|
|
|
384
441
|
*/
|
|
385
442
|
deleteGroup(requestParameters: DeleteGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
386
443
|
|
|
444
|
+
/**
|
|
445
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
446
|
+
* @param {string} label The label to remove from all VMs
|
|
447
|
+
* @throws {RequiredError}
|
|
448
|
+
* @memberof DefaultApiInterface
|
|
449
|
+
*/
|
|
450
|
+
deleteLabelGloballyRequestOpts(requestParameters: DeleteLabelGloballyRequest): Promise<runtime.RequestOpts>;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
*
|
|
454
|
+
* @summary Delete label from all VMs
|
|
455
|
+
* @param {string} label The label to remove from all VMs
|
|
456
|
+
* @param {*} [options] Override http request option.
|
|
457
|
+
* @throws {RequiredError}
|
|
458
|
+
* @memberof DefaultApiInterface
|
|
459
|
+
*/
|
|
460
|
+
deleteLabelGloballyRaw(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteLabelGloballyResponse>>;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Delete label from all VMs
|
|
464
|
+
*/
|
|
465
|
+
deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
|
|
466
|
+
|
|
387
467
|
/**
|
|
388
468
|
* Creates request options for getAgentStatus without sending the request
|
|
389
469
|
* @throws {RequiredError}
|
|
@@ -405,6 +485,29 @@ export interface DefaultApiInterface {
|
|
|
405
485
|
*/
|
|
406
486
|
getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
|
|
407
487
|
|
|
488
|
+
/**
|
|
489
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
490
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
* @memberof DefaultApiInterface
|
|
493
|
+
*/
|
|
494
|
+
getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
*
|
|
498
|
+
* @summary Get latest cluster utilization by cluster ID
|
|
499
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
* @memberof DefaultApiInterface
|
|
503
|
+
*/
|
|
504
|
+
getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Get latest cluster utilization by cluster ID
|
|
508
|
+
*/
|
|
509
|
+
getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
510
|
+
|
|
408
511
|
/**
|
|
409
512
|
* Creates request options for getCollectorStatus without sending the request
|
|
410
513
|
* @throws {RequiredError}
|
|
@@ -552,7 +655,6 @@ export interface DefaultApiInterface {
|
|
|
552
655
|
/**
|
|
553
656
|
* Creates request options for getInspectorStatus without sending the request
|
|
554
657
|
* @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
658
|
* @throws {RequiredError}
|
|
557
659
|
* @memberof DefaultApiInterface
|
|
558
660
|
*/
|
|
@@ -562,7 +664,6 @@ export interface DefaultApiInterface {
|
|
|
562
664
|
*
|
|
563
665
|
* @summary Get inspector status
|
|
564
666
|
* @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
667
|
* @param {*} [options] Override http request option.
|
|
567
668
|
* @throws {RequiredError}
|
|
568
669
|
* @memberof DefaultApiInterface
|
|
@@ -623,6 +724,7 @@ export interface DefaultApiInterface {
|
|
|
623
724
|
/**
|
|
624
725
|
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
625
726
|
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
727
|
+
* @deprecated
|
|
626
728
|
* @throws {RequiredError}
|
|
627
729
|
* @memberof DefaultApiInterface
|
|
628
730
|
*/
|
|
@@ -633,6 +735,7 @@ export interface DefaultApiInterface {
|
|
|
633
735
|
* @summary Get cluster-level utilization aggregates for the latest completed report
|
|
634
736
|
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
635
737
|
* @param {*} [options] Override http request option.
|
|
738
|
+
* @deprecated
|
|
636
739
|
* @throws {RequiredError}
|
|
637
740
|
* @memberof DefaultApiInterface
|
|
638
741
|
*/
|
|
@@ -640,12 +743,13 @@ export interface DefaultApiInterface {
|
|
|
640
743
|
|
|
641
744
|
/**
|
|
642
745
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
746
|
+
* @deprecated
|
|
643
747
|
*/
|
|
644
748
|
getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
645
749
|
|
|
646
750
|
/**
|
|
647
751
|
* Creates request options for getRightsizingReport without sending the request
|
|
648
|
-
* @param {string}
|
|
752
|
+
* @param {string} reportId Report UUID
|
|
649
753
|
* @throws {RequiredError}
|
|
650
754
|
* @memberof DefaultApiInterface
|
|
651
755
|
*/
|
|
@@ -654,7 +758,7 @@ export interface DefaultApiInterface {
|
|
|
654
758
|
/**
|
|
655
759
|
*
|
|
656
760
|
* @summary Get a specific rightsizing report with full VM metrics
|
|
657
|
-
* @param {string}
|
|
761
|
+
* @param {string} reportId Report UUID
|
|
658
762
|
* @param {*} [options] Override http request option.
|
|
659
763
|
* @throws {RequiredError}
|
|
660
764
|
* @memberof DefaultApiInterface
|
|
@@ -666,10 +770,36 @@ export interface DefaultApiInterface {
|
|
|
666
770
|
*/
|
|
667
771
|
getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
|
|
668
772
|
|
|
773
|
+
/**
|
|
774
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
775
|
+
* @param {string} reportId Rightsizing report UUID
|
|
776
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
777
|
+
* @throws {RequiredError}
|
|
778
|
+
* @memberof DefaultApiInterface
|
|
779
|
+
*/
|
|
780
|
+
getRightsizingReportClusterRequestOpts(requestParameters: GetRightsizingReportClusterRequest): Promise<runtime.RequestOpts>;
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
*
|
|
784
|
+
* @summary Get utilization for a specific cluster from a specific report
|
|
785
|
+
* @param {string} reportId Rightsizing report UUID
|
|
786
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
787
|
+
* @param {*} [options] Override http request option.
|
|
788
|
+
* @throws {RequiredError}
|
|
789
|
+
* @memberof DefaultApiInterface
|
|
790
|
+
*/
|
|
791
|
+
getRightsizingReportClusterRaw(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* Get utilization for a specific cluster from a specific report
|
|
795
|
+
*/
|
|
796
|
+
getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
797
|
+
|
|
669
798
|
/**
|
|
670
799
|
* Creates request options for getRightsizingReportClusters without sending the request
|
|
671
800
|
* @param {string} reportId Rightsizing report UUID
|
|
672
801
|
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
802
|
+
* @deprecated
|
|
673
803
|
* @throws {RequiredError}
|
|
674
804
|
* @memberof DefaultApiInterface
|
|
675
805
|
*/
|
|
@@ -681,6 +811,7 @@ export interface DefaultApiInterface {
|
|
|
681
811
|
* @param {string} reportId Rightsizing report UUID
|
|
682
812
|
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
683
813
|
* @param {*} [options] Override http request option.
|
|
814
|
+
* @deprecated
|
|
684
815
|
* @throws {RequiredError}
|
|
685
816
|
* @memberof DefaultApiInterface
|
|
686
817
|
*/
|
|
@@ -688,6 +819,7 @@ export interface DefaultApiInterface {
|
|
|
688
819
|
|
|
689
820
|
/**
|
|
690
821
|
* Get cluster-level utilization aggregates for a specific report
|
|
822
|
+
* @deprecated
|
|
691
823
|
*/
|
|
692
824
|
getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
693
825
|
|
|
@@ -714,6 +846,27 @@ export interface DefaultApiInterface {
|
|
|
714
846
|
*/
|
|
715
847
|
getVM(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
|
|
716
848
|
|
|
849
|
+
/**
|
|
850
|
+
* Creates request options for getVMLabels without sending the request
|
|
851
|
+
* @throws {RequiredError}
|
|
852
|
+
* @memberof DefaultApiInterface
|
|
853
|
+
*/
|
|
854
|
+
getVMLabelsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
*
|
|
858
|
+
* @summary Get all distinct labels in use across VMs
|
|
859
|
+
* @param {*} [options] Override http request option.
|
|
860
|
+
* @throws {RequiredError}
|
|
861
|
+
* @memberof DefaultApiInterface
|
|
862
|
+
*/
|
|
863
|
+
getVMLabelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>>;
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* Get all distinct labels in use across VMs
|
|
867
|
+
*/
|
|
868
|
+
getVMLabels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse>;
|
|
869
|
+
|
|
717
870
|
/**
|
|
718
871
|
* Creates request options for getVMUtilization without sending the request
|
|
719
872
|
* @param {string} id VirtualMachine MoRef ID
|
|
@@ -766,6 +919,27 @@ export interface DefaultApiInterface {
|
|
|
766
919
|
*/
|
|
767
920
|
getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
768
921
|
|
|
922
|
+
/**
|
|
923
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
924
|
+
* @throws {RequiredError}
|
|
925
|
+
* @memberof DefaultApiInterface
|
|
926
|
+
*/
|
|
927
|
+
getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
*
|
|
931
|
+
* @summary Get distinct filter option values for VMs
|
|
932
|
+
* @param {*} [options] Override http request option.
|
|
933
|
+
* @throws {RequiredError}
|
|
934
|
+
* @memberof DefaultApiInterface
|
|
935
|
+
*/
|
|
936
|
+
getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Get distinct filter option values for VMs
|
|
940
|
+
*/
|
|
941
|
+
getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
|
|
942
|
+
|
|
769
943
|
/**
|
|
770
944
|
* Creates request options for getVersion without sending the request
|
|
771
945
|
* @throws {RequiredError}
|
|
@@ -814,6 +988,31 @@ export interface DefaultApiInterface {
|
|
|
814
988
|
*/
|
|
815
989
|
listGroups(requestParameters: ListGroupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupListResponse>;
|
|
816
990
|
|
|
991
|
+
/**
|
|
992
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
993
|
+
* @param {string} reportId Rightsizing report UUID
|
|
994
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
995
|
+
* @throws {RequiredError}
|
|
996
|
+
* @memberof DefaultApiInterface
|
|
997
|
+
*/
|
|
998
|
+
listRightsizingReportClustersRequestOpts(requestParameters: ListRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
*
|
|
1002
|
+
* @summary Get cluster-level utilization aggregates for a specific report
|
|
1003
|
+
* @param {string} reportId Rightsizing report UUID
|
|
1004
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
1005
|
+
* @param {*} [options] Override http request option.
|
|
1006
|
+
* @throws {RequiredError}
|
|
1007
|
+
* @memberof DefaultApiInterface
|
|
1008
|
+
*/
|
|
1009
|
+
listRightsizingReportClustersRaw(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
1010
|
+
|
|
1011
|
+
/**
|
|
1012
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1013
|
+
*/
|
|
1014
|
+
listRightsizingReportClusters(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
1015
|
+
|
|
817
1016
|
/**
|
|
818
1017
|
* Creates request options for listRightsizingReports without sending the request
|
|
819
1018
|
* @throws {RequiredError}
|
|
@@ -883,29 +1082,6 @@ export interface DefaultApiInterface {
|
|
|
883
1082
|
*/
|
|
884
1083
|
putForecasterCredentials(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
885
1084
|
|
|
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
1085
|
/**
|
|
910
1086
|
* Creates request options for putInspectorVddk without sending the request
|
|
911
1087
|
* @param {Blob} file VDDK tarball
|
|
@@ -1181,6 +1357,79 @@ export interface DefaultApiInterface {
|
|
|
1181
1357
|
*/
|
|
1182
1358
|
updateGroup(requestParameters: UpdateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
1183
1359
|
|
|
1360
|
+
/**
|
|
1361
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
1362
|
+
* @param {string} label The label to modify
|
|
1363
|
+
* @param {UpdateLabelVMsRequest} updateLabelVMsRequest
|
|
1364
|
+
* @throws {RequiredError}
|
|
1365
|
+
* @memberof DefaultApiInterface
|
|
1366
|
+
*/
|
|
1367
|
+
updateLabelVMsRequestOpts(requestParameters: UpdateLabelVMsOperationRequest): Promise<runtime.RequestOpts>;
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
*
|
|
1371
|
+
* @summary Modify label VM membership (add/remove label to/from VMs)
|
|
1372
|
+
* @param {string} label The label to modify
|
|
1373
|
+
* @param {UpdateLabelVMsRequest} updateLabelVMsRequest
|
|
1374
|
+
* @param {*} [options] Override http request option.
|
|
1375
|
+
* @throws {RequiredError}
|
|
1376
|
+
* @memberof DefaultApiInterface
|
|
1377
|
+
*/
|
|
1378
|
+
updateLabelVMsRaw(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1382
|
+
*/
|
|
1383
|
+
updateLabelVMs(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1384
|
+
|
|
1385
|
+
/**
|
|
1386
|
+
* Creates request options for updateVM without sending the request
|
|
1387
|
+
* @param {string} id VirtualMachine id
|
|
1388
|
+
* @param {VirtualMachineUpdateRequest} virtualMachineUpdateRequest
|
|
1389
|
+
* @throws {RequiredError}
|
|
1390
|
+
* @memberof DefaultApiInterface
|
|
1391
|
+
*/
|
|
1392
|
+
updateVMRequestOpts(requestParameters: UpdateVMRequest): Promise<runtime.RequestOpts>;
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
*
|
|
1396
|
+
* @summary Update VM properties
|
|
1397
|
+
* @param {string} id VirtualMachine id
|
|
1398
|
+
* @param {VirtualMachineUpdateRequest} virtualMachineUpdateRequest
|
|
1399
|
+
* @param {*} [options] Override http request option.
|
|
1400
|
+
* @throws {RequiredError}
|
|
1401
|
+
* @memberof DefaultApiInterface
|
|
1402
|
+
*/
|
|
1403
|
+
updateVMRaw(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* Update VM properties
|
|
1407
|
+
*/
|
|
1408
|
+
updateVM(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
1412
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
1413
|
+
* @throws {RequiredError}
|
|
1414
|
+
* @memberof DefaultApiInterface
|
|
1415
|
+
*/
|
|
1416
|
+
validateInspectorCredentialsRequestOpts(requestParameters: ValidateInspectorCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
*
|
|
1420
|
+
* @summary Validate vCenter credentials for inspector
|
|
1421
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
1422
|
+
* @param {*} [options] Override http request option.
|
|
1423
|
+
* @throws {RequiredError}
|
|
1424
|
+
* @memberof DefaultApiInterface
|
|
1425
|
+
*/
|
|
1426
|
+
validateInspectorCredentialsRaw(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* Validate vCenter credentials for inspector
|
|
1430
|
+
*/
|
|
1431
|
+
validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1432
|
+
|
|
1184
1433
|
}
|
|
1185
1434
|
|
|
1186
1435
|
/**
|
|
@@ -1323,6 +1572,51 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1323
1572
|
await this.deleteGroupRaw(requestParameters, initOverrides);
|
|
1324
1573
|
}
|
|
1325
1574
|
|
|
1575
|
+
/**
|
|
1576
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
1577
|
+
*/
|
|
1578
|
+
async deleteLabelGloballyRequestOpts(requestParameters: DeleteLabelGloballyRequest): Promise<runtime.RequestOpts> {
|
|
1579
|
+
if (requestParameters['label'] == null) {
|
|
1580
|
+
throw new runtime.RequiredError(
|
|
1581
|
+
'label',
|
|
1582
|
+
'Required parameter "label" was null or undefined when calling deleteLabelGlobally().'
|
|
1583
|
+
);
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
const queryParameters: any = {};
|
|
1587
|
+
|
|
1588
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1592
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1593
|
+
|
|
1594
|
+
return {
|
|
1595
|
+
path: urlPath,
|
|
1596
|
+
method: 'DELETE',
|
|
1597
|
+
headers: headerParameters,
|
|
1598
|
+
query: queryParameters,
|
|
1599
|
+
};
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* Delete label from all VMs
|
|
1604
|
+
*/
|
|
1605
|
+
async deleteLabelGloballyRaw(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteLabelGloballyResponse>> {
|
|
1606
|
+
const requestOptions = await this.deleteLabelGloballyRequestOpts(requestParameters);
|
|
1607
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1608
|
+
|
|
1609
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLabelGloballyResponseFromJSON(jsonValue));
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
/**
|
|
1613
|
+
* Delete label from all VMs
|
|
1614
|
+
*/
|
|
1615
|
+
async deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse> {
|
|
1616
|
+
const response = await this.deleteLabelGloballyRaw(requestParameters, initOverrides);
|
|
1617
|
+
return await response.value();
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1326
1620
|
/**
|
|
1327
1621
|
* Creates request options for getAgentStatus without sending the request
|
|
1328
1622
|
*/
|
|
@@ -1360,6 +1654,51 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1360
1654
|
return await response.value();
|
|
1361
1655
|
}
|
|
1362
1656
|
|
|
1657
|
+
/**
|
|
1658
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
1659
|
+
*/
|
|
1660
|
+
async getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts> {
|
|
1661
|
+
if (requestParameters['clusterId'] == null) {
|
|
1662
|
+
throw new runtime.RequiredError(
|
|
1663
|
+
'clusterId',
|
|
1664
|
+
'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().'
|
|
1665
|
+
);
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
const queryParameters: any = {};
|
|
1669
|
+
|
|
1670
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1671
|
+
|
|
1672
|
+
|
|
1673
|
+
let urlPath = `/clusters/{cluster_id}/utilization`;
|
|
1674
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
1675
|
+
|
|
1676
|
+
return {
|
|
1677
|
+
path: urlPath,
|
|
1678
|
+
method: 'GET',
|
|
1679
|
+
headers: headerParameters,
|
|
1680
|
+
query: queryParameters,
|
|
1681
|
+
};
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
/**
|
|
1685
|
+
* Get latest cluster utilization by cluster ID
|
|
1686
|
+
*/
|
|
1687
|
+
async getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>> {
|
|
1688
|
+
const requestOptions = await this.getClusterUtilizationRequestOpts(requestParameters);
|
|
1689
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1690
|
+
|
|
1691
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* Get latest cluster utilization by cluster ID
|
|
1696
|
+
*/
|
|
1697
|
+
async getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse> {
|
|
1698
|
+
const response = await this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
1699
|
+
return await response.value();
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1363
1702
|
/**
|
|
1364
1703
|
* Creates request options for getCollectorStatus without sending the request
|
|
1365
1704
|
*/
|
|
@@ -1638,10 +1977,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1638
1977
|
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
1639
1978
|
}
|
|
1640
1979
|
|
|
1641
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
1642
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
1980
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1646
1981
|
|
|
1647
1982
|
|
|
@@ -1757,6 +2092,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1757
2092
|
|
|
1758
2093
|
/**
|
|
1759
2094
|
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
2095
|
+
* @deprecated
|
|
1760
2096
|
*/
|
|
1761
2097
|
async getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts> {
|
|
1762
2098
|
const queryParameters: any = {};
|
|
@@ -1780,6 +2116,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1780
2116
|
|
|
1781
2117
|
/**
|
|
1782
2118
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
2119
|
+
* @deprecated
|
|
1783
2120
|
*/
|
|
1784
2121
|
async getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
1785
2122
|
const requestOptions = await this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
@@ -1790,6 +2127,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1790
2127
|
|
|
1791
2128
|
/**
|
|
1792
2129
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
2130
|
+
* @deprecated
|
|
1793
2131
|
*/
|
|
1794
2132
|
async getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
1795
2133
|
const response = await this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
@@ -1800,10 +2138,10 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1800
2138
|
* Creates request options for getRightsizingReport without sending the request
|
|
1801
2139
|
*/
|
|
1802
2140
|
async getRightsizingReportRequestOpts(requestParameters: GetRightsizingReportRequest): Promise<runtime.RequestOpts> {
|
|
1803
|
-
if (requestParameters['
|
|
2141
|
+
if (requestParameters['reportId'] == null) {
|
|
1804
2142
|
throw new runtime.RequiredError(
|
|
1805
|
-
'
|
|
1806
|
-
'Required parameter "
|
|
2143
|
+
'reportId',
|
|
2144
|
+
'Required parameter "reportId" was null or undefined when calling getRightsizingReport().'
|
|
1807
2145
|
);
|
|
1808
2146
|
}
|
|
1809
2147
|
|
|
@@ -1812,8 +2150,8 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1812
2150
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1813
2151
|
|
|
1814
2152
|
|
|
1815
|
-
let urlPath = `/rightsizing/{
|
|
1816
|
-
urlPath = urlPath.replace('{
|
|
2153
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
2154
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1817
2155
|
|
|
1818
2156
|
return {
|
|
1819
2157
|
path: urlPath,
|
|
@@ -1841,8 +2179,62 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1841
2179
|
return await response.value();
|
|
1842
2180
|
}
|
|
1843
2181
|
|
|
2182
|
+
/**
|
|
2183
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
2184
|
+
*/
|
|
2185
|
+
async getRightsizingReportClusterRequestOpts(requestParameters: GetRightsizingReportClusterRequest): Promise<runtime.RequestOpts> {
|
|
2186
|
+
if (requestParameters['reportId'] == null) {
|
|
2187
|
+
throw new runtime.RequiredError(
|
|
2188
|
+
'reportId',
|
|
2189
|
+
'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().'
|
|
2190
|
+
);
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
if (requestParameters['clusterId'] == null) {
|
|
2194
|
+
throw new runtime.RequiredError(
|
|
2195
|
+
'clusterId',
|
|
2196
|
+
'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().'
|
|
2197
|
+
);
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
const queryParameters: any = {};
|
|
2201
|
+
|
|
2202
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2203
|
+
|
|
2204
|
+
|
|
2205
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
2206
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
2207
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
2208
|
+
|
|
2209
|
+
return {
|
|
2210
|
+
path: urlPath,
|
|
2211
|
+
method: 'GET',
|
|
2212
|
+
headers: headerParameters,
|
|
2213
|
+
query: queryParameters,
|
|
2214
|
+
};
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
/**
|
|
2218
|
+
* Get utilization for a specific cluster from a specific report
|
|
2219
|
+
*/
|
|
2220
|
+
async getRightsizingReportClusterRaw(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>> {
|
|
2221
|
+
const requestOptions = await this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
2222
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2223
|
+
|
|
2224
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
/**
|
|
2228
|
+
* Get utilization for a specific cluster from a specific report
|
|
2229
|
+
*/
|
|
2230
|
+
async getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse> {
|
|
2231
|
+
const response = await this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
2232
|
+
return await response.value();
|
|
2233
|
+
}
|
|
2234
|
+
|
|
1844
2235
|
/**
|
|
1845
2236
|
* Creates request options for getRightsizingReportClusters without sending the request
|
|
2237
|
+
* @deprecated
|
|
1846
2238
|
*/
|
|
1847
2239
|
async getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
|
|
1848
2240
|
if (requestParameters['reportId'] == null) {
|
|
@@ -1874,6 +2266,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1874
2266
|
|
|
1875
2267
|
/**
|
|
1876
2268
|
* Get cluster-level utilization aggregates for a specific report
|
|
2269
|
+
* @deprecated
|
|
1877
2270
|
*/
|
|
1878
2271
|
async getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
1879
2272
|
const requestOptions = await this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
@@ -1884,6 +2277,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1884
2277
|
|
|
1885
2278
|
/**
|
|
1886
2279
|
* Get cluster-level utilization aggregates for a specific report
|
|
2280
|
+
* @deprecated
|
|
1887
2281
|
*/
|
|
1888
2282
|
async getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
1889
2283
|
const response = await this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
@@ -1935,6 +2329,43 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1935
2329
|
return await response.value();
|
|
1936
2330
|
}
|
|
1937
2331
|
|
|
2332
|
+
/**
|
|
2333
|
+
* Creates request options for getVMLabels without sending the request
|
|
2334
|
+
*/
|
|
2335
|
+
async getVMLabelsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2336
|
+
const queryParameters: any = {};
|
|
2337
|
+
|
|
2338
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2339
|
+
|
|
2340
|
+
|
|
2341
|
+
let urlPath = `/vms/labels`;
|
|
2342
|
+
|
|
2343
|
+
return {
|
|
2344
|
+
path: urlPath,
|
|
2345
|
+
method: 'GET',
|
|
2346
|
+
headers: headerParameters,
|
|
2347
|
+
query: queryParameters,
|
|
2348
|
+
};
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
/**
|
|
2352
|
+
* Get all distinct labels in use across VMs
|
|
2353
|
+
*/
|
|
2354
|
+
async getVMLabelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>> {
|
|
2355
|
+
const requestOptions = await this.getVMLabelsRequestOpts();
|
|
2356
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2357
|
+
|
|
2358
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMLabelsResponseFromJSON(jsonValue));
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
/**
|
|
2362
|
+
* Get all distinct labels in use across VMs
|
|
2363
|
+
*/
|
|
2364
|
+
async getVMLabels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse> {
|
|
2365
|
+
const response = await this.getVMLabelsRaw(initOverrides);
|
|
2366
|
+
return await response.value();
|
|
2367
|
+
}
|
|
2368
|
+
|
|
1938
2369
|
/**
|
|
1939
2370
|
* Creates request options for getVMUtilization without sending the request
|
|
1940
2371
|
*/
|
|
@@ -2033,6 +2464,43 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2033
2464
|
return await response.value();
|
|
2034
2465
|
}
|
|
2035
2466
|
|
|
2467
|
+
/**
|
|
2468
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
2469
|
+
*/
|
|
2470
|
+
async getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2471
|
+
const queryParameters: any = {};
|
|
2472
|
+
|
|
2473
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2474
|
+
|
|
2475
|
+
|
|
2476
|
+
let urlPath = `/vms/filter-options`;
|
|
2477
|
+
|
|
2478
|
+
return {
|
|
2479
|
+
path: urlPath,
|
|
2480
|
+
method: 'GET',
|
|
2481
|
+
headers: headerParameters,
|
|
2482
|
+
query: queryParameters,
|
|
2483
|
+
};
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
/**
|
|
2487
|
+
* Get distinct filter option values for VMs
|
|
2488
|
+
*/
|
|
2489
|
+
async getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>> {
|
|
2490
|
+
const requestOptions = await this.getVMsFilterOptionsRequestOpts();
|
|
2491
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2492
|
+
|
|
2493
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
/**
|
|
2497
|
+
* Get distinct filter option values for VMs
|
|
2498
|
+
*/
|
|
2499
|
+
async getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse> {
|
|
2500
|
+
const response = await this.getVMsFilterOptionsRaw(initOverrides);
|
|
2501
|
+
return await response.value();
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2036
2504
|
/**
|
|
2037
2505
|
* Creates request options for getVersion without sending the request
|
|
2038
2506
|
*/
|
|
@@ -2119,6 +2587,55 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2119
2587
|
return await response.value();
|
|
2120
2588
|
}
|
|
2121
2589
|
|
|
2590
|
+
/**
|
|
2591
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
2592
|
+
*/
|
|
2593
|
+
async listRightsizingReportClustersRequestOpts(requestParameters: ListRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
|
|
2594
|
+
if (requestParameters['reportId'] == null) {
|
|
2595
|
+
throw new runtime.RequiredError(
|
|
2596
|
+
'reportId',
|
|
2597
|
+
'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().'
|
|
2598
|
+
);
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
const queryParameters: any = {};
|
|
2602
|
+
|
|
2603
|
+
if (requestParameters['byExpression'] != null) {
|
|
2604
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2608
|
+
|
|
2609
|
+
|
|
2610
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
2611
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
2612
|
+
|
|
2613
|
+
return {
|
|
2614
|
+
path: urlPath,
|
|
2615
|
+
method: 'GET',
|
|
2616
|
+
headers: headerParameters,
|
|
2617
|
+
query: queryParameters,
|
|
2618
|
+
};
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
/**
|
|
2622
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
2623
|
+
*/
|
|
2624
|
+
async listRightsizingReportClustersRaw(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
2625
|
+
const requestOptions = await this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
2626
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2627
|
+
|
|
2628
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
/**
|
|
2632
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
2633
|
+
*/
|
|
2634
|
+
async listRightsizingReportClusters(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
2635
|
+
const response = await this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
2636
|
+
return await response.value();
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2122
2639
|
/**
|
|
2123
2640
|
* Creates request options for listRightsizingReports without sending the request
|
|
2124
2641
|
*/
|
|
@@ -2253,52 +2770,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2253
2770
|
await this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
2254
2771
|
}
|
|
2255
2772
|
|
|
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
2773
|
/**
|
|
2303
2774
|
* Creates request options for putInspectorVddk without sending the request
|
|
2304
2775
|
*/
|
|
@@ -2860,4 +3331,158 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2860
3331
|
return await response.value();
|
|
2861
3332
|
}
|
|
2862
3333
|
|
|
3334
|
+
/**
|
|
3335
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
3336
|
+
*/
|
|
3337
|
+
async updateLabelVMsRequestOpts(requestParameters: UpdateLabelVMsOperationRequest): Promise<runtime.RequestOpts> {
|
|
3338
|
+
if (requestParameters['label'] == null) {
|
|
3339
|
+
throw new runtime.RequiredError(
|
|
3340
|
+
'label',
|
|
3341
|
+
'Required parameter "label" was null or undefined when calling updateLabelVMs().'
|
|
3342
|
+
);
|
|
3343
|
+
}
|
|
3344
|
+
|
|
3345
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
3346
|
+
throw new runtime.RequiredError(
|
|
3347
|
+
'updateLabelVMsRequest',
|
|
3348
|
+
'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().'
|
|
3349
|
+
);
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
const queryParameters: any = {};
|
|
3353
|
+
|
|
3354
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3355
|
+
|
|
3356
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3357
|
+
|
|
3358
|
+
|
|
3359
|
+
let urlPath = `/vms/labels/{label}`;
|
|
3360
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
3361
|
+
|
|
3362
|
+
return {
|
|
3363
|
+
path: urlPath,
|
|
3364
|
+
method: 'PATCH',
|
|
3365
|
+
headers: headerParameters,
|
|
3366
|
+
query: queryParameters,
|
|
3367
|
+
body: UpdateLabelVMsRequestToJSON(requestParameters['updateLabelVMsRequest']),
|
|
3368
|
+
};
|
|
3369
|
+
}
|
|
3370
|
+
|
|
3371
|
+
/**
|
|
3372
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
3373
|
+
*/
|
|
3374
|
+
async updateLabelVMsRaw(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3375
|
+
const requestOptions = await this.updateLabelVMsRequestOpts(requestParameters);
|
|
3376
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3377
|
+
|
|
3378
|
+
return new runtime.VoidApiResponse(response);
|
|
3379
|
+
}
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
3383
|
+
*/
|
|
3384
|
+
async updateLabelVMs(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3385
|
+
await this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
3386
|
+
}
|
|
3387
|
+
|
|
3388
|
+
/**
|
|
3389
|
+
* Creates request options for updateVM without sending the request
|
|
3390
|
+
*/
|
|
3391
|
+
async updateVMRequestOpts(requestParameters: UpdateVMRequest): Promise<runtime.RequestOpts> {
|
|
3392
|
+
if (requestParameters['id'] == null) {
|
|
3393
|
+
throw new runtime.RequiredError(
|
|
3394
|
+
'id',
|
|
3395
|
+
'Required parameter "id" was null or undefined when calling updateVM().'
|
|
3396
|
+
);
|
|
3397
|
+
}
|
|
3398
|
+
|
|
3399
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
3400
|
+
throw new runtime.RequiredError(
|
|
3401
|
+
'virtualMachineUpdateRequest',
|
|
3402
|
+
'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().'
|
|
3403
|
+
);
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
const queryParameters: any = {};
|
|
3407
|
+
|
|
3408
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3409
|
+
|
|
3410
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3411
|
+
|
|
3412
|
+
|
|
3413
|
+
let urlPath = `/vms/{id}`;
|
|
3414
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
3415
|
+
|
|
3416
|
+
return {
|
|
3417
|
+
path: urlPath,
|
|
3418
|
+
method: 'PATCH',
|
|
3419
|
+
headers: headerParameters,
|
|
3420
|
+
query: queryParameters,
|
|
3421
|
+
body: VirtualMachineUpdateRequestToJSON(requestParameters['virtualMachineUpdateRequest']),
|
|
3422
|
+
};
|
|
3423
|
+
}
|
|
3424
|
+
|
|
3425
|
+
/**
|
|
3426
|
+
* Update VM properties
|
|
3427
|
+
*/
|
|
3428
|
+
async updateVMRaw(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3429
|
+
const requestOptions = await this.updateVMRequestOpts(requestParameters);
|
|
3430
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3431
|
+
|
|
3432
|
+
return new runtime.VoidApiResponse(response);
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3435
|
+
/**
|
|
3436
|
+
* Update VM properties
|
|
3437
|
+
*/
|
|
3438
|
+
async updateVM(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3439
|
+
await this.updateVMRaw(requestParameters, initOverrides);
|
|
3440
|
+
}
|
|
3441
|
+
|
|
3442
|
+
/**
|
|
3443
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
3444
|
+
*/
|
|
3445
|
+
async validateInspectorCredentialsRequestOpts(requestParameters: ValidateInspectorCredentialsRequest): Promise<runtime.RequestOpts> {
|
|
3446
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
3447
|
+
throw new runtime.RequiredError(
|
|
3448
|
+
'vcenterCredentials',
|
|
3449
|
+
'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().'
|
|
3450
|
+
);
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
const queryParameters: any = {};
|
|
3454
|
+
|
|
3455
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3456
|
+
|
|
3457
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3458
|
+
|
|
3459
|
+
|
|
3460
|
+
let urlPath = `/inspector/credentials`;
|
|
3461
|
+
|
|
3462
|
+
return {
|
|
3463
|
+
path: urlPath,
|
|
3464
|
+
method: 'POST',
|
|
3465
|
+
headers: headerParameters,
|
|
3466
|
+
query: queryParameters,
|
|
3467
|
+
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
3468
|
+
};
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
/**
|
|
3472
|
+
* Validate vCenter credentials for inspector
|
|
3473
|
+
*/
|
|
3474
|
+
async validateInspectorCredentialsRaw(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3475
|
+
const requestOptions = await this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
3476
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3477
|
+
|
|
3478
|
+
return new runtime.VoidApiResponse(response);
|
|
3479
|
+
}
|
|
3480
|
+
|
|
3481
|
+
/**
|
|
3482
|
+
* Validate vCenter credentials for inspector
|
|
3483
|
+
*/
|
|
3484
|
+
async validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3485
|
+
await this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
3486
|
+
}
|
|
3487
|
+
|
|
2863
3488
|
}
|