@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-645d2fae3eee
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 +62 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +68 -17
- package/dist/apis/DefaultApi.d.ts +919 -108
- package/dist/apis/DefaultApi.js +1140 -256
- package/dist/esm/apis/DefaultApi.d.ts +919 -108
- package/dist/esm/apis/DefaultApi.js +1121 -237
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- 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/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/InspectorStatus.d.ts +6 -10
- package/dist/esm/models/InspectorStatus.js +5 -9
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +7 -0
- package/dist/esm/models/InventoryData.js +3 -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 +70 -0
- package/dist/esm/models/RightsizingCollectRequest.js +56 -0
- package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/esm/models/RightsizingMetricStats.js +63 -0
- package/dist/esm/models/RightsizingReport.d.ts +81 -0
- package/dist/esm/models/RightsizingReport.js +76 -0
- package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingReportListResponse.js +48 -0
- package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/esm/models/RightsizingReportSummary.js +71 -0
- package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
- package/dist/esm/models/RightsizingVMReport.js +57 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +39 -0
- package/dist/esm/models/{InspectorStartRequest.js → StartInspectionRequest.js} +12 -12
- package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMs.d.ts +18 -0
- package/dist/esm/models/VMs.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +43 -1
- package/dist/esm/models/VirtualMachine.js +16 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +22 -3
- package/dist/esm/models/VirtualMachineDetail.js +10 -3
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
- package/dist/esm/models/VmInspectionConcern.js +51 -0
- package/dist/esm/models/VmInspectionResults.d.ts +33 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -2
- package/dist/esm/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/esm/models/VmUtilizationDetails.js +99 -0
- package/dist/esm/models/index.d.ts +31 -1
- package/dist/esm/models/index.js +31 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- 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/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/InspectorStatus.d.ts +6 -10
- package/dist/models/InspectorStatus.js +5 -9
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +7 -0
- package/dist/models/InventoryData.js +3 -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 +70 -0
- package/dist/models/RightsizingCollectRequest.js +63 -0
- package/dist/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/models/RightsizingMetricStats.js +70 -0
- package/dist/models/RightsizingReport.d.ts +81 -0
- package/dist/models/RightsizingReport.js +83 -0
- package/dist/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/models/RightsizingReportListResponse.js +55 -0
- package/dist/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/models/RightsizingReportSummary.js +78 -0
- package/dist/models/RightsizingVMReport.d.ts +53 -0
- package/dist/models/RightsizingVMReport.js +64 -0
- package/dist/models/StartInspectionRequest.d.ts +39 -0
- package/dist/models/StartInspectionRequest.js +55 -0
- package/dist/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VirtualMachine.d.ts +43 -1
- package/dist/models/VirtualMachine.js +16 -4
- package/dist/models/VirtualMachineDetail.d.ts +22 -3
- package/dist/models/VirtualMachineDetail.js +10 -3
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmInspectionConcern.d.ts +44 -0
- package/dist/models/VmInspectionConcern.js +58 -0
- package/dist/models/VmInspectionResults.d.ts +33 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +0 -1
- package/dist/models/VmInspectionStatus.js +1 -2
- package/dist/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/models/VmUtilizationDetails.js +106 -0
- package/dist/models/index.d.ts +31 -1
- package/dist/models/index.js +31 -1
- package/dist/runtime.js +1 -1
- package/docs/AgentStatus.md +2 -2
- package/docs/BenchmarkRun.md +58 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1701 -266
- 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/InspectorStatus.md +2 -2
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +2 -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 +46 -0
- package/docs/RightsizingMetricStats.md +44 -0
- package/docs/RightsizingReport.md +50 -0
- package/docs/RightsizingReportListResponse.md +36 -0
- package/docs/RightsizingReportSummary.md +49 -0
- package/docs/RightsizingVMReport.md +40 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +7 -6
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +16 -2
- package/docs/VirtualMachineDetail.md +7 -1
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/docs/VmUtilizationDetails.md +62 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +2167 -479
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/ClusterFeatures.ts +94 -0
- 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/InspectorStatus.ts +15 -12
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +15 -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 +123 -0
- package/src/models/RightsizingMetricStats.ts +111 -0
- package/src/models/RightsizingReport.ts +146 -0
- package/src/models/RightsizingReportListResponse.ts +83 -0
- package/src/models/RightsizingReportSummary.ts +129 -0
- package/src/models/RightsizingVMReport.ts +101 -0
- package/src/models/StartInspectionRequest.ts +83 -0
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +59 -4
- package/src/models/VirtualMachineDetail.ts +42 -11
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmInspectionConcern.ts +84 -0
- package/src/models/VmInspectionResults.ts +73 -0
- package/src/models/VmInspectionStatus.ts +1 -2
- package/src/models/VmUtilizationDetails.ts +192 -0
- package/src/models/index.ts +31 -1
- package/src/runtime.ts +1 -2
- package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.js +0 -55
- package/src/models/InspectorStartRequest.ts +0 -83
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -24,89 +24,124 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.DefaultApi = void 0;
|
|
26
26
|
const runtime = require("../runtime.js");
|
|
27
|
-
const
|
|
27
|
+
const AgentModeRequest_js_1 = require("../models/AgentModeRequest.js");
|
|
28
|
+
const AgentStatus_js_1 = require("../models/AgentStatus.js");
|
|
29
|
+
const BenchmarkRun_js_1 = require("../models/BenchmarkRun.js");
|
|
30
|
+
const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
|
|
31
|
+
const CollectorStatus_js_1 = require("../models/CollectorStatus.js");
|
|
32
|
+
const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
|
|
33
|
+
const DatastoreDetail_js_1 = require("../models/DatastoreDetail.js");
|
|
34
|
+
const DeleteLabelGloballyResponse_js_1 = require("../models/DeleteLabelGloballyResponse.js");
|
|
35
|
+
const ForecastStats_js_1 = require("../models/ForecastStats.js");
|
|
36
|
+
const ForecasterDatastoresRequest_js_1 = require("../models/ForecasterDatastoresRequest.js");
|
|
37
|
+
const ForecasterStartRequest_js_1 = require("../models/ForecasterStartRequest.js");
|
|
38
|
+
const ForecasterStatus_js_1 = require("../models/ForecasterStatus.js");
|
|
39
|
+
const GetInventory200Response_js_1 = require("../models/GetInventory200Response.js");
|
|
40
|
+
const Group_js_1 = require("../models/Group.js");
|
|
41
|
+
const GroupListResponse_js_1 = require("../models/GroupListResponse.js");
|
|
42
|
+
const GroupResponse_js_1 = require("../models/GroupResponse.js");
|
|
43
|
+
const InspectorStatus_js_1 = require("../models/InspectorStatus.js");
|
|
44
|
+
const PairCapability_js_1 = require("../models/PairCapability.js");
|
|
45
|
+
const PairCapabilityRequest_js_1 = require("../models/PairCapabilityRequest.js");
|
|
46
|
+
const RightsizingClusterListResponse_js_1 = require("../models/RightsizingClusterListResponse.js");
|
|
47
|
+
const RightsizingClusterResponse_js_1 = require("../models/RightsizingClusterResponse.js");
|
|
48
|
+
const RightsizingCollectRequest_js_1 = require("../models/RightsizingCollectRequest.js");
|
|
49
|
+
const RightsizingReport_js_1 = require("../models/RightsizingReport.js");
|
|
50
|
+
const RightsizingReportListResponse_js_1 = require("../models/RightsizingReportListResponse.js");
|
|
51
|
+
const RightsizingReportSummary_js_1 = require("../models/RightsizingReportSummary.js");
|
|
52
|
+
const StartInspectionRequest_js_1 = require("../models/StartInspectionRequest.js");
|
|
53
|
+
const StopForecasterPair202Response_js_1 = require("../models/StopForecasterPair202Response.js");
|
|
54
|
+
const UpdateGroupRequest_js_1 = require("../models/UpdateGroupRequest.js");
|
|
55
|
+
const UpdateLabelVMsRequest_js_1 = require("../models/UpdateLabelVMsRequest.js");
|
|
56
|
+
const VMLabelsResponse_js_1 = require("../models/VMLabelsResponse.js");
|
|
57
|
+
const VcenterCredentials_js_1 = require("../models/VcenterCredentials.js");
|
|
58
|
+
const VddkProperties_js_1 = require("../models/VddkProperties.js");
|
|
59
|
+
const VersionInfo_js_1 = require("../models/VersionInfo.js");
|
|
60
|
+
const VirtualMachineDetail_js_1 = require("../models/VirtualMachineDetail.js");
|
|
61
|
+
const VirtualMachineListResponse_js_1 = require("../models/VirtualMachineListResponse.js");
|
|
62
|
+
const VirtualMachineUpdateRequest_js_1 = require("../models/VirtualMachineUpdateRequest.js");
|
|
63
|
+
const VmInspectionStatus_js_1 = require("../models/VmInspectionStatus.js");
|
|
64
|
+
const VmUtilizationDetails_js_1 = require("../models/VmUtilizationDetails.js");
|
|
28
65
|
/**
|
|
29
66
|
*
|
|
30
67
|
*/
|
|
31
68
|
class DefaultApi extends runtime.BaseAPI {
|
|
32
69
|
/**
|
|
33
|
-
* Creates request options for
|
|
70
|
+
* Creates request options for createGroup without sending the request
|
|
34
71
|
*/
|
|
35
|
-
|
|
72
|
+
createGroupRequestOpts(requestParameters) {
|
|
36
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
if (requestParameters['
|
|
38
|
-
throw new runtime.RequiredError('
|
|
74
|
+
if (requestParameters['createGroupRequest'] == null) {
|
|
75
|
+
throw new runtime.RequiredError('createGroupRequest', 'Required parameter "createGroupRequest" was null or undefined when calling createGroup().');
|
|
39
76
|
}
|
|
40
77
|
const queryParameters = {};
|
|
41
78
|
const headerParameters = {};
|
|
42
79
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
-
let urlPath = `/
|
|
80
|
+
let urlPath = `/groups`;
|
|
44
81
|
return {
|
|
45
82
|
path: urlPath,
|
|
46
|
-
method: '
|
|
83
|
+
method: 'POST',
|
|
47
84
|
headers: headerParameters,
|
|
48
85
|
query: queryParameters,
|
|
49
|
-
body: requestParameters['
|
|
86
|
+
body: (0, CreateGroupRequest_js_1.CreateGroupRequestToJSON)(requestParameters['createGroupRequest']),
|
|
50
87
|
};
|
|
51
88
|
});
|
|
52
89
|
}
|
|
53
90
|
/**
|
|
54
|
-
*
|
|
91
|
+
* Create a new group
|
|
55
92
|
*/
|
|
56
|
-
|
|
93
|
+
createGroupRaw(requestParameters, initOverrides) {
|
|
57
94
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
const requestOptions = yield this.
|
|
95
|
+
const requestOptions = yield this.createGroupRequestOpts(requestParameters);
|
|
59
96
|
const response = yield this.request(requestOptions, initOverrides);
|
|
60
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, Group_js_1.GroupFromJSON)(jsonValue));
|
|
61
98
|
});
|
|
62
99
|
}
|
|
63
100
|
/**
|
|
64
|
-
*
|
|
101
|
+
* Create a new group
|
|
65
102
|
*/
|
|
66
|
-
|
|
103
|
+
createGroup(requestParameters, initOverrides) {
|
|
67
104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
const response = yield this.
|
|
105
|
+
const response = yield this.createGroupRaw(requestParameters, initOverrides);
|
|
69
106
|
return yield response.value();
|
|
70
107
|
});
|
|
71
108
|
}
|
|
72
109
|
/**
|
|
73
|
-
* Creates request options for
|
|
110
|
+
* Creates request options for deleteForecasterRun without sending the request
|
|
74
111
|
*/
|
|
75
|
-
|
|
112
|
+
deleteForecasterRunRequestOpts(requestParameters) {
|
|
76
113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
if (requestParameters['
|
|
78
|
-
throw new runtime.RequiredError('
|
|
114
|
+
if (requestParameters['id'] == null) {
|
|
115
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteForecasterRun().');
|
|
79
116
|
}
|
|
80
117
|
const queryParameters = {};
|
|
81
118
|
const headerParameters = {};
|
|
82
|
-
|
|
83
|
-
|
|
119
|
+
let urlPath = `/forecaster/runs/{id}`;
|
|
120
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
84
121
|
return {
|
|
85
122
|
path: urlPath,
|
|
86
|
-
method: '
|
|
123
|
+
method: 'DELETE',
|
|
87
124
|
headers: headerParameters,
|
|
88
125
|
query: queryParameters,
|
|
89
|
-
body: (0, index_js_1.CreateGroupRequestToJSON)(requestParameters['createGroupRequest']),
|
|
90
126
|
};
|
|
91
127
|
});
|
|
92
128
|
}
|
|
93
129
|
/**
|
|
94
|
-
*
|
|
130
|
+
* Delete a benchmark run
|
|
95
131
|
*/
|
|
96
|
-
|
|
132
|
+
deleteForecasterRunRaw(requestParameters, initOverrides) {
|
|
97
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
const requestOptions = yield this.
|
|
134
|
+
const requestOptions = yield this.deleteForecasterRunRequestOpts(requestParameters);
|
|
99
135
|
const response = yield this.request(requestOptions, initOverrides);
|
|
100
|
-
return new runtime.
|
|
136
|
+
return new runtime.VoidApiResponse(response);
|
|
101
137
|
});
|
|
102
138
|
}
|
|
103
139
|
/**
|
|
104
|
-
*
|
|
140
|
+
* Delete a benchmark run
|
|
105
141
|
*/
|
|
106
|
-
|
|
142
|
+
deleteForecasterRun(requestParameters, initOverrides) {
|
|
107
143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
|
|
109
|
-
return yield response.value();
|
|
144
|
+
yield this.deleteForecasterRunRaw(requestParameters, initOverrides);
|
|
110
145
|
});
|
|
111
146
|
}
|
|
112
147
|
/**
|
|
@@ -120,7 +155,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
120
155
|
const queryParameters = {};
|
|
121
156
|
const headerParameters = {};
|
|
122
157
|
let urlPath = `/groups/{id}`;
|
|
123
|
-
urlPath = urlPath.replace(
|
|
158
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
124
159
|
return {
|
|
125
160
|
path: urlPath,
|
|
126
161
|
method: 'DELETE',
|
|
@@ -147,6 +182,45 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
147
182
|
yield this.deleteGroupRaw(requestParameters, initOverrides);
|
|
148
183
|
});
|
|
149
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* Creates request options for deleteLabelGlobally without sending the request
|
|
187
|
+
*/
|
|
188
|
+
deleteLabelGloballyRequestOpts(requestParameters) {
|
|
189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
if (requestParameters['label'] == null) {
|
|
191
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling deleteLabelGlobally().');
|
|
192
|
+
}
|
|
193
|
+
const queryParameters = {};
|
|
194
|
+
const headerParameters = {};
|
|
195
|
+
let urlPath = `/vms/labels/{label}`;
|
|
196
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
197
|
+
return {
|
|
198
|
+
path: urlPath,
|
|
199
|
+
method: 'DELETE',
|
|
200
|
+
headers: headerParameters,
|
|
201
|
+
query: queryParameters,
|
|
202
|
+
};
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Delete label from all VMs
|
|
207
|
+
*/
|
|
208
|
+
deleteLabelGloballyRaw(requestParameters, initOverrides) {
|
|
209
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
+
const requestOptions = yield this.deleteLabelGloballyRequestOpts(requestParameters);
|
|
211
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
212
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DeleteLabelGloballyResponse_js_1.DeleteLabelGloballyResponseFromJSON)(jsonValue));
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Delete label from all VMs
|
|
217
|
+
*/
|
|
218
|
+
deleteLabelGlobally(requestParameters, initOverrides) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
const response = yield this.deleteLabelGloballyRaw(requestParameters, initOverrides);
|
|
221
|
+
return yield response.value();
|
|
222
|
+
});
|
|
223
|
+
}
|
|
150
224
|
/**
|
|
151
225
|
* Creates request options for getAgentStatus without sending the request
|
|
152
226
|
*/
|
|
@@ -170,7 +244,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
170
244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
245
|
const requestOptions = yield this.getAgentStatusRequestOpts();
|
|
172
246
|
const response = yield this.request(requestOptions, initOverrides);
|
|
173
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
247
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentStatus_js_1.AgentStatusFromJSON)(jsonValue));
|
|
174
248
|
});
|
|
175
249
|
}
|
|
176
250
|
/**
|
|
@@ -205,7 +279,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
205
279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
206
280
|
const requestOptions = yield this.getCollectorStatusRequestOpts();
|
|
207
281
|
const response = yield this.request(requestOptions, initOverrides);
|
|
208
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
282
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
|
|
209
283
|
});
|
|
210
284
|
}
|
|
211
285
|
/**
|
|
@@ -218,61 +292,55 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
218
292
|
});
|
|
219
293
|
}
|
|
220
294
|
/**
|
|
221
|
-
* Creates request options for
|
|
295
|
+
* Creates request options for getForecasterDatastores without sending the request
|
|
222
296
|
*/
|
|
223
|
-
|
|
297
|
+
getForecasterDatastoresRequestOpts(requestParameters) {
|
|
224
298
|
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
-
if (requestParameters['id'] == null) {
|
|
226
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getGroup().');
|
|
227
|
-
}
|
|
228
299
|
const queryParameters = {};
|
|
229
|
-
if (requestParameters['sort'] != null) {
|
|
230
|
-
queryParameters['sort'] = requestParameters['sort'];
|
|
231
|
-
}
|
|
232
|
-
if (requestParameters['page'] != null) {
|
|
233
|
-
queryParameters['page'] = requestParameters['page'];
|
|
234
|
-
}
|
|
235
|
-
if (requestParameters['pageSize'] != null) {
|
|
236
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
237
|
-
}
|
|
238
300
|
const headerParameters = {};
|
|
239
|
-
|
|
240
|
-
urlPath =
|
|
301
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
302
|
+
let urlPath = `/forecaster/datastores`;
|
|
241
303
|
return {
|
|
242
304
|
path: urlPath,
|
|
243
|
-
method: '
|
|
305
|
+
method: 'POST',
|
|
244
306
|
headers: headerParameters,
|
|
245
307
|
query: queryParameters,
|
|
308
|
+
body: (0, ForecasterDatastoresRequest_js_1.ForecasterDatastoresRequestToJSON)(requestParameters['forecasterDatastoresRequest']),
|
|
246
309
|
};
|
|
247
310
|
});
|
|
248
311
|
}
|
|
249
312
|
/**
|
|
250
|
-
*
|
|
313
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
314
|
+
* List available datastores
|
|
251
315
|
*/
|
|
252
|
-
|
|
316
|
+
getForecasterDatastoresRaw(requestParameters, initOverrides) {
|
|
253
317
|
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
-
const requestOptions = yield this.
|
|
318
|
+
const requestOptions = yield this.getForecasterDatastoresRequestOpts(requestParameters);
|
|
255
319
|
const response = yield this.request(requestOptions, initOverrides);
|
|
256
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (
|
|
320
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatastoreDetail_js_1.DatastoreDetailFromJSON));
|
|
257
321
|
});
|
|
258
322
|
}
|
|
259
323
|
/**
|
|
260
|
-
*
|
|
324
|
+
* Returns datastores from the forklift-collected inventory with storage vendor and capability information derived from NAA device identifiers. No vSphere credentials are required.
|
|
325
|
+
* List available datastores
|
|
261
326
|
*/
|
|
262
|
-
|
|
263
|
-
return __awaiter(this,
|
|
264
|
-
const response = yield this.
|
|
327
|
+
getForecasterDatastores() {
|
|
328
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
329
|
+
const response = yield this.getForecasterDatastoresRaw(requestParameters, initOverrides);
|
|
265
330
|
return yield response.value();
|
|
266
331
|
});
|
|
267
332
|
}
|
|
268
333
|
/**
|
|
269
|
-
* Creates request options for
|
|
334
|
+
* Creates request options for getForecasterRuns without sending the request
|
|
270
335
|
*/
|
|
271
|
-
|
|
336
|
+
getForecasterRunsRequestOpts(requestParameters) {
|
|
272
337
|
return __awaiter(this, void 0, void 0, function* () {
|
|
273
338
|
const queryParameters = {};
|
|
339
|
+
if (requestParameters['pairName'] != null) {
|
|
340
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
341
|
+
}
|
|
274
342
|
const headerParameters = {};
|
|
275
|
-
let urlPath = `/
|
|
343
|
+
let urlPath = `/forecaster/runs`;
|
|
276
344
|
return {
|
|
277
345
|
path: urlPath,
|
|
278
346
|
method: 'GET',
|
|
@@ -282,38 +350,40 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
282
350
|
});
|
|
283
351
|
}
|
|
284
352
|
/**
|
|
285
|
-
*
|
|
353
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
354
|
+
* List benchmark runs
|
|
286
355
|
*/
|
|
287
|
-
|
|
356
|
+
getForecasterRunsRaw(requestParameters, initOverrides) {
|
|
288
357
|
return __awaiter(this, void 0, void 0, function* () {
|
|
289
|
-
const requestOptions = yield this.
|
|
358
|
+
const requestOptions = yield this.getForecasterRunsRequestOpts(requestParameters);
|
|
290
359
|
const response = yield this.request(requestOptions, initOverrides);
|
|
291
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (
|
|
360
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BenchmarkRun_js_1.BenchmarkRunFromJSON));
|
|
292
361
|
});
|
|
293
362
|
}
|
|
294
363
|
/**
|
|
295
|
-
*
|
|
364
|
+
* Returns individual benchmark iterations. Optionally filtered by pair name.
|
|
365
|
+
* List benchmark runs
|
|
296
366
|
*/
|
|
297
|
-
|
|
298
|
-
return __awaiter(this,
|
|
299
|
-
const response = yield this.
|
|
367
|
+
getForecasterRuns() {
|
|
368
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
369
|
+
const response = yield this.getForecasterRunsRaw(requestParameters, initOverrides);
|
|
300
370
|
return yield response.value();
|
|
301
371
|
});
|
|
302
372
|
}
|
|
303
373
|
/**
|
|
304
|
-
* Creates request options for
|
|
374
|
+
* Creates request options for getForecasterStats without sending the request
|
|
305
375
|
*/
|
|
306
|
-
|
|
376
|
+
getForecasterStatsRequestOpts(requestParameters) {
|
|
307
377
|
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
queryParameters['withAgentId'] = requestParameters['withAgentId'];
|
|
378
|
+
if (requestParameters['pairName'] == null) {
|
|
379
|
+
throw new runtime.RequiredError('pairName', 'Required parameter "pairName" was null or undefined when calling getForecasterStats().');
|
|
311
380
|
}
|
|
312
|
-
|
|
313
|
-
|
|
381
|
+
const queryParameters = {};
|
|
382
|
+
if (requestParameters['pairName'] != null) {
|
|
383
|
+
queryParameters['pairName'] = requestParameters['pairName'];
|
|
314
384
|
}
|
|
315
385
|
const headerParameters = {};
|
|
316
|
-
let urlPath = `/
|
|
386
|
+
let urlPath = `/forecaster/stats`;
|
|
317
387
|
return {
|
|
318
388
|
path: urlPath,
|
|
319
389
|
method: 'GET',
|
|
@@ -323,36 +393,34 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
323
393
|
});
|
|
324
394
|
}
|
|
325
395
|
/**
|
|
326
|
-
*
|
|
396
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
397
|
+
* Get throughput statistics
|
|
327
398
|
*/
|
|
328
|
-
|
|
399
|
+
getForecasterStatsRaw(requestParameters, initOverrides) {
|
|
329
400
|
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
-
const requestOptions = yield this.
|
|
401
|
+
const requestOptions = yield this.getForecasterStatsRequestOpts(requestParameters);
|
|
331
402
|
const response = yield this.request(requestOptions, initOverrides);
|
|
332
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
403
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecastStats_js_1.ForecastStatsFromJSON)(jsonValue));
|
|
333
404
|
});
|
|
334
405
|
}
|
|
335
406
|
/**
|
|
336
|
-
*
|
|
407
|
+
* Returns computed statistics for a datastore pair\'s benchmark results. Primary endpoint for the UI to display migration time estimates.
|
|
408
|
+
* Get throughput statistics
|
|
337
409
|
*/
|
|
338
|
-
|
|
339
|
-
return __awaiter(this,
|
|
340
|
-
const response = yield this.
|
|
410
|
+
getForecasterStats(requestParameters, initOverrides) {
|
|
411
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
412
|
+
const response = yield this.getForecasterStatsRaw(requestParameters, initOverrides);
|
|
341
413
|
return yield response.value();
|
|
342
414
|
});
|
|
343
415
|
}
|
|
344
416
|
/**
|
|
345
|
-
* Creates request options for
|
|
417
|
+
* Creates request options for getForecasterStatus without sending the request
|
|
346
418
|
*/
|
|
347
|
-
|
|
419
|
+
getForecasterStatusRequestOpts() {
|
|
348
420
|
return __awaiter(this, void 0, void 0, function* () {
|
|
349
|
-
if (requestParameters['id'] == null) {
|
|
350
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVM().');
|
|
351
|
-
}
|
|
352
421
|
const queryParameters = {};
|
|
353
422
|
const headerParameters = {};
|
|
354
|
-
let urlPath = `/
|
|
355
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
423
|
+
let urlPath = `/forecaster`;
|
|
356
424
|
return {
|
|
357
425
|
path: urlPath,
|
|
358
426
|
method: 'GET',
|
|
@@ -362,36 +430,47 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
362
430
|
});
|
|
363
431
|
}
|
|
364
432
|
/**
|
|
365
|
-
*
|
|
433
|
+
* Returns current service state with per-pair progress details.
|
|
434
|
+
* Poll forecaster status
|
|
366
435
|
*/
|
|
367
|
-
|
|
436
|
+
getForecasterStatusRaw(initOverrides) {
|
|
368
437
|
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
-
const requestOptions = yield this.
|
|
438
|
+
const requestOptions = yield this.getForecasterStatusRequestOpts();
|
|
370
439
|
const response = yield this.request(requestOptions, initOverrides);
|
|
371
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
440
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
372
441
|
});
|
|
373
442
|
}
|
|
374
443
|
/**
|
|
375
|
-
*
|
|
444
|
+
* Returns current service state with per-pair progress details.
|
|
445
|
+
* Poll forecaster status
|
|
376
446
|
*/
|
|
377
|
-
|
|
447
|
+
getForecasterStatus(initOverrides) {
|
|
378
448
|
return __awaiter(this, void 0, void 0, function* () {
|
|
379
|
-
const response = yield this.
|
|
449
|
+
const response = yield this.getForecasterStatusRaw(initOverrides);
|
|
380
450
|
return yield response.value();
|
|
381
451
|
});
|
|
382
452
|
}
|
|
383
453
|
/**
|
|
384
|
-
* Creates request options for
|
|
454
|
+
* Creates request options for getGroup without sending the request
|
|
385
455
|
*/
|
|
386
|
-
|
|
456
|
+
getGroupRequestOpts(requestParameters) {
|
|
387
457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
388
458
|
if (requestParameters['id'] == null) {
|
|
389
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling
|
|
459
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getGroup().');
|
|
390
460
|
}
|
|
391
461
|
const queryParameters = {};
|
|
462
|
+
if (requestParameters['sort'] != null) {
|
|
463
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
464
|
+
}
|
|
465
|
+
if (requestParameters['page'] != null) {
|
|
466
|
+
queryParameters['page'] = requestParameters['page'];
|
|
467
|
+
}
|
|
468
|
+
if (requestParameters['pageSize'] != null) {
|
|
469
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
470
|
+
}
|
|
392
471
|
const headerParameters = {};
|
|
393
|
-
let urlPath = `/
|
|
394
|
-
urlPath = urlPath.replace(
|
|
472
|
+
let urlPath = `/groups/{id}`;
|
|
473
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
395
474
|
return {
|
|
396
475
|
path: urlPath,
|
|
397
476
|
method: 'GET',
|
|
@@ -401,44 +480,35 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
401
480
|
});
|
|
402
481
|
}
|
|
403
482
|
/**
|
|
404
|
-
* Get
|
|
483
|
+
* Get group by ID with its VMs
|
|
405
484
|
*/
|
|
406
|
-
|
|
485
|
+
getGroupRaw(requestParameters, initOverrides) {
|
|
407
486
|
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
-
const requestOptions = yield this.
|
|
487
|
+
const requestOptions = yield this.getGroupRequestOpts(requestParameters);
|
|
409
488
|
const response = yield this.request(requestOptions, initOverrides);
|
|
410
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
489
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GroupResponse_js_1.GroupResponseFromJSON)(jsonValue));
|
|
411
490
|
});
|
|
412
491
|
}
|
|
413
492
|
/**
|
|
414
|
-
* Get
|
|
493
|
+
* Get group by ID with its VMs
|
|
415
494
|
*/
|
|
416
|
-
|
|
495
|
+
getGroup(requestParameters, initOverrides) {
|
|
417
496
|
return __awaiter(this, void 0, void 0, function* () {
|
|
418
|
-
const response = yield this.
|
|
497
|
+
const response = yield this.getGroupRaw(requestParameters, initOverrides);
|
|
419
498
|
return yield response.value();
|
|
420
499
|
});
|
|
421
500
|
}
|
|
422
501
|
/**
|
|
423
|
-
* Creates request options for
|
|
502
|
+
* Creates request options for getInspectorStatus without sending the request
|
|
424
503
|
*/
|
|
425
|
-
|
|
504
|
+
getInspectorStatusRequestOpts(requestParameters) {
|
|
426
505
|
return __awaiter(this, void 0, void 0, function* () {
|
|
427
506
|
const queryParameters = {};
|
|
428
|
-
if (requestParameters['
|
|
429
|
-
queryParameters['
|
|
430
|
-
}
|
|
431
|
-
if (requestParameters['sort'] != null) {
|
|
432
|
-
queryParameters['sort'] = requestParameters['sort'];
|
|
433
|
-
}
|
|
434
|
-
if (requestParameters['page'] != null) {
|
|
435
|
-
queryParameters['page'] = requestParameters['page'];
|
|
436
|
-
}
|
|
437
|
-
if (requestParameters['pageSize'] != null) {
|
|
438
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
507
|
+
if (requestParameters['includeVddk'] != null) {
|
|
508
|
+
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
439
509
|
}
|
|
440
510
|
const headerParameters = {};
|
|
441
|
-
let urlPath = `/
|
|
511
|
+
let urlPath = `/inspector`;
|
|
442
512
|
return {
|
|
443
513
|
path: urlPath,
|
|
444
514
|
method: 'GET',
|
|
@@ -448,32 +518,32 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
448
518
|
});
|
|
449
519
|
}
|
|
450
520
|
/**
|
|
451
|
-
* Get
|
|
521
|
+
* Get inspector status
|
|
452
522
|
*/
|
|
453
|
-
|
|
523
|
+
getInspectorStatusRaw(requestParameters, initOverrides) {
|
|
454
524
|
return __awaiter(this, void 0, void 0, function* () {
|
|
455
|
-
const requestOptions = yield this.
|
|
525
|
+
const requestOptions = yield this.getInspectorStatusRequestOpts(requestParameters);
|
|
456
526
|
const response = yield this.request(requestOptions, initOverrides);
|
|
457
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
527
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
|
|
458
528
|
});
|
|
459
529
|
}
|
|
460
530
|
/**
|
|
461
|
-
* Get
|
|
531
|
+
* Get inspector status
|
|
462
532
|
*/
|
|
463
|
-
|
|
533
|
+
getInspectorStatus() {
|
|
464
534
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
465
|
-
const response = yield this.
|
|
535
|
+
const response = yield this.getInspectorStatusRaw(requestParameters, initOverrides);
|
|
466
536
|
return yield response.value();
|
|
467
537
|
});
|
|
468
538
|
}
|
|
469
539
|
/**
|
|
470
|
-
* Creates request options for
|
|
540
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
471
541
|
*/
|
|
472
|
-
|
|
542
|
+
getInspectorVddkStatusRequestOpts() {
|
|
473
543
|
return __awaiter(this, void 0, void 0, function* () {
|
|
474
544
|
const queryParameters = {};
|
|
475
545
|
const headerParameters = {};
|
|
476
|
-
let urlPath = `/vddk`;
|
|
546
|
+
let urlPath = `/inspector/vddk`;
|
|
477
547
|
return {
|
|
478
548
|
path: urlPath,
|
|
479
549
|
method: 'GET',
|
|
@@ -485,30 +555,36 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
485
555
|
/**
|
|
486
556
|
* Get VDDK status
|
|
487
557
|
*/
|
|
488
|
-
|
|
558
|
+
getInspectorVddkStatusRaw(initOverrides) {
|
|
489
559
|
return __awaiter(this, void 0, void 0, function* () {
|
|
490
|
-
const requestOptions = yield this.
|
|
560
|
+
const requestOptions = yield this.getInspectorVddkStatusRequestOpts();
|
|
491
561
|
const response = yield this.request(requestOptions, initOverrides);
|
|
492
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
562
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VddkProperties_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
493
563
|
});
|
|
494
564
|
}
|
|
495
565
|
/**
|
|
496
566
|
* Get VDDK status
|
|
497
567
|
*/
|
|
498
|
-
|
|
568
|
+
getInspectorVddkStatus(initOverrides) {
|
|
499
569
|
return __awaiter(this, void 0, void 0, function* () {
|
|
500
|
-
const response = yield this.
|
|
570
|
+
const response = yield this.getInspectorVddkStatusRaw(initOverrides);
|
|
501
571
|
return yield response.value();
|
|
502
572
|
});
|
|
503
573
|
}
|
|
504
574
|
/**
|
|
505
|
-
* Creates request options for
|
|
575
|
+
* Creates request options for getInventory without sending the request
|
|
506
576
|
*/
|
|
507
|
-
|
|
577
|
+
getInventoryRequestOpts(requestParameters) {
|
|
508
578
|
return __awaiter(this, void 0, void 0, function* () {
|
|
509
579
|
const queryParameters = {};
|
|
580
|
+
if (requestParameters['withAgentId'] != null) {
|
|
581
|
+
queryParameters['withAgentId'] = requestParameters['withAgentId'];
|
|
582
|
+
}
|
|
583
|
+
if (requestParameters['groupId'] != null) {
|
|
584
|
+
queryParameters['group_id'] = requestParameters['groupId'];
|
|
585
|
+
}
|
|
510
586
|
const headerParameters = {};
|
|
511
|
-
let urlPath = `/
|
|
587
|
+
let urlPath = `/inventory`;
|
|
512
588
|
return {
|
|
513
589
|
path: urlPath,
|
|
514
590
|
method: 'GET',
|
|
@@ -518,41 +594,36 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
518
594
|
});
|
|
519
595
|
}
|
|
520
596
|
/**
|
|
521
|
-
* Get
|
|
597
|
+
* Get collected inventory
|
|
522
598
|
*/
|
|
523
|
-
|
|
599
|
+
getInventoryRaw(requestParameters, initOverrides) {
|
|
524
600
|
return __awaiter(this, void 0, void 0, function* () {
|
|
525
|
-
const requestOptions = yield this.
|
|
601
|
+
const requestOptions = yield this.getInventoryRequestOpts(requestParameters);
|
|
526
602
|
const response = yield this.request(requestOptions, initOverrides);
|
|
527
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
603
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetInventory200Response_js_1.GetInventory200ResponseFromJSON)(jsonValue));
|
|
528
604
|
});
|
|
529
605
|
}
|
|
530
606
|
/**
|
|
531
|
-
* Get
|
|
607
|
+
* Get collected inventory
|
|
532
608
|
*/
|
|
533
|
-
|
|
534
|
-
return __awaiter(this,
|
|
535
|
-
const response = yield this.
|
|
609
|
+
getInventory() {
|
|
610
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
611
|
+
const response = yield this.getInventoryRaw(requestParameters, initOverrides);
|
|
536
612
|
return yield response.value();
|
|
537
613
|
});
|
|
538
614
|
}
|
|
539
615
|
/**
|
|
540
|
-
* Creates request options for
|
|
616
|
+
* Creates request options for getLatestRightsizingClusters without sending the request
|
|
617
|
+
* @deprecated
|
|
541
618
|
*/
|
|
542
|
-
|
|
619
|
+
getLatestRightsizingClustersRequestOpts(requestParameters) {
|
|
543
620
|
return __awaiter(this, void 0, void 0, function* () {
|
|
544
621
|
const queryParameters = {};
|
|
545
|
-
if (requestParameters['
|
|
546
|
-
queryParameters['
|
|
547
|
-
}
|
|
548
|
-
if (requestParameters['page'] != null) {
|
|
549
|
-
queryParameters['page'] = requestParameters['page'];
|
|
550
|
-
}
|
|
551
|
-
if (requestParameters['pageSize'] != null) {
|
|
552
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
622
|
+
if (requestParameters['byExpression'] != null) {
|
|
623
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
553
624
|
}
|
|
554
625
|
const headerParameters = {};
|
|
555
|
-
let urlPath = `/
|
|
626
|
+
let urlPath = `/cluster_rightsizing`;
|
|
556
627
|
return {
|
|
557
628
|
path: urlPath,
|
|
558
629
|
method: 'GET',
|
|
@@ -562,161 +633,788 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
562
633
|
});
|
|
563
634
|
}
|
|
564
635
|
/**
|
|
565
|
-
*
|
|
636
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
637
|
+
* @deprecated
|
|
566
638
|
*/
|
|
567
|
-
|
|
639
|
+
getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
|
|
568
640
|
return __awaiter(this, void 0, void 0, function* () {
|
|
569
|
-
const requestOptions = yield this.
|
|
641
|
+
const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
|
|
570
642
|
const response = yield this.request(requestOptions, initOverrides);
|
|
571
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
643
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
572
644
|
});
|
|
573
645
|
}
|
|
574
646
|
/**
|
|
575
|
-
*
|
|
647
|
+
* Get cluster-level utilization aggregates for the latest completed report
|
|
648
|
+
* @deprecated
|
|
576
649
|
*/
|
|
577
|
-
|
|
650
|
+
getLatestRightsizingClusters() {
|
|
578
651
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
579
|
-
const response = yield this.
|
|
652
|
+
const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
|
|
580
653
|
return yield response.value();
|
|
581
654
|
});
|
|
582
655
|
}
|
|
583
656
|
/**
|
|
584
|
-
* Creates request options for
|
|
657
|
+
* Creates request options for getRightsizingReport without sending the request
|
|
585
658
|
*/
|
|
586
|
-
|
|
659
|
+
getRightsizingReportRequestOpts(requestParameters) {
|
|
587
660
|
return __awaiter(this, void 0, void 0, function* () {
|
|
588
|
-
if (requestParameters['
|
|
589
|
-
throw new runtime.RequiredError('
|
|
661
|
+
if (requestParameters['reportId'] == null) {
|
|
662
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReport().');
|
|
590
663
|
}
|
|
591
664
|
const queryParameters = {};
|
|
592
665
|
const headerParameters = {};
|
|
593
|
-
let urlPath = `/
|
|
594
|
-
urlPath = urlPath.replace(
|
|
666
|
+
let urlPath = `/rightsizing/{report_id}`;
|
|
667
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
595
668
|
return {
|
|
596
669
|
path: urlPath,
|
|
597
|
-
method: '
|
|
670
|
+
method: 'GET',
|
|
598
671
|
headers: headerParameters,
|
|
599
672
|
query: queryParameters,
|
|
600
673
|
};
|
|
601
674
|
});
|
|
602
675
|
}
|
|
603
676
|
/**
|
|
604
|
-
*
|
|
677
|
+
* Get a specific rightsizing report with full VM metrics
|
|
605
678
|
*/
|
|
606
|
-
|
|
679
|
+
getRightsizingReportRaw(requestParameters, initOverrides) {
|
|
607
680
|
return __awaiter(this, void 0, void 0, function* () {
|
|
608
|
-
const requestOptions = yield this.
|
|
681
|
+
const requestOptions = yield this.getRightsizingReportRequestOpts(requestParameters);
|
|
609
682
|
const response = yield this.request(requestOptions, initOverrides);
|
|
610
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
683
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReport_js_1.RightsizingReportFromJSON)(jsonValue));
|
|
611
684
|
});
|
|
612
685
|
}
|
|
613
686
|
/**
|
|
614
|
-
*
|
|
687
|
+
* Get a specific rightsizing report with full VM metrics
|
|
615
688
|
*/
|
|
616
|
-
|
|
689
|
+
getRightsizingReport(requestParameters, initOverrides) {
|
|
617
690
|
return __awaiter(this, void 0, void 0, function* () {
|
|
618
|
-
const response = yield this.
|
|
691
|
+
const response = yield this.getRightsizingReportRaw(requestParameters, initOverrides);
|
|
619
692
|
return yield response.value();
|
|
620
693
|
});
|
|
621
694
|
}
|
|
622
695
|
/**
|
|
623
|
-
* Creates request options for
|
|
696
|
+
* Creates request options for getRightsizingReportCluster without sending the request
|
|
624
697
|
*/
|
|
625
|
-
|
|
698
|
+
getRightsizingReportClusterRequestOpts(requestParameters) {
|
|
626
699
|
return __awaiter(this, void 0, void 0, function* () {
|
|
627
|
-
if (requestParameters['
|
|
628
|
-
throw new runtime.RequiredError('
|
|
700
|
+
if (requestParameters['reportId'] == null) {
|
|
701
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportCluster().');
|
|
702
|
+
}
|
|
703
|
+
if (requestParameters['clusterId'] == null) {
|
|
704
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getRightsizingReportCluster().');
|
|
629
705
|
}
|
|
630
706
|
const queryParameters = {};
|
|
631
707
|
const headerParameters = {};
|
|
632
|
-
|
|
633
|
-
|
|
708
|
+
let urlPath = `/rightsizing/{report_id}/clusters/{cluster_id}`;
|
|
709
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
710
|
+
urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
634
711
|
return {
|
|
635
712
|
path: urlPath,
|
|
636
|
-
method: '
|
|
713
|
+
method: 'GET',
|
|
637
714
|
headers: headerParameters,
|
|
638
715
|
query: queryParameters,
|
|
639
|
-
body: (0, index_js_1.AgentModeRequestToJSON)(requestParameters['agentModeRequest']),
|
|
640
716
|
};
|
|
641
717
|
});
|
|
642
718
|
}
|
|
643
719
|
/**
|
|
644
|
-
*
|
|
720
|
+
* Get utilization for a specific cluster from a specific report
|
|
645
721
|
*/
|
|
646
|
-
|
|
722
|
+
getRightsizingReportClusterRaw(requestParameters, initOverrides) {
|
|
647
723
|
return __awaiter(this, void 0, void 0, function* () {
|
|
648
|
-
const requestOptions = yield this.
|
|
724
|
+
const requestOptions = yield this.getRightsizingReportClusterRequestOpts(requestParameters);
|
|
649
725
|
const response = yield this.request(requestOptions, initOverrides);
|
|
650
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
726
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
|
|
651
727
|
});
|
|
652
728
|
}
|
|
653
729
|
/**
|
|
654
|
-
*
|
|
730
|
+
* Get utilization for a specific cluster from a specific report
|
|
655
731
|
*/
|
|
656
|
-
|
|
732
|
+
getRightsizingReportCluster(requestParameters, initOverrides) {
|
|
657
733
|
return __awaiter(this, void 0, void 0, function* () {
|
|
658
|
-
const response = yield this.
|
|
734
|
+
const response = yield this.getRightsizingReportClusterRaw(requestParameters, initOverrides);
|
|
659
735
|
return yield response.value();
|
|
660
736
|
});
|
|
661
737
|
}
|
|
662
738
|
/**
|
|
663
|
-
* Creates request options for
|
|
739
|
+
* Creates request options for getRightsizingReportClusters without sending the request
|
|
740
|
+
* @deprecated
|
|
664
741
|
*/
|
|
665
|
-
|
|
742
|
+
getRightsizingReportClustersRequestOpts(requestParameters) {
|
|
666
743
|
return __awaiter(this, void 0, void 0, function* () {
|
|
667
|
-
if (requestParameters['
|
|
668
|
-
throw new runtime.RequiredError('
|
|
744
|
+
if (requestParameters['reportId'] == null) {
|
|
745
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
|
|
669
746
|
}
|
|
670
747
|
const queryParameters = {};
|
|
748
|
+
if (requestParameters['byExpression'] != null) {
|
|
749
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
750
|
+
}
|
|
671
751
|
const headerParameters = {};
|
|
672
|
-
|
|
673
|
-
|
|
752
|
+
let urlPath = `/cluster_rightsizing/{report_id}`;
|
|
753
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
674
754
|
return {
|
|
675
755
|
path: urlPath,
|
|
676
|
-
method: '
|
|
756
|
+
method: 'GET',
|
|
677
757
|
headers: headerParameters,
|
|
678
758
|
query: queryParameters,
|
|
679
|
-
body: (0, index_js_1.CollectorStartRequestToJSON)(requestParameters['collectorStartRequest']),
|
|
680
759
|
};
|
|
681
760
|
});
|
|
682
761
|
}
|
|
683
762
|
/**
|
|
684
|
-
*
|
|
763
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
764
|
+
* @deprecated
|
|
685
765
|
*/
|
|
686
|
-
|
|
766
|
+
getRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
687
767
|
return __awaiter(this, void 0, void 0, function* () {
|
|
688
|
-
const requestOptions = yield this.
|
|
768
|
+
const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
|
|
689
769
|
const response = yield this.request(requestOptions, initOverrides);
|
|
690
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
770
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
691
771
|
});
|
|
692
772
|
}
|
|
693
773
|
/**
|
|
694
|
-
*
|
|
774
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
775
|
+
* @deprecated
|
|
695
776
|
*/
|
|
696
|
-
|
|
777
|
+
getRightsizingReportClusters(requestParameters, initOverrides) {
|
|
697
778
|
return __awaiter(this, void 0, void 0, function* () {
|
|
698
|
-
const response = yield this.
|
|
779
|
+
const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
699
780
|
return yield response.value();
|
|
700
781
|
});
|
|
701
782
|
}
|
|
702
783
|
/**
|
|
703
|
-
* Creates request options for
|
|
784
|
+
* Creates request options for getVM without sending the request
|
|
704
785
|
*/
|
|
705
|
-
|
|
786
|
+
getVMRequestOpts(requestParameters) {
|
|
706
787
|
return __awaiter(this, void 0, void 0, function* () {
|
|
707
|
-
if (requestParameters['
|
|
708
|
-
throw new runtime.RequiredError('
|
|
788
|
+
if (requestParameters['id'] == null) {
|
|
789
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVM().');
|
|
709
790
|
}
|
|
710
791
|
const queryParameters = {};
|
|
711
792
|
const headerParameters = {};
|
|
712
|
-
|
|
713
|
-
|
|
793
|
+
let urlPath = `/vms/{id}`;
|
|
794
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
795
|
+
return {
|
|
796
|
+
path: urlPath,
|
|
797
|
+
method: 'GET',
|
|
798
|
+
headers: headerParameters,
|
|
799
|
+
query: queryParameters,
|
|
800
|
+
};
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* Get details about a vm
|
|
805
|
+
*/
|
|
806
|
+
getVMRaw(requestParameters, initOverrides) {
|
|
807
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
808
|
+
const requestOptions = yield this.getVMRequestOpts(requestParameters);
|
|
809
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
810
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VirtualMachineDetail_js_1.VirtualMachineDetailFromJSON)(jsonValue));
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Get details about a vm
|
|
815
|
+
*/
|
|
816
|
+
getVM(requestParameters, initOverrides) {
|
|
817
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
818
|
+
const response = yield this.getVMRaw(requestParameters, initOverrides);
|
|
819
|
+
return yield response.value();
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* Creates request options for getVMLabels without sending the request
|
|
824
|
+
*/
|
|
825
|
+
getVMLabelsRequestOpts() {
|
|
826
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
827
|
+
const queryParameters = {};
|
|
828
|
+
const headerParameters = {};
|
|
829
|
+
let urlPath = `/vms/labels`;
|
|
830
|
+
return {
|
|
831
|
+
path: urlPath,
|
|
832
|
+
method: 'GET',
|
|
833
|
+
headers: headerParameters,
|
|
834
|
+
query: queryParameters,
|
|
835
|
+
};
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Get all distinct labels in use across VMs
|
|
840
|
+
*/
|
|
841
|
+
getVMLabelsRaw(initOverrides) {
|
|
842
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
843
|
+
const requestOptions = yield this.getVMLabelsRequestOpts();
|
|
844
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
845
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMLabelsResponse_js_1.VMLabelsResponseFromJSON)(jsonValue));
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Get all distinct labels in use across VMs
|
|
850
|
+
*/
|
|
851
|
+
getVMLabels(initOverrides) {
|
|
852
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
853
|
+
const response = yield this.getVMLabelsRaw(initOverrides);
|
|
854
|
+
return yield response.value();
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* Creates request options for getVMUtilization without sending the request
|
|
859
|
+
*/
|
|
860
|
+
getVMUtilizationRequestOpts(requestParameters) {
|
|
861
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
862
|
+
if (requestParameters['id'] == null) {
|
|
863
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVMUtilization().');
|
|
864
|
+
}
|
|
865
|
+
const queryParameters = {};
|
|
866
|
+
const headerParameters = {};
|
|
867
|
+
let urlPath = `/vms/{id}/utilization`;
|
|
868
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
869
|
+
return {
|
|
870
|
+
path: urlPath,
|
|
871
|
+
method: 'GET',
|
|
872
|
+
headers: headerParameters,
|
|
873
|
+
query: queryParameters,
|
|
874
|
+
};
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Get utilization breakdown for a specific VM
|
|
879
|
+
*/
|
|
880
|
+
getVMUtilizationRaw(requestParameters, initOverrides) {
|
|
881
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
882
|
+
const requestOptions = yield this.getVMUtilizationRequestOpts(requestParameters);
|
|
883
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
884
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(jsonValue));
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Get utilization breakdown for a specific VM
|
|
889
|
+
*/
|
|
890
|
+
getVMUtilization(requestParameters, initOverrides) {
|
|
891
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
892
|
+
const response = yield this.getVMUtilizationRaw(requestParameters, initOverrides);
|
|
893
|
+
return yield response.value();
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* Creates request options for getVMs without sending the request
|
|
898
|
+
*/
|
|
899
|
+
getVMsRequestOpts(requestParameters) {
|
|
900
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
901
|
+
const queryParameters = {};
|
|
902
|
+
if (requestParameters['byExpression'] != null) {
|
|
903
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
904
|
+
}
|
|
905
|
+
if (requestParameters['sort'] != null) {
|
|
906
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
907
|
+
}
|
|
908
|
+
if (requestParameters['page'] != null) {
|
|
909
|
+
queryParameters['page'] = requestParameters['page'];
|
|
910
|
+
}
|
|
911
|
+
if (requestParameters['pageSize'] != null) {
|
|
912
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
913
|
+
}
|
|
914
|
+
const headerParameters = {};
|
|
915
|
+
let urlPath = `/vms`;
|
|
916
|
+
return {
|
|
917
|
+
path: urlPath,
|
|
918
|
+
method: 'GET',
|
|
919
|
+
headers: headerParameters,
|
|
920
|
+
query: queryParameters,
|
|
921
|
+
};
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* Get list of VMs with filtering and pagination
|
|
926
|
+
*/
|
|
927
|
+
getVMsRaw(requestParameters, initOverrides) {
|
|
928
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
929
|
+
const requestOptions = yield this.getVMsRequestOpts(requestParameters);
|
|
930
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
931
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VirtualMachineListResponse_js_1.VirtualMachineListResponseFromJSON)(jsonValue));
|
|
932
|
+
});
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* Get list of VMs with filtering and pagination
|
|
936
|
+
*/
|
|
937
|
+
getVMs() {
|
|
938
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
939
|
+
const response = yield this.getVMsRaw(requestParameters, initOverrides);
|
|
940
|
+
return yield response.value();
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* Creates request options for getVersion without sending the request
|
|
945
|
+
*/
|
|
946
|
+
getVersionRequestOpts() {
|
|
947
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
948
|
+
const queryParameters = {};
|
|
949
|
+
const headerParameters = {};
|
|
950
|
+
let urlPath = `/version`;
|
|
951
|
+
return {
|
|
952
|
+
path: urlPath,
|
|
953
|
+
method: 'GET',
|
|
954
|
+
headers: headerParameters,
|
|
955
|
+
query: queryParameters,
|
|
956
|
+
};
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Get agent version information
|
|
961
|
+
*/
|
|
962
|
+
getVersionRaw(initOverrides) {
|
|
963
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
964
|
+
const requestOptions = yield this.getVersionRequestOpts();
|
|
965
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
966
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VersionInfo_js_1.VersionInfoFromJSON)(jsonValue));
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* Get agent version information
|
|
971
|
+
*/
|
|
972
|
+
getVersion(initOverrides) {
|
|
973
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
974
|
+
const response = yield this.getVersionRaw(initOverrides);
|
|
975
|
+
return yield response.value();
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Creates request options for listGroups without sending the request
|
|
980
|
+
*/
|
|
981
|
+
listGroupsRequestOpts(requestParameters) {
|
|
982
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
983
|
+
const queryParameters = {};
|
|
984
|
+
if (requestParameters['byName'] != null) {
|
|
985
|
+
queryParameters['byName'] = requestParameters['byName'];
|
|
986
|
+
}
|
|
987
|
+
if (requestParameters['page'] != null) {
|
|
988
|
+
queryParameters['page'] = requestParameters['page'];
|
|
989
|
+
}
|
|
990
|
+
if (requestParameters['pageSize'] != null) {
|
|
991
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
992
|
+
}
|
|
993
|
+
const headerParameters = {};
|
|
994
|
+
let urlPath = `/groups`;
|
|
995
|
+
return {
|
|
996
|
+
path: urlPath,
|
|
997
|
+
method: 'GET',
|
|
998
|
+
headers: headerParameters,
|
|
999
|
+
query: queryParameters,
|
|
1000
|
+
};
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* List all groups
|
|
1005
|
+
*/
|
|
1006
|
+
listGroupsRaw(requestParameters, initOverrides) {
|
|
1007
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1008
|
+
const requestOptions = yield this.listGroupsRequestOpts(requestParameters);
|
|
1009
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1010
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GroupListResponse_js_1.GroupListResponseFromJSON)(jsonValue));
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* List all groups
|
|
1015
|
+
*/
|
|
1016
|
+
listGroups() {
|
|
1017
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
1018
|
+
const response = yield this.listGroupsRaw(requestParameters, initOverrides);
|
|
1019
|
+
return yield response.value();
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* Creates request options for listRightsizingReportClusters without sending the request
|
|
1024
|
+
*/
|
|
1025
|
+
listRightsizingReportClustersRequestOpts(requestParameters) {
|
|
1026
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1027
|
+
if (requestParameters['reportId'] == null) {
|
|
1028
|
+
throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling listRightsizingReportClusters().');
|
|
1029
|
+
}
|
|
1030
|
+
const queryParameters = {};
|
|
1031
|
+
if (requestParameters['byExpression'] != null) {
|
|
1032
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
1033
|
+
}
|
|
1034
|
+
const headerParameters = {};
|
|
1035
|
+
let urlPath = `/rightsizing/{report_id}/clusters`;
|
|
1036
|
+
urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
|
|
1037
|
+
return {
|
|
1038
|
+
path: urlPath,
|
|
1039
|
+
method: 'GET',
|
|
1040
|
+
headers: headerParameters,
|
|
1041
|
+
query: queryParameters,
|
|
1042
|
+
};
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1047
|
+
*/
|
|
1048
|
+
listRightsizingReportClustersRaw(requestParameters, initOverrides) {
|
|
1049
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1050
|
+
const requestOptions = yield this.listRightsizingReportClustersRequestOpts(requestParameters);
|
|
1051
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1052
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Get cluster-level utilization aggregates for a specific report
|
|
1057
|
+
*/
|
|
1058
|
+
listRightsizingReportClusters(requestParameters, initOverrides) {
|
|
1059
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1060
|
+
const response = yield this.listRightsizingReportClustersRaw(requestParameters, initOverrides);
|
|
1061
|
+
return yield response.value();
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* Creates request options for listRightsizingReports without sending the request
|
|
1066
|
+
*/
|
|
1067
|
+
listRightsizingReportsRequestOpts() {
|
|
1068
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1069
|
+
const queryParameters = {};
|
|
1070
|
+
const headerParameters = {};
|
|
1071
|
+
let urlPath = `/rightsizing`;
|
|
1072
|
+
return {
|
|
1073
|
+
path: urlPath,
|
|
1074
|
+
method: 'GET',
|
|
1075
|
+
headers: headerParameters,
|
|
1076
|
+
query: queryParameters,
|
|
1077
|
+
};
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* List all rightsizing reports
|
|
1082
|
+
*/
|
|
1083
|
+
listRightsizingReportsRaw(initOverrides) {
|
|
1084
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1085
|
+
const requestOptions = yield this.listRightsizingReportsRequestOpts();
|
|
1086
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1087
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReportListResponse_js_1.RightsizingReportListResponseFromJSON)(jsonValue));
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
/**
|
|
1091
|
+
* List all rightsizing reports
|
|
1092
|
+
*/
|
|
1093
|
+
listRightsizingReports(initOverrides) {
|
|
1094
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1095
|
+
const response = yield this.listRightsizingReportsRaw(initOverrides);
|
|
1096
|
+
return yield response.value();
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* Creates request options for postForecasterPairCapabilities without sending the request
|
|
1101
|
+
*/
|
|
1102
|
+
postForecasterPairCapabilitiesRequestOpts(requestParameters) {
|
|
1103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1104
|
+
if (requestParameters['pairCapabilityRequest'] == null) {
|
|
1105
|
+
throw new runtime.RequiredError('pairCapabilityRequest', 'Required parameter "pairCapabilityRequest" was null or undefined when calling postForecasterPairCapabilities().');
|
|
1106
|
+
}
|
|
1107
|
+
const queryParameters = {};
|
|
1108
|
+
const headerParameters = {};
|
|
1109
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1110
|
+
let urlPath = `/forecaster/capabilities`;
|
|
1111
|
+
return {
|
|
1112
|
+
path: urlPath,
|
|
1113
|
+
method: 'POST',
|
|
1114
|
+
headers: headerParameters,
|
|
1115
|
+
query: queryParameters,
|
|
1116
|
+
body: (0, PairCapabilityRequest_js_1.PairCapabilityRequestToJSON)(requestParameters['pairCapabilityRequest']),
|
|
1117
|
+
};
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* 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.
|
|
1122
|
+
* Compute pair capabilities
|
|
1123
|
+
*/
|
|
1124
|
+
postForecasterPairCapabilitiesRaw(requestParameters, initOverrides) {
|
|
1125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1126
|
+
const requestOptions = yield this.postForecasterPairCapabilitiesRequestOpts(requestParameters);
|
|
1127
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1128
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PairCapability_js_1.PairCapabilityFromJSON));
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* 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.
|
|
1133
|
+
* Compute pair capabilities
|
|
1134
|
+
*/
|
|
1135
|
+
postForecasterPairCapabilities(requestParameters, initOverrides) {
|
|
1136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1137
|
+
const response = yield this.postForecasterPairCapabilitiesRaw(requestParameters, initOverrides);
|
|
1138
|
+
return yield response.value();
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
* Creates request options for putForecasterCredentials without sending the request
|
|
1143
|
+
*/
|
|
1144
|
+
putForecasterCredentialsRequestOpts(requestParameters) {
|
|
1145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1146
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1147
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putForecasterCredentials().');
|
|
1148
|
+
}
|
|
1149
|
+
const queryParameters = {};
|
|
1150
|
+
const headerParameters = {};
|
|
1151
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1152
|
+
let urlPath = `/forecaster/credentials`;
|
|
1153
|
+
return {
|
|
1154
|
+
path: urlPath,
|
|
1155
|
+
method: 'PUT',
|
|
1156
|
+
headers: headerParameters,
|
|
1157
|
+
query: queryParameters,
|
|
1158
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
1159
|
+
};
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* 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.
|
|
1164
|
+
* Verify vCenter credentials and permissions
|
|
1165
|
+
*/
|
|
1166
|
+
putForecasterCredentialsRaw(requestParameters, initOverrides) {
|
|
1167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1168
|
+
const requestOptions = yield this.putForecasterCredentialsRequestOpts(requestParameters);
|
|
1169
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1170
|
+
return new runtime.VoidApiResponse(response);
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* 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.
|
|
1175
|
+
* Verify vCenter credentials and permissions
|
|
1176
|
+
*/
|
|
1177
|
+
putForecasterCredentials(requestParameters, initOverrides) {
|
|
1178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1179
|
+
yield this.putForecasterCredentialsRaw(requestParameters, initOverrides);
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
1184
|
+
*/
|
|
1185
|
+
putInspectorVddkRequestOpts(requestParameters) {
|
|
1186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1187
|
+
if (requestParameters['file'] == null) {
|
|
1188
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling putInspectorVddk().');
|
|
1189
|
+
}
|
|
1190
|
+
const queryParameters = {};
|
|
1191
|
+
const headerParameters = {};
|
|
1192
|
+
const consumes = [
|
|
1193
|
+
{ contentType: 'multipart/form-data' },
|
|
1194
|
+
];
|
|
1195
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
1196
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1197
|
+
let formParams;
|
|
1198
|
+
let useForm = false;
|
|
1199
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
1200
|
+
useForm = canConsumeForm;
|
|
1201
|
+
if (useForm) {
|
|
1202
|
+
formParams = new FormData();
|
|
1203
|
+
}
|
|
1204
|
+
else {
|
|
1205
|
+
formParams = new URLSearchParams();
|
|
1206
|
+
}
|
|
1207
|
+
if (requestParameters['file'] != null) {
|
|
1208
|
+
formParams.append('file', requestParameters['file']);
|
|
1209
|
+
}
|
|
1210
|
+
let urlPath = `/inspector/vddk`;
|
|
1211
|
+
return {
|
|
1212
|
+
path: urlPath,
|
|
1213
|
+
method: 'PUT',
|
|
1214
|
+
headers: headerParameters,
|
|
1215
|
+
query: queryParameters,
|
|
1216
|
+
body: formParams,
|
|
1217
|
+
};
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* Upload VDDK tarball
|
|
1222
|
+
*/
|
|
1223
|
+
putInspectorVddkRaw(requestParameters, initOverrides) {
|
|
1224
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1225
|
+
const requestOptions = yield this.putInspectorVddkRequestOpts(requestParameters);
|
|
1226
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1227
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VddkProperties_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
1228
|
+
});
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* Upload VDDK tarball
|
|
1232
|
+
*/
|
|
1233
|
+
putInspectorVddk(requestParameters, initOverrides) {
|
|
1234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1235
|
+
const response = yield this.putInspectorVddkRaw(requestParameters, initOverrides);
|
|
1236
|
+
return yield response.value();
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
/**
|
|
1240
|
+
* Creates request options for removeVMFromInspection without sending the request
|
|
1241
|
+
*/
|
|
1242
|
+
removeVMFromInspectionRequestOpts(requestParameters) {
|
|
1243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1244
|
+
if (requestParameters['id'] == null) {
|
|
1245
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling removeVMFromInspection().');
|
|
1246
|
+
}
|
|
1247
|
+
const queryParameters = {};
|
|
1248
|
+
const headerParameters = {};
|
|
1249
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
1250
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1251
|
+
return {
|
|
1252
|
+
path: urlPath,
|
|
1253
|
+
method: 'DELETE',
|
|
1254
|
+
headers: headerParameters,
|
|
1255
|
+
query: queryParameters,
|
|
1256
|
+
};
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
/**
|
|
1260
|
+
* Remove VirtualMachine from inspection queue
|
|
1261
|
+
*/
|
|
1262
|
+
removeVMFromInspectionRaw(requestParameters, initOverrides) {
|
|
1263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1264
|
+
const requestOptions = yield this.removeVMFromInspectionRequestOpts(requestParameters);
|
|
1265
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1266
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(jsonValue));
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
/**
|
|
1270
|
+
* Remove VirtualMachine from inspection queue
|
|
1271
|
+
*/
|
|
1272
|
+
removeVMFromInspection(requestParameters, initOverrides) {
|
|
1273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1274
|
+
const response = yield this.removeVMFromInspectionRaw(requestParameters, initOverrides);
|
|
1275
|
+
return yield response.value();
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
/**
|
|
1279
|
+
* Creates request options for setAgentMode without sending the request
|
|
1280
|
+
*/
|
|
1281
|
+
setAgentModeRequestOpts(requestParameters) {
|
|
1282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1283
|
+
if (requestParameters['agentModeRequest'] == null) {
|
|
1284
|
+
throw new runtime.RequiredError('agentModeRequest', 'Required parameter "agentModeRequest" was null or undefined when calling setAgentMode().');
|
|
1285
|
+
}
|
|
1286
|
+
const queryParameters = {};
|
|
1287
|
+
const headerParameters = {};
|
|
1288
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1289
|
+
let urlPath = `/agent`;
|
|
1290
|
+
return {
|
|
1291
|
+
path: urlPath,
|
|
1292
|
+
method: 'POST',
|
|
1293
|
+
headers: headerParameters,
|
|
1294
|
+
query: queryParameters,
|
|
1295
|
+
body: (0, AgentModeRequest_js_1.AgentModeRequestToJSON)(requestParameters['agentModeRequest']),
|
|
1296
|
+
};
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* Change agent mode
|
|
1301
|
+
*/
|
|
1302
|
+
setAgentModeRaw(requestParameters, initOverrides) {
|
|
1303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1304
|
+
const requestOptions = yield this.setAgentModeRequestOpts(requestParameters);
|
|
1305
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1306
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentStatus_js_1.AgentStatusFromJSON)(jsonValue));
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
/**
|
|
1310
|
+
* Change agent mode
|
|
1311
|
+
*/
|
|
1312
|
+
setAgentMode(requestParameters, initOverrides) {
|
|
1313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1314
|
+
const response = yield this.setAgentModeRaw(requestParameters, initOverrides);
|
|
1315
|
+
return yield response.value();
|
|
1316
|
+
});
|
|
1317
|
+
}
|
|
1318
|
+
/**
|
|
1319
|
+
* Creates request options for startCollector without sending the request
|
|
1320
|
+
*/
|
|
1321
|
+
startCollectorRequestOpts(requestParameters) {
|
|
1322
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1323
|
+
if (requestParameters['collectorStartRequest'] == null) {
|
|
1324
|
+
throw new runtime.RequiredError('collectorStartRequest', 'Required parameter "collectorStartRequest" was null or undefined when calling startCollector().');
|
|
1325
|
+
}
|
|
1326
|
+
const queryParameters = {};
|
|
1327
|
+
const headerParameters = {};
|
|
1328
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1329
|
+
let urlPath = `/collector`;
|
|
1330
|
+
return {
|
|
1331
|
+
path: urlPath,
|
|
1332
|
+
method: 'POST',
|
|
1333
|
+
headers: headerParameters,
|
|
1334
|
+
query: queryParameters,
|
|
1335
|
+
body: (0, CollectorStartRequest_js_1.CollectorStartRequestToJSON)(requestParameters['collectorStartRequest']),
|
|
1336
|
+
};
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Start inventory collection
|
|
1341
|
+
*/
|
|
1342
|
+
startCollectorRaw(requestParameters, initOverrides) {
|
|
1343
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1344
|
+
const requestOptions = yield this.startCollectorRequestOpts(requestParameters);
|
|
1345
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1346
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* Start inventory collection
|
|
1351
|
+
*/
|
|
1352
|
+
startCollector(requestParameters, initOverrides) {
|
|
1353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1354
|
+
const response = yield this.startCollectorRaw(requestParameters, initOverrides);
|
|
1355
|
+
return yield response.value();
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1358
|
+
/**
|
|
1359
|
+
* Creates request options for startForecaster without sending the request
|
|
1360
|
+
*/
|
|
1361
|
+
startForecasterRequestOpts(requestParameters) {
|
|
1362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1363
|
+
if (requestParameters['forecasterStartRequest'] == null) {
|
|
1364
|
+
throw new runtime.RequiredError('forecasterStartRequest', 'Required parameter "forecasterStartRequest" was null or undefined when calling startForecaster().');
|
|
1365
|
+
}
|
|
1366
|
+
const queryParameters = {};
|
|
1367
|
+
const headerParameters = {};
|
|
1368
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1369
|
+
let urlPath = `/forecaster`;
|
|
1370
|
+
return {
|
|
1371
|
+
path: urlPath,
|
|
1372
|
+
method: 'POST',
|
|
1373
|
+
headers: headerParameters,
|
|
1374
|
+
query: queryParameters,
|
|
1375
|
+
body: (0, ForecasterStartRequest_js_1.ForecasterStartRequestToJSON)(requestParameters['forecasterStartRequest']),
|
|
1376
|
+
};
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1381
|
+
* Start benchmark
|
|
1382
|
+
*/
|
|
1383
|
+
startForecasterRaw(requestParameters, initOverrides) {
|
|
1384
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1385
|
+
const requestOptions = yield this.startForecasterRequestOpts(requestParameters);
|
|
1386
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1387
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* Starts async benchmarking for one or more datastore pairs. Credentials can be passed inline or omitted if previously provided in an earlier request.
|
|
1392
|
+
* Start benchmark
|
|
1393
|
+
*/
|
|
1394
|
+
startForecaster(requestParameters, initOverrides) {
|
|
1395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1396
|
+
const response = yield this.startForecasterRaw(requestParameters, initOverrides);
|
|
1397
|
+
return yield response.value();
|
|
1398
|
+
});
|
|
1399
|
+
}
|
|
1400
|
+
/**
|
|
1401
|
+
* Creates request options for startInspection without sending the request
|
|
1402
|
+
*/
|
|
1403
|
+
startInspectionRequestOpts(requestParameters) {
|
|
1404
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1405
|
+
if (requestParameters['startInspectionRequest'] == null) {
|
|
1406
|
+
throw new runtime.RequiredError('startInspectionRequest', 'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().');
|
|
1407
|
+
}
|
|
1408
|
+
const queryParameters = {};
|
|
1409
|
+
const headerParameters = {};
|
|
1410
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1411
|
+
let urlPath = `/inspector`;
|
|
714
1412
|
return {
|
|
715
1413
|
path: urlPath,
|
|
716
1414
|
method: 'POST',
|
|
717
1415
|
headers: headerParameters,
|
|
718
1416
|
query: queryParameters,
|
|
719
|
-
body: (0,
|
|
1417
|
+
body: (0, StartInspectionRequest_js_1.StartInspectionRequestToJSON)(requestParameters['startInspectionRequest']),
|
|
720
1418
|
};
|
|
721
1419
|
});
|
|
722
1420
|
}
|
|
@@ -727,7 +1425,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
727
1425
|
return __awaiter(this, void 0, void 0, function* () {
|
|
728
1426
|
const requestOptions = yield this.startInspectionRequestOpts(requestParameters);
|
|
729
1427
|
const response = yield this.request(requestOptions, initOverrides);
|
|
730
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1428
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
|
|
731
1429
|
});
|
|
732
1430
|
}
|
|
733
1431
|
/**
|
|
@@ -773,6 +1471,84 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
773
1471
|
yield this.stopCollectorRaw(initOverrides);
|
|
774
1472
|
});
|
|
775
1473
|
}
|
|
1474
|
+
/**
|
|
1475
|
+
* Creates request options for stopForecaster without sending the request
|
|
1476
|
+
*/
|
|
1477
|
+
stopForecasterRequestOpts() {
|
|
1478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1479
|
+
const queryParameters = {};
|
|
1480
|
+
const headerParameters = {};
|
|
1481
|
+
let urlPath = `/forecaster`;
|
|
1482
|
+
return {
|
|
1483
|
+
path: urlPath,
|
|
1484
|
+
method: 'DELETE',
|
|
1485
|
+
headers: headerParameters,
|
|
1486
|
+
query: queryParameters,
|
|
1487
|
+
};
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1492
|
+
* Cancel benchmark
|
|
1493
|
+
*/
|
|
1494
|
+
stopForecasterRaw(initOverrides) {
|
|
1495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1496
|
+
const requestOptions = yield this.stopForecasterRequestOpts();
|
|
1497
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1498
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ForecasterStatus_js_1.ForecasterStatusFromJSON)(jsonValue));
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
/**
|
|
1502
|
+
* Stops the running benchmark. Already-completed runs are preserved in the database.
|
|
1503
|
+
* Cancel benchmark
|
|
1504
|
+
*/
|
|
1505
|
+
stopForecaster(initOverrides) {
|
|
1506
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1507
|
+
const response = yield this.stopForecasterRaw(initOverrides);
|
|
1508
|
+
return yield response.value();
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1511
|
+
/**
|
|
1512
|
+
* Creates request options for stopForecasterPair without sending the request
|
|
1513
|
+
*/
|
|
1514
|
+
stopForecasterPairRequestOpts(requestParameters) {
|
|
1515
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1516
|
+
if (requestParameters['name'] == null) {
|
|
1517
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling stopForecasterPair().');
|
|
1518
|
+
}
|
|
1519
|
+
const queryParameters = {};
|
|
1520
|
+
const headerParameters = {};
|
|
1521
|
+
let urlPath = `/forecaster/pairs/{name}`;
|
|
1522
|
+
urlPath = urlPath.replace('{name}', encodeURIComponent(String(requestParameters['name'])));
|
|
1523
|
+
return {
|
|
1524
|
+
path: urlPath,
|
|
1525
|
+
method: 'DELETE',
|
|
1526
|
+
headers: headerParameters,
|
|
1527
|
+
query: queryParameters,
|
|
1528
|
+
};
|
|
1529
|
+
});
|
|
1530
|
+
}
|
|
1531
|
+
/**
|
|
1532
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1533
|
+
* Cancel a single pair
|
|
1534
|
+
*/
|
|
1535
|
+
stopForecasterPairRaw(requestParameters, initOverrides) {
|
|
1536
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1537
|
+
const requestOptions = yield this.stopForecasterPairRequestOpts(requestParameters);
|
|
1538
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1539
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, StopForecasterPair202Response_js_1.StopForecasterPair202ResponseFromJSON)(jsonValue));
|
|
1540
|
+
});
|
|
1541
|
+
}
|
|
1542
|
+
/**
|
|
1543
|
+
* Cancels the benchmark for a specific pair by name. The forecaster continues running if other pairs are still active.
|
|
1544
|
+
* Cancel a single pair
|
|
1545
|
+
*/
|
|
1546
|
+
stopForecasterPair(requestParameters, initOverrides) {
|
|
1547
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1548
|
+
const response = yield this.stopForecasterPairRaw(requestParameters, initOverrides);
|
|
1549
|
+
return yield response.value();
|
|
1550
|
+
});
|
|
1551
|
+
}
|
|
776
1552
|
/**
|
|
777
1553
|
* Creates request options for stopInspection without sending the request
|
|
778
1554
|
*/
|
|
@@ -780,7 +1556,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
780
1556
|
return __awaiter(this, void 0, void 0, function* () {
|
|
781
1557
|
const queryParameters = {};
|
|
782
1558
|
const headerParameters = {};
|
|
783
|
-
let urlPath = `/
|
|
1559
|
+
let urlPath = `/inspector`;
|
|
784
1560
|
return {
|
|
785
1561
|
path: urlPath,
|
|
786
1562
|
method: 'DELETE',
|
|
@@ -796,7 +1572,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
796
1572
|
return __awaiter(this, void 0, void 0, function* () {
|
|
797
1573
|
const requestOptions = yield this.stopInspectionRequestOpts();
|
|
798
1574
|
const response = yield this.request(requestOptions, initOverrides);
|
|
799
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1575
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, InspectorStatus_js_1.InspectorStatusFromJSON)(jsonValue));
|
|
800
1576
|
});
|
|
801
1577
|
}
|
|
802
1578
|
/**
|
|
@@ -808,6 +1584,46 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
808
1584
|
return yield response.value();
|
|
809
1585
|
});
|
|
810
1586
|
}
|
|
1587
|
+
/**
|
|
1588
|
+
* Creates request options for triggerRightsizingCollection without sending the request
|
|
1589
|
+
*/
|
|
1590
|
+
triggerRightsizingCollectionRequestOpts(requestParameters) {
|
|
1591
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1592
|
+
if (requestParameters['rightsizingCollectRequest'] == null) {
|
|
1593
|
+
throw new runtime.RequiredError('rightsizingCollectRequest', 'Required parameter "rightsizingCollectRequest" was null or undefined when calling triggerRightsizingCollection().');
|
|
1594
|
+
}
|
|
1595
|
+
const queryParameters = {};
|
|
1596
|
+
const headerParameters = {};
|
|
1597
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1598
|
+
let urlPath = `/rightsizing`;
|
|
1599
|
+
return {
|
|
1600
|
+
path: urlPath,
|
|
1601
|
+
method: 'POST',
|
|
1602
|
+
headers: headerParameters,
|
|
1603
|
+
query: queryParameters,
|
|
1604
|
+
body: (0, RightsizingCollectRequest_js_1.RightsizingCollectRequestToJSON)(requestParameters['rightsizingCollectRequest']),
|
|
1605
|
+
};
|
|
1606
|
+
});
|
|
1607
|
+
}
|
|
1608
|
+
/**
|
|
1609
|
+
* Trigger rightsizing metrics collection
|
|
1610
|
+
*/
|
|
1611
|
+
triggerRightsizingCollectionRaw(requestParameters, initOverrides) {
|
|
1612
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1613
|
+
const requestOptions = yield this.triggerRightsizingCollectionRequestOpts(requestParameters);
|
|
1614
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1615
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingReportSummary_js_1.RightsizingReportSummaryFromJSON)(jsonValue));
|
|
1616
|
+
});
|
|
1617
|
+
}
|
|
1618
|
+
/**
|
|
1619
|
+
* Trigger rightsizing metrics collection
|
|
1620
|
+
*/
|
|
1621
|
+
triggerRightsizingCollection(requestParameters, initOverrides) {
|
|
1622
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1623
|
+
const response = yield this.triggerRightsizingCollectionRaw(requestParameters, initOverrides);
|
|
1624
|
+
return yield response.value();
|
|
1625
|
+
});
|
|
1626
|
+
}
|
|
811
1627
|
/**
|
|
812
1628
|
* Creates request options for updateGroup without sending the request
|
|
813
1629
|
*/
|
|
@@ -823,13 +1639,13 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
823
1639
|
const headerParameters = {};
|
|
824
1640
|
headerParameters['Content-Type'] = 'application/json';
|
|
825
1641
|
let urlPath = `/groups/{id}`;
|
|
826
|
-
urlPath = urlPath.replace(
|
|
1642
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
827
1643
|
return {
|
|
828
1644
|
path: urlPath,
|
|
829
1645
|
method: 'PATCH',
|
|
830
1646
|
headers: headerParameters,
|
|
831
1647
|
query: queryParameters,
|
|
832
|
-
body: (0,
|
|
1648
|
+
body: (0, UpdateGroupRequest_js_1.UpdateGroupRequestToJSON)(requestParameters['updateGroupRequest']),
|
|
833
1649
|
};
|
|
834
1650
|
});
|
|
835
1651
|
}
|
|
@@ -840,7 +1656,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
840
1656
|
return __awaiter(this, void 0, void 0, function* () {
|
|
841
1657
|
const requestOptions = yield this.updateGroupRequestOpts(requestParameters);
|
|
842
1658
|
const response = yield this.request(requestOptions, initOverrides);
|
|
843
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
1659
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, Group_js_1.GroupFromJSON)(jsonValue));
|
|
844
1660
|
});
|
|
845
1661
|
}
|
|
846
1662
|
/**
|
|
@@ -853,60 +1669,128 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
853
1669
|
});
|
|
854
1670
|
}
|
|
855
1671
|
/**
|
|
856
|
-
* Creates request options for
|
|
1672
|
+
* Creates request options for updateLabelVMs without sending the request
|
|
857
1673
|
*/
|
|
858
|
-
|
|
1674
|
+
updateLabelVMsRequestOpts(requestParameters) {
|
|
859
1675
|
return __awaiter(this, void 0, void 0, function* () {
|
|
860
|
-
if (requestParameters['
|
|
861
|
-
throw new runtime.RequiredError('
|
|
1676
|
+
if (requestParameters['label'] == null) {
|
|
1677
|
+
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling updateLabelVMs().');
|
|
1678
|
+
}
|
|
1679
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
1680
|
+
throw new runtime.RequiredError('updateLabelVMsRequest', 'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLabelVMs().');
|
|
862
1681
|
}
|
|
863
1682
|
const queryParameters = {};
|
|
864
1683
|
const headerParameters = {};
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
];
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
1684
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1685
|
+
let urlPath = `/vms/labels/{label}`;
|
|
1686
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1687
|
+
return {
|
|
1688
|
+
path: urlPath,
|
|
1689
|
+
method: 'PATCH',
|
|
1690
|
+
headers: headerParameters,
|
|
1691
|
+
query: queryParameters,
|
|
1692
|
+
body: (0, UpdateLabelVMsRequest_js_1.UpdateLabelVMsRequestToJSON)(requestParameters['updateLabelVMsRequest']),
|
|
1693
|
+
};
|
|
1694
|
+
});
|
|
1695
|
+
}
|
|
1696
|
+
/**
|
|
1697
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1698
|
+
*/
|
|
1699
|
+
updateLabelVMsRaw(requestParameters, initOverrides) {
|
|
1700
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1701
|
+
const requestOptions = yield this.updateLabelVMsRequestOpts(requestParameters);
|
|
1702
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1703
|
+
return new runtime.VoidApiResponse(response);
|
|
1704
|
+
});
|
|
1705
|
+
}
|
|
1706
|
+
/**
|
|
1707
|
+
* Modify label VM membership (add/remove label to/from VMs)
|
|
1708
|
+
*/
|
|
1709
|
+
updateLabelVMs(requestParameters, initOverrides) {
|
|
1710
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1711
|
+
yield this.updateLabelVMsRaw(requestParameters, initOverrides);
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
* Creates request options for updateVM without sending the request
|
|
1716
|
+
*/
|
|
1717
|
+
updateVMRequestOpts(requestParameters) {
|
|
1718
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1719
|
+
if (requestParameters['id'] == null) {
|
|
1720
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateVM().');
|
|
876
1721
|
}
|
|
877
|
-
|
|
878
|
-
|
|
1722
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
1723
|
+
throw new runtime.RequiredError('virtualMachineUpdateRequest', 'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateVM().');
|
|
879
1724
|
}
|
|
880
|
-
|
|
881
|
-
|
|
1725
|
+
const queryParameters = {};
|
|
1726
|
+
const headerParameters = {};
|
|
1727
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1728
|
+
let urlPath = `/vms/{id}`;
|
|
1729
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1730
|
+
return {
|
|
1731
|
+
path: urlPath,
|
|
1732
|
+
method: 'PATCH',
|
|
1733
|
+
headers: headerParameters,
|
|
1734
|
+
query: queryParameters,
|
|
1735
|
+
body: (0, VirtualMachineUpdateRequest_js_1.VirtualMachineUpdateRequestToJSON)(requestParameters['virtualMachineUpdateRequest']),
|
|
1736
|
+
};
|
|
1737
|
+
});
|
|
1738
|
+
}
|
|
1739
|
+
/**
|
|
1740
|
+
* Update VM properties
|
|
1741
|
+
*/
|
|
1742
|
+
updateVMRaw(requestParameters, initOverrides) {
|
|
1743
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1744
|
+
const requestOptions = yield this.updateVMRequestOpts(requestParameters);
|
|
1745
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1746
|
+
return new runtime.VoidApiResponse(response);
|
|
1747
|
+
});
|
|
1748
|
+
}
|
|
1749
|
+
/**
|
|
1750
|
+
* Update VM properties
|
|
1751
|
+
*/
|
|
1752
|
+
updateVM(requestParameters, initOverrides) {
|
|
1753
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1754
|
+
yield this.updateVMRaw(requestParameters, initOverrides);
|
|
1755
|
+
});
|
|
1756
|
+
}
|
|
1757
|
+
/**
|
|
1758
|
+
* Creates request options for validateInspectorCredentials without sending the request
|
|
1759
|
+
*/
|
|
1760
|
+
validateInspectorCredentialsRequestOpts(requestParameters) {
|
|
1761
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1762
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
1763
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling validateInspectorCredentials().');
|
|
882
1764
|
}
|
|
883
|
-
|
|
1765
|
+
const queryParameters = {};
|
|
1766
|
+
const headerParameters = {};
|
|
1767
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1768
|
+
let urlPath = `/inspector/credentials`;
|
|
884
1769
|
return {
|
|
885
1770
|
path: urlPath,
|
|
886
1771
|
method: 'POST',
|
|
887
1772
|
headers: headerParameters,
|
|
888
1773
|
query: queryParameters,
|
|
889
|
-
body:
|
|
1774
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
890
1775
|
};
|
|
891
1776
|
});
|
|
892
1777
|
}
|
|
893
1778
|
/**
|
|
894
|
-
*
|
|
1779
|
+
* Validate vCenter credentials for inspector
|
|
895
1780
|
*/
|
|
896
|
-
|
|
1781
|
+
validateInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
897
1782
|
return __awaiter(this, void 0, void 0, function* () {
|
|
898
|
-
const requestOptions = yield this.
|
|
1783
|
+
const requestOptions = yield this.validateInspectorCredentialsRequestOpts(requestParameters);
|
|
899
1784
|
const response = yield this.request(requestOptions, initOverrides);
|
|
900
|
-
return new runtime.
|
|
1785
|
+
return new runtime.VoidApiResponse(response);
|
|
901
1786
|
});
|
|
902
1787
|
}
|
|
903
1788
|
/**
|
|
904
|
-
*
|
|
1789
|
+
* Validate vCenter credentials for inspector
|
|
905
1790
|
*/
|
|
906
|
-
|
|
1791
|
+
validateInspectorCredentials(requestParameters, initOverrides) {
|
|
907
1792
|
return __awaiter(this, void 0, void 0, function* () {
|
|
908
|
-
|
|
909
|
-
return yield response.value();
|
|
1793
|
+
yield this.validateInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
910
1794
|
});
|
|
911
1795
|
}
|
|
912
1796
|
}
|