@openshift-migration-advisor/agent-sdk 0.12.0-d5edcd6935f2 → 0.12.0-e4c04f972747
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 -38
- package/dist/apis/DefaultApi.js +410 -43
- package/dist/esm/apis/DefaultApi.d.ts +369 -38
- package/dist/esm/apis/DefaultApi.js +410 -43
- 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/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/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/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/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/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/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/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/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/CreateGroupRequest.md +0 -2
- package/docs/DefaultApi.md +679 -79
- 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/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/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/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 -111
- 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/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/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/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/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
|
}
|
|
@@ -229,7 +272,12 @@ export interface GetLatestRightsizingClustersRequest {
|
|
|
229
272
|
}
|
|
230
273
|
|
|
231
274
|
export interface GetRightsizingReportRequest {
|
|
232
|
-
|
|
275
|
+
reportId: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export interface GetRightsizingReportClusterRequest {
|
|
279
|
+
reportId: string;
|
|
280
|
+
clusterId: string;
|
|
233
281
|
}
|
|
234
282
|
|
|
235
283
|
export interface GetRightsizingReportClustersRequest {
|
|
@@ -258,6 +306,11 @@ export interface ListGroupsRequest {
|
|
|
258
306
|
pageSize?: number;
|
|
259
307
|
}
|
|
260
308
|
|
|
309
|
+
export interface ListRightsizingReportClustersRequest {
|
|
310
|
+
reportId: string;
|
|
311
|
+
byExpression?: string;
|
|
312
|
+
}
|
|
313
|
+
|
|
261
314
|
export interface PostForecasterPairCapabilitiesRequest {
|
|
262
315
|
pairCapabilityRequest: PairCapabilityRequest;
|
|
263
316
|
}
|
|
@@ -266,10 +319,6 @@ export interface PutForecasterCredentialsRequest {
|
|
|
266
319
|
vcenterCredentials: VcenterCredentials;
|
|
267
320
|
}
|
|
268
321
|
|
|
269
|
-
export interface PutInspectorCredentialsRequest {
|
|
270
|
-
vcenterCredentials: VcenterCredentials;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
322
|
export interface PutInspectorVddkRequest {
|
|
274
323
|
file: Blob;
|
|
275
324
|
}
|
|
@@ -307,6 +356,20 @@ export interface UpdateGroupOperationRequest {
|
|
|
307
356
|
updateGroupRequest: UpdateGroupRequest;
|
|
308
357
|
}
|
|
309
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
|
+
|
|
310
373
|
/**
|
|
311
374
|
* DefaultApi - interface
|
|
312
375
|
*
|
|
@@ -383,6 +446,29 @@ export interface DefaultApiInterface {
|
|
|
383
446
|
*/
|
|
384
447
|
deleteGroup(requestParameters: DeleteGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
385
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
|
+
|
|
386
472
|
/**
|
|
387
473
|
* Creates request options for getAgentStatus without sending the request
|
|
388
474
|
* @throws {RequiredError}
|
|
@@ -404,6 +490,50 @@ export interface DefaultApiInterface {
|
|
|
404
490
|
*/
|
|
405
491
|
getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
|
|
406
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
|
+
|
|
407
537
|
/**
|
|
408
538
|
* Creates request options for getCollectorStatus without sending the request
|
|
409
539
|
* @throws {RequiredError}
|
|
@@ -620,6 +750,7 @@ export interface DefaultApiInterface {
|
|
|
620
750
|
/**
|
|
621
751
|
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
622
752
|
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
753
|
+
* @deprecated
|
|
623
754
|
* @throws {RequiredError}
|
|
624
755
|
* @memberof DefaultApiInterface
|
|
625
756
|
*/
|
|
@@ -630,6 +761,7 @@ export interface DefaultApiInterface {
|
|
|
630
761
|
* @summary Get cluster-level utilization aggregates for the latest completed report
|
|
631
762
|
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
632
763
|
* @param {*} [options] Override http request option.
|
|
764
|
+
* @deprecated
|
|
633
765
|
* @throws {RequiredError}
|
|
634
766
|
* @memberof DefaultApiInterface
|
|
635
767
|
*/
|
|
@@ -637,12 +769,13 @@ export interface DefaultApiInterface {
|
|
|
637
769
|
|
|
638
770
|
/**
|
|
639
771
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
772
|
+
* @deprecated
|
|
640
773
|
*/
|
|
641
774
|
getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
642
775
|
|
|
643
776
|
/**
|
|
644
777
|
* Creates request options for getRightsizingReport without sending the request
|
|
645
|
-
* @param {string}
|
|
778
|
+
* @param {string} reportId Report UUID
|
|
646
779
|
* @throws {RequiredError}
|
|
647
780
|
* @memberof DefaultApiInterface
|
|
648
781
|
*/
|
|
@@ -651,7 +784,7 @@ export interface DefaultApiInterface {
|
|
|
651
784
|
/**
|
|
652
785
|
*
|
|
653
786
|
* @summary Get a specific rightsizing report with full VM metrics
|
|
654
|
-
* @param {string}
|
|
787
|
+
* @param {string} reportId Report UUID
|
|
655
788
|
* @param {*} [options] Override http request option.
|
|
656
789
|
* @throws {RequiredError}
|
|
657
790
|
* @memberof DefaultApiInterface
|
|
@@ -663,10 +796,36 @@ export interface DefaultApiInterface {
|
|
|
663
796
|
*/
|
|
664
797
|
getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
|
|
665
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
|
+
|
|
666
824
|
/**
|
|
667
825
|
* Creates request options for getRightsizingReportClusters without sending the request
|
|
668
826
|
* @param {string} reportId Rightsizing report UUID
|
|
669
827
|
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
828
|
+
* @deprecated
|
|
670
829
|
* @throws {RequiredError}
|
|
671
830
|
* @memberof DefaultApiInterface
|
|
672
831
|
*/
|
|
@@ -678,6 +837,7 @@ export interface DefaultApiInterface {
|
|
|
678
837
|
* @param {string} reportId Rightsizing report UUID
|
|
679
838
|
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
680
839
|
* @param {*} [options] Override http request option.
|
|
840
|
+
* @deprecated
|
|
681
841
|
* @throws {RequiredError}
|
|
682
842
|
* @memberof DefaultApiInterface
|
|
683
843
|
*/
|
|
@@ -685,6 +845,7 @@ export interface DefaultApiInterface {
|
|
|
685
845
|
|
|
686
846
|
/**
|
|
687
847
|
* Get cluster-level utilization aggregates for a specific report
|
|
848
|
+
* @deprecated
|
|
688
849
|
*/
|
|
689
850
|
getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
690
851
|
|
|
@@ -711,6 +872,27 @@ export interface DefaultApiInterface {
|
|
|
711
872
|
*/
|
|
712
873
|
getVM(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
|
|
713
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
|
+
|
|
714
896
|
/**
|
|
715
897
|
* Creates request options for getVMUtilization without sending the request
|
|
716
898
|
* @param {string} id VirtualMachine MoRef ID
|
|
@@ -763,6 +945,27 @@ export interface DefaultApiInterface {
|
|
|
763
945
|
*/
|
|
764
946
|
getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
765
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
|
+
|
|
766
969
|
/**
|
|
767
970
|
* Creates request options for getVersion without sending the request
|
|
768
971
|
* @throws {RequiredError}
|
|
@@ -811,6 +1014,31 @@ export interface DefaultApiInterface {
|
|
|
811
1014
|
*/
|
|
812
1015
|
listGroups(requestParameters: ListGroupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupListResponse>;
|
|
813
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
|
+
|
|
814
1042
|
/**
|
|
815
1043
|
* Creates request options for listRightsizingReports without sending the request
|
|
816
1044
|
* @throws {RequiredError}
|
|
@@ -880,29 +1108,6 @@ export interface DefaultApiInterface {
|
|
|
880
1108
|
*/
|
|
881
1109
|
putForecasterCredentials(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
882
1110
|
|
|
883
|
-
/**
|
|
884
|
-
* Creates request options for putInspectorCredentials without sending the request
|
|
885
|
-
* @param {VcenterCredentials} vcenterCredentials
|
|
886
|
-
* @throws {RequiredError}
|
|
887
|
-
* @memberof DefaultApiInterface
|
|
888
|
-
*/
|
|
889
|
-
putInspectorCredentialsRequestOpts(requestParameters: PutInspectorCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
890
|
-
|
|
891
|
-
/**
|
|
892
|
-
*
|
|
893
|
-
* @summary Set or replace inspector credentials
|
|
894
|
-
* @param {VcenterCredentials} vcenterCredentials
|
|
895
|
-
* @param {*} [options] Override http request option.
|
|
896
|
-
* @throws {RequiredError}
|
|
897
|
-
* @memberof DefaultApiInterface
|
|
898
|
-
*/
|
|
899
|
-
putInspectorCredentialsRaw(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
900
|
-
|
|
901
|
-
/**
|
|
902
|
-
* Set or replace inspector credentials
|
|
903
|
-
*/
|
|
904
|
-
putInspectorCredentials(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
905
|
-
|
|
906
1111
|
/**
|
|
907
1112
|
* Creates request options for putInspectorVddk without sending the request
|
|
908
1113
|
* @param {Blob} file VDDK tarball
|
|
@@ -1178,6 +1383,79 @@ export interface DefaultApiInterface {
|
|
|
1178
1383
|
*/
|
|
1179
1384
|
updateGroup(requestParameters: UpdateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
1180
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
|
+
|
|
1181
1459
|
}
|
|
1182
1460
|
|
|
1183
1461
|
/**
|
|
@@ -1321,52 +1599,60 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1321
1599
|
}
|
|
1322
1600
|
|
|
1323
1601
|
/**
|
|
1324
|
-
* Creates request options for
|
|
1602
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
1325
1603
|
*/
|
|
1326
|
-
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
|
+
|
|
1327
1612
|
const queryParameters: any = {};
|
|
1328
1613
|
|
|
1329
1614
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1330
1615
|
|
|
1331
1616
|
|
|
1332
|
-
let urlPath = `/
|
|
1617
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1618
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1333
1619
|
|
|
1334
1620
|
return {
|
|
1335
1621
|
path: urlPath,
|
|
1336
|
-
method: '
|
|
1622
|
+
method: 'DELETE',
|
|
1337
1623
|
headers: headerParameters,
|
|
1338
1624
|
query: queryParameters,
|
|
1339
1625
|
};
|
|
1340
1626
|
}
|
|
1341
1627
|
|
|
1342
1628
|
/**
|
|
1343
|
-
*
|
|
1629
|
+
* Delete label from all VMs
|
|
1344
1630
|
*/
|
|
1345
|
-
async
|
|
1346
|
-
const requestOptions = await this.
|
|
1631
|
+
async deleteLabelGloballyRaw(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteLabelGloballyResponse>> {
|
|
1632
|
+
const requestOptions = await this.deleteLabelGloballyRequestOpts(requestParameters);
|
|
1347
1633
|
const response = await this.request(requestOptions, initOverrides);
|
|
1348
1634
|
|
|
1349
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1635
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLabelGloballyResponseFromJSON(jsonValue));
|
|
1350
1636
|
}
|
|
1351
1637
|
|
|
1352
1638
|
/**
|
|
1353
|
-
*
|
|
1639
|
+
* Delete label from all VMs
|
|
1354
1640
|
*/
|
|
1355
|
-
async
|
|
1356
|
-
const response = await this.
|
|
1641
|
+
async deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse> {
|
|
1642
|
+
const response = await this.deleteLabelGloballyRaw(requestParameters, initOverrides);
|
|
1357
1643
|
return await response.value();
|
|
1358
1644
|
}
|
|
1359
1645
|
|
|
1360
1646
|
/**
|
|
1361
|
-
* Creates request options for
|
|
1647
|
+
* Creates request options for getAgentStatus without sending the request
|
|
1362
1648
|
*/
|
|
1363
|
-
async
|
|
1649
|
+
async getAgentStatusRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1364
1650
|
const queryParameters: any = {};
|
|
1365
1651
|
|
|
1366
1652
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1367
1653
|
|
|
1368
1654
|
|
|
1369
|
-
let urlPath = `/
|
|
1655
|
+
let urlPath = `/agent`;
|
|
1370
1656
|
|
|
1371
1657
|
return {
|
|
1372
1658
|
path: urlPath,
|
|
@@ -1377,48 +1663,167 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1377
1663
|
}
|
|
1378
1664
|
|
|
1379
1665
|
/**
|
|
1380
|
-
* Get
|
|
1666
|
+
* Get agent status
|
|
1381
1667
|
*/
|
|
1382
|
-
async
|
|
1383
|
-
const requestOptions = await this.
|
|
1668
|
+
async getAgentStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentStatus>> {
|
|
1669
|
+
const requestOptions = await this.getAgentStatusRequestOpts();
|
|
1384
1670
|
const response = await this.request(requestOptions, initOverrides);
|
|
1385
1671
|
|
|
1386
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1672
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgentStatusFromJSON(jsonValue));
|
|
1387
1673
|
}
|
|
1388
1674
|
|
|
1389
1675
|
/**
|
|
1390
|
-
* Get
|
|
1676
|
+
* Get agent status
|
|
1391
1677
|
*/
|
|
1392
|
-
async
|
|
1393
|
-
const response = await this.
|
|
1678
|
+
async getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus> {
|
|
1679
|
+
const response = await this.getAgentStatusRaw(initOverrides);
|
|
1394
1680
|
return await response.value();
|
|
1395
1681
|
}
|
|
1396
1682
|
|
|
1397
1683
|
/**
|
|
1398
|
-
* Creates request options for
|
|
1684
|
+
* Creates request options for getApplications without sending the request
|
|
1399
1685
|
*/
|
|
1400
|
-
async
|
|
1686
|
+
async getApplicationsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1401
1687
|
const queryParameters: any = {};
|
|
1402
1688
|
|
|
1403
1689
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1404
1690
|
|
|
1405
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1406
|
-
|
|
1407
1691
|
|
|
1408
|
-
let urlPath = `/
|
|
1692
|
+
let urlPath = `/applications`;
|
|
1409
1693
|
|
|
1410
1694
|
return {
|
|
1411
1695
|
path: urlPath,
|
|
1412
|
-
method: '
|
|
1696
|
+
method: 'GET',
|
|
1413
1697
|
headers: headerParameters,
|
|
1414
1698
|
query: queryParameters,
|
|
1415
|
-
body: ForecasterDatastoresRequestToJSON(requestParameters['forecasterDatastoresRequest']),
|
|
1416
1699
|
};
|
|
1417
1700
|
}
|
|
1418
1701
|
|
|
1419
1702
|
/**
|
|
1420
|
-
*
|
|
1421
|
-
|
|
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
|
|
1422
1827
|
*/
|
|
1423
1828
|
async getForecasterDatastoresRaw(requestParameters: GetForecasterDatastoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DatastoreDetail>>> {
|
|
1424
1829
|
const requestOptions = await this.getForecasterDatastoresRequestOpts(requestParameters);
|
|
@@ -1750,6 +2155,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1750
2155
|
|
|
1751
2156
|
/**
|
|
1752
2157
|
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
2158
|
+
* @deprecated
|
|
1753
2159
|
*/
|
|
1754
2160
|
async getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts> {
|
|
1755
2161
|
const queryParameters: any = {};
|
|
@@ -1773,6 +2179,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1773
2179
|
|
|
1774
2180
|
/**
|
|
1775
2181
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
2182
|
+
* @deprecated
|
|
1776
2183
|
*/
|
|
1777
2184
|
async getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
1778
2185
|
const requestOptions = await this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
@@ -1783,6 +2190,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1783
2190
|
|
|
1784
2191
|
/**
|
|
1785
2192
|
* Get cluster-level utilization aggregates for the latest completed report
|
|
2193
|
+
* @deprecated
|
|
1786
2194
|
*/
|
|
1787
2195
|
async getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
1788
2196
|
const response = await this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
@@ -1793,10 +2201,10 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1793
2201
|
* Creates request options for getRightsizingReport without sending the request
|
|
1794
2202
|
*/
|
|
1795
2203
|
async getRightsizingReportRequestOpts(requestParameters: GetRightsizingReportRequest): Promise<runtime.RequestOpts> {
|
|
1796
|
-
if (requestParameters['
|
|
2204
|
+
if (requestParameters['reportId'] == null) {
|
|
1797
2205
|
throw new runtime.RequiredError(
|
|
1798
|
-
'
|
|
1799
|
-
'Required parameter "
|
|
2206
|
+
'reportId',
|
|
2207
|
+
'Required parameter "reportId" was null or undefined when calling getRightsizingReport().'
|
|
1800
2208
|
);
|
|
1801
2209
|
}
|
|
1802
2210
|
|
|
@@ -1805,8 +2213,8 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1805
2213
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1806
2214
|
|
|
1807
2215
|
|
|
1808
|
-
let urlPath = `/rightsizing/{
|
|
1809
|
-
urlPath = urlPath.replace('{
|
|
2216
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
2217
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1810
2218
|
|
|
1811
2219
|
return {
|
|
1812
2220
|
path: urlPath,
|
|
@@ -1834,8 +2242,62 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1834
2242
|
return await response.value();
|
|
1835
2243
|
}
|
|
1836
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
|
+
|
|
1837
2298
|
/**
|
|
1838
2299
|
* Creates request options for getRightsizingReportClusters without sending the request
|
|
2300
|
+
* @deprecated
|
|
1839
2301
|
*/
|
|
1840
2302
|
async getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
|
|
1841
2303
|
if (requestParameters['reportId'] == null) {
|
|
@@ -1867,6 +2329,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1867
2329
|
|
|
1868
2330
|
/**
|
|
1869
2331
|
* Get cluster-level utilization aggregates for a specific report
|
|
2332
|
+
* @deprecated
|
|
1870
2333
|
*/
|
|
1871
2334
|
async getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
1872
2335
|
const requestOptions = await this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
@@ -1877,6 +2340,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1877
2340
|
|
|
1878
2341
|
/**
|
|
1879
2342
|
* Get cluster-level utilization aggregates for a specific report
|
|
2343
|
+
* @deprecated
|
|
1880
2344
|
*/
|
|
1881
2345
|
async getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
1882
2346
|
const response = await this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
@@ -1928,6 +2392,43 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1928
2392
|
return await response.value();
|
|
1929
2393
|
}
|
|
1930
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
|
+
|
|
1931
2432
|
/**
|
|
1932
2433
|
* Creates request options for getVMUtilization without sending the request
|
|
1933
2434
|
*/
|
|
@@ -2026,6 +2527,43 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2026
2527
|
return await response.value();
|
|
2027
2528
|
}
|
|
2028
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
|
+
|
|
2029
2567
|
/**
|
|
2030
2568
|
* Creates request options for getVersion without sending the request
|
|
2031
2569
|
*/
|
|
@@ -2112,6 +2650,55 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2112
2650
|
return await response.value();
|
|
2113
2651
|
}
|
|
2114
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
|
+
|
|
2115
2702
|
/**
|
|
2116
2703
|
* Creates request options for listRightsizingReports without sending the request
|
|
2117
2704
|
*/
|
|
@@ -2246,52 +2833,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2246
2833
|
await this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
2247
2834
|
}
|
|
2248
2835
|
|
|
2249
|
-
/**
|
|
2250
|
-
* Creates request options for putInspectorCredentials without sending the request
|
|
2251
|
-
*/
|
|
2252
|
-
async putInspectorCredentialsRequestOpts(requestParameters: PutInspectorCredentialsRequest): Promise<runtime.RequestOpts> {
|
|
2253
|
-
if (requestParameters['vcenterCredentials'] == null) {
|
|
2254
|
-
throw new runtime.RequiredError(
|
|
2255
|
-
'vcenterCredentials',
|
|
2256
|
-
'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().'
|
|
2257
|
-
);
|
|
2258
|
-
}
|
|
2259
|
-
|
|
2260
|
-
const queryParameters: any = {};
|
|
2261
|
-
|
|
2262
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2263
|
-
|
|
2264
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
let urlPath = `/inspector/credentials`;
|
|
2268
|
-
|
|
2269
|
-
return {
|
|
2270
|
-
path: urlPath,
|
|
2271
|
-
method: 'PUT',
|
|
2272
|
-
headers: headerParameters,
|
|
2273
|
-
query: queryParameters,
|
|
2274
|
-
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
2275
|
-
};
|
|
2276
|
-
}
|
|
2277
|
-
|
|
2278
|
-
/**
|
|
2279
|
-
* Set or replace inspector credentials
|
|
2280
|
-
*/
|
|
2281
|
-
async putInspectorCredentialsRaw(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
2282
|
-
const requestOptions = await this.putInspectorCredentialsRequestOpts(requestParameters);
|
|
2283
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
2284
|
-
|
|
2285
|
-
return new runtime.VoidApiResponse(response);
|
|
2286
|
-
}
|
|
2287
|
-
|
|
2288
|
-
/**
|
|
2289
|
-
* Set or replace inspector credentials
|
|
2290
|
-
*/
|
|
2291
|
-
async putInspectorCredentials(requestParameters: PutInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
2292
|
-
await this.putInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
2836
|
/**
|
|
2296
2837
|
* Creates request options for putInspectorVddk without sending the request
|
|
2297
2838
|
*/
|
|
@@ -2853,4 +3394,158 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2853
3394
|
return await response.value();
|
|
2854
3395
|
}
|
|
2855
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
|
+
|
|
2856
3551
|
}
|