@openshift-migration-advisor/agent-sdk 0.12.0-d4bdc4301890 → 0.12.0-e4c04f972747
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +52 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +52 -5
- package/dist/apis/DefaultApi.d.ts +798 -20
- package/dist/apis/DefaultApi.js +878 -24
- package/dist/esm/apis/DefaultApi.d.ts +798 -20
- package/dist/esm/apis/DefaultApi.js +878 -24
- 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/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -0
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/DatastoreDetail.d.ts +90 -0
- package/dist/esm/models/DatastoreDetail.js +74 -0
- package/dist/esm/models/DatastorePair.d.ts +50 -0
- package/dist/esm/models/DatastorePair.js +53 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/EstimateRange.d.ts +44 -0
- package/dist/esm/models/EstimateRange.js +45 -0
- package/dist/esm/models/ForecastStats.d.ts +87 -0
- package/dist/esm/models/ForecastStats.js +64 -0
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
- package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/esm/models/ForecasterPairStatus.js +82 -0
- package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/esm/models/ForecasterStartRequest.js +53 -0
- package/dist/esm/models/ForecasterStatus.d.ts +47 -0
- package/dist/esm/models/ForecasterStatus.js +53 -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/PairCapability.d.ts +60 -0
- package/dist/esm/models/PairCapability.js +64 -0
- package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/esm/models/PairCapabilityRequest.js +47 -0
- package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/esm/models/PutForecasterCredentials403Response.js +43 -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/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -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/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 +26 -0
- package/dist/esm/models/index.js +26 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/DatastoreDetail.d.ts +90 -0
- package/dist/models/DatastoreDetail.js +82 -0
- package/dist/models/DatastorePair.d.ts +50 -0
- package/dist/models/DatastorePair.js +60 -0
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/EstimateRange.d.ts +44 -0
- package/dist/models/EstimateRange.js +52 -0
- package/dist/models/ForecastStats.d.ts +87 -0
- package/dist/models/ForecastStats.js +71 -0
- package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/models/ForecasterDatastoresRequest.js +49 -0
- package/dist/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/models/ForecasterPairStatus.js +90 -0
- package/dist/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/models/ForecasterStartRequest.js +60 -0
- package/dist/models/ForecasterStatus.d.ts +47 -0
- package/dist/models/ForecasterStatus.js +61 -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/PairCapability.d.ts +60 -0
- package/dist/models/PairCapability.js +72 -0
- package/dist/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/models/PairCapabilityRequest.js +54 -0
- package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/models/PutForecasterCredentials403Response.js +50 -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/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -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/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 +26 -0
- package/dist/models/index.js +26 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/BenchmarkRun.md +58 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1725 -308
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/EstimateRange.md +39 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.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/PairCapability.md +40 -0
- package/docs/PairCapabilityRequest.md +36 -0
- package/docs/PutForecasterCredentials403Response.md +36 -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/StopForecasterPair202Response.md +36 -0
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VirtualMachine.md +18 -10
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -18
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1700 -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/BenchmarkRun.ts +171 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -0
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/EstimateRange.ts +81 -0
- package/src/models/ForecastStats.ts +147 -0
- package/src/models/ForecasterDatastoresRequest.ts +73 -0
- package/src/models/ForecasterPairStatus.ts +158 -0
- package/src/models/ForecasterStartRequest.ts +113 -0
- package/src/models/ForecasterStatus.ts +93 -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/PairCapability.ts +106 -0
- package/src/models/PairCapabilityRequest.ts +89 -0
- package/src/models/PutForecasterCredentials403Response.ts +73 -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/StopForecasterPair202Response.ts +83 -0
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VirtualMachine.ts +48 -16
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +63 -36
- package/src/models/index.ts +26 -0
|
@@ -23,25 +23,42 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
24
|
import { AgentModeRequestToJSON, } from '../models/AgentModeRequest.js';
|
|
25
25
|
import { AgentStatusFromJSON, } from '../models/AgentStatus.js';
|
|
26
|
+
import { ApplicationListResponseFromJSON, } from '../models/ApplicationListResponse.js';
|
|
27
|
+
import { BenchmarkRunFromJSON, } from '../models/BenchmarkRun.js';
|
|
26
28
|
import { CollectorStartRequestToJSON, } from '../models/CollectorStartRequest.js';
|
|
27
29
|
import { CollectorStatusFromJSON, } from '../models/CollectorStatus.js';
|
|
28
30
|
import { CreateGroupRequestToJSON, } from '../models/CreateGroupRequest.js';
|
|
31
|
+
import { DatastoreDetailFromJSON, } from '../models/DatastoreDetail.js';
|
|
32
|
+
import { DeleteLabelGloballyResponseFromJSON, } from '../models/DeleteLabelGloballyResponse.js';
|
|
33
|
+
import { ForecastStatsFromJSON, } from '../models/ForecastStats.js';
|
|
34
|
+
import { ForecasterDatastoresRequestToJSON, } from '../models/ForecasterDatastoresRequest.js';
|
|
35
|
+
import { ForecasterStartRequestToJSON, } from '../models/ForecasterStartRequest.js';
|
|
36
|
+
import { ForecasterStatusFromJSON, } from '../models/ForecasterStatus.js';
|
|
29
37
|
import { GetInventory200ResponseFromJSON, } from '../models/GetInventory200Response.js';
|
|
30
38
|
import { GroupFromJSON, } from '../models/Group.js';
|
|
31
39
|
import { GroupListResponseFromJSON, } from '../models/GroupListResponse.js';
|
|
32
40
|
import { GroupResponseFromJSON, } from '../models/GroupResponse.js';
|
|
33
41
|
import { InspectorStatusFromJSON, } from '../models/InspectorStatus.js';
|
|
42
|
+
import { PairCapabilityFromJSON, } from '../models/PairCapability.js';
|
|
43
|
+
import { PairCapabilityRequestToJSON, } from '../models/PairCapabilityRequest.js';
|
|
44
|
+
import { RightsizingClusterListResponseFromJSON, } from '../models/RightsizingClusterListResponse.js';
|
|
45
|
+
import { RightsizingClusterResponseFromJSON, } from '../models/RightsizingClusterResponse.js';
|
|
34
46
|
import { RightsizingCollectRequestToJSON, } from '../models/RightsizingCollectRequest.js';
|
|
35
47
|
import { RightsizingReportFromJSON, } from '../models/RightsizingReport.js';
|
|
36
48
|
import { RightsizingReportListResponseFromJSON, } from '../models/RightsizingReportListResponse.js';
|
|
37
49
|
import { RightsizingReportSummaryFromJSON, } from '../models/RightsizingReportSummary.js';
|
|
38
50
|
import { StartInspectionRequestToJSON, } from '../models/StartInspectionRequest.js';
|
|
51
|
+
import { StopForecasterPair202ResponseFromJSON, } from '../models/StopForecasterPair202Response.js';
|
|
39
52
|
import { UpdateGroupRequestToJSON, } from '../models/UpdateGroupRequest.js';
|
|
53
|
+
import { UpdateLabelVMsRequestToJSON, } from '../models/UpdateLabelVMsRequest.js';
|
|
54
|
+
import { VMFilterOptionsResponseFromJSON, } from '../models/VMFilterOptionsResponse.js';
|
|
55
|
+
import { VMLabelsResponseFromJSON, } from '../models/VMLabelsResponse.js';
|
|
40
56
|
import { VcenterCredentialsToJSON, } from '../models/VcenterCredentials.js';
|
|
41
57
|
import { VddkPropertiesFromJSON, } from '../models/VddkProperties.js';
|
|
42
58
|
import { VersionInfoFromJSON, } from '../models/VersionInfo.js';
|
|
43
59
|
import { VirtualMachineDetailFromJSON, } from '../models/VirtualMachineDetail.js';
|
|
44
60
|
import { VirtualMachineListResponseFromJSON, } from '../models/VirtualMachineListResponse.js';
|
|
61
|
+
import { VirtualMachineUpdateRequestToJSON, } from '../models/VirtualMachineUpdateRequest.js';
|
|
45
62
|
import { VmInspectionStatusFromJSON, } from '../models/VmInspectionStatus.js';
|
|
46
63
|
import { VmUtilizationDetailsFromJSON, } from '../models/VmUtilizationDetails.js';
|
|
47
64
|
/**
|
|
@@ -88,6 +105,44 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
88
105
|
return yield response.value();
|
|
89
106
|
});
|
|
90
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* Creates request options for deleteForecasterRun without sending the request
|
|
110
|
+
*/
|
|
111
|
+
deleteForecasterRunRequestOpts(requestParameters) {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
if (requestParameters['id'] == null) {
|
|
114
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteForecasterRun().');
|
|
115
|
+
}
|
|
116
|
+
const queryParameters = {};
|
|
117
|
+
const headerParameters = {};
|
|
118
|
+
let urlPath = `/forecaster/runs/{id}`;
|
|
119
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
120
|
+
return {
|
|
121
|
+
path: urlPath,
|
|
122
|
+
method: 'DELETE',
|
|
123
|
+
headers: headerParameters,
|
|
124
|
+
query: queryParameters,
|
|
125
|
+
};
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Delete a benchmark run
|
|
130
|
+
*/
|
|
131
|
+
deleteForecasterRunRaw(requestParameters, initOverrides) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
const requestOptions = yield this.deleteForecasterRunRequestOpts(requestParameters);
|
|
134
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
135
|
+
return new runtime.VoidApiResponse(response);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Delete a benchmark run
|
|
140
|
+
*/
|
|
141
|
+
deleteForecasterRun(requestParameters, initOverrides) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
yield this.deleteForecasterRunRaw(requestParameters, initOverrides);
|
|
144
|
+
});
|
|
145
|
+
}
|
|
91
146
|
/**
|
|
92
147
|
* Creates request options for deleteGroup without sending the request
|
|
93
148
|
*/
|
|
@@ -126,6 +181,45 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
126
181
|
yield this.deleteGroupRaw(requestParameters, initOverrides);
|
|
127
182
|
});
|
|
128
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
186
|
+
*/
|
|
187
|
+
deleteLabelGloballyRequestOpts(requestParameters) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
if (requestParameters['label'] == null) {
|
|
190
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().');
|
|
191
|
+
}
|
|
192
|
+
const queryParameters = {};
|
|
193
|
+
const headerParameters = {};
|
|
194
|
+
let urlPath = `/vms/labels/{label}`;
|
|
195
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
196
|
+
return {
|
|
197
|
+
path: urlPath,
|
|
198
|
+
method: 'DELETE',
|
|
199
|
+
headers: headerParameters,
|
|
200
|
+
query: queryParameters,
|
|
201
|
+
};
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Delete label from all VMs
|
|
206
|
+
*/
|
|
207
|
+
deleteLabelGloballyRaw(requestParameters, initOverrides) {
|
|
208
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
+
const requestOptions = yield this.deleteLabelGloballyRequestOpts(requestParameters);
|
|
210
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
211
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLabelGloballyResponseFromJSON(jsonValue));
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Delete label from all VMs
|
|
216
|
+
*/
|
|
217
|
+
deleteLabelGlobally(requestParameters, initOverrides) {
|
|
218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
219
|
+
const response = yield this.deleteLabelGloballyRaw(requestParameters, initOverrides);
|
|
220
|
+
return yield response.value();
|
|
221
|
+
});
|
|
222
|
+
}
|
|
129
223
|
/**
|
|
130
224
|
* Creates request options for getAgentStatus without sending the request
|
|
131
225
|
*/
|
|
@@ -161,6 +255,80 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
161
255
|
return yield response.value();
|
|
162
256
|
});
|
|
163
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* Creates request options for getApplications without sending the request
|
|
260
|
+
*/
|
|
261
|
+
getApplicationsRequestOpts() {
|
|
262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
263
|
+
const queryParameters = {};
|
|
264
|
+
const headerParameters = {};
|
|
265
|
+
let urlPath = `/applications`;
|
|
266
|
+
return {
|
|
267
|
+
path: urlPath,
|
|
268
|
+
method: 'GET',
|
|
269
|
+
headers: headerParameters,
|
|
270
|
+
query: queryParameters,
|
|
271
|
+
};
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* List detected applications running on VMs
|
|
276
|
+
*/
|
|
277
|
+
getApplicationsRaw(initOverrides) {
|
|
278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
279
|
+
const requestOptions = yield this.getApplicationsRequestOpts();
|
|
280
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
281
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationListResponseFromJSON(jsonValue));
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* List detected applications running on VMs
|
|
286
|
+
*/
|
|
287
|
+
getApplications(initOverrides) {
|
|
288
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
289
|
+
const response = yield this.getApplicationsRaw(initOverrides);
|
|
290
|
+
return yield response.value();
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
295
|
+
*/
|
|
296
|
+
getClusterUtilizationRequestOpts(requestParameters) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
if (requestParameters['clusterId'] == null) {
|
|
299
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
|
|
300
|
+
}
|
|
301
|
+
const queryParameters = {};
|
|
302
|
+
const headerParameters = {};
|
|
303
|
+
let urlPath = `/clusters/{cluster_id}/utilization`;
|
|
304
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
305
|
+
return {
|
|
306
|
+
path: urlPath,
|
|
307
|
+
method: 'GET',
|
|
308
|
+
headers: headerParameters,
|
|
309
|
+
query: queryParameters,
|
|
310
|
+
};
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Get latest cluster utilization by cluster ID
|
|
315
|
+
*/
|
|
316
|
+
getClusterUtilizationRaw(requestParameters, initOverrides) {
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
|
|
319
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
320
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Get latest cluster utilization by cluster ID
|
|
325
|
+
*/
|
|
326
|
+
getClusterUtilization(requestParameters, initOverrides) {
|
|
327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
329
|
+
return yield response.value();
|
|
330
|
+
});
|
|
331
|
+
}
|
|
164
332
|
/**
|
|
165
333
|
* Creates request options for getCollectorStatus without sending the request
|
|
166
334
|
*/
|
|
@@ -196,6 +364,165 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
196
364
|
return yield response.value();
|
|
197
365
|
});
|
|
198
366
|
}
|
|
367
|
+
/**
|
|
368
|
+
* Creates request options for getForecasterDatastores without sending the request
|
|
369
|
+
*/
|
|
370
|
+
getForecasterDatastoresRequestOpts(requestParameters) {
|
|
371
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
372
|
+
const queryParameters = {};
|
|
373
|
+
const headerParameters = {};
|
|
374
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
375
|
+
let urlPath = `/forecaster/datastores`;
|
|
376
|
+
return {
|
|
377
|
+
path: urlPath,
|
|
378
|
+
method: 'POST',
|
|
379
|
+
headers: headerParameters,
|
|
380
|
+
query: queryParameters,
|
|
381
|
+
body: ForecasterDatastoresRequestToJSON(requestParameters['forecasterDatastoresRequest']),
|
|
382
|
+
};
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
387
|
+
* List available datastores
|
|
388
|
+
*/
|
|
389
|
+
getForecasterDatastoresRaw(requestParameters, initOverrides) {
|
|
390
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
391
|
+
const requestOptions = yield this.getForecasterDatastoresRequestOpts(requestParameters);
|
|
392
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
393
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatastoreDetailFromJSON));
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
398
|
+
* List available datastores
|
|
399
|
+
*/
|
|
400
|
+
getForecasterDatastores() {
|
|
401
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
402
|
+
const response = yield this.getForecasterDatastoresRaw(requestParameters, initOverrides);
|
|
403
|
+
return yield response.value();
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Creates request options for getForecasterRuns without sending the request
|
|
408
|
+
*/
|
|
409
|
+
getForecasterRunsRequestOpts(requestParameters) {
|
|
410
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
411
|
+
const queryParameters = {};
|
|
412
|
+
if (requestParameters['pairName'] != null) {
|
|
413
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
414
|
+
}
|
|
415
|
+
const headerParameters = {};
|
|
416
|
+
let urlPath = `/forecaster/runs`;
|
|
417
|
+
return {
|
|
418
|
+
path: urlPath,
|
|
419
|
+
method: 'GET',
|
|
420
|
+
headers: headerParameters,
|
|
421
|
+
query: queryParameters,
|
|
422
|
+
};
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
427
|
+
* List benchmark runs
|
|
428
|
+
*/
|
|
429
|
+
getForecasterRunsRaw(requestParameters, initOverrides) {
|
|
430
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
431
|
+
const requestOptions = yield this.getForecasterRunsRequestOpts(requestParameters);
|
|
432
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
433
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BenchmarkRunFromJSON));
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
438
|
+
* List benchmark runs
|
|
439
|
+
*/
|
|
440
|
+
getForecasterRuns() {
|
|
441
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
442
|
+
const response = yield this.getForecasterRunsRaw(requestParameters, initOverrides);
|
|
443
|
+
return yield response.value();
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Creates request options for getForecasterStats without sending the request
|
|
448
|
+
*/
|
|
449
|
+
getForecasterStatsRequestOpts(requestParameters) {
|
|
450
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
451
|
+
if (requestParameters['pairName'] == null) {
|
|
452
|
+
throw new runtime.RequiredError('pairName', 'Required parameter "pairName" was null or undefined when calling getForecasterStats().');
|
|
453
|
+
}
|
|
454
|
+
const queryParameters = {};
|
|
455
|
+
if (requestParameters['pairName'] != null) {
|
|
456
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
457
|
+
}
|
|
458
|
+
const headerParameters = {};
|
|
459
|
+
let urlPath = `/forecaster/stats`;
|
|
460
|
+
return {
|
|
461
|
+
path: urlPath,
|
|
462
|
+
method: 'GET',
|
|
463
|
+
headers: headerParameters,
|
|
464
|
+
query: queryParameters,
|
|
465
|
+
};
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
470
|
+
* Get throughput statistics
|
|
471
|
+
*/
|
|
472
|
+
getForecasterStatsRaw(requestParameters, initOverrides) {
|
|
473
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
474
|
+
const requestOptions = yield this.getForecasterStatsRequestOpts(requestParameters);
|
|
475
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
476
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ForecastStatsFromJSON(jsonValue));
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
481
|
+
* Get throughput statistics
|
|
482
|
+
*/
|
|
483
|
+
getForecasterStats(requestParameters, initOverrides) {
|
|
484
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
485
|
+
const response = yield this.getForecasterStatsRaw(requestParameters, initOverrides);
|
|
486
|
+
return yield response.value();
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Creates request options for getForecasterStatus without sending the request
|
|
491
|
+
*/
|
|
492
|
+
getForecasterStatusRequestOpts() {
|
|
493
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
494
|
+
const queryParameters = {};
|
|
495
|
+
const headerParameters = {};
|
|
496
|
+
let urlPath = `/forecaster`;
|
|
497
|
+
return {
|
|
498
|
+
path: urlPath,
|
|
499
|
+
method: 'GET',
|
|
500
|
+
headers: headerParameters,
|
|
501
|
+
query: queryParameters,
|
|
502
|
+
};
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Returns current service state with per-pair progress details.
|
|
507
|
+
* Poll forecaster status
|
|
508
|
+
*/
|
|
509
|
+
getForecasterStatusRaw(initOverrides) {
|
|
510
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
511
|
+
const requestOptions = yield this.getForecasterStatusRequestOpts();
|
|
512
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
513
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ForecasterStatusFromJSON(jsonValue));
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Returns current service state with per-pair progress details.
|
|
518
|
+
* Poll forecaster status
|
|
519
|
+
*/
|
|
520
|
+
getForecasterStatus(initOverrides) {
|
|
521
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
522
|
+
const response = yield this.getForecasterStatusRaw(initOverrides);
|
|
523
|
+
return yield response.value();
|
|
524
|
+
});
|
|
525
|
+
}
|
|
199
526
|
/**
|
|
200
527
|
* Creates request options for getGroup without sending the request
|
|
201
528
|
*/
|
|
@@ -253,9 +580,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
253
580
|
if (requestParameters['includeVddk'] != null) {
|
|
254
581
|
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
255
582
|
}
|
|
256
|
-
if (requestParameters['includeCredentials'] != null) {
|
|
257
|
-
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
258
|
-
}
|
|
259
583
|
const headerParameters = {};
|
|
260
584
|
let urlPath = `/inspector`;
|
|
261
585
|
return {
|
|
@@ -361,18 +685,59 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
361
685
|
return yield response.value();
|
|
362
686
|
});
|
|
363
687
|
}
|
|
688
|
+
/**
|
|
689
|
+
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
690
|
+
* @deprecated
|
|
691
|
+
*/
|
|
692
|
+
getLatestRightsizingClustersRequestOpts(requestParameters) {
|
|
693
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
694
|
+
const queryParameters = {};
|
|
695
|
+
if (requestParameters['byExpression'] != null) {
|
|
696
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
697
|
+
}
|
|
698
|
+
const headerParameters = {};
|
|
699
|
+
let urlPath = `/cluster_rightsizing`;
|
|
700
|
+
return {
|
|
701
|
+
path: urlPath,
|
|
702
|
+
method: 'GET',
|
|
703
|
+
headers: headerParameters,
|
|
704
|
+
query: queryParameters,
|
|
705
|
+
};
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
710
|
+
* @deprecated
|
|
711
|
+
*/
|
|
712
|
+
getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
|
|
713
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
714
|
+
const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
715
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
716
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
721
|
+
* @deprecated
|
|
722
|
+
*/
|
|
723
|
+
getLatestRightsizingClusters() {
|
|
724
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
725
|
+
const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
726
|
+
return yield response.value();
|
|
727
|
+
});
|
|
728
|
+
}
|
|
364
729
|
/**
|
|
365
730
|
* Creates request options for getRightsizingReport without sending the request
|
|
366
731
|
*/
|
|
367
732
|
getRightsizingReportRequestOpts(requestParameters) {
|
|
368
733
|
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
-
if (requestParameters['
|
|
370
|
-
throw new runtime.RequiredError('
|
|
734
|
+
if (requestParameters['reportId'] == null) {
|
|
735
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
|
|
371
736
|
}
|
|
372
737
|
const queryParameters = {};
|
|
373
738
|
const headerParameters = {};
|
|
374
|
-
let urlPath = `/rightsizing/{
|
|
375
|
-
urlPath = urlPath.replace('{
|
|
739
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
740
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
376
741
|
return {
|
|
377
742
|
path: urlPath,
|
|
378
743
|
method: 'GET',
|
|
@@ -400,6 +765,94 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
400
765
|
return yield response.value();
|
|
401
766
|
});
|
|
402
767
|
}
|
|
768
|
+
/**
|
|
769
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
770
|
+
*/
|
|
771
|
+
getRightsizingReportClusterRequestOpts(requestParameters) {
|
|
772
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
773
|
+
if (requestParameters['reportId'] == null) {
|
|
774
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
|
|
775
|
+
}
|
|
776
|
+
if (requestParameters['clusterId'] == null) {
|
|
777
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
|
|
778
|
+
}
|
|
779
|
+
const queryParameters = {};
|
|
780
|
+
const headerParameters = {};
|
|
781
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
782
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
783
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
784
|
+
return {
|
|
785
|
+
path: urlPath,
|
|
786
|
+
method: 'GET',
|
|
787
|
+
headers: headerParameters,
|
|
788
|
+
query: queryParameters,
|
|
789
|
+
};
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Get utilization for a specific cluster from a specific report
|
|
794
|
+
*/
|
|
795
|
+
getRightsizingReportClusterRaw(requestParameters, initOverrides) {
|
|
796
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
797
|
+
const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
798
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
799
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* Get utilization for a specific cluster from a specific report
|
|
804
|
+
*/
|
|
805
|
+
getRightsizingReportCluster(requestParameters, initOverrides) {
|
|
806
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
807
|
+
const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
808
|
+
return yield response.value();
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* Creates request options for getRightsizingReportClusters without sending the request
|
|
813
|
+
* @deprecated
|
|
814
|
+
*/
|
|
815
|
+
getRightsizingReportClustersRequestOpts(requestParameters) {
|
|
816
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
817
|
+
if (requestParameters['reportId'] == null) {
|
|
818
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
|
|
819
|
+
}
|
|
820
|
+
const queryParameters = {};
|
|
821
|
+
if (requestParameters['byExpression'] != null) {
|
|
822
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
823
|
+
}
|
|
824
|
+
const headerParameters = {};
|
|
825
|
+
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
826
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
827
|
+
return {
|
|
828
|
+
path: urlPath,
|
|
829
|
+
method: 'GET',
|
|
830
|
+
headers: headerParameters,
|
|
831
|
+
query: queryParameters,
|
|
832
|
+
};
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
837
|
+
* @deprecated
|
|
838
|
+
*/
|
|
839
|
+
getRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
840
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
841
|
+
const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
842
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
843
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
848
|
+
* @deprecated
|
|
849
|
+
*/
|
|
850
|
+
getRightsizingReportClusters(requestParameters, initOverrides) {
|
|
851
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
852
|
+
const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
853
|
+
return yield response.value();
|
|
854
|
+
});
|
|
855
|
+
}
|
|
403
856
|
/**
|
|
404
857
|
* Creates request options for getVM without sending the request
|
|
405
858
|
*/
|
|
@@ -421,21 +874,56 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
421
874
|
});
|
|
422
875
|
}
|
|
423
876
|
/**
|
|
424
|
-
* Get details about a vm
|
|
877
|
+
* Get details about a vm
|
|
878
|
+
*/
|
|
879
|
+
getVMRaw(requestParameters, initOverrides) {
|
|
880
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
881
|
+
const requestOptions = yield this.getVMRequestOpts(requestParameters);
|
|
882
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
883
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VirtualMachineDetailFromJSON(jsonValue));
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* Get details about a vm
|
|
888
|
+
*/
|
|
889
|
+
getVM(requestParameters, initOverrides) {
|
|
890
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
891
|
+
const response = yield this.getVMRaw(requestParameters, initOverrides);
|
|
892
|
+
return yield response.value();
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* Creates request options for getVMLabels without sending the request
|
|
897
|
+
*/
|
|
898
|
+
getVMLabelsRequestOpts() {
|
|
899
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
900
|
+
const queryParameters = {};
|
|
901
|
+
const headerParameters = {};
|
|
902
|
+
let urlPath = `/vms/labels`;
|
|
903
|
+
return {
|
|
904
|
+
path: urlPath,
|
|
905
|
+
method: 'GET',
|
|
906
|
+
headers: headerParameters,
|
|
907
|
+
query: queryParameters,
|
|
908
|
+
};
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* Get all distinct labels in use across VMs
|
|
425
913
|
*/
|
|
426
|
-
|
|
914
|
+
getVMLabelsRaw(initOverrides) {
|
|
427
915
|
return __awaiter(this, void 0, void 0, function* () {
|
|
428
|
-
const requestOptions = yield this.
|
|
916
|
+
const requestOptions = yield this.getVMLabelsRequestOpts();
|
|
429
917
|
const response = yield this.request(requestOptions, initOverrides);
|
|
430
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
918
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMLabelsResponseFromJSON(jsonValue));
|
|
431
919
|
});
|
|
432
920
|
}
|
|
433
921
|
/**
|
|
434
|
-
* Get
|
|
922
|
+
* Get all distinct labels in use across VMs
|
|
435
923
|
*/
|
|
436
|
-
|
|
924
|
+
getVMLabels(initOverrides) {
|
|
437
925
|
return __awaiter(this, void 0, void 0, function* () {
|
|
438
|
-
const response = yield this.
|
|
926
|
+
const response = yield this.getVMLabelsRaw(initOverrides);
|
|
439
927
|
return yield response.value();
|
|
440
928
|
});
|
|
441
929
|
}
|
|
@@ -525,6 +1013,41 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
525
1013
|
return yield response.value();
|
|
526
1014
|
});
|
|
527
1015
|
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Creates request options for getVMsFilterOptions without sending the request
|
|
1018
|
+
*/
|
|
1019
|
+
getVMsFilterOptionsRequestOpts() {
|
|
1020
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1021
|
+
const queryParameters = {};
|
|
1022
|
+
const headerParameters = {};
|
|
1023
|
+
let urlPath = `/vms/filter-options`;
|
|
1024
|
+
return {
|
|
1025
|
+
path: urlPath,
|
|
1026
|
+
method: 'GET',
|
|
1027
|
+
headers: headerParameters,
|
|
1028
|
+
query: queryParameters,
|
|
1029
|
+
};
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
/**
|
|
1033
|
+
* Get distinct filter option values for VMs
|
|
1034
|
+
*/
|
|
1035
|
+
getVMsFilterOptionsRaw(initOverrides) {
|
|
1036
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1037
|
+
const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
|
|
1038
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1039
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Get distinct filter option values for VMs
|
|
1044
|
+
*/
|
|
1045
|
+
getVMsFilterOptions(initOverrides) {
|
|
1046
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1047
|
+
const response = yield this.getVMsFilterOptionsRaw(initOverrides);
|
|
1048
|
+
return yield response.value();
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
528
1051
|
/**
|
|
529
1052
|
* Creates request options for getVersion without sending the request
|
|
530
1053
|
*/
|
|
@@ -604,6 +1127,48 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
604
1127
|
return yield response.value();
|
|
605
1128
|
});
|
|
606
1129
|
}
|
|
1130
|
+
/**
|
|
1131
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1132
|
+
*/
|
|
1133
|
+
listRightsizingReportClustersRequestOpts(requestParameters) {
|
|
1134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1135
|
+
if (requestParameters['reportId'] == null) {
|
|
1136
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
|
|
1137
|
+
}
|
|
1138
|
+
const queryParameters = {};
|
|
1139
|
+
if (requestParameters['byExpression'] != null) {
|
|
1140
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
1141
|
+
}
|
|
1142
|
+
const headerParameters = {};
|
|
1143
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
1144
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1145
|
+
return {
|
|
1146
|
+
path: urlPath,
|
|
1147
|
+
method: 'GET',
|
|
1148
|
+
headers: headerParameters,
|
|
1149
|
+
query: queryParameters,
|
|
1150
|
+
};
|
|
1151
|
+
});
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1155
|
+
*/
|
|
1156
|
+
listRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
1157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1158
|
+
const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
1159
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1160
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1165
|
+
*/
|
|
1166
|
+
listRightsizingReportClusters(requestParameters, initOverrides) {
|
|
1167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1168
|
+
const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
1169
|
+
return yield response.value();
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
607
1172
|
/**
|
|
608
1173
|
* Creates request options for listRightsizingReports without sending the request
|
|
609
1174
|
*/
|
|
@@ -640,17 +1205,59 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
640
1205
|
});
|
|
641
1206
|
}
|
|
642
1207
|
/**
|
|
643
|
-
* Creates request options for
|
|
1208
|
+
* Creates request options for postForecasterPairCapabilities without sending the request
|
|
1209
|
+
*/
|
|
1210
|
+
postForecasterPairCapabilitiesRequestOpts(requestParameters) {
|
|
1211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1212
|
+
if (requestParameters['pairCapabilityRequest'] == null) {
|
|
1213
|
+
throw new runtime.RequiredError('pairCapabilityRequest', 'Required parameter "pairCapabilityRequest" was null or undefined when calling postForecasterPairCapabilities().');
|
|
1214
|
+
}
|
|
1215
|
+
const queryParameters = {};
|
|
1216
|
+
const headerParameters = {};
|
|
1217
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1218
|
+
let urlPath = `/forecaster/capabilities`;
|
|
1219
|
+
return {
|
|
1220
|
+
path: urlPath,
|
|
1221
|
+
method: 'POST',
|
|
1222
|
+
headers: headerParameters,
|
|
1223
|
+
query: queryParameters,
|
|
1224
|
+
body: PairCapabilityRequestToJSON(requestParameters['pairCapabilityRequest']),
|
|
1225
|
+
};
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
/**
|
|
1229
|
+
* Computes which offload methods are feasible for specific source-target datastore pairs based on vendor support and storage array topology derived from the forklift-collected inventory. No vSphere credentials are required.
|
|
1230
|
+
* Compute pair capabilities
|
|
1231
|
+
*/
|
|
1232
|
+
postForecasterPairCapabilitiesRaw(requestParameters, initOverrides) {
|
|
1233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1234
|
+
const requestOptions = yield this.postForecasterPairCapabilitiesRequestOpts(requestParameters);
|
|
1235
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1236
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PairCapabilityFromJSON));
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
/**
|
|
1240
|
+
* Computes which offload methods are feasible for specific source-target datastore pairs based on vendor support and storage array topology derived from the forklift-collected inventory. No vSphere credentials are required.
|
|
1241
|
+
* Compute pair capabilities
|
|
1242
|
+
*/
|
|
1243
|
+
postForecasterPairCapabilities(requestParameters, initOverrides) {
|
|
1244
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1245
|
+
const response = yield this.postForecasterPairCapabilitiesRaw(requestParameters, initOverrides);
|
|
1246
|
+
return yield response.value();
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
/**
|
|
1250
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
644
1251
|
*/
|
|
645
|
-
|
|
1252
|
+
putForecasterCredentialsRequestOpts(requestParameters) {
|
|
646
1253
|
return __awaiter(this, void 0, void 0, function* () {
|
|
647
1254
|
if (requestParameters['vcenterCredentials'] == null) {
|
|
648
|
-
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling
|
|
1255
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().');
|
|
649
1256
|
}
|
|
650
1257
|
const queryParameters = {};
|
|
651
1258
|
const headerParameters = {};
|
|
652
1259
|
headerParameters['Content-Type'] = 'application/json';
|
|
653
|
-
let urlPath = `/
|
|
1260
|
+
let urlPath = `/forecaster/credentials`;
|
|
654
1261
|
return {
|
|
655
1262
|
path: urlPath,
|
|
656
1263
|
method: 'PUT',
|
|
@@ -661,21 +1268,23 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
661
1268
|
});
|
|
662
1269
|
}
|
|
663
1270
|
/**
|
|
664
|
-
*
|
|
1271
|
+
* 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.
|
|
1272
|
+
* Verify vCenter credentials and permissions
|
|
665
1273
|
*/
|
|
666
|
-
|
|
1274
|
+
putForecasterCredentialsRaw(requestParameters, initOverrides) {
|
|
667
1275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
668
|
-
const requestOptions = yield this.
|
|
1276
|
+
const requestOptions = yield this.putForecasterCredentialsRequestOpts(requestParameters);
|
|
669
1277
|
const response = yield this.request(requestOptions, initOverrides);
|
|
670
1278
|
return new runtime.VoidApiResponse(response);
|
|
671
1279
|
});
|
|
672
1280
|
}
|
|
673
1281
|
/**
|
|
674
|
-
*
|
|
1282
|
+
* 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.
|
|
1283
|
+
* Verify vCenter credentials and permissions
|
|
675
1284
|
*/
|
|
676
|
-
|
|
1285
|
+
putForecasterCredentials(requestParameters, initOverrides) {
|
|
677
1286
|
return __awaiter(this, void 0, void 0, function* () {
|
|
678
|
-
yield this.
|
|
1287
|
+
yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
679
1288
|
});
|
|
680
1289
|
}
|
|
681
1290
|
/**
|
|
@@ -854,6 +1463,48 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
854
1463
|
return yield response.value();
|
|
855
1464
|
});
|
|
856
1465
|
}
|
|
1466
|
+
/**
|
|
1467
|
+
* Creates request options for startForecaster without sending the request
|
|
1468
|
+
*/
|
|
1469
|
+
startForecasterRequestOpts(requestParameters) {
|
|
1470
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1471
|
+
if (requestParameters['forecasterStartRequest'] == null) {
|
|
1472
|
+
throw new runtime.RequiredError('forecasterStartRequest', 'Required parameter "forecasterStartRequest" was null or undefined when calling startForecaster().');
|
|
1473
|
+
}
|
|
1474
|
+
const queryParameters = {};
|
|
1475
|
+
const headerParameters = {};
|
|
1476
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1477
|
+
let urlPath = `/forecaster`;
|
|
1478
|
+
return {
|
|
1479
|
+
path: urlPath,
|
|
1480
|
+
method: 'POST',
|
|
1481
|
+
headers: headerParameters,
|
|
1482
|
+
query: queryParameters,
|
|
1483
|
+
body: ForecasterStartRequestToJSON(requestParameters['forecasterStartRequest']),
|
|
1484
|
+
};
|
|
1485
|
+
});
|
|
1486
|
+
}
|
|
1487
|
+
/**
|
|
1488
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1489
|
+
* Start benchmark
|
|
1490
|
+
*/
|
|
1491
|
+
startForecasterRaw(requestParameters, initOverrides) {
|
|
1492
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1493
|
+
const requestOptions = yield this.startForecasterRequestOpts(requestParameters);
|
|
1494
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1495
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ForecasterStatusFromJSON(jsonValue));
|
|
1496
|
+
});
|
|
1497
|
+
}
|
|
1498
|
+
/**
|
|
1499
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1500
|
+
* Start benchmark
|
|
1501
|
+
*/
|
|
1502
|
+
startForecaster(requestParameters, initOverrides) {
|
|
1503
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1504
|
+
const response = yield this.startForecasterRaw(requestParameters, initOverrides);
|
|
1505
|
+
return yield response.value();
|
|
1506
|
+
});
|
|
1507
|
+
}
|
|
857
1508
|
/**
|
|
858
1509
|
* Creates request options for startInspection without sending the request
|
|
859
1510
|
*/
|
|
@@ -928,6 +1579,84 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
928
1579
|
yield this.stopCollectorRaw(initOverrides);
|
|
929
1580
|
});
|
|
930
1581
|
}
|
|
1582
|
+
/**
|
|
1583
|
+
* Creates request options for stopForecaster without sending the request
|
|
1584
|
+
*/
|
|
1585
|
+
stopForecasterRequestOpts() {
|
|
1586
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1587
|
+
const queryParameters = {};
|
|
1588
|
+
const headerParameters = {};
|
|
1589
|
+
let urlPath = `/forecaster`;
|
|
1590
|
+
return {
|
|
1591
|
+
path: urlPath,
|
|
1592
|
+
method: 'DELETE',
|
|
1593
|
+
headers: headerParameters,
|
|
1594
|
+
query: queryParameters,
|
|
1595
|
+
};
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1600
|
+
* Cancel benchmark
|
|
1601
|
+
*/
|
|
1602
|
+
stopForecasterRaw(initOverrides) {
|
|
1603
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1604
|
+
const requestOptions = yield this.stopForecasterRequestOpts();
|
|
1605
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1606
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ForecasterStatusFromJSON(jsonValue));
|
|
1607
|
+
});
|
|
1608
|
+
}
|
|
1609
|
+
/**
|
|
1610
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1611
|
+
* Cancel benchmark
|
|
1612
|
+
*/
|
|
1613
|
+
stopForecaster(initOverrides) {
|
|
1614
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1615
|
+
const response = yield this.stopForecasterRaw(initOverrides);
|
|
1616
|
+
return yield response.value();
|
|
1617
|
+
});
|
|
1618
|
+
}
|
|
1619
|
+
/**
|
|
1620
|
+
* Creates request options for stopForecasterPair without sending the request
|
|
1621
|
+
*/
|
|
1622
|
+
stopForecasterPairRequestOpts(requestParameters) {
|
|
1623
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1624
|
+
if (requestParameters['name'] == null) {
|
|
1625
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling stopForecasterPair().');
|
|
1626
|
+
}
|
|
1627
|
+
const queryParameters = {};
|
|
1628
|
+
const headerParameters = {};
|
|
1629
|
+
let urlPath = `/forecaster/pairs/{name}`;
|
|
1630
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
1631
|
+
return {
|
|
1632
|
+
path: urlPath,
|
|
1633
|
+
method: 'DELETE',
|
|
1634
|
+
headers: headerParameters,
|
|
1635
|
+
query: queryParameters,
|
|
1636
|
+
};
|
|
1637
|
+
});
|
|
1638
|
+
}
|
|
1639
|
+
/**
|
|
1640
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1641
|
+
* Cancel a single pair
|
|
1642
|
+
*/
|
|
1643
|
+
stopForecasterPairRaw(requestParameters, initOverrides) {
|
|
1644
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1645
|
+
const requestOptions = yield this.stopForecasterPairRequestOpts(requestParameters);
|
|
1646
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1647
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StopForecasterPair202ResponseFromJSON(jsonValue));
|
|
1648
|
+
});
|
|
1649
|
+
}
|
|
1650
|
+
/**
|
|
1651
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1652
|
+
* Cancel a single pair
|
|
1653
|
+
*/
|
|
1654
|
+
stopForecasterPair(requestParameters, initOverrides) {
|
|
1655
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1656
|
+
const response = yield this.stopForecasterPairRaw(requestParameters, initOverrides);
|
|
1657
|
+
return yield response.value();
|
|
1658
|
+
});
|
|
1659
|
+
}
|
|
931
1660
|
/**
|
|
932
1661
|
* Creates request options for stopInspection without sending the request
|
|
933
1662
|
*/
|
|
@@ -1047,4 +1776,129 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1047
1776
|
return yield response.value();
|
|
1048
1777
|
});
|
|
1049
1778
|
}
|
|
1779
|
+
/**
|
|
1780
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
1781
|
+
*/
|
|
1782
|
+
updateLabelVMsRequestOpts(requestParameters) {
|
|
1783
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1784
|
+
if (requestParameters['label'] == null) {
|
|
1785
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
|
|
1786
|
+
}
|
|
1787
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
1788
|
+
throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
|
|
1789
|
+
}
|
|
1790
|
+
const queryParameters = {};
|
|
1791
|
+
const headerParameters = {};
|
|
1792
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1793
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1794
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1795
|
+
return {
|
|
1796
|
+
path: urlPath,
|
|
1797
|
+
method: 'PATCH',
|
|
1798
|
+
headers: headerParameters,
|
|
1799
|
+
query: queryParameters,
|
|
1800
|
+
body: UpdateLabelVMsRequestToJSON(requestParameters['updateLabelVMsRequest']),
|
|
1801
|
+
};
|
|
1802
|
+
});
|
|
1803
|
+
}
|
|
1804
|
+
/**
|
|
1805
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1806
|
+
*/
|
|
1807
|
+
updateLabelVMsRaw(requestParameters, initOverrides) {
|
|
1808
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1809
|
+
const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
|
|
1810
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1811
|
+
return new runtime.VoidApiResponse(response);
|
|
1812
|
+
});
|
|
1813
|
+
}
|
|
1814
|
+
/**
|
|
1815
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1816
|
+
*/
|
|
1817
|
+
updateLabelVMs(requestParameters, initOverrides) {
|
|
1818
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1819
|
+
yield this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
1820
|
+
});
|
|
1821
|
+
}
|
|
1822
|
+
/**
|
|
1823
|
+
* Creates request options for updateVM without sending the request
|
|
1824
|
+
*/
|
|
1825
|
+
updateVMRequestOpts(requestParameters) {
|
|
1826
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1827
|
+
if (requestParameters['id'] == null) {
|
|
1828
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
|
|
1829
|
+
}
|
|
1830
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
1831
|
+
throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
|
|
1832
|
+
}
|
|
1833
|
+
const queryParameters = {};
|
|
1834
|
+
const headerParameters = {};
|
|
1835
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1836
|
+
let urlPath = `/vms/{id}`;
|
|
1837
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1838
|
+
return {
|
|
1839
|
+
path: urlPath,
|
|
1840
|
+
method: 'PATCH',
|
|
1841
|
+
headers: headerParameters,
|
|
1842
|
+
query: queryParameters,
|
|
1843
|
+
body: VirtualMachineUpdateRequestToJSON(requestParameters['virtualMachineUpdateRequest']),
|
|
1844
|
+
};
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Update VM properties
|
|
1849
|
+
*/
|
|
1850
|
+
updateVMRaw(requestParameters, initOverrides) {
|
|
1851
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1852
|
+
const requestOptions = yield this.updateVMRequestOpts(requestParameters);
|
|
1853
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1854
|
+
return new runtime.VoidApiResponse(response);
|
|
1855
|
+
});
|
|
1856
|
+
}
|
|
1857
|
+
/**
|
|
1858
|
+
* Update VM properties
|
|
1859
|
+
*/
|
|
1860
|
+
updateVM(requestParameters, initOverrides) {
|
|
1861
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1862
|
+
yield this.updateVMRaw(requestParameters, initOverrides);
|
|
1863
|
+
});
|
|
1864
|
+
}
|
|
1865
|
+
/**
|
|
1866
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
1867
|
+
*/
|
|
1868
|
+
validateInspectorCredentialsRequestOpts(requestParameters) {
|
|
1869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1870
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1871
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
|
|
1872
|
+
}
|
|
1873
|
+
const queryParameters = {};
|
|
1874
|
+
const headerParameters = {};
|
|
1875
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1876
|
+
let urlPath = `/inspector/credentials`;
|
|
1877
|
+
return {
|
|
1878
|
+
path: urlPath,
|
|
1879
|
+
method: 'POST',
|
|
1880
|
+
headers: headerParameters,
|
|
1881
|
+
query: queryParameters,
|
|
1882
|
+
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
1883
|
+
};
|
|
1884
|
+
});
|
|
1885
|
+
}
|
|
1886
|
+
/**
|
|
1887
|
+
* Validate vCenter credentials for inspector
|
|
1888
|
+
*/
|
|
1889
|
+
validateInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
1890
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1891
|
+
const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
1892
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1893
|
+
return new runtime.VoidApiResponse(response);
|
|
1894
|
+
});
|
|
1895
|
+
}
|
|
1896
|
+
/**
|
|
1897
|
+
* Validate vCenter credentials for inspector
|
|
1898
|
+
*/
|
|
1899
|
+
validateInspectorCredentials(requestParameters, initOverrides) {
|
|
1900
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1901
|
+
yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1050
1904
|
}
|