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