@openshift-migration-advisor/agent-sdk 0.12.0-1f1dc16fb9e5 → 0.12.0-4e95135f8529
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 +28 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +33 -5
- package/dist/apis/DefaultApi.d.ts +546 -39
- package/dist/apis/DefaultApi.js +591 -30
- package/dist/esm/apis/DefaultApi.d.ts +546 -39
- package/dist/esm/apis/DefaultApi.js +591 -30
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/CredentialStatus.d.ts +38 -0
- package/dist/esm/models/CredentialStatus.js +47 -0
- 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 +39 -0
- package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
- package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/esm/models/RightsizingCollectRequest.js +12 -12
- package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/esm/models/RightsizingMetricStats.js +3 -3
- package/dist/esm/models/RightsizingReport.d.ts +6 -6
- package/dist/esm/models/RightsizingReport.js +18 -18
- package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/esm/models/RightsizingReportSummary.js +18 -18
- package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +5 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VcenterCredentials.d.ts +12 -0
- package/dist/esm/models/VcenterCredentials.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +30 -6
- package/dist/esm/models/VirtualMachine.js +18 -10
- package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/esm/models/VirtualMachineDetail.js +7 -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 +27 -9
- package/dist/esm/models/VmUtilizationDetails.js +39 -27
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/esm/runtime.js +2 -1
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/CredentialStatus.d.ts +38 -0
- package/dist/models/CredentialStatus.js +54 -0
- 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 +39 -0
- package/dist/models/RightsizingClusterListResponse.js +55 -0
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/models/RightsizingClusterUtilization.js +102 -0
- package/dist/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/models/RightsizingCollectRequest.js +12 -12
- package/dist/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/models/RightsizingMetricStats.js +3 -3
- package/dist/models/RightsizingReport.d.ts +6 -6
- package/dist/models/RightsizingReport.js +18 -18
- package/dist/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/models/RightsizingReportSummary.js +18 -18
- package/dist/models/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +5 -0
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/models/VMFilterOptionsResponse.js +66 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VcenterCredentials.d.ts +12 -0
- package/dist/models/VcenterCredentials.js +4 -0
- package/dist/models/VirtualMachine.d.ts +30 -6
- package/dist/models/VirtualMachine.js +18 -10
- package/dist/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/models/VirtualMachineDetail.js +7 -0
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmUtilizationDetails.d.ts +27 -9
- package/dist/models/VmUtilizationDetails.js +39 -27
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/dist/runtime.js +2 -1
- package/docs/AgentStatus.md +2 -2
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CollectorStartRequest.md +4 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/CredentialStatus.md +36 -0
- package/docs/DefaultApi.md +1127 -197
- 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 +36 -0
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +60 -0
- package/docs/RightsizingCollectRequest.md +12 -12
- package/docs/RightsizingMetricStats.md +2 -2
- package/docs/RightsizingReport.md +12 -12
- package/docs/RightsizingReportSummary.md +12 -12
- package/docs/StartInspectionRequest.md +3 -1
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VcenterCredentials.md +4 -0
- package/docs/VirtualMachine.md +18 -10
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -18
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1136 -93
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/CredentialStatus.ts +75 -0
- 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 +83 -0
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +185 -0
- package/src/models/RightsizingCollectRequest.ts +18 -18
- package/src/models/RightsizingMetricStats.ts +4 -4
- package/src/models/RightsizingReport.ts +24 -24
- package/src/models/RightsizingReportSummary.ts +24 -24
- package/src/models/StartInspectionRequest.ts +18 -1
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VcenterCredentials.ts +16 -0
- package/src/models/VirtualMachine.ts +48 -16
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +63 -36
- package/src/models/index.ts +14 -0
- package/src/runtime.ts +1 -1
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,
|
|
@@ -43,11 +48,21 @@ import {
|
|
|
43
48
|
CreateGroupRequestFromJSON,
|
|
44
49
|
CreateGroupRequestToJSON,
|
|
45
50
|
} from '../models/CreateGroupRequest.js';
|
|
51
|
+
import {
|
|
52
|
+
type CredentialStatus,
|
|
53
|
+
CredentialStatusFromJSON,
|
|
54
|
+
CredentialStatusToJSON,
|
|
55
|
+
} from '../models/CredentialStatus.js';
|
|
46
56
|
import {
|
|
47
57
|
type DatastoreDetail,
|
|
48
58
|
DatastoreDetailFromJSON,
|
|
49
59
|
DatastoreDetailToJSON,
|
|
50
60
|
} from '../models/DatastoreDetail.js';
|
|
61
|
+
import {
|
|
62
|
+
type DeleteLabelGloballyResponse,
|
|
63
|
+
DeleteLabelGloballyResponseFromJSON,
|
|
64
|
+
DeleteLabelGloballyResponseToJSON,
|
|
65
|
+
} from '../models/DeleteLabelGloballyResponse.js';
|
|
51
66
|
import {
|
|
52
67
|
type ForecastStats,
|
|
53
68
|
ForecastStatsFromJSON,
|
|
@@ -108,6 +123,16 @@ import {
|
|
|
108
123
|
PutForecasterCredentials403ResponseFromJSON,
|
|
109
124
|
PutForecasterCredentials403ResponseToJSON,
|
|
110
125
|
} from '../models/PutForecasterCredentials403Response.js';
|
|
126
|
+
import {
|
|
127
|
+
type RightsizingClusterListResponse,
|
|
128
|
+
RightsizingClusterListResponseFromJSON,
|
|
129
|
+
RightsizingClusterListResponseToJSON,
|
|
130
|
+
} from '../models/RightsizingClusterListResponse.js';
|
|
131
|
+
import {
|
|
132
|
+
type RightsizingClusterResponse,
|
|
133
|
+
RightsizingClusterResponseFromJSON,
|
|
134
|
+
RightsizingClusterResponseToJSON,
|
|
135
|
+
} from '../models/RightsizingClusterResponse.js';
|
|
111
136
|
import {
|
|
112
137
|
type RightsizingCollectRequest,
|
|
113
138
|
RightsizingCollectRequestFromJSON,
|
|
@@ -143,6 +168,21 @@ import {
|
|
|
143
168
|
UpdateGroupRequestFromJSON,
|
|
144
169
|
UpdateGroupRequestToJSON,
|
|
145
170
|
} from '../models/UpdateGroupRequest.js';
|
|
171
|
+
import {
|
|
172
|
+
type UpdateLabelVMsRequest,
|
|
173
|
+
UpdateLabelVMsRequestFromJSON,
|
|
174
|
+
UpdateLabelVMsRequestToJSON,
|
|
175
|
+
} from '../models/UpdateLabelVMsRequest.js';
|
|
176
|
+
import {
|
|
177
|
+
type VMFilterOptionsResponse,
|
|
178
|
+
VMFilterOptionsResponseFromJSON,
|
|
179
|
+
VMFilterOptionsResponseToJSON,
|
|
180
|
+
} from '../models/VMFilterOptionsResponse.js';
|
|
181
|
+
import {
|
|
182
|
+
type VMLabelsResponse,
|
|
183
|
+
VMLabelsResponseFromJSON,
|
|
184
|
+
VMLabelsResponseToJSON,
|
|
185
|
+
} from '../models/VMLabelsResponse.js';
|
|
146
186
|
import {
|
|
147
187
|
type VcenterCredentials,
|
|
148
188
|
VcenterCredentialsFromJSON,
|
|
@@ -168,6 +208,11 @@ import {
|
|
|
168
208
|
VirtualMachineListResponseFromJSON,
|
|
169
209
|
VirtualMachineListResponseToJSON,
|
|
170
210
|
} from '../models/VirtualMachineListResponse.js';
|
|
211
|
+
import {
|
|
212
|
+
type VirtualMachineUpdateRequest,
|
|
213
|
+
VirtualMachineUpdateRequestFromJSON,
|
|
214
|
+
VirtualMachineUpdateRequestToJSON,
|
|
215
|
+
} from '../models/VirtualMachineUpdateRequest.js';
|
|
171
216
|
import {
|
|
172
217
|
type VmInspectionStatus,
|
|
173
218
|
VmInspectionStatusFromJSON,
|
|
@@ -191,6 +236,14 @@ export interface DeleteGroupRequest {
|
|
|
191
236
|
id: string;
|
|
192
237
|
}
|
|
193
238
|
|
|
239
|
+
export interface DeleteLabelGloballyRequest {
|
|
240
|
+
label: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface GetClusterUtilizationRequest {
|
|
244
|
+
clusterId: string;
|
|
245
|
+
}
|
|
246
|
+
|
|
194
247
|
export interface GetForecasterDatastoresRequest {
|
|
195
248
|
forecasterDatastoresRequest?: ForecasterDatastoresRequest;
|
|
196
249
|
}
|
|
@@ -212,7 +265,6 @@ export interface GetGroupRequest {
|
|
|
212
265
|
|
|
213
266
|
export interface GetInspectorStatusRequest {
|
|
214
267
|
includeVddk?: boolean;
|
|
215
|
-
includeCredentials?: boolean;
|
|
216
268
|
}
|
|
217
269
|
|
|
218
270
|
export interface GetInventoryRequest {
|
|
@@ -220,8 +272,22 @@ export interface GetInventoryRequest {
|
|
|
220
272
|
groupId?: string;
|
|
221
273
|
}
|
|
222
274
|
|
|
275
|
+
export interface GetLatestRightsizingClustersRequest {
|
|
276
|
+
byExpression?: string;
|
|
277
|
+
}
|
|
278
|
+
|
|
223
279
|
export interface GetRightsizingReportRequest {
|
|
224
|
-
|
|
280
|
+
reportId: string;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export interface GetRightsizingReportClusterRequest {
|
|
284
|
+
reportId: string;
|
|
285
|
+
clusterId: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export interface GetRightsizingReportClustersRequest {
|
|
289
|
+
reportId: string;
|
|
290
|
+
byExpression?: string;
|
|
225
291
|
}
|
|
226
292
|
|
|
227
293
|
export interface GetVMRequest {
|
|
@@ -245,15 +311,20 @@ export interface ListGroupsRequest {
|
|
|
245
311
|
pageSize?: number;
|
|
246
312
|
}
|
|
247
313
|
|
|
314
|
+
export interface ListRightsizingReportClustersRequest {
|
|
315
|
+
reportId: string;
|
|
316
|
+
byExpression?: string;
|
|
317
|
+
}
|
|
318
|
+
|
|
248
319
|
export interface PostForecasterPairCapabilitiesRequest {
|
|
249
320
|
pairCapabilityRequest: PairCapabilityRequest;
|
|
250
321
|
}
|
|
251
322
|
|
|
252
|
-
export interface
|
|
323
|
+
export interface PutCredentialsRequest {
|
|
253
324
|
vcenterCredentials: VcenterCredentials;
|
|
254
325
|
}
|
|
255
326
|
|
|
256
|
-
export interface
|
|
327
|
+
export interface PutForecasterCredentialsRequest {
|
|
257
328
|
vcenterCredentials: VcenterCredentials;
|
|
258
329
|
}
|
|
259
330
|
|
|
@@ -294,6 +365,20 @@ export interface UpdateGroupOperationRequest {
|
|
|
294
365
|
updateGroupRequest: UpdateGroupRequest;
|
|
295
366
|
}
|
|
296
367
|
|
|
368
|
+
export interface UpdateLabelVMsOperationRequest {
|
|
369
|
+
label: string;
|
|
370
|
+
updateLabelVMsRequest: UpdateLabelVMsRequest;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export interface UpdateVMRequest {
|
|
374
|
+
id: string;
|
|
375
|
+
virtualMachineUpdateRequest: VirtualMachineUpdateRequest;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export interface ValidateInspectorCredentialsRequest {
|
|
379
|
+
vcenterCredentials: VcenterCredentials;
|
|
380
|
+
}
|
|
381
|
+
|
|
297
382
|
/**
|
|
298
383
|
* DefaultApi - interface
|
|
299
384
|
*
|
|
@@ -324,6 +409,28 @@ export interface DefaultApiInterface {
|
|
|
324
409
|
*/
|
|
325
410
|
createGroup(requestParameters: CreateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
326
411
|
|
|
412
|
+
/**
|
|
413
|
+
* Creates request options for deleteCredentials without sending the request
|
|
414
|
+
* @throws {RequiredError}
|
|
415
|
+
* @memberof DefaultApiInterface
|
|
416
|
+
*/
|
|
417
|
+
deleteCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Removes all stored vCenter credentials from the database.
|
|
421
|
+
* @summary Delete stored credentials
|
|
422
|
+
* @param {*} [options] Override http request option.
|
|
423
|
+
* @throws {RequiredError}
|
|
424
|
+
* @memberof DefaultApiInterface
|
|
425
|
+
*/
|
|
426
|
+
deleteCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Removes all stored vCenter credentials from the database.
|
|
430
|
+
* Delete stored credentials
|
|
431
|
+
*/
|
|
432
|
+
deleteCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
433
|
+
|
|
327
434
|
/**
|
|
328
435
|
* Creates request options for deleteForecasterRun without sending the request
|
|
329
436
|
* @param {number} id Run ID
|
|
@@ -370,6 +477,29 @@ export interface DefaultApiInterface {
|
|
|
370
477
|
*/
|
|
371
478
|
deleteGroup(requestParameters: DeleteGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
372
479
|
|
|
480
|
+
/**
|
|
481
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
482
|
+
* @param {string} label The label to remove from all VMs
|
|
483
|
+
* @throws {RequiredError}
|
|
484
|
+
* @memberof DefaultApiInterface
|
|
485
|
+
*/
|
|
486
|
+
deleteLabelGloballyRequestOpts(requestParameters: DeleteLabelGloballyRequest): Promise<runtime.RequestOpts>;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
*
|
|
490
|
+
* @summary Delete label from all VMs
|
|
491
|
+
* @param {string} label The label to remove from all VMs
|
|
492
|
+
* @param {*} [options] Override http request option.
|
|
493
|
+
* @throws {RequiredError}
|
|
494
|
+
* @memberof DefaultApiInterface
|
|
495
|
+
*/
|
|
496
|
+
deleteLabelGloballyRaw(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteLabelGloballyResponse>>;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Delete label from all VMs
|
|
500
|
+
*/
|
|
501
|
+
deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
|
|
502
|
+
|
|
373
503
|
/**
|
|
374
504
|
* Creates request options for getAgentStatus without sending the request
|
|
375
505
|
* @throws {RequiredError}
|
|
@@ -391,6 +521,50 @@ export interface DefaultApiInterface {
|
|
|
391
521
|
*/
|
|
392
522
|
getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
|
|
393
523
|
|
|
524
|
+
/**
|
|
525
|
+
* Creates request options for getApplications without sending the request
|
|
526
|
+
* @throws {RequiredError}
|
|
527
|
+
* @memberof DefaultApiInterface
|
|
528
|
+
*/
|
|
529
|
+
getApplicationsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @summary List detected applications running on VMs
|
|
534
|
+
* @param {*} [options] Override http request option.
|
|
535
|
+
* @throws {RequiredError}
|
|
536
|
+
* @memberof DefaultApiInterface
|
|
537
|
+
*/
|
|
538
|
+
getApplicationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>>;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* List detected applications running on VMs
|
|
542
|
+
*/
|
|
543
|
+
getApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse>;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
547
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
548
|
+
* @throws {RequiredError}
|
|
549
|
+
* @memberof DefaultApiInterface
|
|
550
|
+
*/
|
|
551
|
+
getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @summary Get latest cluster utilization by cluster ID
|
|
556
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
557
|
+
* @param {*} [options] Override http request option.
|
|
558
|
+
* @throws {RequiredError}
|
|
559
|
+
* @memberof DefaultApiInterface
|
|
560
|
+
*/
|
|
561
|
+
getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Get latest cluster utilization by cluster ID
|
|
565
|
+
*/
|
|
566
|
+
getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
567
|
+
|
|
394
568
|
/**
|
|
395
569
|
* Creates request options for getCollectorStatus without sending the request
|
|
396
570
|
* @throws {RequiredError}
|
|
@@ -412,6 +586,28 @@ export interface DefaultApiInterface {
|
|
|
412
586
|
*/
|
|
413
587
|
getCollectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
414
588
|
|
|
589
|
+
/**
|
|
590
|
+
* Creates request options for getCredentials without sending the request
|
|
591
|
+
* @throws {RequiredError}
|
|
592
|
+
* @memberof DefaultApiInterface
|
|
593
|
+
*/
|
|
594
|
+
getCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
598
|
+
* @summary Get stored credential status
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
* @memberof DefaultApiInterface
|
|
602
|
+
*/
|
|
603
|
+
getCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
607
|
+
* Get stored credential status
|
|
608
|
+
*/
|
|
609
|
+
getCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
610
|
+
|
|
415
611
|
/**
|
|
416
612
|
* Creates request options for getForecasterDatastores without sending the request
|
|
417
613
|
* @param {ForecasterDatastoresRequest} [forecasterDatastoresRequest]
|
|
@@ -509,7 +705,7 @@ export interface DefaultApiInterface {
|
|
|
509
705
|
/**
|
|
510
706
|
* Creates request options for getGroup without sending the request
|
|
511
707
|
* @param {string} id Group ID
|
|
512
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
708
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
513
709
|
* @param {number} [page] Page number for pagination
|
|
514
710
|
* @param {number} [pageSize] Number of items per page
|
|
515
711
|
* @throws {RequiredError}
|
|
@@ -521,7 +717,7 @@ export interface DefaultApiInterface {
|
|
|
521
717
|
*
|
|
522
718
|
* @summary Get group by ID with its VMs
|
|
523
719
|
* @param {string} id Group ID
|
|
524
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
720
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
525
721
|
* @param {number} [page] Page number for pagination
|
|
526
722
|
* @param {number} [pageSize] Number of items per page
|
|
527
723
|
* @param {*} [options] Override http request option.
|
|
@@ -538,7 +734,6 @@ export interface DefaultApiInterface {
|
|
|
538
734
|
/**
|
|
539
735
|
* Creates request options for getInspectorStatus without sending the request
|
|
540
736
|
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
541
|
-
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
542
737
|
* @throws {RequiredError}
|
|
543
738
|
* @memberof DefaultApiInterface
|
|
544
739
|
*/
|
|
@@ -548,7 +743,6 @@ export interface DefaultApiInterface {
|
|
|
548
743
|
*
|
|
549
744
|
* @summary Get inspector status
|
|
550
745
|
* @param {boolean} [includeVddk] If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded.
|
|
551
|
-
* @param {boolean} [includeCredentials] If true, include configured vCenter URL and username (password is never returned). omitted if was never set.
|
|
552
746
|
* @param {*} [options] Override http request option.
|
|
553
747
|
* @throws {RequiredError}
|
|
554
748
|
* @memberof DefaultApiInterface
|
|
@@ -606,9 +800,35 @@ export interface DefaultApiInterface {
|
|
|
606
800
|
*/
|
|
607
801
|
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
|
|
608
802
|
|
|
803
|
+
/**
|
|
804
|
+
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
805
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
806
|
+
* @deprecated
|
|
807
|
+
* @throws {RequiredError}
|
|
808
|
+
* @memberof DefaultApiInterface
|
|
809
|
+
*/
|
|
810
|
+
getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
*
|
|
814
|
+
* @summary Get cluster-level utilization aggregates for the latest completed report
|
|
815
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @deprecated
|
|
818
|
+
* @throws {RequiredError}
|
|
819
|
+
* @memberof DefaultApiInterface
|
|
820
|
+
*/
|
|
821
|
+
getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
825
|
+
* @deprecated
|
|
826
|
+
*/
|
|
827
|
+
getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
828
|
+
|
|
609
829
|
/**
|
|
610
830
|
* Creates request options for getRightsizingReport without sending the request
|
|
611
|
-
* @param {string}
|
|
831
|
+
* @param {string} reportId Report UUID
|
|
612
832
|
* @throws {RequiredError}
|
|
613
833
|
* @memberof DefaultApiInterface
|
|
614
834
|
*/
|
|
@@ -617,7 +837,7 @@ export interface DefaultApiInterface {
|
|
|
617
837
|
/**
|
|
618
838
|
*
|
|
619
839
|
* @summary Get a specific rightsizing report with full VM metrics
|
|
620
|
-
* @param {string}
|
|
840
|
+
* @param {string} reportId Report UUID
|
|
621
841
|
* @param {*} [options] Override http request option.
|
|
622
842
|
* @throws {RequiredError}
|
|
623
843
|
* @memberof DefaultApiInterface
|
|
@@ -629,6 +849,59 @@ export interface DefaultApiInterface {
|
|
|
629
849
|
*/
|
|
630
850
|
getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
|
|
631
851
|
|
|
852
|
+
/**
|
|
853
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
854
|
+
* @param {string} reportId Rightsizing report UUID
|
|
855
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
856
|
+
* @throws {RequiredError}
|
|
857
|
+
* @memberof DefaultApiInterface
|
|
858
|
+
*/
|
|
859
|
+
getRightsizingReportClusterRequestOpts(requestParameters: GetRightsizingReportClusterRequest): Promise<runtime.RequestOpts>;
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
*
|
|
863
|
+
* @summary Get utilization for a specific cluster from a specific report
|
|
864
|
+
* @param {string} reportId Rightsizing report UUID
|
|
865
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID (e.g. \"cluster-a3f7b2c1d4e89012\")
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
* @memberof DefaultApiInterface
|
|
869
|
+
*/
|
|
870
|
+
getRightsizingReportClusterRaw(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* Get utilization for a specific cluster from a specific report
|
|
874
|
+
*/
|
|
875
|
+
getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* Creates request options for getRightsizingReportClusters without sending the request
|
|
879
|
+
* @param {string} reportId Rightsizing report UUID
|
|
880
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
881
|
+
* @deprecated
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
* @memberof DefaultApiInterface
|
|
884
|
+
*/
|
|
885
|
+
getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
*
|
|
889
|
+
* @summary Get cluster-level utilization aggregates for a specific report
|
|
890
|
+
* @param {string} reportId Rightsizing report UUID
|
|
891
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
892
|
+
* @param {*} [options] Override http request option.
|
|
893
|
+
* @deprecated
|
|
894
|
+
* @throws {RequiredError}
|
|
895
|
+
* @memberof DefaultApiInterface
|
|
896
|
+
*/
|
|
897
|
+
getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
901
|
+
* @deprecated
|
|
902
|
+
*/
|
|
903
|
+
getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
904
|
+
|
|
632
905
|
/**
|
|
633
906
|
* Creates request options for getVM without sending the request
|
|
634
907
|
* @param {string} id VirtualMachine id
|
|
@@ -652,6 +925,27 @@ export interface DefaultApiInterface {
|
|
|
652
925
|
*/
|
|
653
926
|
getVM(requestParameters: GetVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
|
|
654
927
|
|
|
928
|
+
/**
|
|
929
|
+
* Creates request options for getVMLabels without sending the request
|
|
930
|
+
* @throws {RequiredError}
|
|
931
|
+
* @memberof DefaultApiInterface
|
|
932
|
+
*/
|
|
933
|
+
getVMLabelsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
*
|
|
937
|
+
* @summary Get all distinct labels in use across VMs
|
|
938
|
+
* @param {*} [options] Override http request option.
|
|
939
|
+
* @throws {RequiredError}
|
|
940
|
+
* @memberof DefaultApiInterface
|
|
941
|
+
*/
|
|
942
|
+
getVMLabelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>>;
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* Get all distinct labels in use across VMs
|
|
946
|
+
*/
|
|
947
|
+
getVMLabels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse>;
|
|
948
|
+
|
|
655
949
|
/**
|
|
656
950
|
* Creates request options for getVMUtilization without sending the request
|
|
657
951
|
* @param {string} id VirtualMachine MoRef ID
|
|
@@ -678,7 +972,7 @@ export interface DefaultApiInterface {
|
|
|
678
972
|
/**
|
|
679
973
|
* Creates request options for getVMs without sending the request
|
|
680
974
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
681
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
975
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
682
976
|
* @param {number} [page] Page number for pagination
|
|
683
977
|
* @param {number} [pageSize] Number of items per page
|
|
684
978
|
* @throws {RequiredError}
|
|
@@ -690,7 +984,7 @@ export interface DefaultApiInterface {
|
|
|
690
984
|
*
|
|
691
985
|
* @summary Get list of VMs with filtering and pagination
|
|
692
986
|
* @param {string} [byExpression] Filter by expression (matches VMs with the provided expression)
|
|
693
|
-
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues.
|
|
987
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\" or \"cluster:desc,name:asc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
694
988
|
* @param {number} [page] Page number for pagination
|
|
695
989
|
* @param {number} [pageSize] Number of items per page
|
|
696
990
|
* @param {*} [options] Override http request option.
|
|
@@ -704,6 +998,27 @@ export interface DefaultApiInterface {
|
|
|
704
998
|
*/
|
|
705
999
|
getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
706
1000
|
|
|
1001
|
+
/**
|
|
1002
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
1003
|
+
* @throws {RequiredError}
|
|
1004
|
+
* @memberof DefaultApiInterface
|
|
1005
|
+
*/
|
|
1006
|
+
getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
*
|
|
1010
|
+
* @summary Get distinct filter option values for VMs
|
|
1011
|
+
* @param {*} [options] Override http request option.
|
|
1012
|
+
* @throws {RequiredError}
|
|
1013
|
+
* @memberof DefaultApiInterface
|
|
1014
|
+
*/
|
|
1015
|
+
getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Get distinct filter option values for VMs
|
|
1019
|
+
*/
|
|
1020
|
+
getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
|
|
1021
|
+
|
|
707
1022
|
/**
|
|
708
1023
|
* Creates request options for getVersion without sending the request
|
|
709
1024
|
* @throws {RequiredError}
|
|
@@ -752,6 +1067,31 @@ export interface DefaultApiInterface {
|
|
|
752
1067
|
*/
|
|
753
1068
|
listGroups(requestParameters: ListGroupsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupListResponse>;
|
|
754
1069
|
|
|
1070
|
+
/**
|
|
1071
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1072
|
+
* @param {string} reportId Rightsizing report UUID
|
|
1073
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
1074
|
+
* @throws {RequiredError}
|
|
1075
|
+
* @memberof DefaultApiInterface
|
|
1076
|
+
*/
|
|
1077
|
+
listRightsizingReportClustersRequestOpts(requestParameters: ListRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
*
|
|
1081
|
+
* @summary Get cluster-level utilization aggregates for a specific report
|
|
1082
|
+
* @param {string} reportId Rightsizing report UUID
|
|
1083
|
+
* @param {string} [byExpression] Filter DSL expression (e.g. \"cluster_id = \'domain-c123\'\"). Omit to return all clusters.
|
|
1084
|
+
* @param {*} [options] Override http request option.
|
|
1085
|
+
* @throws {RequiredError}
|
|
1086
|
+
* @memberof DefaultApiInterface
|
|
1087
|
+
*/
|
|
1088
|
+
listRightsizingReportClustersRaw(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1092
|
+
*/
|
|
1093
|
+
listRightsizingReportClusters(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
|
|
1094
|
+
|
|
755
1095
|
/**
|
|
756
1096
|
* Creates request options for listRightsizingReports without sending the request
|
|
757
1097
|
* @throws {RequiredError}
|
|
@@ -798,51 +1138,52 @@ export interface DefaultApiInterface {
|
|
|
798
1138
|
postForecasterPairCapabilities(requestParameters: PostForecasterPairCapabilitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PairCapability>>;
|
|
799
1139
|
|
|
800
1140
|
/**
|
|
801
|
-
* Creates request options for
|
|
1141
|
+
* Creates request options for putCredentials without sending the request
|
|
802
1142
|
* @param {VcenterCredentials} vcenterCredentials
|
|
803
1143
|
* @throws {RequiredError}
|
|
804
1144
|
* @memberof DefaultApiInterface
|
|
805
1145
|
*/
|
|
806
|
-
|
|
1146
|
+
putCredentialsRequestOpts(requestParameters: PutCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
807
1147
|
|
|
808
1148
|
/**
|
|
809
|
-
* Validates
|
|
810
|
-
* @summary
|
|
1149
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
1150
|
+
* @summary Store vCenter credentials
|
|
811
1151
|
* @param {VcenterCredentials} vcenterCredentials
|
|
812
1152
|
* @param {*} [options] Override http request option.
|
|
813
1153
|
* @throws {RequiredError}
|
|
814
1154
|
* @memberof DefaultApiInterface
|
|
815
1155
|
*/
|
|
816
|
-
|
|
1156
|
+
putCredentialsRaw(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
817
1157
|
|
|
818
1158
|
/**
|
|
819
|
-
* Validates
|
|
820
|
-
*
|
|
1159
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
1160
|
+
* Store vCenter credentials
|
|
821
1161
|
*/
|
|
822
|
-
|
|
1162
|
+
putCredentials(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
823
1163
|
|
|
824
1164
|
/**
|
|
825
|
-
* Creates request options for
|
|
1165
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
826
1166
|
* @param {VcenterCredentials} vcenterCredentials
|
|
827
1167
|
* @throws {RequiredError}
|
|
828
1168
|
* @memberof DefaultApiInterface
|
|
829
1169
|
*/
|
|
830
|
-
|
|
1170
|
+
putForecasterCredentialsRequestOpts(requestParameters: PutForecasterCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
831
1171
|
|
|
832
1172
|
/**
|
|
833
|
-
*
|
|
834
|
-
* @summary
|
|
1173
|
+
* Validates vCenter connectivity and verifies the user has the required vSphere privileges for forecaster operations (datastore file management, VM provisioning, disk cloning). Verification only — credentials are not saved.
|
|
1174
|
+
* @summary Verify vCenter credentials and permissions
|
|
835
1175
|
* @param {VcenterCredentials} vcenterCredentials
|
|
836
1176
|
* @param {*} [options] Override http request option.
|
|
837
1177
|
* @throws {RequiredError}
|
|
838
1178
|
* @memberof DefaultApiInterface
|
|
839
1179
|
*/
|
|
840
|
-
|
|
1180
|
+
putForecasterCredentialsRaw(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
841
1181
|
|
|
842
1182
|
/**
|
|
843
|
-
*
|
|
1183
|
+
* Validates vCenter connectivity and verifies the user has the required vSphere privileges for forecaster operations (datastore file management, VM provisioning, disk cloning). Verification only — credentials are not saved.
|
|
1184
|
+
* Verify vCenter credentials and permissions
|
|
844
1185
|
*/
|
|
845
|
-
|
|
1186
|
+
putForecasterCredentials(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
846
1187
|
|
|
847
1188
|
/**
|
|
848
1189
|
* Creates request options for putInspectorVddk without sending the request
|
|
@@ -1119,29 +1460,102 @@ export interface DefaultApiInterface {
|
|
|
1119
1460
|
*/
|
|
1120
1461
|
updateGroup(requestParameters: UpdateGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Group>;
|
|
1121
1462
|
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1463
|
+
/**
|
|
1464
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
1465
|
+
* @param {string} label The label to modify
|
|
1466
|
+
* @param {UpdateLabelVMsRequest} updateLabelVMsRequest
|
|
1467
|
+
* @throws {RequiredError}
|
|
1468
|
+
* @memberof DefaultApiInterface
|
|
1469
|
+
*/
|
|
1470
|
+
updateLabelVMsRequestOpts(requestParameters: UpdateLabelVMsOperationRequest): Promise<runtime.RequestOpts>;
|
|
1128
1471
|
|
|
1129
1472
|
/**
|
|
1130
|
-
*
|
|
1473
|
+
*
|
|
1474
|
+
* @summary Modify label VM membership (add/remove label to/from VMs)
|
|
1475
|
+
* @param {string} label The label to modify
|
|
1476
|
+
* @param {UpdateLabelVMsRequest} updateLabelVMsRequest
|
|
1477
|
+
* @param {*} [options] Override http request option.
|
|
1478
|
+
* @throws {RequiredError}
|
|
1479
|
+
* @memberof DefaultApiInterface
|
|
1131
1480
|
*/
|
|
1132
|
-
|
|
1133
|
-
if (requestParameters['createGroupRequest'] == null) {
|
|
1134
|
-
throw new runtime.RequiredError(
|
|
1135
|
-
'createGroupRequest',
|
|
1136
|
-
'Required parameter "createGroupRequest" was null or undefined when calling createGroup().'
|
|
1137
|
-
);
|
|
1138
|
-
}
|
|
1481
|
+
updateLabelVMsRaw(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1139
1482
|
|
|
1140
|
-
|
|
1483
|
+
/**
|
|
1484
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1485
|
+
*/
|
|
1486
|
+
updateLabelVMs(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1141
1487
|
|
|
1142
|
-
|
|
1488
|
+
/**
|
|
1489
|
+
* Creates request options for updateVM without sending the request
|
|
1490
|
+
* @param {string} id VirtualMachine id
|
|
1491
|
+
* @param {VirtualMachineUpdateRequest} virtualMachineUpdateRequest
|
|
1492
|
+
* @throws {RequiredError}
|
|
1493
|
+
* @memberof DefaultApiInterface
|
|
1494
|
+
*/
|
|
1495
|
+
updateVMRequestOpts(requestParameters: UpdateVMRequest): Promise<runtime.RequestOpts>;
|
|
1143
1496
|
|
|
1144
|
-
|
|
1497
|
+
/**
|
|
1498
|
+
*
|
|
1499
|
+
* @summary Update VM properties
|
|
1500
|
+
* @param {string} id VirtualMachine id
|
|
1501
|
+
* @param {VirtualMachineUpdateRequest} virtualMachineUpdateRequest
|
|
1502
|
+
* @param {*} [options] Override http request option.
|
|
1503
|
+
* @throws {RequiredError}
|
|
1504
|
+
* @memberof DefaultApiInterface
|
|
1505
|
+
*/
|
|
1506
|
+
updateVMRaw(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1507
|
+
|
|
1508
|
+
/**
|
|
1509
|
+
* Update VM properties
|
|
1510
|
+
*/
|
|
1511
|
+
updateVM(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1512
|
+
|
|
1513
|
+
/**
|
|
1514
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
1515
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
1516
|
+
* @throws {RequiredError}
|
|
1517
|
+
* @memberof DefaultApiInterface
|
|
1518
|
+
*/
|
|
1519
|
+
validateInspectorCredentialsRequestOpts(requestParameters: ValidateInspectorCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
*
|
|
1523
|
+
* @summary Validate vCenter credentials for inspector
|
|
1524
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
1525
|
+
* @param {*} [options] Override http request option.
|
|
1526
|
+
* @throws {RequiredError}
|
|
1527
|
+
* @memberof DefaultApiInterface
|
|
1528
|
+
*/
|
|
1529
|
+
validateInspectorCredentialsRaw(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* Validate vCenter credentials for inspector
|
|
1533
|
+
*/
|
|
1534
|
+
validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1535
|
+
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
/**
|
|
1539
|
+
*
|
|
1540
|
+
*/
|
|
1541
|
+
export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* Creates request options for createGroup without sending the request
|
|
1545
|
+
*/
|
|
1546
|
+
async createGroupRequestOpts(requestParameters: CreateGroupOperationRequest): Promise<runtime.RequestOpts> {
|
|
1547
|
+
if (requestParameters['createGroupRequest'] == null) {
|
|
1548
|
+
throw new runtime.RequiredError(
|
|
1549
|
+
'createGroupRequest',
|
|
1550
|
+
'Required parameter "createGroupRequest" was null or undefined when calling createGroup().'
|
|
1551
|
+
);
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
const queryParameters: any = {};
|
|
1555
|
+
|
|
1556
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1557
|
+
|
|
1558
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1145
1559
|
|
|
1146
1560
|
|
|
1147
1561
|
let urlPath = `/groups`;
|
|
@@ -1173,6 +1587,44 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1173
1587
|
return await response.value();
|
|
1174
1588
|
}
|
|
1175
1589
|
|
|
1590
|
+
/**
|
|
1591
|
+
* Creates request options for deleteCredentials without sending the request
|
|
1592
|
+
*/
|
|
1593
|
+
async deleteCredentialsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1594
|
+
const queryParameters: any = {};
|
|
1595
|
+
|
|
1596
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
let urlPath = `/credentials`;
|
|
1600
|
+
|
|
1601
|
+
return {
|
|
1602
|
+
path: urlPath,
|
|
1603
|
+
method: 'DELETE',
|
|
1604
|
+
headers: headerParameters,
|
|
1605
|
+
query: queryParameters,
|
|
1606
|
+
};
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* Removes all stored vCenter credentials from the database.
|
|
1611
|
+
* Delete stored credentials
|
|
1612
|
+
*/
|
|
1613
|
+
async deleteCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1614
|
+
const requestOptions = await this.deleteCredentialsRequestOpts();
|
|
1615
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1616
|
+
|
|
1617
|
+
return new runtime.VoidApiResponse(response);
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* Removes all stored vCenter credentials from the database.
|
|
1622
|
+
* Delete stored credentials
|
|
1623
|
+
*/
|
|
1624
|
+
async deleteCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1625
|
+
await this.deleteCredentialsRaw(initOverrides);
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1176
1628
|
/**
|
|
1177
1629
|
* Creates request options for deleteForecasterRun without sending the request
|
|
1178
1630
|
*/
|
|
@@ -1261,6 +1713,51 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1261
1713
|
await this.deleteGroupRaw(requestParameters, initOverrides);
|
|
1262
1714
|
}
|
|
1263
1715
|
|
|
1716
|
+
/**
|
|
1717
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
1718
|
+
*/
|
|
1719
|
+
async deleteLabelGloballyRequestOpts(requestParameters: DeleteLabelGloballyRequest): Promise<runtime.RequestOpts> {
|
|
1720
|
+
if (requestParameters['label'] == null) {
|
|
1721
|
+
throw new runtime.RequiredError(
|
|
1722
|
+
'label',
|
|
1723
|
+
'Required parameter "label" was null or undefined when calling deleteLabelGlobally().'
|
|
1724
|
+
);
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
const queryParameters: any = {};
|
|
1728
|
+
|
|
1729
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1733
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1734
|
+
|
|
1735
|
+
return {
|
|
1736
|
+
path: urlPath,
|
|
1737
|
+
method: 'DELETE',
|
|
1738
|
+
headers: headerParameters,
|
|
1739
|
+
query: queryParameters,
|
|
1740
|
+
};
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
/**
|
|
1744
|
+
* Delete label from all VMs
|
|
1745
|
+
*/
|
|
1746
|
+
async deleteLabelGloballyRaw(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteLabelGloballyResponse>> {
|
|
1747
|
+
const requestOptions = await this.deleteLabelGloballyRequestOpts(requestParameters);
|
|
1748
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1749
|
+
|
|
1750
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLabelGloballyResponseFromJSON(jsonValue));
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
/**
|
|
1754
|
+
* Delete label from all VMs
|
|
1755
|
+
*/
|
|
1756
|
+
async deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse> {
|
|
1757
|
+
const response = await this.deleteLabelGloballyRaw(requestParameters, initOverrides);
|
|
1758
|
+
return await response.value();
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1264
1761
|
/**
|
|
1265
1762
|
* Creates request options for getAgentStatus without sending the request
|
|
1266
1763
|
*/
|
|
@@ -1298,6 +1795,88 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1298
1795
|
return await response.value();
|
|
1299
1796
|
}
|
|
1300
1797
|
|
|
1798
|
+
/**
|
|
1799
|
+
* Creates request options for getApplications without sending the request
|
|
1800
|
+
*/
|
|
1801
|
+
async getApplicationsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1802
|
+
const queryParameters: any = {};
|
|
1803
|
+
|
|
1804
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
let urlPath = `/applications`;
|
|
1808
|
+
|
|
1809
|
+
return {
|
|
1810
|
+
path: urlPath,
|
|
1811
|
+
method: 'GET',
|
|
1812
|
+
headers: headerParameters,
|
|
1813
|
+
query: queryParameters,
|
|
1814
|
+
};
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
/**
|
|
1818
|
+
* List detected applications running on VMs
|
|
1819
|
+
*/
|
|
1820
|
+
async getApplicationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationListResponse>> {
|
|
1821
|
+
const requestOptions = await this.getApplicationsRequestOpts();
|
|
1822
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1823
|
+
|
|
1824
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationListResponseFromJSON(jsonValue));
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
/**
|
|
1828
|
+
* List detected applications running on VMs
|
|
1829
|
+
*/
|
|
1830
|
+
async getApplications(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationListResponse> {
|
|
1831
|
+
const response = await this.getApplicationsRaw(initOverrides);
|
|
1832
|
+
return await response.value();
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
1837
|
+
*/
|
|
1838
|
+
async getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts> {
|
|
1839
|
+
if (requestParameters['clusterId'] == null) {
|
|
1840
|
+
throw new runtime.RequiredError(
|
|
1841
|
+
'clusterId',
|
|
1842
|
+
'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().'
|
|
1843
|
+
);
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
const queryParameters: any = {};
|
|
1847
|
+
|
|
1848
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
let urlPath = `/clusters/{cluster_id}/utilization`;
|
|
1852
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
1853
|
+
|
|
1854
|
+
return {
|
|
1855
|
+
path: urlPath,
|
|
1856
|
+
method: 'GET',
|
|
1857
|
+
headers: headerParameters,
|
|
1858
|
+
query: queryParameters,
|
|
1859
|
+
};
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* Get latest cluster utilization by cluster ID
|
|
1864
|
+
*/
|
|
1865
|
+
async getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>> {
|
|
1866
|
+
const requestOptions = await this.getClusterUtilizationRequestOpts(requestParameters);
|
|
1867
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1868
|
+
|
|
1869
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
/**
|
|
1873
|
+
* Get latest cluster utilization by cluster ID
|
|
1874
|
+
*/
|
|
1875
|
+
async getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse> {
|
|
1876
|
+
const response = await this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
1877
|
+
return await response.value();
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1301
1880
|
/**
|
|
1302
1881
|
* Creates request options for getCollectorStatus without sending the request
|
|
1303
1882
|
*/
|
|
@@ -1335,6 +1914,45 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1335
1914
|
return await response.value();
|
|
1336
1915
|
}
|
|
1337
1916
|
|
|
1917
|
+
/**
|
|
1918
|
+
* Creates request options for getCredentials without sending the request
|
|
1919
|
+
*/
|
|
1920
|
+
async getCredentialsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1921
|
+
const queryParameters: any = {};
|
|
1922
|
+
|
|
1923
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1924
|
+
|
|
1925
|
+
|
|
1926
|
+
let urlPath = `/credentials`;
|
|
1927
|
+
|
|
1928
|
+
return {
|
|
1929
|
+
path: urlPath,
|
|
1930
|
+
method: 'GET',
|
|
1931
|
+
headers: headerParameters,
|
|
1932
|
+
query: queryParameters,
|
|
1933
|
+
};
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
/**
|
|
1937
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
1938
|
+
* Get stored credential status
|
|
1939
|
+
*/
|
|
1940
|
+
async getCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>> {
|
|
1941
|
+
const requestOptions = await this.getCredentialsRequestOpts();
|
|
1942
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1943
|
+
|
|
1944
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialStatusFromJSON(jsonValue));
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
1949
|
+
* Get stored credential status
|
|
1950
|
+
*/
|
|
1951
|
+
async getCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus> {
|
|
1952
|
+
const response = await this.getCredentialsRaw(initOverrides);
|
|
1953
|
+
return await response.value();
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1338
1956
|
/**
|
|
1339
1957
|
* Creates request options for getForecasterDatastores without sending the request
|
|
1340
1958
|
*/
|
|
@@ -1576,10 +2194,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1576
2194
|
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
1577
2195
|
}
|
|
1578
2196
|
|
|
1579
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
1580
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
2197
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1584
2198
|
|
|
1585
2199
|
|
|
@@ -1665,7 +2279,149 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1665
2279
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1666
2280
|
|
|
1667
2281
|
|
|
1668
|
-
let urlPath = `/inventory`;
|
|
2282
|
+
let urlPath = `/inventory`;
|
|
2283
|
+
|
|
2284
|
+
return {
|
|
2285
|
+
path: urlPath,
|
|
2286
|
+
method: 'GET',
|
|
2287
|
+
headers: headerParameters,
|
|
2288
|
+
query: queryParameters,
|
|
2289
|
+
};
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
/**
|
|
2293
|
+
* Get collected inventory
|
|
2294
|
+
*/
|
|
2295
|
+
async getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetInventory200Response>> {
|
|
2296
|
+
const requestOptions = await this.getInventoryRequestOpts(requestParameters);
|
|
2297
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2298
|
+
|
|
2299
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetInventory200ResponseFromJSON(jsonValue));
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
/**
|
|
2303
|
+
* Get collected inventory
|
|
2304
|
+
*/
|
|
2305
|
+
async getInventory(requestParameters: GetInventoryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response> {
|
|
2306
|
+
const response = await this.getInventoryRaw(requestParameters, initOverrides);
|
|
2307
|
+
return await response.value();
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
/**
|
|
2311
|
+
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
2312
|
+
* @deprecated
|
|
2313
|
+
*/
|
|
2314
|
+
async getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts> {
|
|
2315
|
+
const queryParameters: any = {};
|
|
2316
|
+
|
|
2317
|
+
if (requestParameters['byExpression'] != null) {
|
|
2318
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2321
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2322
|
+
|
|
2323
|
+
|
|
2324
|
+
let urlPath = `/cluster_rightsizing`;
|
|
2325
|
+
|
|
2326
|
+
return {
|
|
2327
|
+
path: urlPath,
|
|
2328
|
+
method: 'GET',
|
|
2329
|
+
headers: headerParameters,
|
|
2330
|
+
query: queryParameters,
|
|
2331
|
+
};
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
/**
|
|
2335
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
2336
|
+
* @deprecated
|
|
2337
|
+
*/
|
|
2338
|
+
async getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
2339
|
+
const requestOptions = await this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
2340
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2341
|
+
|
|
2342
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
/**
|
|
2346
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
2347
|
+
* @deprecated
|
|
2348
|
+
*/
|
|
2349
|
+
async getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
2350
|
+
const response = await this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
2351
|
+
return await response.value();
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
/**
|
|
2355
|
+
* Creates request options for getRightsizingReport without sending the request
|
|
2356
|
+
*/
|
|
2357
|
+
async getRightsizingReportRequestOpts(requestParameters: GetRightsizingReportRequest): Promise<runtime.RequestOpts> {
|
|
2358
|
+
if (requestParameters['reportId'] == null) {
|
|
2359
|
+
throw new runtime.RequiredError(
|
|
2360
|
+
'reportId',
|
|
2361
|
+
'Required parameter "reportId" was null or undefined when calling getRightsizingReport().'
|
|
2362
|
+
);
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2365
|
+
const queryParameters: any = {};
|
|
2366
|
+
|
|
2367
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2368
|
+
|
|
2369
|
+
|
|
2370
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
2371
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
2372
|
+
|
|
2373
|
+
return {
|
|
2374
|
+
path: urlPath,
|
|
2375
|
+
method: 'GET',
|
|
2376
|
+
headers: headerParameters,
|
|
2377
|
+
query: queryParameters,
|
|
2378
|
+
};
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
/**
|
|
2382
|
+
* Get a specific rightsizing report with full VM metrics
|
|
2383
|
+
*/
|
|
2384
|
+
async getRightsizingReportRaw(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingReport>> {
|
|
2385
|
+
const requestOptions = await this.getRightsizingReportRequestOpts(requestParameters);
|
|
2386
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2387
|
+
|
|
2388
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingReportFromJSON(jsonValue));
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
/**
|
|
2392
|
+
* Get a specific rightsizing report with full VM metrics
|
|
2393
|
+
*/
|
|
2394
|
+
async getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport> {
|
|
2395
|
+
const response = await this.getRightsizingReportRaw(requestParameters, initOverrides);
|
|
2396
|
+
return await response.value();
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
/**
|
|
2400
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
2401
|
+
*/
|
|
2402
|
+
async getRightsizingReportClusterRequestOpts(requestParameters: GetRightsizingReportClusterRequest): Promise<runtime.RequestOpts> {
|
|
2403
|
+
if (requestParameters['reportId'] == null) {
|
|
2404
|
+
throw new runtime.RequiredError(
|
|
2405
|
+
'reportId',
|
|
2406
|
+
'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().'
|
|
2407
|
+
);
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
if (requestParameters['clusterId'] == null) {
|
|
2411
|
+
throw new runtime.RequiredError(
|
|
2412
|
+
'clusterId',
|
|
2413
|
+
'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().'
|
|
2414
|
+
);
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
const queryParameters: any = {};
|
|
2418
|
+
|
|
2419
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2420
|
+
|
|
2421
|
+
|
|
2422
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
2423
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
2424
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
1669
2425
|
|
|
1670
2426
|
return {
|
|
1671
2427
|
path: urlPath,
|
|
@@ -1676,41 +2432,46 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1676
2432
|
}
|
|
1677
2433
|
|
|
1678
2434
|
/**
|
|
1679
|
-
* Get
|
|
2435
|
+
* Get utilization for a specific cluster from a specific report
|
|
1680
2436
|
*/
|
|
1681
|
-
async
|
|
1682
|
-
const requestOptions = await this.
|
|
2437
|
+
async getRightsizingReportClusterRaw(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>> {
|
|
2438
|
+
const requestOptions = await this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
1683
2439
|
const response = await this.request(requestOptions, initOverrides);
|
|
1684
2440
|
|
|
1685
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2441
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
|
|
1686
2442
|
}
|
|
1687
2443
|
|
|
1688
2444
|
/**
|
|
1689
|
-
* Get
|
|
2445
|
+
* Get utilization for a specific cluster from a specific report
|
|
1690
2446
|
*/
|
|
1691
|
-
async
|
|
1692
|
-
const response = await this.
|
|
2447
|
+
async getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse> {
|
|
2448
|
+
const response = await this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
1693
2449
|
return await response.value();
|
|
1694
2450
|
}
|
|
1695
2451
|
|
|
1696
2452
|
/**
|
|
1697
|
-
* Creates request options for
|
|
2453
|
+
* Creates request options for getRightsizingReportClusters without sending the request
|
|
2454
|
+
* @deprecated
|
|
1698
2455
|
*/
|
|
1699
|
-
async
|
|
1700
|
-
if (requestParameters['
|
|
2456
|
+
async getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
|
|
2457
|
+
if (requestParameters['reportId'] == null) {
|
|
1701
2458
|
throw new runtime.RequiredError(
|
|
1702
|
-
'
|
|
1703
|
-
'Required parameter "
|
|
2459
|
+
'reportId',
|
|
2460
|
+
'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().'
|
|
1704
2461
|
);
|
|
1705
2462
|
}
|
|
1706
2463
|
|
|
1707
2464
|
const queryParameters: any = {};
|
|
1708
2465
|
|
|
2466
|
+
if (requestParameters['byExpression'] != null) {
|
|
2467
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
2468
|
+
}
|
|
2469
|
+
|
|
1709
2470
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1710
2471
|
|
|
1711
2472
|
|
|
1712
|
-
let urlPath = `/
|
|
1713
|
-
urlPath = urlPath.replace('{
|
|
2473
|
+
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
2474
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1714
2475
|
|
|
1715
2476
|
return {
|
|
1716
2477
|
path: urlPath,
|
|
@@ -1721,20 +2482,22 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1721
2482
|
}
|
|
1722
2483
|
|
|
1723
2484
|
/**
|
|
1724
|
-
* Get
|
|
2485
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
2486
|
+
* @deprecated
|
|
1725
2487
|
*/
|
|
1726
|
-
async
|
|
1727
|
-
const requestOptions = await this.
|
|
2488
|
+
async getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
2489
|
+
const requestOptions = await this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
1728
2490
|
const response = await this.request(requestOptions, initOverrides);
|
|
1729
2491
|
|
|
1730
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2492
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
1731
2493
|
}
|
|
1732
2494
|
|
|
1733
2495
|
/**
|
|
1734
|
-
* Get
|
|
2496
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
2497
|
+
* @deprecated
|
|
1735
2498
|
*/
|
|
1736
|
-
async
|
|
1737
|
-
const response = await this.
|
|
2499
|
+
async getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
2500
|
+
const response = await this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
1738
2501
|
return await response.value();
|
|
1739
2502
|
}
|
|
1740
2503
|
|
|
@@ -1783,6 +2546,43 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1783
2546
|
return await response.value();
|
|
1784
2547
|
}
|
|
1785
2548
|
|
|
2549
|
+
/**
|
|
2550
|
+
* Creates request options for getVMLabels without sending the request
|
|
2551
|
+
*/
|
|
2552
|
+
async getVMLabelsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2553
|
+
const queryParameters: any = {};
|
|
2554
|
+
|
|
2555
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2556
|
+
|
|
2557
|
+
|
|
2558
|
+
let urlPath = `/vms/labels`;
|
|
2559
|
+
|
|
2560
|
+
return {
|
|
2561
|
+
path: urlPath,
|
|
2562
|
+
method: 'GET',
|
|
2563
|
+
headers: headerParameters,
|
|
2564
|
+
query: queryParameters,
|
|
2565
|
+
};
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
/**
|
|
2569
|
+
* Get all distinct labels in use across VMs
|
|
2570
|
+
*/
|
|
2571
|
+
async getVMLabelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>> {
|
|
2572
|
+
const requestOptions = await this.getVMLabelsRequestOpts();
|
|
2573
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2574
|
+
|
|
2575
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMLabelsResponseFromJSON(jsonValue));
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
/**
|
|
2579
|
+
* Get all distinct labels in use across VMs
|
|
2580
|
+
*/
|
|
2581
|
+
async getVMLabels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse> {
|
|
2582
|
+
const response = await this.getVMLabelsRaw(initOverrides);
|
|
2583
|
+
return await response.value();
|
|
2584
|
+
}
|
|
2585
|
+
|
|
1786
2586
|
/**
|
|
1787
2587
|
* Creates request options for getVMUtilization without sending the request
|
|
1788
2588
|
*/
|
|
@@ -1881,6 +2681,43 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1881
2681
|
return await response.value();
|
|
1882
2682
|
}
|
|
1883
2683
|
|
|
2684
|
+
/**
|
|
2685
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
2686
|
+
*/
|
|
2687
|
+
async getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2688
|
+
const queryParameters: any = {};
|
|
2689
|
+
|
|
2690
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2691
|
+
|
|
2692
|
+
|
|
2693
|
+
let urlPath = `/vms/filter-options`;
|
|
2694
|
+
|
|
2695
|
+
return {
|
|
2696
|
+
path: urlPath,
|
|
2697
|
+
method: 'GET',
|
|
2698
|
+
headers: headerParameters,
|
|
2699
|
+
query: queryParameters,
|
|
2700
|
+
};
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
/**
|
|
2704
|
+
* Get distinct filter option values for VMs
|
|
2705
|
+
*/
|
|
2706
|
+
async getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>> {
|
|
2707
|
+
const requestOptions = await this.getVMsFilterOptionsRequestOpts();
|
|
2708
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2709
|
+
|
|
2710
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
/**
|
|
2714
|
+
* Get distinct filter option values for VMs
|
|
2715
|
+
*/
|
|
2716
|
+
async getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse> {
|
|
2717
|
+
const response = await this.getVMsFilterOptionsRaw(initOverrides);
|
|
2718
|
+
return await response.value();
|
|
2719
|
+
}
|
|
2720
|
+
|
|
1884
2721
|
/**
|
|
1885
2722
|
* Creates request options for getVersion without sending the request
|
|
1886
2723
|
*/
|
|
@@ -1967,6 +2804,55 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
1967
2804
|
return await response.value();
|
|
1968
2805
|
}
|
|
1969
2806
|
|
|
2807
|
+
/**
|
|
2808
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
2809
|
+
*/
|
|
2810
|
+
async listRightsizingReportClustersRequestOpts(requestParameters: ListRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
|
|
2811
|
+
if (requestParameters['reportId'] == null) {
|
|
2812
|
+
throw new runtime.RequiredError(
|
|
2813
|
+
'reportId',
|
|
2814
|
+
'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().'
|
|
2815
|
+
);
|
|
2816
|
+
}
|
|
2817
|
+
|
|
2818
|
+
const queryParameters: any = {};
|
|
2819
|
+
|
|
2820
|
+
if (requestParameters['byExpression'] != null) {
|
|
2821
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
2822
|
+
}
|
|
2823
|
+
|
|
2824
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2825
|
+
|
|
2826
|
+
|
|
2827
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
2828
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
2829
|
+
|
|
2830
|
+
return {
|
|
2831
|
+
path: urlPath,
|
|
2832
|
+
method: 'GET',
|
|
2833
|
+
headers: headerParameters,
|
|
2834
|
+
query: queryParameters,
|
|
2835
|
+
};
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
/**
|
|
2839
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
2840
|
+
*/
|
|
2841
|
+
async listRightsizingReportClustersRaw(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
|
|
2842
|
+
const requestOptions = await this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
2843
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2844
|
+
|
|
2845
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
/**
|
|
2849
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
2850
|
+
*/
|
|
2851
|
+
async listRightsizingReportClusters(requestParameters: ListRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
|
|
2852
|
+
const response = await this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
2853
|
+
return await response.value();
|
|
2854
|
+
}
|
|
2855
|
+
|
|
1970
2856
|
/**
|
|
1971
2857
|
* Creates request options for listRightsizingReports without sending the request
|
|
1972
2858
|
*/
|
|
@@ -2054,13 +2940,13 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2054
2940
|
}
|
|
2055
2941
|
|
|
2056
2942
|
/**
|
|
2057
|
-
* Creates request options for
|
|
2943
|
+
* Creates request options for putCredentials without sending the request
|
|
2058
2944
|
*/
|
|
2059
|
-
async
|
|
2945
|
+
async putCredentialsRequestOpts(requestParameters: PutCredentialsRequest): Promise<runtime.RequestOpts> {
|
|
2060
2946
|
if (requestParameters['vcenterCredentials'] == null) {
|
|
2061
2947
|
throw new runtime.RequiredError(
|
|
2062
2948
|
'vcenterCredentials',
|
|
2063
|
-
'Required parameter "vcenterCredentials" was null or undefined when calling
|
|
2949
|
+
'Required parameter "vcenterCredentials" was null or undefined when calling putCredentials().'
|
|
2064
2950
|
);
|
|
2065
2951
|
}
|
|
2066
2952
|
|
|
@@ -2071,7 +2957,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2071
2957
|
headerParameters['Content-Type'] = 'application/json';
|
|
2072
2958
|
|
|
2073
2959
|
|
|
2074
|
-
let urlPath = `/
|
|
2960
|
+
let urlPath = `/credentials`;
|
|
2075
2961
|
|
|
2076
2962
|
return {
|
|
2077
2963
|
path: urlPath,
|
|
@@ -2083,32 +2969,33 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2083
2969
|
}
|
|
2084
2970
|
|
|
2085
2971
|
/**
|
|
2086
|
-
* Validates
|
|
2087
|
-
*
|
|
2972
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
2973
|
+
* Store vCenter credentials
|
|
2088
2974
|
*/
|
|
2089
|
-
async
|
|
2090
|
-
const requestOptions = await this.
|
|
2975
|
+
async putCredentialsRaw(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>> {
|
|
2976
|
+
const requestOptions = await this.putCredentialsRequestOpts(requestParameters);
|
|
2091
2977
|
const response = await this.request(requestOptions, initOverrides);
|
|
2092
2978
|
|
|
2093
|
-
return new runtime.
|
|
2979
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CredentialStatusFromJSON(jsonValue));
|
|
2094
2980
|
}
|
|
2095
2981
|
|
|
2096
2982
|
/**
|
|
2097
|
-
* Validates
|
|
2098
|
-
*
|
|
2983
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
2984
|
+
* Store vCenter credentials
|
|
2099
2985
|
*/
|
|
2100
|
-
async
|
|
2101
|
-
await this.
|
|
2986
|
+
async putCredentials(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus> {
|
|
2987
|
+
const response = await this.putCredentialsRaw(requestParameters, initOverrides);
|
|
2988
|
+
return await response.value();
|
|
2102
2989
|
}
|
|
2103
2990
|
|
|
2104
2991
|
/**
|
|
2105
|
-
* Creates request options for
|
|
2992
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
2106
2993
|
*/
|
|
2107
|
-
async
|
|
2994
|
+
async putForecasterCredentialsRequestOpts(requestParameters: PutForecasterCredentialsRequest): Promise<runtime.RequestOpts> {
|
|
2108
2995
|
if (requestParameters['vcenterCredentials'] == null) {
|
|
2109
2996
|
throw new runtime.RequiredError(
|
|
2110
2997
|
'vcenterCredentials',
|
|
2111
|
-
'Required parameter "vcenterCredentials" was null or undefined when calling
|
|
2998
|
+
'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().'
|
|
2112
2999
|
);
|
|
2113
3000
|
}
|
|
2114
3001
|
|
|
@@ -2119,7 +3006,7 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2119
3006
|
headerParameters['Content-Type'] = 'application/json';
|
|
2120
3007
|
|
|
2121
3008
|
|
|
2122
|
-
let urlPath = `/
|
|
3009
|
+
let urlPath = `/forecaster/credentials`;
|
|
2123
3010
|
|
|
2124
3011
|
return {
|
|
2125
3012
|
path: urlPath,
|
|
@@ -2131,20 +3018,22 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2131
3018
|
}
|
|
2132
3019
|
|
|
2133
3020
|
/**
|
|
2134
|
-
*
|
|
3021
|
+
* Validates vCenter connectivity and verifies the user has the required vSphere privileges for forecaster operations (datastore file management, VM provisioning, disk cloning). Verification only — credentials are not saved.
|
|
3022
|
+
* Verify vCenter credentials and permissions
|
|
2135
3023
|
*/
|
|
2136
|
-
async
|
|
2137
|
-
const requestOptions = await this.
|
|
3024
|
+
async putForecasterCredentialsRaw(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3025
|
+
const requestOptions = await this.putForecasterCredentialsRequestOpts(requestParameters);
|
|
2138
3026
|
const response = await this.request(requestOptions, initOverrides);
|
|
2139
3027
|
|
|
2140
3028
|
return new runtime.VoidApiResponse(response);
|
|
2141
3029
|
}
|
|
2142
3030
|
|
|
2143
3031
|
/**
|
|
2144
|
-
*
|
|
3032
|
+
* Validates vCenter connectivity and verifies the user has the required vSphere privileges for forecaster operations (datastore file management, VM provisioning, disk cloning). Verification only — credentials are not saved.
|
|
3033
|
+
* Verify vCenter credentials and permissions
|
|
2145
3034
|
*/
|
|
2146
|
-
async
|
|
2147
|
-
await this.
|
|
3035
|
+
async putForecasterCredentials(requestParameters: PutForecasterCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3036
|
+
await this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
2148
3037
|
}
|
|
2149
3038
|
|
|
2150
3039
|
/**
|
|
@@ -2708,4 +3597,158 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
|
|
|
2708
3597
|
return await response.value();
|
|
2709
3598
|
}
|
|
2710
3599
|
|
|
3600
|
+
/**
|
|
3601
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
3602
|
+
*/
|
|
3603
|
+
async updateLabelVMsRequestOpts(requestParameters: UpdateLabelVMsOperationRequest): Promise<runtime.RequestOpts> {
|
|
3604
|
+
if (requestParameters['label'] == null) {
|
|
3605
|
+
throw new runtime.RequiredError(
|
|
3606
|
+
'label',
|
|
3607
|
+
'Required parameter "label" was null or undefined when calling updateLabelVMs().'
|
|
3608
|
+
);
|
|
3609
|
+
}
|
|
3610
|
+
|
|
3611
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
3612
|
+
throw new runtime.RequiredError(
|
|
3613
|
+
'updateLabelVMsRequest',
|
|
3614
|
+
'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().'
|
|
3615
|
+
);
|
|
3616
|
+
}
|
|
3617
|
+
|
|
3618
|
+
const queryParameters: any = {};
|
|
3619
|
+
|
|
3620
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3621
|
+
|
|
3622
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3623
|
+
|
|
3624
|
+
|
|
3625
|
+
let urlPath = `/vms/labels/{label}`;
|
|
3626
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
3627
|
+
|
|
3628
|
+
return {
|
|
3629
|
+
path: urlPath,
|
|
3630
|
+
method: 'PATCH',
|
|
3631
|
+
headers: headerParameters,
|
|
3632
|
+
query: queryParameters,
|
|
3633
|
+
body: UpdateLabelVMsRequestToJSON(requestParameters['updateLabelVMsRequest']),
|
|
3634
|
+
};
|
|
3635
|
+
}
|
|
3636
|
+
|
|
3637
|
+
/**
|
|
3638
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
3639
|
+
*/
|
|
3640
|
+
async updateLabelVMsRaw(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3641
|
+
const requestOptions = await this.updateLabelVMsRequestOpts(requestParameters);
|
|
3642
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3643
|
+
|
|
3644
|
+
return new runtime.VoidApiResponse(response);
|
|
3645
|
+
}
|
|
3646
|
+
|
|
3647
|
+
/**
|
|
3648
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
3649
|
+
*/
|
|
3650
|
+
async updateLabelVMs(requestParameters: UpdateLabelVMsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3651
|
+
await this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3654
|
+
/**
|
|
3655
|
+
* Creates request options for updateVM without sending the request
|
|
3656
|
+
*/
|
|
3657
|
+
async updateVMRequestOpts(requestParameters: UpdateVMRequest): Promise<runtime.RequestOpts> {
|
|
3658
|
+
if (requestParameters['id'] == null) {
|
|
3659
|
+
throw new runtime.RequiredError(
|
|
3660
|
+
'id',
|
|
3661
|
+
'Required parameter "id" was null or undefined when calling updateVM().'
|
|
3662
|
+
);
|
|
3663
|
+
}
|
|
3664
|
+
|
|
3665
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
3666
|
+
throw new runtime.RequiredError(
|
|
3667
|
+
'virtualMachineUpdateRequest',
|
|
3668
|
+
'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().'
|
|
3669
|
+
);
|
|
3670
|
+
}
|
|
3671
|
+
|
|
3672
|
+
const queryParameters: any = {};
|
|
3673
|
+
|
|
3674
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3675
|
+
|
|
3676
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3677
|
+
|
|
3678
|
+
|
|
3679
|
+
let urlPath = `/vms/{id}`;
|
|
3680
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
3681
|
+
|
|
3682
|
+
return {
|
|
3683
|
+
path: urlPath,
|
|
3684
|
+
method: 'PATCH',
|
|
3685
|
+
headers: headerParameters,
|
|
3686
|
+
query: queryParameters,
|
|
3687
|
+
body: VirtualMachineUpdateRequestToJSON(requestParameters['virtualMachineUpdateRequest']),
|
|
3688
|
+
};
|
|
3689
|
+
}
|
|
3690
|
+
|
|
3691
|
+
/**
|
|
3692
|
+
* Update VM properties
|
|
3693
|
+
*/
|
|
3694
|
+
async updateVMRaw(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3695
|
+
const requestOptions = await this.updateVMRequestOpts(requestParameters);
|
|
3696
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3697
|
+
|
|
3698
|
+
return new runtime.VoidApiResponse(response);
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3701
|
+
/**
|
|
3702
|
+
* Update VM properties
|
|
3703
|
+
*/
|
|
3704
|
+
async updateVM(requestParameters: UpdateVMRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3705
|
+
await this.updateVMRaw(requestParameters, initOverrides);
|
|
3706
|
+
}
|
|
3707
|
+
|
|
3708
|
+
/**
|
|
3709
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
3710
|
+
*/
|
|
3711
|
+
async validateInspectorCredentialsRequestOpts(requestParameters: ValidateInspectorCredentialsRequest): Promise<runtime.RequestOpts> {
|
|
3712
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
3713
|
+
throw new runtime.RequiredError(
|
|
3714
|
+
'vcenterCredentials',
|
|
3715
|
+
'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().'
|
|
3716
|
+
);
|
|
3717
|
+
}
|
|
3718
|
+
|
|
3719
|
+
const queryParameters: any = {};
|
|
3720
|
+
|
|
3721
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3722
|
+
|
|
3723
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3724
|
+
|
|
3725
|
+
|
|
3726
|
+
let urlPath = `/inspector/credentials`;
|
|
3727
|
+
|
|
3728
|
+
return {
|
|
3729
|
+
path: urlPath,
|
|
3730
|
+
method: 'POST',
|
|
3731
|
+
headers: headerParameters,
|
|
3732
|
+
query: queryParameters,
|
|
3733
|
+
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
3734
|
+
};
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
/**
|
|
3738
|
+
* Validate vCenter credentials for inspector
|
|
3739
|
+
*/
|
|
3740
|
+
async validateInspectorCredentialsRaw(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3741
|
+
const requestOptions = await this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
3742
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3743
|
+
|
|
3744
|
+
return new runtime.VoidApiResponse(response);
|
|
3745
|
+
}
|
|
3746
|
+
|
|
3747
|
+
/**
|
|
3748
|
+
* Validate vCenter credentials for inspector
|
|
3749
|
+
*/
|
|
3750
|
+
async validateInspectorCredentials(requestParameters: ValidateInspectorCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3751
|
+
await this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
3752
|
+
}
|
|
3753
|
+
|
|
2711
3754
|
}
|